Changeset 145917 in git for Singular


Ignore:
Timestamp:
May 12, 2005, 4:23:20 PM (19 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'd08f5f0bb3329b8ca19f23b74cb1473686415c3a')
Children:
3696d3a9d806261f711f9891ec0836cbbd14669a
Parents:
d6d3b9f3c9d5e213c1f49ad4143c6404b07a02f4
Message:
*hannes: dynamic: freebsd


git-svn-id: file:///usr/local/Singular/svn/trunk@8184 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/configure

    rd6d3b9 r145917  
    11#! /bin/sh
     2
    23# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.57.
     4# Generated automatically using autoconf version 2.13
     5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
    46#
    5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
    6 # Free Software Foundation, Inc.
    77# This configure script is free software; the Free Software Foundation
    88# gives unlimited permission to copy, distribute and modify it.
    9 ## --------------------- ##
    10 ## M4sh Initialization.  ##
    11 ## --------------------- ##
    12 
    13 # Be Bourne compatible
    14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    15   emulate sh
    16   NULLCMD=:
    17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    18   # is contrary to our usage.  Disable this feature.
    19   alias -g '${1+"$@"}'='"$@"'
    20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    21   set -o posix
    22 fi
    23 
    24 # Support unset when possible.
    25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
    26   as_unset=unset
    27 else
    28   as_unset=false
    29 fi
    30 
    31 
    32 # Work around bugs in pre-3.0 UWIN ksh.
    33 $as_unset ENV MAIL MAILPATH
    34 PS1='$ '
    35 PS2='> '
    36 PS4='+ '
    37 
    38 # NLS nuisances.
    39 for 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
    43 do
    44   if (set +x; test -n "`(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
    49 done
    50 
    51 # Required to use basename.
    52 if expr a : '\(a\)' >/dev/null 2>&1; then
    53   as_expr=expr
    54 else
    55   as_expr=false
    56 fi
    57 
    58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
    59   as_basename=basename
    60 else
    61   as_basename=false
    62 fi
    63 
    64 
    65 # Name of the executable.
    66 as_me=`$as_basename "$0" ||
    67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    68          X"$0" : 'X\(//\)$' \| \
    69          X"$0" : 'X\(/\)$' \| \
    70          .     : '\(.\)' 2>/dev/null ||
    71 echo 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.
    80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    83 as_cr_digits='0123456789'
    84 as_cr_alnum=$as_cr_Letters$as_cr_digits
    85 
    86 # The user is always right.
    87 if 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
    97 fi
    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
    110 for as_dir in $PATH
    111 do
    112   IFS=$as_save_IFS
    113   test -z "$as_dir" && as_dir=.
    114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    115 done
    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
    131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    132 do
    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
    152 done
    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 
    187 case `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= ;;
    192 esac
    193 
    194 if expr a : '\(a\)' >/dev/null 2>&1; then
    195   as_expr=expr
    196 else
    197   as_expr=false
    198 fi
    199 
    200 rm -f conf$$ conf$$.exe conf$$.file
    201 echo >conf$$.file
    202 if ln -s conf$$.file conf$$ 2>/dev/null; then
    203   # We could just check for DJGPP; but this test a) works b) is more generic
    204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
    205   if test -f conf$$.exe; then
    206     # Don't use ln at all; we don't have any links
    207     as_ln_s='cp -p'
    208   else
    209     as_ln_s='ln -s'
    210   fi
    211 elif ln conf$$.file conf$$ 2>/dev/null; then
    212   as_ln_s=ln
    213 else
    214   as_ln_s='cp -p'
    215 fi
    216 rm -f conf$$ conf$$.exe conf$$.file
    217 
    218 if mkdir -p . 2>/dev/null; then
    219   as_mkdir_p=:
    220 else
    221   as_mkdir_p=false
    222 fi
    223 
    224 as_executable_p="test -f"
    225 
    226 # Sed expression to map a string onto a valid CPP name.
    227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
    228 
    229 # Sed expression to map a string onto a valid variable name.
    230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
    231 
    232 
    233 # IFS
    234 # We need space, tab and new line, in precisely that order.
    235 as_nl='
    236 '
    237 IFS="   $as_nl"
    238 
    239 # CDPATH.
    240 $as_unset CDPATH
    241 
    242 
    243 # Name of the host.
    244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    245 # so uname gets run too.
    246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    247 
    248 exec 6>&1
    249 
    250 #
    251 # Initializations.
    252 #
     9
     10# Defaults:
     11ac_help=
    25312ac_default_prefix=/usr/local
    254 ac_config_libobj_dir=.
    255 cross_compiling=no
    256 subdirs=
    257 MFLAGS=
    258 MAKEFLAGS=
    259 SHELL=${CONFIG_SHELL-/bin/sh}
    260 
    261 # Maximum number of lines to put in a shell here document.
    262 # This variable seems obsolete.  It should probably be removed, and
    263 # only ac_max_sed_lines should be used.
    264 : ${ac_max_here_lines=38}
    265 
    266 # Identity of this package.
    267 PACKAGE_NAME=
    268 PACKAGE_TARNAME=
    269 PACKAGE_VERSION=
    270 PACKAGE_STRING=
    271 PACKAGE_BUGREPORT=
    272 
    273 ac_unique_file="mmalloc.cc"
     13# Any additions from configure.in:
    27414ac_default_prefix=`pwd`/..
    275 # Factoring default headers for most tests.
    276 ac_includes_default="\
    277 #include <stdio.h>
    278 #if HAVE_SYS_TYPES_H
    279 # include <sys/types.h>
    280 #endif
    281 #if HAVE_SYS_STAT_H
    282 # include <sys/stat.h>
    283 #endif
    284 #if STDC_HEADERS
    285 # include <stdlib.h>
    286 # include <stddef.h>
    287 #else
    288 # if HAVE_STDLIB_H
    289 #  include <stdlib.h>
    290 # endif
    291 #endif
    292 #if HAVE_STRING_H
    293 # if !STDC_HEADERS && HAVE_MEMORY_H
    294 #  include <memory.h>
    295 # endif
    296 # include <string.h>
    297 #endif
    298 #if HAVE_STRINGS_H
    299 # include <strings.h>
    300 #endif
    301 #if HAVE_INTTYPES_H
    302 # include <inttypes.h>
    303 #else
    304 # if HAVE_STDINT_H
    305 #  include <stdint.h>
    306 # endif
    307 #endif
    308 #if HAVE_UNISTD_H
    309 # include <unistd.h>
    310 #endif"
    311 
    312 ac_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 SINGUNAME EXEC_EXT SING_UNAME SINGULAR_VERSION VERSION_DATE SINGULAR_MAJOR_VERSION SINGULAR_MINOR_VERSION SINGULAR_SUB_VERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP CXX CXXFLAGS ac_ct_CXX INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP PIPE CXXTEMPLFLAGS CXXNOOPTFLAGS STATIC_LDFLAGS SET_MAKE SINGULAR LEX BISON LN_S PERL LD_DYN_FLAGS SFLAGS SLDFLAGS LD ALLOCA CXXCPP HAVE_MPSR MP_LIBS NEED_LIBS DL_KERNEL PLURAL LIBOBJS LTLIBOBJS'
    313 ac_subst_files=''
     15ac_help="$ac_help
     16  --with-rootdir=DIR      use DIR ass compiled-in root directory
     17                             (default is PREFIX)"
     18ac_help="$ac_help
     19  --with-lex=[LEX,no]     uses LEX as lex program, default is flex"
     20ac_help="$ac_help
     21  --with-readline=[dynamic,static,no]         
     22                          do use dynamic/static/no readline for fancy display"
     23ac_help="$ac_help
     24  --without-MP            do not use MP (no MP links)"
     25ac_help="$ac_help
     26  --without-dbm           do not use dbm (no DBM links)"
     27ac_help="$ac_help
     28  --without-factory       do not use factory (no poly factorization)"
     29ac_help="$ac_help
     30  --without-libfac        do not use libfac (no primary decompositions)"
     31ac_help="$ac_help
     32  --with-namespaces       do compile namespace support"
     33ac_help="$ac_help
     34  --without-dl            do not use dynamic linking, modules, and kernel"
     35ac_help="$ac_help
     36  --with-dynamic-modules  do compile with dynamic modules support"
     37ac_help="$ac_help
     38  --without-dynamic-kernel               
     39                          do not compile with dynamic kernel parts"
     40ac_help="$ac_help
     41  --with-apint=PACKAGE    use PACKAGE for arbitary integer arithmetic"
     42ac_help="$ac_help
     43  --with-Plural           do compile with Plural support"
     44ac_help="$ac_help
     45  --with-NTL              build for use with NTL."
    31446
    31547# Initialize some variables set by options.
    316 ac_init_help=
    317 ac_init_version=false
    31848# The variables have the same names as the options, with
    31949# dashes changed to underlines.
    320 cache_file=/dev/null
     50build=NONE
     51cache_file=./config.cache
    32152exec_prefix=NONE
     53host=NONE
    32254no_create=
     55nonopt=NONE
    32356no_recursion=
    32457prefix=NONE
     
    32962site=
    33063srcdir=
     64target=NONE
    33165verbose=
    33266x_includes=NONE
    33367x_libraries=NONE
    334 
    335 # Installation directory options.
    336 # These are left unexpanded so users can "make install exec_prefix=/foo"
    337 # and all the variables that are supposed to be based on exec_prefix
    338 # by default will actually change.
    339 # Use braces instead of parens because sh, perl, etc. also accept them.
    34068bindir='${exec_prefix}/bin'
    34169sbindir='${exec_prefix}/sbin'
     
    35179mandir='${prefix}/man'
    35280
     81# Initialize some other variables.
     82subdirs=
     83MFLAGS= MAKEFLAGS=
     84SHELL=${CONFIG_SHELL-/bin/sh}
     85# Maximum number of lines to put in a shell here document.
     86ac_max_here_lines=12
     87
    35388ac_prev=
    35489for ac_option
    35590do
     91
    35692  # If the previous option needs an argument, assign it.
    35793  if test -n "$ac_prev"; then
     
    36197  fi
    36298
    363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
     99  case "$ac_option" in
     100  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
     101  *) ac_optarg= ;;
     102  esac
    364103
    365104  # Accept the important Cygnus configure options, so we can diagnose typos.
    366105
    367   case $ac_option in
     106  case "$ac_option" in
    368107
    369108  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    370109    ac_prev=bindir ;;
    371110  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    372     bindir=$ac_optarg ;;
     111    bindir="$ac_optarg" ;;
    373112
    374113  -build | --build | --buil | --bui | --bu)
    375     ac_prev=build_alias ;;
     114    ac_prev=build ;;
    376115  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    377     build_alias=$ac_optarg ;;
     116    build="$ac_optarg" ;;
    378117
    379118  -cache-file | --cache-file | --cache-fil | --cache-fi \
     
    382121  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    383122  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    384     cache_file=$ac_optarg ;;
    385 
    386   --config-cache | -C)
    387     cache_file=config.cache ;;
     123    cache_file="$ac_optarg" ;;
    388124
    389125  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
     
    391127  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    392128  | --da=*)
    393     datadir=$ac_optarg ;;
     129    datadir="$ac_optarg" ;;
    394130
    395131  -disable-* | --disable-*)
    396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
     132    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
    397133    # Reject names that are not valid shell variable names.
    398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    400    { (exit 1); exit 1; }; }
    401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    402     eval "enable_$ac_feature=no" ;;
     134    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
     135      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
     136    fi
     137    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
     138    eval "enable_${ac_feature}=no" ;;
    403139
    404140  -enable-* | --enable-*)
    405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
     141    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
    406142    # Reject names that are not valid shell variable names.
    407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    409    { (exit 1); exit 1; }; }
    410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    411     case $ac_option in
    412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
     143    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
     144      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
     145    fi
     146    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
     147    case "$ac_option" in
     148      *=*) ;;
    413149      *) ac_optarg=yes ;;
    414150    esac
    415     eval "enable_$ac_feature='$ac_optarg'" ;;
     151    eval "enable_${ac_feature}='$ac_optarg'" ;;
    416152
    417153  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
     
    422158  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    423159  | --exec=* | --exe=* | --ex=*)
    424     exec_prefix=$ac_optarg ;;
     160    exec_prefix="$ac_optarg" ;;
    425161
    426162  -gas | --gas | --ga | --g)
     
    428164    with_gas=yes ;;
    429165
    430   -help | --help | --hel | --he | -h)
    431     ac_init_help=long ;;
    432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    433     ac_init_help=recursive ;;
    434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    435     ac_init_help=short ;;
     166  -help | --help | --hel | --he)
     167    # Omit some internal or obsolete options to make the list less imposing.
     168    # This message is too long to be a string in the A/UX 3.1 sh.
     169    cat << EOF
     170Usage: configure [options] [host]
     171Options: [defaults in brackets after descriptions]
     172Configuration:
     173  --cache-file=FILE       cache test results in FILE
     174  --help                  print this message
     175  --no-create             do not create output files
     176  --quiet, --silent       do not print \`checking...' messages
     177  --version               print the version of autoconf that created configure
     178Directory and file names:
     179  --prefix=PREFIX         install architecture-independent files in PREFIX
     180                          [$ac_default_prefix]
     181  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
     182                          [same as prefix]
     183  --bindir=DIR            user executables in DIR [EPREFIX/bin]
     184  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
     185  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
     186  --datadir=DIR           read-only architecture-independent data in DIR
     187                          [PREFIX/share]
     188  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
     189  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
     190                          [PREFIX/com]
     191  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
     192  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
     193  --includedir=DIR        C header files in DIR [PREFIX/include]
     194  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
     195  --infodir=DIR           info documentation in DIR [PREFIX/info]
     196  --mandir=DIR            man documentation in DIR [PREFIX/man]
     197  --srcdir=DIR            find the sources in DIR [configure dir or ..]
     198  --program-prefix=PREFIX prepend PREFIX to installed program names
     199  --program-suffix=SUFFIX append SUFFIX to installed program names
     200  --program-transform-name=PROGRAM
     201                          run sed PROGRAM on installed program names
     202EOF
     203    cat << EOF
     204Host type:
     205  --build=BUILD           configure for building on BUILD [BUILD=HOST]
     206  --host=HOST             configure for HOST [guessed]
     207  --target=TARGET         configure for TARGET [TARGET=HOST]
     208Features and packages:
     209  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
     210  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
     211  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
     212  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
     213  --x-includes=DIR        X include files are in DIR
     214  --x-libraries=DIR       X library files are in DIR
     215EOF
     216    if test -n "$ac_help"; then
     217      echo "--enable and --with options recognized:$ac_help"
     218    fi
     219    exit 0 ;;
    436220
    437221  -host | --host | --hos | --ho)
    438     ac_prev=host_alias ;;
     222    ac_prev=host ;;
    439223  -host=* | --host=* | --hos=* | --ho=*)
    440     host_alias=$ac_optarg ;;
     224    host="$ac_optarg" ;;
    441225
    442226  -includedir | --includedir | --includedi | --included | --include \
     
    445229  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    446230  | --includ=* | --inclu=* | --incl=* | --inc=*)
    447     includedir=$ac_optarg ;;
     231    includedir="$ac_optarg" ;;
    448232
    449233  -infodir | --infodir | --infodi | --infod | --info | --inf)
    450234    ac_prev=infodir ;;
    451235  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    452     infodir=$ac_optarg ;;
     236    infodir="$ac_optarg" ;;
    453237
    454238  -libdir | --libdir | --libdi | --libd)
    455239    ac_prev=libdir ;;
    456240  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    457     libdir=$ac_optarg ;;
     241    libdir="$ac_optarg" ;;
    458242
    459243  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
     
    462246  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    463247  | --libexe=* | --libex=* | --libe=*)
    464     libexecdir=$ac_optarg ;;
     248    libexecdir="$ac_optarg" ;;
    465249
    466250  -localstatedir | --localstatedir | --localstatedi | --localstated \
     
    471255  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    472256  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    473     localstatedir=$ac_optarg ;;
     257    localstatedir="$ac_optarg" ;;
    474258
    475259  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    476260    ac_prev=mandir ;;
    477261  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    478     mandir=$ac_optarg ;;
     262    mandir="$ac_optarg" ;;
    479263
    480264  -nfp | --nfp | --nf)
     
    483267
    484268  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    485   | --no-cr | --no-c | -n)
     269  | --no-cr | --no-c)
    486270    no_create=yes ;;
    487271
     
    497281  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    498282  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    499     oldincludedir=$ac_optarg ;;
     283    oldincludedir="$ac_optarg" ;;
    500284
    501285  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    502286    ac_prev=prefix ;;
    503287  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    504     prefix=$ac_optarg ;;
     288    prefix="$ac_optarg" ;;
    505289
    506290  -program-prefix | --program-prefix | --program-prefi | --program-pref \
     
    509293  -program-prefix=* | --program-prefix=* | --program-prefi=* \
    510294  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    511     program_prefix=$ac_optarg ;;
     295    program_prefix="$ac_optarg" ;;
    512296
    513297  -program-suffix | --program-suffix | --program-suffi | --program-suff \
     
    516300  -program-suffix=* | --program-suffix=* | --program-suffi=* \
    517301  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    518     program_suffix=$ac_optarg ;;
     302    program_suffix="$ac_optarg" ;;
    519303
    520304  -program-transform-name | --program-transform-name \
     
    533317  | --program-trans=* | --program-tran=* \
    534318  | --progr-tra=* | --program-tr=* | --program-t=*)
    535     program_transform_name=$ac_optarg ;;
     319    program_transform_name="$ac_optarg" ;;
    536320
    537321  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     
    543327  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    544328  | --sbi=* | --sb=*)
    545     sbindir=$ac_optarg ;;
     329    sbindir="$ac_optarg" ;;
    546330
    547331  -sharedstatedir | --sharedstatedir | --sharedstatedi \
     
    554338  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
    555339  | --sha=* | --sh=*)
    556     sharedstatedir=$ac_optarg ;;
     340    sharedstatedir="$ac_optarg" ;;
    557341
    558342  -site | --site | --sit)
    559343    ac_prev=site ;;
    560344  -site=* | --site=* | --sit=*)
    561     site=$ac_optarg ;;
     345    site="$ac_optarg" ;;
    562346
    563347  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    564348    ac_prev=srcdir ;;
    565349  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    566     srcdir=$ac_optarg ;;
     350    srcdir="$ac_optarg" ;;
    567351
    568352  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
     
    571355  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
    572356  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    573     sysconfdir=$ac_optarg ;;
     357    sysconfdir="$ac_optarg" ;;
    574358
    575359  -target | --target | --targe | --targ | --tar | --ta | --t)
    576     ac_prev=target_alias ;;
     360    ac_prev=target ;;
    577361  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    578     target_alias=$ac_optarg ;;
     362    target="$ac_optarg" ;;
    579363
    580364  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    581365    verbose=yes ;;
    582366
    583   -version | --version | --versio | --versi | --vers | -V)
    584     ac_init_version=: ;;
     367  -version | --version | --versio | --versi | --vers)
     368    echo "configure generated by autoconf version 2.13"
     369    exit 0 ;;
    585370
    586371  -with-* | --with-*)
    587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
     372    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
    588373    # Reject names that are not valid shell variable names.
    589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    590       { echo "$as_me: error: invalid package name: $ac_package" >&2
    591    { (exit 1); exit 1; }; }
     374    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
     375      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
     376    fi
    592377    ac_package=`echo $ac_package| sed 's/-/_/g'`
    593     case $ac_option in
    594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
     378    case "$ac_option" in
     379      *=*) ;;
    595380      *) ac_optarg=yes ;;
    596381    esac
    597     eval "with_$ac_package='$ac_optarg'" ;;
     382    eval "with_${ac_package}='$ac_optarg'" ;;
    598383
    599384  -without-* | --without-*)
    600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
     385    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
    601386    # Reject names that are not valid shell variable names.
    602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    603       { echo "$as_me: error: invalid package name: $ac_package" >&2
    604    { (exit 1); exit 1; }; }
    605     ac_package=`echo $ac_package | sed 's/-/_/g'`
    606     eval "with_$ac_package=no" ;;
     387    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
     388      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
     389    fi
     390    ac_package=`echo $ac_package| sed 's/-/_/g'`
     391    eval "with_${ac_package}=no" ;;
    607392
    608393  --x)
     
    615400  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
    616401  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    617     x_includes=$ac_optarg ;;
     402    x_includes="$ac_optarg" ;;
    618403
    619404  -x-libraries | --x-libraries | --x-librarie | --x-librari \
     
    622407  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
    623408  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    624     x_libraries=$ac_optarg ;;
    625 
    626   -*) { echo "$as_me: error: unrecognized option: $ac_option
    627 Try \`$0 --help' for more information." >&2
    628    { (exit 1); exit 1; }; }
     409    x_libraries="$ac_optarg" ;;
     410
     411  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
    629412    ;;
    630413
    631   *=*)
    632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    633     # Reject names that are not valid shell variable names.
    634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
    635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
    636    { (exit 1); exit 1; }; }
    637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    638     eval "$ac_envvar='$ac_optarg'"
    639     export $ac_envvar ;;
    640 
    641414  *)
    642     # FIXME: should be removed in autoconf 3.0.
    643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
     415    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
     416      echo "configure: warning: $ac_option: invalid host type" 1>&2
     417    fi
     418    if test "x$nonopt" != xNONE; then
     419      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
     420    fi
     421    nonopt="$ac_option"
    647422    ;;
    648423
     
    651426
    652427if test -n "$ac_prev"; then
    653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
    654   { echo "$as_me: error: missing argument to $ac_option" >&2
    655    { (exit 1); exit 1; }; }
    656 fi
    657 
    658 # Be sure to have absolute paths.
    659 for ac_var in exec_prefix prefix
     428  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
     429fi
     430
     431trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
     432
     433# File descriptor usage:
     434# 0 standard input
     435# 1 file creation
     436# 2 errors and warnings
     437# 3 some systems may open it to /dev/tty
     438# 4 used on the Kubota Titan
     439# 6 checking for... messages and results
     440# 5 compiler messages saved in config.log
     441if test "$silent" = yes; then
     442  exec 6>/dev/null
     443else
     444  exec 6>&1
     445fi
     446exec 5>./config.log
     447
     448echo "\
     449This file contains any messages produced by compilers while
     450running configure, to aid debugging if configure makes a mistake.
     451" 1>&5
     452
     453# Strip out --no-create and --no-recursion so they do not pile up.
     454# Also quote any args containing shell metacharacters.
     455ac_configure_args=
     456for ac_arg
    660457do
    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; }; };;
     458  case "$ac_arg" in
     459  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
     460  | --no-cr | --no-c) ;;
     461  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
     462  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
     463  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
     464  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
     465  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
    666466  esac
    667467done
    668468
    669 # Be sure to have absolute paths.
    670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
    671               localstatedir libdir includedir oldincludedir infodir mandir
    672 do
    673   eval ac_val=$`echo $ac_var`
    674   case $ac_val in
    675     [\\/$]* | ?:[\\/]* ) ;;
    676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
    677    { (exit 1); exit 1; }; };;
    678   esac
    679 done
    680 
    681 # There might be people who depend on the old broken behavior: `$host'
    682 # used to hold the argument of --host etc.
    683 # FIXME: To remove some day.
    684 build=$build_alias
    685 host=$host_alias
    686 target=$target_alias
    687 
    688 # FIXME: To remove some day.
    689 if test "x$host_alias" != x; then
    690   if test "x$build_alias" = x; then
    691     cross_compiling=maybe
    692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    693     If a cross compiler is detected then cross compile mode will be used." >&2
    694   elif test "x$build_alias" != "x$host_alias"; then
    695     cross_compiling=yes
    696   fi
    697 fi
    698 
    699 ac_tool_prefix=
    700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
    701 
    702 test "$silent" = yes && exec 6>/dev/null
    703 
     469# NLS nuisances.
     470# Only set these to C if already set.  These must not be set unconditionally
     471# because not all systems understand e.g. LANG=C (notably SCO).
     472# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
     473# Non-C LC_CTYPE values break the ctype check.
     474if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
     475if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
     476if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
     477if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
     478
     479# confdefs.h avoids OS command line length limits that DEFS can exceed.
     480rm -rf conftest* confdefs.h
     481# AIX cpp loses on an empty file, so make sure it contains at least a newline.
     482echo > confdefs.h
     483
     484# A filename unique to this package, relative to the directory that
     485# configure is in, which we can look for to find out if srcdir is correct.
     486ac_unique_file=mmalloc.cc
    704487
    705488# Find the source files, if location was not specified.
     
    707490  ac_srcdir_defaulted=yes
    708491  # Try the directory containing this script, then its parent.
    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 ||
    715 echo 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'`
     492  ac_prog=$0
     493  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
     494  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
    721495  srcdir=$ac_confdir
    722496  if test ! -r $srcdir/$ac_unique_file; then
     
    728502if test ! -r $srcdir/$ac_unique_file; then
    729503  if test "$ac_srcdir_defaulted" = yes; then
    730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
    731    { (exit 1); exit 1; }; }
     504    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
    732505  else
    733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
    734    { (exit 1); exit 1; }; }
     506    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
    735507  fi
    736508fi
    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; }; }
    740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
    741 ac_env_build_alias_set=${build_alias+set}
    742 ac_env_build_alias_value=$build_alias
    743 ac_cv_env_build_alias_set=${build_alias+set}
    744 ac_cv_env_build_alias_value=$build_alias
    745 ac_env_host_alias_set=${host_alias+set}
    746 ac_env_host_alias_value=$host_alias
    747 ac_cv_env_host_alias_set=${host_alias+set}
    748 ac_cv_env_host_alias_value=$host_alias
    749 ac_env_target_alias_set=${target_alias+set}
    750 ac_env_target_alias_value=$target_alias
    751 ac_cv_env_target_alias_set=${target_alias+set}
    752 ac_cv_env_target_alias_value=$target_alias
    753 ac_env_CC_set=${CC+set}
    754 ac_env_CC_value=$CC
    755 ac_cv_env_CC_set=${CC+set}
    756 ac_cv_env_CC_value=$CC
    757 ac_env_CFLAGS_set=${CFLAGS+set}
    758 ac_env_CFLAGS_value=$CFLAGS
    759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
    760 ac_cv_env_CFLAGS_value=$CFLAGS
    761 ac_env_LDFLAGS_set=${LDFLAGS+set}
    762 ac_env_LDFLAGS_value=$LDFLAGS
    763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
    764 ac_cv_env_LDFLAGS_value=$LDFLAGS
    765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
    766 ac_env_CPPFLAGS_value=$CPPFLAGS
    767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
    768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
    769 ac_env_CPP_set=${CPP+set}
    770 ac_env_CPP_value=$CPP
    771 ac_cv_env_CPP_set=${CPP+set}
    772 ac_cv_env_CPP_value=$CPP
    773 ac_env_CXX_set=${CXX+set}
    774 ac_env_CXX_value=$CXX
    775 ac_cv_env_CXX_set=${CXX+set}
    776 ac_cv_env_CXX_value=$CXX
    777 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
    778 ac_env_CXXFLAGS_value=$CXXFLAGS
    779 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
    780 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
    781 ac_env_CXXCPP_set=${CXXCPP+set}
    782 ac_env_CXXCPP_value=$CXXCPP
    783 ac_cv_env_CXXCPP_set=${CXXCPP+set}
    784 ac_cv_env_CXXCPP_value=$CXXCPP
    785 
    786 #
    787 # Report the --help message.
    788 #
    789 if test "$ac_init_help" = "long"; then
    790   # Omit some internal or obsolete options to make the list less imposing.
    791   # This message is too long to be a string in the A/UX 3.1 sh.
    792   cat <<_ACEOF
    793 \`configure' configures this package to adapt to many kinds of systems.
    794 
    795 Usage: $0 [OPTION]... [VAR=VALUE]...
    796 
    797 To assign environment variables (e.g., CC, CFLAGS...), specify them as
    798 VAR=VALUE.  See below for descriptions of some of the useful variables.
    799 
    800 Defaults for the options are specified in brackets.
    801 
    802 Configuration:
    803   -h, --help              display this help and exit
    804       --help=short        display options specific to this package
    805       --help=recursive    display the short help of all the included packages
    806   -V, --version           display version information and exit
    807   -q, --quiet, --silent   do not print \`checking...' messages
    808       --cache-file=FILE   cache test results in FILE [disabled]
    809   -C, --config-cache      alias for \`--cache-file=config.cache'
    810   -n, --no-create         do not create output files
    811       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
    812 
    813 _ACEOF
    814 
    815   cat <<_ACEOF
    816 Installation directories:
    817   --prefix=PREFIX         install architecture-independent files in PREFIX
    818                           [$ac_default_prefix]
    819   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    820                           [PREFIX]
    821 
    822 By default, \`make install' will install all the files in
    823 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
    824 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
    825 for instance \`--prefix=\$HOME'.
    826 
    827 For better control, use the options below.
    828 
    829 Fine tuning of the installation directories:
    830   --bindir=DIR           user executables [EPREFIX/bin]
    831   --sbindir=DIR          system admin executables [EPREFIX/sbin]
    832   --libexecdir=DIR       program executables [EPREFIX/libexec]
    833   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
    834   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
    835   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
    836   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
    837   --libdir=DIR           object code libraries [EPREFIX/lib]
    838   --includedir=DIR       C header files [PREFIX/include]
    839   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
    840   --infodir=DIR          info documentation [PREFIX/info]
    841   --mandir=DIR           man documentation [PREFIX/man]
    842 _ACEOF
    843 
    844   cat <<\_ACEOF
    845 _ACEOF
    846 fi
    847 
    848 if test -n "$ac_init_help"; then
    849 
    850   cat <<\_ACEOF
    851 
    852 Optional Packages:
    853   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    854   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    855   --with-rootdir=DIR      use DIR ass compiled-in root directory
    856                              (default is PREFIX)
    857   --with-lex=LEX,no     uses LEX as lex program, default is flex
    858   --with-readline=dynamic,static,no
    859                           do use dynamic/static/no readline for fancy display
    860   --without-MP            do not use MP (no MP links)
    861   --without-dbm           do not use dbm (no DBM links)
    862   --without-factory       do not use factory (no poly factorization)
    863   --without-libfac        do not use libfac (no primary decompositions)
    864   --with-namespaces       do compile namespace support
    865   --without-dl            do not use dynamic linking, modules, and kernel
    866   --with-dynamic-modules  do compile with dynamic modules support
    867   --without-dynamic-kernel
    868                           do not compile with dynamic kernel parts
    869   --with-apint=PACKAGE    use PACKAGE for arbitary integer arithmetic
    870   --with-Plural           do compile with Plural support
    871   --with-NTL              build for use with NTL.
    872 
    873 Some influential environment variables:
    874   CC          C compiler command
    875   CFLAGS      C compiler flags
    876   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
    877               nonstandard directory <lib dir>
    878   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
    879               headers in a nonstandard directory <include dir>
    880   CPP         C preprocessor
    881   CXX         C++ compiler command
    882   CXXFLAGS    C++ compiler flags
    883   CXXCPP      C++ preprocessor
    884 
    885 Use these variables to override the choices made by `configure' or to help
    886 it to find libraries and programs with nonstandard names/locations.
    887 
    888 _ACEOF
    889 fi
    890 
    891 if test "$ac_init_help" = "recursive"; then
    892   # If there are subdirs, report their specific --help.
    893   ac_popdir=`pwd`
    894   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    895     test -d $ac_dir || continue
    896     ac_builddir=.
    897 
    898 if test "$ac_dir" != .; then
    899   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    900   # A "../" for each directory in $ac_dir_suffix.
    901   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    902 else
    903   ac_dir_suffix= ac_top_builddir=
    904 fi
    905 
    906 case $srcdir in
    907   .)  # No --srcdir option.  We are building in place.
    908     ac_srcdir=.
    909     if test -z "$ac_top_builddir"; then
    910        ac_top_srcdir=.
    911     else
    912        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    913     fi ;;
    914   [\\/]* | ?:[\\/]* )  # Absolute path.
    915     ac_srcdir=$srcdir$ac_dir_suffix;
    916     ac_top_srcdir=$srcdir ;;
    917   *) # Relative path.
    918     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    919     ac_top_srcdir=$ac_top_builddir$srcdir ;;
    920 esac
    921 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
    922 # absolute.
    923 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
    924 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
    925 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
    926 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
    927 
    928     cd $ac_dir
    929     # Check for guested configure; otherwise get Cygnus style configure.
    930     if test -f $ac_srcdir/configure.gnu; then
    931       echo
    932       $SHELL $ac_srcdir/configure.gnu  --help=recursive
    933     elif test -f $ac_srcdir/configure; then
    934       echo
    935       $SHELL $ac_srcdir/configure  --help=recursive
    936     elif test -f $ac_srcdir/configure.ac ||
    937            test -f $ac_srcdir/configure.in; then
    938       echo
    939       $ac_configure --help
    940     else
    941       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    942     fi
    943     cd $ac_popdir
    944   done
    945 fi
    946 
    947 test -n "$ac_init_help" && exit 0
    948 if $ac_init_version; then
    949   cat <<\_ACEOF
    950 
    951 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
    952 Free Software Foundation, Inc.
    953 This configure script is free software; the Free Software Foundation
    954 gives unlimited permission to copy, distribute and modify it.
    955 _ACEOF
    956   exit 0
    957 fi
    958 exec 5>config.log
    959 cat >&5 <<_ACEOF
    960 This file contains any messages produced by compilers while
    961 running configure, to aid debugging if configure makes a mistake.
    962 
    963 It was created by $as_me, which was
    964 generated by GNU Autoconf 2.57.  Invocation command line was
    965 
    966   $ $0 $@
    967 
    968 _ACEOF
    969 {
    970 cat <<_ASUNAME
    971 ## --------- ##
    972 ## Platform. ##
    973 ## --------- ##
    974 
    975 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
    976 uname -m = `(uname -m) 2>/dev/null || echo unknown`
    977 uname -r = `(uname -r) 2>/dev/null || echo unknown`
    978 uname -s = `(uname -s) 2>/dev/null || echo unknown`
    979 uname -v = `(uname -v) 2>/dev/null || echo unknown`
    980 
    981 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
    982 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
    983 
    984 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
    985 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
    986 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
    987 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
    988 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
    989 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
    990 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
    991 
    992 _ASUNAME
    993 
    994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    995 for as_dir in $PATH
    996 do
    997   IFS=$as_save_IFS
    998   test -z "$as_dir" && as_dir=.
    999   echo "PATH: $as_dir"
    1000 done
    1001 
    1002 } >&5
    1003 
    1004 cat >&5 <<_ACEOF
    1005 
    1006 
    1007 ## ----------- ##
    1008 ## Core tests. ##
    1009 ## ----------- ##
    1010 
    1011 _ACEOF
    1012 
    1013 
    1014 # Keep a trace of the command line.
    1015 # Strip out --no-create and --no-recursion so they do not pile up.
    1016 # Strip out --silent because we don't want to record it for future runs.
    1017 # Also quote any args containing shell meta-characters.
    1018 # Make two passes to allow for proper duplicate-argument suppression.
    1019 ac_configure_args=
    1020 ac_configure_args0=
    1021 ac_configure_args1=
    1022 ac_sep=
    1023 ac_must_keep_next=false
    1024 for ac_pass in 1 2
    1025 do
    1026   for ac_arg
    1027   do
    1028     case $ac_arg in
    1029     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
    1030     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    1031     | -silent | --silent | --silen | --sile | --sil)
    1032       continue ;;
    1033     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    1034       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    1035     esac
    1036     case $ac_pass in
    1037     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
    1038     2)
    1039       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
    1040       if test $ac_must_keep_next = true; then
    1041         ac_must_keep_next=false # Got value, back to normal.
    1042       else
    1043         case $ac_arg in
    1044           *=* | --config-cache | -C | -disable-* | --disable-* \
    1045           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
    1046           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
    1047           | -with-* | --with-* | -without-* | --without-* | --x)
    1048             case "$ac_configure_args0 " in
    1049               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
    1050             esac
    1051             ;;
    1052           -* ) ac_must_keep_next=true ;;
    1053         esac
    1054       fi
    1055       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    1056       # Get rid of the leading space.
    1057       ac_sep=" "
    1058       ;;
    1059     esac
    1060   done
    1061 done
    1062 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
    1063 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
    1064 
    1065 # When interrupted or exit'd, cleanup temporary files, and complete
    1066 # config.log.  We remove comments because anyway the quotes in there
    1067 # would cause problems or look ugly.
    1068 # WARNING: Be sure not to use single quotes in there, as some shells,
    1069 # such as our DU 5.0 friend, will then `close' the trap.
    1070 trap 'exit_status=$?
    1071   # Save into config.log some information that might help in debugging.
    1072   {
    1073     echo
    1074 
    1075     cat <<\_ASBOX
    1076 ## ---------------- ##
    1077 ## Cache variables. ##
    1078 ## ---------------- ##
    1079 _ASBOX
    1080     echo
    1081     # The following way of writing the cache mishandles newlines in values,
    1082 {
    1083   (set) 2>&1 |
    1084     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    1085     *ac_space=\ *)
    1086       sed -n \
    1087         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    1088           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
    1089       ;;
    1090     *)
    1091       sed -n \
    1092         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    1093       ;;
    1094     esac;
    1095 }
    1096     echo
    1097 
    1098     cat <<\_ASBOX
    1099 ## ----------------- ##
    1100 ## Output variables. ##
    1101 ## ----------------- ##
    1102 _ASBOX
    1103     echo
    1104     for ac_var in $ac_subst_vars
    1105     do
    1106       eval ac_val=$`echo $ac_var`
    1107       echo "$ac_var='"'"'$ac_val'"'"'"
    1108     done | sort
    1109     echo
    1110 
    1111     if test -n "$ac_subst_files"; then
    1112       cat <<\_ASBOX
    1113 ## ------------- ##
    1114 ## Output files. ##
    1115 ## ------------- ##
    1116 _ASBOX
    1117       echo
    1118       for ac_var in $ac_subst_files
    1119       do
    1120         eval ac_val=$`echo $ac_var`
    1121         echo "$ac_var='"'"'$ac_val'"'"'"
    1122       done | sort
    1123       echo
    1124     fi
    1125 
    1126     if test -s confdefs.h; then
    1127       cat <<\_ASBOX
    1128 ## ----------- ##
    1129 ## confdefs.h. ##
    1130 ## ----------- ##
    1131 _ASBOX
    1132       echo
    1133       sed "/^$/d" confdefs.h | sort
    1134       echo
    1135     fi
    1136     test "$ac_signal" != 0 &&
    1137       echo "$as_me: caught signal $ac_signal"
    1138     echo "$as_me: exit $exit_status"
    1139   } >&5
    1140   rm -f core core.* *.core &&
    1141   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
    1142     exit $exit_status
    1143      ' 0
    1144 for ac_signal in 1 2 13 15; do
    1145   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
    1146 done
    1147 ac_signal=0
    1148 
    1149 # confdefs.h avoids OS command line length limits that DEFS can exceed.
    1150 rm -rf conftest* confdefs.h
    1151 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
    1152 echo >confdefs.h
    1153 
    1154 # Predefined preprocessor variables.
    1155 
    1156 cat >>confdefs.h <<_ACEOF
    1157 #define PACKAGE_NAME "$PACKAGE_NAME"
    1158 _ACEOF
    1159 
    1160 
    1161 cat >>confdefs.h <<_ACEOF
    1162 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
    1163 _ACEOF
    1164 
    1165 
    1166 cat >>confdefs.h <<_ACEOF
    1167 #define PACKAGE_VERSION "$PACKAGE_VERSION"
    1168 _ACEOF
    1169 
    1170 
    1171 cat >>confdefs.h <<_ACEOF
    1172 #define PACKAGE_STRING "$PACKAGE_STRING"
    1173 _ACEOF
    1174 
    1175 
    1176 cat >>confdefs.h <<_ACEOF
    1177 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
    1178 _ACEOF
    1179 
    1180 
    1181 # Let the site file select an alternate cache file if it wants to.
     509srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
     510
    1182511# Prefer explicitly selected file to automatically selected ones.
    1183512if test -z "$CONFIG_SITE"; then
     
    1190519for ac_site_file in $CONFIG_SITE; do
    1191520  if test -r "$ac_site_file"; then
    1192     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
    1193 echo "$as_me: loading site script $ac_site_file" >&6;}
    1194     sed 's/^/| /' "$ac_site_file" >&5
     521    echo "loading site script $ac_site_file"
    1195522    . "$ac_site_file"
    1196523  fi
     
    1198525
    1199526if test -r "$cache_file"; then
    1200   # Some versions of bash will fail to source /dev/null (special
    1201   # files actually), so we avoid doing that.
    1202   if test -f "$cache_file"; then
    1203     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
    1204 echo "$as_me: loading cache $cache_file" >&6;}
    1205     case $cache_file in
    1206       [\\/]* | ?:[\\/]* ) . $cache_file;;
    1207       *)                      . ./$cache_file;;
    1208     esac
     527  echo "loading cache $cache_file"
     528  . $cache_file
     529else
     530  echo "creating cache $cache_file"
     531  > $cache_file
     532fi
     533
     534ac_ext=c
     535# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     536ac_cpp='$CPP $CPPFLAGS'
     537ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     538ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     539cross_compiling=$ac_cv_prog_cc_cross
     540
     541ac_exeext=
     542ac_objext=o
     543if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
     544  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
     545  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
     546    ac_n= ac_c='
     547' ac_t='        '
     548  else
     549    ac_n=-n ac_c= ac_t=
    1209550  fi
    1210551else
    1211   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
    1212 echo "$as_me: creating cache $cache_file" >&6;}
    1213   >$cache_file
    1214 fi
    1215 
    1216 # Check that the precious variables saved in the cache have kept the same
    1217 # value.
    1218 ac_cache_corrupted=false
    1219 for ac_var in `(set) 2>&1 |
    1220                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
    1221   eval ac_old_set=\$ac_cv_env_${ac_var}_set
    1222   eval ac_new_set=\$ac_env_${ac_var}_set
    1223   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
    1224   eval ac_new_val="\$ac_env_${ac_var}_value"
    1225   case $ac_old_set,$ac_new_set in
    1226     set,)
    1227       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
    1228 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
    1229       ac_cache_corrupted=: ;;
    1230     ,set)
    1231       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
    1232 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
    1233       ac_cache_corrupted=: ;;
    1234     ,);;
    1235     *)
    1236       if test "x$ac_old_val" != "x$ac_new_val"; then
    1237         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
    1238 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
    1239         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
    1240 echo "$as_me:   former value:  $ac_old_val" >&2;}
    1241         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
    1242 echo "$as_me:   current value: $ac_new_val" >&2;}
    1243         ac_cache_corrupted=:
    1244       fi;;
    1245   esac
    1246   # Pass precious variables to config.status.
    1247   if test "$ac_new_set" = set; then
    1248     case $ac_new_val in
    1249     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    1250       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    1251     *) ac_arg=$ac_var=$ac_new_val ;;
    1252     esac
    1253     case " $ac_configure_args " in
    1254       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
    1255       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
    1256     esac
    1257   fi
    1258 done
    1259 if $ac_cache_corrupted; then
    1260   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
    1261 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
    1262   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
    1263 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
    1264    { (exit 1); exit 1; }; }
    1265 fi
    1266 
    1267 ac_ext=c
    1268 ac_cpp='$CPP $CPPFLAGS'
    1269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    1270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    1272 
    1273 
    1274 
    1275 
    1276 
    1277 
    1278 
    1279 
    1280 
    1281 
    1282 
    1283 
    1284 
    1285 
    1286 
    1287 
    1288 
    1289 
    1290 
    1291           ac_config_headers="$ac_config_headers mod2.h"
    1292 
    1293           ac_config_headers="$ac_config_headers ../kernel/mod2.h"
    1294 
    1295 
    1296 
    1297 echo "$as_me:$LINENO: checking uname for singular" >&5
    1298 echo $ECHO_N "checking uname for singular... $ECHO_C" >&6
    1299 if test "${ac_cv_singuname+set}" = set; then
    1300   echo $ECHO_N "(cached) $ECHO_C" >&6
     552  ac_n= ac_c='\c' ac_t=
     553fi
     554
     555
     556
     557
     558
     559
     560echo $ac_n "checking uname for singular""... $ac_c" 1>&6
     561echo "configure:562: checking uname for singular" >&5
     562if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then
     563  echo $ac_n "(cached) $ac_c" 1>&6
    1301564else
    1302565  ac_cv_singuname="unknown"
     
    1314577fi
    1315578
    1316 echo "$as_me:$LINENO: result: $ac_cv_singuname" >&5
    1317 echo "${ECHO_T}$ac_cv_singuname" >&6
     579echo "$ac_t""$ac_cv_singuname" 1>&6
    1318580if test "$ac_cv_singuname" = unknown; then
    1319   { echo "$as_me:$LINENO: WARNING: Unknown architecture: Check singuname.sh" >&5
    1320 echo "$as_me: WARNING: Unknown architecture: Check singuname.sh" >&2;}
     581  echo "configure: warning: Unknown architecture: Check singuname.sh" 1>&2
    1321582  ac_cv_singuname="unknown"
    1322583fi
    1323 cat >>confdefs.h <<_ACEOF
     584cat >> confdefs.h <<EOF
    1324585#define S_UNAME "$ac_cv_singuname"
    1325 _ACEOF
     586EOF
    1326587
    1327588SINGUNAME=$ac_cv_singuname
     
    1351612
    1352613
    1353 cat >>confdefs.h <<_ACEOF
     614cat >> confdefs.h <<EOF
    1354615#define SINGULAR_MAJOR_VERSION ${SINGULAR_MAJOR_VERSION}
    1355 _ACEOF
    1356 
    1357 cat >>confdefs.h <<_ACEOF
     616EOF
     617
     618cat >> confdefs.h <<EOF
    1358619#define SINGULAR_MINOR_VERSION ${SINGULAR_MINOR_VERSION}
    1359 _ACEOF
    1360 
    1361 cat >>confdefs.h <<_ACEOF
     620EOF
     621
     622cat >> confdefs.h <<EOF
    1362623#define SINGULAR_SUB_VERSION ${SINGULAR_SUB_VERSION}
    1363 _ACEOF
    1364 
    1365 cat >>confdefs.h <<_ACEOF
     624EOF
     625
     626cat >> confdefs.h <<EOF
    1366627#define S_VERSION1 "${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}"
    1367 _ACEOF
    1368 
    1369 cat >>confdefs.h <<_ACEOF
     628EOF
     629
     630cat >> confdefs.h <<EOF
    1370631#define S_VERSION2 "${VERSION_DATE}"
    1371 _ACEOF
    1372 
    1373 cat >>confdefs.h <<_ACEOF
     632EOF
     633
     634cat >> confdefs.h <<EOF
    1374635#define SINGULAR_SUB_VERSION ${SINGULAR_SUB_VERSION}
    1375 _ACEOF
     636EOF
    1376637
    1377638
     
    1392653  ac_cxx_set=yes
    1393654fi
    1394 ac_ext=c
    1395 ac_cpp='$CPP $CPPFLAGS'
    1396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    1397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    1399 if test -n "$ac_tool_prefix"; then
    1400   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    1401 set dummy ${ac_tool_prefix}gcc; ac_word=$2
    1402 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1404 if test "${ac_cv_prog_CC+set}" = set; then
    1405   echo $ECHO_N "(cached) $ECHO_C" >&6
     655# Extract the first word of "gcc", so it can be a program name with args.
     656set dummy gcc; ac_word=$2
     657echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     658echo "configure:659: checking for $ac_word" >&5
     659if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
     660  echo $ac_n "(cached) $ac_c" 1>&6
    1406661else
    1407662  if test -n "$CC"; then
    1408663  ac_cv_prog_CC="$CC" # Let the user override the test.
    1409664else
    1410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1411 for as_dir in $PATH
    1412 do
    1413   IFS=$as_save_IFS
    1414   test -z "$as_dir" && as_dir=.
    1415   for ac_exec_ext in '' $ac_executable_extensions; do
    1416   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1417     ac_cv_prog_CC="${ac_tool_prefix}gcc"
    1418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    1419     break 2
    1420   fi
    1421 done
    1422 done
    1423 
    1424 fi
    1425 fi
    1426 CC=$ac_cv_prog_CC
     665  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     666  ac_dummy="$PATH"
     667  for ac_dir in $ac_dummy; do
     668    test -z "$ac_dir" && ac_dir=.
     669    if test -f $ac_dir/$ac_word; then
     670      ac_cv_prog_CC="gcc"
     671      break
     672    fi
     673  done
     674  IFS="$ac_save_ifs"
     675fi
     676fi
     677CC="$ac_cv_prog_CC"
    1427678if test -n "$CC"; then
    1428   echo "$as_me:$LINENO: result: $CC" >&5
    1429 echo "${ECHO_T}$CC" >&6
    1430 else
    1431   echo "$as_me:$LINENO: result: no" >&5
    1432 echo "${ECHO_T}no" >&6
    1433 fi
    1434 
    1435 fi
    1436 if test -z "$ac_cv_prog_CC"; then
    1437   ac_ct_CC=$CC
    1438   # Extract the first word of "gcc", so it can be a program name with args.
    1439 set dummy gcc; ac_word=$2
    1440 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1442 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1443   echo $ECHO_N "(cached) $ECHO_C" >&6
    1444 else
    1445   if test -n "$ac_ct_CC"; then
    1446   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    1447 else
    1448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1449 for as_dir in $PATH
    1450 do
    1451   IFS=$as_save_IFS
    1452   test -z "$as_dir" && as_dir=.
    1453   for ac_exec_ext in '' $ac_executable_extensions; do
    1454   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1455     ac_cv_prog_ac_ct_CC="gcc"
    1456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    1457     break 2
    1458   fi
    1459 done
    1460 done
    1461 
    1462 fi
    1463 fi
    1464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    1465 if test -n "$ac_ct_CC"; then
    1466   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    1467 echo "${ECHO_T}$ac_ct_CC" >&6
    1468 else
    1469   echo "$as_me:$LINENO: result: no" >&5
    1470 echo "${ECHO_T}no" >&6
    1471 fi
    1472 
    1473   CC=$ac_ct_CC
    1474 else
    1475   CC="$ac_cv_prog_CC"
    1476 fi
    1477 
    1478 if test -z "$CC"; then
    1479   if test -n "$ac_tool_prefix"; then
    1480   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    1481 set dummy ${ac_tool_prefix}cc; ac_word=$2
    1482 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1484 if test "${ac_cv_prog_CC+set}" = set; then
    1485   echo $ECHO_N "(cached) $ECHO_C" >&6
    1486 else
    1487   if test -n "$CC"; then
    1488   ac_cv_prog_CC="$CC" # Let the user override the test.
    1489 else
    1490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1491 for as_dir in $PATH
    1492 do
    1493   IFS=$as_save_IFS
    1494   test -z "$as_dir" && as_dir=.
    1495   for ac_exec_ext in '' $ac_executable_extensions; do
    1496   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1497     ac_cv_prog_CC="${ac_tool_prefix}cc"
    1498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    1499     break 2
    1500   fi
    1501 done
    1502 done
    1503 
    1504 fi
    1505 fi
    1506 CC=$ac_cv_prog_CC
    1507 if test -n "$CC"; then
    1508   echo "$as_me:$LINENO: result: $CC" >&5
    1509 echo "${ECHO_T}$CC" >&6
    1510 else
    1511   echo "$as_me:$LINENO: result: no" >&5
    1512 echo "${ECHO_T}no" >&6
    1513 fi
    1514 
    1515 fi
    1516 if test -z "$ac_cv_prog_CC"; then
    1517   ac_ct_CC=$CC
    1518   # Extract the first word of "cc", so it can be a program name with args.
    1519 set dummy cc; ac_word=$2
    1520 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1522 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1523   echo $ECHO_N "(cached) $ECHO_C" >&6
    1524 else
    1525   if test -n "$ac_ct_CC"; then
    1526   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    1527 else
    1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1529 for as_dir in $PATH
    1530 do
    1531   IFS=$as_save_IFS
    1532   test -z "$as_dir" && as_dir=.
    1533   for ac_exec_ext in '' $ac_executable_extensions; do
    1534   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1535     ac_cv_prog_ac_ct_CC="cc"
    1536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    1537     break 2
    1538   fi
    1539 done
    1540 done
    1541 
    1542 fi
    1543 fi
    1544 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    1545 if test -n "$ac_ct_CC"; then
    1546   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    1547 echo "${ECHO_T}$ac_ct_CC" >&6
    1548 else
    1549   echo "$as_me:$LINENO: result: no" >&5
    1550 echo "${ECHO_T}no" >&6
    1551 fi
    1552 
    1553   CC=$ac_ct_CC
    1554 else
    1555   CC="$ac_cv_prog_CC"
    1556 fi
    1557 
    1558 fi
     679  echo "$ac_t""$CC" 1>&6
     680else
     681  echo "$ac_t""no" 1>&6
     682fi
     683
    1559684if test -z "$CC"; then
    1560685  # Extract the first word of "cc", so it can be a program name with args.
    1561686set dummy cc; ac_word=$2
    1562 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1564 if test "${ac_cv_prog_CC+set}" = set; then
    1565   echo $ECHO_N "(cached) $ECHO_C" >&6
     687echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     688echo "configure:689: checking for $ac_word" >&5
     689if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
     690  echo $ac_n "(cached) $ac_c" 1>&6
    1566691else
    1567692  if test -n "$CC"; then
    1568693  ac_cv_prog_CC="$CC" # Let the user override the test.
    1569694else
     695  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    1570696  ac_prog_rejected=no
    1571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1572 for as_dir in $PATH
    1573 do
    1574   IFS=$as_save_IFS
    1575   test -z "$as_dir" && as_dir=.
    1576   for ac_exec_ext in '' $ac_executable_extensions; do
    1577   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1578     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    1579        ac_prog_rejected=yes
    1580        continue
    1581      fi
    1582     ac_cv_prog_CC="cc"
    1583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    1584     break 2
    1585   fi
    1586 done
    1587 done
    1588 
     697  ac_dummy="$PATH"
     698  for ac_dir in $ac_dummy; do
     699    test -z "$ac_dir" && ac_dir=.
     700    if test -f $ac_dir/$ac_word; then
     701      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
     702        ac_prog_rejected=yes
     703        continue
     704      fi
     705      ac_cv_prog_CC="cc"
     706      break
     707    fi
     708  done
     709  IFS="$ac_save_ifs"
    1589710if test $ac_prog_rejected = yes; then
    1590711  # We found a bogon in the path, so make sure we never use it.
    1591712  set dummy $ac_cv_prog_CC
    1592713  shift
    1593   if test $# != 0; then
     714  if test $# -gt 0; then
    1594715    # We chose a different compiler from the bogus one.
    1595716    # However, it has the same basename, so the bogon will be chosen
    1596717    # first if we set CC to just the basename; use the full file name.
    1597718    shift
    1598     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
     719    set dummy "$ac_dir/$ac_word" "$@"
     720    shift
     721    ac_cv_prog_CC="$@"
    1599722  fi
    1600723fi
    1601724fi
    1602725fi
    1603 CC=$ac_cv_prog_CC
     726CC="$ac_cv_prog_CC"
    1604727if test -n "$CC"; then
    1605   echo "$as_me:$LINENO: result: $CC" >&5
    1606 echo "${ECHO_T}$CC" >&6
    1607 else
    1608   echo "$as_me:$LINENO: result: no" >&5
    1609 echo "${ECHO_T}no" >&6
    1610 fi
    1611 
    1612 fi
    1613 if test -z "$CC"; then
    1614   if test -n "$ac_tool_prefix"; then
    1615   for ac_prog in cl
    1616   do
    1617     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    1618 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    1619 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1621 if test "${ac_cv_prog_CC+set}" = set; then
    1622   echo $ECHO_N "(cached) $ECHO_C" >&6
     728  echo "$ac_t""$CC" 1>&6
     729else
     730  echo "$ac_t""no" 1>&6
     731fi
     732
     733  if test -z "$CC"; then
     734    case "`uname -s`" in
     735    *win32* | *WIN32*)
     736      # Extract the first word of "cl", so it can be a program name with args.
     737set dummy cl; ac_word=$2
     738echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     739echo "configure:740: checking for $ac_word" >&5
     740if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
     741  echo $ac_n "(cached) $ac_c" 1>&6
    1623742else
    1624743  if test -n "$CC"; then
    1625744  ac_cv_prog_CC="$CC" # Let the user override the test.
    1626745else
    1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1628 for as_dir in $PATH
    1629 do
    1630   IFS=$as_save_IFS
    1631   test -z "$as_dir" && as_dir=.
    1632   for ac_exec_ext in '' $ac_executable_extensions; do
    1633   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1634     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    1635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    1636     break 2
     746  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     747  ac_dummy="$PATH"
     748  for ac_dir in $ac_dummy; do
     749    test -z "$ac_dir" && ac_dir=.
     750    if test -f $ac_dir/$ac_word; then
     751      ac_cv_prog_CC="cl"
     752      break
     753    fi
     754  done
     755  IFS="$ac_save_ifs"
     756fi
     757fi
     758CC="$ac_cv_prog_CC"
     759if test -n "$CC"; then
     760  echo "$ac_t""$CC" 1>&6
     761else
     762  echo "$ac_t""no" 1>&6
     763fi
     764 ;;
     765    esac
    1637766  fi
    1638 done
    1639 done
    1640 
    1641 fi
    1642 fi
    1643 CC=$ac_cv_prog_CC
    1644 if test -n "$CC"; then
    1645   echo "$as_me:$LINENO: result: $CC" >&5
    1646 echo "${ECHO_T}$CC" >&6
    1647 else
    1648   echo "$as_me:$LINENO: result: no" >&5
    1649 echo "${ECHO_T}no" >&6
    1650 fi
    1651 
    1652     test -n "$CC" && break
    1653   done
    1654 fi
    1655 if test -z "$CC"; then
    1656   ac_ct_CC=$CC
    1657   for ac_prog in cl
    1658 do
    1659   # Extract the first word of "$ac_prog", so it can be a program name with args.
    1660 set dummy $ac_prog; ac_word=$2
    1661 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1663 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1664   echo $ECHO_N "(cached) $ECHO_C" >&6
    1665 else
    1666   if test -n "$ac_ct_CC"; then
    1667   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    1668 else
    1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1670 for as_dir in $PATH
    1671 do
    1672   IFS=$as_save_IFS
    1673   test -z "$as_dir" && as_dir=.
    1674   for ac_exec_ext in '' $ac_executable_extensions; do
    1675   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1676     ac_cv_prog_ac_ct_CC="$ac_prog"
    1677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    1678     break 2
     767  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
     768fi
     769
     770echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
     771echo "configure:772: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     772
     773ac_ext=c
     774# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     775ac_cpp='$CPP $CPPFLAGS'
     776ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     777ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     778cross_compiling=$ac_cv_prog_cc_cross
     779
     780cat > conftest.$ac_ext << EOF
     781
     782#line 783 "configure"
     783#include "confdefs.h"
     784
     785main(){return(0);}
     786EOF
     787if { (eval echo configure:788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     788  ac_cv_prog_cc_works=yes
     789  # If we can't run a trivial program, we are probably using a cross compiler.
     790  if (./conftest; exit) 2>/dev/null; then
     791    ac_cv_prog_cc_cross=no
     792  else
     793    ac_cv_prog_cc_cross=yes
    1679794  fi
    1680 done
    1681 done
    1682 
    1683 fi
    1684 fi
    1685 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    1686 if test -n "$ac_ct_CC"; then
    1687   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    1688 echo "${ECHO_T}$ac_ct_CC" >&6
    1689 else
    1690   echo "$as_me:$LINENO: result: no" >&5
    1691 echo "${ECHO_T}no" >&6
    1692 fi
    1693 
    1694   test -n "$ac_ct_CC" && break
    1695 done
    1696 
    1697   CC=$ac_ct_CC
    1698 fi
    1699 
    1700 fi
    1701 
    1702 
    1703 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
    1704 See \`config.log' for more details." >&5
    1705 echo "$as_me: error: no acceptable C compiler found in \$PATH
    1706 See \`config.log' for more details." >&2;}
    1707    { (exit 1); exit 1; }; }
    1708 
    1709 # Provide some information about the compiler.
    1710 echo "$as_me:$LINENO:" \
    1711      "checking for C compiler version" >&5
    1712 ac_compiler=`set X $ac_compile; echo $2`
    1713 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
    1714   (eval $ac_compiler --version </dev/null >&5) 2>&5
    1715   ac_status=$?
    1716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1717   (exit $ac_status); }
    1718 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
    1719   (eval $ac_compiler -v </dev/null >&5) 2>&5
    1720   ac_status=$?
    1721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1722   (exit $ac_status); }
    1723 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
    1724   (eval $ac_compiler -V </dev/null >&5) 2>&5
    1725   ac_status=$?
    1726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1727   (exit $ac_status); }
    1728 
    1729 cat >conftest.$ac_ext <<_ACEOF
    1730 #line $LINENO "configure"
    1731 /* confdefs.h.  */
    1732 _ACEOF
    1733 cat confdefs.h >>conftest.$ac_ext
    1734 cat >>conftest.$ac_ext <<_ACEOF
    1735 /* end confdefs.h.  */
    1736 
    1737 int
    1738 main ()
    1739 {
    1740 
    1741   ;
    1742   return 0;
    1743 }
    1744 _ACEOF
    1745 ac_clean_files_save=$ac_clean_files
    1746 ac_clean_files="$ac_clean_files a.out a.exe b.out"
    1747 # Try to create an executable without -o first, disregard a.out.
    1748 # It will help us diagnose broken compilers, and finding out an intuition
    1749 # of exeext.
    1750 echo "$as_me:$LINENO: checking for C compiler default output" >&5
    1751 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
    1752 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    1753 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
    1754   (eval $ac_link_default) 2>&5
    1755   ac_status=$?
    1756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1757   (exit $ac_status); }; then
    1758   # Find the output, starting from the most likely.  This scheme is
    1759 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
    1760 # resort.
    1761 
    1762 # Be careful to initialize this variable, since it used to be cached.
    1763 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
    1764 ac_cv_exeext=
    1765 # b.out is created by i960 compilers.
    1766 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
    1767 do
    1768   test -f "$ac_file" || continue
    1769   case $ac_file in
    1770     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
    1771         ;;
    1772     conftest.$ac_ext )
    1773         # This is the source file.
    1774         ;;
    1775     [ab].out )
    1776         # We found the default executable, but exeext='' is most
    1777         # certainly right.
    1778         break;;
    1779     *.* )
    1780         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    1781         # FIXME: I believe we export ac_cv_exeext for Libtool,
    1782         # but it would be cool to find out if it's true.  Does anybody
    1783         # maintain Libtool? --akim.
    1784         export ac_cv_exeext
    1785         break;;
    1786     * )
    1787         break;;
    1788   esac
    1789 done
    1790 else
    1791   echo "$as_me: failed program was:" >&5
    1792 sed 's/^/| /' conftest.$ac_ext >&5
    1793 
    1794 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
    1795 See \`config.log' for more details." >&5
    1796 echo "$as_me: error: C compiler cannot create executables
    1797 See \`config.log' for more details." >&2;}
    1798    { (exit 77); exit 77; }; }
    1799 fi
    1800 
    1801 ac_exeext=$ac_cv_exeext
    1802 echo "$as_me:$LINENO: result: $ac_file" >&5
    1803 echo "${ECHO_T}$ac_file" >&6
    1804 
    1805 # Check the compiler produces executables we can run.  If not, either
    1806 # the compiler is broken, or we cross compile.
    1807 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
    1808 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
    1809 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
    1810 # If not cross compiling, check that we can run a simple program.
    1811 if test "$cross_compiling" != yes; then
    1812   if { ac_try='./$ac_file'
    1813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1814   (eval $ac_try) 2>&5
    1815   ac_status=$?
    1816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1817   (exit $ac_status); }; }; then
    1818     cross_compiling=no
    1819   else
    1820     if test "$cross_compiling" = maybe; then
    1821         cross_compiling=yes
    1822     else
    1823         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
    1824 If you meant to cross compile, use \`--host'.
    1825 See \`config.log' for more details." >&5
    1826 echo "$as_me: error: cannot run C compiled programs.
    1827 If you meant to cross compile, use \`--host'.
    1828 See \`config.log' for more details." >&2;}
    1829    { (exit 1); exit 1; }; }
    1830     fi
    1831   fi
    1832 fi
    1833 echo "$as_me:$LINENO: result: yes" >&5
    1834 echo "${ECHO_T}yes" >&6
    1835 
    1836 rm -f a.out a.exe conftest$ac_cv_exeext b.out
    1837 ac_clean_files=$ac_clean_files_save
    1838 # Check the compiler produces executables we can run.  If not, either
    1839 # the compiler is broken, or we cross compile.
    1840 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
    1841 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
    1842 echo "$as_me:$LINENO: result: $cross_compiling" >&5
    1843 echo "${ECHO_T}$cross_compiling" >&6
    1844 
    1845 echo "$as_me:$LINENO: checking for suffix of executables" >&5
    1846 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
    1847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    1848   (eval $ac_link) 2>&5
    1849   ac_status=$?
    1850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1851   (exit $ac_status); }; then
    1852   # If both `conftest.exe' and `conftest' are `present' (well, observable)
    1853 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
    1854 # work properly (i.e., refer to `conftest.exe'), while it won't with
    1855 # `rm'.
    1856 for ac_file in conftest.exe conftest conftest.*; do
    1857   test -f "$ac_file" || continue
    1858   case $ac_file in
    1859     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
    1860     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    1861           export ac_cv_exeext
    1862           break;;
    1863     * ) break;;
    1864   esac
    1865 done
    1866 else
    1867   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
    1868 See \`config.log' for more details." >&5
    1869 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
    1870 See \`config.log' for more details." >&2;}
    1871    { (exit 1); exit 1; }; }
    1872 fi
    1873 
    1874 rm -f conftest$ac_cv_exeext
    1875 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
    1876 echo "${ECHO_T}$ac_cv_exeext" >&6
    1877 
    1878 rm -f conftest.$ac_ext
    1879 EXEEXT=$ac_cv_exeext
    1880 ac_exeext=$EXEEXT
    1881 echo "$as_me:$LINENO: checking for suffix of object files" >&5
    1882 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
    1883 if test "${ac_cv_objext+set}" = set; then
    1884   echo $ECHO_N "(cached) $ECHO_C" >&6
    1885 else
    1886   cat >conftest.$ac_ext <<_ACEOF
    1887 #line $LINENO "configure"
    1888 /* confdefs.h.  */
    1889 _ACEOF
    1890 cat confdefs.h >>conftest.$ac_ext
    1891 cat >>conftest.$ac_ext <<_ACEOF
    1892 /* end confdefs.h.  */
    1893 
    1894 int
    1895 main ()
    1896 {
    1897 
    1898   ;
    1899   return 0;
    1900 }
    1901 _ACEOF
    1902 rm -f conftest.o conftest.obj
    1903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    1904   (eval $ac_compile) 2>&5
    1905   ac_status=$?
    1906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1907   (exit $ac_status); }; then
    1908   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
    1909   case $ac_file in
    1910     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
    1911     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
    1912        break;;
    1913   esac
    1914 done
    1915 else
    1916   echo "$as_me: failed program was:" >&5
    1917 sed 's/^/| /' conftest.$ac_ext >&5
    1918 
    1919 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
    1920 See \`config.log' for more details." >&5
    1921 echo "$as_me: error: cannot compute suffix of object files: cannot compile
    1922 See \`config.log' for more details." >&2;}
    1923    { (exit 1); exit 1; }; }
    1924 fi
    1925 
    1926 rm -f conftest.$ac_cv_objext conftest.$ac_ext
    1927 fi
    1928 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
    1929 echo "${ECHO_T}$ac_cv_objext" >&6
    1930 OBJEXT=$ac_cv_objext
    1931 ac_objext=$OBJEXT
    1932 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
    1933 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
    1934 if test "${ac_cv_c_compiler_gnu+set}" = set; then
    1935   echo $ECHO_N "(cached) $ECHO_C" >&6
    1936 else
    1937   cat >conftest.$ac_ext <<_ACEOF
    1938 #line $LINENO "configure"
    1939 /* confdefs.h.  */
    1940 _ACEOF
    1941 cat confdefs.h >>conftest.$ac_ext
    1942 cat >>conftest.$ac_ext <<_ACEOF
    1943 /* end confdefs.h.  */
    1944 
    1945 int
    1946 main ()
    1947 {
    1948 #ifndef __GNUC__
    1949        choke me
     795else
     796  echo "configure: failed program was:" >&5
     797  cat conftest.$ac_ext >&5
     798  ac_cv_prog_cc_works=no
     799fi
     800rm -fr conftest*
     801ac_ext=c
     802# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     803ac_cpp='$CPP $CPPFLAGS'
     804ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     805ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     806cross_compiling=$ac_cv_prog_cc_cross
     807
     808echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
     809if test $ac_cv_prog_cc_works = no; then
     810  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
     811fi
     812echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
     813echo "configure:814: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     814echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
     815cross_compiling=$ac_cv_prog_cc_cross
     816
     817echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
     818echo "configure:819: checking whether we are using GNU C" >&5
     819if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
     820  echo $ac_n "(cached) $ac_c" 1>&6
     821else
     822  cat > conftest.c <<EOF
     823#ifdef __GNUC__
     824  yes;
    1950825#endif
    1951 
    1952   ;
    1953   return 0;
    1954 }
    1955 _ACEOF
    1956 rm -f conftest.$ac_objext
    1957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    1958   (eval $ac_compile) 2>&5
    1959   ac_status=$?
    1960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1961   (exit $ac_status); } &&
    1962          { ac_try='test -s conftest.$ac_objext'
    1963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1964   (eval $ac_try) 2>&5
    1965   ac_status=$?
    1966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1967   (exit $ac_status); }; }; then
    1968   ac_compiler_gnu=yes
    1969 else
    1970   echo "$as_me: failed program was:" >&5
    1971 sed 's/^/| /' conftest.$ac_ext >&5
    1972 
    1973 ac_compiler_gnu=no
    1974 fi
    1975 rm -f conftest.$ac_objext conftest.$ac_ext
    1976 ac_cv_c_compiler_gnu=$ac_compiler_gnu
    1977 
    1978 fi
    1979 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
    1980 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
    1981 GCC=`test $ac_compiler_gnu = yes && echo yes`
    1982 ac_test_CFLAGS=${CFLAGS+set}
    1983 ac_save_CFLAGS=$CFLAGS
    1984 CFLAGS="-g"
    1985 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
    1986 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
    1987 if test "${ac_cv_prog_cc_g+set}" = set; then
    1988   echo $ECHO_N "(cached) $ECHO_C" >&6
    1989 else
    1990   cat >conftest.$ac_ext <<_ACEOF
    1991 #line $LINENO "configure"
    1992 /* confdefs.h.  */
    1993 _ACEOF
    1994 cat confdefs.h >>conftest.$ac_ext
    1995 cat >>conftest.$ac_ext <<_ACEOF
    1996 /* end confdefs.h.  */
    1997 
    1998 int
    1999 main ()
    2000 {
    2001 
    2002   ;
    2003   return 0;
    2004 }
    2005 _ACEOF
    2006 rm -f conftest.$ac_objext
    2007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2008   (eval $ac_compile) 2>&5
    2009   ac_status=$?
    2010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2011   (exit $ac_status); } &&
    2012          { ac_try='test -s conftest.$ac_objext'
    2013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2014   (eval $ac_try) 2>&5
    2015   ac_status=$?
    2016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2017   (exit $ac_status); }; }; then
     826EOF
     827if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     828  ac_cv_prog_gcc=yes
     829else
     830  ac_cv_prog_gcc=no
     831fi
     832fi
     833
     834echo "$ac_t""$ac_cv_prog_gcc" 1>&6
     835
     836if test $ac_cv_prog_gcc = yes; then
     837  GCC=yes
     838else
     839  GCC=
     840fi
     841
     842ac_test_CFLAGS="${CFLAGS+set}"
     843ac_save_CFLAGS="$CFLAGS"
     844CFLAGS=
     845echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
     846echo "configure:847: checking whether ${CC-cc} accepts -g" >&5
     847if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
     848  echo $ac_n "(cached) $ac_c" 1>&6
     849else
     850  echo 'void f(){}' > conftest.c
     851if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
    2018852  ac_cv_prog_cc_g=yes
    2019853else
    2020   echo "$as_me: failed program was:" >&5
    2021 sed 's/^/| /' conftest.$ac_ext >&5
    2022 
    2023 ac_cv_prog_cc_g=no
    2024 fi
    2025 rm -f conftest.$ac_objext conftest.$ac_ext
    2026 fi
    2027 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
    2028 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
     854  ac_cv_prog_cc_g=no
     855fi
     856rm -f conftest*
     857
     858fi
     859
     860echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
    2029861if test "$ac_test_CFLAGS" = set; then
    2030   CFLAGS=$ac_save_CFLAGS
     862  CFLAGS="$ac_save_CFLAGS"
    2031863elif test $ac_cv_prog_cc_g = yes; then
    2032864  if test "$GCC" = yes; then
     
    2042874  fi
    2043875fi
    2044 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
    2045 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
    2046 if test "${ac_cv_prog_cc_stdc+set}" = set; then
    2047   echo $ECHO_N "(cached) $ECHO_C" >&6
    2048 else
    2049   ac_cv_prog_cc_stdc=no
    2050 ac_save_CC=$CC
    2051 cat >conftest.$ac_ext <<_ACEOF
    2052 #line $LINENO "configure"
    2053 /* confdefs.h.  */
    2054 _ACEOF
    2055 cat confdefs.h >>conftest.$ac_ext
    2056 cat >>conftest.$ac_ext <<_ACEOF
    2057 /* end confdefs.h.  */
    2058 #include <stdarg.h>
    2059 #include <stdio.h>
    2060 #include <sys/types.h>
    2061 #include <sys/stat.h>
    2062 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
    2063 struct buf { int x; };
    2064 FILE * (*rcsopen) (struct buf *, struct stat *, int);
    2065 static char *e (p, i)
    2066      char **p;
    2067      int i;
    2068 {
    2069   return p[i];
    2070 }
    2071 static char *f (char * (*g) (char **, int), char **p, ...)
    2072 {
    2073   char *s;
    2074   va_list v;
    2075   va_start (v,p);
    2076   s = g (p, va_arg (v,int));
    2077   va_end (v);
    2078   return s;
    2079 }
    2080 int test (int i, double x);
    2081 struct s1 {int (*f) (int a);};
    2082 struct s2 {int (*f) (double a);};
    2083 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
    2084 int argc;
    2085 char **argv;
    2086 int
    2087 main ()
    2088 {
    2089 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
    2090   ;
    2091   return 0;
    2092 }
    2093 _ACEOF
    2094 # Don't try gcc -ansi; that turns off useful extensions and
    2095 # breaks some systems' header files.
    2096 # AIX                   -qlanglvl=ansi
    2097 # Ultrix and OSF/1      -std1
    2098 # HP-UX 10.20 and later -Ae
    2099 # HP-UX older versions  -Aa -D_HPUX_SOURCE
    2100 # SVR4                  -Xc -D__EXTENSIONS__
    2101 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
    2102 do
    2103   CC="$ac_save_CC $ac_arg"
    2104   rm -f conftest.$ac_objext
    2105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2106   (eval $ac_compile) 2>&5
    2107   ac_status=$?
    2108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2109   (exit $ac_status); } &&
    2110          { ac_try='test -s conftest.$ac_objext'
    2111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2112   (eval $ac_try) 2>&5
    2113   ac_status=$?
    2114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2115   (exit $ac_status); }; }; then
    2116   ac_cv_prog_cc_stdc=$ac_arg
    2117 break
    2118 else
    2119   echo "$as_me: failed program was:" >&5
    2120 sed 's/^/| /' conftest.$ac_ext >&5
    2121 
    2122 fi
    2123 rm -f conftest.$ac_objext
    2124 done
    2125 rm -f conftest.$ac_ext conftest.$ac_objext
    2126 CC=$ac_save_CC
    2127 
    2128 fi
    2129 
    2130 case "x$ac_cv_prog_cc_stdc" in
    2131   x|xno)
    2132     echo "$as_me:$LINENO: result: none needed" >&5
    2133 echo "${ECHO_T}none needed" >&6 ;;
    2134   *)
    2135     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
    2136 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    2137     CC="$CC $ac_cv_prog_cc_stdc" ;;
    2138 esac
    2139 
    2140 # Some people use a C++ compiler to compile C.  Since we use `exit',
    2141 # in C++ we need to declare it.  In case someone uses the same compiler
    2142 # for both compiling C and C++ we need to have the C++ compiler decide
    2143 # the declaration of exit, since it's the most demanding environment.
    2144 cat >conftest.$ac_ext <<_ACEOF
    2145 #ifndef __cplusplus
    2146   choke me
    2147 #endif
    2148 _ACEOF
    2149 rm -f conftest.$ac_objext
    2150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2151   (eval $ac_compile) 2>&5
    2152   ac_status=$?
    2153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2154   (exit $ac_status); } &&
    2155          { ac_try='test -s conftest.$ac_objext'
    2156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2157   (eval $ac_try) 2>&5
    2158   ac_status=$?
    2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2160   (exit $ac_status); }; }; then
    2161   for ac_declaration in \
    2162    ''\
    2163    '#include <stdlib.h>' \
    2164    'extern "C" void std::exit (int) throw (); using std::exit;' \
    2165    'extern "C" void std::exit (int); using std::exit;' \
    2166    'extern "C" void exit (int) throw ();' \
    2167    'extern "C" void exit (int);' \
    2168    'void exit (int);'
    2169 do
    2170   cat >conftest.$ac_ext <<_ACEOF
    2171 #line $LINENO "configure"
    2172 /* confdefs.h.  */
    2173 _ACEOF
    2174 cat confdefs.h >>conftest.$ac_ext
    2175 cat >>conftest.$ac_ext <<_ACEOF
    2176 /* end confdefs.h.  */
    2177 #include <stdlib.h>
    2178 $ac_declaration
    2179 int
    2180 main ()
    2181 {
    2182 exit (42);
    2183   ;
    2184   return 0;
    2185 }
    2186 _ACEOF
    2187 rm -f conftest.$ac_objext
    2188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2189   (eval $ac_compile) 2>&5
    2190   ac_status=$?
    2191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2192   (exit $ac_status); } &&
    2193          { ac_try='test -s conftest.$ac_objext'
    2194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2195   (eval $ac_try) 2>&5
    2196   ac_status=$?
    2197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2198   (exit $ac_status); }; }; then
    2199   :
    2200 else
    2201   echo "$as_me: failed program was:" >&5
    2202 sed 's/^/| /' conftest.$ac_ext >&5
    2203 
    2204 continue
    2205 fi
    2206 rm -f conftest.$ac_objext conftest.$ac_ext
    2207   cat >conftest.$ac_ext <<_ACEOF
    2208 #line $LINENO "configure"
    2209 /* confdefs.h.  */
    2210 _ACEOF
    2211 cat confdefs.h >>conftest.$ac_ext
    2212 cat >>conftest.$ac_ext <<_ACEOF
    2213 /* end confdefs.h.  */
    2214 $ac_declaration
    2215 int
    2216 main ()
    2217 {
    2218 exit (42);
    2219   ;
    2220   return 0;
    2221 }
    2222 _ACEOF
    2223 rm -f conftest.$ac_objext
    2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2225   (eval $ac_compile) 2>&5
    2226   ac_status=$?
    2227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2228   (exit $ac_status); } &&
    2229          { ac_try='test -s conftest.$ac_objext'
    2230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2231   (eval $ac_try) 2>&5
    2232   ac_status=$?
    2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2234   (exit $ac_status); }; }; then
    2235   break
    2236 else
    2237   echo "$as_me: failed program was:" >&5
    2238 sed 's/^/| /' conftest.$ac_ext >&5
    2239 
    2240 fi
    2241 rm -f conftest.$ac_objext conftest.$ac_ext
    2242 done
    2243 rm -f conftest*
    2244 if test -n "$ac_declaration"; then
    2245   echo '#ifdef __cplusplus' >>confdefs.h
    2246   echo $ac_declaration      >>confdefs.h
    2247   echo '#endif'             >>confdefs.h
    2248 fi
    2249 
    2250 else
    2251   echo "$as_me: failed program was:" >&5
    2252 sed 's/^/| /' conftest.$ac_ext >&5
    2253 
    2254 fi
    2255 rm -f conftest.$ac_objext conftest.$ac_ext
    2256 ac_ext=c
    2257 ac_cpp='$CPP $CPPFLAGS'
    2258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2261 
    2262 ac_ext=c
    2263 ac_cpp='$CPP $CPPFLAGS'
    2264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2267 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
    2268 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
     876
     877echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
     878echo "configure:879: checking how to run the C preprocessor" >&5
    2269879# On Suns, sometimes $CPP names a directory.
    2270880if test -n "$CPP" && test -d "$CPP"; then
     
    2272882fi
    2273883if test -z "$CPP"; then
    2274   if test "${ac_cv_prog_CPP+set}" = set; then
    2275   echo $ECHO_N "(cached) $ECHO_C" >&6
    2276 else
    2277       # Double quotes because CPP needs to be expanded
    2278     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    2279     do
    2280       ac_preproc_ok=false
    2281 for ac_c_preproc_warn_flag in '' yes
     884if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
     885  echo $ac_n "(cached) $ac_c" 1>&6
     886else
     887    # This must be in double quotes, not single quotes, because CPP may get
     888  # substituted into the Makefile and "${CC-cc}" will confuse make.
     889  CPP="${CC-cc} -E"
     890  # On the NeXT, cc -E runs the code through the compiler's parser,
     891  # not just through cpp.
     892  cat > conftest.$ac_ext <<EOF
     893#line 894 "configure"
     894#include "confdefs.h"
     895#include <assert.h>
     896Syntax Error
     897EOF
     898ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     899{ (eval echo configure:900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     900ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     901if test -z "$ac_err"; then
     902  :
     903else
     904  echo "$ac_err" >&5
     905  echo "configure: failed program was:" >&5
     906  cat conftest.$ac_ext >&5
     907  rm -rf conftest*
     908  CPP="${CC-cc} -E -traditional-cpp"
     909  cat > conftest.$ac_ext <<EOF
     910#line 911 "configure"
     911#include "confdefs.h"
     912#include <assert.h>
     913Syntax Error
     914EOF
     915ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     916{ (eval echo configure:917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     917ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     918if test -z "$ac_err"; then
     919  :
     920else
     921  echo "$ac_err" >&5
     922  echo "configure: failed program was:" >&5
     923  cat conftest.$ac_ext >&5
     924  rm -rf conftest*
     925  CPP="${CC-cc} -nologo -E"
     926  cat > conftest.$ac_ext <<EOF
     927#line 928 "configure"
     928#include "confdefs.h"
     929#include <assert.h>
     930Syntax Error
     931EOF
     932ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     933{ (eval echo configure:934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     934ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     935if test -z "$ac_err"; then
     936  :
     937else
     938  echo "$ac_err" >&5
     939  echo "configure: failed program was:" >&5
     940  cat conftest.$ac_ext >&5
     941  rm -rf conftest*
     942  CPP=/lib/cpp
     943fi
     944rm -f conftest*
     945fi
     946rm -f conftest*
     947fi
     948rm -f conftest*
     949  ac_cv_prog_CPP="$CPP"
     950fi
     951  CPP="$ac_cv_prog_CPP"
     952else
     953  ac_cv_prog_CPP="$CPP"
     954fi
     955echo "$ac_t""$CPP" 1>&6
     956
     957for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
    2282958do
    2283   # Use a header file that comes with gcc, so configuring glibc
    2284   # with a fresh cross-compiler works.
    2285   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    2286   # <limits.h> exists even on freestanding compilers.
    2287   # On the NeXT, cc -E runs the code through the compiler's parser,
    2288   # not just through cpp. "Syntax error" is here to catch this case.
    2289   cat >conftest.$ac_ext <<_ACEOF
    2290 #line $LINENO "configure"
    2291 /* confdefs.h.  */
    2292 _ACEOF
    2293 cat confdefs.h >>conftest.$ac_ext
    2294 cat >>conftest.$ac_ext <<_ACEOF
    2295 /* end confdefs.h.  */
    2296 #ifdef __STDC__
    2297 # include <limits.h>
    2298 #else
    2299 # include <assert.h>
    2300 #endif
    2301                      Syntax error
    2302 _ACEOF
    2303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    2304   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2305   ac_status=$?
    2306   grep -v '^ *+' conftest.er1 >conftest.err
    2307   rm -f conftest.er1
    2308   cat conftest.err >&5
    2309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2310   (exit $ac_status); } >/dev/null; then
    2311   if test -s conftest.err; then
    2312     ac_cpp_err=$ac_c_preproc_warn_flag
    2313   else
    2314     ac_cpp_err=
    2315   fi
    2316 else
    2317   ac_cpp_err=yes
    2318 fi
    2319 if test -z "$ac_cpp_err"; then
    2320   :
    2321 else
    2322   echo "$as_me: failed program was:" >&5
    2323 sed 's/^/| /' conftest.$ac_ext >&5
    2324 
    2325   # Broken: fails on valid input.
    2326 continue
    2327 fi
    2328 rm -f conftest.err conftest.$ac_ext
    2329 
    2330   # OK, works on sane cases.  Now check whether non-existent headers
    2331   # can be detected and how.
    2332   cat >conftest.$ac_ext <<_ACEOF
    2333 #line $LINENO "configure"
    2334 /* confdefs.h.  */
    2335 _ACEOF
    2336 cat confdefs.h >>conftest.$ac_ext
    2337 cat >>conftest.$ac_ext <<_ACEOF
    2338 /* end confdefs.h.  */
    2339 #include <ac_nonexistent.h>
    2340 _ACEOF
    2341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    2342   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2343   ac_status=$?
    2344   grep -v '^ *+' conftest.er1 >conftest.err
    2345   rm -f conftest.er1
    2346   cat conftest.err >&5
    2347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2348   (exit $ac_status); } >/dev/null; then
    2349   if test -s conftest.err; then
    2350     ac_cpp_err=$ac_c_preproc_warn_flag
    2351   else
    2352     ac_cpp_err=
    2353   fi
    2354 else
    2355   ac_cpp_err=yes
    2356 fi
    2357 if test -z "$ac_cpp_err"; then
    2358   # Broken: success on invalid input.
    2359 continue
    2360 else
    2361   echo "$as_me: failed program was:" >&5
    2362 sed 's/^/| /' conftest.$ac_ext >&5
    2363 
    2364   # Passes both tests.
    2365 ac_preproc_ok=:
    2366 break
    2367 fi
    2368 rm -f conftest.err conftest.$ac_ext
    2369 
    2370 done
    2371 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    2372 rm -f conftest.err conftest.$ac_ext
    2373 if $ac_preproc_ok; then
    2374   break
    2375 fi
    2376 
    2377     done
    2378     ac_cv_prog_CPP=$CPP
    2379 
    2380 fi
    2381   CPP=$ac_cv_prog_CPP
    2382 else
    2383   ac_cv_prog_CPP=$CPP
    2384 fi
    2385 echo "$as_me:$LINENO: result: $CPP" >&5
    2386 echo "${ECHO_T}$CPP" >&6
    2387 ac_preproc_ok=false
    2388 for ac_c_preproc_warn_flag in '' yes
    2389 do
    2390   # Use a header file that comes with gcc, so configuring glibc
    2391   # with a fresh cross-compiler works.
    2392   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    2393   # <limits.h> exists even on freestanding compilers.
    2394   # On the NeXT, cc -E runs the code through the compiler's parser,
    2395   # not just through cpp. "Syntax error" is here to catch this case.
    2396   cat >conftest.$ac_ext <<_ACEOF
    2397 #line $LINENO "configure"
    2398 /* confdefs.h.  */
    2399 _ACEOF
    2400 cat confdefs.h >>conftest.$ac_ext
    2401 cat >>conftest.$ac_ext <<_ACEOF
    2402 /* end confdefs.h.  */
    2403 #ifdef __STDC__
    2404 # include <limits.h>
    2405 #else
    2406 # include <assert.h>
    2407 #endif
    2408                      Syntax error
    2409 _ACEOF
    2410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    2411   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2412   ac_status=$?
    2413   grep -v '^ *+' conftest.er1 >conftest.err
    2414   rm -f conftest.er1
    2415   cat conftest.err >&5
    2416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2417   (exit $ac_status); } >/dev/null; then
    2418   if test -s conftest.err; then
    2419     ac_cpp_err=$ac_c_preproc_warn_flag
    2420   else
    2421     ac_cpp_err=
    2422   fi
    2423 else
    2424   ac_cpp_err=yes
    2425 fi
    2426 if test -z "$ac_cpp_err"; then
    2427   :
    2428 else
    2429   echo "$as_me: failed program was:" >&5
    2430 sed 's/^/| /' conftest.$ac_ext >&5
    2431 
    2432   # Broken: fails on valid input.
    2433 continue
    2434 fi
    2435 rm -f conftest.err conftest.$ac_ext
    2436 
    2437   # OK, works on sane cases.  Now check whether non-existent headers
    2438   # can be detected and how.
    2439   cat >conftest.$ac_ext <<_ACEOF
    2440 #line $LINENO "configure"
    2441 /* confdefs.h.  */
    2442 _ACEOF
    2443 cat confdefs.h >>conftest.$ac_ext
    2444 cat >>conftest.$ac_ext <<_ACEOF
    2445 /* end confdefs.h.  */
    2446 #include <ac_nonexistent.h>
    2447 _ACEOF
    2448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    2449   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2450   ac_status=$?
    2451   grep -v '^ *+' conftest.er1 >conftest.err
    2452   rm -f conftest.er1
    2453   cat conftest.err >&5
    2454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2455   (exit $ac_status); } >/dev/null; then
    2456   if test -s conftest.err; then
    2457     ac_cpp_err=$ac_c_preproc_warn_flag
    2458   else
    2459     ac_cpp_err=
    2460   fi
    2461 else
    2462   ac_cpp_err=yes
    2463 fi
    2464 if test -z "$ac_cpp_err"; then
    2465   # Broken: success on invalid input.
    2466 continue
    2467 else
    2468   echo "$as_me: failed program was:" >&5
    2469 sed 's/^/| /' conftest.$ac_ext >&5
    2470 
    2471   # Passes both tests.
    2472 ac_preproc_ok=:
    2473 break
    2474 fi
    2475 rm -f conftest.err conftest.$ac_ext
    2476 
    2477 done
    2478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    2479 rm -f conftest.err conftest.$ac_ext
    2480 if $ac_preproc_ok; then
    2481   :
    2482 else
    2483   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
    2484 See \`config.log' for more details." >&5
    2485 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
    2486 See \`config.log' for more details." >&2;}
    2487    { (exit 1); exit 1; }; }
    2488 fi
    2489 
    2490 ac_ext=c
    2491 ac_cpp='$CPP $CPPFLAGS'
    2492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2495 
    2496 ac_ext=cc
    2497 ac_cpp='$CXXCPP $CPPFLAGS'
    2498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    2501 if test -n "$ac_tool_prefix"; then
    2502   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
    2503   do
    2504     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    2505 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    2506 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2508 if test "${ac_cv_prog_CXX+set}" = set; then
    2509   echo $ECHO_N "(cached) $ECHO_C" >&6
     959# Extract the first word of "$ac_prog", so it can be a program name with args.
     960set dummy $ac_prog; ac_word=$2
     961echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     962echo "configure:963: checking for $ac_word" >&5
     963if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
     964  echo $ac_n "(cached) $ac_c" 1>&6
    2510965else
    2511966  if test -n "$CXX"; then
    2512967  ac_cv_prog_CXX="$CXX" # Let the user override the test.
    2513968else
    2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2515 for as_dir in $PATH
    2516 do
    2517   IFS=$as_save_IFS
    2518   test -z "$as_dir" && as_dir=.
    2519   for ac_exec_ext in '' $ac_executable_extensions; do
    2520   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2521     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    2522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    2523     break 2
     969  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     970  ac_dummy="$PATH"
     971  for ac_dir in $ac_dummy; do
     972    test -z "$ac_dir" && ac_dir=.
     973    if test -f $ac_dir/$ac_word; then
     974      ac_cv_prog_CXX="$ac_prog"
     975      break
     976    fi
     977  done
     978  IFS="$ac_save_ifs"
     979fi
     980fi
     981CXX="$ac_cv_prog_CXX"
     982if test -n "$CXX"; then
     983  echo "$ac_t""$CXX" 1>&6
     984else
     985  echo "$ac_t""no" 1>&6
     986fi
     987
     988test -n "$CXX" && break
     989done
     990test -n "$CXX" || CXX="gcc"
     991
     992
     993echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
     994echo "configure:995: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
     995
     996ac_ext=C
     997# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     998ac_cpp='$CXXCPP $CPPFLAGS'
     999ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     1000ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     1001cross_compiling=$ac_cv_prog_cxx_cross
     1002
     1003cat > conftest.$ac_ext << EOF
     1004
     1005#line 1006 "configure"
     1006#include "confdefs.h"
     1007
     1008int main(){return(0);}
     1009EOF
     1010if { (eval echo configure:1011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1011  ac_cv_prog_cxx_works=yes
     1012  # If we can't run a trivial program, we are probably using a cross compiler.
     1013  if (./conftest; exit) 2>/dev/null; then
     1014    ac_cv_prog_cxx_cross=no
     1015  else
     1016    ac_cv_prog_cxx_cross=yes
    25241017  fi
    2525 done
    2526 done
    2527 
    2528 fi
    2529 fi
    2530 CXX=$ac_cv_prog_CXX
    2531 if test -n "$CXX"; then
    2532   echo "$as_me:$LINENO: result: $CXX" >&5
    2533 echo "${ECHO_T}$CXX" >&6
    2534 else
    2535   echo "$as_me:$LINENO: result: no" >&5
    2536 echo "${ECHO_T}no" >&6
    2537 fi
    2538 
    2539     test -n "$CXX" && break
    2540   done
    2541 fi
    2542 if test -z "$CXX"; then
    2543   ac_ct_CXX=$CXX
    2544   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
    2545 do
    2546   # Extract the first word of "$ac_prog", so it can be a program name with args.
    2547 set dummy $ac_prog; ac_word=$2
    2548 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2550 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
    2551   echo $ECHO_N "(cached) $ECHO_C" >&6
    2552 else
    2553   if test -n "$ac_ct_CXX"; then
    2554   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
    2555 else
    2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2557 for as_dir in $PATH
    2558 do
    2559   IFS=$as_save_IFS
    2560   test -z "$as_dir" && as_dir=.
    2561   for ac_exec_ext in '' $ac_executable_extensions; do
    2562   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2563     ac_cv_prog_ac_ct_CXX="$ac_prog"
    2564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    2565     break 2
    2566   fi
    2567 done
    2568 done
    2569 
    2570 fi
    2571 fi
    2572 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
    2573 if test -n "$ac_ct_CXX"; then
    2574   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
    2575 echo "${ECHO_T}$ac_ct_CXX" >&6
    2576 else
    2577   echo "$as_me:$LINENO: result: no" >&5
    2578 echo "${ECHO_T}no" >&6
    2579 fi
    2580 
    2581   test -n "$ac_ct_CXX" && break
    2582 done
    2583 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
    2584 
    2585   CXX=$ac_ct_CXX
    2586 fi
    2587 
    2588 
    2589 # Provide some information about the compiler.
    2590 echo "$as_me:$LINENO:" \
    2591      "checking for C++ compiler version" >&5
    2592 ac_compiler=`set X $ac_compile; echo $2`
    2593 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
    2594   (eval $ac_compiler --version </dev/null >&5) 2>&5
    2595   ac_status=$?
    2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2597   (exit $ac_status); }
    2598 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
    2599   (eval $ac_compiler -v </dev/null >&5) 2>&5
    2600   ac_status=$?
    2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2602   (exit $ac_status); }
    2603 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
    2604   (eval $ac_compiler -V </dev/null >&5) 2>&5
    2605   ac_status=$?
    2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2607   (exit $ac_status); }
    2608 
    2609 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
    2610 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
    2611 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
    2612   echo $ECHO_N "(cached) $ECHO_C" >&6
    2613 else
    2614   cat >conftest.$ac_ext <<_ACEOF
    2615 #line $LINENO "configure"
    2616 /* confdefs.h.  */
    2617 _ACEOF
    2618 cat confdefs.h >>conftest.$ac_ext
    2619 cat >>conftest.$ac_ext <<_ACEOF
    2620 /* end confdefs.h.  */
    2621 
    2622 int
    2623 main ()
    2624 {
    2625 #ifndef __GNUC__
    2626        choke me
     1018else
     1019  echo "configure: failed program was:" >&5
     1020  cat conftest.$ac_ext >&5
     1021  ac_cv_prog_cxx_works=no
     1022fi
     1023rm -fr conftest*
     1024ac_ext=c
     1025# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     1026ac_cpp='$CPP $CPPFLAGS'
     1027ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     1028ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     1029cross_compiling=$ac_cv_prog_cc_cross
     1030
     1031echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
     1032if test $ac_cv_prog_cxx_works = no; then
     1033  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
     1034fi
     1035echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
     1036echo "configure:1037: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
     1037echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
     1038cross_compiling=$ac_cv_prog_cxx_cross
     1039
     1040echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
     1041echo "configure:1042: checking whether we are using GNU C++" >&5
     1042if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
     1043  echo $ac_n "(cached) $ac_c" 1>&6
     1044else
     1045  cat > conftest.C <<EOF
     1046#ifdef __GNUC__
     1047  yes;
    26271048#endif
    2628 
    2629   ;
    2630   return 0;
    2631 }
    2632 _ACEOF
    2633 rm -f conftest.$ac_objext
    2634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2635   (eval $ac_compile) 2>&5
    2636   ac_status=$?
    2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2638   (exit $ac_status); } &&
    2639          { ac_try='test -s conftest.$ac_objext'
    2640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2641   (eval $ac_try) 2>&5
    2642   ac_status=$?
    2643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2644   (exit $ac_status); }; }; then
    2645   ac_compiler_gnu=yes
    2646 else
    2647   echo "$as_me: failed program was:" >&5
    2648 sed 's/^/| /' conftest.$ac_ext >&5
    2649 
    2650 ac_compiler_gnu=no
    2651 fi
    2652 rm -f conftest.$ac_objext conftest.$ac_ext
    2653 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
    2654 
    2655 fi
    2656 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
    2657 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
    2658 GXX=`test $ac_compiler_gnu = yes && echo yes`
    2659 ac_test_CXXFLAGS=${CXXFLAGS+set}
    2660 ac_save_CXXFLAGS=$CXXFLAGS
    2661 CXXFLAGS="-g"
    2662 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
    2663 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
    2664 if test "${ac_cv_prog_cxx_g+set}" = set; then
    2665   echo $ECHO_N "(cached) $ECHO_C" >&6
    2666 else
    2667   cat >conftest.$ac_ext <<_ACEOF
    2668 #line $LINENO "configure"
    2669 /* confdefs.h.  */
    2670 _ACEOF
    2671 cat confdefs.h >>conftest.$ac_ext
    2672 cat >>conftest.$ac_ext <<_ACEOF
    2673 /* end confdefs.h.  */
    2674 
    2675 int
    2676 main ()
    2677 {
    2678 
    2679   ;
    2680   return 0;
    2681 }
    2682 _ACEOF
    2683 rm -f conftest.$ac_objext
    2684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2685   (eval $ac_compile) 2>&5
    2686   ac_status=$?
    2687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2688   (exit $ac_status); } &&
    2689          { ac_try='test -s conftest.$ac_objext'
    2690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2691   (eval $ac_try) 2>&5
    2692   ac_status=$?
    2693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2694   (exit $ac_status); }; }; then
     1049EOF
     1050if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1051  ac_cv_prog_gxx=yes
     1052else
     1053  ac_cv_prog_gxx=no
     1054fi
     1055fi
     1056
     1057echo "$ac_t""$ac_cv_prog_gxx" 1>&6
     1058
     1059if test $ac_cv_prog_gxx = yes; then
     1060  GXX=yes
     1061else
     1062  GXX=
     1063fi
     1064
     1065ac_test_CXXFLAGS="${CXXFLAGS+set}"
     1066ac_save_CXXFLAGS="$CXXFLAGS"
     1067CXXFLAGS=
     1068echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
     1069echo "configure:1070: checking whether ${CXX-g++} accepts -g" >&5
     1070if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
     1071  echo $ac_n "(cached) $ac_c" 1>&6
     1072else
     1073  echo 'void f(){}' > conftest.cc
     1074if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
    26951075  ac_cv_prog_cxx_g=yes
    26961076else
    2697   echo "$as_me: failed program was:" >&5
    2698 sed 's/^/| /' conftest.$ac_ext >&5
    2699 
    2700 ac_cv_prog_cxx_g=no
    2701 fi
    2702 rm -f conftest.$ac_objext conftest.$ac_ext
    2703 fi
    2704 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
    2705 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
     1077  ac_cv_prog_cxx_g=no
     1078fi
     1079rm -f conftest*
     1080
     1081fi
     1082
     1083echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
    27061084if test "$ac_test_CXXFLAGS" = set; then
    2707   CXXFLAGS=$ac_save_CXXFLAGS
     1085  CXXFLAGS="$ac_save_CXXFLAGS"
    27081086elif test $ac_cv_prog_cxx_g = yes; then
    27091087  if test "$GXX" = yes; then
     
    27191097  fi
    27201098fi
    2721 for ac_declaration in \
    2722    ''\
    2723    '#include <stdlib.h>' \
    2724    'extern "C" void std::exit (int) throw (); using std::exit;' \
    2725    'extern "C" void std::exit (int); using std::exit;' \
    2726    'extern "C" void exit (int) throw ();' \
    2727    'extern "C" void exit (int);' \
    2728    'void exit (int);'
    2729 do
    2730   cat >conftest.$ac_ext <<_ACEOF
    2731 #line $LINENO "configure"
    2732 /* confdefs.h.  */
    2733 _ACEOF
    2734 cat confdefs.h >>conftest.$ac_ext
    2735 cat >>conftest.$ac_ext <<_ACEOF
    2736 /* end confdefs.h.  */
    2737 #include <stdlib.h>
    2738 $ac_declaration
    2739 int
    2740 main ()
    2741 {
    2742 exit (42);
    2743   ;
    2744   return 0;
    2745 }
    2746 _ACEOF
    2747 rm -f conftest.$ac_objext
    2748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2749   (eval $ac_compile) 2>&5
    2750   ac_status=$?
    2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2752   (exit $ac_status); } &&
    2753          { ac_try='test -s conftest.$ac_objext'
    2754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2755   (eval $ac_try) 2>&5
    2756   ac_status=$?
    2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2758   (exit $ac_status); }; }; then
    2759   :
    2760 else
    2761   echo "$as_me: failed program was:" >&5
    2762 sed 's/^/| /' conftest.$ac_ext >&5
    2763 
    2764 continue
    2765 fi
    2766 rm -f conftest.$ac_objext conftest.$ac_ext
    2767   cat >conftest.$ac_ext <<_ACEOF
    2768 #line $LINENO "configure"
    2769 /* confdefs.h.  */
    2770 _ACEOF
    2771 cat confdefs.h >>conftest.$ac_ext
    2772 cat >>conftest.$ac_ext <<_ACEOF
    2773 /* end confdefs.h.  */
    2774 $ac_declaration
    2775 int
    2776 main ()
    2777 {
    2778 exit (42);
    2779   ;
    2780   return 0;
    2781 }
    2782 _ACEOF
    2783 rm -f conftest.$ac_objext
    2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2785   (eval $ac_compile) 2>&5
    2786   ac_status=$?
    2787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2788   (exit $ac_status); } &&
    2789          { ac_try='test -s conftest.$ac_objext'
    2790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2791   (eval $ac_try) 2>&5
    2792   ac_status=$?
    2793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2794   (exit $ac_status); }; }; then
    2795   break
    2796 else
    2797   echo "$as_me: failed program was:" >&5
    2798 sed 's/^/| /' conftest.$ac_ext >&5
    2799 
    2800 fi
    2801 rm -f conftest.$ac_objext conftest.$ac_ext
    2802 done
    2803 rm -f conftest*
    2804 if test -n "$ac_declaration"; then
    2805   echo '#ifdef __cplusplus' >>confdefs.h
    2806   echo $ac_declaration      >>confdefs.h
    2807   echo '#endif'             >>confdefs.h
    2808 fi
    2809 
    2810 ac_ext=c
    2811 ac_cpp='$CPP $CPPFLAGS'
    2812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    28151099
    28161100ac_aux_dir=
     
    28241108    ac_install_sh="$ac_aux_dir/install.sh -c"
    28251109    break
    2826   elif test -f $ac_dir/shtool; then
    2827     ac_aux_dir=$ac_dir
    2828     ac_install_sh="$ac_aux_dir/shtool install -c"
    2829     break
    28301110  fi
    28311111done
    28321112if test -z "$ac_aux_dir"; then
    2833   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
    2834 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
    2835    { (exit 1); exit 1; }; }
    2836 fi
    2837 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
    2838 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
    2839 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
     1113  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
     1114fi
     1115ac_config_guess=$ac_aux_dir/config.guess
     1116ac_config_sub=$ac_aux_dir/config.sub
     1117ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
    28401118
    28411119# Find a good install program.  We prefer a C program (faster),
     
    28461124# IRIX /sbin/install
    28471125# AIX /bin/install
    2848 # AmigaOS /C/install, which installs bootblocks on floppy discs
    28491126# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    28501127# AFS /usr/afsws/bin/install, which mishandles nonexistent args
    28511128# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    28521129# ./install, which can be erroneously created by make from ./install.sh.
    2853 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
    2854 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
     1130echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
     1131echo "configure:1132: checking for a BSD compatible install" >&5
    28551132if test -z "$INSTALL"; then
    2856 if test "${ac_cv_path_install+set}" = set; then
    2857   echo $ECHO_N "(cached) $ECHO_C" >&6
    2858 else
    2859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2860 for as_dir in $PATH
    2861 do
    2862   IFS=$as_save_IFS
    2863   test -z "$as_dir" && as_dir=.
    2864   # Account for people who put trailing slashes in PATH elements.
    2865 case $as_dir/ in
    2866   ./ | .// | /cC/* | \
    2867   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
    2868   /usr/ucb/* ) ;;
    2869   *)
    2870     # OSF1 and SCO ODT 3.0 have their own names for install.
    2871     # Don't use installbsd from OSF since it installs stuff as root
    2872     # by default.
    2873     for ac_prog in ginstall scoinst install; do
    2874       for ac_exec_ext in '' $ac_executable_extensions; do
    2875         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
    2876           if test $ac_prog = install &&
    2877             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    2878             # AIX install.  It has an incompatible calling convention.
    2879             :
    2880           elif test $ac_prog = install &&
    2881             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    2882             # program-specific install script used by HP pwplus--don't use.
    2883             :
    2884           else
    2885             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
    2886             break 3
    2887           fi
    2888         fi
     1133if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     1134  echo $ac_n "(cached) $ac_c" 1>&6
     1135else
     1136    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
     1137  for ac_dir in $PATH; do
     1138    # Account for people who put trailing slashes in PATH elements.
     1139    case "$ac_dir/" in
     1140    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
     1141    *)
     1142      # OSF1 and SCO ODT 3.0 have their own names for install.
     1143      # Don't use installbsd from OSF since it installs stuff as root
     1144      # by default.
     1145      for ac_prog in ginstall scoinst install; do
     1146        if test -f $ac_dir/$ac_prog; then
     1147          if test $ac_prog = install &&
     1148            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
     1149            # AIX install.  It has an incompatible calling convention.
     1150            :
     1151          else
     1152            ac_cv_path_install="$ac_dir/$ac_prog -c"
     1153            break 2
     1154          fi
     1155        fi
    28891156      done
    2890     done
    2891     ;;
    2892 esac
    2893 done
    2894 
     1157      ;;
     1158    esac
     1159  done
     1160  IFS="$ac_save_IFS"
    28951161
    28961162fi
    28971163  if test "${ac_cv_path_install+set}" = set; then
    2898     INSTALL=$ac_cv_path_install
     1164    INSTALL="$ac_cv_path_install"
    28991165  else
    29001166    # As a last resort, use the slow shell script.  We don't cache a
     
    29021168    # break other packages using the cache if that directory is
    29031169    # removed, or if the path is relative.
    2904     INSTALL=$ac_install_sh
     1170    INSTALL="$ac_install_sh"
    29051171  fi
    29061172fi
    2907 echo "$as_me:$LINENO: result: $INSTALL" >&5
    2908 echo "${ECHO_T}$INSTALL" >&6
     1173echo "$ac_t""$INSTALL" 1>&6
    29091174
    29101175# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     
    29121177test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    29131178
    2914 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
     1179test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
    29151180
    29161181test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    29171182
    2918 
    2919 
    2920 echo "$as_me:$LINENO: checking for egrep" >&5
    2921 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
    2922 if test "${ac_cv_prog_egrep+set}" = set; then
    2923   echo $ECHO_N "(cached) $ECHO_C" >&6
    2924 else
    2925   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    2926     then ac_cv_prog_egrep='grep -E'
    2927     else ac_cv_prog_egrep='egrep'
    2928     fi
    2929 fi
    2930 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
    2931 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
    2932  EGREP=$ac_cv_prog_egrep
    2933 
    2934 
    2935 
    2936 echo "$as_me:$LINENO: checking for AIX" >&5
    2937 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
    2938 cat >conftest.$ac_ext <<_ACEOF
    2939 #line $LINENO "configure"
    2940 /* confdefs.h.  */
    2941 _ACEOF
    2942 cat confdefs.h >>conftest.$ac_ext
    2943 cat >>conftest.$ac_ext <<_ACEOF
    2944 /* end confdefs.h.  */
     1183echo $ac_n "checking for AIX""... $ac_c" 1>&6
     1184echo "configure:1185: checking for AIX" >&5
     1185cat > conftest.$ac_ext <<EOF
     1186#line 1187 "configure"
     1187#include "confdefs.h"
    29451188#ifdef _AIX
    29461189  yes
    29471190#endif
    29481191
    2949 _ACEOF
     1192EOF
    29501193if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2951   $EGREP "yes" >/dev/null 2>&1; then
    2952   echo "$as_me:$LINENO: result: yes" >&5
    2953 echo "${ECHO_T}yes" >&6
    2954 cat >>confdefs.h <<\_ACEOF
     1194  egrep "yes" >/dev/null 2>&1; then
     1195  rm -rf conftest*
     1196  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
    29551197#define _ALL_SOURCE 1
    2956 _ACEOF
    2957 
    2958 else
    2959   echo "$as_me:$LINENO: result: no" >&5
    2960 echo "${ECHO_T}no" >&6
     1198EOF
     1199
     1200else
     1201  rm -rf conftest*
     1202  echo "$ac_t""no" 1>&6
    29611203fi
    29621204rm -f conftest*
     
    29671209#                       gcc3:        CC=gcc  CXX=g++
    29681210#                       other:       CC=cc   CXX=c++
    2969 echo "$as_me:$LINENO: checking gcc version" >&5
    2970 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
    2971 if test "${ac_cv_c_cpp+set}" = set; then
    2972   echo $ECHO_N "(cached) $ECHO_C" >&6
     1211echo $ac_n "checking gcc version""... $ac_c" 1>&6
     1212echo "configure:1213: checking gcc version" >&5
     1213if eval "test \"`echo '$''{'ac_cv_c_cpp'+set}'`\" = set"; then
     1214  echo $ac_n "(cached) $ac_c" 1>&6
    29731215else
    29741216  ac_cv_c_cp="unknown"
     
    29791221fi
    29801222
    2981 echo "$as_me:$LINENO: result: $ac_cv_c_cpp" >&5
    2982 echo "${ECHO_T}$ac_cv_c_cpp" >&6
     1223echo "$ac_t""$ac_cv_c_cpp" 1>&6
    29831224
    29841225# we prefer using gcc for compiling C++ files, provided the user did
     
    29911232  fi
    29921233  temp_cflags=${CXXFLAGS}
    2993 
    2994 
    2995   ac_ext=cc
     1234 
     1235  ac_ext=C
     1236# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    29961237ac_cpp='$CXXCPP $CPPFLAGS'
    2997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     1238ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     1239ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     1240cross_compiling=$ac_cv_prog_cxx_cross
    30001241
    30011242  # check whether gcc accepts --no-rtti
    3002   echo "$as_me:$LINENO: checking whether gcc accepts --no-rtti" >&5
    3003 echo $ECHO_N "checking whether gcc accepts --no-rtti... $ECHO_C" >&6
     1243  echo $ac_n "checking whether gcc accepts --no-rtti""... $ac_c" 1>&6
     1244echo "configure:1245: checking whether gcc accepts --no-rtti" >&5
    30041245  CXXFLAGS="${CXXFLAGS} --no-rtti"
    3005   if test "${ac_cv_cxx_have_rtti+set}" = set; then
    3006   echo $ECHO_N "(cached) $ECHO_C" >&6
    3007 else
    3008 
    3009 cat >conftest.$ac_ext <<_ACEOF
    3010 #line $LINENO "configure"
    3011 /* confdefs.h.  */
    3012 _ACEOF
    3013 cat confdefs.h >>conftest.$ac_ext
    3014 cat >>conftest.$ac_ext <<_ACEOF
    3015 /* end confdefs.h.  */
    3016 
    3017 int
    3018 main ()
    3019 {
    3020 
    3021   ;
    3022   return 0;
    3023 }
    3024 _ACEOF
    3025 rm -f conftest.$ac_objext
    3026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3027   (eval $ac_compile) 2>&5
    3028   ac_status=$?
    3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3030   (exit $ac_status); } &&
    3031          { ac_try='test -s conftest.$ac_objext'
    3032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3033   (eval $ac_try) 2>&5
    3034   ac_status=$?
    3035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3036   (exit $ac_status); }; }; then
     1246  if eval "test \"`echo '$''{'ac_cv_cxx_have_rtti'+set}'`\" = set"; then
     1247  echo $ac_n "(cached) $ac_c" 1>&6
     1248else
     1249  cat > conftest.$ac_ext <<EOF
     1250#line 1251 "configure"
     1251#include "confdefs.h"
     1252
     1253int main() {
     1254
     1255; return 0; }
     1256EOF
     1257if { (eval echo configure:1258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1258  rm -rf conftest*
    30371259  ac_cv_cxx_have_rtti=yes
    30381260else
    3039   echo "$as_me: failed program was:" >&5
    3040 sed 's/^/| /' conftest.$ac_ext >&5
    3041 
    3042 ac_cv_cxx_have_rtti=no
    3043 fi
    3044 rm -f conftest.$ac_objext conftest.$ac_ext
    3045 
    3046 fi
    3047 
    3048   echo "$as_me:$LINENO: result: ${ac_cv_cxx_have_rtti}" >&5
    3049 echo "${ECHO_T}${ac_cv_cxx_have_rtti}" >&6
     1261  echo "configure: failed program was:" >&5
     1262  cat conftest.$ac_ext >&5
     1263  rm -rf conftest*
     1264  ac_cv_cxx_have_rtti=no
     1265fi
     1266rm -f conftest*
     1267 
     1268fi
     1269
     1270  echo "$ac_t""${ac_cv_cxx_have_rtti}" 1>&6
    30501271  if test "${ac_cv_cxx_have_rtti}" != yes; then
    30511272  CXXFLAGS=$temp_flags
     
    30551276
    30561277# check whether gcc accepts --no-exceptions
    3057   echo "$as_me:$LINENO: checking whether gcc accepts --no-exceptions" >&5
    3058 echo $ECHO_N "checking whether gcc accepts --no-exceptions... $ECHO_C" >&6
     1278  echo $ac_n "checking whether gcc accepts --no-exceptions""... $ac_c" 1>&6
     1279echo "configure:1280: checking whether gcc accepts --no-exceptions" >&5
    30591280  CXXFLAGS="${CXXFLAGS} --no-exceptions"
    3060   if test "${ac_cv_cxx_have_exceptions+set}" = set; then
    3061   echo $ECHO_N "(cached) $ECHO_C" >&6
    3062 else
    3063   cat >conftest.$ac_ext <<_ACEOF
    3064 #line $LINENO "configure"
    3065 /* confdefs.h.  */
    3066 _ACEOF
    3067 cat confdefs.h >>conftest.$ac_ext
    3068 cat >>conftest.$ac_ext <<_ACEOF
    3069 /* end confdefs.h.  */
    3070 
    3071 int
    3072 main ()
    3073 {
    3074 
    3075   ;
    3076   return 0;
    3077 }
    3078 _ACEOF
    3079 rm -f conftest.$ac_objext conftest$ac_exeext
    3080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3081   (eval $ac_link) 2>&5
    3082   ac_status=$?
    3083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3084   (exit $ac_status); } &&
    3085          { ac_try='test -s conftest$ac_exeext'
    3086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3087   (eval $ac_try) 2>&5
    3088   ac_status=$?
    3089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3090   (exit $ac_status); }; }; then
     1281  if eval "test \"`echo '$''{'ac_cv_cxx_have_exceptions'+set}'`\" = set"; then
     1282  echo $ac_n "(cached) $ac_c" 1>&6
     1283else
     1284  cat > conftest.$ac_ext <<EOF
     1285#line 1286 "configure"
     1286#include "confdefs.h"
     1287
     1288int main() {
     1289
     1290; return 0; }
     1291EOF
     1292if { (eval echo configure:1293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1293  rm -rf conftest*
    30911294  ac_cv_cxx_have_exceptions=yes
    30921295else
    3093   echo "$as_me: failed program was:" >&5
    3094 sed 's/^/| /' conftest.$ac_ext >&5
    3095 
    3096 ac_cv_cxx_have_exceptions=no
    3097 fi
    3098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3099 
    3100 fi
    3101 
    3102   echo "$as_me:$LINENO: result: ${ac_cv_cxx_have_exceptions}" >&5
    3103 echo "${ECHO_T}${ac_cv_cxx_have_exceptions}" >&6
     1296  echo "configure: failed program was:" >&5
     1297  cat conftest.$ac_ext >&5
     1298  rm -rf conftest*
     1299  ac_cv_cxx_have_exceptions=no
     1300fi
     1301rm -f conftest*
     1302 
     1303fi
     1304
     1305  echo "$ac_t""${ac_cv_cxx_have_exceptions}" 1>&6
    31041306  if test "${ac_cv_cxx_have_exceptions}" != yes; then
    31051307  CXXFLAGS=$temp_flags
     
    31091311
    31101312  ac_ext=c
     1313# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    31111314ac_cpp='$CPP $CPPFLAGS'
    3112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    3113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    3114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1315ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     1316ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     1317cross_compiling=$ac_cv_prog_cc_cross
    31151318
    31161319  #CXXFLAGS=$temp_flags
     
    31211324
    31221325# check whether the compiler accepts -pipe
    3123 echo "$as_me:$LINENO: checking whether compiler accepts -pipe" >&5
    3124 echo $ECHO_N "checking whether compiler accepts -pipe... $ECHO_C" >&6
     1326echo $ac_n "checking whether compiler accepts -pipe""... $ac_c" 1>&6
     1327echo "configure:1328: checking whether compiler accepts -pipe" >&5
    31251328temp_cflags=${CFLAGS}
    31261329CFLAGS="${CFLAGS} -pipe"
    3127 if test "${ac_cv_cxx_have_pipe+set}" = set; then
    3128   echo $ECHO_N "(cached) $ECHO_C" >&6
    3129 else
    3130   cat >conftest.$ac_ext <<_ACEOF
    3131 #line $LINENO "configure"
    3132 /* confdefs.h.  */
    3133 _ACEOF
    3134 cat confdefs.h >>conftest.$ac_ext
    3135 cat >>conftest.$ac_ext <<_ACEOF
    3136 /* end confdefs.h.  */
    3137 
    3138 int
    3139 main ()
    3140 {
    3141 
    3142   ;
    3143   return 0;
    3144 }
    3145 _ACEOF
    3146 rm -f conftest.$ac_objext
    3147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3148   (eval $ac_compile) 2>&5
    3149   ac_status=$?
    3150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3151   (exit $ac_status); } &&
    3152          { ac_try='test -s conftest.$ac_objext'
    3153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3154   (eval $ac_try) 2>&5
    3155   ac_status=$?
    3156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3157   (exit $ac_status); }; }; then
     1330if eval "test \"`echo '$''{'ac_cv_cxx_have_pipe'+set}'`\" = set"; then
     1331  echo $ac_n "(cached) $ac_c" 1>&6
     1332else
     1333  cat > conftest.$ac_ext <<EOF
     1334#line 1335 "configure"
     1335#include "confdefs.h"
     1336
     1337int main() {
     1338
     1339; return 0; }
     1340EOF
     1341if { (eval echo configure:1342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1342  rm -rf conftest*
    31581343  ac_cv_cxx_have_pipe=yes
    31591344else
    3160   echo "$as_me: failed program was:" >&5
    3161 sed 's/^/| /' conftest.$ac_ext >&5
    3162 
    3163 ac_cv_cxx_have_pipe=no
    3164 fi
    3165 rm -f conftest.$ac_objext conftest.$ac_ext
    3166 
    3167 fi
    3168 
    3169 echo "$as_me:$LINENO: result: ${ac_cv_cxx_have_pipe}" >&5
    3170 echo "${ECHO_T}${ac_cv_cxx_have_pipe}" >&6
     1345  echo "configure: failed program was:" >&5
     1346  cat conftest.$ac_ext >&5
     1347  rm -rf conftest*
     1348  ac_cv_cxx_have_pipe=no
     1349fi
     1350rm -f conftest*
     1351
     1352fi
     1353
     1354echo "$ac_t""${ac_cv_cxx_have_pipe}" 1>&6
    31711355CFLAGS=${temp_cflags}
    31721356if test "${ac_cv_cxx_have_pipe}" != yes; then
     
    31781362
    31791363# Customize CFLAGS
    3180 echo "$as_me:$LINENO: checking whether _AIX is defined" >&5
    3181 echo $ECHO_N "checking whether _AIX is defined... $ECHO_C" >&6
    3182 if test "${ac_cv_is_aix+set}" = set; then
    3183   echo $ECHO_N "(cached) $ECHO_C" >&6
    3184 else
    3185   cat >conftest.$ac_ext <<_ACEOF
    3186 #line $LINENO "configure"
    3187 /* confdefs.h.  */
    3188 _ACEOF
    3189 cat confdefs.h >>conftest.$ac_ext
    3190 cat >>conftest.$ac_ext <<_ACEOF
    3191 /* end confdefs.h.  */
     1364echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6
     1365echo "configure:1366: checking whether _AIX is defined" >&5
     1366if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then
     1367  echo $ac_n "(cached) $ac_c" 1>&6
     1368else
     1369  cat > conftest.$ac_ext <<EOF
     1370#line 1371 "configure"
     1371#include "confdefs.h"
    31921372#ifdef _AIX
    31931373    yes
    31941374#endif
    31951375
    3196 _ACEOF
     1376EOF
    31971377if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3198   $EGREP "yes" >/dev/null 2>&1; then
     1378  egrep "yes" >/dev/null 2>&1; then
     1379  rm -rf conftest*
    31991380  ac_cv_is_aix=yes
    32001381else
     1382  rm -rf conftest*
    32011383  ac_cv_is_aix=no
    32021384fi
     
    32061388
    32071389if test "$ac_cv_is_aix" = yes; then
    3208   echo "$as_me:$LINENO: result: yes" >&5
    3209 echo "${ECHO_T}yes" >&6
    3210 else
    3211   echo "$as_me:$LINENO: result: no" >&5
    3212 echo "${ECHO_T}no" >&6
     1390  echo "$ac_t""yes" 1>&6
     1391else
     1392  echo "$ac_t""no" 1>&6
    32131393fi
    32141394
     
    32381418fi
    32391419
    3240 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
    3241 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
    3242 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
    3243 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
    3244   echo $ECHO_N "(cached) $ECHO_C" >&6
    3245 else
    3246   cat >conftest.make <<\_ACEOF
     1420echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
     1421echo "configure:1422: checking whether ${MAKE-make} sets \${MAKE}" >&5
     1422set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
     1423if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     1424  echo $ac_n "(cached) $ac_c" 1>&6
     1425else
     1426  cat > conftestmake <<\EOF
    32471427all:
    3248         @echo 'ac_maketemp="$(MAKE)"'
    3249 _ACEOF
     1428        @echo 'ac_maketemp="${MAKE}"'
     1429EOF
    32501430# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    3251 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
     1431eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
    32521432if test -n "$ac_maketemp"; then
    32531433  eval ac_cv_prog_make_${ac_make}_set=yes
     
    32551435  eval ac_cv_prog_make_${ac_make}_set=no
    32561436fi
    3257 rm -f conftest.make
     1437rm -f conftestmake
    32581438fi
    32591439if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    3260   echo "$as_me:$LINENO: result: yes" >&5
    3261 echo "${ECHO_T}yes" >&6
     1440  echo "$ac_t""yes" 1>&6
    32621441  SET_MAKE=
    32631442else
    3264   echo "$as_me:$LINENO: result: no" >&5
    3265 echo "${ECHO_T}no" >&6
     1443  echo "$ac_t""no" 1>&6
    32661444  SET_MAKE="MAKE=${MAKE-make}"
    32671445fi
     
    32741452test "x$prefix" = xNONE && prefix=$ac_default_prefix
    32751453if test "${with_rootdir+set}" != set; then
    3276   cat >>confdefs.h <<_ACEOF
     1454  cat >> confdefs.h <<EOF
    32771455#define S_ROOT_DIR "${prefix}"
    3278 _ACEOF
    3279 
    3280 else
    3281   cat >>confdefs.h <<_ACEOF
     1456EOF
     1457
     1458else
     1459  cat >> confdefs.h <<EOF
    32821460#define S_ROOT_DIR "${with_rootdir}"
    3283 _ACEOF
     1461EOF
    32841462
    32851463fi
     
    32941472SINGULAR=${SINGULAR:-$bindir/Singular-$SINGULAR_MAJOR_VERSION${VERSION_SEP}$SINGULAR_MINOR_VERSION${VERSION_SEP}$SINGULAR_SUB_VERSION}
    32951473
    3296 cat >>confdefs.h <<_ACEOF
     1474cat >> confdefs.h <<EOF
    32971475#define S_BIN_DIR "${bindir}"
    3298 _ACEOF
     1476EOF
    32991477
    33001478
     
    33231501# lex
    33241502if test "${with_lex+set}" != set; then
    3325   echo "$as_me:$LINENO: checking for flex" >&5
    3326 echo $ECHO_N "checking for flex... $ECHO_C" >&6
     1503  echo $ac_n "checking for flex""... $ac_c" 1>&6
     1504echo "configure:1505: checking for flex" >&5
    33271505    cmd="egrep [2-9]\.[5-9]"
    3328     if test "${ac_cv_prog_flex+set}" = set; then
    3329   echo $ECHO_N "(cached) $ECHO_C" >&6
     1506    if eval "test \"`echo '$''{'ac_cv_prog_flex'+set}'`\" = set"; then
     1507  echo $ac_n "(cached) $ac_c" 1>&6
    33301508else
    33311509  if (flex --version >/dev/null 2>&1)
     
    33361514    fi
    33371515  fi
    3338 
     1516 
    33391517fi
    33401518
    33411519    if test "${ac_cv_prog_flex+set}" = set; then
    3342     echo "$as_me:$LINENO: result: flex" >&5
    3343 echo "${ECHO_T}flex" >&6
     1520    echo "$ac_t""flex" 1>&6
    33441521    LEX=flex
    3345 
     1522   
    33461523  else
    3347     { { echo "$as_me:$LINENO: error: can not find flex with version greater 2.4" >&5
    3348 echo "$as_me: error: can not find flex with version greater 2.4" >&2;}
    3349    { (exit 1); exit 1; }; }
     1524    { echo "configure: error: can not find flex with version greater 2.4" 1>&2; exit 1; }
    33501525  fi
    33511526elif test "${with_lex}" = no; then
    3352   { echo "$as_me:$LINENO: WARNING: building without lex -- make might fail" >&5
    3353 echo "$as_me: WARNING: building without lex -- make might fail" >&2;}
     1527  echo "configure: warning: building without lex -- make might fail" 1>&2
    33541528else
    33551529  unset LEX
     
    33571531  for ac_prog in ${with_lex}
    33581532do
    3359   # Extract the first word of "$ac_prog", so it can be a program name with args.
     1533# Extract the first word of "$ac_prog", so it can be a program name with args.
    33601534set dummy $ac_prog; ac_word=$2
    3361 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3363 if test "${ac_cv_prog_LEX+set}" = set; then
    3364   echo $ECHO_N "(cached) $ECHO_C" >&6
     1535echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1536echo "configure:1537: checking for $ac_word" >&5
     1537if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
     1538  echo $ac_n "(cached) $ac_c" 1>&6
    33651539else
    33661540  if test -n "$LEX"; then
    33671541  ac_cv_prog_LEX="$LEX" # Let the user override the test.
    33681542else
    3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3370 for as_dir in $PATH
    3371 do
    3372   IFS=$as_save_IFS
    3373   test -z "$as_dir" && as_dir=.
    3374   for ac_exec_ext in '' $ac_executable_extensions; do
    3375   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3376     ac_cv_prog_LEX="$ac_prog"
    3377     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    3378     break 2
    3379   fi
     1543  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1544  ac_dummy="$PATH"
     1545  for ac_dir in $ac_dummy; do
     1546    test -z "$ac_dir" && ac_dir=.
     1547    if test -f $ac_dir/$ac_word; then
     1548      ac_cv_prog_LEX="$ac_prog"
     1549      break
     1550    fi
     1551  done
     1552  IFS="$ac_save_ifs"
     1553fi
     1554fi
     1555LEX="$ac_cv_prog_LEX"
     1556if test -n "$LEX"; then
     1557  echo "$ac_t""$LEX" 1>&6
     1558else
     1559  echo "$ac_t""no" 1>&6
     1560fi
     1561
     1562test -n "$LEX" && break
    33801563done
    3381 done
    3382 
    3383 fi
    3384 fi
    3385 LEX=$ac_cv_prog_LEX
    3386 if test -n "$LEX"; then
    3387   echo "$as_me:$LINENO: result: $LEX" >&5
    3388 echo "${ECHO_T}$LEX" >&6
    3389 else
    3390   echo "$as_me:$LINENO: result: no" >&5
    3391 echo "${ECHO_T}no" >&6
    3392 fi
    3393 
    3394   test -n "$LEX" && break
    3395 done
    33961564
    33971565  if test "x${LEX}" = x; then
    3398     { echo "$as_me:$LINENO: WARNING: building without lex -- make might fail" >&5
    3399 echo "$as_me: WARNING: building without lex -- make might fail" >&2;}
     1566    echo "configure: warning: building without lex -- make might fail" 1>&2
    34001567  fi
    34011568fi
     
    34041571for ac_prog in bison
    34051572do
    3406   # Extract the first word of "$ac_prog", so it can be a program name with args.
     1573# Extract the first word of "$ac_prog", so it can be a program name with args.
    34071574set dummy $ac_prog; ac_word=$2
    3408 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3410 if test "${ac_cv_prog_BISON+set}" = set; then
    3411   echo $ECHO_N "(cached) $ECHO_C" >&6
     1575echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1576echo "configure:1577: checking for $ac_word" >&5
     1577if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
     1578  echo $ac_n "(cached) $ac_c" 1>&6
    34121579else
    34131580  if test -n "$BISON"; then
    34141581  ac_cv_prog_BISON="$BISON" # Let the user override the test.
    34151582else
    3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3417 for as_dir in $PATH
    3418 do
    3419   IFS=$as_save_IFS
    3420   test -z "$as_dir" && as_dir=.
    3421   for ac_exec_ext in '' $ac_executable_extensions; do
    3422   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3423     ac_cv_prog_BISON="$ac_prog"
    3424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    3425     break 2
    3426   fi
     1583  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1584  ac_dummy="$PATH"
     1585  for ac_dir in $ac_dummy; do
     1586    test -z "$ac_dir" && ac_dir=.
     1587    if test -f $ac_dir/$ac_word; then
     1588      ac_cv_prog_BISON="$ac_prog"
     1589      break
     1590    fi
     1591  done
     1592  IFS="$ac_save_ifs"
     1593fi
     1594fi
     1595BISON="$ac_cv_prog_BISON"
     1596if test -n "$BISON"; then
     1597  echo "$ac_t""$BISON" 1>&6
     1598else
     1599  echo "$ac_t""no" 1>&6
     1600fi
     1601
     1602test -n "$BISON" && break
    34271603done
    3428 done
    3429 
    3430 fi
    3431 fi
    3432 BISON=$ac_cv_prog_BISON
    3433 if test -n "$BISON"; then
    3434   echo "$as_me:$LINENO: result: $BISON" >&5
    3435 echo "${ECHO_T}$BISON" >&6
    3436 else
    3437   echo "$as_me:$LINENO: result: no" >&5
    3438 echo "${ECHO_T}no" >&6
    3439 fi
    3440 
    3441   test -n "$BISON" && break
    3442 done
    34431604
    34441605if test "${BISON+set}" != set; then
    3445   { echo "$as_me:$LINENO: WARNING: did not find bison -- make might fail" >&5
    3446 echo "$as_me: WARNING: did not find bison -- make might fail" >&2;}
     1606  echo "configure: warning: did not find bison -- make might fail" 1>&2
    34471607fi
    34481608
    34491609# ln -s
    3450 echo "$as_me:$LINENO: checking whether ln -s works" >&5
    3451 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
    3452 LN_S=$as_ln_s
    3453 if test "$LN_S" = "ln -s"; then
    3454   echo "$as_me:$LINENO: result: yes" >&5
    3455 echo "${ECHO_T}yes" >&6
    3456 else
    3457   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
    3458 echo "${ECHO_T}no, using $LN_S" >&6
     1610echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
     1611echo "configure:1612: checking whether ln -s works" >&5
     1612if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
     1613  echo $ac_n "(cached) $ac_c" 1>&6
     1614else
     1615  rm -f conftestdata
     1616if ln -s X conftestdata 2>/dev/null
     1617then
     1618  rm -f conftestdata
     1619  ac_cv_prog_LN_S="ln -s"
     1620else
     1621  ac_cv_prog_LN_S=ln
     1622fi
     1623fi
     1624LN_S="$ac_cv_prog_LN_S"
     1625if test "$ac_cv_prog_LN_S" = "ln -s"; then
     1626  echo "$ac_t""yes" 1>&6
     1627else
     1628  echo "$ac_t""no" 1>&6
    34591629fi
    34601630
     
    34621632for ac_prog in perl5 perl
    34631633do
    3464   # Extract the first word of "$ac_prog", so it can be a program name with args.
     1634# Extract the first word of "$ac_prog", so it can be a program name with args.
    34651635set dummy $ac_prog; ac_word=$2
    3466 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3468 if test "${ac_cv_prog_PERL+set}" = set; then
    3469   echo $ECHO_N "(cached) $ECHO_C" >&6
     1636echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1637echo "configure:1638: checking for $ac_word" >&5
     1638if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
     1639  echo $ac_n "(cached) $ac_c" 1>&6
    34701640else
    34711641  if test -n "$PERL"; then
    34721642  ac_cv_prog_PERL="$PERL" # Let the user override the test.
    34731643else
    3474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3475 for as_dir in $PATH
    3476 do
    3477   IFS=$as_save_IFS
    3478   test -z "$as_dir" && as_dir=.
    3479   for ac_exec_ext in '' $ac_executable_extensions; do
    3480   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3481     ac_cv_prog_PERL="$ac_prog"
    3482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    3483     break 2
    3484   fi
    3485 done
    3486 done
    3487 
    3488 fi
    3489 fi
    3490 PERL=$ac_cv_prog_PERL
     1644  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1645  ac_dummy="$PATH"
     1646  for ac_dir in $ac_dummy; do
     1647    test -z "$ac_dir" && ac_dir=.
     1648    if test -f $ac_dir/$ac_word; then
     1649      ac_cv_prog_PERL="$ac_prog"
     1650      break
     1651    fi
     1652  done
     1653  IFS="$ac_save_ifs"
     1654fi
     1655fi
     1656PERL="$ac_cv_prog_PERL"
    34911657if test -n "$PERL"; then
    3492   echo "$as_me:$LINENO: result: $PERL" >&5
    3493 echo "${ECHO_T}$PERL" >&6
    3494 else
    3495   echo "$as_me:$LINENO: result: no" >&5
    3496 echo "${ECHO_T}no" >&6
    3497 fi
    3498 
    3499   test -n "$PERL" && break
     1658  echo "$ac_t""$PERL" 1>&6
     1659else
     1660  echo "$ac_t""no" 1>&6
     1661fi
     1662
     1663test -n "$PERL" && break
    35001664done
    35011665
     
    35051669# it really is the last thing to link with
    35061670if test "$ac_cv_singuname" != ix86-Win; then
    3507 
    3508 echo "$as_me:$LINENO: checking for atof in -lm" >&5
    3509 echo $ECHO_N "checking for atof in -lm... $ECHO_C" >&6
    3510 if test "${ac_cv_lib_m_atof+set}" = set; then
    3511   echo $ECHO_N "(cached) $ECHO_C" >&6
    3512 else
    3513   ac_check_lib_save_LIBS=$LIBS
     1671echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6
     1672echo "configure:1673: checking for atof in -lm" >&5
     1673ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'`
     1674if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     1675  echo $ac_n "(cached) $ac_c" 1>&6
     1676else
     1677  ac_save_LIBS="$LIBS"
    35141678LIBS="-lm  $LIBS"
    3515 cat >conftest.$ac_ext <<_ACEOF
    3516 #line $LINENO "configure"
    3517 /* confdefs.h.  */
    3518 _ACEOF
    3519 cat confdefs.h >>conftest.$ac_ext
    3520 cat >>conftest.$ac_ext <<_ACEOF
    3521 /* end confdefs.h.  */
    3522 
     1679cat > conftest.$ac_ext <<EOF
     1680#line 1681 "configure"
     1681#include "confdefs.h"
    35231682/* Override any gcc2 internal prototype to avoid an error.  */
    3524 #ifdef __cplusplus
    3525 extern "C"
    3526 #endif
    35271683/* We use char because int might match the return type of a gcc2
    3528    builtin and then its argument prototype would still apply.  */
    3529 char atof ();
    3530 int
    3531 main ()
    3532 {
    3533 atof ();
    3534   ;
    3535   return 0;
    3536 }
    3537 _ACEOF
    3538 rm -f conftest.$ac_objext conftest$ac_exeext
    3539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3540   (eval $ac_link) 2>&5
    3541   ac_status=$?
    3542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3543   (exit $ac_status); } &&
    3544          { ac_try='test -s conftest$ac_exeext'
    3545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3546   (eval $ac_try) 2>&5
    3547   ac_status=$?
    3548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3549   (exit $ac_status); }; }; then
    3550   ac_cv_lib_m_atof=yes
    3551 else
    3552   echo "$as_me: failed program was:" >&5
    3553 sed 's/^/| /' conftest.$ac_ext >&5
    3554 
    3555 ac_cv_lib_m_atof=no
    3556 fi
    3557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3558 LIBS=$ac_check_lib_save_LIBS
    3559 fi
    3560 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atof" >&5
    3561 echo "${ECHO_T}$ac_cv_lib_m_atof" >&6
    3562 if test $ac_cv_lib_m_atof = yes; then
    3563   cat >>confdefs.h <<_ACEOF
    3564 #define HAVE_LIBM 1
    3565 _ACEOF
     1684    builtin and then its argument prototype would still apply.  */
     1685char atof();
     1686
     1687int main() {
     1688atof()
     1689; return 0; }
     1690EOF
     1691if { (eval echo configure:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1692  rm -rf conftest*
     1693  eval "ac_cv_lib_$ac_lib_var=yes"
     1694else
     1695  echo "configure: failed program was:" >&5
     1696  cat conftest.$ac_ext >&5
     1697  rm -rf conftest*
     1698  eval "ac_cv_lib_$ac_lib_var=no"
     1699fi
     1700rm -f conftest*
     1701LIBS="$ac_save_LIBS"
     1702
     1703fi
     1704if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     1705  echo "$ac_t""yes" 1>&6
     1706    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     1707    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     1708  cat >> confdefs.h <<EOF
     1709#define $ac_tr_lib 1
     1710EOF
    35661711
    35671712  LIBS="-lm $LIBS"
    35681713
     1714else
     1715  echo "$ac_t""no" 1>&6
    35691716fi
    35701717
     
    35731720LIBS=
    35741721
    3575 
    3576 echo "$as_me:$LINENO: checking for setenv in -lbsd" >&5
    3577 echo $ECHO_N "checking for setenv in -lbsd... $ECHO_C" >&6
    3578 if test "${ac_cv_lib_bsd_setenv+set}" = set; then
    3579   echo $ECHO_N "(cached) $ECHO_C" >&6
    3580 else
    3581   ac_check_lib_save_LIBS=$LIBS
     1722echo $ac_n "checking for setenv in -lbsd""... $ac_c" 1>&6
     1723echo "configure:1724: checking for setenv in -lbsd" >&5
     1724ac_lib_var=`echo bsd'_'setenv | sed 'y%./+-%__p_%'`
     1725if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     1726  echo $ac_n "(cached) $ac_c" 1>&6
     1727else
     1728  ac_save_LIBS="$LIBS"
    35821729LIBS="-lbsd  $LIBS"
    3583 cat >conftest.$ac_ext <<_ACEOF
    3584 #line $LINENO "configure"
    3585 /* confdefs.h.  */
    3586 _ACEOF
    3587 cat confdefs.h >>conftest.$ac_ext
    3588 cat >>conftest.$ac_ext <<_ACEOF
    3589 /* end confdefs.h.  */
    3590 
     1730cat > conftest.$ac_ext <<EOF
     1731#line 1732 "configure"
     1732#include "confdefs.h"
    35911733/* Override any gcc2 internal prototype to avoid an error.  */
    3592 #ifdef __cplusplus
    3593 extern "C"
    3594 #endif
    35951734/* We use char because int might match the return type of a gcc2
    3596    builtin and then its argument prototype would still apply.  */
    3597 char setenv ();
    3598 int
    3599 main ()
    3600 {
    3601 setenv ();
    3602   ;
    3603   return 0;
    3604 }
    3605 _ACEOF
    3606 rm -f conftest.$ac_objext conftest$ac_exeext
    3607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3608   (eval $ac_link) 2>&5
    3609   ac_status=$?
    3610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3611   (exit $ac_status); } &&
    3612          { ac_try='test -s conftest$ac_exeext'
    3613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3614   (eval $ac_try) 2>&5
    3615   ac_status=$?
    3616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3617   (exit $ac_status); }; }; then
    3618   ac_cv_lib_bsd_setenv=yes
    3619 else
    3620   echo "$as_me: failed program was:" >&5
    3621 sed 's/^/| /' conftest.$ac_ext >&5
    3622 
    3623 ac_cv_lib_bsd_setenv=no
    3624 fi
    3625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3626 LIBS=$ac_check_lib_save_LIBS
    3627 fi
    3628 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_setenv" >&5
    3629 echo "${ECHO_T}$ac_cv_lib_bsd_setenv" >&6
    3630 if test $ac_cv_lib_bsd_setenv = yes; then
    3631   cat >>confdefs.h <<_ACEOF
    3632 #define HAVE_LIBBSD 1
    3633 _ACEOF
     1735    builtin and then its argument prototype would still apply.  */
     1736char setenv();
     1737
     1738int main() {
     1739setenv()
     1740; return 0; }
     1741EOF
     1742if { (eval echo configure:1743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1743  rm -rf conftest*
     1744  eval "ac_cv_lib_$ac_lib_var=yes"
     1745else
     1746  echo "configure: failed program was:" >&5
     1747  cat conftest.$ac_ext >&5
     1748  rm -rf conftest*
     1749  eval "ac_cv_lib_$ac_lib_var=no"
     1750fi
     1751rm -f conftest*
     1752LIBS="$ac_save_LIBS"
     1753
     1754fi
     1755if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     1756  echo "$ac_t""yes" 1>&6
     1757    ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     1758    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     1759  cat >> confdefs.h <<EOF
     1760#define $ac_tr_lib 1
     1761EOF
    36341762
    36351763  LIBS="-lbsd $LIBS"
    36361764
     1765else
     1766  echo "$ac_t""no" 1>&6
    36371767fi
    36381768
     
    36401770case "$ac_cv_singuname" in
    36411771        HPUX*)
    3642 
    3643 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
    3644 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
    3645 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
    3646   echo $ECHO_N "(cached) $ECHO_C" >&6
    3647 else
    3648   ac_check_lib_save_LIBS=$LIBS
     1772          echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
     1773echo "configure:1774: checking for shl_load in -ldld" >&5
     1774ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
     1775if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     1776  echo $ac_n "(cached) $ac_c" 1>&6
     1777else
     1778  ac_save_LIBS="$LIBS"
    36491779LIBS="-ldld  $LIBS"
    3650 cat >conftest.$ac_ext <<_ACEOF
    3651 #line $LINENO "configure"
    3652 /* confdefs.h.  */
    3653 _ACEOF
    3654 cat confdefs.h >>conftest.$ac_ext
    3655 cat >>conftest.$ac_ext <<_ACEOF
    3656 /* end confdefs.h.  */
    3657 
     1780cat > conftest.$ac_ext <<EOF
     1781#line 1782 "configure"
     1782#include "confdefs.h"
    36581783/* Override any gcc2 internal prototype to avoid an error.  */
    3659 #ifdef __cplusplus
    3660 extern "C"
    3661 #endif
    36621784/* We use char because int might match the return type of a gcc2
    3663    builtin and then its argument prototype would still apply.  */
    3664 char shl_load ();
    3665 int
    3666 main ()
    3667 {
    3668 shl_load ();
    3669   ;
    3670   return 0;
    3671 }
    3672 _ACEOF
    3673 rm -f conftest.$ac_objext conftest$ac_exeext
    3674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3675   (eval $ac_link) 2>&5
    3676   ac_status=$?
    3677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3678   (exit $ac_status); } &&
    3679          { ac_try='test -s conftest$ac_exeext'
    3680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3681   (eval $ac_try) 2>&5
    3682   ac_status=$?
    3683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3684   (exit $ac_status); }; }; then
    3685   ac_cv_lib_dld_shl_load=yes
    3686 else
    3687   echo "$as_me: failed program was:" >&5
    3688 sed 's/^/| /' conftest.$ac_ext >&5
    3689 
    3690 ac_cv_lib_dld_shl_load=no
    3691 fi
    3692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3693 LIBS=$ac_check_lib_save_LIBS
    3694 fi
    3695 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
    3696 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
    3697 if test $ac_cv_lib_dld_shl_load = yes; then
    3698   cat >>confdefs.h <<_ACEOF
    3699 #define HAVE_LIBDLD 1
    3700 _ACEOF
     1785    builtin and then its argument prototype would still apply.  */
     1786char shl_load();
     1787
     1788int main() {
     1789shl_load()
     1790; return 0; }
     1791EOF
     1792if { (eval echo configure:1793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1793  rm -rf conftest*
     1794  eval "ac_cv_lib_$ac_lib_var=yes"
     1795else
     1796  echo "configure: failed program was:" >&5
     1797  cat conftest.$ac_ext >&5
     1798  rm -rf conftest*
     1799  eval "ac_cv_lib_$ac_lib_var=no"
     1800fi
     1801rm -f conftest*
     1802LIBS="$ac_save_LIBS"
     1803
     1804fi
     1805if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     1806  echo "$ac_t""yes" 1>&6
     1807    ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     1808    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     1809  cat >> confdefs.h <<EOF
     1810#define $ac_tr_lib 1
     1811EOF
    37011812
    37021813  LIBS="-ldld $LIBS"
    37031814
     1815else
     1816  echo "$ac_t""no" 1>&6
    37041817fi
    37051818
     
    37131826        ;;
    37141827        *Linux*)
    3715 
    3716 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
    3717 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
    3718 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
    3719   echo $ECHO_N "(cached) $ECHO_C" >&6
    3720 else
    3721   ac_check_lib_save_LIBS=$LIBS
     1828          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
     1829echo "configure:1830: checking for dlopen in -ldl" >&5
     1830ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
     1831if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     1832  echo $ac_n "(cached) $ac_c" 1>&6
     1833else
     1834  ac_save_LIBS="$LIBS"
    37221835LIBS="-ldl  $LIBS"
    3723 cat >conftest.$ac_ext <<_ACEOF
    3724 #line $LINENO "configure"
    3725 /* confdefs.h.  */
    3726 _ACEOF
    3727 cat confdefs.h >>conftest.$ac_ext
    3728 cat >>conftest.$ac_ext <<_ACEOF
    3729 /* end confdefs.h.  */
    3730 
     1836cat > conftest.$ac_ext <<EOF
     1837#line 1838 "configure"
     1838#include "confdefs.h"
    37311839/* Override any gcc2 internal prototype to avoid an error.  */
    3732 #ifdef __cplusplus
    3733 extern "C"
    3734 #endif
    37351840/* We use char because int might match the return type of a gcc2
    3736    builtin and then its argument prototype would still apply.  */
    3737 char dlopen ();
    3738 int
    3739 main ()
    3740 {
    3741 dlopen ();
    3742   ;
    3743   return 0;
    3744 }
    3745 _ACEOF
    3746 rm -f conftest.$ac_objext conftest$ac_exeext
    3747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3748   (eval $ac_link) 2>&5
    3749   ac_status=$?
    3750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3751   (exit $ac_status); } &&
    3752          { ac_try='test -s conftest$ac_exeext'
    3753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3754   (eval $ac_try) 2>&5
    3755   ac_status=$?
    3756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3757   (exit $ac_status); }; }; then
    3758   ac_cv_lib_dl_dlopen=yes
    3759 else
    3760   echo "$as_me: failed program was:" >&5
    3761 sed 's/^/| /' conftest.$ac_ext >&5
    3762 
    3763 ac_cv_lib_dl_dlopen=no
    3764 fi
    3765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3766 LIBS=$ac_check_lib_save_LIBS
    3767 fi
    3768 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
    3769 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
    3770 if test $ac_cv_lib_dl_dlopen = yes; then
    3771   cat >>confdefs.h <<_ACEOF
    3772 #define HAVE_LIBDL 1
    3773 _ACEOF
     1841    builtin and then its argument prototype would still apply.  */
     1842char dlopen();
     1843
     1844int main() {
     1845dlopen()
     1846; return 0; }
     1847EOF
     1848if { (eval echo configure:1849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1849  rm -rf conftest*
     1850  eval "ac_cv_lib_$ac_lib_var=yes"
     1851else
     1852  echo "configure: failed program was:" >&5
     1853  cat conftest.$ac_ext >&5
     1854  rm -rf conftest*
     1855  eval "ac_cv_lib_$ac_lib_var=no"
     1856fi
     1857rm -f conftest*
     1858LIBS="$ac_save_LIBS"
     1859
     1860fi
     1861if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     1862  echo "$ac_t""yes" 1>&6
     1863    ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     1864    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     1865  cat >> confdefs.h <<EOF
     1866#define $ac_tr_lib 1
     1867EOF
    37741868
    37751869  LIBS="-ldl $LIBS"
    37761870
    3777 fi
    3778 
    3779           if test "$ac_cv_lib_dl_dlopen" = yes; then
     1871else
     1872  echo "$ac_t""no" 1>&6
     1873fi
     1874
     1875          if test "$ac_cv_lib_c_dlopen" = yes; then
    37801876                LD_DYN_FLAGS="-ldl -rdynamic"
    37811877                SFLAGS="-fpic -DPIC"
    3782                 SLDFLAGS=-shared
     1878                SLDFLAGS=-shared 
    37831879                LD=ld
    37841880                ac_lib_dl=yes
     
    37931889        ;;
    37941890        SunOS-5)
    3795 
    3796 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
    3797 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
    3798 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
    3799   echo $ECHO_N "(cached) $ECHO_C" >&6
    3800 else
    3801   ac_check_lib_save_LIBS=$LIBS
     1891          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
     1892echo "configure:1893: checking for dlopen in -ldl" >&5
     1893ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
     1894if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     1895  echo $ac_n "(cached) $ac_c" 1>&6
     1896else
     1897  ac_save_LIBS="$LIBS"
    38021898LIBS="-ldl  $LIBS"
    3803 cat >conftest.$ac_ext <<_ACEOF
    3804 #line $LINENO "configure"
    3805 /* confdefs.h.  */
    3806 _ACEOF
    3807 cat confdefs.h >>conftest.$ac_ext
    3808 cat >>conftest.$ac_ext <<_ACEOF
    3809 /* end confdefs.h.  */
    3810 
     1899cat > conftest.$ac_ext <<EOF
     1900#line 1901 "configure"
     1901#include "confdefs.h"
    38111902/* Override any gcc2 internal prototype to avoid an error.  */
    3812 #ifdef __cplusplus
    3813 extern "C"
    3814 #endif
    38151903/* We use char because int might match the return type of a gcc2
    3816    builtin and then its argument prototype would still apply.  */
    3817 char dlopen ();
    3818 int
    3819 main ()
    3820 {
    3821 dlopen ();
    3822   ;
    3823   return 0;
    3824 }
    3825 _ACEOF
    3826 rm -f conftest.$ac_objext conftest$ac_exeext
    3827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3828   (eval $ac_link) 2>&5
    3829   ac_status=$?
    3830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3831   (exit $ac_status); } &&
    3832          { ac_try='test -s conftest$ac_exeext'
    3833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3834   (eval $ac_try) 2>&5
    3835   ac_status=$?
    3836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3837   (exit $ac_status); }; }; then
    3838   ac_cv_lib_dl_dlopen=yes
    3839 else
    3840   echo "$as_me: failed program was:" >&5
    3841 sed 's/^/| /' conftest.$ac_ext >&5
    3842 
    3843 ac_cv_lib_dl_dlopen=no
    3844 fi
    3845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3846 LIBS=$ac_check_lib_save_LIBS
    3847 fi
    3848 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
    3849 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
    3850 if test $ac_cv_lib_dl_dlopen = yes; then
    3851   cat >>confdefs.h <<_ACEOF
    3852 #define HAVE_LIBDL 1
    3853 _ACEOF
     1904    builtin and then its argument prototype would still apply.  */
     1905char dlopen();
     1906
     1907int main() {
     1908dlopen()
     1909; return 0; }
     1910EOF
     1911if { (eval echo configure:1912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1912  rm -rf conftest*
     1913  eval "ac_cv_lib_$ac_lib_var=yes"
     1914else
     1915  echo "configure: failed program was:" >&5
     1916  cat conftest.$ac_ext >&5
     1917  rm -rf conftest*
     1918  eval "ac_cv_lib_$ac_lib_var=no"
     1919fi
     1920rm -f conftest*
     1921LIBS="$ac_save_LIBS"
     1922
     1923fi
     1924if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     1925  echo "$ac_t""yes" 1>&6
     1926    ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     1927    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     1928  cat >> confdefs.h <<EOF
     1929#define $ac_tr_lib 1
     1930EOF
    38541931
    38551932  LIBS="-ldl $LIBS"
    38561933
     1934else
     1935  echo "$ac_t""no" 1>&6
    38571936fi
    38581937
     
    38661945        ;;
    38671946        ppcMac-darwin)
    3868 
    3869 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
    3870 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
    3871 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
    3872   echo $ECHO_N "(cached) $ECHO_C" >&6
    3873 else
    3874   ac_check_lib_save_LIBS=$LIBS
     1947          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
     1948echo "configure:1949: checking for dlopen in -ldl" >&5
     1949ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
     1950if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     1951  echo $ac_n "(cached) $ac_c" 1>&6
     1952else
     1953  ac_save_LIBS="$LIBS"
    38751954LIBS="-ldl  $LIBS"
    3876 cat >conftest.$ac_ext <<_ACEOF
    3877 #line $LINENO "configure"
    3878 /* confdefs.h.  */
    3879 _ACEOF
    3880 cat confdefs.h >>conftest.$ac_ext
    3881 cat >>conftest.$ac_ext <<_ACEOF
    3882 /* end confdefs.h.  */
    3883 
     1955cat > conftest.$ac_ext <<EOF
     1956#line 1957 "configure"
     1957#include "confdefs.h"
    38841958/* Override any gcc2 internal prototype to avoid an error.  */
    3885 #ifdef __cplusplus
    3886 extern "C"
    3887 #endif
    38881959/* We use char because int might match the return type of a gcc2
    3889    builtin and then its argument prototype would still apply.  */
    3890 char dlopen ();
    3891 int
    3892 main ()
    3893 {
    3894 dlopen ();
    3895   ;
    3896   return 0;
    3897 }
    3898 _ACEOF
    3899 rm -f conftest.$ac_objext conftest$ac_exeext
    3900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3901   (eval $ac_link) 2>&5
    3902   ac_status=$?
    3903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3904   (exit $ac_status); } &&
    3905          { ac_try='test -s conftest$ac_exeext'
    3906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3907   (eval $ac_try) 2>&5
    3908   ac_status=$?
    3909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3910   (exit $ac_status); }; }; then
    3911   ac_cv_lib_dl_dlopen=yes
    3912 else
    3913   echo "$as_me: failed program was:" >&5
    3914 sed 's/^/| /' conftest.$ac_ext >&5
    3915 
    3916 ac_cv_lib_dl_dlopen=no
    3917 fi
    3918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    3919 LIBS=$ac_check_lib_save_LIBS
    3920 fi
    3921 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
    3922 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
    3923 if test $ac_cv_lib_dl_dlopen = yes; then
    3924   cat >>confdefs.h <<_ACEOF
    3925 #define HAVE_LIBDL 1
    3926 _ACEOF
     1960    builtin and then its argument prototype would still apply.  */
     1961char dlopen();
     1962
     1963int main() {
     1964dlopen()
     1965; return 0; }
     1966EOF
     1967if { (eval echo configure:1968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1968  rm -rf conftest*
     1969  eval "ac_cv_lib_$ac_lib_var=yes"
     1970else
     1971  echo "configure: failed program was:" >&5
     1972  cat conftest.$ac_ext >&5
     1973  rm -rf conftest*
     1974  eval "ac_cv_lib_$ac_lib_var=no"
     1975fi
     1976rm -f conftest*
     1977LIBS="$ac_save_LIBS"
     1978
     1979fi
     1980if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     1981  echo "$ac_t""yes" 1>&6
     1982    ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     1983    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     1984  cat >> confdefs.h <<EOF
     1985#define $ac_tr_lib 1
     1986EOF
    39271987
    39281988  LIBS="-ldl $LIBS"
    39291989
     1990else
     1991  echo "$ac_t""no" 1>&6
    39301992fi
    39311993
     
    39382000          fi
    39392001        ;;
     2002        ix86-freebsd)
     2003          echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
     2004echo "configure:2005: checking for dlopen in -lc" >&5
     2005ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
     2006if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     2007  echo $ac_n "(cached) $ac_c" 1>&6
     2008else
     2009  ac_save_LIBS="$LIBS"
     2010LIBS="-lc  $LIBS"
     2011cat > conftest.$ac_ext <<EOF
     2012#line 2013 "configure"
     2013#include "confdefs.h"
     2014/* Override any gcc2 internal prototype to avoid an error.  */
     2015/* We use char because int might match the return type of a gcc2
     2016    builtin and then its argument prototype would still apply.  */
     2017char dlopen();
     2018
     2019int main() {
     2020dlopen()
     2021; return 0; }
     2022EOF
     2023if { (eval echo configure:2024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2024  rm -rf conftest*
     2025  eval "ac_cv_lib_$ac_lib_var=yes"
     2026else
     2027  echo "configure: failed program was:" >&5
     2028  cat conftest.$ac_ext >&5
     2029  rm -rf conftest*
     2030  eval "ac_cv_lib_$ac_lib_var=no"
     2031fi
     2032rm -f conftest*
     2033LIBS="$ac_save_LIBS"
     2034
     2035fi
     2036if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     2037  echo "$ac_t""yes" 1>&6
     2038    ac_tr_lib=HAVE_LIB`echo c | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     2039    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     2040  cat >> confdefs.h <<EOF
     2041#define $ac_tr_lib 1
     2042EOF
     2043
     2044  LIBS="-lc $LIBS"
     2045
     2046else
     2047  echo "$ac_t""no" 1>&6
     2048fi
     2049
     2050          if test "$ac_cv_lib_c_dlopen" = yes; then
     2051                LD_DYN_FLAGS="-dynamic"
     2052                SFLAGS="-fpic -DPIC"
     2053                SLDFLAGS=-shared
     2054                LD=ld
     2055                ac_lib_dl=yes
     2056          fi
     2057        ;;
    39402058esac
    39412059
     
    39472065
    39482066# heder file checks
    3949 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    3950 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    3951 if test "${ac_cv_header_stdc+set}" = set; then
    3952   echo $ECHO_N "(cached) $ECHO_C" >&6
    3953 else
    3954   cat >conftest.$ac_ext <<_ACEOF
    3955 #line $LINENO "configure"
    3956 /* confdefs.h.  */
    3957 _ACEOF
    3958 cat confdefs.h >>conftest.$ac_ext
    3959 cat >>conftest.$ac_ext <<_ACEOF
    3960 /* end confdefs.h.  */
     2067echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
     2068echo "configure:2069: checking for ANSI C header files" >&5
     2069if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
     2070  echo $ac_n "(cached) $ac_c" 1>&6
     2071else
     2072  cat > conftest.$ac_ext <<EOF
     2073#line 2074 "configure"
     2074#include "confdefs.h"
    39612075#include <stdlib.h>
    39622076#include <stdarg.h>
    39632077#include <string.h>
    39642078#include <float.h>
    3965 
    3966 int
    3967 main ()
    3968 {
    3969 
    3970   ;
    3971   return 0;
    3972 }
    3973 _ACEOF
    3974 rm -f conftest.$ac_objext
    3975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3976   (eval $ac_compile) 2>&5
    3977   ac_status=$?
    3978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3979   (exit $ac_status); } &&
    3980          { ac_try='test -s conftest.$ac_objext'
    3981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3982   (eval $ac_try) 2>&5
    3983   ac_status=$?
    3984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3985   (exit $ac_status); }; }; then
     2079EOF
     2080ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     2081{ (eval echo configure:2082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2082ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     2083if test -z "$ac_err"; then
     2084  rm -rf conftest*
    39862085  ac_cv_header_stdc=yes
    39872086else
    3988   echo "$as_me: failed program was:" >&5
    3989 sed 's/^/| /' conftest.$ac_ext >&5
    3990 
    3991 ac_cv_header_stdc=no
    3992 fi
    3993 rm -f conftest.$ac_objext conftest.$ac_ext
     2087  echo "$ac_err" >&5
     2088  echo "configure: failed program was:" >&5
     2089  cat conftest.$ac_ext >&5
     2090  rm -rf conftest*
     2091  ac_cv_header_stdc=no
     2092fi
     2093rm -f conftest*
    39942094
    39952095if test $ac_cv_header_stdc = yes; then
    39962096  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    3997   cat >conftest.$ac_ext <<_ACEOF
    3998 #line $LINENO "configure"
    3999 /* confdefs.h.  */
    4000 _ACEOF
    4001 cat confdefs.h >>conftest.$ac_ext
    4002 cat >>conftest.$ac_ext <<_ACEOF
    4003 /* end confdefs.h.  */
     2097cat > conftest.$ac_ext <<EOF
     2098#line 2099 "configure"
     2099#include "confdefs.h"
    40042100#include <string.h>
    4005 
    4006 _ACEOF
     2101EOF
    40072102if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    4008   $EGREP "memchr" >/dev/null 2>&1; then
     2103  egrep "memchr" >/dev/null 2>&1; then
    40092104  :
    40102105else
     2106  rm -rf conftest*
    40112107  ac_cv_header_stdc=no
    40122108fi
     
    40172113if test $ac_cv_header_stdc = yes; then
    40182114  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    4019   cat >conftest.$ac_ext <<_ACEOF
    4020 #line $LINENO "configure"
    4021 /* confdefs.h.  */
    4022 _ACEOF
    4023 cat confdefs.h >>conftest.$ac_ext
    4024 cat >>conftest.$ac_ext <<_ACEOF
    4025 /* end confdefs.h.  */
     2115cat > conftest.$ac_ext <<EOF
     2116#line 2117 "configure"
     2117#include "confdefs.h"
    40262118#include <stdlib.h>
    4027 
    4028 _ACEOF
     2119EOF
    40292120if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    4030   $EGREP "free" >/dev/null 2>&1; then
     2121  egrep "free" >/dev/null 2>&1; then
    40312122  :
    40322123else
     2124  rm -rf conftest*
    40332125  ac_cv_header_stdc=no
    40342126fi
     
    40392131if test $ac_cv_header_stdc = yes; then
    40402132  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    4041   if test "$cross_compiling" = yes; then
     2133if test "$cross_compiling" = yes; then
    40422134  :
    40432135else
    4044   cat >conftest.$ac_ext <<_ACEOF
    4045 #line $LINENO "configure"
    4046 /* confdefs.h.  */
    4047 _ACEOF
    4048 cat confdefs.h >>conftest.$ac_ext
    4049 cat >>conftest.$ac_ext <<_ACEOF
    4050 /* end confdefs.h.  */
     2136  cat > conftest.$ac_ext <<EOF
     2137#line 2138 "configure"
     2138#include "confdefs.h"
    40512139#include <ctype.h>
    4052 #if ((' ' & 0x0FF) == 0x020)
    4053 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    4054 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    4055 #else
    4056 # define ISLOWER(c) \
    4057                    (('a' <= (c) && (c) <= 'i') \
    4058                      || ('j' <= (c) && (c) <= 'r') \
    4059                      || ('s' <= (c) && (c) <= 'z'))
    4060 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
    4061 #endif
    4062 
     2140#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     2141#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    40632142#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    4064 int
    4065 main ()
    4066 {
    4067   int i;
    4068   for (i = 0; i < 256; i++)
    4069     if (XOR (islower (i), ISLOWER (i))
    4070         || toupper (i) != TOUPPER (i))
    4071       exit(2);
    4072   exit (0);
    4073 }
    4074 _ACEOF
    4075 rm -f conftest$ac_exeext
    4076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4077   (eval $ac_link) 2>&5
    4078   ac_status=$?
    4079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4080   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    4081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4082   (eval $ac_try) 2>&5
    4083   ac_status=$?
    4084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4085   (exit $ac_status); }; }; then
     2143int main () { int i; for (i = 0; i < 256; i++)
     2144if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
     2145exit (0); }
     2146
     2147EOF
     2148if { (eval echo configure:2149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2149then
    40862150  :
    40872151else
    4088   echo "$as_me: program exited with status $ac_status" >&5
    4089 echo "$as_me: failed program was:" >&5
    4090 sed 's/^/| /' conftest.$ac_ext >&5
    4091 
    4092 ( exit $ac_status )
    4093 ac_cv_header_stdc=no
    4094 fi
    4095 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    4096 fi
    4097 fi
    4098 fi
    4099 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    4100 echo "${ECHO_T}$ac_cv_header_stdc" >&6
     2152  echo "configure: failed program was:" >&5
     2153  cat conftest.$ac_ext >&5
     2154  rm -fr conftest*
     2155  ac_cv_header_stdc=no
     2156fi
     2157rm -fr conftest*
     2158fi
     2159
     2160fi
     2161fi
     2162
     2163echo "$ac_t""$ac_cv_header_stdc" 1>&6
    41012164if test $ac_cv_header_stdc = yes; then
    4102 
    4103 cat >>confdefs.h <<\_ACEOF
     2165  cat >> confdefs.h <<\EOF
    41042166#define STDC_HEADERS 1
    4105 _ACEOF
    4106 
    4107 fi
    4108 
    4109 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
    4110 
    4111 
    4112 
    4113 
    4114 
    4115 
    4116 
    4117 
    4118 
    4119 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
    4120                   inttypes.h stdint.h unistd.h
     2167EOF
     2168
     2169fi
     2170
     2171for ac_hdr in limits.h unistd.h
    41212172do
    4122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    4123 echo "$as_me:$LINENO: checking for $ac_header" >&5
    4124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    4125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    4126   echo $ECHO_N "(cached) $ECHO_C" >&6
    4127 else
    4128   cat >conftest.$ac_ext <<_ACEOF
    4129 #line $LINENO "configure"
    4130 /* confdefs.h.  */
    4131 _ACEOF
    4132 cat confdefs.h >>conftest.$ac_ext
    4133 cat >>conftest.$ac_ext <<_ACEOF
    4134 /* end confdefs.h.  */
    4135 $ac_includes_default
    4136 
    4137 #include <$ac_header>
    4138 _ACEOF
    4139 rm -f conftest.$ac_objext
    4140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4141   (eval $ac_compile) 2>&5
    4142   ac_status=$?
    4143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4144   (exit $ac_status); } &&
    4145          { ac_try='test -s conftest.$ac_objext'
    4146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4147   (eval $ac_try) 2>&5
    4148   ac_status=$?
    4149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4150   (exit $ac_status); }; }; then
    4151   eval "$as_ac_Header=yes"
    4152 else
    4153   echo "$as_me: failed program was:" >&5
    4154 sed 's/^/| /' conftest.$ac_ext >&5
    4155 
    4156 eval "$as_ac_Header=no"
    4157 fi
    4158 rm -f conftest.$ac_objext conftest.$ac_ext
    4159 fi
    4160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    4161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    4162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    4163   cat >>confdefs.h <<_ACEOF
    4164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    4165 _ACEOF
    4166 
    4167 fi
    4168 
     2173ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
     2174echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
     2175echo "configure:2176: checking for $ac_hdr" >&5
     2176if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
     2177  echo $ac_n "(cached) $ac_c" 1>&6
     2178else
     2179  cat > conftest.$ac_ext <<EOF
     2180#line 2181 "configure"
     2181#include "confdefs.h"
     2182#include <$ac_hdr>
     2183EOF
     2184ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     2185{ (eval echo configure:2186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2186ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     2187if test -z "$ac_err"; then
     2188  rm -rf conftest*
     2189  eval "ac_cv_header_$ac_safe=yes"
     2190else
     2191  echo "$ac_err" >&5
     2192  echo "configure: failed program was:" >&5
     2193  cat conftest.$ac_ext >&5
     2194  rm -rf conftest*
     2195  eval "ac_cv_header_$ac_safe=no"
     2196fi
     2197rm -f conftest*
     2198fi
     2199if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
     2200  echo "$ac_t""yes" 1>&6
     2201    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
     2202  cat >> confdefs.h <<EOF
     2203#define $ac_tr_hdr 1
     2204EOF
     2205 
     2206else
     2207  echo "$ac_t""no" 1>&6
     2208{ echo "configure: error: Can not compile without limits.h unistd.h" 1>&2; exit 1; }
     2209fi
    41692210done
    41702211
    41712212
    4172 
    4173 
    4174 for ac_header in limits.h unistd.h
    4175 do
    4176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    4177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    4178   echo "$as_me:$LINENO: checking for $ac_header" >&5
    4179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    4180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    4181   echo $ECHO_N "(cached) $ECHO_C" >&6
    4182 fi
    4183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    4184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    4185 else
    4186   # Is the header compilable?
    4187 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    4188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    4189 cat >conftest.$ac_ext <<_ACEOF
    4190 #line $LINENO "configure"
    4191 /* confdefs.h.  */
    4192 _ACEOF
    4193 cat confdefs.h >>conftest.$ac_ext
    4194 cat >>conftest.$ac_ext <<_ACEOF
    4195 /* end confdefs.h.  */
    4196 $ac_includes_default
    4197 #include <$ac_header>
    4198 _ACEOF
    4199 rm -f conftest.$ac_objext
    4200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4201   (eval $ac_compile) 2>&5
    4202   ac_status=$?
    4203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4204   (exit $ac_status); } &&
    4205          { ac_try='test -s conftest.$ac_objext'
    4206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4207   (eval $ac_try) 2>&5
    4208   ac_status=$?
    4209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4210   (exit $ac_status); }; }; then
    4211   ac_header_compiler=yes
    4212 else
    4213   echo "$as_me: failed program was:" >&5
    4214 sed 's/^/| /' conftest.$ac_ext >&5
    4215 
    4216 ac_header_compiler=no
    4217 fi
    4218 rm -f conftest.$ac_objext conftest.$ac_ext
    4219 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    4220 echo "${ECHO_T}$ac_header_compiler" >&6
    4221 
    4222 # Is the header present?
    4223 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    4224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    4225 cat >conftest.$ac_ext <<_ACEOF
    4226 #line $LINENO "configure"
    4227 /* confdefs.h.  */
    4228 _ACEOF
    4229 cat confdefs.h >>conftest.$ac_ext
    4230 cat >>conftest.$ac_ext <<_ACEOF
    4231 /* end confdefs.h.  */
    4232 #include <$ac_header>
    4233 _ACEOF
    4234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    4235   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    4236   ac_status=$?
    4237   grep -v '^ *+' conftest.er1 >conftest.err
    4238   rm -f conftest.er1
    4239   cat conftest.err >&5
    4240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4241   (exit $ac_status); } >/dev/null; then
    4242   if test -s conftest.err; then
    4243     ac_cpp_err=$ac_c_preproc_warn_flag
    4244   else
    4245     ac_cpp_err=
    4246   fi
    4247 else
    4248   ac_cpp_err=yes
    4249 fi
    4250 if test -z "$ac_cpp_err"; then
    4251   ac_header_preproc=yes
    4252 else
    4253   echo "$as_me: failed program was:" >&5
    4254 sed 's/^/| /' conftest.$ac_ext >&5
    4255 
    4256   ac_header_preproc=no
    4257 fi
    4258 rm -f conftest.err conftest.$ac_ext
    4259 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    4260 echo "${ECHO_T}$ac_header_preproc" >&6
    4261 
    4262 # So?  What about this header?
    4263 case $ac_header_compiler:$ac_header_preproc in
    4264   yes:no )
    4265     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    4266 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    4267     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    4268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    4269     (
    4270       cat <<\_ASBOX
    4271 ## ------------------------------------ ##
    4272 ## Report this to bug-autoconf@gnu.org. ##
    4273 ## ------------------------------------ ##
    4274 _ASBOX
    4275     ) |
    4276       sed "s/^/$as_me: WARNING:     /" >&2
    4277     ;;
    4278   no:yes )
    4279     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    4280 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    4281     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
    4282 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    4283     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    4284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    4285     (
    4286       cat <<\_ASBOX
    4287 ## ------------------------------------ ##
    4288 ## Report this to bug-autoconf@gnu.org. ##
    4289 ## ------------------------------------ ##
    4290 _ASBOX
    4291     ) |
    4292       sed "s/^/$as_me: WARNING:     /" >&2
    4293     ;;
    4294 esac
    4295 echo "$as_me:$LINENO: checking for $ac_header" >&5
    4296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    4297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    4298   echo $ECHO_N "(cached) $ECHO_C" >&6
    4299 else
    4300   eval "$as_ac_Header=$ac_header_preproc"
    4301 fi
    4302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    4303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    4304 
    4305 fi
    4306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    4307   cat >>confdefs.h <<_ACEOF
    4308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    4309 _ACEOF
    4310 
    4311 else
    4312   { { echo "$as_me:$LINENO: error: Can not compile without limits.h unistd.h" >&5
    4313 echo "$as_me: error: Can not compile without limits.h unistd.h" >&2;}
    4314    { (exit 1); exit 1; }; }
    4315 fi
    4316 
    4317 done
    4318 
    4319 
    4320 
    4321 
    4322 
    4323 
    4324 
    4325 
    4326 
    4327 
    4328 
    4329 
    4330 
    4331 
    4332 
    4333 
    4334 
    4335 for ac_header in sys/file.h sys/ioctl.h sys/time.h sys/times.h sys/types.h \
     2213for ac_hdr in sys/file.h sys/ioctl.h sys/time.h sys/times.h sys/types.h \
    43362214 sys/stat.h fcntl.h sys/param.h pwd.h asm/sigcontext.h pwd.h termcap.h \
    43372215 termios.h term.h readline/readline.h
    43382216do
    4339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    4340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    4341   echo "$as_me:$LINENO: checking for $ac_header" >&5
    4342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    4343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    4344   echo $ECHO_N "(cached) $ECHO_C" >&6
    4345 fi
    4346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    4347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    4348 else
    4349   # Is the header compilable?
    4350 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    4351 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    4352 cat >conftest.$ac_ext <<_ACEOF
    4353 #line $LINENO "configure"
    4354 /* confdefs.h.  */
    4355 _ACEOF
    4356 cat confdefs.h >>conftest.$ac_ext
    4357 cat >>conftest.$ac_ext <<_ACEOF
    4358 /* end confdefs.h.  */
    4359 $ac_includes_default
    4360 #include <$ac_header>
    4361 _ACEOF
    4362 rm -f conftest.$ac_objext
    4363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4364   (eval $ac_compile) 2>&5
    4365   ac_status=$?
    4366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4367   (exit $ac_status); } &&
    4368          { ac_try='test -s conftest.$ac_objext'
    4369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4370   (eval $ac_try) 2>&5
    4371   ac_status=$?
    4372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4373   (exit $ac_status); }; }; then
    4374   ac_header_compiler=yes
    4375 else
    4376   echo "$as_me: failed program was:" >&5
    4377 sed 's/^/| /' conftest.$ac_ext >&5
    4378 
    4379 ac_header_compiler=no
    4380 fi
    4381 rm -f conftest.$ac_objext conftest.$ac_ext
    4382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    4383 echo "${ECHO_T}$ac_header_compiler" >&6
    4384 
    4385 # Is the header present?
    4386 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    4387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    4388 cat >conftest.$ac_ext <<_ACEOF
    4389 #line $LINENO "configure"
    4390 /* confdefs.h.  */
    4391 _ACEOF
    4392 cat confdefs.h >>conftest.$ac_ext
    4393 cat >>conftest.$ac_ext <<_ACEOF
    4394 /* end confdefs.h.  */
    4395 #include <$ac_header>
    4396 _ACEOF
    4397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    4398   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    4399   ac_status=$?
    4400   grep -v '^ *+' conftest.er1 >conftest.err
    4401   rm -f conftest.er1
    4402   cat conftest.err >&5
    4403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4404   (exit $ac_status); } >/dev/null; then
    4405   if test -s conftest.err; then
    4406     ac_cpp_err=$ac_c_preproc_warn_flag
    4407   else
    4408     ac_cpp_err=
    4409   fi
    4410 else
    4411   ac_cpp_err=yes
    4412 fi
    4413 if test -z "$ac_cpp_err"; then
    4414   ac_header_preproc=yes
    4415 else
    4416   echo "$as_me: failed program was:" >&5
    4417 sed 's/^/| /' conftest.$ac_ext >&5
    4418 
    4419   ac_header_preproc=no
    4420 fi
    4421 rm -f conftest.err conftest.$ac_ext
    4422 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    4423 echo "${ECHO_T}$ac_header_preproc" >&6
    4424 
    4425 # So?  What about this header?
    4426 case $ac_header_compiler:$ac_header_preproc in
    4427   yes:no )
    4428     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    4429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    4430     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    4431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    4432     (
    4433       cat <<\_ASBOX
    4434 ## ------------------------------------ ##
    4435 ## Report this to bug-autoconf@gnu.org. ##
    4436 ## ------------------------------------ ##
    4437 _ASBOX
    4438     ) |
    4439       sed "s/^/$as_me: WARNING:     /" >&2
    4440     ;;
    4441   no:yes )
    4442     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    4443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    4444     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
    4445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    4446     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    4447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    4448     (
    4449       cat <<\_ASBOX
    4450 ## ------------------------------------ ##
    4451 ## Report this to bug-autoconf@gnu.org. ##
    4452 ## ------------------------------------ ##
    4453 _ASBOX
    4454     ) |
    4455       sed "s/^/$as_me: WARNING:     /" >&2
    4456     ;;
    4457 esac
    4458 echo "$as_me:$LINENO: checking for $ac_header" >&5
    4459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    4460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    4461   echo $ECHO_N "(cached) $ECHO_C" >&6
    4462 else
    4463   eval "$as_ac_Header=$ac_header_preproc"
    4464 fi
    4465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    4466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    4467 
    4468 fi
    4469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    4470   cat >>confdefs.h <<_ACEOF
    4471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    4472 _ACEOF
    4473 
    4474 fi
    4475 
     2217ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
     2218echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
     2219echo "configure:2220: checking for $ac_hdr" >&5
     2220if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
     2221  echo $ac_n "(cached) $ac_c" 1>&6
     2222else
     2223  cat > conftest.$ac_ext <<EOF
     2224#line 2225 "configure"
     2225#include "confdefs.h"
     2226#include <$ac_hdr>
     2227EOF
     2228ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     2229{ (eval echo configure:2230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2230ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     2231if test -z "$ac_err"; then
     2232  rm -rf conftest*
     2233  eval "ac_cv_header_$ac_safe=yes"
     2234else
     2235  echo "$ac_err" >&5
     2236  echo "configure: failed program was:" >&5
     2237  cat conftest.$ac_ext >&5
     2238  rm -rf conftest*
     2239  eval "ac_cv_header_$ac_safe=no"
     2240fi
     2241rm -f conftest*
     2242fi
     2243if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
     2244  echo "$ac_t""yes" 1>&6
     2245    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
     2246  cat >> confdefs.h <<EOF
     2247#define $ac_tr_hdr 1
     2248EOF
     2249 
     2250else
     2251  echo "$ac_t""no" 1>&6
     2252fi
    44762253done
    44772254
    44782255
    44792256# typedefs, structures
    4480 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
    4481 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
    4482 if test "${ac_cv_c_const+set}" = set; then
    4483   echo $ECHO_N "(cached) $ECHO_C" >&6
    4484 else
    4485   cat >conftest.$ac_ext <<_ACEOF
    4486 #line $LINENO "configure"
    4487 /* confdefs.h.  */
    4488 _ACEOF
    4489 cat confdefs.h >>conftest.$ac_ext
    4490 cat >>conftest.$ac_ext <<_ACEOF
    4491 /* end confdefs.h.  */
    4492 
    4493 int
    4494 main ()
    4495 {
    4496 /* FIXME: Include the comments suggested by Paul. */
    4497 #ifndef __cplusplus
    4498   /* Ultrix mips cc rejects this.  */
    4499   typedef int charset[2];
    4500   const charset x;
    4501   /* SunOS 4.1.1 cc rejects this.  */
    4502   char const *const *ccp;
    4503   char **p;
    4504   /* NEC SVR4.0.2 mips cc rejects this.  */
    4505   struct point {int x, y;};
    4506   static struct point const zero = {0,0};
    4507   /* AIX XL C 1.02.0.0 rejects this.
    4508      It does not let you subtract one const X* pointer from another in
    4509      an arm of an if-expression whose if-part is not a constant
    4510      expression */
    4511   const char *g = "string";
    4512   ccp = &g + (g ? g-g : 0);
    4513   /* HPUX 7.0 cc rejects these. */
    4514   ++ccp;
    4515   p = (char**) ccp;
    4516   ccp = (char const *const *) p;
    4517   { /* SCO 3.2v4 cc rejects this.  */
    4518     char *t;
    4519     char const *s = 0 ? (char *) 0 : (char const *) 0;
    4520 
    4521     *t++ = 0;
    4522   }
    4523   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    4524     int x[] = {25, 17};
    4525     const int *foo = &x[0];
    4526     ++foo;
    4527   }
    4528   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    4529     typedef const int *iptr;
    4530     iptr p = 0;
    4531     ++p;
    4532   }
    4533   { /* AIX XL C 1.02.0.0 rejects this saying
    4534        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    4535     struct s { int j; const int *ap[3]; };
    4536     struct s *b; b->j = 5;
    4537   }
    4538   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    4539     const int foo = 10;
    4540   }
    4541 #endif
    4542 
    4543   ;
    4544   return 0;
     2257echo $ac_n "checking for working const""... $ac_c" 1>&6
     2258echo "configure:2259: checking for working const" >&5
     2259if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
     2260  echo $ac_n "(cached) $ac_c" 1>&6
     2261else
     2262  cat > conftest.$ac_ext <<EOF
     2263#line 2264 "configure"
     2264#include "confdefs.h"
     2265
     2266int main() {
     2267
     2268/* Ultrix mips cc rejects this.  */
     2269typedef int charset[2]; const charset x;
     2270/* SunOS 4.1.1 cc rejects this.  */
     2271char const *const *ccp;
     2272char **p;
     2273/* NEC SVR4.0.2 mips cc rejects this.  */
     2274struct point {int x, y;};
     2275static struct point const zero = {0,0};
     2276/* AIX XL C 1.02.0.0 rejects this.
     2277   It does not let you subtract one const X* pointer from another in an arm
     2278   of an if-expression whose if-part is not a constant expression */
     2279const char *g = "string";
     2280ccp = &g + (g ? g-g : 0);
     2281/* HPUX 7.0 cc rejects these. */
     2282++ccp;
     2283p = (char**) ccp;
     2284ccp = (char const *const *) p;
     2285{ /* SCO 3.2v4 cc rejects this.  */
     2286  char *t;
     2287  char const *s = 0 ? (char *) 0 : (char const *) 0;
     2288
     2289  *t++ = 0;
    45452290}
    4546 _ACEOF
    4547 rm -f conftest.$ac_objext
    4548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4549   (eval $ac_compile) 2>&5
    4550   ac_status=$?
    4551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4552   (exit $ac_status); } &&
    4553          { ac_try='test -s conftest.$ac_objext'
    4554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4555   (eval $ac_try) 2>&5
    4556   ac_status=$?
    4557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4558   (exit $ac_status); }; }; then
     2291{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
     2292  int x[] = {25, 17};
     2293  const int *foo = &x[0];
     2294  ++foo;
     2295}
     2296{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
     2297  typedef const int *iptr;
     2298  iptr p = 0;
     2299  ++p;
     2300}
     2301{ /* AIX XL C 1.02.0.0 rejects this saying
     2302     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
     2303  struct s { int j; const int *ap[3]; };
     2304  struct s *b; b->j = 5;
     2305}
     2306{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
     2307  const int foo = 10;
     2308}
     2309
     2310; return 0; }
     2311EOF
     2312if { (eval echo configure:2313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2313  rm -rf conftest*
    45592314  ac_cv_c_const=yes
    45602315else
    4561   echo "$as_me: failed program was:" >&5
    4562 sed 's/^/| /' conftest.$ac_ext >&5
    4563 
    4564 ac_cv_c_const=no
    4565 fi
    4566 rm -f conftest.$ac_objext conftest.$ac_ext
    4567 fi
    4568 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
    4569 echo "${ECHO_T}$ac_cv_c_const" >&6
     2316  echo "configure: failed program was:" >&5
     2317  cat conftest.$ac_ext >&5
     2318  rm -rf conftest*
     2319  ac_cv_c_const=no
     2320fi
     2321rm -f conftest*
     2322fi
     2323
     2324echo "$ac_t""$ac_cv_c_const" 1>&6
    45702325if test $ac_cv_c_const = no; then
    4571 
    4572 cat >>confdefs.h <<\_ACEOF
    4573 #define const
    4574 _ACEOF
    4575 
    4576 fi
    4577 
    4578 echo "$as_me:$LINENO: checking for inline" >&5
    4579 echo $ECHO_N "checking for inline... $ECHO_C" >&6
    4580 if test "${ac_cv_c_inline+set}" = set; then
    4581   echo $ECHO_N "(cached) $ECHO_C" >&6
     2326  cat >> confdefs.h <<\EOF
     2327#define const
     2328EOF
     2329
     2330fi
     2331
     2332echo $ac_n "checking for inline""... $ac_c" 1>&6
     2333echo "configure:2334: checking for inline" >&5
     2334if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
     2335  echo $ac_n "(cached) $ac_c" 1>&6
    45822336else
    45832337  ac_cv_c_inline=no
    45842338for ac_kw in inline __inline__ __inline; do
    4585   cat >conftest.$ac_ext <<_ACEOF
    4586 #line $LINENO "configure"
    4587 /* confdefs.h.  */
    4588 _ACEOF
    4589 cat confdefs.h >>conftest.$ac_ext
    4590 cat >>conftest.$ac_ext <<_ACEOF
    4591 /* end confdefs.h.  */
    4592 #ifndef __cplusplus
    4593 typedef int foo_t;
    4594 static $ac_kw foo_t static_foo () {return 0; }
    4595 $ac_kw foo_t foo () {return 0; }
    4596 #endif
    4597 
    4598 _ACEOF
    4599 rm -f conftest.$ac_objext
    4600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4601   (eval $ac_compile) 2>&5
    4602   ac_status=$?
    4603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4604   (exit $ac_status); } &&
    4605          { ac_try='test -s conftest.$ac_objext'
    4606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4607   (eval $ac_try) 2>&5
    4608   ac_status=$?
    4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4610   (exit $ac_status); }; }; then
     2339  cat > conftest.$ac_ext <<EOF
     2340#line 2341 "configure"
     2341#include "confdefs.h"
     2342
     2343int main() {
     2344} $ac_kw foo() {
     2345; return 0; }
     2346EOF
     2347if { (eval echo configure:2348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2348  rm -rf conftest*
    46112349  ac_cv_c_inline=$ac_kw; break
    46122350else
    4613   echo "$as_me: failed program was:" >&5
    4614 sed 's/^/| /' conftest.$ac_ext >&5
    4615 
    4616 fi
    4617 rm -f conftest.$ac_objext conftest.$ac_ext
     2351  echo "configure: failed program was:" >&5
     2352  cat conftest.$ac_ext >&5
     2353fi
     2354rm -f conftest*
    46182355done
    46192356
    46202357fi
    4621 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
    4622 echo "${ECHO_T}$ac_cv_c_inline" >&6
    4623 case $ac_cv_c_inline in
     2358
     2359echo "$ac_t""$ac_cv_c_inline" 1>&6
     2360case "$ac_cv_c_inline" in
    46242361  inline | yes) ;;
    4625   no)
    4626 cat >>confdefs.h <<\_ACEOF
    4627 #define inline
    4628 _ACEOF
     2362  no) cat >> confdefs.h <<\EOF
     2363#define inline
     2364EOF
    46292365 ;;
    4630   *)  cat >>confdefs.h <<_ACEOF
     2366  *)  cat >> confdefs.h <<EOF
    46312367#define inline $ac_cv_c_inline
    4632 _ACEOF
     2368EOF
    46332369 ;;
    46342370esac
    46352371
    4636 echo "$as_me:$LINENO: checking for size_t" >&5
    4637 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
    4638 if test "${ac_cv_type_size_t+set}" = set; then
    4639   echo $ECHO_N "(cached) $ECHO_C" >&6
    4640 else
    4641   cat >conftest.$ac_ext <<_ACEOF
    4642 #line $LINENO "configure"
    4643 /* confdefs.h.  */
    4644 _ACEOF
    4645 cat confdefs.h >>conftest.$ac_ext
    4646 cat >>conftest.$ac_ext <<_ACEOF
    4647 /* end confdefs.h.  */
    4648 $ac_includes_default
    4649 int
    4650 main ()
    4651 {
    4652 if ((size_t *) 0)
    4653   return 0;
    4654 if (sizeof (size_t))
    4655   return 0;
    4656   ;
    4657   return 0;
    4658 }
    4659 _ACEOF
    4660 rm -f conftest.$ac_objext
    4661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4662   (eval $ac_compile) 2>&5
    4663   ac_status=$?
    4664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4665   (exit $ac_status); } &&
    4666          { ac_try='test -s conftest.$ac_objext'
    4667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4668   (eval $ac_try) 2>&5
    4669   ac_status=$?
    4670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4671   (exit $ac_status); }; }; then
     2372echo $ac_n "checking for size_t""... $ac_c" 1>&6
     2373echo "configure:2374: checking for size_t" >&5
     2374if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
     2375  echo $ac_n "(cached) $ac_c" 1>&6
     2376else
     2377  cat > conftest.$ac_ext <<EOF
     2378#line 2379 "configure"
     2379#include "confdefs.h"
     2380#include <sys/types.h>
     2381#if STDC_HEADERS
     2382#include <stdlib.h>
     2383#include <stddef.h>
     2384#endif
     2385EOF
     2386if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     2387  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
     2388  rm -rf conftest*
    46722389  ac_cv_type_size_t=yes
    46732390else
    4674   echo "$as_me: failed program was:" >&5
    4675 sed 's/^/| /' conftest.$ac_ext >&5
    4676 
    4677 ac_cv_type_size_t=no
    4678 fi
    4679 rm -f conftest.$ac_objext conftest.$ac_ext
    4680 fi
    4681 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
    4682 echo "${ECHO_T}$ac_cv_type_size_t" >&6
    4683 if test $ac_cv_type_size_t = yes; then
    4684   :
    4685 else
    4686 
    4687 cat >>confdefs.h <<_ACEOF
     2391  rm -rf conftest*
     2392  ac_cv_type_size_t=no
     2393fi
     2394rm -f conftest*
     2395
     2396fi
     2397echo "$ac_t""$ac_cv_type_size_t" 1>&6
     2398if test $ac_cv_type_size_t = no; then
     2399  cat >> confdefs.h <<\EOF
    46882400#define size_t unsigned
    4689 _ACEOF
    4690 
    4691 fi
    4692 
    4693 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
    4694 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
    4695 if test "${ac_cv_struct_tm+set}" = set; then
    4696   echo $ECHO_N "(cached) $ECHO_C" >&6
    4697 else
    4698   cat >conftest.$ac_ext <<_ACEOF
    4699 #line $LINENO "configure"
    4700 /* confdefs.h.  */
    4701 _ACEOF
    4702 cat confdefs.h >>conftest.$ac_ext
    4703 cat >>conftest.$ac_ext <<_ACEOF
    4704 /* end confdefs.h.  */
     2401EOF
     2402
     2403fi
     2404
     2405echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
     2406echo "configure:2407: checking whether struct tm is in sys/time.h or time.h" >&5
     2407if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
     2408  echo $ac_n "(cached) $ac_c" 1>&6
     2409else
     2410  cat > conftest.$ac_ext <<EOF
     2411#line 2412 "configure"
     2412#include "confdefs.h"
    47052413#include <sys/types.h>
    47062414#include <time.h>
    4707 
    4708 int
    4709 main ()
    4710 {
     2415int main() {
    47112416struct tm *tp; tp->tm_sec;
    4712   ;
    4713   return 0;
    4714 }
    4715 _ACEOF
    4716 rm -f conftest.$ac_objext
    4717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4718   (eval $ac_compile) 2>&5
    4719   ac_status=$?
    4720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4721   (exit $ac_status); } &&
    4722          { ac_try='test -s conftest.$ac_objext'
    4723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4724   (eval $ac_try) 2>&5
    4725   ac_status=$?
    4726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4727   (exit $ac_status); }; }; then
     2417; return 0; }
     2418EOF
     2419if { (eval echo configure:2420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2420  rm -rf conftest*
    47282421  ac_cv_struct_tm=time.h
    47292422else
    4730   echo "$as_me: failed program was:" >&5
    4731 sed 's/^/| /' conftest.$ac_ext >&5
    4732 
    4733 ac_cv_struct_tm=sys/time.h
    4734 fi
    4735 rm -f conftest.$ac_objext conftest.$ac_ext
    4736 fi
    4737 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
    4738 echo "${ECHO_T}$ac_cv_struct_tm" >&6
     2423  echo "configure: failed program was:" >&5
     2424  cat conftest.$ac_ext >&5
     2425  rm -rf conftest*
     2426  ac_cv_struct_tm=sys/time.h
     2427fi
     2428rm -f conftest*
     2429fi
     2430
     2431echo "$ac_t""$ac_cv_struct_tm" 1>&6
    47392432if test $ac_cv_struct_tm = sys/time.h; then
    4740 
    4741 cat >>confdefs.h <<\_ACEOF
     2433  cat >> confdefs.h <<\EOF
    47422434#define TM_IN_SYS_TIME 1
    4743 _ACEOF
    4744 
    4745 fi
    4746 
    4747 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
    4748 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
    4749 if test "${ac_cv_header_time+set}" = set; then
    4750   echo $ECHO_N "(cached) $ECHO_C" >&6
    4751 else
    4752   cat >conftest.$ac_ext <<_ACEOF
    4753 #line $LINENO "configure"
    4754 /* confdefs.h.  */
    4755 _ACEOF
    4756 cat confdefs.h >>conftest.$ac_ext
    4757 cat >>conftest.$ac_ext <<_ACEOF
    4758 /* end confdefs.h.  */
     2435EOF
     2436
     2437fi
     2438
     2439echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
     2440echo "configure:2441: checking whether time.h and sys/time.h may both be included" >&5
     2441if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
     2442  echo $ac_n "(cached) $ac_c" 1>&6
     2443else
     2444  cat > conftest.$ac_ext <<EOF
     2445#line 2446 "configure"
     2446#include "confdefs.h"
    47592447#include <sys/types.h>
    47602448#include <sys/time.h>
    47612449#include <time.h>
    4762 
    4763 int
    4764 main ()
    4765 {
    4766 if ((struct tm *) 0)
    4767 return 0;
    4768   ;
    4769   return 0;
    4770 }
    4771 _ACEOF
    4772 rm -f conftest.$ac_objext
    4773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4774   (eval $ac_compile) 2>&5
    4775   ac_status=$?
    4776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4777   (exit $ac_status); } &&
    4778          { ac_try='test -s conftest.$ac_objext'
    4779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4780   (eval $ac_try) 2>&5
    4781   ac_status=$?
    4782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4783   (exit $ac_status); }; }; then
     2450int main() {
     2451struct tm *tp;
     2452; return 0; }
     2453EOF
     2454if { (eval echo configure:2455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2455  rm -rf conftest*
    47842456  ac_cv_header_time=yes
    47852457else
    4786   echo "$as_me: failed program was:" >&5
    4787 sed 's/^/| /' conftest.$ac_ext >&5
    4788 
    4789 ac_cv_header_time=no
    4790 fi
    4791 rm -f conftest.$ac_objext conftest.$ac_ext
    4792 fi
    4793 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
    4794 echo "${ECHO_T}$ac_cv_header_time" >&6
     2458  echo "configure: failed program was:" >&5
     2459  cat conftest.$ac_ext >&5
     2460  rm -rf conftest*
     2461  ac_cv_header_time=no
     2462fi
     2463rm -f conftest*
     2464fi
     2465
     2466echo "$ac_t""$ac_cv_header_time" 1>&6
    47952467if test $ac_cv_header_time = yes; then
    4796 
    4797 cat >>confdefs.h <<\_ACEOF
     2468  cat >> confdefs.h <<\EOF
    47982469#define TIME_WITH_SYS_TIME 1
    4799 _ACEOF
     2470EOF
    48002471
    48012472fi
     
    48052476# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
    48062477# for constant arguments.  Useless!
    4807 echo "$as_me:$LINENO: checking for working alloca.h" >&5
    4808 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
    4809 if test "${ac_cv_working_alloca_h+set}" = set; then
    4810   echo $ECHO_N "(cached) $ECHO_C" >&6
    4811 else
    4812   cat >conftest.$ac_ext <<_ACEOF
    4813 #line $LINENO "configure"
    4814 /* confdefs.h.  */
    4815 _ACEOF
    4816 cat confdefs.h >>conftest.$ac_ext
    4817 cat >>conftest.$ac_ext <<_ACEOF
    4818 /* end confdefs.h.  */
     2478echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
     2479echo "configure:2480: checking for working alloca.h" >&5
     2480if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
     2481  echo $ac_n "(cached) $ac_c" 1>&6
     2482else
     2483  cat > conftest.$ac_ext <<EOF
     2484#line 2485 "configure"
     2485#include "confdefs.h"
    48192486#include <alloca.h>
    4820 int
    4821 main ()
    4822 {
    4823 char *p = (char *) alloca (2 * sizeof (int));
    4824   ;
    4825   return 0;
    4826 }
    4827 _ACEOF
    4828 rm -f conftest.$ac_objext conftest$ac_exeext
    4829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4830   (eval $ac_link) 2>&5
    4831   ac_status=$?
    4832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4833   (exit $ac_status); } &&
    4834          { ac_try='test -s conftest$ac_exeext'
    4835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4836   (eval $ac_try) 2>&5
    4837   ac_status=$?
    4838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4839   (exit $ac_status); }; }; then
    4840   ac_cv_working_alloca_h=yes
    4841 else
    4842   echo "$as_me: failed program was:" >&5
    4843 sed 's/^/| /' conftest.$ac_ext >&5
    4844 
    4845 ac_cv_working_alloca_h=no
    4846 fi
    4847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4848 fi
    4849 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
    4850 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
    4851 if test $ac_cv_working_alloca_h = yes; then
    4852 
    4853 cat >>confdefs.h <<\_ACEOF
     2487int main() {
     2488char *p = alloca(2 * sizeof(int));
     2489; return 0; }
     2490EOF
     2491if { (eval echo configure:2492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2492  rm -rf conftest*
     2493  ac_cv_header_alloca_h=yes
     2494else
     2495  echo "configure: failed program was:" >&5
     2496  cat conftest.$ac_ext >&5
     2497  rm -rf conftest*
     2498  ac_cv_header_alloca_h=no
     2499fi
     2500rm -f conftest*
     2501fi
     2502
     2503echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
     2504if test $ac_cv_header_alloca_h = yes; then
     2505  cat >> confdefs.h <<\EOF
    48542506#define HAVE_ALLOCA_H 1
    4855 _ACEOF
    4856 
    4857 fi
    4858 
    4859 echo "$as_me:$LINENO: checking for alloca" >&5
    4860 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
    4861 if test "${ac_cv_func_alloca_works+set}" = set; then
    4862   echo $ECHO_N "(cached) $ECHO_C" >&6
    4863 else
    4864   cat >conftest.$ac_ext <<_ACEOF
    4865 #line $LINENO "configure"
    4866 /* confdefs.h.  */
    4867 _ACEOF
    4868 cat confdefs.h >>conftest.$ac_ext
    4869 cat >>conftest.$ac_ext <<_ACEOF
    4870 /* end confdefs.h.  */
     2507EOF
     2508
     2509fi
     2510
     2511echo $ac_n "checking for alloca""... $ac_c" 1>&6
     2512echo "configure:2513: checking for alloca" >&5
     2513if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
     2514  echo $ac_n "(cached) $ac_c" 1>&6
     2515else
     2516  cat > conftest.$ac_ext <<EOF
     2517#line 2518 "configure"
     2518#include "confdefs.h"
     2519
    48712520#ifdef __GNUC__
    48722521# define alloca __builtin_alloca
     
    48902539#endif
    48912540
    4892 int
    4893 main ()
    4894 {
    4895 char *p = (char *) alloca (1);
    4896   ;
    4897   return 0;
    4898 }
    4899 _ACEOF
    4900 rm -f conftest.$ac_objext conftest$ac_exeext
    4901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4902   (eval $ac_link) 2>&5
    4903   ac_status=$?
    4904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4905   (exit $ac_status); } &&
    4906          { ac_try='test -s conftest$ac_exeext'
    4907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4908   (eval $ac_try) 2>&5
    4909   ac_status=$?
    4910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4911   (exit $ac_status); }; }; then
     2541int main() {
     2542char *p = (char *) alloca(1);
     2543; return 0; }
     2544EOF
     2545if { (eval echo configure:2546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2546  rm -rf conftest*
    49122547  ac_cv_func_alloca_works=yes
    49132548else
    4914   echo "$as_me: failed program was:" >&5
    4915 sed 's/^/| /' conftest.$ac_ext >&5
    4916 
    4917 ac_cv_func_alloca_works=no
    4918 fi
    4919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    4920 fi
    4921 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
    4922 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
    4923 
     2549  echo "configure: failed program was:" >&5
     2550  cat conftest.$ac_ext >&5
     2551  rm -rf conftest*
     2552  ac_cv_func_alloca_works=no
     2553fi
     2554rm -f conftest*
     2555fi
     2556
     2557echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
    49242558if test $ac_cv_func_alloca_works = yes; then
    4925 
    4926 cat >>confdefs.h <<\_ACEOF
     2559  cat >> confdefs.h <<\EOF
    49272560#define HAVE_ALLOCA 1
    4928 _ACEOF
    4929 
    4930 else
     2561EOF
     2562
     2563fi
     2564
     2565if test $ac_cv_func_alloca_works = no; then
    49312566  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
    4932 # that cause trouble.  Some versions do not even contain alloca or
    4933 # contain a buggy version.  If you still want to use their alloca,
    4934 # use ar to extract alloca.o from them instead of compiling alloca.c.
    4935 
    4936 ALLOCA=alloca.$ac_objext
    4937 
    4938 cat >>confdefs.h <<\_ACEOF
     2567  # that cause trouble.  Some versions do not even contain alloca or
     2568  # contain a buggy version.  If you still want to use their alloca,
     2569  # use ar to extract alloca.o from them instead of compiling alloca.c.
     2570  ALLOCA=alloca.${ac_objext}
     2571  cat >> confdefs.h <<\EOF
    49392572#define C_ALLOCA 1
    4940 _ACEOF
    4941 
    4942 
    4943 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
    4944 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
    4945 if test "${ac_cv_os_cray+set}" = set; then
    4946   echo $ECHO_N "(cached) $ECHO_C" >&6
    4947 else
    4948   cat >conftest.$ac_ext <<_ACEOF
    4949 #line $LINENO "configure"
    4950 /* confdefs.h.  */
    4951 _ACEOF
    4952 cat confdefs.h >>conftest.$ac_ext
    4953 cat >>conftest.$ac_ext <<_ACEOF
    4954 /* end confdefs.h.  */
     2573EOF
     2574
     2575
     2576echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
     2577echo "configure:2578: checking whether alloca needs Cray hooks" >&5
     2578if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
     2579  echo $ac_n "(cached) $ac_c" 1>&6
     2580else
     2581  cat > conftest.$ac_ext <<EOF
     2582#line 2583 "configure"
     2583#include "confdefs.h"
    49552584#if defined(CRAY) && ! defined(CRAY2)
    49562585webecray
     
    49592588#endif
    49602589
    4961 _ACEOF
     2590EOF
    49622591if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    4963   $EGREP "webecray" >/dev/null 2>&1; then
     2592  egrep "webecray" >/dev/null 2>&1; then
     2593  rm -rf conftest*
    49642594  ac_cv_os_cray=yes
    49652595else
     2596  rm -rf conftest*
    49662597  ac_cv_os_cray=no
    49672598fi
     
    49692600
    49702601fi
    4971 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
    4972 echo "${ECHO_T}$ac_cv_os_cray" >&6
     2602
     2603echo "$ac_t""$ac_cv_os_cray" 1>&6
    49732604if test $ac_cv_os_cray = yes; then
    4974   for ac_func in _getb67 GETB67 getb67; do
    4975     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    4976 echo "$as_me:$LINENO: checking for $ac_func" >&5
    4977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    4978 if eval "test \"\${$as_ac_var+set}\" = set"; then
    4979   echo $ECHO_N "(cached) $ECHO_C" >&6
    4980 else
    4981   cat >conftest.$ac_ext <<_ACEOF
    4982 #line $LINENO "configure"
    4983 /* confdefs.h.  */
    4984 _ACEOF
    4985 cat confdefs.h >>conftest.$ac_ext
    4986 cat >>conftest.$ac_ext <<_ACEOF
    4987 /* end confdefs.h.  */
     2605for ac_func in _getb67 GETB67 getb67; do
     2606  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     2607echo "configure:2608: checking for $ac_func" >&5
     2608if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
     2609  echo $ac_n "(cached) $ac_c" 1>&6
     2610else
     2611  cat > conftest.$ac_ext <<EOF
     2612#line 2613 "configure"
     2613#include "confdefs.h"
    49882614/* System header to define __stub macros and hopefully few prototypes,
    4989     which can conflict with char $ac_func (); below.
    4990     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    4991     <limits.h> exists even on freestanding compilers.  */
    4992 #ifdef __STDC__
    4993 # include <limits.h>
    4994 #else
    4995 # include <assert.h>
    4996 #endif
     2615    which can conflict with char $ac_func(); below.  */
     2616#include <assert.h>
    49972617/* Override any gcc2 internal prototype to avoid an error.  */
    4998 #ifdef __cplusplus
    4999 extern "C"
    5000 {
    5001 #endif
    50022618/* We use char because int might match the return type of a gcc2
    5003    builtin and then its argument prototype would still apply.  */
    5004 char $ac_func ();
     2619    builtin and then its argument prototype would still apply.  */
     2620char $ac_func();
     2621
     2622int main() {
     2623
    50052624/* The GNU C library defines this for functions which it implements
    50062625    to always fail with ENOSYS.  Some functions are actually named
     
    50092628choke me
    50102629#else
    5011 char (*f) () = $ac_func;
     2630$ac_func();
    50122631#endif
    5013 #ifdef __cplusplus
    5014 }
    5015 #endif
    5016 
    5017 int
    5018 main ()
    5019 {
    5020 return f != $ac_func;
    5021   ;
    5022   return 0;
    5023 }
    5024 _ACEOF
    5025 rm -f conftest.$ac_objext conftest$ac_exeext
    5026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5027   (eval $ac_link) 2>&5
    5028   ac_status=$?
    5029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5030   (exit $ac_status); } &&
    5031          { ac_try='test -s conftest$ac_exeext'
    5032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5033   (eval $ac_try) 2>&5
    5034   ac_status=$?
    5035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5036   (exit $ac_status); }; }; then
    5037   eval "$as_ac_var=yes"
    5038 else
    5039   echo "$as_me: failed program was:" >&5
    5040 sed 's/^/| /' conftest.$ac_ext >&5
    5041 
    5042 eval "$as_ac_var=no"
    5043 fi
    5044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    5045 fi
    5046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    5047 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    5048 if test `eval echo '${'$as_ac_var'}'` = yes; then
    5049 
    5050 cat >>confdefs.h <<_ACEOF
     2632
     2633; return 0; }
     2634EOF
     2635if { (eval echo configure:2636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2636  rm -rf conftest*
     2637  eval "ac_cv_func_$ac_func=yes"
     2638else
     2639  echo "configure: failed program was:" >&5
     2640  cat conftest.$ac_ext >&5
     2641  rm -rf conftest*
     2642  eval "ac_cv_func_$ac_func=no"
     2643fi
     2644rm -f conftest*
     2645fi
     2646
     2647if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
     2648  echo "$ac_t""yes" 1>&6
     2649  cat >> confdefs.h <<EOF
    50512650#define CRAY_STACKSEG_END $ac_func
    5052 _ACEOF
    5053 
    5054     break
    5055 fi
    5056 
    5057   done
    5058 fi
    5059 
    5060 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
    5061 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
    5062 if test "${ac_cv_c_stack_direction+set}" = set; then
    5063   echo $ECHO_N "(cached) $ECHO_C" >&6
     2651EOF
     2652
     2653  break
     2654else
     2655  echo "$ac_t""no" 1>&6
     2656fi
     2657
     2658done
     2659fi
     2660
     2661echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
     2662echo "configure:2663: checking stack direction for C alloca" >&5
     2663if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
     2664  echo $ac_n "(cached) $ac_c" 1>&6
    50642665else
    50652666  if test "$cross_compiling" = yes; then
    50662667  ac_cv_c_stack_direction=0
    50672668else
    5068   cat >conftest.$ac_ext <<_ACEOF
    5069 #line $LINENO "configure"
    5070 /* confdefs.h.  */
    5071 _ACEOF
    5072 cat confdefs.h >>conftest.$ac_ext
    5073 cat >>conftest.$ac_ext <<_ACEOF
    5074 /* end confdefs.h.  */
    5075 int
     2669  cat > conftest.$ac_ext <<EOF
     2670#line 2671 "configure"
     2671#include "confdefs.h"
    50762672find_stack_direction ()
    50772673{
     
    50862682    return (&dummy > addr) ? 1 : -1;
    50872683}
    5088 
    5089 int
    50902684main ()
    50912685{
    5092   exit (find_stack_direction () < 0);
     2686  exit (find_stack_direction() < 0);
    50932687}
    5094 _ACEOF
    5095 rm -f conftest$ac_exeext
    5096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5097   (eval $ac_link) 2>&5
    5098   ac_status=$?
    5099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5100   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    5101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5102   (eval $ac_try) 2>&5
    5103   ac_status=$?
    5104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5105   (exit $ac_status); }; }; then
     2688EOF
     2689if { (eval echo configure:2690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2690then
    51062691  ac_cv_c_stack_direction=1
    51072692else
    5108   echo "$as_me: program exited with status $ac_status" >&5
    5109 echo "$as_me: failed program was:" >&5
    5110 sed 's/^/| /' conftest.$ac_ext >&5
    5111 
    5112 ( exit $ac_status )
    5113 ac_cv_c_stack_direction=-1
    5114 fi
    5115 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    5116 fi
    5117 fi
    5118 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
    5119 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
    5120 
    5121 cat >>confdefs.h <<_ACEOF
     2693  echo "configure: failed program was:" >&5
     2694  cat conftest.$ac_ext >&5
     2695  rm -fr conftest*
     2696  ac_cv_c_stack_direction=-1
     2697fi
     2698rm -fr conftest*
     2699fi
     2700
     2701fi
     2702
     2703echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
     2704cat >> confdefs.h <<EOF
    51222705#define STACK_DIRECTION $ac_cv_c_stack_direction
    5123 _ACEOF
    5124 
    5125 
    5126 fi
    5127 
    5128 if test $ac_cv_c_compiler_gnu = yes; then
    5129     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
    5130 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
    5131 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
    5132   echo $ECHO_N "(cached) $ECHO_C" >&6
     2706EOF
     2707
     2708fi
     2709
     2710if test $ac_cv_prog_gcc = yes; then
     2711    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
     2712echo "configure:2713: checking whether ${CC-cc} needs -traditional" >&5
     2713if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
     2714  echo $ac_n "(cached) $ac_c" 1>&6
    51332715else
    51342716    ac_pattern="Autoconf.*'x'"
    5135   cat >conftest.$ac_ext <<_ACEOF
    5136 #line $LINENO "configure"
    5137 /* confdefs.h.  */
    5138 _ACEOF
    5139 cat confdefs.h >>conftest.$ac_ext
    5140 cat >>conftest.$ac_ext <<_ACEOF
    5141 /* end confdefs.h.  */
     2717  cat > conftest.$ac_ext <<EOF
     2718#line 2719 "configure"
     2719#include "confdefs.h"
    51422720#include <sgtty.h>
    51432721Autoconf TIOCGETP
    5144 _ACEOF
     2722EOF
    51452723if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5146   $EGREP "$ac_pattern" >/dev/null 2>&1; then
     2724  egrep "$ac_pattern" >/dev/null 2>&1; then
     2725  rm -rf conftest*
    51472726  ac_cv_prog_gcc_traditional=yes
    51482727else
     2728  rm -rf conftest*
    51492729  ac_cv_prog_gcc_traditional=no
    51502730fi
     
    51532733
    51542734  if test $ac_cv_prog_gcc_traditional = no; then
    5155     cat >conftest.$ac_ext <<_ACEOF
    5156 #line $LINENO "configure"
    5157 /* confdefs.h.  */
    5158 _ACEOF
    5159 cat confdefs.h >>conftest.$ac_ext
    5160 cat >>conftest.$ac_ext <<_ACEOF
    5161 /* end confdefs.h.  */
     2735    cat > conftest.$ac_ext <<EOF
     2736#line 2737 "configure"
     2737#include "confdefs.h"
    51622738#include <termio.h>
    51632739Autoconf TCGETA
    5164 _ACEOF
     2740EOF
    51652741if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5166   $EGREP "$ac_pattern" >/dev/null 2>&1; then
     2742  egrep "$ac_pattern" >/dev/null 2>&1; then
     2743  rm -rf conftest*
    51672744  ac_cv_prog_gcc_traditional=yes
    51682745fi
     
    51712748  fi
    51722749fi
    5173 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
    5174 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
     2750
     2751echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
    51752752  if test $ac_cv_prog_gcc_traditional = yes; then
    51762753    CC="$CC -traditional"
     
    51782755fi
    51792756
    5180 
    5181 
    5182 for ac_header in stdlib.h unistd.h
     2757for ac_hdr in unistd.h
    51832758do
    5184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    5185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    5186   echo "$as_me:$LINENO: checking for $ac_header" >&5
    5187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    5188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    5189   echo $ECHO_N "(cached) $ECHO_C" >&6
    5190 fi
    5191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    5192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    5193 else
    5194   # Is the header compilable?
    5195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    5196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    5197 cat >conftest.$ac_ext <<_ACEOF
    5198 #line $LINENO "configure"
    5199 /* confdefs.h.  */
    5200 _ACEOF
    5201 cat confdefs.h >>conftest.$ac_ext
    5202 cat >>conftest.$ac_ext <<_ACEOF
    5203 /* end confdefs.h.  */
    5204 $ac_includes_default
    5205 #include <$ac_header>
    5206 _ACEOF
    5207 rm -f conftest.$ac_objext
    5208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5209   (eval $ac_compile) 2>&5
    5210   ac_status=$?
    5211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5212   (exit $ac_status); } &&
    5213          { ac_try='test -s conftest.$ac_objext'
    5214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5215   (eval $ac_try) 2>&5
    5216   ac_status=$?
    5217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5218   (exit $ac_status); }; }; then
    5219   ac_header_compiler=yes
    5220 else
    5221   echo "$as_me: failed program was:" >&5
    5222 sed 's/^/| /' conftest.$ac_ext >&5
    5223 
    5224 ac_header_compiler=no
    5225 fi
    5226 rm -f conftest.$ac_objext conftest.$ac_ext
    5227 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    5228 echo "${ECHO_T}$ac_header_compiler" >&6
    5229 
    5230 # Is the header present?
    5231 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    5232 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    5233 cat >conftest.$ac_ext <<_ACEOF
    5234 #line $LINENO "configure"
    5235 /* confdefs.h.  */
    5236 _ACEOF
    5237 cat confdefs.h >>conftest.$ac_ext
    5238 cat >>conftest.$ac_ext <<_ACEOF
    5239 /* end confdefs.h.  */
    5240 #include <$ac_header>
    5241 _ACEOF
    5242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    5243   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    5244   ac_status=$?
    5245   grep -v '^ *+' conftest.er1 >conftest.err
    5246   rm -f conftest.er1
    5247   cat conftest.err >&5
    5248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5249   (exit $ac_status); } >/dev/null; then
    5250   if test -s conftest.err; then
    5251     ac_cpp_err=$ac_c_preproc_warn_flag
    5252   else
    5253     ac_cpp_err=
    5254   fi
    5255 else
    5256   ac_cpp_err=yes
    5257 fi
    5258 if test -z "$ac_cpp_err"; then
    5259   ac_header_preproc=yes
    5260 else
    5261   echo "$as_me: failed program was:" >&5
    5262 sed 's/^/| /' conftest.$ac_ext >&5
    5263 
    5264   ac_header_preproc=no
    5265 fi
    5266 rm -f conftest.err conftest.$ac_ext
    5267 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    5268 echo "${ECHO_T}$ac_header_preproc" >&6
    5269 
    5270 # So?  What about this header?
    5271 case $ac_header_compiler:$ac_header_preproc in
    5272   yes:no )
    5273     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    5274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    5275     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    5276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    5277     (
    5278       cat <<\_ASBOX
    5279 ## ------------------------------------ ##
    5280 ## Report this to bug-autoconf@gnu.org. ##
    5281 ## ------------------------------------ ##
    5282 _ASBOX
    5283     ) |
    5284       sed "s/^/$as_me: WARNING:     /" >&2
    5285     ;;
    5286   no:yes )
    5287     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    5288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    5289     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
    5290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    5291     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    5292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    5293     (
    5294       cat <<\_ASBOX
    5295 ## ------------------------------------ ##
    5296 ## Report this to bug-autoconf@gnu.org. ##
    5297 ## ------------------------------------ ##
    5298 _ASBOX
    5299     ) |
    5300       sed "s/^/$as_me: WARNING:     /" >&2
    5301     ;;
    5302 esac
    5303 echo "$as_me:$LINENO: checking for $ac_header" >&5
    5304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    5305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    5306   echo $ECHO_N "(cached) $ECHO_C" >&6
    5307 else
    5308   eval "$as_ac_Header=$ac_header_preproc"
    5309 fi
    5310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    5311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    5312 
    5313 fi
    5314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    5315   cat >>confdefs.h <<_ACEOF
    5316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    5317 _ACEOF
    5318 
    5319 fi
    5320 
     2759ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
     2760echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
     2761echo "configure:2762: checking for $ac_hdr" >&5
     2762if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
     2763  echo $ac_n "(cached) $ac_c" 1>&6
     2764else
     2765  cat > conftest.$ac_ext <<EOF
     2766#line 2767 "configure"
     2767#include "confdefs.h"
     2768#include <$ac_hdr>
     2769EOF
     2770ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     2771{ (eval echo configure:2772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2772ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     2773if test -z "$ac_err"; then
     2774  rm -rf conftest*
     2775  eval "ac_cv_header_$ac_safe=yes"
     2776else
     2777  echo "$ac_err" >&5
     2778  echo "configure: failed program was:" >&5
     2779  cat conftest.$ac_ext >&5
     2780  rm -rf conftest*
     2781  eval "ac_cv_header_$ac_safe=no"
     2782fi
     2783rm -f conftest*
     2784fi
     2785if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
     2786  echo "$ac_t""yes" 1>&6
     2787    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
     2788  cat >> confdefs.h <<EOF
     2789#define $ac_tr_hdr 1
     2790EOF
     2791 
     2792else
     2793  echo "$ac_t""no" 1>&6
     2794fi
    53212795done
    5322 
    53232796
    53242797for ac_func in getpagesize
    53252798do
    5326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    5327 echo "$as_me:$LINENO: checking for $ac_func" >&5
    5328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    5329 if eval "test \"\${$as_ac_var+set}\" = set"; then
    5330   echo $ECHO_N "(cached) $ECHO_C" >&6
    5331 else
    5332   cat >conftest.$ac_ext <<_ACEOF
    5333 #line $LINENO "configure"
    5334 /* confdefs.h.  */
    5335 _ACEOF
    5336 cat confdefs.h >>conftest.$ac_ext
    5337 cat >>conftest.$ac_ext <<_ACEOF
    5338 /* end confdefs.h.  */
     2799echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     2800echo "configure:2801: checking for $ac_func" >&5
     2801if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
     2802  echo $ac_n "(cached) $ac_c" 1>&6
     2803else
     2804  cat > conftest.$ac_ext <<EOF
     2805#line 2806 "configure"
     2806#include "confdefs.h"
    53392807/* System header to define __stub macros and hopefully few prototypes,
    5340     which can conflict with char $ac_func (); below.
    5341     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    5342     <limits.h> exists even on freestanding compilers.  */
    5343 #ifdef __STDC__
    5344 # include <limits.h>
    5345 #else
    5346 # include <assert.h>
    5347 #endif
     2808    which can conflict with char $ac_func(); below.  */
     2809#include <assert.h>
    53482810/* Override any gcc2 internal prototype to avoid an error.  */
    5349 #ifdef __cplusplus
    5350 extern "C"
    5351 {
    5352 #endif
    53532811/* We use char because int might match the return type of a gcc2
    5354    builtin and then its argument prototype would still apply.  */
    5355 char $ac_func ();
     2812    builtin and then its argument prototype would still apply.  */
     2813char $ac_func();
     2814
     2815int main() {
     2816
    53562817/* The GNU C library defines this for functions which it implements
    53572818    to always fail with ENOSYS.  Some functions are actually named
     
    53602821choke me
    53612822#else
    5362 char (*f) () = $ac_func;
     2823$ac_func();
    53632824#endif
    5364 #ifdef __cplusplus
    5365 }
    5366 #endif
    5367 
    5368 int
    5369 main ()
    5370 {
    5371 return f != $ac_func;
    5372   ;
    5373   return 0;
    5374 }
    5375 _ACEOF
    5376 rm -f conftest.$ac_objext conftest$ac_exeext
    5377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5378   (eval $ac_link) 2>&5
    5379   ac_status=$?
    5380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5381   (exit $ac_status); } &&
    5382          { ac_try='test -s conftest$ac_exeext'
    5383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5384   (eval $ac_try) 2>&5
    5385   ac_status=$?
    5386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5387   (exit $ac_status); }; }; then
    5388   eval "$as_ac_var=yes"
    5389 else
    5390   echo "$as_me: failed program was:" >&5
    5391 sed 's/^/| /' conftest.$ac_ext >&5
    5392 
    5393 eval "$as_ac_var=no"
    5394 fi
    5395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    5396 fi
    5397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    5398 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    5399 if test `eval echo '${'$as_ac_var'}'` = yes; then
    5400   cat >>confdefs.h <<_ACEOF
    5401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    5402 _ACEOF
    5403 
     2825
     2826; return 0; }
     2827EOF
     2828if { (eval echo configure:2829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2829  rm -rf conftest*
     2830  eval "ac_cv_func_$ac_func=yes"
     2831else
     2832  echo "configure: failed program was:" >&5
     2833  cat conftest.$ac_ext >&5
     2834  rm -rf conftest*
     2835  eval "ac_cv_func_$ac_func=no"
     2836fi
     2837rm -f conftest*
     2838fi
     2839
     2840if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
     2841  echo "$ac_t""yes" 1>&6
     2842    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     2843  cat >> confdefs.h <<EOF
     2844#define $ac_tr_func 1
     2845EOF
     2846 
     2847else
     2848  echo "$ac_t""no" 1>&6
    54042849fi
    54052850done
    54062851
    5407 echo "$as_me:$LINENO: checking for working mmap" >&5
    5408 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
    5409 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
    5410   echo $ECHO_N "(cached) $ECHO_C" >&6
     2852echo $ac_n "checking for working mmap""... $ac_c" 1>&6
     2853echo "configure:2854: checking for working mmap" >&5
     2854if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
     2855  echo $ac_n "(cached) $ac_c" 1>&6
    54112856else
    54122857  if test "$cross_compiling" = yes; then
    54132858  ac_cv_func_mmap_fixed_mapped=no
    54142859else
    5415   cat >conftest.$ac_ext <<_ACEOF
    5416 #line $LINENO "configure"
    5417 /* confdefs.h.  */
    5418 _ACEOF
    5419 cat confdefs.h >>conftest.$ac_ext
    5420 cat >>conftest.$ac_ext <<_ACEOF
    5421 /* end confdefs.h.  */
    5422 $ac_includes_default
    5423 /* malloc might have been renamed as rpl_malloc. */
    5424 #undef malloc
     2860  cat > conftest.$ac_ext <<EOF
     2861#line 2862 "configure"
     2862#include "confdefs.h"
    54252863
    54262864/* Thanks to Mike Haertel and Jim Avera for this test.
     
    54362874   address.  (There have been systems where private was not correctly
    54372875   implemented like the infamous i386 svr4.0, and systems where the
    5438    VM page cache was not coherent with the file system buffer cache
     2876   VM page cache was not coherent with the filesystem buffer cache
    54392877   like early versions of FreeBSD and possibly contemporary NetBSD.)
    54402878   For shared mappings, we should conversely verify that changes get
    5441    propagated back to all the places they're supposed to be.
     2879   propogated back to all the places they're supposed to be.
    54422880
    54432881   Grep wants private fixed already mapped.
     
    54452883   * does it exist and is it safe to write into the mmap'd area
    54462884   * how to use it (BSD variants)  */
    5447 
     2885#include <sys/types.h>
    54482886#include <fcntl.h>
    54492887#include <sys/mman.h>
    54502888
    5451 #if !STDC_HEADERS && !HAVE_STDLIB_H
    5452 char *malloc ();
    5453 #endif
    5454 
    54552889/* This mess was copied from the GNU getpagesize.h.  */
    5456 #if !HAVE_GETPAGESIZE
     2890#ifndef HAVE_GETPAGESIZE
     2891# ifdef HAVE_UNISTD_H
     2892#  include <unistd.h>
     2893# endif
     2894
    54572895/* Assume that all systems that can run configure have sys/param.h.  */
    5458 # if !HAVE_SYS_PARAM_H
     2896# ifndef HAVE_SYS_PARAM_H
    54592897#  define HAVE_SYS_PARAM_H 1
    54602898# endif
     
    54632901#  define getpagesize() sysconf(_SC_PAGESIZE)
    54642902# else /* no _SC_PAGESIZE */
    5465 #  if HAVE_SYS_PARAM_H
     2903#  ifdef HAVE_SYS_PARAM_H
    54662904#   include <sys/param.h>
    54672905#   ifdef EXEC_PAGESIZE
     
    54902928#endif /* no HAVE_GETPAGESIZE */
    54912929
     2930#ifdef __cplusplus
     2931extern "C" { void *malloc(unsigned); }
     2932#else
     2933char *malloc();
     2934#endif
     2935
    54922936int
    5493 main ()
     2937main()
    54942938{
    5495   char *data, *data2, *data3;
    5496   int i, pagesize;
    5497   int fd;
    5498 
    5499   pagesize = getpagesize ();
    5500 
    5501   /* First, make a file with some known garbage in it. */
    5502   data = (char *) malloc (pagesize);
    5503   if (!data)
    5504     exit (1);
    5505   for (i = 0; i < pagesize; ++i)
    5506     *(data + i) = rand ();
    5507   umask (0);
    5508   fd = creat ("conftest.mmap", 0600);
    5509   if (fd < 0)
    5510     exit (1);
    5511   if (write (fd, data, pagesize) != pagesize)
    5512     exit (1);
    5513   close (fd);
    5514 
    5515   /* Next, try to mmap the file at a fixed address which already has
    5516      something else allocated at it.  If we can, also make sure that
    5517      we see the same garbage.  */
    5518   fd = open ("conftest.mmap", O_RDWR);
    5519   if (fd < 0)
    5520     exit (1);
    5521   data2 = (char *) malloc (2 * pagesize);
    5522   if (!data2)
    5523     exit (1);
    5524   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
    5525   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
    5526                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
    5527     exit (1);
    5528   for (i = 0; i < pagesize; ++i)
    5529     if (*(data + i) != *(data2 + i))
    5530       exit (1);
    5531 
    5532   /* Finally, make sure that changes to the mapped area do not
    5533      percolate back to the file as seen by read().  (This is a bug on
    5534      some variants of i386 svr4.0.)  */
    5535   for (i = 0; i < pagesize; ++i)
    5536     *(data2 + i) = *(data2 + i) + 1;
    5537   data3 = (char *) malloc (pagesize);
    5538   if (!data3)
    5539     exit (1);
    5540   if (read (fd, data3, pagesize) != pagesize)
    5541     exit (1);
    5542   for (i = 0; i < pagesize; ++i)
    5543     if (*(data + i) != *(data3 + i))
    5544       exit (1);
    5545   close (fd);
    5546   exit (0);
     2939        char *data, *data2, *data3;
     2940        int i, pagesize;
     2941        int fd;
     2942
     2943        pagesize = getpagesize();
     2944
     2945        /*
     2946         * First, make a file with some known garbage in it.
     2947         */
     2948        data = malloc(pagesize);
     2949        if (!data)
     2950                exit(1);
     2951        for (i = 0; i < pagesize; ++i)
     2952                *(data + i) = rand();
     2953        umask(0);
     2954        fd = creat("conftestmmap", 0600);
     2955        if (fd < 0)
     2956                exit(1);
     2957        if (write(fd, data, pagesize) != pagesize)
     2958                exit(1);
     2959        close(fd);
     2960
     2961        /*
     2962         * Next, try to mmap the file at a fixed address which
     2963         * already has something else allocated at it.  If we can,
     2964         * also make sure that we see the same garbage.
     2965         */
     2966        fd = open("conftestmmap", O_RDWR);
     2967        if (fd < 0)
     2968                exit(1);
     2969        data2 = malloc(2 * pagesize);
     2970        if (!data2)
     2971                exit(1);
     2972        data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
     2973        if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
     2974            MAP_PRIVATE | MAP_FIXED, fd, 0L))
     2975                exit(1);
     2976        for (i = 0; i < pagesize; ++i)
     2977                if (*(data + i) != *(data2 + i))
     2978                        exit(1);
     2979
     2980        /*
     2981         * Finally, make sure that changes to the mapped area
     2982         * do not percolate back to the file as seen by read().
     2983         * (This is a bug on some variants of i386 svr4.0.)
     2984         */
     2985        for (i = 0; i < pagesize; ++i)
     2986                *(data2 + i) = *(data2 + i) + 1;
     2987        data3 = malloc(pagesize);
     2988        if (!data3)
     2989                exit(1);
     2990        if (read(fd, data3, pagesize) != pagesize)
     2991                exit(1);
     2992        for (i = 0; i < pagesize; ++i)
     2993                if (*(data + i) != *(data3 + i))
     2994                        exit(1);
     2995        close(fd);
     2996        unlink("conftestmmap");
     2997        exit(0);
    55472998}
    5548 _ACEOF
    5549 rm -f conftest$ac_exeext
    5550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5551   (eval $ac_link) 2>&5
    5552   ac_status=$?
    5553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5554   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    5555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5556   (eval $ac_try) 2>&5
    5557   ac_status=$?
    5558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5559   (exit $ac_status); }; }; then
     2999
     3000EOF
     3001if { (eval echo configure:3002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3002then
    55603003  ac_cv_func_mmap_fixed_mapped=yes
    55613004else
    5562   echo "$as_me: program exited with status $ac_status" >&5
    5563 echo "$as_me: failed program was:" >&5
    5564 sed 's/^/| /' conftest.$ac_ext >&5
    5565 
    5566 ( exit $ac_status )
    5567 ac_cv_func_mmap_fixed_mapped=no
    5568 fi
    5569 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    5570 fi
    5571 fi
    5572 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
    5573 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
     3005  echo "configure: failed program was:" >&5
     3006  cat conftest.$ac_ext >&5
     3007  rm -fr conftest*
     3008  ac_cv_func_mmap_fixed_mapped=no
     3009fi
     3010rm -fr conftest*
     3011fi
     3012
     3013fi
     3014
     3015echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
    55743016if test $ac_cv_func_mmap_fixed_mapped = yes; then
    5575 
    5576 cat >>confdefs.h <<\_ACEOF
     3017  cat >> confdefs.h <<\EOF
    55773018#define HAVE_MMAP 1
    5578 _ACEOF
    5579 
    5580 fi
    5581 rm -f conftest.mmap
    5582 
    5583 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
    5584 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
    5585 if test "${ac_cv_type_signal+set}" = set; then
    5586   echo $ECHO_N "(cached) $ECHO_C" >&6
    5587 else
    5588   cat >conftest.$ac_ext <<_ACEOF
    5589 #line $LINENO "configure"
    5590 /* confdefs.h.  */
    5591 _ACEOF
    5592 cat confdefs.h >>conftest.$ac_ext
    5593 cat >>conftest.$ac_ext <<_ACEOF
    5594 /* end confdefs.h.  */
     3019EOF
     3020
     3021fi
     3022
     3023echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
     3024echo "configure:3025: checking return type of signal handlers" >&5
     3025if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
     3026  echo $ac_n "(cached) $ac_c" 1>&6
     3027else
     3028  cat > conftest.$ac_ext <<EOF
     3029#line 3030 "configure"
     3030#include "confdefs.h"
    55953031#include <sys/types.h>
    55963032#include <signal.h>
    55973033#ifdef signal
    5598 # undef signal
     3034#undef signal
    55993035#endif
    56003036#ifdef __cplusplus
     
    56043040#endif
    56053041
    5606 int
    5607 main ()
    5608 {
     3042int main() {
    56093043int i;
    5610   ;
    5611   return 0;
    5612 }
    5613 _ACEOF
    5614 rm -f conftest.$ac_objext
    5615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5616   (eval $ac_compile) 2>&5
    5617   ac_status=$?
    5618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5619   (exit $ac_status); } &&
    5620          { ac_try='test -s conftest.$ac_objext'
    5621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5622   (eval $ac_try) 2>&5
    5623   ac_status=$?
    5624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5625   (exit $ac_status); }; }; then
     3044; return 0; }
     3045EOF
     3046if { (eval echo configure:3047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3047  rm -rf conftest*
    56263048  ac_cv_type_signal=void
    56273049else
    5628   echo "$as_me: failed program was:" >&5
    5629 sed 's/^/| /' conftest.$ac_ext >&5
    5630 
    5631 ac_cv_type_signal=int
    5632 fi
    5633 rm -f conftest.$ac_objext conftest.$ac_ext
    5634 fi
    5635 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
    5636 echo "${ECHO_T}$ac_cv_type_signal" >&6
    5637 
    5638 cat >>confdefs.h <<_ACEOF
     3050  echo "configure: failed program was:" >&5
     3051  cat conftest.$ac_ext >&5
     3052  rm -rf conftest*
     3053  ac_cv_type_signal=int
     3054fi
     3055rm -f conftest*
     3056fi
     3057
     3058echo "$ac_t""$ac_cv_type_signal" 1>&6
     3059cat >> confdefs.h <<EOF
    56393060#define RETSIGTYPE $ac_cv_type_signal
    5640 _ACEOF
    5641 
    5642 
    5643 
    5644 for ac_func in vprintf
     3061EOF
     3062
     3063
     3064echo $ac_n "checking for vprintf""... $ac_c" 1>&6
     3065echo "configure:3066: checking for vprintf" >&5
     3066if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
     3067  echo $ac_n "(cached) $ac_c" 1>&6
     3068else
     3069  cat > conftest.$ac_ext <<EOF
     3070#line 3071 "configure"
     3071#include "confdefs.h"
     3072/* System header to define __stub macros and hopefully few prototypes,
     3073    which can conflict with char vprintf(); below.  */
     3074#include <assert.h>
     3075/* Override any gcc2 internal prototype to avoid an error.  */
     3076/* We use char because int might match the return type of a gcc2
     3077    builtin and then its argument prototype would still apply.  */
     3078char vprintf();
     3079
     3080int main() {
     3081
     3082/* The GNU C library defines this for functions which it implements
     3083    to always fail with ENOSYS.  Some functions are actually named
     3084    something starting with __ and the normal name is an alias.  */
     3085#if defined (__stub_vprintf) || defined (__stub___vprintf)
     3086choke me
     3087#else
     3088vprintf();
     3089#endif
     3090
     3091; return 0; }
     3092EOF
     3093if { (eval echo configure:3094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3094  rm -rf conftest*
     3095  eval "ac_cv_func_vprintf=yes"
     3096else
     3097  echo "configure: failed program was:" >&5
     3098  cat conftest.$ac_ext >&5
     3099  rm -rf conftest*
     3100  eval "ac_cv_func_vprintf=no"
     3101fi
     3102rm -f conftest*
     3103fi
     3104
     3105if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
     3106  echo "$ac_t""yes" 1>&6
     3107  cat >> confdefs.h <<\EOF
     3108#define HAVE_VPRINTF 1
     3109EOF
     3110
     3111else
     3112  echo "$ac_t""no" 1>&6
     3113fi
     3114
     3115if test "$ac_cv_func_vprintf" != yes; then
     3116echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
     3117echo "configure:3118: checking for _doprnt" >&5
     3118if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
     3119  echo $ac_n "(cached) $ac_c" 1>&6
     3120else
     3121  cat > conftest.$ac_ext <<EOF
     3122#line 3123 "configure"
     3123#include "confdefs.h"
     3124/* System header to define __stub macros and hopefully few prototypes,
     3125    which can conflict with char _doprnt(); below.  */
     3126#include <assert.h>
     3127/* Override any gcc2 internal prototype to avoid an error.  */
     3128/* We use char because int might match the return type of a gcc2
     3129    builtin and then its argument prototype would still apply.  */
     3130char _doprnt();
     3131
     3132int main() {
     3133
     3134/* The GNU C library defines this for functions which it implements
     3135    to always fail with ENOSYS.  Some functions are actually named
     3136    something starting with __ and the normal name is an alias.  */
     3137#if defined (__stub__doprnt) || defined (__stub____doprnt)
     3138choke me
     3139#else
     3140_doprnt();
     3141#endif
     3142
     3143; return 0; }
     3144EOF
     3145if { (eval echo configure:3146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3146  rm -rf conftest*
     3147  eval "ac_cv_func__doprnt=yes"
     3148else
     3149  echo "configure: failed program was:" >&5
     3150  cat conftest.$ac_ext >&5
     3151  rm -rf conftest*
     3152  eval "ac_cv_func__doprnt=no"
     3153fi
     3154rm -f conftest*
     3155fi
     3156
     3157if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
     3158  echo "$ac_t""yes" 1>&6
     3159  cat >> confdefs.h <<\EOF
     3160#define HAVE_DOPRNT 1
     3161EOF
     3162
     3163else
     3164  echo "$ac_t""no" 1>&6
     3165fi
     3166
     3167fi
     3168
     3169
     3170echo $ac_n "checking for library containing setenv""... $ac_c" 1>&6
     3171echo "configure:3172: checking for library containing setenv" >&5
     3172if eval "test \"`echo '$''{'ac_cv_search_setenv'+set}'`\" = set"; then
     3173  echo $ac_n "(cached) $ac_c" 1>&6
     3174else
     3175  ac_func_search_save_LIBS="$LIBS"
     3176ac_cv_search_setenv="no"
     3177cat > conftest.$ac_ext <<EOF
     3178#line 3179 "configure"
     3179#include "confdefs.h"
     3180/* Override any gcc2 internal prototype to avoid an error.  */
     3181/* We use char because int might match the return type of a gcc2
     3182    builtin and then its argument prototype would still apply.  */
     3183char setenv();
     3184
     3185int main() {
     3186setenv()
     3187; return 0; }
     3188EOF
     3189if { (eval echo configure:3190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3190  rm -rf conftest*
     3191  ac_cv_search_setenv="none required"
     3192else
     3193  echo "configure: failed program was:" >&5
     3194  cat conftest.$ac_ext >&5
     3195fi
     3196rm -f conftest*
     3197test "$ac_cv_search_setenv" = "no" && for i in bsd; do
     3198LIBS="-l$i  $ac_func_search_save_LIBS"
     3199cat > conftest.$ac_ext <<EOF
     3200#line 3201 "configure"
     3201#include "confdefs.h"
     3202/* Override any gcc2 internal prototype to avoid an error.  */
     3203/* We use char because int might match the return type of a gcc2
     3204    builtin and then its argument prototype would still apply.  */
     3205char setenv();
     3206
     3207int main() {
     3208setenv()
     3209; return 0; }
     3210EOF
     3211if { (eval echo configure:3212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3212  rm -rf conftest*
     3213  ac_cv_search_setenv="-l$i"
     3214break
     3215else
     3216  echo "configure: failed program was:" >&5
     3217  cat conftest.$ac_ext >&5
     3218fi
     3219rm -f conftest*
     3220done
     3221LIBS="$ac_func_search_save_LIBS"
     3222fi
     3223
     3224echo "$ac_t""$ac_cv_search_setenv" 1>&6
     3225if test "$ac_cv_search_setenv" != "no"; then
     3226  test "$ac_cv_search_setenv" = "none required" || LIBS="$ac_cv_search_setenv $LIBS"
     3227 
     3228else :
     3229 
     3230fi
     3231for ac_func in gettimeofday atexit bcopy getcwd getwd vsnprintf readlink \
     3232 sleep usleep getpwnam popen setenv siginterrupt
    56453233do
    5646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    5647 echo "$as_me:$LINENO: checking for $ac_func" >&5
    5648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    5649 if eval "test \"\${$as_ac_var+set}\" = set"; then
    5650   echo $ECHO_N "(cached) $ECHO_C" >&6
    5651 else
    5652   cat >conftest.$ac_ext <<_ACEOF
    5653 #line $LINENO "configure"
    5654 /* confdefs.h.  */
    5655 _ACEOF
    5656 cat confdefs.h >>conftest.$ac_ext
    5657 cat >>conftest.$ac_ext <<_ACEOF
    5658 /* end confdefs.h.  */
     3234echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     3235echo "configure:3236: checking for $ac_func" >&5
     3236if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
     3237  echo $ac_n "(cached) $ac_c" 1>&6
     3238else
     3239  cat > conftest.$ac_ext <<EOF
     3240#line 3241 "configure"
     3241#include "confdefs.h"
    56593242/* System header to define __stub macros and hopefully few prototypes,
    5660     which can conflict with char $ac_func (); below.
    5661     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    5662     <limits.h> exists even on freestanding compilers.  */
    5663 #ifdef __STDC__
    5664 # include <limits.h>
    5665 #else
    5666 # include <assert.h>
    5667 #endif
     3243    which can conflict with char $ac_func(); below.  */
     3244#include <assert.h>
    56683245/* Override any gcc2 internal prototype to avoid an error.  */
    5669 #ifdef __cplusplus
    5670 extern "C"
    5671 {
    5672 #endif
    56733246/* We use char because int might match the return type of a gcc2
    5674    builtin and then its argument prototype would still apply.  */
    5675 char $ac_func ();
     3247    builtin and then its argument prototype would still apply.  */
     3248char $ac_func();
     3249
     3250int main() {
     3251
    56763252/* The GNU C library defines this for functions which it implements
    56773253    to always fail with ENOSYS.  Some functions are actually named
     
    56803256choke me
    56813257#else
    5682 char (*f) () = $ac_func;
     3258$ac_func();
    56833259#endif
    5684 #ifdef __cplusplus
    5685 }
    5686 #endif
    5687 
    5688 int
    5689 main ()
    5690 {
    5691 return f != $ac_func;
    5692   ;
    5693   return 0;
    5694 }
    5695 _ACEOF
    5696 rm -f conftest.$ac_objext conftest$ac_exeext
    5697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5698   (eval $ac_link) 2>&5
    5699   ac_status=$?
    5700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5701   (exit $ac_status); } &&
    5702          { ac_try='test -s conftest$ac_exeext'
    5703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5704   (eval $ac_try) 2>&5
    5705   ac_status=$?
    5706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5707   (exit $ac_status); }; }; then
    5708   eval "$as_ac_var=yes"
    5709 else
    5710   echo "$as_me: failed program was:" >&5
    5711 sed 's/^/| /' conftest.$ac_ext >&5
    5712 
    5713 eval "$as_ac_var=no"
    5714 fi
    5715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    5716 fi
    5717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    5718 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    5719 if test `eval echo '${'$as_ac_var'}'` = yes; then
    5720   cat >>confdefs.h <<_ACEOF
    5721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    5722 _ACEOF
    5723 
    5724 echo "$as_me:$LINENO: checking for _doprnt" >&5
    5725 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
    5726 if test "${ac_cv_func__doprnt+set}" = set; then
    5727   echo $ECHO_N "(cached) $ECHO_C" >&6
    5728 else
    5729   cat >conftest.$ac_ext <<_ACEOF
    5730 #line $LINENO "configure"
    5731 /* confdefs.h.  */
    5732 _ACEOF
    5733 cat confdefs.h >>conftest.$ac_ext
    5734 cat >>conftest.$ac_ext <<_ACEOF
    5735 /* end confdefs.h.  */
    5736 /* System header to define __stub macros and hopefully few prototypes,
    5737     which can conflict with char _doprnt (); below.
    5738     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    5739     <limits.h> exists even on freestanding compilers.  */
    5740 #ifdef __STDC__
    5741 # include <limits.h>
    5742 #else
    5743 # include <assert.h>
    5744 #endif
    5745 /* Override any gcc2 internal prototype to avoid an error.  */
    5746 #ifdef __cplusplus
    5747 extern "C"
    5748 {
    5749 #endif
    5750 /* We use char because int might match the return type of a gcc2
    5751    builtin and then its argument prototype would still apply.  */
    5752 char _doprnt ();
    5753 /* The GNU C library defines this for functions which it implements
    5754     to always fail with ENOSYS.  Some functions are actually named
    5755     something starting with __ and the normal name is an alias.  */
    5756 #if defined (__stub__doprnt) || defined (__stub____doprnt)
    5757 choke me
    5758 #else
    5759 char (*f) () = _doprnt;
    5760 #endif
    5761 #ifdef __cplusplus
    5762 }
    5763 #endif
    5764 
    5765 int
    5766 main ()
    5767 {
    5768 return f != _doprnt;
    5769   ;
    5770   return 0;
    5771 }
    5772 _ACEOF
    5773 rm -f conftest.$ac_objext conftest$ac_exeext
    5774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5775   (eval $ac_link) 2>&5
    5776   ac_status=$?
    5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5778   (exit $ac_status); } &&
    5779          { ac_try='test -s conftest$ac_exeext'
    5780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5781   (eval $ac_try) 2>&5
    5782   ac_status=$?
    5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5784   (exit $ac_status); }; }; then
    5785   ac_cv_func__doprnt=yes
    5786 else
    5787   echo "$as_me: failed program was:" >&5
    5788 sed 's/^/| /' conftest.$ac_ext >&5
    5789 
    5790 ac_cv_func__doprnt=no
    5791 fi
    5792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    5793 fi
    5794 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
    5795 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
    5796 if test $ac_cv_func__doprnt = yes; then
    5797 
    5798 cat >>confdefs.h <<\_ACEOF
    5799 #define HAVE_DOPRNT 1
    5800 _ACEOF
    5801 
    5802 fi
    5803 
     3260
     3261; return 0; }
     3262EOF
     3263if { (eval echo configure:3264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3264  rm -rf conftest*
     3265  eval "ac_cv_func_$ac_func=yes"
     3266else
     3267  echo "configure: failed program was:" >&5
     3268  cat conftest.$ac_ext >&5
     3269  rm -rf conftest*
     3270  eval "ac_cv_func_$ac_func=no"
     3271fi
     3272rm -f conftest*
     3273fi
     3274
     3275if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
     3276  echo "$ac_t""yes" 1>&6
     3277    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     3278  cat >> confdefs.h <<EOF
     3279#define $ac_tr_func 1
     3280EOF
     3281 
     3282else
     3283  echo "$ac_t""no" 1>&6
    58043284fi
    58053285done
    58063286
    58073287
    5808 echo "$as_me:$LINENO: checking for library containing setenv" >&5
    5809 echo $ECHO_N "checking for library containing setenv... $ECHO_C" >&6
    5810 if test "${ac_cv_search_setenv+set}" = set; then
    5811   echo $ECHO_N "(cached) $ECHO_C" >&6
    5812 else
    5813   ac_func_search_save_LIBS=$LIBS
    5814 ac_cv_search_setenv=no
    5815 cat >conftest.$ac_ext <<_ACEOF
    5816 #line $LINENO "configure"
    5817 /* confdefs.h.  */
    5818 _ACEOF
    5819 cat confdefs.h >>conftest.$ac_ext
    5820 cat >>conftest.$ac_ext <<_ACEOF
    5821 /* end confdefs.h.  */
    5822 
    5823 /* Override any gcc2 internal prototype to avoid an error.  */
    5824 #ifdef __cplusplus
    5825 extern "C"
    5826 #endif
    5827 /* We use char because int might match the return type of a gcc2
    5828    builtin and then its argument prototype would still apply.  */
    5829 char setenv ();
    5830 int
    5831 main ()
    5832 {
    5833 setenv ();
    5834   ;
    5835   return 0;
    5836 }
    5837 _ACEOF
    5838 rm -f conftest.$ac_objext conftest$ac_exeext
    5839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5840   (eval $ac_link) 2>&5
    5841   ac_status=$?
    5842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5843   (exit $ac_status); } &&
    5844          { ac_try='test -s conftest$ac_exeext'
    5845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5846   (eval $ac_try) 2>&5
    5847   ac_status=$?
    5848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5849   (exit $ac_status); }; }; then
    5850   ac_cv_search_setenv="none required"
    5851 else
    5852   echo "$as_me: failed program was:" >&5
    5853 sed 's/^/| /' conftest.$ac_ext >&5
    5854 
    5855 fi
    5856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    5857 if test "$ac_cv_search_setenv" = no; then
    5858   for ac_lib in bsd; do
    5859     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    5860     cat >conftest.$ac_ext <<_ACEOF
    5861 #line $LINENO "configure"
    5862 /* confdefs.h.  */
    5863 _ACEOF
    5864 cat confdefs.h >>conftest.$ac_ext
    5865 cat >>conftest.$ac_ext <<_ACEOF
    5866 /* end confdefs.h.  */
    5867 
    5868 /* Override any gcc2 internal prototype to avoid an error.  */
    5869 #ifdef __cplusplus
    5870 extern "C"
    5871 #endif
    5872 /* We use char because int might match the return type of a gcc2
    5873    builtin and then its argument prototype would still apply.  */
    5874 char setenv ();
    5875 int
    5876 main ()
    5877 {
    5878 setenv ();
    5879   ;
    5880   return 0;
    5881 }
    5882 _ACEOF
    5883 rm -f conftest.$ac_objext conftest$ac_exeext
    5884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5885   (eval $ac_link) 2>&5
    5886   ac_status=$?
    5887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5888   (exit $ac_status); } &&
    5889          { ac_try='test -s conftest$ac_exeext'
    5890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5891   (eval $ac_try) 2>&5
    5892   ac_status=$?
    5893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5894   (exit $ac_status); }; }; then
    5895   ac_cv_search_setenv="-l$ac_lib"
    5896 break
    5897 else
    5898   echo "$as_me: failed program was:" >&5
    5899 sed 's/^/| /' conftest.$ac_ext >&5
    5900 
    5901 fi
    5902 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    5903   done
    5904 fi
    5905 LIBS=$ac_func_search_save_LIBS
    5906 fi
    5907 echo "$as_me:$LINENO: result: $ac_cv_search_setenv" >&5
    5908 echo "${ECHO_T}$ac_cv_search_setenv" >&6
    5909 if test "$ac_cv_search_setenv" != no; then
    5910   test "$ac_cv_search_setenv" = "none required" || LIBS="$ac_cv_search_setenv $LIBS"
    5911 
    5912 fi
    5913 
    5914 
    5915 
    5916 
    5917 
    5918 
    5919 
    5920 
    5921 
    5922 
    5923 
    5924 
    5925 
    5926 
    5927 for ac_func in gettimeofday atexit bcopy getcwd getwd vsnprintf readlink \
    5928  sleep usleep getpwnam popen setenv siginterrupt
    5929 do
    5930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    5931 echo "$as_me:$LINENO: checking for $ac_func" >&5
    5932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    5933 if eval "test \"\${$as_ac_var+set}\" = set"; then
    5934   echo $ECHO_N "(cached) $ECHO_C" >&6
    5935 else
    5936   cat >conftest.$ac_ext <<_ACEOF
    5937 #line $LINENO "configure"
    5938 /* confdefs.h.  */
    5939 _ACEOF
    5940 cat confdefs.h >>conftest.$ac_ext
    5941 cat >>conftest.$ac_ext <<_ACEOF
    5942 /* end confdefs.h.  */
    5943 /* System header to define __stub macros and hopefully few prototypes,
    5944     which can conflict with char $ac_func (); below.
    5945     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    5946     <limits.h> exists even on freestanding compilers.  */
    5947 #ifdef __STDC__
    5948 # include <limits.h>
    5949 #else
    5950 # include <assert.h>
    5951 #endif
    5952 /* Override any gcc2 internal prototype to avoid an error.  */
    5953 #ifdef __cplusplus
    5954 extern "C"
    5955 {
    5956 #endif
    5957 /* We use char because int might match the return type of a gcc2
    5958    builtin and then its argument prototype would still apply.  */
    5959 char $ac_func ();
    5960 /* The GNU C library defines this for functions which it implements
    5961     to always fail with ENOSYS.  Some functions are actually named
    5962     something starting with __ and the normal name is an alias.  */
    5963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    5964 choke me
    5965 #else
    5966 char (*f) () = $ac_func;
    5967 #endif
    5968 #ifdef __cplusplus
    5969 }
    5970 #endif
    5971 
    5972 int
    5973 main ()
    5974 {
    5975 return f != $ac_func;
    5976   ;
    5977   return 0;
    5978 }
    5979 _ACEOF
    5980 rm -f conftest.$ac_objext conftest$ac_exeext
    5981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5982   (eval $ac_link) 2>&5
    5983   ac_status=$?
    5984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5985   (exit $ac_status); } &&
    5986          { ac_try='test -s conftest$ac_exeext'
    5987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5988   (eval $ac_try) 2>&5
    5989   ac_status=$?
    5990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5991   (exit $ac_status); }; }; then
    5992   eval "$as_ac_var=yes"
    5993 else
    5994   echo "$as_me: failed program was:" >&5
    5995 sed 's/^/| /' conftest.$ac_ext >&5
    5996 
    5997 eval "$as_ac_var=no"
    5998 fi
    5999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    6000 fi
    6001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    6002 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    6003 if test `eval echo '${'$as_ac_var'}'` = yes; then
    6004   cat >>confdefs.h <<_ACEOF
    6005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    6006 _ACEOF
    6007 
    6008 fi
    6009 done
    6010 
    6011 
    60123288
    60133289
    60143290# arithmetic shifts
    6015 echo "$as_me:$LINENO: checking whether your machine has correct arithmetic shifts" >&5
    6016 echo $ECHO_N "checking whether your machine has correct arithmetic shifts... $ECHO_C" >&6
    6017 if test "${ac_cv_shift+set}" = set; then
    6018   echo $ECHO_N "(cached) $ECHO_C" >&6
     3291echo $ac_n "checking whether your machine has correct arithmetic shifts""... $ac_c" 1>&6
     3292echo "configure:3293: checking whether your machine has correct arithmetic shifts" >&5
     3293if eval "test \"`echo '$''{'ac_cv_shift'+set}'`\" = set"; then
     3294  echo $ac_n "(cached) $ac_c" 1>&6
    60193295else
    60203296  if test "$cross_compiling" = yes; then
     
    60223298     ac_cv_shift=yes;
    60233299   else
    6024      echo "$as_me:$LINENO: result: no" >&5
    6025 echo "${ECHO_T}no" >&6
    6026      { { echo "$as_me:$LINENO: error: cross compilation without default value" >&5
    6027 echo "$as_me: error: cross compilation without default value" >&2;}
    6028    { (exit 1); exit 1; }; }
     3300     echo "$ac_t""no" 1>&6
     3301     { echo "configure: error: cross compilation without default value" 1>&2; exit 1; }
    60293302   fi
    60303303else
    6031   cat >conftest.$ac_ext <<_ACEOF
    6032 #line $LINENO "configure"
    6033 /* confdefs.h.  */
    6034 _ACEOF
    6035 cat confdefs.h >>conftest.$ac_ext
    6036 cat >>conftest.$ac_ext <<_ACEOF
    6037 /* end confdefs.h.  */
    6038  int main() { if (-2 >> 1 == -1) return(0); else return(1); }
    6039 _ACEOF
    6040 rm -f conftest$ac_exeext
    6041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6042   (eval $ac_link) 2>&5
    6043   ac_status=$?
    6044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6045   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    6046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6047   (eval $ac_try) 2>&5
    6048   ac_status=$?
    6049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6050   (exit $ac_status); }; }; then
     3304  cat > conftest.$ac_ext <<EOF
     3305#line 3306 "configure"
     3306#include "confdefs.h"
     3307 int main() { if (-2 >> 1 == -1) return(0); else return(1); }
     3308EOF
     3309if { (eval echo configure:3310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3310then
    60513311  ac_cv_shift=yes
    60523312else
    6053   echo "$as_me: program exited with status $ac_status" >&5
    6054 echo "$as_me: failed program was:" >&5
    6055 sed 's/^/| /' conftest.$ac_ext >&5
    6056 
    6057 ( exit $ac_status )
    6058 ac_cv_shift=no
    6059 fi
    6060 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    6061 fi
     3313  echo "configure: failed program was:" >&5
     3314  cat conftest.$ac_ext >&5
     3315  rm -fr conftest*
     3316  ac_cv_shift=no
     3317fi
     3318rm -fr conftest*
     3319fi
     3320
    60623321fi
    60633322
    60643323
    60653324if test "$ac_cv_shift" = yes; then
    6066   echo "$as_me:$LINENO: result: yes" >&5
    6067 echo "${ECHO_T}yes" >&6
    6068 else
    6069   echo "$as_me:$LINENO: result: no" >&5
    6070 echo "${ECHO_T}no" >&6
    6071   { { echo "$as_me:$LINENO: error: need  -2 >> 1 == -1" >&5
    6072 echo "$as_me: error: need  -2 >> 1 == -1" >&2;}
    6073    { (exit 1); exit 1; }; }
     3325  echo "$ac_t""yes" 1>&6
     3326else
     3327  echo "$ac_t""no" 1>&6
     3328  { echo "configure: error: need  -2 >> 1 == -1" 1>&2; exit 1; }
    60743329fi
    60753330
    60763331
    60773332# check for a peculiar constructor initialization
    6078 echo "$as_me:$LINENO: checking whether explicit C++ constructor calls are allowed" >&5
    6079 echo $ECHO_N "checking whether explicit C++ constructor calls are allowed... $ECHO_C" >&6
    6080 
    6081 
    6082 ac_ext=cc
     3333echo $ac_n "checking whether explicit C++ constructor calls are allowed""... $ac_c" 1>&6
     3334echo "configure:3335: checking whether explicit C++ constructor calls are allowed" >&5
     3335
     3336ac_ext=C
     3337# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    60833338ac_cpp='$CXXCPP $CPPFLAGS'
    6084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    6085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    6086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    6087 
    6088 if test "${ac_cv_explicit_const+set}" = set; then
    6089   echo $ECHO_N "(cached) $ECHO_C" >&6
    6090 else
    6091   cat >conftest.$ac_ext <<_ACEOF
    6092 #line $LINENO "configure"
    6093 /* confdefs.h.  */
    6094 _ACEOF
    6095 cat confdefs.h >>conftest.$ac_ext
    6096 cat >>conftest.$ac_ext <<_ACEOF
    6097 /* end confdefs.h.  */
    6098 
    6099 int
    6100 main ()
    6101 {
     3339ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     3340ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     3341cross_compiling=$ac_cv_prog_cxx_cross
     3342
     3343if eval "test \"`echo '$''{'ac_cv_explicit_const'+set}'`\" = set"; then
     3344  echo $ac_n "(cached) $ac_c" 1>&6
     3345else
     3346  cat > conftest.$ac_ext <<EOF
     3347#line 3348 "configure"
     3348#include "confdefs.h"
     3349
     3350int main() {
    61023351class testclass
    61033352  {
     
    61123361  ptr.testclass(1);
    61133362
    6114   ;
    6115   return 0;
    6116 }
    6117 _ACEOF
    6118 rm -f conftest.$ac_objext
    6119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6120   (eval $ac_compile) 2>&5
    6121   ac_status=$?
    6122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6123   (exit $ac_status); } &&
    6124          { ac_try='test -s conftest.$ac_objext'
    6125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6126   (eval $ac_try) 2>&5
    6127   ac_status=$?
    6128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6129   (exit $ac_status); }; }; then
     3363; return 0; }
     3364EOF
     3365if { (eval echo configure:3366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3366  rm -rf conftest*
    61303367  ac_cv_explicit_const=yes
    61313368else
    6132   echo "$as_me: failed program was:" >&5
    6133 sed 's/^/| /' conftest.$ac_ext >&5
    6134 
    6135 ac_cv_explicit_const=no
    6136 fi
    6137 rm -f conftest.$ac_objext conftest.$ac_ext
     3369  echo "configure: failed program was:" >&5
     3370  cat conftest.$ac_ext >&5
     3371  rm -rf conftest*
     3372  ac_cv_explicit_const=no
     3373fi
     3374rm -f conftest*
    61383375fi
    61393376
    61403377ac_ext=c
     3378# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    61413379ac_cpp='$CPP $CPPFLAGS'
    6142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    6143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    6144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    6145 
    6146 echo "$as_me:$LINENO: result: $ac_cv_explicit_const" >&5
    6147 echo "${ECHO_T}$ac_cv_explicit_const" >&6
     3380ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     3381ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     3382cross_compiling=$ac_cv_prog_cc_cross
     3383
     3384echo "$ac_t""$ac_cv_explicit_const" 1>&6
    61483385if test "$ac_cv_explicit_const" = yes; then
    6149   cat >>confdefs.h <<\_ACEOF
     3386  cat >> confdefs.h <<\EOF
    61503387#define HAVE_EXPLICIT_CONSTR 1
    6151 _ACEOF
     3388EOF
    61523389
    61533390fi
    61543391
    61553392# sprintf returns number of printed chars
    6156 echo "$as_me:$LINENO: checking whether vsprintf returns number of printed chars" >&5
    6157 echo $ECHO_N "checking whether vsprintf returns number of printed chars... $ECHO_C" >&6
    6158 if test "${ac_cv_returns_n_of_chars+set}" = set; then
    6159   echo $ECHO_N "(cached) $ECHO_C" >&6
     3393echo $ac_n "checking whether vsprintf returns number of printed chars""... $ac_c" 1>&6
     3394echo "configure:3395: checking whether vsprintf returns number of printed chars" >&5
     3395if eval "test \"`echo '$''{'ac_cv_returns_n_of_chars'+set}'`\" = set"; then
     3396  echo $ac_n "(cached) $ac_c" 1>&6
    61603397else
    61613398  if test "$cross_compiling" = yes; then
    61623399  ac_cv_returns_n_of_chars=no
    61633400else
    6164   cat >conftest.$ac_ext <<_ACEOF
    6165 #line $LINENO "configure"
    6166 /* confdefs.h.  */
    6167 _ACEOF
    6168 cat confdefs.h >>conftest.$ac_ext
    6169 cat >>conftest.$ac_ext <<_ACEOF
    6170 /* end confdefs.h.  */
     3401  cat > conftest.$ac_ext <<EOF
     3402#line 3403 "configure"
     3403#include "confdefs.h"
    61713404#include <stdio.h>
    61723405 main() { char *str=(char*)malloc(20); if (((int) sprintf(str,"123456789")) == 9) exit(0); else exit(1); }
    6173 _ACEOF
    6174 rm -f conftest$ac_exeext
    6175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6176   (eval $ac_link) 2>&5
    6177   ac_status=$?
    6178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6179   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    6180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6181   (eval $ac_try) 2>&5
    6182   ac_status=$?
    6183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6184   (exit $ac_status); }; }; then
     3406EOF
     3407if { (eval echo configure:3408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3408then
    61853409  ac_cv_returns_n_of_chars=yes
    61863410else
    6187   echo "$as_me: program exited with status $ac_status" >&5
    6188 echo "$as_me: failed program was:" >&5
    6189 sed 's/^/| /' conftest.$ac_ext >&5
    6190 
    6191 ( exit $ac_status )
    6192 ac_cv_returns_n_of_chars=no
    6193 fi
    6194 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    6195 fi
     3411  echo "configure: failed program was:" >&5
     3412  cat conftest.$ac_ext >&5
     3413  rm -fr conftest*
     3414  ac_cv_returns_n_of_chars=no
     3415fi
     3416rm -fr conftest*
     3417fi
     3418
    61963419fi
    61973420
    61983421if test "$ac_cv_returns_n_of_chars" = yes; then
    6199   echo "$as_me:$LINENO: result: yes" >&5
    6200 echo "${ECHO_T}yes" >&6
    6201 else
    6202   echo "$as_me:$LINENO: result: no" >&5
    6203 echo "${ECHO_T}no" >&6
    6204   cat >>confdefs.h <<\_ACEOF
     3422  echo "$ac_t""yes" 1>&6
     3423else
     3424  echo "$ac_t""no" 1>&6
     3425  cat >> confdefs.h <<\EOF
    62053426#define BSD_SPRINTF 1
    6206 _ACEOF
     3427EOF
    62073428
    62083429fi
    62093430
    62103431# determine ALIGN_8
    6211 echo "$as_me:$LINENO: checking for char" >&5
    6212 echo $ECHO_N "checking for char... $ECHO_C" >&6
    6213 if test "${ac_cv_type_char+set}" = set; then
    6214   echo $ECHO_N "(cached) $ECHO_C" >&6
    6215 else
    6216   cat >conftest.$ac_ext <<_ACEOF
    6217 #line $LINENO "configure"
    6218 /* confdefs.h.  */
    6219 _ACEOF
    6220 cat confdefs.h >>conftest.$ac_ext
    6221 cat >>conftest.$ac_ext <<_ACEOF
    6222 /* end confdefs.h.  */
    6223 $ac_includes_default
    6224 int
    6225 main ()
     3432echo $ac_n "checking size of char""... $ac_c" 1>&6
     3433echo "configure:3434: checking size of char" >&5
     3434if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
     3435  echo $ac_n "(cached) $ac_c" 1>&6
     3436else
     3437  if test "$cross_compiling" = yes; then
     3438  ac_cv_sizeof_char=1
     3439else
     3440  cat > conftest.$ac_ext <<EOF
     3441#line 3442 "configure"
     3442#include "confdefs.h"
     3443#include <stdio.h>
     3444main()
    62263445{
    6227 if ((char *) 0)
    6228   return 0;
    6229 if (sizeof (char))
    6230   return 0;
    6231   ;
    6232   return 0;
     3446  FILE *f=fopen("conftestval", "w");
     3447  if (!f) exit(1);
     3448  fprintf(f, "%d\n", sizeof(char));
     3449  exit(0);
    62333450}
    6234 _ACEOF
    6235 rm -f conftest.$ac_objext
    6236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6237   (eval $ac_compile) 2>&5
    6238   ac_status=$?
    6239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6240   (exit $ac_status); } &&
    6241          { ac_try='test -s conftest.$ac_objext'
    6242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6243   (eval $ac_try) 2>&5
    6244   ac_status=$?
    6245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6246   (exit $ac_status); }; }; then
    6247   ac_cv_type_char=yes
    6248 else
    6249   echo "$as_me: failed program was:" >&5
    6250 sed 's/^/| /' conftest.$ac_ext >&5
    6251 
    6252 ac_cv_type_char=no
    6253 fi
    6254 rm -f conftest.$ac_objext conftest.$ac_ext
    6255 fi
    6256 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
    6257 echo "${ECHO_T}$ac_cv_type_char" >&6
    6258 
    6259 echo "$as_me:$LINENO: checking size of char" >&5
    6260 echo $ECHO_N "checking size of char... $ECHO_C" >&6
    6261 if test "${ac_cv_sizeof_char+set}" = set; then
    6262   echo $ECHO_N "(cached) $ECHO_C" >&6
    6263 else
    6264   if test "$ac_cv_type_char" = yes; then
    6265   # The cast to unsigned long works around a bug in the HP C Compiler
    6266   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
    6267   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
    6268   # This bug is HP SR number 8606223364.
     3451EOF
     3452if { (eval echo configure:3453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3453then
     3454  ac_cv_sizeof_char=`cat conftestval`
     3455else
     3456  echo "configure: failed program was:" >&5
     3457  cat conftest.$ac_ext >&5
     3458  rm -fr conftest*
     3459  ac_cv_sizeof_char=0
     3460fi
     3461rm -fr conftest*
     3462fi
     3463
     3464fi
     3465echo "$ac_t""$ac_cv_sizeof_char" 1>&6
     3466cat >> confdefs.h <<EOF
     3467#define SIZEOF_CHAR $ac_cv_sizeof_char
     3468EOF
     3469
     3470
     3471echo $ac_n "checking size of short""... $ac_c" 1>&6
     3472echo "configure:3473: checking size of short" >&5
     3473if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
     3474  echo $ac_n "(cached) $ac_c" 1>&6
     3475else
    62693476  if test "$cross_compiling" = yes; then
    6270   # Depending upon the size, compute the lo and hi bounds.
    6271 cat >conftest.$ac_ext <<_ACEOF
    6272 #line $LINENO "configure"
    6273 /* confdefs.h.  */
    6274 _ACEOF
    6275 cat confdefs.h >>conftest.$ac_ext
    6276 cat >>conftest.$ac_ext <<_ACEOF
    6277 /* end confdefs.h.  */
    6278 $ac_includes_default
    6279 int
    6280 main ()
     3477  ac_cv_sizeof_short=2
     3478else
     3479  cat > conftest.$ac_ext <<EOF
     3480#line 3481 "configure"
     3481#include "confdefs.h"
     3482#include <stdio.h>
     3483main()
    62813484{
    6282 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
    6283 test_array [0] = 0
    6284 
    6285   ;
    6286   return 0;
     3485  FILE *f=fopen("conftestval", "w");
     3486  if (!f) exit(1);
     3487  fprintf(f, "%d\n", sizeof(short));
     3488  exit(0);
    62873489}
    6288 _ACEOF
    6289 rm -f conftest.$ac_objext
    6290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6291   (eval $ac_compile) 2>&5
    6292   ac_status=$?
    6293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6294   (exit $ac_status); } &&
    6295          { ac_try='test -s conftest.$ac_objext'
    6296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6297   (eval $ac_try) 2>&5
    6298   ac_status=$?
    6299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6300   (exit $ac_status); }; }; then
    6301   ac_lo=0 ac_mid=0
    6302   while :; do
    6303     cat >conftest.$ac_ext <<_ACEOF
    6304 #line $LINENO "configure"
    6305 /* confdefs.h.  */
    6306 _ACEOF
    6307 cat confdefs.h >>conftest.$ac_ext
    6308 cat >>conftest.$ac_ext <<_ACEOF
    6309 /* end confdefs.h.  */
    6310 $ac_includes_default
    6311 int
    6312 main ()
     3490EOF
     3491if { (eval echo configure:3492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3492then
     3493  ac_cv_sizeof_short=`cat conftestval`
     3494else
     3495  echo "configure: failed program was:" >&5
     3496  cat conftest.$ac_ext >&5
     3497  rm -fr conftest*
     3498  ac_cv_sizeof_short=0
     3499fi
     3500rm -fr conftest*
     3501fi
     3502
     3503fi
     3504echo "$ac_t""$ac_cv_sizeof_short" 1>&6
     3505cat >> confdefs.h <<EOF
     3506#define SIZEOF_SHORT $ac_cv_sizeof_short
     3507EOF
     3508
     3509
     3510echo $ac_n "checking size of int""... $ac_c" 1>&6
     3511echo "configure:3512: checking size of int" >&5
     3512if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
     3513  echo $ac_n "(cached) $ac_c" 1>&6
     3514else
     3515  if test "$cross_compiling" = yes; then
     3516  ac_cv_sizeof_int=4
     3517else
     3518  cat > conftest.$ac_ext <<EOF
     3519#line 3520 "configure"
     3520#include "confdefs.h"
     3521#include <stdio.h>
     3522main()
    63133523{
    6314 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
    6315 test_array [0] = 0
    6316 
    6317   ;
    6318   return 0;
     3524  FILE *f=fopen("conftestval", "w");
     3525  if (!f) exit(1);
     3526  fprintf(f, "%d\n", sizeof(int));
     3527  exit(0);
    63193528}
    6320 _ACEOF
    6321 rm -f conftest.$ac_objext
    6322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6323   (eval $ac_compile) 2>&5
    6324   ac_status=$?
    6325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6326   (exit $ac_status); } &&
    6327          { ac_try='test -s conftest.$ac_objext'
    6328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6329   (eval $ac_try) 2>&5
    6330   ac_status=$?
    6331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6332   (exit $ac_status); }; }; then
    6333   ac_hi=$ac_mid; break
    6334 else
    6335   echo "$as_me: failed program was:" >&5
    6336 sed 's/^/| /' conftest.$ac_ext >&5
    6337 
    6338 ac_lo=`expr $ac_mid + 1`
    6339                     if test $ac_lo -le $ac_mid; then
    6340                       ac_lo= ac_hi=
    6341                       break
    6342                     fi
    6343                     ac_mid=`expr 2 '*' $ac_mid + 1`
    6344 fi
    6345 rm -f conftest.$ac_objext conftest.$ac_ext
    6346   done
    6347 else
    6348   echo "$as_me: failed program was:" >&5
    6349 sed 's/^/| /' conftest.$ac_ext >&5
    6350 
    6351 cat >conftest.$ac_ext <<_ACEOF
    6352 #line $LINENO "configure"
    6353 /* confdefs.h.  */
    6354 _ACEOF
    6355 cat confdefs.h >>conftest.$ac_ext
    6356 cat >>conftest.$ac_ext <<_ACEOF
    6357 /* end confdefs.h.  */
    6358 $ac_includes_default
    6359 int
    6360 main ()
     3529EOF
     3530if { (eval echo configure:3531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3531then
     3532  ac_cv_sizeof_int=`cat conftestval`
     3533else
     3534  echo "configure: failed program was:" >&5
     3535  cat conftest.$ac_ext >&5
     3536  rm -fr conftest*
     3537  ac_cv_sizeof_int=0
     3538fi
     3539rm -fr conftest*
     3540fi
     3541
     3542fi
     3543echo "$ac_t""$ac_cv_sizeof_int" 1>&6
     3544cat >> confdefs.h <<EOF
     3545#define SIZEOF_INT $ac_cv_sizeof_int
     3546EOF
     3547
     3548
     3549echo $ac_n "checking size of long""... $ac_c" 1>&6
     3550echo "configure:3551: checking size of long" >&5
     3551if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
     3552  echo $ac_n "(cached) $ac_c" 1>&6
     3553else
     3554  if test "$cross_compiling" = yes; then
     3555  ac_cv_sizeof_long=4
     3556else
     3557  cat > conftest.$ac_ext <<EOF
     3558#line 3559 "configure"
     3559#include "confdefs.h"
     3560#include <stdio.h>
     3561main()
    63613562{
    6362 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
    6363 test_array [0] = 0
    6364 
    6365   ;
    6366   return 0;
     3563  FILE *f=fopen("conftestval", "w");
     3564  if (!f) exit(1);
     3565  fprintf(f, "%d\n", sizeof(long));
     3566  exit(0);
    63673567}
    6368 _ACEOF
    6369 rm -f conftest.$ac_objext
    6370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6371   (eval $ac_compile) 2>&5
    6372   ac_status=$?
    6373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6374   (exit $ac_status); } &&
    6375          { ac_try='test -s conftest.$ac_objext'
    6376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6377   (eval $ac_try) 2>&5
    6378   ac_status=$?
    6379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6380   (exit $ac_status); }; }; then
    6381   ac_hi=-1 ac_mid=-1
    6382   while :; do
    6383     cat >conftest.$ac_ext <<_ACEOF
    6384 #line $LINENO "configure"
    6385 /* confdefs.h.  */
    6386 _ACEOF
    6387 cat confdefs.h >>conftest.$ac_ext
    6388 cat >>conftest.$ac_ext <<_ACEOF
    6389 /* end confdefs.h.  */
    6390 $ac_includes_default
    6391 int
    6392 main ()
     3568EOF
     3569if { (eval echo configure:3570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3570then
     3571  ac_cv_sizeof_long=`cat conftestval`
     3572else
     3573  echo "configure: failed program was:" >&5
     3574  cat conftest.$ac_ext >&5
     3575  rm -fr conftest*
     3576  ac_cv_sizeof_long=0
     3577fi
     3578rm -fr conftest*
     3579fi
     3580
     3581fi
     3582echo "$ac_t""$ac_cv_sizeof_long" 1>&6
     3583cat >> confdefs.h <<EOF
     3584#define SIZEOF_LONG $ac_cv_sizeof_long
     3585EOF
     3586
     3587
     3588echo $ac_n "checking size of void*""... $ac_c" 1>&6
     3589echo "configure:3590: checking size of void*" >&5
     3590if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then
     3591  echo $ac_n "(cached) $ac_c" 1>&6
     3592else
     3593  if test "$cross_compiling" = yes; then
     3594  ac_cv_sizeof_voidp=4
     3595else
     3596  cat > conftest.$ac_ext <<EOF
     3597#line 3598 "configure"
     3598#include "confdefs.h"
     3599#include <stdio.h>
     3600main()
    63933601{
    6394 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
    6395 test_array [0] = 0
    6396 
    6397   ;
    6398   return 0;
     3602  FILE *f=fopen("conftestval", "w");
     3603  if (!f) exit(1);
     3604  fprintf(f, "%d\n", sizeof(void*));
     3605  exit(0);
    63993606}
    6400 _ACEOF
    6401 rm -f conftest.$ac_objext
    6402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6403   (eval $ac_compile) 2>&5
    6404   ac_status=$?
    6405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6406   (exit $ac_status); } &&
    6407          { ac_try='test -s conftest.$ac_objext'
    6408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6409   (eval $ac_try) 2>&5
    6410   ac_status=$?
    6411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6412   (exit $ac_status); }; }; then
    6413   ac_lo=$ac_mid; break
    6414 else
    6415   echo "$as_me: failed program was:" >&5
    6416 sed 's/^/| /' conftest.$ac_ext >&5
    6417 
    6418 ac_hi=`expr '(' $ac_mid ')' - 1`
    6419                        if test $ac_mid -le $ac_hi; then
    6420                          ac_lo= ac_hi=
    6421                          break
    6422                        fi
    6423                        ac_mid=`expr 2 '*' $ac_mid`
    6424 fi
    6425 rm -f conftest.$ac_objext conftest.$ac_ext
    6426   done
    6427 else
    6428   echo "$as_me: failed program was:" >&5
    6429 sed 's/^/| /' conftest.$ac_ext >&5
    6430 
    6431 ac_lo= ac_hi=
    6432 fi
    6433 rm -f conftest.$ac_objext conftest.$ac_ext
    6434 fi
    6435 rm -f conftest.$ac_objext conftest.$ac_ext
    6436 # Binary search between lo and hi bounds.
    6437 while test "x$ac_lo" != "x$ac_hi"; do
    6438   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
    6439   cat >conftest.$ac_ext <<_ACEOF
    6440 #line $LINENO "configure"
    6441 /* confdefs.h.  */
    6442 _ACEOF
    6443 cat confdefs.h >>conftest.$ac_ext
    6444 cat >>conftest.$ac_ext <<_ACEOF
    6445 /* end confdefs.h.  */
    6446 $ac_includes_default
    6447 int
    6448 main ()
     3607EOF
     3608if { (eval echo configure:3609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3609then
     3610  ac_cv_sizeof_voidp=`cat conftestval`
     3611else
     3612  echo "configure: failed program was:" >&5
     3613  cat conftest.$ac_ext >&5
     3614  rm -fr conftest*
     3615  ac_cv_sizeof_voidp=0
     3616fi
     3617rm -fr conftest*
     3618fi
     3619
     3620fi
     3621echo "$ac_t""$ac_cv_sizeof_voidp" 1>&6
     3622cat >> confdefs.h <<EOF
     3623#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
     3624EOF
     3625
     3626
     3627echo $ac_n "checking size of double""... $ac_c" 1>&6
     3628echo "configure:3629: checking size of double" >&5
     3629if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
     3630  echo $ac_n "(cached) $ac_c" 1>&6
     3631else
     3632  if test "$cross_compiling" = yes; then
     3633  ac_cv_sizeof_double=8
     3634else
     3635  cat > conftest.$ac_ext <<EOF
     3636#line 3637 "configure"
     3637#include "confdefs.h"
     3638#include <stdio.h>
     3639main()
    64493640{
    6450 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
    6451 test_array [0] = 0
    6452 
    6453   ;
    6454   return 0;
     3641  FILE *f=fopen("conftestval", "w");
     3642  if (!f) exit(1);
     3643  fprintf(f, "%d\n", sizeof(double));
     3644  exit(0);
    64553645}
    6456 _ACEOF
    6457 rm -f conftest.$ac_objext
    6458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6459   (eval $ac_compile) 2>&5
    6460   ac_status=$?
    6461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6462   (exit $ac_status); } &&
    6463          { ac_try='test -s conftest.$ac_objext'
    6464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6465   (eval $ac_try) 2>&5
    6466   ac_status=$?
    6467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6468   (exit $ac_status); }; }; then
    6469   ac_hi=$ac_mid
    6470 else
    6471   echo "$as_me: failed program was:" >&5
    6472 sed 's/^/| /' conftest.$ac_ext >&5
    6473 
    6474 ac_lo=`expr '(' $ac_mid ')' + 1`
    6475 fi
    6476 rm -f conftest.$ac_objext conftest.$ac_ext
    6477 done
    6478 case $ac_lo in
    6479 ?*) ac_cv_sizeof_char=$ac_lo;;
    6480 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
    6481 See \`config.log' for more details." >&5
    6482 echo "$as_me: error: cannot compute sizeof (char), 77
    6483 See \`config.log' for more details." >&2;}
    6484    { (exit 1); exit 1; }; } ;;
    6485 esac
    6486 else
    6487   if test "$cross_compiling" = yes; then
    6488   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
    6489 See \`config.log' for more details." >&5
    6490 echo "$as_me: error: cannot run test program while cross compiling
    6491 See \`config.log' for more details." >&2;}
    6492    { (exit 1); exit 1; }; }
    6493 else
    6494   cat >conftest.$ac_ext <<_ACEOF
    6495 #line $LINENO "configure"
    6496 /* confdefs.h.  */
    6497 _ACEOF
    6498 cat confdefs.h >>conftest.$ac_ext
    6499 cat >>conftest.$ac_ext <<_ACEOF
    6500 /* end confdefs.h.  */
    6501 $ac_includes_default
    6502 long longval () { return (long) (sizeof (char)); }
    6503 unsigned long ulongval () { return (long) (sizeof (char)); }
    6504 #include <stdio.h>
    6505 #include <stdlib.h>
    6506 int
    6507 main ()
    6508 {
    6509 
    6510   FILE *f = fopen ("conftest.val", "w");
    6511   if (! f)
    6512     exit (1);
    6513   if (((long) (sizeof (char))) < 0)
    6514     {
    6515       long i = longval ();
    6516       if (i != ((long) (sizeof (char))))
    6517         exit (1);
    6518       fprintf (f, "%ld\n", i);
    6519     }
    6520   else
    6521     {
    6522       unsigned long i = ulongval ();
    6523       if (i != ((long) (sizeof (char))))
    6524         exit (1);
    6525       fprintf (f, "%lu\n", i);
    6526     }
    6527   exit (ferror (f) || fclose (f) != 0);
    6528 
    6529   ;
    6530   return 0;
    6531 }
    6532 _ACEOF
    6533 rm -f conftest$ac_exeext
    6534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6535   (eval $ac_link) 2>&5
    6536   ac_status=$?
    6537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6538   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    6539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6540   (eval $ac_try) 2>&5
    6541   ac_status=$?
    6542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6543   (exit $ac_status); }; }; then
    6544   ac_cv_sizeof_char=`cat conftest.val`
    6545 else
    6546   echo "$as_me: program exited with status $ac_status" >&5
    6547 echo "$as_me: failed program was:" >&5
    6548 sed 's/^/| /' conftest.$ac_ext >&5
    6549 
    6550 ( exit $ac_status )
    6551 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
    6552 See \`config.log' for more details." >&5
    6553 echo "$as_me: error: cannot compute sizeof (char), 77
    6554 See \`config.log' for more details." >&2;}
    6555    { (exit 1); exit 1; }; }
    6556 fi
    6557 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    6558 fi
    6559 fi
    6560 rm -f conftest.val
    6561 else
    6562   ac_cv_sizeof_char=0
    6563 fi
    6564 fi
    6565 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
    6566 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
    6567 cat >>confdefs.h <<_ACEOF
    6568 #define SIZEOF_CHAR $ac_cv_sizeof_char
    6569 _ACEOF
    6570 
    6571 
    6572 echo "$as_me:$LINENO: checking for short" >&5
    6573 echo $ECHO_N "checking for short... $ECHO_C" >&6
    6574 if test "${ac_cv_type_short+set}" = set; then
    6575   echo $ECHO_N "(cached) $ECHO_C" >&6
    6576 else
    6577   cat >conftest.$ac_ext <<_ACEOF
    6578 #line $LINENO "configure"
    6579 /* confdefs.h.  */
    6580 _ACEOF
    6581 cat confdefs.h >>conftest.$ac_ext
    6582 cat >>conftest.$ac_ext <<_ACEOF
    6583 /* end confdefs.h.  */
    6584 $ac_includes_default
    6585 int
    6586 main ()
    6587 {
    6588 if ((short *) 0)
    6589   return 0;
    6590 if (sizeof (short))
    6591   return 0;
    6592   ;
    6593   return 0;
    6594 }
    6595 _ACEOF
    6596 rm -f conftest.$ac_objext
    6597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6598   (eval $ac_compile) 2>&5
    6599   ac_status=$?
    6600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6601   (exit $ac_status); } &&
    6602          { ac_try='test -s conftest.$ac_objext'
    6603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6604   (eval $ac_try) 2>&5
    6605   ac_status=$?
    6606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6607   (exit $ac_status); }; }; then
    6608   ac_cv_type_short=yes
    6609 else
    6610   echo "$as_me: failed program was:" >&5
    6611 sed 's/^/| /' conftest.$ac_ext >&5
    6612 
    6613 ac_cv_type_short=no
    6614 fi
    6615 rm -f conftest.$ac_objext conftest.$ac_ext
    6616 fi
    6617 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
    6618 echo "${ECHO_T}$ac_cv_type_short" >&6
    6619 
    6620 echo "$as_me:$LINENO: checking size of short" >&5
    6621 echo $ECHO_N "checking size of short... $ECHO_C" >&6
    6622 if test "${ac_cv_sizeof_short+set}" = set; then
    6623   echo $ECHO_N "(cached) $ECHO_C" >&6
    6624 else
    6625   if test "$ac_cv_type_short" = yes; then
    6626   # The cast to unsigned long works around a bug in the HP C Compiler
    6627   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
    6628   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
    6629   # This bug is HP SR number 8606223364.
    6630   if test "$cross_compiling" = yes; then
    6631   # Depending upon the size, compute the lo and hi bounds.
    6632 cat >conftest.$ac_ext <<_ACEOF
    6633 #line $LINENO "configure"
    6634 /* confdefs.h.  */
    6635 _ACEOF
    6636 cat confdefs.h >>conftest.$ac_ext
    6637 cat >>conftest.$ac_ext <<_ACEOF
    6638 /* end confdefs.h.  */
    6639 $ac_includes_default
    6640 int
    6641 main ()
    6642 {
    6643 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
    6644 test_array [0] = 0
    6645 
    6646   ;
    6647   return 0;
    6648 }
    6649 _ACEOF
    6650 rm -f conftest.$ac_objext
    6651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6652   (eval $ac_compile) 2>&5
    6653   ac_status=$?
    6654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6655   (exit $ac_status); } &&
    6656          { ac_try='test -s conftest.$ac_objext'
    6657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6658   (eval $ac_try) 2>&5
    6659   ac_status=$?
    6660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6661   (exit $ac_status); }; }; then
    6662   ac_lo=0 ac_mid=0
    6663   while :; do
    6664     cat >conftest.$ac_ext <<_ACEOF
    6665 #line $LINENO "configure"
    6666 /* confdefs.h.  */
    6667 _ACEOF
    6668 cat confdefs.h >>conftest.$ac_ext
    6669 cat >>conftest.$ac_ext <<_ACEOF
    6670 /* end confdefs.h.  */
    6671 $ac_includes_default
    6672 int
    6673 main ()
    6674 {
    6675 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
    6676 test_array [0] = 0
    6677 
    6678   ;
    6679   return 0;
    6680 }
    6681 _ACEOF
    6682 rm -f conftest.$ac_objext
    6683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6684   (eval $ac_compile) 2>&5
    6685   ac_status=$?
    6686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6687   (exit $ac_status); } &&
    6688          { ac_try='test -s conftest.$ac_objext'
    6689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6690   (eval $ac_try) 2>&5
    6691   ac_status=$?
    6692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6693   (exit $ac_status); }; }; then
    6694   ac_hi=$ac_mid; break
    6695 else
    6696   echo "$as_me: failed program was:" >&5
    6697 sed 's/^/| /' conftest.$ac_ext >&5
    6698 
    6699 ac_lo=`expr $ac_mid + 1`
    6700                     if test $ac_lo -le $ac_mid; then
    6701                       ac_lo= ac_hi=
    6702                       break
    6703                     fi
    6704                     ac_mid=`expr 2 '*' $ac_mid + 1`
    6705 fi
    6706 rm -f conftest.$ac_objext conftest.$ac_ext
    6707   done
    6708 else
    6709   echo "$as_me: failed program was:" >&5
    6710 sed 's/^/| /' conftest.$ac_ext >&5
    6711 
    6712 cat >conftest.$ac_ext <<_ACEOF
    6713 #line $LINENO "configure"
    6714 /* confdefs.h.  */
    6715 _ACEOF
    6716 cat confdefs.h >>conftest.$ac_ext
    6717 cat >>conftest.$ac_ext <<_ACEOF
    6718 /* end confdefs.h.  */
    6719 $ac_includes_default
    6720 int
    6721 main ()
    6722 {
    6723 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
    6724 test_array [0] = 0
    6725 
    6726   ;
    6727   return 0;
    6728 }
    6729 _ACEOF
    6730 rm -f conftest.$ac_objext
    6731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6732   (eval $ac_compile) 2>&5
    6733   ac_status=$?
    6734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6735   (exit $ac_status); } &&
    6736          { ac_try='test -s conftest.$ac_objext'
    6737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6738   (eval $ac_try) 2>&5
    6739   ac_status=$?
    6740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6741   (exit $ac_status); }; }; then
    6742   ac_hi=-1 ac_mid=-1
    6743   while :; do
    6744     cat >conftest.$ac_ext <<_ACEOF
    6745 #line $LINENO "configure"
    6746 /* confdefs.h.  */
    6747 _ACEOF
    6748 cat confdefs.h >>conftest.$ac_ext
    6749 cat >>conftest.$ac_ext <<_ACEOF
    6750 /* end confdefs.h.  */
    6751 $ac_includes_default
    6752 int
    6753 main ()
    6754 {
    6755 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
    6756 test_array [0] = 0
    6757 
    6758   ;
    6759   return 0;
    6760 }
    6761 _ACEOF
    6762 rm -f conftest.$ac_objext
    6763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6764   (eval $ac_compile) 2>&5
    6765   ac_status=$?
    6766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6767   (exit $ac_status); } &&
    6768          { ac_try='test -s conftest.$ac_objext'
    6769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6770   (eval $ac_try) 2>&5
    6771   ac_status=$?
    6772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6773   (exit $ac_status); }; }; then
    6774   ac_lo=$ac_mid; break
    6775 else
    6776   echo "$as_me: failed program was:" >&5
    6777 sed 's/^/| /' conftest.$ac_ext >&5
    6778 
    6779 ac_hi=`expr '(' $ac_mid ')' - 1`
    6780                        if test $ac_mid -le $ac_hi; then
    6781                          ac_lo= ac_hi=
    6782                          break
    6783                        fi
    6784                        ac_mid=`expr 2 '*' $ac_mid`
    6785 fi
    6786 rm -f conftest.$ac_objext conftest.$ac_ext
    6787   done
    6788 else
    6789   echo "$as_me: failed program was:" >&5
    6790 sed 's/^/| /' conftest.$ac_ext >&5
    6791 
    6792 ac_lo= ac_hi=
    6793 fi
    6794 rm -f conftest.$ac_objext conftest.$ac_ext
    6795 fi
    6796 rm -f conftest.$ac_objext conftest.$ac_ext
    6797 # Binary search between lo and hi bounds.
    6798 while test "x$ac_lo" != "x$ac_hi"; do
    6799   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
    6800   cat >conftest.$ac_ext <<_ACEOF
    6801 #line $LINENO "configure"
    6802 /* confdefs.h.  */
    6803 _ACEOF
    6804 cat confdefs.h >>conftest.$ac_ext
    6805 cat >>conftest.$ac_ext <<_ACEOF
    6806 /* end confdefs.h.  */
    6807 $ac_includes_default
    6808 int
    6809 main ()
    6810 {
    6811 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
    6812 test_array [0] = 0
    6813 
    6814   ;
    6815   return 0;
    6816 }
    6817 _ACEOF
    6818 rm -f conftest.$ac_objext
    6819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6820   (eval $ac_compile) 2>&5
    6821   ac_status=$?
    6822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6823   (exit $ac_status); } &&
    6824          { ac_try='test -s conftest.$ac_objext'
    6825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6826   (eval $ac_try) 2>&5
    6827   ac_status=$?
    6828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6829   (exit $ac_status); }; }; then
    6830   ac_hi=$ac_mid
    6831 else
    6832   echo "$as_me: failed program was:" >&5
    6833 sed 's/^/| /' conftest.$ac_ext >&5
    6834 
    6835 ac_lo=`expr '(' $ac_mid ')' + 1`
    6836 fi
    6837 rm -f conftest.$ac_objext conftest.$ac_ext
    6838 done
    6839 case $ac_lo in
    6840 ?*) ac_cv_sizeof_short=$ac_lo;;
    6841 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
    6842 See \`config.log' for more details." >&5
    6843 echo "$as_me: error: cannot compute sizeof (short), 77
    6844 See \`config.log' for more details." >&2;}
    6845    { (exit 1); exit 1; }; } ;;
    6846 esac
    6847 else
    6848   if test "$cross_compiling" = yes; then
    6849   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
    6850 See \`config.log' for more details." >&5
    6851 echo "$as_me: error: cannot run test program while cross compiling
    6852 See \`config.log' for more details." >&2;}
    6853    { (exit 1); exit 1; }; }
    6854 else
    6855   cat >conftest.$ac_ext <<_ACEOF
    6856 #line $LINENO "configure"
    6857 /* confdefs.h.  */
    6858 _ACEOF
    6859 cat confdefs.h >>conftest.$ac_ext
    6860 cat >>conftest.$ac_ext <<_ACEOF
    6861 /* end confdefs.h.  */
    6862 $ac_includes_default
    6863 long longval () { return (long) (sizeof (short)); }
    6864 unsigned long ulongval () { return (long) (sizeof (short)); }
    6865 #include <stdio.h>
    6866 #include <stdlib.h>
    6867 int
    6868 main ()
    6869 {
    6870 
    6871   FILE *f = fopen ("conftest.val", "w");
    6872   if (! f)
    6873     exit (1);
    6874   if (((long) (sizeof (short))) < 0)
    6875     {
    6876       long i = longval ();
    6877       if (i != ((long) (sizeof (short))))
    6878         exit (1);
    6879       fprintf (f, "%ld\n", i);
    6880     }
    6881   else
    6882     {
    6883       unsigned long i = ulongval ();
    6884       if (i != ((long) (sizeof (short))))
    6885         exit (1);
    6886       fprintf (f, "%lu\n", i);
    6887     }
    6888   exit (ferror (f) || fclose (f) != 0);
    6889 
    6890   ;
    6891   return 0;
    6892 }
    6893 _ACEOF
    6894 rm -f conftest$ac_exeext
    6895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6896   (eval $ac_link) 2>&5
    6897   ac_status=$?
    6898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6899   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    6900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6901   (eval $ac_try) 2>&5
    6902   ac_status=$?
    6903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6904   (exit $ac_status); }; }; then
    6905   ac_cv_sizeof_short=`cat conftest.val`
    6906 else
    6907   echo "$as_me: program exited with status $ac_status" >&5
    6908 echo "$as_me: failed program was:" >&5
    6909 sed 's/^/| /' conftest.$ac_ext >&5
    6910 
    6911 ( exit $ac_status )
    6912 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
    6913 See \`config.log' for more details." >&5
    6914 echo "$as_me: error: cannot compute sizeof (short), 77
    6915 See \`config.log' for more details." >&2;}
    6916    { (exit 1); exit 1; }; }
    6917 fi
    6918 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    6919 fi
    6920 fi
    6921 rm -f conftest.val
    6922 else
    6923   ac_cv_sizeof_short=0
    6924 fi
    6925 fi
    6926 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
    6927 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
    6928 cat >>confdefs.h <<_ACEOF
    6929 #define SIZEOF_SHORT $ac_cv_sizeof_short
    6930 _ACEOF
    6931 
    6932 
    6933 echo "$as_me:$LINENO: checking for int" >&5
    6934 echo $ECHO_N "checking for int... $ECHO_C" >&6
    6935 if test "${ac_cv_type_int+set}" = set; then
    6936   echo $ECHO_N "(cached) $ECHO_C" >&6
    6937 else
    6938   cat >conftest.$ac_ext <<_ACEOF
    6939 #line $LINENO "configure"
    6940 /* confdefs.h.  */
    6941 _ACEOF
    6942 cat confdefs.h >>conftest.$ac_ext
    6943 cat >>conftest.$ac_ext <<_ACEOF
    6944 /* end confdefs.h.  */
    6945 $ac_includes_default
    6946 int
    6947 main ()
    6948 {
    6949 if ((int *) 0)
    6950   return 0;
    6951 if (sizeof (int))
    6952   return 0;
    6953   ;
    6954   return 0;
    6955 }
    6956 _ACEOF
    6957 rm -f conftest.$ac_objext
    6958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6959   (eval $ac_compile) 2>&5
    6960   ac_status=$?
    6961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6962   (exit $ac_status); } &&
    6963          { ac_try='test -s conftest.$ac_objext'
    6964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6965   (eval $ac_try) 2>&5
    6966   ac_status=$?
    6967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6968   (exit $ac_status); }; }; then
    6969   ac_cv_type_int=yes
    6970 else
    6971   echo "$as_me: failed program was:" >&5
    6972 sed 's/^/| /' conftest.$ac_ext >&5
    6973 
    6974 ac_cv_type_int=no
    6975 fi
    6976 rm -f conftest.$ac_objext conftest.$ac_ext
    6977 fi
    6978 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
    6979 echo "${ECHO_T}$ac_cv_type_int" >&6
    6980 
    6981 echo "$as_me:$LINENO: checking size of int" >&5
    6982 echo $ECHO_N "checking size of int... $ECHO_C" >&6
    6983 if test "${ac_cv_sizeof_int+set}" = set; then
    6984   echo $ECHO_N "(cached) $ECHO_C" >&6
    6985 else
    6986   if test "$ac_cv_type_int" = yes; then
    6987   # The cast to unsigned long works around a bug in the HP C Compiler
    6988   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
    6989   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
    6990   # This bug is HP SR number 8606223364.
    6991   if test "$cross_compiling" = yes; then
    6992   # Depending upon the size, compute the lo and hi bounds.
    6993 cat >conftest.$ac_ext <<_ACEOF
    6994 #line $LINENO "configure"
    6995 /* confdefs.h.  */
    6996 _ACEOF
    6997 cat confdefs.h >>conftest.$ac_ext
    6998 cat >>conftest.$ac_ext <<_ACEOF
    6999 /* end confdefs.h.  */
    7000 $ac_includes_default
    7001 int
    7002 main ()
    7003 {
    7004 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
    7005 test_array [0] = 0
    7006 
    7007   ;
    7008   return 0;
    7009 }
    7010 _ACEOF
    7011 rm -f conftest.$ac_objext
    7012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7013   (eval $ac_compile) 2>&5
    7014   ac_status=$?
    7015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7016   (exit $ac_status); } &&
    7017          { ac_try='test -s conftest.$ac_objext'
    7018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7019   (eval $ac_try) 2>&5
    7020   ac_status=$?
    7021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7022   (exit $ac_status); }; }; then
    7023   ac_lo=0 ac_mid=0
    7024   while :; do
    7025     cat >conftest.$ac_ext <<_ACEOF
    7026 #line $LINENO "configure"
    7027 /* confdefs.h.  */
    7028 _ACEOF
    7029 cat confdefs.h >>conftest.$ac_ext
    7030 cat >>conftest.$ac_ext <<_ACEOF
    7031 /* end confdefs.h.  */
    7032 $ac_includes_default
    7033 int
    7034 main ()
    7035 {
    7036 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
    7037 test_array [0] = 0
    7038 
    7039   ;
    7040   return 0;
    7041 }
    7042 _ACEOF
    7043 rm -f conftest.$ac_objext
    7044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7045   (eval $ac_compile) 2>&5
    7046   ac_status=$?
    7047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7048   (exit $ac_status); } &&
    7049          { ac_try='test -s conftest.$ac_objext'
    7050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7051   (eval $ac_try) 2>&5
    7052   ac_status=$?
    7053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7054   (exit $ac_status); }; }; then
    7055   ac_hi=$ac_mid; break
    7056 else
    7057   echo "$as_me: failed program was:" >&5
    7058 sed 's/^/| /' conftest.$ac_ext >&5
    7059 
    7060 ac_lo=`expr $ac_mid + 1`
    7061                     if test $ac_lo -le $ac_mid; then
    7062                       ac_lo= ac_hi=
    7063                       break
    7064                     fi
    7065                     ac_mid=`expr 2 '*' $ac_mid + 1`
    7066 fi
    7067 rm -f conftest.$ac_objext conftest.$ac_ext
    7068   done
    7069 else
    7070   echo "$as_me: failed program was:" >&5
    7071 sed 's/^/| /' conftest.$ac_ext >&5
    7072 
    7073 cat >conftest.$ac_ext <<_ACEOF
    7074 #line $LINENO "configure"
    7075 /* confdefs.h.  */
    7076 _ACEOF
    7077 cat confdefs.h >>conftest.$ac_ext
    7078 cat >>conftest.$ac_ext <<_ACEOF
    7079 /* end confdefs.h.  */
    7080 $ac_includes_default
    7081 int
    7082 main ()
    7083 {
    7084 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
    7085 test_array [0] = 0
    7086 
    7087   ;
    7088   return 0;
    7089 }
    7090 _ACEOF
    7091 rm -f conftest.$ac_objext
    7092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7093   (eval $ac_compile) 2>&5
    7094   ac_status=$?
    7095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7096   (exit $ac_status); } &&
    7097          { ac_try='test -s conftest.$ac_objext'
    7098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7099   (eval $ac_try) 2>&5
    7100   ac_status=$?
    7101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7102   (exit $ac_status); }; }; then
    7103   ac_hi=-1 ac_mid=-1
    7104   while :; do
    7105     cat >conftest.$ac_ext <<_ACEOF
    7106 #line $LINENO "configure"
    7107 /* confdefs.h.  */
    7108 _ACEOF
    7109 cat confdefs.h >>conftest.$ac_ext
    7110 cat >>conftest.$ac_ext <<_ACEOF
    7111 /* end confdefs.h.  */
    7112 $ac_includes_default
    7113 int
    7114 main ()
    7115 {
    7116 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
    7117 test_array [0] = 0
    7118 
    7119   ;
    7120   return 0;
    7121 }
    7122 _ACEOF
    7123 rm -f conftest.$ac_objext
    7124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7125   (eval $ac_compile) 2>&5
    7126   ac_status=$?
    7127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7128   (exit $ac_status); } &&
    7129          { ac_try='test -s conftest.$ac_objext'
    7130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7131   (eval $ac_try) 2>&5
    7132   ac_status=$?
    7133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7134   (exit $ac_status); }; }; then
    7135   ac_lo=$ac_mid; break
    7136 else
    7137   echo "$as_me: failed program was:" >&5
    7138 sed 's/^/| /' conftest.$ac_ext >&5
    7139 
    7140 ac_hi=`expr '(' $ac_mid ')' - 1`
    7141                        if test $ac_mid -le $ac_hi; then
    7142                          ac_lo= ac_hi=
    7143                          break
    7144                        fi
    7145                        ac_mid=`expr 2 '*' $ac_mid`
    7146 fi
    7147 rm -f conftest.$ac_objext conftest.$ac_ext
    7148   done
    7149 else
    7150   echo "$as_me: failed program was:" >&5
    7151 sed 's/^/| /' conftest.$ac_ext >&5
    7152 
    7153 ac_lo= ac_hi=
    7154 fi
    7155 rm -f conftest.$ac_objext conftest.$ac_ext
    7156 fi
    7157 rm -f conftest.$ac_objext conftest.$ac_ext
    7158 # Binary search between lo and hi bounds.
    7159 while test "x$ac_lo" != "x$ac_hi"; do
    7160   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
    7161   cat >conftest.$ac_ext <<_ACEOF
    7162 #line $LINENO "configure"
    7163 /* confdefs.h.  */
    7164 _ACEOF
    7165 cat confdefs.h >>conftest.$ac_ext
    7166 cat >>conftest.$ac_ext <<_ACEOF
    7167 /* end confdefs.h.  */
    7168 $ac_includes_default
    7169 int
    7170 main ()
    7171 {
    7172 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
    7173 test_array [0] = 0
    7174 
    7175   ;
    7176   return 0;
    7177 }
    7178 _ACEOF
    7179 rm -f conftest.$ac_objext
    7180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7181   (eval $ac_compile) 2>&5
    7182   ac_status=$?
    7183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7184   (exit $ac_status); } &&
    7185          { ac_try='test -s conftest.$ac_objext'
    7186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7187   (eval $ac_try) 2>&5
    7188   ac_status=$?
    7189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7190   (exit $ac_status); }; }; then
    7191   ac_hi=$ac_mid
    7192 else
    7193   echo "$as_me: failed program was:" >&5
    7194 sed 's/^/| /' conftest.$ac_ext >&5
    7195 
    7196 ac_lo=`expr '(' $ac_mid ')' + 1`
    7197 fi
    7198 rm -f conftest.$ac_objext conftest.$ac_ext
    7199 done
    7200 case $ac_lo in
    7201 ?*) ac_cv_sizeof_int=$ac_lo;;
    7202 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
    7203 See \`config.log' for more details." >&5
    7204 echo "$as_me: error: cannot compute sizeof (int), 77
    7205 See \`config.log' for more details." >&2;}
    7206    { (exit 1); exit 1; }; } ;;
    7207 esac
    7208 else
    7209   if test "$cross_compiling" = yes; then
    7210   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
    7211 See \`config.log' for more details." >&5
    7212 echo "$as_me: error: cannot run test program while cross compiling
    7213 See \`config.log' for more details." >&2;}
    7214    { (exit 1); exit 1; }; }
    7215 else
    7216   cat >conftest.$ac_ext <<_ACEOF
    7217 #line $LINENO "configure"
    7218 /* confdefs.h.  */
    7219 _ACEOF
    7220 cat confdefs.h >>conftest.$ac_ext
    7221 cat >>conftest.$ac_ext <<_ACEOF
    7222 /* end confdefs.h.  */
    7223 $ac_includes_default
    7224 long longval () { return (long) (sizeof (int)); }
    7225 unsigned long ulongval () { return (long) (sizeof (int)); }
    7226 #include <stdio.h>
    7227 #include <stdlib.h>
    7228 int
    7229 main ()
    7230 {
    7231 
    7232   FILE *f = fopen ("conftest.val", "w");
    7233   if (! f)
    7234     exit (1);
    7235   if (((long) (sizeof (int))) < 0)
    7236     {
    7237       long i = longval ();
    7238       if (i != ((long) (sizeof (int))))
    7239         exit (1);
    7240       fprintf (f, "%ld\n", i);
    7241     }
    7242   else
    7243     {
    7244       unsigned long i = ulongval ();
    7245       if (i != ((long) (sizeof (int))))
    7246         exit (1);
    7247       fprintf (f, "%lu\n", i);
    7248     }
    7249   exit (ferror (f) || fclose (f) != 0);
    7250 
    7251   ;
    7252   return 0;
    7253 }
    7254 _ACEOF
    7255 rm -f conftest$ac_exeext
    7256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    7257   (eval $ac_link) 2>&5
    7258   ac_status=$?
    7259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7260   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    7261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7262   (eval $ac_try) 2>&5
    7263   ac_status=$?
    7264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7265   (exit $ac_status); }; }; then
    7266   ac_cv_sizeof_int=`cat conftest.val`
    7267 else
    7268   echo "$as_me: program exited with status $ac_status" >&5
    7269 echo "$as_me: failed program was:" >&5
    7270 sed 's/^/| /' conftest.$ac_ext >&5
    7271 
    7272 ( exit $ac_status )
    7273 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
    7274 See \`config.log' for more details." >&5
    7275 echo "$as_me: error: cannot compute sizeof (int), 77
    7276 See \`config.log' for more details." >&2;}
    7277    { (exit 1); exit 1; }; }
    7278 fi
    7279 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    7280 fi
    7281 fi
    7282 rm -f conftest.val
    7283 else
    7284   ac_cv_sizeof_int=0
    7285 fi
    7286 fi
    7287 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
    7288 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
    7289 cat >>confdefs.h <<_ACEOF
    7290 #define SIZEOF_INT $ac_cv_sizeof_int
    7291 _ACEOF
    7292 
    7293 
    7294 echo "$as_me:$LINENO: checking for long" >&5
    7295 echo $ECHO_N "checking for long... $ECHO_C" >&6
    7296 if test "${ac_cv_type_long+set}" = set; then
    7297   echo $ECHO_N "(cached) $ECHO_C" >&6
    7298 else
    7299   cat >conftest.$ac_ext <<_ACEOF
    7300 #line $LINENO "configure"
    7301 /* confdefs.h.  */
    7302 _ACEOF
    7303 cat confdefs.h >>conftest.$ac_ext
    7304 cat >>conftest.$ac_ext <<_ACEOF
    7305 /* end confdefs.h.  */
    7306 $ac_includes_default
    7307 int
    7308 main ()
    7309 {
    7310 if ((long *) 0)
    7311   return 0;
    7312 if (sizeof (long))
    7313   return 0;
    7314   ;
    7315   return 0;
    7316 }
    7317 _ACEOF
    7318 rm -f conftest.$ac_objext
    7319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7320   (eval $ac_compile) 2>&5
    7321   ac_status=$?
    7322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7323   (exit $ac_status); } &&
    7324          { ac_try='test -s conftest.$ac_objext'
    7325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7326   (eval $ac_try) 2>&5
    7327   ac_status=$?
    7328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7329   (exit $ac_status); }; }; then
    7330   ac_cv_type_long=yes
    7331 else
    7332   echo "$as_me: failed program was:" >&5
    7333 sed 's/^/| /' conftest.$ac_ext >&5
    7334 
    7335 ac_cv_type_long=no
    7336 fi
    7337 rm -f conftest.$ac_objext conftest.$ac_ext
    7338 fi
    7339 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
    7340 echo "${ECHO_T}$ac_cv_type_long" >&6
    7341 
    7342 echo "$as_me:$LINENO: checking size of long" >&5
    7343 echo $ECHO_N "checking size of long... $ECHO_C" >&6
    7344 if test "${ac_cv_sizeof_long+set}" = set; then
    7345   echo $ECHO_N "(cached) $ECHO_C" >&6
    7346 else
    7347   if test "$ac_cv_type_long" = yes; then
    7348   # The cast to unsigned long works around a bug in the HP C Compiler
    7349   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
    7350   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
    7351   # This bug is HP SR number 8606223364.
    7352   if test "$cross_compiling" = yes; then
    7353   # Depending upon the size, compute the lo and hi bounds.
    7354 cat >conftest.$ac_ext <<_ACEOF
    7355 #line $LINENO "configure"
    7356 /* confdefs.h.  */
    7357 _ACEOF
    7358 cat confdefs.h >>conftest.$ac_ext
    7359 cat >>conftest.$ac_ext <<_ACEOF
    7360 /* end confdefs.h.  */
    7361 $ac_includes_default
    7362 int
    7363 main ()
    7364 {
    7365 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
    7366 test_array [0] = 0
    7367 
    7368   ;
    7369   return 0;
    7370 }
    7371 _ACEOF
    7372 rm -f conftest.$ac_objext
    7373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7374   (eval $ac_compile) 2>&5
    7375   ac_status=$?
    7376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7377   (exit $ac_status); } &&
    7378          { ac_try='test -s conftest.$ac_objext'
    7379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7380   (eval $ac_try) 2>&5
    7381   ac_status=$?
    7382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7383   (exit $ac_status); }; }; then
    7384   ac_lo=0 ac_mid=0
    7385   while :; do
    7386     cat >conftest.$ac_ext <<_ACEOF
    7387 #line $LINENO "configure"
    7388 /* confdefs.h.  */
    7389 _ACEOF
    7390 cat confdefs.h >>conftest.$ac_ext
    7391 cat >>conftest.$ac_ext <<_ACEOF
    7392 /* end confdefs.h.  */
    7393 $ac_includes_default
    7394 int
    7395 main ()
    7396 {
    7397 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
    7398 test_array [0] = 0
    7399 
    7400   ;
    7401   return 0;
    7402 }
    7403 _ACEOF
    7404 rm -f conftest.$ac_objext
    7405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7406   (eval $ac_compile) 2>&5
    7407   ac_status=$?
    7408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7409   (exit $ac_status); } &&
    7410          { ac_try='test -s conftest.$ac_objext'
    7411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7412   (eval $ac_try) 2>&5
    7413   ac_status=$?
    7414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7415   (exit $ac_status); }; }; then
    7416   ac_hi=$ac_mid; break
    7417 else
    7418   echo "$as_me: failed program was:" >&5
    7419 sed 's/^/| /' conftest.$ac_ext >&5
    7420 
    7421 ac_lo=`expr $ac_mid + 1`
    7422                     if test $ac_lo -le $ac_mid; then
    7423                       ac_lo= ac_hi=
    7424                       break
    7425                     fi
    7426                     ac_mid=`expr 2 '*' $ac_mid + 1`
    7427 fi
    7428 rm -f conftest.$ac_objext conftest.$ac_ext
    7429   done
    7430 else
    7431   echo "$as_me: failed program was:" >&5
    7432 sed 's/^/| /' conftest.$ac_ext >&5
    7433 
    7434 cat >conftest.$ac_ext <<_ACEOF
    7435 #line $LINENO "configure"
    7436 /* confdefs.h.  */
    7437 _ACEOF
    7438 cat confdefs.h >>conftest.$ac_ext
    7439 cat >>conftest.$ac_ext <<_ACEOF
    7440 /* end confdefs.h.  */
    7441 $ac_includes_default
    7442 int
    7443 main ()
    7444 {
    7445 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
    7446 test_array [0] = 0
    7447 
    7448   ;
    7449   return 0;
    7450 }
    7451 _ACEOF
    7452 rm -f conftest.$ac_objext
    7453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7454   (eval $ac_compile) 2>&5
    7455   ac_status=$?
    7456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7457   (exit $ac_status); } &&
    7458          { ac_try='test -s conftest.$ac_objext'
    7459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7460   (eval $ac_try) 2>&5
    7461   ac_status=$?
    7462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7463   (exit $ac_status); }; }; then
    7464   ac_hi=-1 ac_mid=-1
    7465   while :; do
    7466     cat >conftest.$ac_ext <<_ACEOF
    7467 #line $LINENO "configure"
    7468 /* confdefs.h.  */
    7469 _ACEOF
    7470 cat confdefs.h >>conftest.$ac_ext
    7471 cat >>conftest.$ac_ext <<_ACEOF
    7472 /* end confdefs.h.  */
    7473 $ac_includes_default
    7474 int
    7475 main ()
    7476 {
    7477 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
    7478 test_array [0] = 0
    7479 
    7480   ;
    7481   return 0;
    7482 }
    7483 _ACEOF
    7484 rm -f conftest.$ac_objext
    7485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7486   (eval $ac_compile) 2>&5
    7487   ac_status=$?
    7488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7489   (exit $ac_status); } &&
    7490          { ac_try='test -s conftest.$ac_objext'
    7491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7492   (eval $ac_try) 2>&5
    7493   ac_status=$?
    7494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7495   (exit $ac_status); }; }; then
    7496   ac_lo=$ac_mid; break
    7497 else
    7498   echo "$as_me: failed program was:" >&5
    7499 sed 's/^/| /' conftest.$ac_ext >&5
    7500 
    7501 ac_hi=`expr '(' $ac_mid ')' - 1`
    7502                        if test $ac_mid -le $ac_hi; then
    7503                          ac_lo= ac_hi=
    7504                          break
    7505                        fi
    7506                        ac_mid=`expr 2 '*' $ac_mid`
    7507 fi
    7508 rm -f conftest.$ac_objext conftest.$ac_ext
    7509   done
    7510 else
    7511   echo "$as_me: failed program was:" >&5
    7512 sed 's/^/| /' conftest.$ac_ext >&5
    7513 
    7514 ac_lo= ac_hi=
    7515 fi
    7516 rm -f conftest.$ac_objext conftest.$ac_ext
    7517 fi
    7518 rm -f conftest.$ac_objext conftest.$ac_ext
    7519 # Binary search between lo and hi bounds.
    7520 while test "x$ac_lo" != "x$ac_hi"; do
    7521   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
    7522   cat >conftest.$ac_ext <<_ACEOF
    7523 #line $LINENO "configure"
    7524 /* confdefs.h.  */
    7525 _ACEOF
    7526 cat confdefs.h >>conftest.$ac_ext
    7527 cat >>conftest.$ac_ext <<_ACEOF
    7528 /* end confdefs.h.  */
    7529 $ac_includes_default
    7530 int
    7531 main ()
    7532 {
    7533 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
    7534 test_array [0] = 0
    7535 
    7536   ;
    7537   return 0;
    7538 }
    7539 _ACEOF
    7540 rm -f conftest.$ac_objext
    7541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7542   (eval $ac_compile) 2>&5
    7543   ac_status=$?
    7544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7545   (exit $ac_status); } &&
    7546          { ac_try='test -s conftest.$ac_objext'
    7547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7548   (eval $ac_try) 2>&5
    7549   ac_status=$?
    7550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7551   (exit $ac_status); }; }; then
    7552   ac_hi=$ac_mid
    7553 else
    7554   echo "$as_me: failed program was:" >&5
    7555 sed 's/^/| /' conftest.$ac_ext >&5
    7556 
    7557 ac_lo=`expr '(' $ac_mid ')' + 1`
    7558 fi
    7559 rm -f conftest.$ac_objext conftest.$ac_ext
    7560 done
    7561 case $ac_lo in
    7562 ?*) ac_cv_sizeof_long=$ac_lo;;
    7563 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
    7564 See \`config.log' for more details." >&5
    7565 echo "$as_me: error: cannot compute sizeof (long), 77
    7566 See \`config.log' for more details." >&2;}
    7567    { (exit 1); exit 1; }; } ;;
    7568 esac
    7569 else
    7570   if test "$cross_compiling" = yes; then
    7571   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
    7572 See \`config.log' for more details." >&5
    7573 echo "$as_me: error: cannot run test program while cross compiling
    7574 See \`config.log' for more details." >&2;}
    7575    { (exit 1); exit 1; }; }
    7576 else
    7577   cat >conftest.$ac_ext <<_ACEOF
    7578 #line $LINENO "configure"
    7579 /* confdefs.h.  */
    7580 _ACEOF
    7581 cat confdefs.h >>conftest.$ac_ext
    7582 cat >>conftest.$ac_ext <<_ACEOF
    7583 /* end confdefs.h.  */
    7584 $ac_includes_default
    7585 long longval () { return (long) (sizeof (long)); }
    7586 unsigned long ulongval () { return (long) (sizeof (long)); }
    7587 #include <stdio.h>
    7588 #include <stdlib.h>
    7589 int
    7590 main ()
    7591 {
    7592 
    7593   FILE *f = fopen ("conftest.val", "w");
    7594   if (! f)
    7595     exit (1);
    7596   if (((long) (sizeof (long))) < 0)
    7597     {
    7598       long i = longval ();
    7599       if (i != ((long) (sizeof (long))))
    7600         exit (1);
    7601       fprintf (f, "%ld\n", i);
    7602     }
    7603   else
    7604     {
    7605       unsigned long i = ulongval ();
    7606       if (i != ((long) (sizeof (long))))
    7607         exit (1);
    7608       fprintf (f, "%lu\n", i);
    7609     }
    7610   exit (ferror (f) || fclose (f) != 0);
    7611 
    7612   ;
    7613   return 0;
    7614 }
    7615 _ACEOF
    7616 rm -f conftest$ac_exeext
    7617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    7618   (eval $ac_link) 2>&5
    7619   ac_status=$?
    7620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7621   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    7622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7623   (eval $ac_try) 2>&5
    7624   ac_status=$?
    7625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7626   (exit $ac_status); }; }; then
    7627   ac_cv_sizeof_long=`cat conftest.val`
    7628 else
    7629   echo "$as_me: program exited with status $ac_status" >&5
    7630 echo "$as_me: failed program was:" >&5
    7631 sed 's/^/| /' conftest.$ac_ext >&5
    7632 
    7633 ( exit $ac_status )
    7634 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
    7635 See \`config.log' for more details." >&5
    7636 echo "$as_me: error: cannot compute sizeof (long), 77
    7637 See \`config.log' for more details." >&2;}
    7638    { (exit 1); exit 1; }; }
    7639 fi
    7640 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    7641 fi
    7642 fi
    7643 rm -f conftest.val
    7644 else
    7645   ac_cv_sizeof_long=0
    7646 fi
    7647 fi
    7648 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
    7649 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
    7650 cat >>confdefs.h <<_ACEOF
    7651 #define SIZEOF_LONG $ac_cv_sizeof_long
    7652 _ACEOF
    7653 
    7654 
    7655 echo "$as_me:$LINENO: checking for void*" >&5
    7656 echo $ECHO_N "checking for void*... $ECHO_C" >&6
    7657 if test "${ac_cv_type_voidp+set}" = set; then
    7658   echo $ECHO_N "(cached) $ECHO_C" >&6
    7659 else
    7660   cat >conftest.$ac_ext <<_ACEOF
    7661 #line $LINENO "configure"
    7662 /* confdefs.h.  */
    7663 _ACEOF
    7664 cat confdefs.h >>conftest.$ac_ext
    7665 cat >>conftest.$ac_ext <<_ACEOF
    7666 /* end confdefs.h.  */
    7667 $ac_includes_default
    7668 int
    7669 main ()
    7670 {
    7671 if ((void* *) 0)
    7672   return 0;
    7673 if (sizeof (void*))
    7674   return 0;
    7675   ;
    7676   return 0;
    7677 }
    7678 _ACEOF
    7679 rm -f conftest.$ac_objext
    7680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7681   (eval $ac_compile) 2>&5
    7682   ac_status=$?
    7683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7684   (exit $ac_status); } &&
    7685          { ac_try='test -s conftest.$ac_objext'
    7686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7687   (eval $ac_try) 2>&5
    7688   ac_status=$?
    7689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7690   (exit $ac_status); }; }; then
    7691   ac_cv_type_voidp=yes
    7692 else
    7693   echo "$as_me: failed program was:" >&5
    7694 sed 's/^/| /' conftest.$ac_ext >&5
    7695 
    7696 ac_cv_type_voidp=no
    7697 fi
    7698 rm -f conftest.$ac_objext conftest.$ac_ext
    7699 fi
    7700 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
    7701 echo "${ECHO_T}$ac_cv_type_voidp" >&6
    7702 
    7703 echo "$as_me:$LINENO: checking size of void*" >&5
    7704 echo $ECHO_N "checking size of void*... $ECHO_C" >&6
    7705 if test "${ac_cv_sizeof_voidp+set}" = set; then
    7706   echo $ECHO_N "(cached) $ECHO_C" >&6
    7707 else
    7708   if test "$ac_cv_type_voidp" = yes; then
    7709   # The cast to unsigned long works around a bug in the HP C Compiler
    7710   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
    7711   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
    7712   # This bug is HP SR number 8606223364.
    7713   if test "$cross_compiling" = yes; then
    7714   # Depending upon the size, compute the lo and hi bounds.
    7715 cat >conftest.$ac_ext <<_ACEOF
    7716 #line $LINENO "configure"
    7717 /* confdefs.h.  */
    7718 _ACEOF
    7719 cat confdefs.h >>conftest.$ac_ext
    7720 cat >>conftest.$ac_ext <<_ACEOF
    7721 /* end confdefs.h.  */
    7722 $ac_includes_default
    7723 int
    7724 main ()
    7725 {
    7726 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
    7727 test_array [0] = 0
    7728 
    7729   ;
    7730   return 0;
    7731 }
    7732 _ACEOF
    7733 rm -f conftest.$ac_objext
    7734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7735   (eval $ac_compile) 2>&5
    7736   ac_status=$?
    7737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7738   (exit $ac_status); } &&
    7739          { ac_try='test -s conftest.$ac_objext'
    7740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7741   (eval $ac_try) 2>&5
    7742   ac_status=$?
    7743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7744   (exit $ac_status); }; }; then
    7745   ac_lo=0 ac_mid=0
    7746   while :; do
    7747     cat >conftest.$ac_ext <<_ACEOF
    7748 #line $LINENO "configure"
    7749 /* confdefs.h.  */
    7750 _ACEOF
    7751 cat confdefs.h >>conftest.$ac_ext
    7752 cat >>conftest.$ac_ext <<_ACEOF
    7753 /* end confdefs.h.  */
    7754 $ac_includes_default
    7755 int
    7756 main ()
    7757 {
    7758 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
    7759 test_array [0] = 0
    7760 
    7761   ;
    7762   return 0;
    7763 }
    7764 _ACEOF
    7765 rm -f conftest.$ac_objext
    7766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7767   (eval $ac_compile) 2>&5
    7768   ac_status=$?
    7769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7770   (exit $ac_status); } &&
    7771          { ac_try='test -s conftest.$ac_objext'
    7772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7773   (eval $ac_try) 2>&5
    7774   ac_status=$?
    7775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7776   (exit $ac_status); }; }; then
    7777   ac_hi=$ac_mid; break
    7778 else
    7779   echo "$as_me: failed program was:" >&5
    7780 sed 's/^/| /' conftest.$ac_ext >&5
    7781 
    7782 ac_lo=`expr $ac_mid + 1`
    7783                     if test $ac_lo -le $ac_mid; then
    7784                       ac_lo= ac_hi=
    7785                       break
    7786                     fi
    7787                     ac_mid=`expr 2 '*' $ac_mid + 1`
    7788 fi
    7789 rm -f conftest.$ac_objext conftest.$ac_ext
    7790   done
    7791 else
    7792   echo "$as_me: failed program was:" >&5
    7793 sed 's/^/| /' conftest.$ac_ext >&5
    7794 
    7795 cat >conftest.$ac_ext <<_ACEOF
    7796 #line $LINENO "configure"
    7797 /* confdefs.h.  */
    7798 _ACEOF
    7799 cat confdefs.h >>conftest.$ac_ext
    7800 cat >>conftest.$ac_ext <<_ACEOF
    7801 /* end confdefs.h.  */
    7802 $ac_includes_default
    7803 int
    7804 main ()
    7805 {
    7806 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
    7807 test_array [0] = 0
    7808 
    7809   ;
    7810   return 0;
    7811 }
    7812 _ACEOF
    7813 rm -f conftest.$ac_objext
    7814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7815   (eval $ac_compile) 2>&5
    7816   ac_status=$?
    7817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7818   (exit $ac_status); } &&
    7819          { ac_try='test -s conftest.$ac_objext'
    7820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7821   (eval $ac_try) 2>&5
    7822   ac_status=$?
    7823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7824   (exit $ac_status); }; }; then
    7825   ac_hi=-1 ac_mid=-1
    7826   while :; do
    7827     cat >conftest.$ac_ext <<_ACEOF
    7828 #line $LINENO "configure"
    7829 /* confdefs.h.  */
    7830 _ACEOF
    7831 cat confdefs.h >>conftest.$ac_ext
    7832 cat >>conftest.$ac_ext <<_ACEOF
    7833 /* end confdefs.h.  */
    7834 $ac_includes_default
    7835 int
    7836 main ()
    7837 {
    7838 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
    7839 test_array [0] = 0
    7840 
    7841   ;
    7842   return 0;
    7843 }
    7844 _ACEOF
    7845 rm -f conftest.$ac_objext
    7846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7847   (eval $ac_compile) 2>&5
    7848   ac_status=$?
    7849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7850   (exit $ac_status); } &&
    7851          { ac_try='test -s conftest.$ac_objext'
    7852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7853   (eval $ac_try) 2>&5
    7854   ac_status=$?
    7855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7856   (exit $ac_status); }; }; then
    7857   ac_lo=$ac_mid; break
    7858 else
    7859   echo "$as_me: failed program was:" >&5
    7860 sed 's/^/| /' conftest.$ac_ext >&5
    7861 
    7862 ac_hi=`expr '(' $ac_mid ')' - 1`
    7863                        if test $ac_mid -le $ac_hi; then
    7864                          ac_lo= ac_hi=
    7865                          break
    7866                        fi
    7867                        ac_mid=`expr 2 '*' $ac_mid`
    7868 fi
    7869 rm -f conftest.$ac_objext conftest.$ac_ext
    7870   done
    7871 else
    7872   echo "$as_me: failed program was:" >&5
    7873 sed 's/^/| /' conftest.$ac_ext >&5
    7874 
    7875 ac_lo= ac_hi=
    7876 fi
    7877 rm -f conftest.$ac_objext conftest.$ac_ext
    7878 fi
    7879 rm -f conftest.$ac_objext conftest.$ac_ext
    7880 # Binary search between lo and hi bounds.
    7881 while test "x$ac_lo" != "x$ac_hi"; do
    7882   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
    7883   cat >conftest.$ac_ext <<_ACEOF
    7884 #line $LINENO "configure"
    7885 /* confdefs.h.  */
    7886 _ACEOF
    7887 cat confdefs.h >>conftest.$ac_ext
    7888 cat >>conftest.$ac_ext <<_ACEOF
    7889 /* end confdefs.h.  */
    7890 $ac_includes_default
    7891 int
    7892 main ()
    7893 {
    7894 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
    7895 test_array [0] = 0
    7896 
    7897   ;
    7898   return 0;
    7899 }
    7900 _ACEOF
    7901 rm -f conftest.$ac_objext
    7902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7903   (eval $ac_compile) 2>&5
    7904   ac_status=$?
    7905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7906   (exit $ac_status); } &&
    7907          { ac_try='test -s conftest.$ac_objext'
    7908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7909   (eval $ac_try) 2>&5
    7910   ac_status=$?
    7911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7912   (exit $ac_status); }; }; then
    7913   ac_hi=$ac_mid
    7914 else
    7915   echo "$as_me: failed program was:" >&5
    7916 sed 's/^/| /' conftest.$ac_ext >&5
    7917 
    7918 ac_lo=`expr '(' $ac_mid ')' + 1`
    7919 fi
    7920 rm -f conftest.$ac_objext conftest.$ac_ext
    7921 done
    7922 case $ac_lo in
    7923 ?*) ac_cv_sizeof_voidp=$ac_lo;;
    7924 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
    7925 See \`config.log' for more details." >&5
    7926 echo "$as_me: error: cannot compute sizeof (void*), 77
    7927 See \`config.log' for more details." >&2;}
    7928    { (exit 1); exit 1; }; } ;;
    7929 esac
    7930 else
    7931   if test "$cross_compiling" = yes; then
    7932   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
    7933 See \`config.log' for more details." >&5
    7934 echo "$as_me: error: cannot run test program while cross compiling
    7935 See \`config.log' for more details." >&2;}
    7936    { (exit 1); exit 1; }; }
    7937 else
    7938   cat >conftest.$ac_ext <<_ACEOF
    7939 #line $LINENO "configure"
    7940 /* confdefs.h.  */
    7941 _ACEOF
    7942 cat confdefs.h >>conftest.$ac_ext
    7943 cat >>conftest.$ac_ext <<_ACEOF
    7944 /* end confdefs.h.  */
    7945 $ac_includes_default
    7946 long longval () { return (long) (sizeof (void*)); }
    7947 unsigned long ulongval () { return (long) (sizeof (void*)); }
    7948 #include <stdio.h>
    7949 #include <stdlib.h>
    7950 int
    7951 main ()
    7952 {
    7953 
    7954   FILE *f = fopen ("conftest.val", "w");
    7955   if (! f)
    7956     exit (1);
    7957   if (((long) (sizeof (void*))) < 0)
    7958     {
    7959       long i = longval ();
    7960       if (i != ((long) (sizeof (void*))))
    7961         exit (1);
    7962       fprintf (f, "%ld\n", i);
    7963     }
    7964   else
    7965     {
    7966       unsigned long i = ulongval ();
    7967       if (i != ((long) (sizeof (void*))))
    7968         exit (1);
    7969       fprintf (f, "%lu\n", i);
    7970     }
    7971   exit (ferror (f) || fclose (f) != 0);
    7972 
    7973   ;
    7974   return 0;
    7975 }
    7976 _ACEOF
    7977 rm -f conftest$ac_exeext
    7978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    7979   (eval $ac_link) 2>&5
    7980   ac_status=$?
    7981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7982   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    7983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7984   (eval $ac_try) 2>&5
    7985   ac_status=$?
    7986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7987   (exit $ac_status); }; }; then
    7988   ac_cv_sizeof_voidp=`cat conftest.val`
    7989 else
    7990   echo "$as_me: program exited with status $ac_status" >&5
    7991 echo "$as_me: failed program was:" >&5
    7992 sed 's/^/| /' conftest.$ac_ext >&5
    7993 
    7994 ( exit $ac_status )
    7995 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
    7996 See \`config.log' for more details." >&5
    7997 echo "$as_me: error: cannot compute sizeof (void*), 77
    7998 See \`config.log' for more details." >&2;}
    7999    { (exit 1); exit 1; }; }
    8000 fi
    8001 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    8002 fi
    8003 fi
    8004 rm -f conftest.val
    8005 else
    8006   ac_cv_sizeof_voidp=0
    8007 fi
    8008 fi
    8009 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
    8010 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
    8011 cat >>confdefs.h <<_ACEOF
    8012 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
    8013 _ACEOF
    8014 
    8015 
    8016 echo "$as_me:$LINENO: checking for double" >&5
    8017 echo $ECHO_N "checking for double... $ECHO_C" >&6
    8018 if test "${ac_cv_type_double+set}" = set; then
    8019   echo $ECHO_N "(cached) $ECHO_C" >&6
    8020 else
    8021   cat >conftest.$ac_ext <<_ACEOF
    8022 #line $LINENO "configure"
    8023 /* confdefs.h.  */
    8024 _ACEOF
    8025 cat confdefs.h >>conftest.$ac_ext
    8026 cat >>conftest.$ac_ext <<_ACEOF
    8027 /* end confdefs.h.  */
    8028 $ac_includes_default
    8029 int
    8030 main ()
    8031 {
    8032 if ((double *) 0)
    8033   return 0;
    8034 if (sizeof (double))
    8035   return 0;
    8036   ;
    8037   return 0;
    8038 }
    8039 _ACEOF
    8040 rm -f conftest.$ac_objext
    8041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    8042   (eval $ac_compile) 2>&5
    8043   ac_status=$?
    8044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8045   (exit $ac_status); } &&
    8046          { ac_try='test -s conftest.$ac_objext'
    8047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8048   (eval $ac_try) 2>&5
    8049   ac_status=$?
    8050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8051   (exit $ac_status); }; }; then
    8052   ac_cv_type_double=yes
    8053 else
    8054   echo "$as_me: failed program was:" >&5
    8055 sed 's/^/| /' conftest.$ac_ext >&5
    8056 
    8057 ac_cv_type_double=no
    8058 fi
    8059 rm -f conftest.$ac_objext conftest.$ac_ext
    8060 fi
    8061 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
    8062 echo "${ECHO_T}$ac_cv_type_double" >&6
    8063 
    8064 echo "$as_me:$LINENO: checking size of double" >&5
    8065 echo $ECHO_N "checking size of double... $ECHO_C" >&6
    8066 if test "${ac_cv_sizeof_double+set}" = set; then
    8067   echo $ECHO_N "(cached) $ECHO_C" >&6
    8068 else
    8069   if test "$ac_cv_type_double" = yes; then
    8070   # The cast to unsigned long works around a bug in the HP C Compiler
    8071   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
    8072   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
    8073   # This bug is HP SR number 8606223364.
    8074   if test "$cross_compiling" = yes; then
    8075   # Depending upon the size, compute the lo and hi bounds.
    8076 cat >conftest.$ac_ext <<_ACEOF
    8077 #line $LINENO "configure"
    8078 /* confdefs.h.  */
    8079 _ACEOF
    8080 cat confdefs.h >>conftest.$ac_ext
    8081 cat >>conftest.$ac_ext <<_ACEOF
    8082 /* end confdefs.h.  */
    8083 $ac_includes_default
    8084 int
    8085 main ()
    8086 {
    8087 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
    8088 test_array [0] = 0
    8089 
    8090   ;
    8091   return 0;
    8092 }
    8093 _ACEOF
    8094 rm -f conftest.$ac_objext
    8095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    8096   (eval $ac_compile) 2>&5
    8097   ac_status=$?
    8098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8099   (exit $ac_status); } &&
    8100          { ac_try='test -s conftest.$ac_objext'
    8101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8102   (eval $ac_try) 2>&5
    8103   ac_status=$?
    8104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8105   (exit $ac_status); }; }; then
    8106   ac_lo=0 ac_mid=0
    8107   while :; do
    8108     cat >conftest.$ac_ext <<_ACEOF
    8109 #line $LINENO "configure"
    8110 /* confdefs.h.  */
    8111 _ACEOF
    8112 cat confdefs.h >>conftest.$ac_ext
    8113 cat >>conftest.$ac_ext <<_ACEOF
    8114 /* end confdefs.h.  */
    8115 $ac_includes_default
    8116 int
    8117 main ()
    8118 {
    8119 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
    8120 test_array [0] = 0
    8121 
    8122   ;
    8123   return 0;
    8124 }
    8125 _ACEOF
    8126 rm -f conftest.$ac_objext
    8127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    8128   (eval $ac_compile) 2>&5
    8129   ac_status=$?
    8130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8131   (exit $ac_status); } &&
    8132          { ac_try='test -s conftest.$ac_objext'
    8133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8134   (eval $ac_try) 2>&5
    8135   ac_status=$?
    8136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8137   (exit $ac_status); }; }; then
    8138   ac_hi=$ac_mid; break
    8139 else
    8140   echo "$as_me: failed program was:" >&5
    8141 sed 's/^/| /' conftest.$ac_ext >&5
    8142 
    8143 ac_lo=`expr $ac_mid + 1`
    8144                     if test $ac_lo -le $ac_mid; then
    8145                       ac_lo= ac_hi=
    8146                       break
    8147                     fi
    8148                     ac_mid=`expr 2 '*' $ac_mid + 1`
    8149 fi
    8150 rm -f conftest.$ac_objext conftest.$ac_ext
    8151   done
    8152 else
    8153   echo "$as_me: failed program was:" >&5
    8154 sed 's/^/| /' conftest.$ac_ext >&5
    8155 
    8156 cat >conftest.$ac_ext <<_ACEOF
    8157 #line $LINENO "configure"
    8158 /* confdefs.h.  */
    8159 _ACEOF
    8160 cat confdefs.h >>conftest.$ac_ext
    8161 cat >>conftest.$ac_ext <<_ACEOF
    8162 /* end confdefs.h.  */
    8163 $ac_includes_default
    8164 int
    8165 main ()
    8166 {
    8167 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
    8168 test_array [0] = 0
    8169 
    8170   ;
    8171   return 0;
    8172 }
    8173 _ACEOF
    8174 rm -f conftest.$ac_objext
    8175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    8176   (eval $ac_compile) 2>&5
    8177   ac_status=$?
    8178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8179   (exit $ac_status); } &&
    8180          { ac_try='test -s conftest.$ac_objext'
    8181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8182   (eval $ac_try) 2>&5
    8183   ac_status=$?
    8184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8185   (exit $ac_status); }; }; then
    8186   ac_hi=-1 ac_mid=-1
    8187   while :; do
    8188     cat >conftest.$ac_ext <<_ACEOF
    8189 #line $LINENO "configure"
    8190 /* confdefs.h.  */
    8191 _ACEOF
    8192 cat confdefs.h >>conftest.$ac_ext
    8193 cat >>conftest.$ac_ext <<_ACEOF
    8194 /* end confdefs.h.  */
    8195 $ac_includes_default
    8196 int
    8197 main ()
    8198 {
    8199 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
    8200 test_array [0] = 0
    8201 
    8202   ;
    8203   return 0;
    8204 }
    8205 _ACEOF
    8206 rm -f conftest.$ac_objext
    8207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    8208   (eval $ac_compile) 2>&5
    8209   ac_status=$?
    8210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8211   (exit $ac_status); } &&
    8212          { ac_try='test -s conftest.$ac_objext'
    8213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8214   (eval $ac_try) 2>&5
    8215   ac_status=$?
    8216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8217   (exit $ac_status); }; }; then
    8218   ac_lo=$ac_mid; break
    8219 else
    8220   echo "$as_me: failed program was:" >&5
    8221 sed 's/^/| /' conftest.$ac_ext >&5
    8222 
    8223 ac_hi=`expr '(' $ac_mid ')' - 1`
    8224                        if test $ac_mid -le $ac_hi; then
    8225                          ac_lo= ac_hi=
    8226                          break
    8227                        fi
    8228                        ac_mid=`expr 2 '*' $ac_mid`
    8229 fi
    8230 rm -f conftest.$ac_objext conftest.$ac_ext
    8231   done
    8232 else
    8233   echo "$as_me: failed program was:" >&5
    8234 sed 's/^/| /' conftest.$ac_ext >&5
    8235 
    8236 ac_lo= ac_hi=
    8237 fi
    8238 rm -f conftest.$ac_objext conftest.$ac_ext
    8239 fi
    8240 rm -f conftest.$ac_objext conftest.$ac_ext
    8241 # Binary search between lo and hi bounds.
    8242 while test "x$ac_lo" != "x$ac_hi"; do
    8243   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
    8244   cat >conftest.$ac_ext <<_ACEOF
    8245 #line $LINENO "configure"
    8246 /* confdefs.h.  */
    8247 _ACEOF
    8248 cat confdefs.h >>conftest.$ac_ext
    8249 cat >>conftest.$ac_ext <<_ACEOF
    8250 /* end confdefs.h.  */
    8251 $ac_includes_default
    8252 int
    8253 main ()
    8254 {
    8255 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
    8256 test_array [0] = 0
    8257 
    8258   ;
    8259   return 0;
    8260 }
    8261 _ACEOF
    8262 rm -f conftest.$ac_objext
    8263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    8264   (eval $ac_compile) 2>&5
    8265   ac_status=$?
    8266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8267   (exit $ac_status); } &&
    8268          { ac_try='test -s conftest.$ac_objext'
    8269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8270   (eval $ac_try) 2>&5
    8271   ac_status=$?
    8272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8273   (exit $ac_status); }; }; then
    8274   ac_hi=$ac_mid
    8275 else
    8276   echo "$as_me: failed program was:" >&5
    8277 sed 's/^/| /' conftest.$ac_ext >&5
    8278 
    8279 ac_lo=`expr '(' $ac_mid ')' + 1`
    8280 fi
    8281 rm -f conftest.$ac_objext conftest.$ac_ext
    8282 done
    8283 case $ac_lo in
    8284 ?*) ac_cv_sizeof_double=$ac_lo;;
    8285 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
    8286 See \`config.log' for more details." >&5
    8287 echo "$as_me: error: cannot compute sizeof (double), 77
    8288 See \`config.log' for more details." >&2;}
    8289    { (exit 1); exit 1; }; } ;;
    8290 esac
    8291 else
    8292   if test "$cross_compiling" = yes; then
    8293   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
    8294 See \`config.log' for more details." >&5
    8295 echo "$as_me: error: cannot run test program while cross compiling
    8296 See \`config.log' for more details." >&2;}
    8297    { (exit 1); exit 1; }; }
    8298 else
    8299   cat >conftest.$ac_ext <<_ACEOF
    8300 #line $LINENO "configure"
    8301 /* confdefs.h.  */
    8302 _ACEOF
    8303 cat confdefs.h >>conftest.$ac_ext
    8304 cat >>conftest.$ac_ext <<_ACEOF
    8305 /* end confdefs.h.  */
    8306 $ac_includes_default
    8307 long longval () { return (long) (sizeof (double)); }
    8308 unsigned long ulongval () { return (long) (sizeof (double)); }
    8309 #include <stdio.h>
    8310 #include <stdlib.h>
    8311 int
    8312 main ()
    8313 {
    8314 
    8315   FILE *f = fopen ("conftest.val", "w");
    8316   if (! f)
    8317     exit (1);
    8318   if (((long) (sizeof (double))) < 0)
    8319     {
    8320       long i = longval ();
    8321       if (i != ((long) (sizeof (double))))
    8322         exit (1);
    8323       fprintf (f, "%ld\n", i);
    8324     }
    8325   else
    8326     {
    8327       unsigned long i = ulongval ();
    8328       if (i != ((long) (sizeof (double))))
    8329         exit (1);
    8330       fprintf (f, "%lu\n", i);
    8331     }
    8332   exit (ferror (f) || fclose (f) != 0);
    8333 
    8334   ;
    8335   return 0;
    8336 }
    8337 _ACEOF
    8338 rm -f conftest$ac_exeext
    8339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    8340   (eval $ac_link) 2>&5
    8341   ac_status=$?
    8342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8343   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    8344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8345   (eval $ac_try) 2>&5
    8346   ac_status=$?
    8347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8348   (exit $ac_status); }; }; then
    8349   ac_cv_sizeof_double=`cat conftest.val`
    8350 else
    8351   echo "$as_me: program exited with status $ac_status" >&5
    8352 echo "$as_me: failed program was:" >&5
    8353 sed 's/^/| /' conftest.$ac_ext >&5
    8354 
    8355 ( exit $ac_status )
    8356 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
    8357 See \`config.log' for more details." >&5
    8358 echo "$as_me: error: cannot compute sizeof (double), 77
    8359 See \`config.log' for more details." >&2;}
    8360    { (exit 1); exit 1; }; }
    8361 fi
    8362 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    8363 fi
    8364 fi
    8365 rm -f conftest.val
    8366 else
     3646EOF
     3647if { (eval echo configure:3648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3648then
     3649  ac_cv_sizeof_double=`cat conftestval`
     3650else
     3651  echo "configure: failed program was:" >&5
     3652  cat conftest.$ac_ext >&5
     3653  rm -fr conftest*
    83673654  ac_cv_sizeof_double=0
    83683655fi
    8369 fi
    8370 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
    8371 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
    8372 cat >>confdefs.h <<_ACEOF
     3656rm -fr conftest*
     3657fi
     3658
     3659fi
     3660echo "$ac_t""$ac_cv_sizeof_double" 1>&6
     3661cat >> confdefs.h <<EOF
    83733662#define SIZEOF_DOUBLE $ac_cv_sizeof_double
    8374 _ACEOF
    8375 
    8376 
    8377 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
    8378 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
    8379 if test "${ac_cv_c_bigendian+set}" = set; then
    8380   echo $ECHO_N "(cached) $ECHO_C" >&6
    8381 else
    8382   # See if sys/param.h defines the BYTE_ORDER macro.
    8383 cat >conftest.$ac_ext <<_ACEOF
    8384 #line $LINENO "configure"
    8385 /* confdefs.h.  */
    8386 _ACEOF
    8387 cat confdefs.h >>conftest.$ac_ext
    8388 cat >>conftest.$ac_ext <<_ACEOF
    8389 /* end confdefs.h.  */
     3663EOF
     3664
     3665
     3666echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
     3667echo "configure:3668: checking whether byte ordering is bigendian" >&5
     3668if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
     3669  echo $ac_n "(cached) $ac_c" 1>&6
     3670else
     3671  ac_cv_c_bigendian=unknown
     3672# See if sys/param.h defines the BYTE_ORDER macro.
     3673cat > conftest.$ac_ext <<EOF
     3674#line 3675 "configure"
     3675#include "confdefs.h"
    83903676#include <sys/types.h>
    83913677#include <sys/param.h>
    8392 
    8393 int
    8394 main ()
    8395 {
     3678int main() {
     3679
    83963680#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
    83973681 bogus endian macros
    83983682#endif
    8399 
    8400   ;
    8401   return 0;
    8402 }
    8403 _ACEOF
    8404 rm -f conftest.$ac_objext
    8405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    8406   (eval $ac_compile) 2>&5
    8407   ac_status=$?
    8408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8409   (exit $ac_status); } &&
    8410          { ac_try='test -s conftest.$ac_objext'
    8411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8412   (eval $ac_try) 2>&5
    8413   ac_status=$?
    8414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8415   (exit $ac_status); }; }; then
     3683; return 0; }
     3684EOF
     3685if { (eval echo configure:3686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3686  rm -rf conftest*
    84163687  # It does; now see whether it defined to BIG_ENDIAN or not.
    8417 cat >conftest.$ac_ext <<_ACEOF
    8418 #line $LINENO "configure"
    8419 /* confdefs.h.  */
    8420 _ACEOF
    8421 cat confdefs.h >>conftest.$ac_ext
    8422 cat >>conftest.$ac_ext <<_ACEOF
    8423 /* end confdefs.h.  */
     3688cat > conftest.$ac_ext <<EOF
     3689#line 3690 "configure"
     3690#include "confdefs.h"
    84243691#include <sys/types.h>
    84253692#include <sys/param.h>
    8426 
    8427 int
    8428 main ()
    8429 {
     3693int main() {
     3694
    84303695#if BYTE_ORDER != BIG_ENDIAN
    84313696 not big endian
    84323697#endif
    8433 
    8434   ;
    8435   return 0;
    8436 }
    8437 _ACEOF
    8438 rm -f conftest.$ac_objext
    8439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    8440   (eval $ac_compile) 2>&5
    8441   ac_status=$?
    8442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8443   (exit $ac_status); } &&
    8444          { ac_try='test -s conftest.$ac_objext'
    8445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8446   (eval $ac_try) 2>&5
    8447   ac_status=$?
    8448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8449   (exit $ac_status); }; }; then
     3698; return 0; }
     3699EOF
     3700if { (eval echo configure:3701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3701  rm -rf conftest*
    84503702  ac_cv_c_bigendian=yes
    84513703else
    8452   echo "$as_me: failed program was:" >&5
    8453 sed 's/^/| /' conftest.$ac_ext >&5
    8454 
    8455 ac_cv_c_bigendian=no
    8456 fi
    8457 rm -f conftest.$ac_objext conftest.$ac_ext
    8458 else
    8459   echo "$as_me: failed program was:" >&5
    8460 sed 's/^/| /' conftest.$ac_ext >&5
    8461 
    8462 # It does not; compile a test program.
     3704  echo "configure: failed program was:" >&5
     3705  cat conftest.$ac_ext >&5
     3706  rm -rf conftest*
     3707  ac_cv_c_bigendian=no
     3708fi
     3709rm -f conftest*
     3710else
     3711  echo "configure: failed program was:" >&5
     3712  cat conftest.$ac_ext >&5
     3713fi
     3714rm -f conftest*
     3715if test $ac_cv_c_bigendian = unknown; then
    84633716if test "$cross_compiling" = yes; then
    8464   # try to guess the endianness by grepping values into an object file
    8465   ac_cv_c_bigendian=unknown
    8466   cat >conftest.$ac_ext <<_ACEOF
    8467 #line $LINENO "configure"
    8468 /* confdefs.h.  */
    8469 _ACEOF
    8470 cat confdefs.h >>conftest.$ac_ext
    8471 cat >>conftest.$ac_ext <<_ACEOF
    8472 /* end confdefs.h.  */
    8473 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
    8474 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
    8475 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
    8476 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
    8477 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
    8478 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
    8479 int
    8480 main ()
    8481 {
    8482  _ascii (); _ebcdic ();
    8483   ;
    8484   return 0;
    8485 }
    8486 _ACEOF
    8487 rm -f conftest.$ac_objext
    8488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    8489   (eval $ac_compile) 2>&5
    8490   ac_status=$?
    8491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8492   (exit $ac_status); } &&
    8493          { ac_try='test -s conftest.$ac_objext'
    8494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8495   (eval $ac_try) 2>&5
    8496   ac_status=$?
    8497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8498   (exit $ac_status); }; }; then
    8499   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
    8500   ac_cv_c_bigendian=yes
    8501 fi
    8502 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
    8503   if test "$ac_cv_c_bigendian" = unknown; then
    8504     ac_cv_c_bigendian=no
    8505   else
    8506     # finding both strings is unlikely to happen, but who knows?
    8507     ac_cv_c_bigendian=unknown
    8508   fi
    8509 fi
    8510 else
    8511   echo "$as_me: failed program was:" >&5
    8512 sed 's/^/| /' conftest.$ac_ext >&5
    8513 
    8514 fi
    8515 rm -f conftest.$ac_objext conftest.$ac_ext
    8516 else
    8517   cat >conftest.$ac_ext <<_ACEOF
    8518 #line $LINENO "configure"
    8519 /* confdefs.h.  */
    8520 _ACEOF
    8521 cat confdefs.h >>conftest.$ac_ext
    8522 cat >>conftest.$ac_ext <<_ACEOF
    8523 /* end confdefs.h.  */
    8524 int
    8525 main ()
    8526 {
     3717    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
     3718else
     3719  cat > conftest.$ac_ext <<EOF
     3720#line 3721 "configure"
     3721#include "confdefs.h"
     3722main () {
    85273723  /* Are we little or big endian?  From Harbison&Steele.  */
    85283724  union
     
    85343730  exit (u.c[sizeof (long) - 1] == 1);
    85353731}
    8536 _ACEOF
    8537 rm -f conftest$ac_exeext
    8538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    8539   (eval $ac_link) 2>&5
    8540   ac_status=$?
    8541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8542   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    8543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8544   (eval $ac_try) 2>&5
    8545   ac_status=$?
    8546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8547   (exit $ac_status); }; }; then
     3732EOF
     3733if { (eval echo configure:3734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3734then
    85483735  ac_cv_c_bigendian=no
    85493736else
    8550   echo "$as_me: program exited with status $ac_status" >&5
    8551 echo "$as_me: failed program was:" >&5
    8552 sed 's/^/| /' conftest.$ac_ext >&5
    8553 
    8554 ( exit $ac_status )
    8555 ac_cv_c_bigendian=yes
    8556 fi
    8557 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    8558 fi
    8559 fi
    8560 rm -f conftest.$ac_objext conftest.$ac_ext
    8561 fi
    8562 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
    8563 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
    8564 case $ac_cv_c_bigendian in
    8565   yes)
    8566 
    8567 cat >>confdefs.h <<\_ACEOF
     3737  echo "configure: failed program was:" >&5
     3738  cat conftest.$ac_ext >&5
     3739  rm -fr conftest*
     3740  ac_cv_c_bigendian=yes
     3741fi
     3742rm -fr conftest*
     3743fi
     3744
     3745fi
     3746fi
     3747
     3748echo "$ac_t""$ac_cv_c_bigendian" 1>&6
     3749if test $ac_cv_c_bigendian = yes; then
     3750  cat >> confdefs.h <<\EOF
    85683751#define WORDS_BIGENDIAN 1
    8569 _ACEOF
    8570  ;;
    8571   no)
    8572      ;;
    8573   *)
    8574     { { echo "$as_me:$LINENO: error: unknown endianness
    8575 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
    8576 echo "$as_me: error: unknown endianness
    8577 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
    8578    { (exit 1); exit 1; }; } ;;
    8579 esac
     3752EOF
     3753
     3754fi
    85803755
    85813756if test "$ac_cv_sizeof_int" != 4; then
    8582   { { echo "$as_me:$LINENO: error: need int to be four bytes long" >&5
    8583 echo "$as_me: error: need int to be four bytes long" >&2;}
    8584    { (exit 1); exit 1; }; }
     3757  { echo "configure: error: need int to be four bytes long" 1>&2; exit 1; }
    85853758fi
    85863759if test "$ac_cv_sizeof_long" != "$ac_cv_sizeof_voidp"; then
    8587   { { echo "$as_me:$LINENO: error: need equal sizes for long and void*" >&5
    8588 echo "$as_me: error: need equal sizes for long and void*" >&2;}
    8589    { (exit 1); exit 1; }; }
     3760  { echo "configure: error: need equal sizes for long and void*" 1>&2; exit 1; }
    85903761fi
    85913762if test "$ac_cv_sizeof_double" != 8; then
    8592   { { echo "$as_me:$LINENO: error: need double to b 8 bytes long" >&5
    8593 echo "$as_me: error: need double to b 8 bytes long" >&2;}
    8594    { (exit 1); exit 1; }; }
     3763  { echo "configure: error: need double to b 8 bytes long" 1>&2; exit 1; }
    85953764fi
    85963765if test "$ac_cv_sizeof_voidp" != 4 && test "$ac_cv_sizeof_voidp" != 8; then
    8597   { { echo "$as_me:$LINENO: error: need void* to be 4 or 8 bytes long" >&5
    8598 echo "$as_me: error: need void* to be 4 or 8 bytes long" >&2;}
    8599    { (exit 1); exit 1; }; }
     3766  { echo "configure: error: need void* to be 4 or 8 bytes long" 1>&2; exit 1; }
    86003767fi
    86013768if test "$ac_cv_sizeof_voidp" != 4; then
    86023769  DEFS="-UOM_NDEBUG"
    8603 
    8604 fi
    8605 
     3770 
     3771fi
    86063772
    86073773# Check whether --with-rootdir or --without-rootdir was given.
    86083774if test "${with_rootdir+set}" = set; then
    86093775  withval="$with_rootdir"
    8610 
    8611 fi;
     3776  :
     3777fi
    86123778
    86133779# Check whether --with-lex or --without-lex was given.
    86143780if test "${with_lex+set}" = set; then
    86153781  withval="$with_lex"
    8616 
    8617 fi;
     3782  :
     3783fi
    86183784
    86193785# Check whether --with-readline or --without-readline was given.
    86203786if test "${with_readline+set}" = set; then
    86213787  withval="$with_readline"
    8622 
    8623 fi;
     3788  :
     3789fi
    86243790
    86253791# Check whether --with-MP or --without-MP was given.
    86263792if test "${with_MP+set}" = set; then
    86273793  withval="$with_MP"
    8628 
    8629 fi;
     3794  :
     3795fi
    86303796
    86313797# Check whether --with-dbm or --without-dbm was given.
    86323798if test "${with_dbm+set}" = set; then
    86333799  withval="$with_dbm"
    8634 
    8635 fi;
     3800  :
     3801fi
    86363802
    86373803# Check whether --with-factory or --without-factory was given.
    86383804if test "${with_factory+set}" = set; then
    86393805  withval="$with_factory"
    8640 
    8641 fi;
     3806  :
     3807fi
    86423808
    86433809# Check whether --with-libfac or --without-libfac was given.
    86443810if test "${with_libfac+set}" = set; then
    86453811  withval="$with_libfac"
    8646 
    8647 fi;
     3812  :
     3813fi
    86483814
    86493815# Check whether --with-namespaces or --without-namespaces was given.
    86503816if test "${with_namespaces+set}" = set; then
    86513817  withval="$with_namespaces"
    8652 
    8653 fi;
     3818  :
     3819fi
    86543820
    86553821# Check whether --with-dl or --without-dl was given.
    86563822if test "${with_dl+set}" = set; then
    86573823  withval="$with_dl"
    8658 
    8659 fi;
     3824  :
     3825fi
    86603826
    86613827# Check whether --with-dynamic-modules or --without-dynamic-modules was given.
    86623828if test "${with_dynamic_modules+set}" = set; then
    86633829  withval="$with_dynamic_modules"
    8664 
    8665 fi;
    8666 
     3830  :
     3831fi
     3832 
    86673833# Check whether --with-dynamic-kernel or --without-dynamic-kernel was given.
    86683834if test "${with_dynamic_kernel+set}" = set; then
    86693835  withval="$with_dynamic_kernel"
    8670 
    8671 fi;
     3836  :
     3837fi
    86723838
    86733839# Check whether --with-apint or --without-apint was given.
    86743840if test "${with_apint+set}" = set; then
    86753841  withval="$with_apint"
    8676 
    8677 fi;
     3842  :
     3843fi
    86783844
    86793845# Check whether --with-Plural or --without-Plural was given.
    86803846if test "${with_Plural+set}" = set; then
    86813847  withval="$with_Plural"
    8682 
    8683 fi;
     3848  :
     3849fi
    86843850
    86853851# Check whether --with-NTL or --without-NTL was given.
    86863852if test "${with_NTL+set}" = set; then
    86873853  withval="$with_NTL"
    8688 
     3854  :
    86893855else
    86903856  with_NTL=yes
    8691 fi;
    8692 
    8693 
    8694 
    8695 echo "$as_me:$LINENO: checking whether to use dynamic linking" >&5
    8696 echo $ECHO_N "checking whether to use dynamic linking... $ECHO_C" >&6
     3857fi
     3858
     3859
     3860
     3861
     3862echo $ac_n "checking whether to use dynamic linking""... $ac_c" 1>&6
     3863echo "configure:3864: checking whether to use dynamic linking" >&5
    86973864if test "$with_dl" != no && test "$ac_lib_dl" = yes; then
    8698   cat >>confdefs.h <<\_ACEOF
     3865  cat >> confdefs.h <<\EOF
    86993866#define HAVE_DL 1
    8700 _ACEOF
     3867EOF
    87013868
    87023869  ac_have_dl=yes
    8703   echo "$as_me:$LINENO: result: yes" >&5
    8704 echo "${ECHO_T}yes" >&6
    8705 else
    8706   echo "$as_me:$LINENO: result: no" >&5
    8707 echo "${ECHO_T}no" >&6
    8708 fi
    8709 
    8710 
    8711 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
    8712 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
    8713 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
    8714   echo $ECHO_N "(cached) $ECHO_C" >&6
    8715 else
    8716   ac_check_lib_save_LIBS=$LIBS
     3870  echo "$ac_t""yes" 1>&6
     3871else
     3872  echo "$ac_t""no" 1>&6
     3873fi
     3874
     3875echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
     3876echo "configure:3877: checking for tgetent in -lncurses" >&5
     3877ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
     3878if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     3879  echo $ac_n "(cached) $ac_c" 1>&6
     3880else
     3881  ac_save_LIBS="$LIBS"
    87173882LIBS="-lncurses  $LIBS"
    8718 cat >conftest.$ac_ext <<_ACEOF
    8719 #line $LINENO "configure"
    8720 /* confdefs.h.  */
    8721 _ACEOF
    8722 cat confdefs.h >>conftest.$ac_ext
    8723 cat >>conftest.$ac_ext <<_ACEOF
    8724 /* end confdefs.h.  */
    8725 
     3883cat > conftest.$ac_ext <<EOF
     3884#line 3885 "configure"
     3885#include "confdefs.h"
     3886/* Override any gcc2 internal prototype to avoid an error.  */
     3887/* We use char because int might match the return type of a gcc2
     3888    builtin and then its argument prototype would still apply.  */
     3889char tgetent();
     3890
     3891int main() {
     3892tgetent()
     3893; return 0; }
     3894EOF
     3895if { (eval echo configure:3896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3896  rm -rf conftest*
     3897  eval "ac_cv_lib_$ac_lib_var=yes"
     3898else
     3899  echo "configure: failed program was:" >&5
     3900  cat conftest.$ac_ext >&5
     3901  rm -rf conftest*
     3902  eval "ac_cv_lib_$ac_lib_var=no"
     3903fi
     3904rm -f conftest*
     3905LIBS="$ac_save_LIBS"
     3906
     3907fi
     3908if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     3909  echo "$ac_t""yes" 1>&6
     3910    ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     3911    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     3912  cat >> confdefs.h <<EOF
     3913#define $ac_tr_lib 1
     3914EOF
     3915
     3916  LIBS="-lncurses $LIBS"
     3917
     3918else
     3919  echo "$ac_t""no" 1>&6
     3920\
     3921 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
     3922echo "configure:3923: checking for tgetent in -lcurses" >&5
     3923ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
     3924if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     3925  echo $ac_n "(cached) $ac_c" 1>&6
     3926else
     3927  ac_save_LIBS="$LIBS"
     3928LIBS="-lcurses  $LIBS"
     3929cat > conftest.$ac_ext <<EOF
     3930#line 3931 "configure"
     3931#include "confdefs.h"
     3932/* Override any gcc2 internal prototype to avoid an error.  */
     3933/* We use char because int might match the return type of a gcc2
     3934    builtin and then its argument prototype would still apply.  */
     3935char tgetent();
     3936
     3937int main() {
     3938tgetent()
     3939; return 0; }
     3940EOF
     3941if { (eval echo configure:3942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3942  rm -rf conftest*
     3943  eval "ac_cv_lib_$ac_lib_var=yes"
     3944else
     3945  echo "configure: failed program was:" >&5
     3946  cat conftest.$ac_ext >&5
     3947  rm -rf conftest*
     3948  eval "ac_cv_lib_$ac_lib_var=no"
     3949fi
     3950rm -f conftest*
     3951LIBS="$ac_save_LIBS"
     3952
     3953fi
     3954if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     3955  echo "$ac_t""yes" 1>&6
     3956    ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/^a-zA-Z0-9_/_/g' \
     3957    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     3958  cat >> confdefs.h <<EOF
     3959#define $ac_tr_lib 1
     3960EOF
     3961
     3962  LIBS="-lcurses $LIBS"
     3963
     3964else
     3965  echo "$ac_t""no" 1>&6
     3966\
     3967  echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
     3968echo "configure:3969: checking for tgetent in -ltermcap" >&5
     3969ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
     3970if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     3971  echo $ac_n "(cached) $ac_c" 1>&6
     3972else
     3973  ac_save_LIBS="$LIBS"
     3974LIBS="-ltermcap  $LIBS"
     3975cat > conftest.$ac_ext <<EOF
     3976#line 3977 "configure"
     3977#include "confdefs.h"
     3978/* Override any gcc2 internal prototype to avoid an error.  */
     3979/* We use char because int might match the return type of a gcc2
     3980    builtin and then its argument prototype would still apply.  */
     3981char tgetent();
     3982
     3983int main() {
     3984tgetent()
     3985; return 0; }
     3986EOF
     3987if { (eval echo configure:3988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3988  rm -rf conftest*
     3989  eval "ac_cv_lib_$ac_lib_var=yes"
     3990else
     3991  echo "configure: failed program was:" >&5
     3992  cat conftest.$ac_ext >&5
     3993  rm -rf conftest*
     3994  eval "ac_cv_lib_$ac_lib_var=no"
     3995fi
     3996rm -f conftest*
     3997LIBS="$ac_save_LIBS"
     3998
     3999fi
     4000if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     4001  echo "$ac_t""yes" 1>&6
     4002    ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/^a-zA-Z0-9_/_/g' \
     4003    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     4004  cat >> confdefs.h <<EOF
     4005#define $ac_tr_lib 1
     4006EOF
     4007
     4008  LIBS="-ltermcap $LIBS"
     4009
     4010else
     4011  echo "$ac_t""no" 1>&6
     4012fi
     4013
     4014fi
     4015
     4016fi
     4017
     4018
     4019# readline
     4020if test "$with_readline" = dynamic && test "$ac_have_dl" != yes; then
     4021  echo "configure: warning: can not build dynamic readline without dynamic linking" 1>&2
     4022  with_readline=static
     4023fi
     4024
     4025
     4026if test "$with_readline" != dynamic && test "$with_readline" != no; then
     4027
     4028ac_ext=C
     4029# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     4030ac_cpp='$CXXCPP $CPPFLAGS'
     4031ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     4032ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     4033cross_compiling=$ac_cv_prog_cxx_cross
     4034
     4035   echo $ac_n "checking for rl_abort in -lreadline""... $ac_c" 1>&6
     4036echo "configure:4037: checking for rl_abort in -lreadline" >&5
     4037ac_lib_var=`echo readline'_'rl_abort | sed 'y%./+-%__p_%'`
     4038if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     4039  echo $ac_n "(cached) $ac_c" 1>&6
     4040else
     4041  ac_save_LIBS="$LIBS"
     4042LIBS="-lreadline  $LIBS"
     4043cat > conftest.$ac_ext <<EOF
     4044#line 4045 "configure"
     4045#include "confdefs.h"
    87264046/* Override any gcc2 internal prototype to avoid an error.  */
    87274047#ifdef __cplusplus
     
    87294049#endif
    87304050/* We use char because int might match the return type of a gcc2
    8731    builtin and then its argument prototype would still apply.  */
    8732 char tgetent ();
    8733 int
    8734 main ()
    8735 {
    8736 tgetent ();
    8737   ;
    8738   return 0;
    8739 }
    8740 _ACEOF
    8741 rm -f conftest.$ac_objext conftest$ac_exeext
    8742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    8743   (eval $ac_link) 2>&5
    8744   ac_status=$?
    8745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8746   (exit $ac_status); } &&
    8747          { ac_try='test -s conftest$ac_exeext'
    8748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8749   (eval $ac_try) 2>&5
    8750   ac_status=$?
    8751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8752   (exit $ac_status); }; }; then
    8753   ac_cv_lib_ncurses_tgetent=yes
    8754 else
    8755   echo "$as_me: failed program was:" >&5
    8756 sed 's/^/| /' conftest.$ac_ext >&5
    8757 
    8758 ac_cv_lib_ncurses_tgetent=no
    8759 fi
    8760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    8761 LIBS=$ac_check_lib_save_LIBS
    8762 fi
    8763 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
    8764 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
    8765 if test $ac_cv_lib_ncurses_tgetent = yes; then
    8766   cat >>confdefs.h <<_ACEOF
    8767 #define HAVE_LIBNCURSES 1
    8768 _ACEOF
    8769 
    8770   LIBS="-lncurses $LIBS"
    8771 
    8772 else
    8773   \
    8774 
    8775 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
    8776 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
    8777 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
    8778   echo $ECHO_N "(cached) $ECHO_C" >&6
    8779 else
    8780   ac_check_lib_save_LIBS=$LIBS
    8781 LIBS="-lcurses  $LIBS"
    8782 cat >conftest.$ac_ext <<_ACEOF
    8783 #line $LINENO "configure"
    8784 /* confdefs.h.  */
    8785 _ACEOF
    8786 cat confdefs.h >>conftest.$ac_ext
    8787 cat >>conftest.$ac_ext <<_ACEOF
    8788 /* end confdefs.h.  */
    8789 
    8790 /* Override any gcc2 internal prototype to avoid an error.  */
    8791 #ifdef __cplusplus
    8792 extern "C"
    8793 #endif
    8794 /* We use char because int might match the return type of a gcc2
    8795    builtin and then its argument prototype would still apply.  */
    8796 char tgetent ();
    8797 int
    8798 main ()
    8799 {
    8800 tgetent ();
    8801   ;
    8802   return 0;
    8803 }
    8804 _ACEOF
    8805 rm -f conftest.$ac_objext conftest$ac_exeext
    8806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    8807   (eval $ac_link) 2>&5
    8808   ac_status=$?
    8809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8810   (exit $ac_status); } &&
    8811          { ac_try='test -s conftest$ac_exeext'
    8812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8813   (eval $ac_try) 2>&5
    8814   ac_status=$?
    8815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8816   (exit $ac_status); }; }; then
    8817   ac_cv_lib_curses_tgetent=yes
    8818 else
    8819   echo "$as_me: failed program was:" >&5
    8820 sed 's/^/| /' conftest.$ac_ext >&5
    8821 
    8822 ac_cv_lib_curses_tgetent=no
    8823 fi
    8824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    8825 LIBS=$ac_check_lib_save_LIBS
    8826 fi
    8827 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
    8828 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
    8829 if test $ac_cv_lib_curses_tgetent = yes; then
    8830   cat >>confdefs.h <<_ACEOF
    8831 #define HAVE_LIBCURSES 1
    8832 _ACEOF
    8833 
    8834   LIBS="-lcurses $LIBS"
    8835 
    8836 else
    8837   \
    8838 
    8839 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
    8840 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
    8841 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
    8842   echo $ECHO_N "(cached) $ECHO_C" >&6
    8843 else
    8844   ac_check_lib_save_LIBS=$LIBS
    8845 LIBS="-ltermcap  $LIBS"
    8846 cat >conftest.$ac_ext <<_ACEOF
    8847 #line $LINENO "configure"
    8848 /* confdefs.h.  */
    8849 _ACEOF
    8850 cat confdefs.h >>conftest.$ac_ext
    8851 cat >>conftest.$ac_ext <<_ACEOF
    8852 /* end confdefs.h.  */
    8853 
    8854 /* Override any gcc2 internal prototype to avoid an error.  */
    8855 #ifdef __cplusplus
    8856 extern "C"
    8857 #endif
    8858 /* We use char because int might match the return type of a gcc2
    8859    builtin and then its argument prototype would still apply.  */
    8860 char tgetent ();
    8861 int
    8862 main ()
    8863 {
    8864 tgetent ();
    8865   ;
    8866   return 0;
    8867 }
    8868 _ACEOF
    8869 rm -f conftest.$ac_objext conftest$ac_exeext
    8870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    8871   (eval $ac_link) 2>&5
    8872   ac_status=$?
    8873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8874   (exit $ac_status); } &&
    8875          { ac_try='test -s conftest$ac_exeext'
    8876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8877   (eval $ac_try) 2>&5
    8878   ac_status=$?
    8879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8880   (exit $ac_status); }; }; then
    8881   ac_cv_lib_termcap_tgetent=yes
    8882 else
    8883   echo "$as_me: failed program was:" >&5
    8884 sed 's/^/| /' conftest.$ac_ext >&5
    8885 
    8886 ac_cv_lib_termcap_tgetent=no
    8887 fi
    8888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    8889 LIBS=$ac_check_lib_save_LIBS
    8890 fi
    8891 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
    8892 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
    8893 if test $ac_cv_lib_termcap_tgetent = yes; then
    8894   cat >>confdefs.h <<_ACEOF
    8895 #define HAVE_LIBTERMCAP 1
    8896 _ACEOF
    8897 
    8898   LIBS="-ltermcap $LIBS"
    8899 
    8900 fi
    8901 
    8902 fi
    8903 
    8904 fi
    8905 
    8906 
    8907 # readline
    8908 if test "$with_readline" = dynamic && test "$ac_have_dl" != yes; then
    8909   { echo "$as_me:$LINENO: WARNING: can not build dynamic readline without dynamic linking" >&5
    8910 echo "$as_me: WARNING: can not build dynamic readline without dynamic linking" >&2;}
    8911   with_readline=static
    8912 fi
    8913 
    8914 
    8915 if test "$with_readline" != dynamic && test "$with_readline" != no; then
    8916 
    8917 
    8918 ac_ext=cc
     4051    builtin and then its argument prototype would still apply.  */
     4052char rl_abort();
     4053
     4054int main() {
     4055rl_abort()
     4056; return 0; }
     4057EOF
     4058if { (eval echo configure:4059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4059  rm -rf conftest*
     4060  eval "ac_cv_lib_$ac_lib_var=yes"
     4061else
     4062  echo "configure: failed program was:" >&5
     4063  cat conftest.$ac_ext >&5
     4064  rm -rf conftest*
     4065  eval "ac_cv_lib_$ac_lib_var=no"
     4066fi
     4067rm -f conftest*
     4068LIBS="$ac_save_LIBS"
     4069
     4070fi
     4071if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     4072  echo "$ac_t""yes" 1>&6
     4073    ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     4074    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     4075  cat >> confdefs.h <<EOF
     4076#define $ac_tr_lib 1
     4077EOF
     4078
     4079  LIBS="-lreadline $LIBS"
     4080
     4081else
     4082  echo "$ac_t""no" 1>&6
     4083fi
     4084
     4085   echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
     4086echo "configure:4087: checking how to run the C++ preprocessor" >&5
     4087if test -z "$CXXCPP"; then
     4088if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
     4089  echo $ac_n "(cached) $ac_c" 1>&6
     4090else
     4091  ac_ext=C
     4092# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    89194093ac_cpp='$CXXCPP $CPPFLAGS'
    8920 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    8921 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    8922 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    8923 
    8924 
    8925 echo "$as_me:$LINENO: checking for rl_abort in -lreadline" >&5
    8926 echo $ECHO_N "checking for rl_abort in -lreadline... $ECHO_C" >&6
    8927 if test "${ac_cv_lib_readline_rl_abort+set}" = set; then
    8928   echo $ECHO_N "(cached) $ECHO_C" >&6
    8929 else
    8930   ac_check_lib_save_LIBS=$LIBS
    8931 LIBS="-lreadline  $LIBS"
    8932 cat >conftest.$ac_ext <<_ACEOF
    8933 #line $LINENO "configure"
    8934 /* confdefs.h.  */
    8935 _ACEOF
    8936 cat confdefs.h >>conftest.$ac_ext
    8937 cat >>conftest.$ac_ext <<_ACEOF
    8938 /* end confdefs.h.  */
    8939 
    8940 /* Override any gcc2 internal prototype to avoid an error.  */
    8941 #ifdef __cplusplus
    8942 extern "C"
    8943 #endif
    8944 /* We use char because int might match the return type of a gcc2
    8945    builtin and then its argument prototype would still apply.  */
    8946 char rl_abort ();
    8947 int
    8948 main ()
    8949 {
    8950 rl_abort ();
    8951   ;
    8952   return 0;
    8953 }
    8954 _ACEOF
    8955 rm -f conftest.$ac_objext conftest$ac_exeext
    8956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    8957   (eval $ac_link) 2>&5
    8958   ac_status=$?
    8959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8960   (exit $ac_status); } &&
    8961          { ac_try='test -s conftest$ac_exeext'
    8962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8963   (eval $ac_try) 2>&5
    8964   ac_status=$?
    8965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8966   (exit $ac_status); }; }; then
    8967   ac_cv_lib_readline_rl_abort=yes
    8968 else
    8969   echo "$as_me: failed program was:" >&5
    8970 sed 's/^/| /' conftest.$ac_ext >&5
    8971 
    8972 ac_cv_lib_readline_rl_abort=no
    8973 fi
    8974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    8975 LIBS=$ac_check_lib_save_LIBS
    8976 fi
    8977 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_abort" >&5
    8978 echo "${ECHO_T}$ac_cv_lib_readline_rl_abort" >&6
    8979 if test $ac_cv_lib_readline_rl_abort = yes; then
    8980   cat >>confdefs.h <<_ACEOF
    8981 #define HAVE_LIBREADLINE 1
    8982 _ACEOF
    8983 
    8984   LIBS="-lreadline $LIBS"
    8985 
    8986 fi
    8987 
    8988    ac_ext=cc
     4094ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     4095ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     4096cross_compiling=$ac_cv_prog_cxx_cross
     4097  CXXCPP="${CXX-g++} -E"
     4098  cat > conftest.$ac_ext <<EOF
     4099#line 4100 "configure"
     4100#include "confdefs.h"
     4101#include <stdlib.h>
     4102EOF
     4103ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     4104{ (eval echo configure:4105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     4105ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     4106if test -z "$ac_err"; then
     4107  :
     4108else
     4109  echo "$ac_err" >&5
     4110  echo "configure: failed program was:" >&5
     4111  cat conftest.$ac_ext >&5
     4112  rm -rf conftest*
     4113  CXXCPP=/lib/cpp
     4114fi
     4115rm -f conftest*
     4116  ac_cv_prog_CXXCPP="$CXXCPP"
     4117ac_ext=C
     4118# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    89894119ac_cpp='$CXXCPP $CPPFLAGS'
    8990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    8991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    8992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    8993 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
    8994 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
    8995 if test -z "$CXXCPP"; then
    8996   if test "${ac_cv_prog_CXXCPP+set}" = set; then
    8997   echo $ECHO_N "(cached) $ECHO_C" >&6
    8998 else
    8999       # Double quotes because CXXCPP needs to be expanded
    9000     for CXXCPP in "$CXX -E" "/lib/cpp"
    9001     do
    9002       ac_preproc_ok=false
    9003 for ac_cxx_preproc_warn_flag in '' yes
     4120ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     4121ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     4122cross_compiling=$ac_cv_prog_cxx_cross
     4123fi
     4124fi
     4125CXXCPP="$ac_cv_prog_CXXCPP"
     4126echo "$ac_t""$CXXCPP" 1>&6
     4127
     4128for ac_hdr in readline/readline.h readline/history.h
    90044129do
    9005   # Use a header file that comes with gcc, so configuring glibc
    9006   # with a fresh cross-compiler works.
    9007   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    9008   # <limits.h> exists even on freestanding compilers.
    9009   # On the NeXT, cc -E runs the code through the compiler's parser,
    9010   # not just through cpp. "Syntax error" is here to catch this case.
    9011   cat >conftest.$ac_ext <<_ACEOF
    9012 #line $LINENO "configure"
    9013 /* confdefs.h.  */
    9014 _ACEOF
    9015 cat confdefs.h >>conftest.$ac_ext
    9016 cat >>conftest.$ac_ext <<_ACEOF
    9017 /* end confdefs.h.  */
    9018 #ifdef __STDC__
    9019 # include <limits.h>
    9020 #else
    9021 # include <assert.h>
    9022 #endif
    9023                      Syntax error
    9024 _ACEOF
    9025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    9026   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    9027   ac_status=$?
    9028   grep -v '^ *+' conftest.er1 >conftest.err
    9029   rm -f conftest.er1
    9030   cat conftest.err >&5
    9031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9032   (exit $ac_status); } >/dev/null; then
    9033   if test -s conftest.err; then
    9034     ac_cpp_err=$ac_cxx_preproc_warn_flag
    9035   else
    9036     ac_cpp_err=
    9037   fi
    9038 else
    9039   ac_cpp_err=yes
    9040 fi
    9041 if test -z "$ac_cpp_err"; then
    9042   :
    9043 else
    9044   echo "$as_me: failed program was:" >&5
    9045 sed 's/^/| /' conftest.$ac_ext >&5
    9046 
    9047   # Broken: fails on valid input.
    9048 continue
    9049 fi
    9050 rm -f conftest.err conftest.$ac_ext
    9051 
    9052   # OK, works on sane cases.  Now check whether non-existent headers
    9053   # can be detected and how.
    9054   cat >conftest.$ac_ext <<_ACEOF
    9055 #line $LINENO "configure"
    9056 /* confdefs.h.  */
    9057 _ACEOF
    9058 cat confdefs.h >>conftest.$ac_ext
    9059 cat >>conftest.$ac_ext <<_ACEOF
    9060 /* end confdefs.h.  */
    9061 #include <ac_nonexistent.h>
    9062 _ACEOF
    9063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    9064   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    9065   ac_status=$?
    9066   grep -v '^ *+' conftest.er1 >conftest.err
    9067   rm -f conftest.er1
    9068   cat conftest.err >&5
    9069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9070   (exit $ac_status); } >/dev/null; then
    9071   if test -s conftest.err; then
    9072     ac_cpp_err=$ac_cxx_preproc_warn_flag
    9073   else
    9074     ac_cpp_err=
    9075   fi
    9076 else
    9077   ac_cpp_err=yes
    9078 fi
    9079 if test -z "$ac_cpp_err"; then
    9080   # Broken: success on invalid input.
    9081 continue
    9082 else
    9083   echo "$as_me: failed program was:" >&5
    9084 sed 's/^/| /' conftest.$ac_ext >&5
    9085 
    9086   # Passes both tests.
    9087 ac_preproc_ok=:
    9088 break
    9089 fi
    9090 rm -f conftest.err conftest.$ac_ext
    9091 
    9092 done
    9093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    9094 rm -f conftest.err conftest.$ac_ext
    9095 if $ac_preproc_ok; then
    9096   break
    9097 fi
    9098 
    9099     done
    9100     ac_cv_prog_CXXCPP=$CXXCPP
    9101 
    9102 fi
    9103   CXXCPP=$ac_cv_prog_CXXCPP
    9104 else
    9105   ac_cv_prog_CXXCPP=$CXXCPP
    9106 fi
    9107 echo "$as_me:$LINENO: result: $CXXCPP" >&5
    9108 echo "${ECHO_T}$CXXCPP" >&6
    9109 ac_preproc_ok=false
    9110 for ac_cxx_preproc_warn_flag in '' yes
    9111 do
    9112   # Use a header file that comes with gcc, so configuring glibc
    9113   # with a fresh cross-compiler works.
    9114   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    9115   # <limits.h> exists even on freestanding compilers.
    9116   # On the NeXT, cc -E runs the code through the compiler's parser,
    9117   # not just through cpp. "Syntax error" is here to catch this case.
    9118   cat >conftest.$ac_ext <<_ACEOF
    9119 #line $LINENO "configure"
    9120 /* confdefs.h.  */
    9121 _ACEOF
    9122 cat confdefs.h >>conftest.$ac_ext
    9123 cat >>conftest.$ac_ext <<_ACEOF
    9124 /* end confdefs.h.  */
    9125 #ifdef __STDC__
    9126 # include <limits.h>
    9127 #else
    9128 # include <assert.h>
    9129 #endif
    9130                      Syntax error
    9131 _ACEOF
    9132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    9133   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    9134   ac_status=$?
    9135   grep -v '^ *+' conftest.er1 >conftest.err
    9136   rm -f conftest.er1
    9137   cat conftest.err >&5
    9138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9139   (exit $ac_status); } >/dev/null; then
    9140   if test -s conftest.err; then
    9141     ac_cpp_err=$ac_cxx_preproc_warn_flag
    9142   else
    9143     ac_cpp_err=
    9144   fi
    9145 else
    9146   ac_cpp_err=yes
    9147 fi
    9148 if test -z "$ac_cpp_err"; then
    9149   :
    9150 else
    9151   echo "$as_me: failed program was:" >&5
    9152 sed 's/^/| /' conftest.$ac_ext >&5
    9153 
    9154   # Broken: fails on valid input.
    9155 continue
    9156 fi
    9157 rm -f conftest.err conftest.$ac_ext
    9158 
    9159   # OK, works on sane cases.  Now check whether non-existent headers
    9160   # can be detected and how.
    9161   cat >conftest.$ac_ext <<_ACEOF
    9162 #line $LINENO "configure"
    9163 /* confdefs.h.  */
    9164 _ACEOF
    9165 cat confdefs.h >>conftest.$ac_ext
    9166 cat >>conftest.$ac_ext <<_ACEOF
    9167 /* end confdefs.h.  */
    9168 #include <ac_nonexistent.h>
    9169 _ACEOF
    9170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    9171   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    9172   ac_status=$?
    9173   grep -v '^ *+' conftest.er1 >conftest.err
    9174   rm -f conftest.er1
    9175   cat conftest.err >&5
    9176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9177   (exit $ac_status); } >/dev/null; then
    9178   if test -s conftest.err; then
    9179     ac_cpp_err=$ac_cxx_preproc_warn_flag
    9180   else
    9181     ac_cpp_err=
    9182   fi
    9183 else
    9184   ac_cpp_err=yes
    9185 fi
    9186 if test -z "$ac_cpp_err"; then
    9187   # Broken: success on invalid input.
    9188 continue
    9189 else
    9190   echo "$as_me: failed program was:" >&5
    9191 sed 's/^/| /' conftest.$ac_ext >&5
    9192 
    9193   # Passes both tests.
    9194 ac_preproc_ok=:
    9195 break
    9196 fi
    9197 rm -f conftest.err conftest.$ac_ext
    9198 
    9199 done
    9200 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    9201 rm -f conftest.err conftest.$ac_ext
    9202 if $ac_preproc_ok; then
    9203   :
    9204 else
    9205   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
    9206 See \`config.log' for more details." >&5
    9207 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
    9208 See \`config.log' for more details." >&2;}
    9209    { (exit 1); exit 1; }; }
    9210 fi
    9211 
    9212 ac_ext=cc
    9213 ac_cpp='$CXXCPP $CPPFLAGS'
    9214 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    9215 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    9216 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    9217 
    9218 
    9219 
    9220 
    9221 for ac_header in readline/readline.h readline/history.h
    9222 do
    9223 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    9224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    9225   echo "$as_me:$LINENO: checking for $ac_header" >&5
    9226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    9227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    9228   echo $ECHO_N "(cached) $ECHO_C" >&6
    9229 fi
    9230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    9231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    9232 else
    9233   # Is the header compilable?
    9234 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    9235 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    9236 cat >conftest.$ac_ext <<_ACEOF
    9237 #line $LINENO "configure"
    9238 /* confdefs.h.  */
    9239 _ACEOF
    9240 cat confdefs.h >>conftest.$ac_ext
    9241 cat >>conftest.$ac_ext <<_ACEOF
    9242 /* end confdefs.h.  */
    9243 $ac_includes_default
    9244 #include <$ac_header>
    9245 _ACEOF
    9246 rm -f conftest.$ac_objext
    9247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    9248   (eval $ac_compile) 2>&5
    9249   ac_status=$?
    9250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9251   (exit $ac_status); } &&
    9252          { ac_try='test -s conftest.$ac_objext'
    9253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9254   (eval $ac_try) 2>&5
    9255   ac_status=$?
    9256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9257   (exit $ac_status); }; }; then
    9258   ac_header_compiler=yes
    9259 else
    9260   echo "$as_me: failed program was:" >&5
    9261 sed 's/^/| /' conftest.$ac_ext >&5
    9262 
    9263 ac_header_compiler=no
    9264 fi
    9265 rm -f conftest.$ac_objext conftest.$ac_ext
    9266 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    9267 echo "${ECHO_T}$ac_header_compiler" >&6
    9268 
    9269 # Is the header present?
    9270 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    9271 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    9272 cat >conftest.$ac_ext <<_ACEOF
    9273 #line $LINENO "configure"
    9274 /* confdefs.h.  */
    9275 _ACEOF
    9276 cat confdefs.h >>conftest.$ac_ext
    9277 cat >>conftest.$ac_ext <<_ACEOF
    9278 /* end confdefs.h.  */
    9279 #include <$ac_header>
    9280 _ACEOF
    9281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    9282   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    9283   ac_status=$?
    9284   grep -v '^ *+' conftest.er1 >conftest.err
    9285   rm -f conftest.er1
    9286   cat conftest.err >&5
    9287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9288   (exit $ac_status); } >/dev/null; then
    9289   if test -s conftest.err; then
    9290     ac_cpp_err=$ac_cxx_preproc_warn_flag
    9291   else
    9292     ac_cpp_err=
    9293   fi
    9294 else
    9295   ac_cpp_err=yes
    9296 fi
    9297 if test -z "$ac_cpp_err"; then
    9298   ac_header_preproc=yes
    9299 else
    9300   echo "$as_me: failed program was:" >&5
    9301 sed 's/^/| /' conftest.$ac_ext >&5
    9302 
    9303   ac_header_preproc=no
    9304 fi
    9305 rm -f conftest.err conftest.$ac_ext
    9306 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    9307 echo "${ECHO_T}$ac_header_preproc" >&6
    9308 
    9309 # So?  What about this header?
    9310 case $ac_header_compiler:$ac_header_preproc in
    9311   yes:no )
    9312     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    9313 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    9314     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    9315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    9316     (
    9317       cat <<\_ASBOX
    9318 ## ------------------------------------ ##
    9319 ## Report this to bug-autoconf@gnu.org. ##
    9320 ## ------------------------------------ ##
    9321 _ASBOX
    9322     ) |
    9323       sed "s/^/$as_me: WARNING:     /" >&2
    9324     ;;
    9325   no:yes )
    9326     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    9327 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    9328     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
    9329 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    9330     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    9331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    9332     (
    9333       cat <<\_ASBOX
    9334 ## ------------------------------------ ##
    9335 ## Report this to bug-autoconf@gnu.org. ##
    9336 ## ------------------------------------ ##
    9337 _ASBOX
    9338     ) |
    9339       sed "s/^/$as_me: WARNING:     /" >&2
    9340     ;;
    9341 esac
    9342 echo "$as_me:$LINENO: checking for $ac_header" >&5
    9343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    9344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    9345   echo $ECHO_N "(cached) $ECHO_C" >&6
    9346 else
    9347   eval "$as_ac_Header=$ac_header_preproc"
    9348 fi
    9349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    9350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    9351 
    9352 fi
    9353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    9354   cat >>confdefs.h <<_ACEOF
    9355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    9356 _ACEOF
    9357 
    9358 fi
    9359 
     4130ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
     4131echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
     4132echo "configure:4133: checking for $ac_hdr" >&5
     4133if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
     4134  echo $ac_n "(cached) $ac_c" 1>&6
     4135else
     4136  cat > conftest.$ac_ext <<EOF
     4137#line 4138 "configure"
     4138#include "confdefs.h"
     4139#include <$ac_hdr>
     4140EOF
     4141ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     4142{ (eval echo configure:4143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     4143ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     4144if test -z "$ac_err"; then
     4145  rm -rf conftest*
     4146  eval "ac_cv_header_$ac_safe=yes"
     4147else
     4148  echo "$ac_err" >&5
     4149  echo "configure: failed program was:" >&5
     4150  cat conftest.$ac_ext >&5
     4151  rm -rf conftest*
     4152  eval "ac_cv_header_$ac_safe=no"
     4153fi
     4154rm -f conftest*
     4155fi
     4156if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
     4157  echo "$ac_t""yes" 1>&6
     4158    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
     4159  cat >> confdefs.h <<EOF
     4160#define $ac_tr_hdr 1
     4161EOF
     4162 
     4163else
     4164  echo "$ac_t""no" 1>&6
     4165fi
    93604166done
    93614167
    93624168   if test "$ac_cv_lib_readline_rl_abort" = yes && \
    93634169      test "$ac_cv_header_readline_readline_h" = yes; then
    9364      echo "$as_me:$LINENO: checking whether readline.h is ok" >&5
    9365 echo $ECHO_N "checking whether readline.h is ok... $ECHO_C" >&6
    9366      if test "${ac_cv_header_readline_readline_h_ok+set}" = set; then
    9367   echo $ECHO_N "(cached) $ECHO_C" >&6
    9368 else
    9369   cat >conftest.$ac_ext <<_ACEOF
    9370 #line $LINENO "configure"
    9371 /* confdefs.h.  */
    9372 _ACEOF
    9373 cat confdefs.h >>conftest.$ac_ext
    9374 cat >>conftest.$ac_ext <<_ACEOF
    9375 /* end confdefs.h.  */
     4170     echo $ac_n "checking whether readline.h is ok""... $ac_c" 1>&6
     4171echo "configure:4172: checking whether readline.h is ok" >&5
     4172     if eval "test \"`echo '$''{'ac_cv_header_readline_readline_h_ok'+set}'`\" = set"; then
     4173  echo $ac_n "(cached) $ac_c" 1>&6
     4174else
     4175  cat > conftest.$ac_ext <<EOF
     4176#line 4177 "configure"
     4177#include "confdefs.h"
    93764178#include<unistd.h>
    93774179#include<stdio.h>
     
    93814183#endif
    93824184
    9383 int
    9384 main ()
    9385 {
    9386 
    9387   ;
    9388   return 0;
    9389 }
    9390 _ACEOF
    9391 rm -f conftest.$ac_objext conftest$ac_exeext
    9392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    9393   (eval $ac_link) 2>&5
    9394   ac_status=$?
    9395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9396   (exit $ac_status); } &&
    9397          { ac_try='test -s conftest$ac_exeext'
    9398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9399   (eval $ac_try) 2>&5
    9400   ac_status=$?
    9401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9402   (exit $ac_status); }; }; then
     4185int main() {
     4186
     4187; return 0; }
     4188EOF
     4189if { (eval echo configure:4190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4190  rm -rf conftest*
    94034191  ac_cv_header_readline_readline_h_ok="yes"
    94044192else
    9405   echo "$as_me: failed program was:" >&5
    9406 sed 's/^/| /' conftest.$ac_ext >&5
    9407 
    9408 ac_cv_header_readline_readline_h_ok="no"
    9409 fi
    9410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    9411 fi
    9412 
    9413     echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h_ok" >&5
    9414 echo "${ECHO_T}$ac_cv_header_readline_readline_h_ok" >&6
     4193  echo "configure: failed program was:" >&5
     4194  cat conftest.$ac_ext >&5
     4195  rm -rf conftest*
     4196  ac_cv_header_readline_readline_h_ok="no"
     4197fi
     4198rm -f conftest*
     4199fi
     4200
     4201    echo "$ac_t""$ac_cv_header_readline_readline_h_ok" 1>&6
    94154202    if test "$ac_cv_header_readline_readline_h_ok" != yes; then
    94164203#not ok -- try once more with explicitly declaring everything
    9417       echo "$as_me:$LINENO: checking whether or not we nevertheless can use readline" >&5
    9418 echo $ECHO_N "checking whether or not we nevertheless can use readline... $ECHO_C" >&6
    9419       if test "${ac_cv_have_readline+set}" = set; then
    9420   echo $ECHO_N "(cached) $ECHO_C" >&6
    9421 else
    9422   cat >conftest.$ac_ext <<_ACEOF
    9423 #line $LINENO "configure"
    9424 /* confdefs.h.  */
    9425 _ACEOF
    9426 cat confdefs.h >>conftest.$ac_ext
    9427 cat >>conftest.$ac_ext <<_ACEOF
    9428 /* end confdefs.h.  */
     4204      echo $ac_n "checking whether or not we nevertheless can use readline""... $ac_c" 1>&6
     4205echo "configure:4206: checking whether or not we nevertheless can use readline" >&5
     4206      if eval "test \"`echo '$''{'ac_cv_have_readline'+set}'`\" = set"; then
     4207  echo $ac_n "(cached) $ac_c" 1>&6
     4208else
     4209  cat > conftest.$ac_ext <<EOF
     4210#line 4211 "configure"
     4211#include "confdefs.h"
    94294212#include <stdio.h>
    94304213extern "C"
     
    94464229#endif
    94474230
    9448 int
    9449 main ()
    9450 {
     4231int main() {
    94514232rl_readline_name=NULL;
    94524233*rl_line_buffer=1;
     
    94594240write_history(NULL);
    94604241
    9461   ;
    9462   return 0;
    9463 }
    9464 _ACEOF
    9465 rm -f conftest.$ac_objext conftest$ac_exeext
    9466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    9467   (eval $ac_link) 2>&5
    9468   ac_status=$?
    9469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9470   (exit $ac_status); } &&
    9471          { ac_try='test -s conftest$ac_exeext'
    9472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9473   (eval $ac_try) 2>&5
    9474   ac_status=$?
    9475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9476   (exit $ac_status); }; }; then
     4242; return 0; }
     4243EOF
     4244if { (eval echo configure:4245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4245  rm -rf conftest*
    94774246  ac_cv_have_readline="yes"
    94784247
    94794248else
    9480   echo "$as_me: failed program was:" >&5
    9481 sed 's/^/| /' conftest.$ac_ext >&5
    9482 
    9483 ac_cv_have_readline="no"
    9484 
    9485 fi
    9486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    9487 fi
    9488 
    9489       echo "$as_me:$LINENO: result: $ac_cv_have_readline" >&5
    9490 echo "${ECHO_T}$ac_cv_have_readline" >&6
     4249  echo "configure: failed program was:" >&5
     4250  cat conftest.$ac_ext >&5
     4251  rm -rf conftest*
     4252  ac_cv_have_readline="no"
     4253
     4254fi
     4255rm -f conftest*
     4256fi
     4257
     4258      echo "$ac_t""$ac_cv_have_readline" 1>&6
    94914259    else
    9492       cat >>confdefs.h <<\_ACEOF
     4260      cat >> confdefs.h <<\EOF
    94934261#define READLINE_READLINE_H_OK 1
    9494 _ACEOF
     4262EOF
    94954263
    94964264      ac_cv_have_readline="yes"
     
    94984266  fi
    94994267  if test "$ac_cv_have_readline" = yes; then
    9500     cat >>confdefs.h <<\_ACEOF
     4268    cat >> confdefs.h <<\EOF
    95014269#define HAVE_READLINE 1
    9502 _ACEOF
     4270EOF
    95034271
    95044272  fi
    95054273ac_ext=c
     4274# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    95064275ac_cpp='$CPP $CPPFLAGS'
    9507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    9508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    9509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    9510 
    9511 fi
    9512 
    9513 echo "$as_me:$LINENO: checking which readline to use" >&5
    9514 echo $ECHO_N "checking which readline to use... $ECHO_C" >&6
     4276ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     4277ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     4278cross_compiling=$ac_cv_prog_cc_cross
     4279
     4280fi
     4281
     4282echo $ac_n "checking which readline to use""... $ac_c" 1>&6
     4283echo "configure:4284: checking which readline to use" >&5
    95154284if test "$ac_cv_with_readline" = dynamic; then
    9516   echo "$as_me:$LINENO: result: dynamic" >&5
    9517 echo "${ECHO_T}dynamic" >&6
    9518   cat >>confdefs.h <<\_ACEOF
     4285  echo "$ac_t""dynamic" 1>&6
     4286  cat >> confdefs.h <<\EOF
    95194287#define HAVE_DYN_RL 1
    9520 _ACEOF
     4288EOF
    95214289
    95224290elif test "$ac_cv_have_readline" = yes; then
    9523   echo "$as_me:$LINENO: result: static" >&5
    9524 echo "${ECHO_T}static" >&6
     4291  echo "$ac_t""static" 1>&6
    95254292elif test "$ac_cv_singuname" = PowerMacintosh-darwin; then
    9526   { { echo "$as_me:$LINENO: error: building without readline impossible on PowerMacintosh-darwin" >&5
    9527 echo "$as_me: error: building without readline impossible on PowerMacintosh-darwin" >&2;}
    9528    { (exit 1); exit 1; }; }
    9529 else
    9530   echo "$as_me:$LINENO: result: none" >&5
    9531 echo "${ECHO_T}none" >&6
    9532   { echo "$as_me:$LINENO: WARNING: building without readline: disabling fancy display" >&5
    9533 echo "$as_me: WARNING: building without readline: disabling fancy display" >&2;}
    9534 fi
    9535 
     4293  { echo "configure: error: building without readline impossible on PowerMacintosh-darwin" 1>&2; exit 1; }
     4294else
     4295  echo "$ac_t""none" 1>&6
     4296  echo "configure: warning: building without readline: disabling fancy display" 1>&2
     4297fi
     4298 
    95364299NEED_LIBS=$LIBS
    95374300
    95384301# gmp, smallgmp, MP, MPT, factory, libfac
    9539 
    9540 echo "$as_me:$LINENO: checking for main in -lgmp" >&5
    9541 echo $ECHO_N "checking for main in -lgmp... $ECHO_C" >&6
    9542 if test "${ac_cv_lib_gmp_main+set}" = set; then
    9543   echo $ECHO_N "(cached) $ECHO_C" >&6
    9544 else
    9545   ac_check_lib_save_LIBS=$LIBS
     4302echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6
     4303echo "configure:4304: checking for main in -lgmp" >&5
     4304ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'`
     4305if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     4306  echo $ac_n "(cached) $ac_c" 1>&6
     4307else
     4308  ac_save_LIBS="$LIBS"
    95464309LIBS="-lgmp  $LIBS"
    9547 cat >conftest.$ac_ext <<_ACEOF
    9548 #line $LINENO "configure"
    9549 /* confdefs.h.  */
    9550 _ACEOF
    9551 cat confdefs.h >>conftest.$ac_ext
    9552 cat >>conftest.$ac_ext <<_ACEOF
    9553 /* end confdefs.h.  */
    9554 
    9555 
    9556 int
    9557 main ()
    9558 {
    9559 main ();
    9560   ;
    9561   return 0;
    9562 }
    9563 _ACEOF
    9564 rm -f conftest.$ac_objext conftest$ac_exeext
    9565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    9566   (eval $ac_link) 2>&5
    9567   ac_status=$?
    9568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9569   (exit $ac_status); } &&
    9570          { ac_try='test -s conftest$ac_exeext'
    9571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9572   (eval $ac_try) 2>&5
    9573   ac_status=$?
    9574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9575   (exit $ac_status); }; }; then
    9576   ac_cv_lib_gmp_main=yes
    9577 else
    9578   echo "$as_me: failed program was:" >&5
    9579 sed 's/^/| /' conftest.$ac_ext >&5
    9580 
    9581 ac_cv_lib_gmp_main=no
    9582 fi
    9583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    9584 LIBS=$ac_check_lib_save_LIBS
    9585 fi
    9586 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_main" >&5
    9587 echo "${ECHO_T}$ac_cv_lib_gmp_main" >&6
    9588 if test $ac_cv_lib_gmp_main = yes; then
    9589   cat >>confdefs.h <<_ACEOF
    9590 #define HAVE_LIBGMP 1
    9591 _ACEOF
     4310cat > conftest.$ac_ext <<EOF
     4311#line 4312 "configure"
     4312#include "confdefs.h"
     4313
     4314int main() {
     4315main()
     4316; return 0; }
     4317EOF
     4318if { (eval echo configure:4319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4319  rm -rf conftest*
     4320  eval "ac_cv_lib_$ac_lib_var=yes"
     4321else
     4322  echo "configure: failed program was:" >&5
     4323  cat conftest.$ac_ext >&5
     4324  rm -rf conftest*
     4325  eval "ac_cv_lib_$ac_lib_var=no"
     4326fi
     4327rm -f conftest*
     4328LIBS="$ac_save_LIBS"
     4329
     4330fi
     4331if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     4332  echo "$ac_t""yes" 1>&6
     4333    ac_tr_lib=HAVE_LIB`echo gmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     4334    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     4335  cat >> confdefs.h <<EOF
     4336#define $ac_tr_lib 1
     4337EOF
    95924338
    95934339  LIBS="-lgmp $LIBS"
    95944340
     4341else
     4342  echo "$ac_t""no" 1>&6
    95954343fi
    95964344
     
    95984346  LIBS=${NEED_LIBS}
    95994347fi
    9600 
    9601 echo "$as_me:$LINENO: checking for main in -lsmallgmp" >&5
    9602 echo $ECHO_N "checking for main in -lsmallgmp... $ECHO_C" >&6
    9603 if test "${ac_cv_lib_smallgmp_main+set}" = set; then
    9604   echo $ECHO_N "(cached) $ECHO_C" >&6
    9605 else
    9606   ac_check_lib_save_LIBS=$LIBS
     4348echo $ac_n "checking for main in -lsmallgmp""... $ac_c" 1>&6
     4349echo "configure:4350: checking for main in -lsmallgmp" >&5
     4350ac_lib_var=`echo smallgmp'_'main | sed 'y%./+-%__p_%'`
     4351if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     4352  echo $ac_n "(cached) $ac_c" 1>&6
     4353else
     4354  ac_save_LIBS="$LIBS"
    96074355LIBS="-lsmallgmp  $LIBS"
    9608 cat >conftest.$ac_ext <<_ACEOF
    9609 #line $LINENO "configure"
    9610 /* confdefs.h.  */
    9611 _ACEOF
    9612 cat confdefs.h >>conftest.$ac_ext
    9613 cat >>conftest.$ac_ext <<_ACEOF
    9614 /* end confdefs.h.  */
    9615 
    9616 
    9617 int
    9618 main ()
    9619 {
    9620 main ();
    9621   ;
    9622   return 0;
    9623 }
    9624 _ACEOF
    9625 rm -f conftest.$ac_objext conftest$ac_exeext
    9626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    9627   (eval $ac_link) 2>&5
    9628   ac_status=$?
    9629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9630   (exit $ac_status); } &&
    9631          { ac_try='test -s conftest$ac_exeext'
    9632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9633   (eval $ac_try) 2>&5
    9634   ac_status=$?
    9635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9636   (exit $ac_status); }; }; then
    9637   ac_cv_lib_smallgmp_main=yes
    9638 else
    9639   echo "$as_me: failed program was:" >&5
    9640 sed 's/^/| /' conftest.$ac_ext >&5
    9641 
    9642 ac_cv_lib_smallgmp_main=no
    9643 fi
    9644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    9645 LIBS=$ac_check_lib_save_LIBS
    9646 fi
    9647 echo "$as_me:$LINENO: result: $ac_cv_lib_smallgmp_main" >&5
    9648 echo "${ECHO_T}$ac_cv_lib_smallgmp_main" >&6
    9649 if test $ac_cv_lib_smallgmp_main = yes; then
    9650   cat >>confdefs.h <<_ACEOF
    9651 #define HAVE_LIBSMALLGMP 1
    9652 _ACEOF
     4356cat > conftest.$ac_ext <<EOF
     4357#line 4358 "configure"
     4358#include "confdefs.h"
     4359
     4360int main() {
     4361main()
     4362; return 0; }
     4363EOF
     4364if { (eval echo configure:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4365  rm -rf conftest*
     4366  eval "ac_cv_lib_$ac_lib_var=yes"
     4367else
     4368  echo "configure: failed program was:" >&5
     4369  cat conftest.$ac_ext >&5
     4370  rm -rf conftest*
     4371  eval "ac_cv_lib_$ac_lib_var=no"
     4372fi
     4373rm -f conftest*
     4374LIBS="$ac_save_LIBS"
     4375
     4376fi
     4377if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     4378  echo "$ac_t""yes" 1>&6
     4379    ac_tr_lib=HAVE_LIB`echo smallgmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     4380    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     4381  cat >> confdefs.h <<EOF
     4382#define $ac_tr_lib 1
     4383EOF
    96534384
    96544385  LIBS="-lsmallgmp $LIBS"
    96554386
     4387else
     4388  echo "$ac_t""no" 1>&6
    96564389fi
    96574390
    96584391SAVE_LIBS=$LIBS
    9659 
    9660 echo "$as_me:$LINENO: checking for IMP_PutGmpInt in -lMP" >&5
    9661 echo $ECHO_N "checking for IMP_PutGmpInt in -lMP... $ECHO_C" >&6
    9662 if test "${ac_cv_lib_MP_IMP_PutGmpInt+set}" = set; then
    9663   echo $ECHO_N "(cached) $ECHO_C" >&6
    9664 else
    9665   ac_check_lib_save_LIBS=$LIBS
     4392echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6
     4393echo "configure:4394: checking for IMP_PutGmpInt in -lMP" >&5
     4394ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'`
     4395if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     4396  echo $ac_n "(cached) $ac_c" 1>&6
     4397else
     4398  ac_save_LIBS="$LIBS"
    96664399LIBS="-lMP $MP_LIBS $LIBS"
    9667 cat >conftest.$ac_ext <<_ACEOF
    9668 #line $LINENO "configure"
    9669 /* confdefs.h.  */
    9670 _ACEOF
    9671 cat confdefs.h >>conftest.$ac_ext
    9672 cat >>conftest.$ac_ext <<_ACEOF
    9673 /* end confdefs.h.  */
    9674 
     4400cat > conftest.$ac_ext <<EOF
     4401#line 4402 "configure"
     4402#include "confdefs.h"
    96754403/* Override any gcc2 internal prototype to avoid an error.  */
    9676 #ifdef __cplusplus
    9677 extern "C"
    9678 #endif
    96794404/* We use char because int might match the return type of a gcc2
    9680    builtin and then its argument prototype would still apply.  */
    9681 char IMP_PutGmpInt ();
    9682 int
    9683 main ()
    9684 {
    9685 IMP_PutGmpInt ();
    9686   ;
    9687   return 0;
    9688 }
    9689 _ACEOF
    9690 rm -f conftest.$ac_objext conftest$ac_exeext
    9691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    9692   (eval $ac_link) 2>&5
    9693   ac_status=$?
    9694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9695   (exit $ac_status); } &&
    9696          { ac_try='test -s conftest$ac_exeext'
    9697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9698   (eval $ac_try) 2>&5
    9699   ac_status=$?
    9700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9701   (exit $ac_status); }; }; then
    9702   ac_cv_lib_MP_IMP_PutGmpInt=yes
    9703 else
    9704   echo "$as_me: failed program was:" >&5
    9705 sed 's/^/| /' conftest.$ac_ext >&5
    9706 
    9707 ac_cv_lib_MP_IMP_PutGmpInt=no
    9708 fi
    9709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    9710 LIBS=$ac_check_lib_save_LIBS
    9711 fi
    9712 echo "$as_me:$LINENO: result: $ac_cv_lib_MP_IMP_PutGmpInt" >&5
    9713 echo "${ECHO_T}$ac_cv_lib_MP_IMP_PutGmpInt" >&6
    9714 if test $ac_cv_lib_MP_IMP_PutGmpInt = yes; then
    9715   cat >>confdefs.h <<_ACEOF
    9716 #define HAVE_LIBMP 1
    9717 _ACEOF
     4405    builtin and then its argument prototype would still apply.  */
     4406char IMP_PutGmpInt();
     4407
     4408int main() {
     4409IMP_PutGmpInt()
     4410; return 0; }
     4411EOF
     4412if { (eval echo configure:4413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4413  rm -rf conftest*
     4414  eval "ac_cv_lib_$ac_lib_var=yes"
     4415else
     4416  echo "configure: failed program was:" >&5
     4417  cat conftest.$ac_ext >&5
     4418  rm -rf conftest*
     4419  eval "ac_cv_lib_$ac_lib_var=no"
     4420fi
     4421rm -f conftest*
     4422LIBS="$ac_save_LIBS"
     4423
     4424fi
     4425if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     4426  echo "$ac_t""yes" 1>&6
     4427    ac_tr_lib=HAVE_LIB`echo MP | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     4428    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     4429  cat >> confdefs.h <<EOF
     4430#define $ac_tr_lib 1
     4431EOF
    97184432
    97194433  LIBS="-lMP $LIBS"
    97204434
    9721 fi
    9722 
    9723 
    9724 echo "$as_me:$LINENO: checking for MPT_GetTree in -lMPT" >&5
    9725 echo $ECHO_N "checking for MPT_GetTree in -lMPT... $ECHO_C" >&6
    9726 if test "${ac_cv_lib_MPT_MPT_GetTree+set}" = set; then
    9727   echo $ECHO_N "(cached) $ECHO_C" >&6
    9728 else
    9729   ac_check_lib_save_LIBS=$LIBS
     4435else
     4436  echo "$ac_t""no" 1>&6
     4437fi
     4438
     4439echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6
     4440echo "configure:4441: checking for MPT_GetTree in -lMPT" >&5
     4441ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'`
     4442if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     4443  echo $ac_n "(cached) $ac_c" 1>&6
     4444else
     4445  ac_save_LIBS="$LIBS"
    97304446LIBS="-lMPT $MP_LIBS $LIBS"
    9731 cat >conftest.$ac_ext <<_ACEOF
    9732 #line $LINENO "configure"
    9733 /* confdefs.h.  */
    9734 _ACEOF
    9735 cat confdefs.h >>conftest.$ac_ext
    9736 cat >>conftest.$ac_ext <<_ACEOF
    9737 /* end confdefs.h.  */
    9738 
     4447cat > conftest.$ac_ext <<EOF
     4448#line 4449 "configure"
     4449#include "confdefs.h"
    97394450/* Override any gcc2 internal prototype to avoid an error.  */
    9740 #ifdef __cplusplus
    9741 extern "C"
    9742 #endif
    97434451/* We use char because int might match the return type of a gcc2
    9744    builtin and then its argument prototype would still apply.  */
    9745 char MPT_GetTree ();
    9746 int
    9747 main ()
    9748 {
    9749 MPT_GetTree ();
    9750   ;
    9751   return 0;
    9752 }
    9753 _ACEOF
    9754 rm -f conftest.$ac_objext conftest$ac_exeext
    9755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    9756   (eval $ac_link) 2>&5
    9757   ac_status=$?
    9758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9759   (exit $ac_status); } &&
    9760          { ac_try='test -s conftest$ac_exeext'
    9761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9762   (eval $ac_try) 2>&5
    9763   ac_status=$?
    9764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9765   (exit $ac_status); }; }; then
    9766   ac_cv_lib_MPT_MPT_GetTree=yes
    9767 else
    9768   echo "$as_me: failed program was:" >&5
    9769 sed 's/^/| /' conftest.$ac_ext >&5
    9770 
    9771 ac_cv_lib_MPT_MPT_GetTree=no
    9772 fi
    9773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    9774 LIBS=$ac_check_lib_save_LIBS
    9775 fi
    9776 echo "$as_me:$LINENO: result: $ac_cv_lib_MPT_MPT_GetTree" >&5
    9777 echo "${ECHO_T}$ac_cv_lib_MPT_MPT_GetTree" >&6
    9778 if test $ac_cv_lib_MPT_MPT_GetTree = yes; then
    9779   cat >>confdefs.h <<_ACEOF
    9780 #define HAVE_LIBMPT 1
    9781 _ACEOF
     4452    builtin and then its argument prototype would still apply.  */
     4453char MPT_GetTree();
     4454
     4455int main() {
     4456MPT_GetTree()
     4457; return 0; }
     4458EOF
     4459if { (eval echo configure:4460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4460  rm -rf conftest*
     4461  eval "ac_cv_lib_$ac_lib_var=yes"
     4462else
     4463  echo "configure: failed program was:" >&5
     4464  cat conftest.$ac_ext >&5
     4465  rm -rf conftest*
     4466  eval "ac_cv_lib_$ac_lib_var=no"
     4467fi
     4468rm -f conftest*
     4469LIBS="$ac_save_LIBS"
     4470
     4471fi
     4472if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     4473  echo "$ac_t""yes" 1>&6
     4474    ac_tr_lib=HAVE_LIB`echo MPT | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     4475    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     4476  cat >> confdefs.h <<EOF
     4477#define $ac_tr_lib 1
     4478EOF
    97824479
    97834480  LIBS="-lMPT $LIBS"
    97844481
     4482else
     4483  echo "$ac_t""no" 1>&6
    97854484fi
    97864485
    97874486LIBS=$SAVE_LIBS
    9788 
    9789 echo "$as_me:$LINENO: checking for atof in -lsingcf" >&5
    9790 echo $ECHO_N "checking for atof in -lsingcf... $ECHO_C" >&6
    9791 if test "${ac_cv_lib_singcf_atof+set}" = set; then
    9792   echo $ECHO_N "(cached) $ECHO_C" >&6
    9793 else
    9794   ac_check_lib_save_LIBS=$LIBS
     4487echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6
     4488echo "configure:4489: checking for atof in -lsingcf" >&5
     4489ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'`
     4490if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     4491  echo $ac_n "(cached) $ac_c" 1>&6
     4492else
     4493  ac_save_LIBS="$LIBS"
    97954494LIBS="-lsingcf  $LIBS"
    9796 cat >conftest.$ac_ext <<_ACEOF
    9797 #line $LINENO "configure"
    9798 /* confdefs.h.  */
    9799 _ACEOF
    9800 cat confdefs.h >>conftest.$ac_ext
    9801 cat >>conftest.$ac_ext <<_ACEOF
    9802 /* end confdefs.h.  */
    9803 
     4495cat > conftest.$ac_ext <<EOF
     4496#line 4497 "configure"
     4497#include "confdefs.h"
    98044498/* Override any gcc2 internal prototype to avoid an error.  */
    9805 #ifdef __cplusplus
    9806 extern "C"
    9807 #endif
    98084499/* We use char because int might match the return type of a gcc2
    9809    builtin and then its argument prototype would still apply.  */
    9810 char atof ();
    9811 int
    9812 main ()
    9813 {
    9814 atof ();
    9815   ;
    9816   return 0;
    9817 }
    9818 _ACEOF
    9819 rm -f conftest.$ac_objext conftest$ac_exeext
    9820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    9821   (eval $ac_link) 2>&5
    9822   ac_status=$?
    9823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9824   (exit $ac_status); } &&
    9825          { ac_try='test -s conftest$ac_exeext'
    9826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9827   (eval $ac_try) 2>&5
    9828   ac_status=$?
    9829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9830   (exit $ac_status); }; }; then
    9831   ac_cv_lib_singcf_atof=yes
    9832 else
    9833   echo "$as_me: failed program was:" >&5
    9834 sed 's/^/| /' conftest.$ac_ext >&5
    9835 
    9836 ac_cv_lib_singcf_atof=no
    9837 fi
    9838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    9839 LIBS=$ac_check_lib_save_LIBS
    9840 fi
    9841 echo "$as_me:$LINENO: result: $ac_cv_lib_singcf_atof" >&5
    9842 echo "${ECHO_T}$ac_cv_lib_singcf_atof" >&6
    9843 if test $ac_cv_lib_singcf_atof = yes; then
    9844   cat >>confdefs.h <<_ACEOF
    9845 #define HAVE_LIBSINGCF 1
    9846 _ACEOF
     4500    builtin and then its argument prototype would still apply.  */
     4501char atof();
     4502
     4503int main() {
     4504atof()
     4505; return 0; }
     4506EOF
     4507if { (eval echo configure:4508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4508  rm -rf conftest*
     4509  eval "ac_cv_lib_$ac_lib_var=yes"
     4510else
     4511  echo "configure: failed program was:" >&5
     4512  cat conftest.$ac_ext >&5
     4513  rm -rf conftest*
     4514  eval "ac_cv_lib_$ac_lib_var=no"
     4515fi
     4516rm -f conftest*
     4517LIBS="$ac_save_LIBS"
     4518
     4519fi
     4520if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     4521  echo "$ac_t""yes" 1>&6
     4522    ac_tr_lib=HAVE_LIB`echo singcf | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     4523    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     4524  cat >> confdefs.h <<EOF
     4525#define $ac_tr_lib 1
     4526EOF
    98474527
    98484528  LIBS="-lsingcf $LIBS"
    98494529
    9850 fi
    9851 
    9852 
    9853 echo "$as_me:$LINENO: checking for atof in -lsingfac" >&5
    9854 echo $ECHO_N "checking for atof in -lsingfac... $ECHO_C" >&6
    9855 if test "${ac_cv_lib_singfac_atof+set}" = set; then
    9856   echo $ECHO_N "(cached) $ECHO_C" >&6
    9857 else
    9858   ac_check_lib_save_LIBS=$LIBS
     4530else
     4531  echo "$ac_t""no" 1>&6
     4532fi
     4533
     4534echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6
     4535echo "configure:4536: checking for atof in -lsingfac" >&5
     4536ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'`
     4537if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     4538  echo $ac_n "(cached) $ac_c" 1>&6
     4539else
     4540  ac_save_LIBS="$LIBS"
    98594541LIBS="-lsingfac  $LIBS"
    9860 cat >conftest.$ac_ext <<_ACEOF
    9861 #line $LINENO "configure"
    9862 /* confdefs.h.  */
    9863 _ACEOF
    9864 cat confdefs.h >>conftest.$ac_ext
    9865 cat >>conftest.$ac_ext <<_ACEOF
    9866 /* end confdefs.h.  */
    9867 
     4542cat > conftest.$ac_ext <<EOF
     4543#line 4544 "configure"
     4544#include "confdefs.h"
    98684545/* Override any gcc2 internal prototype to avoid an error.  */
    9869 #ifdef __cplusplus
    9870 extern "C"
    9871 #endif
    98724546/* We use char because int might match the return type of a gcc2
    9873    builtin and then its argument prototype would still apply.  */
    9874 char atof ();
    9875 int
    9876 main ()
    9877 {
    9878 atof ();
    9879   ;
    9880   return 0;
    9881 }
    9882 _ACEOF
    9883 rm -f conftest.$ac_objext conftest$ac_exeext
    9884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    9885   (eval $ac_link) 2>&5
    9886   ac_status=$?
    9887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9888   (exit $ac_status); } &&
    9889          { ac_try='test -s conftest$ac_exeext'
    9890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9891   (eval $ac_try) 2>&5
    9892   ac_status=$?
    9893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9894   (exit $ac_status); }; }; then
    9895   ac_cv_lib_singfac_atof=yes
    9896 else
    9897   echo "$as_me: failed program was:" >&5
    9898 sed 's/^/| /' conftest.$ac_ext >&5
    9899 
    9900 ac_cv_lib_singfac_atof=no
    9901 fi
    9902 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    9903 LIBS=$ac_check_lib_save_LIBS
    9904 fi
    9905 echo "$as_me:$LINENO: result: $ac_cv_lib_singfac_atof" >&5
    9906 echo "${ECHO_T}$ac_cv_lib_singfac_atof" >&6
    9907 if test $ac_cv_lib_singfac_atof = yes; then
    9908   cat >>confdefs.h <<_ACEOF
    9909 #define HAVE_LIBSINGFAC 1
    9910 _ACEOF
     4547    builtin and then its argument prototype would still apply.  */
     4548char atof();
     4549
     4550int main() {
     4551atof()
     4552; return 0; }
     4553EOF
     4554if { (eval echo configure:4555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4555  rm -rf conftest*
     4556  eval "ac_cv_lib_$ac_lib_var=yes"
     4557else
     4558  echo "configure: failed program was:" >&5
     4559  cat conftest.$ac_ext >&5
     4560  rm -rf conftest*
     4561  eval "ac_cv_lib_$ac_lib_var=no"
     4562fi
     4563rm -f conftest*
     4564LIBS="$ac_save_LIBS"
     4565
     4566fi
     4567if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     4568  echo "$ac_t""yes" 1>&6
     4569    ac_tr_lib=HAVE_LIB`echo singfac | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     4570    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     4571  cat >> confdefs.h <<EOF
     4572#define $ac_tr_lib 1
     4573EOF
    99114574
    99124575  LIBS="-lsingfac $LIBS"
    99134576
    9914 fi
    9915 
    9916 
    9917 echo "$as_me:$LINENO: checking for omTestAddr in -lomalloc" >&5
    9918 echo $ECHO_N "checking for omTestAddr in -lomalloc... $ECHO_C" >&6
    9919 if test "${ac_cv_lib_omalloc_omTestAddr+set}" = set; then
    9920   echo $ECHO_N "(cached) $ECHO_C" >&6
    9921 else
    9922   ac_check_lib_save_LIBS=$LIBS
     4577else
     4578  echo "$ac_t""no" 1>&6
     4579fi
     4580
     4581echo $ac_n "checking for omTestAddr in -lomalloc""... $ac_c" 1>&6
     4582echo "configure:4583: checking for omTestAddr in -lomalloc" >&5
     4583ac_lib_var=`echo omalloc'_'omTestAddr | sed 'y%./+-%__p_%'`
     4584if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     4585  echo $ac_n "(cached) $ac_c" 1>&6
     4586else
     4587  ac_save_LIBS="$LIBS"
    99234588LIBS="-lomalloc  $LIBS"
    9924 cat >conftest.$ac_ext <<_ACEOF
    9925 #line $LINENO "configure"
    9926 /* confdefs.h.  */
    9927 _ACEOF
    9928 cat confdefs.h >>conftest.$ac_ext
    9929 cat >>conftest.$ac_ext <<_ACEOF
    9930 /* end confdefs.h.  */
    9931 
     4589cat > conftest.$ac_ext <<EOF
     4590#line 4591 "configure"
     4591#include "confdefs.h"
    99324592/* Override any gcc2 internal prototype to avoid an error.  */
    9933 #ifdef __cplusplus
    9934 extern "C"
    9935 #endif
    99364593/* We use char because int might match the return type of a gcc2
    9937    builtin and then its argument prototype would still apply.  */
    9938 char omTestAddr ();
    9939 int
    9940 main ()
    9941 {
    9942 omTestAddr ();
    9943   ;
    9944   return 0;
    9945 }
    9946 _ACEOF
    9947 rm -f conftest.$ac_objext conftest$ac_exeext
    9948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    9949   (eval $ac_link) 2>&5
    9950   ac_status=$?
    9951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9952   (exit $ac_status); } &&
    9953          { ac_try='test -s conftest$ac_exeext'
    9954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9955   (eval $ac_try) 2>&5
    9956   ac_status=$?
    9957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9958   (exit $ac_status); }; }; then
    9959   ac_cv_lib_omalloc_omTestAddr=yes
    9960 else
    9961   echo "$as_me: failed program was:" >&5
    9962 sed 's/^/| /' conftest.$ac_ext >&5
    9963 
    9964 ac_cv_lib_omalloc_omTestAddr=no
    9965 fi
    9966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    9967 LIBS=$ac_check_lib_save_LIBS
    9968 fi
    9969 echo "$as_me:$LINENO: result: $ac_cv_lib_omalloc_omTestAddr" >&5
    9970 echo "${ECHO_T}$ac_cv_lib_omalloc_omTestAddr" >&6
    9971 if test $ac_cv_lib_omalloc_omTestAddr = yes; then
    9972   cat >>confdefs.h <<_ACEOF
    9973 #define HAVE_LIBOMALLOC 1
    9974 _ACEOF
     4594    builtin and then its argument prototype would still apply.  */
     4595char omTestAddr();
     4596
     4597int main() {
     4598omTestAddr()
     4599; return 0; }
     4600EOF
     4601if { (eval echo configure:4602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4602  rm -rf conftest*
     4603  eval "ac_cv_lib_$ac_lib_var=yes"
     4604else
     4605  echo "configure: failed program was:" >&5
     4606  cat conftest.$ac_ext >&5
     4607  rm -rf conftest*
     4608  eval "ac_cv_lib_$ac_lib_var=no"
     4609fi
     4610rm -f conftest*
     4611LIBS="$ac_save_LIBS"
     4612
     4613fi
     4614if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     4615  echo "$ac_t""yes" 1>&6
     4616    ac_tr_lib=HAVE_LIB`echo omalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     4617    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     4618  cat >> confdefs.h <<EOF
     4619#define $ac_tr_lib 1
     4620EOF
    99754621
    99764622  LIBS="-lomalloc $LIBS"
    99774623
    9978 fi
    9979 
    9980 
    9981 echo "$as_me:$LINENO: checking for main in -lomalloc_ndebug" >&5
    9982 echo $ECHO_N "checking for main in -lomalloc_ndebug... $ECHO_C" >&6
    9983 if test "${ac_cv_lib_omalloc_ndebug_main+set}" = set; then
    9984   echo $ECHO_N "(cached) $ECHO_C" >&6
    9985 else
    9986   ac_check_lib_save_LIBS=$LIBS
     4624else
     4625  echo "$ac_t""no" 1>&6
     4626fi
     4627
     4628echo $ac_n "checking for main in -lomalloc_ndebug""... $ac_c" 1>&6
     4629echo "configure:4630: checking for main in -lomalloc_ndebug" >&5
     4630ac_lib_var=`echo omalloc_ndebug'_'main | sed 'y%./+-%__p_%'`
     4631if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     4632  echo $ac_n "(cached) $ac_c" 1>&6
     4633else
     4634  ac_save_LIBS="$LIBS"
    99874635LIBS="-lomalloc_ndebug  $LIBS"
    9988 cat >conftest.$ac_ext <<_ACEOF
    9989 #line $LINENO "configure"
    9990 /* confdefs.h.  */
    9991 _ACEOF
    9992 cat confdefs.h >>conftest.$ac_ext
    9993 cat >>conftest.$ac_ext <<_ACEOF
    9994 /* end confdefs.h.  */
    9995 
    9996 
    9997 int
    9998 main ()
    9999 {
    10000 main ();
    10001   ;
    10002   return 0;
    10003 }
    10004 _ACEOF
    10005 rm -f conftest.$ac_objext conftest$ac_exeext
    10006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    10007   (eval $ac_link) 2>&5
    10008   ac_status=$?
    10009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10010   (exit $ac_status); } &&
    10011          { ac_try='test -s conftest$ac_exeext'
    10012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    10013   (eval $ac_try) 2>&5
    10014   ac_status=$?
    10015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10016   (exit $ac_status); }; }; then
    10017   ac_cv_lib_omalloc_ndebug_main=yes
    10018 else
    10019   echo "$as_me: failed program was:" >&5
    10020 sed 's/^/| /' conftest.$ac_ext >&5
    10021 
    10022 ac_cv_lib_omalloc_ndebug_main=no
    10023 fi
    10024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    10025 LIBS=$ac_check_lib_save_LIBS
    10026 fi
    10027 echo "$as_me:$LINENO: result: $ac_cv_lib_omalloc_ndebug_main" >&5
    10028 echo "${ECHO_T}$ac_cv_lib_omalloc_ndebug_main" >&6
    10029 if test $ac_cv_lib_omalloc_ndebug_main = yes; then
    10030   cat >>confdefs.h <<_ACEOF
    10031 #define HAVE_LIBOMALLOC_NDEBUG 1
    10032 _ACEOF
     4636cat > conftest.$ac_ext <<EOF
     4637#line 4638 "configure"
     4638#include "confdefs.h"
     4639
     4640int main() {
     4641main()
     4642; return 0; }
     4643EOF
     4644if { (eval echo configure:4645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4645  rm -rf conftest*
     4646  eval "ac_cv_lib_$ac_lib_var=yes"
     4647else
     4648  echo "configure: failed program was:" >&5
     4649  cat conftest.$ac_ext >&5
     4650  rm -rf conftest*
     4651  eval "ac_cv_lib_$ac_lib_var=no"
     4652fi
     4653rm -f conftest*
     4654LIBS="$ac_save_LIBS"
     4655
     4656fi
     4657if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     4658  echo "$ac_t""yes" 1>&6
     4659    ac_tr_lib=HAVE_LIB`echo omalloc_ndebug | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     4660    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     4661  cat >> confdefs.h <<EOF
     4662#define $ac_tr_lib 1
     4663EOF
    100334664
    100344665  LIBS="-lomalloc_ndebug $LIBS"
    100354666
    10036 fi
    10037 
    10038 
    10039 echo "$as_me:$LINENO: checking for main in -lntl" >&5
    10040 echo $ECHO_N "checking for main in -lntl... $ECHO_C" >&6
    10041 if test "${ac_cv_lib_ntl_main+set}" = set; then
    10042   echo $ECHO_N "(cached) $ECHO_C" >&6
    10043 else
    10044   ac_check_lib_save_LIBS=$LIBS
     4667else
     4668  echo "$ac_t""no" 1>&6
     4669fi
     4670
     4671echo $ac_n "checking for main in -lntl""... $ac_c" 1>&6
     4672echo "configure:4673: checking for main in -lntl" >&5
     4673ac_lib_var=`echo ntl'_'main | sed 'y%./+-%__p_%'`
     4674if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     4675  echo $ac_n "(cached) $ac_c" 1>&6
     4676else
     4677  ac_save_LIBS="$LIBS"
    100454678LIBS="-lntl  $LIBS"
    10046 cat >conftest.$ac_ext <<_ACEOF
    10047 #line $LINENO "configure"
    10048 /* confdefs.h.  */
    10049 _ACEOF
    10050 cat confdefs.h >>conftest.$ac_ext
    10051 cat >>conftest.$ac_ext <<_ACEOF
    10052 /* end confdefs.h.  */
    10053 
    10054 
    10055 int
    10056 main ()
    10057 {
    10058 main ();
    10059   ;
    10060   return 0;
    10061 }
    10062 _ACEOF
    10063 rm -f conftest.$ac_objext conftest$ac_exeext
    10064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    10065   (eval $ac_link) 2>&5
    10066   ac_status=$?
    10067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10068   (exit $ac_status); } &&
    10069          { ac_try='test -s conftest$ac_exeext'
    10070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    10071   (eval $ac_try) 2>&5
    10072   ac_status=$?
    10073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10074   (exit $ac_status); }; }; then
    10075   ac_cv_lib_ntl_main=yes
    10076 else
    10077   echo "$as_me: failed program was:" >&5
    10078 sed 's/^/| /' conftest.$ac_ext >&5
    10079 
    10080 ac_cv_lib_ntl_main=no
    10081 fi
    10082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    10083 LIBS=$ac_check_lib_save_LIBS
    10084 fi
    10085 echo "$as_me:$LINENO: result: $ac_cv_lib_ntl_main" >&5
    10086 echo "${ECHO_T}$ac_cv_lib_ntl_main" >&6
    10087 if test $ac_cv_lib_ntl_main = yes; then
    10088   cat >>confdefs.h <<_ACEOF
    10089 #define HAVE_LIBNTL 1
    10090 _ACEOF
     4679cat > conftest.$ac_ext <<EOF
     4680#line 4681 "configure"
     4681#include "confdefs.h"
     4682
     4683int main() {
     4684main()
     4685; return 0; }
     4686EOF
     4687if { (eval echo configure:4688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4688  rm -rf conftest*
     4689  eval "ac_cv_lib_$ac_lib_var=yes"
     4690else
     4691  echo "configure: failed program was:" >&5
     4692  cat conftest.$ac_ext >&5
     4693  rm -rf conftest*
     4694  eval "ac_cv_lib_$ac_lib_var=no"
     4695fi
     4696rm -f conftest*
     4697LIBS="$ac_save_LIBS"
     4698
     4699fi
     4700if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     4701  echo "$ac_t""yes" 1>&6
     4702    ac_tr_lib=HAVE_LIB`echo ntl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     4703    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     4704  cat >> confdefs.h <<EOF
     4705#define $ac_tr_lib 1
     4706EOF
    100914707
    100924708  LIBS="-lntl $LIBS"
    100934709
    10094 fi
    10095 
    10096 
    10097 
    10098 
    10099 
    10100 
    10101 
    10102 
    10103 
    10104 
    10105 for ac_header in gmp.h smallgmp.h MP.h  MPT.h factory.h factor.h omalloc.h \
     4710else
     4711  echo "$ac_t""no" 1>&6
     4712fi
     4713
     4714
     4715for ac_hdr in gmp.h smallgmp.h MP.h  MPT.h factory.h factor.h omalloc.h \
    101064716 omalloc.c
    101074717do
    10108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    10109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    10110   echo "$as_me:$LINENO: checking for $ac_header" >&5
    10111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    10112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    10113   echo $ECHO_N "(cached) $ECHO_C" >&6
    10114 fi
    10115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    10116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    10117 else
    10118   # Is the header compilable?
    10119 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    10120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    10121 cat >conftest.$ac_ext <<_ACEOF
    10122 #line $LINENO "configure"
    10123 /* confdefs.h.  */
    10124 _ACEOF
    10125 cat confdefs.h >>conftest.$ac_ext
    10126 cat >>conftest.$ac_ext <<_ACEOF
    10127 /* end confdefs.h.  */
    10128 $ac_includes_default
    10129 #include <$ac_header>
    10130 _ACEOF
    10131 rm -f conftest.$ac_objext
    10132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    10133   (eval $ac_compile) 2>&5
    10134   ac_status=$?
    10135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10136   (exit $ac_status); } &&
    10137          { ac_try='test -s conftest.$ac_objext'
    10138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    10139   (eval $ac_try) 2>&5
    10140   ac_status=$?
    10141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10142   (exit $ac_status); }; }; then
    10143   ac_header_compiler=yes
    10144 else
    10145   echo "$as_me: failed program was:" >&5
    10146 sed 's/^/| /' conftest.$ac_ext >&5
    10147 
    10148 ac_header_compiler=no
    10149 fi
    10150 rm -f conftest.$ac_objext conftest.$ac_ext
    10151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    10152 echo "${ECHO_T}$ac_header_compiler" >&6
    10153 
    10154 # Is the header present?
    10155 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    10156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    10157 cat >conftest.$ac_ext <<_ACEOF
    10158 #line $LINENO "configure"
    10159 /* confdefs.h.  */
    10160 _ACEOF
    10161 cat confdefs.h >>conftest.$ac_ext
    10162 cat >>conftest.$ac_ext <<_ACEOF
    10163 /* end confdefs.h.  */
    10164 #include <$ac_header>
    10165 _ACEOF
    10166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    10167   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    10168   ac_status=$?
    10169   grep -v '^ *+' conftest.er1 >conftest.err
    10170   rm -f conftest.er1
    10171   cat conftest.err >&5
    10172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10173   (exit $ac_status); } >/dev/null; then
    10174   if test -s conftest.err; then
    10175     ac_cpp_err=$ac_c_preproc_warn_flag
    10176   else
    10177     ac_cpp_err=
    10178   fi
    10179 else
    10180   ac_cpp_err=yes
    10181 fi
    10182 if test -z "$ac_cpp_err"; then
    10183   ac_header_preproc=yes
    10184 else
    10185   echo "$as_me: failed program was:" >&5
    10186 sed 's/^/| /' conftest.$ac_ext >&5
    10187 
    10188   ac_header_preproc=no
    10189 fi
    10190 rm -f conftest.err conftest.$ac_ext
    10191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    10192 echo "${ECHO_T}$ac_header_preproc" >&6
    10193 
    10194 # So?  What about this header?
    10195 case $ac_header_compiler:$ac_header_preproc in
    10196   yes:no )
    10197     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    10198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    10199     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    10200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    10201     (
    10202       cat <<\_ASBOX
    10203 ## ------------------------------------ ##
    10204 ## Report this to bug-autoconf@gnu.org. ##
    10205 ## ------------------------------------ ##
    10206 _ASBOX
    10207     ) |
    10208       sed "s/^/$as_me: WARNING:     /" >&2
    10209     ;;
    10210   no:yes )
    10211     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    10212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    10213     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
    10214 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    10215     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    10216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    10217     (
    10218       cat <<\_ASBOX
    10219 ## ------------------------------------ ##
    10220 ## Report this to bug-autoconf@gnu.org. ##
    10221 ## ------------------------------------ ##
    10222 _ASBOX
    10223     ) |
    10224       sed "s/^/$as_me: WARNING:     /" >&2
    10225     ;;
    10226 esac
    10227 echo "$as_me:$LINENO: checking for $ac_header" >&5
    10228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    10229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    10230   echo $ECHO_N "(cached) $ECHO_C" >&6
    10231 else
    10232   eval "$as_ac_Header=$ac_header_preproc"
    10233 fi
    10234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    10235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    10236 
    10237 fi
    10238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    10239   cat >>confdefs.h <<_ACEOF
    10240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    10241 _ACEOF
    10242 
    10243 fi
    10244 
     4718ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
     4719echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
     4720echo "configure:4721: checking for $ac_hdr" >&5
     4721if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
     4722  echo $ac_n "(cached) $ac_c" 1>&6
     4723else
     4724  cat > conftest.$ac_ext <<EOF
     4725#line 4726 "configure"
     4726#include "confdefs.h"
     4727#include <$ac_hdr>
     4728EOF
     4729ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     4730{ (eval echo configure:4731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     4731ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     4732if test -z "$ac_err"; then
     4733  rm -rf conftest*
     4734  eval "ac_cv_header_$ac_safe=yes"
     4735else
     4736  echo "$ac_err" >&5
     4737  echo "configure: failed program was:" >&5
     4738  cat conftest.$ac_ext >&5
     4739  rm -rf conftest*
     4740  eval "ac_cv_header_$ac_safe=no"
     4741fi
     4742rm -f conftest*
     4743fi
     4744if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
     4745  echo "$ac_t""yes" 1>&6
     4746    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
     4747  cat >> confdefs.h <<EOF
     4748#define $ac_tr_hdr 1
     4749EOF
     4750 
     4751else
     4752  echo "$ac_t""no" 1>&6
     4753fi
    102454754done
    102464755
     
    102874796# evaluate results
    102884797if test "$ac_cv_omalloc_ok" != yes && test "$enable_omalloc" != yes; then
    10289   { { echo "$as_me:$LINENO: error: can not build without omalloc" >&5
    10290 echo "$as_me: error: can not build without omalloc" >&2;}
    10291    { (exit 1); exit 1; }; }
    10292 fi
    10293 
    10294 echo "$as_me:$LINENO: checking which apint package to use" >&5
    10295 echo $ECHO_N "checking which apint package to use... $ECHO_C" >&6
     4798  { echo "configure: error: can not build without omalloc" 1>&2; exit 1; }
     4799fi
     4800
     4801echo $ac_n "checking which apint package to use""... $ac_c" 1>&6
     4802echo "configure:4803: checking which apint package to use" >&5
    102964803if test "${with_apint}" != gmp && test "${with_apint}" != smallgmp; then
    102974804  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
    10298     echo "$as_me:$LINENO: result: gmp" >&5
    10299 echo "${ECHO_T}gmp" >&6
     4805    echo "$ac_t""gmp" 1>&6
    103004806    will_have_gmp=yes
    103014807    NEED_LIBS="-lgmp ${NEED_LIBS}"
    103024808  elif test "ac_gmp_smallgmp_ok" = yes || test "$enable_smallgmp" = "yes"; then
    10303     echo "$as_me:$LINENO: result: smallgmp" >&5
    10304 echo "${ECHO_T}smallgmp" >&6
    10305     cat >>confdefs.h <<\_ACEOF
     4809    echo "$ac_t""smallgmp" 1>&6
     4810    cat >> confdefs.h <<\EOF
    103064811#define HAVE_SMALLGMP 1
    10307 _ACEOF
     4812EOF
    103084813
    103094814    NEED_LIBS="-lsmallgmp ${NEED_LIBS}"
    103104815  else
    10311     echo "$as_me:$LINENO: result: none" >&5
    10312 echo "${ECHO_T}none" >&6
    10313     { { echo "$as_me:$LINENO: error: can not build without gmp or smallgmp" >&5
    10314 echo "$as_me: error: can not build without gmp or smallgmp" >&2;}
    10315    { (exit 1); exit 1; }; }
     4816    echo "$ac_t""none" 1>&6
     4817    { echo "configure: error: can not build without gmp or smallgmp" 1>&2; exit 1; }
    103164818  fi
    103174819elif test "${with_apint}" = gmp; then
    103184820  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
    10319     echo "$as_me:$LINENO: result: gmp" >&5
    10320 echo "${ECHO_T}gmp" >&6
     4821    echo "$ac_t""gmp" 1>&6
    103214822    will_have_gmp=yes
    103224823    NEED_LIBS="-lgmp ${NEED_LIBS}"
    103234824  else
    10324     echo "$as_me:$LINENO: result: none" >&5
    10325 echo "${ECHO_T}none" >&6
    10326     { { echo "$as_me:$LINENO: error: can not build with gmp" >&5
    10327 echo "$as_me: error: can not build with gmp" >&2;}
    10328    { (exit 1); exit 1; }; }
     4825    echo "$ac_t""none" 1>&6
     4826    { echo "configure: error: can not build with gmp" 1>&2; exit 1; }
    103294827  fi
    103304828else
    103314829  if test "ac_gmp_smallgmp_ok" = yes || test "$enable_smallgmp" = "yes"; then
    10332     echo "$as_me:$LINENO: result: smallgmp" >&5
    10333 echo "${ECHO_T}smallgmp" >&6
    10334     cat >>confdefs.h <<\_ACEOF
     4830    echo "$ac_t""smallgmp" 1>&6
     4831    cat >> confdefs.h <<\EOF
    103354832#define HAVE_SMALLGMP 1
    10336 _ACEOF
     4833EOF
    103374834
    103384835    NEED_LIBS="-lsmallgmp ${NEED_LIBS}"
    103394836  else
    10340     echo "$as_me:$LINENO: result: none" >&5
    10341 echo "${ECHO_T}none" >&6
    10342     { { echo "$as_me:$LINENO: error: can not build with smallgmp" >&5
    10343 echo "$as_me: error: can not build with smallgmp" >&2;}
    10344    { (exit 1); exit 1; }; }
     4837    echo "$ac_t""none" 1>&6
     4838    { echo "configure: error: can not build with smallgmp" 1>&2; exit 1; }
    103454839  fi
    103464840fi
    103474841
    103484842#
    10349 echo "$as_me:$LINENO: checking whether to have MP" >&5
    10350 echo $ECHO_N "checking whether to have MP... $ECHO_C" >&6
     4843echo $ac_n "checking whether to have MP""... $ac_c" 1>&6
     4844echo "configure:4845: checking whether to have MP" >&5
    103514845if test "${with_MP}" != yes && test "${with_MP}" != no; then
    103524846  if (test "${will_have_gmp}" = yes) && \
    103534847     (test "$ac_MP_ok" =  yes || test "$enable_MP" = yes); then
    10354     echo "$as_me:$LINENO: result: yes" >&5
    10355 echo "${ECHO_T}yes" >&6
    10356     cat >>confdefs.h <<\_ACEOF
     4848    echo "$ac_t""yes" 1>&6
     4849    cat >> confdefs.h <<\EOF
    103574850#define HAVE_MPSR 1
    10358 _ACEOF
     4851EOF
    103594852
    103604853    HAVE_MPSR=1
    103614854    MP_LIBS="-lMPT -lMP ${MP_LIBS}"
    103624855  else
    10363     echo "$as_me:$LINENO: result: no" >&5
    10364 echo "${ECHO_T}no" >&6
     4856    echo "$ac_t""no" 1>&6
    103654857  fi
    103664858elif  test "${with_MP}" = yes; then
    103674859  if (test "${will_have_gmp}" = yes) && \
    103684860     (test "$ac_MP_ok" =  yes || test "$enable_MP" = yes); then
    10369     echo "$as_me:$LINENO: result: yes" >&5
    10370 echo "${ECHO_T}yes" >&6
    10371     cat >>confdefs.h <<\_ACEOF
     4861    echo "$ac_t""yes" 1>&6
     4862    cat >> confdefs.h <<\EOF
    103724863#define HAVE_MPSR 1
    10373 _ACEOF
     4864EOF
    103744865
    103754866    HAVE_MPSR=1
    103764867    MP_LIBS="-lMPT -lMP ${MP_LIBS}"
    103774868  else
    10378     echo "$as_me:$LINENO: result: no" >&5
    10379 echo "${ECHO_T}no" >&6
    10380     { { echo "$as_me:$LINENO: error: can not build with MP" >&5
    10381 echo "$as_me: error: can not build with MP" >&2;}
    10382    { (exit 1); exit 1; }; }
     4869    echo "$ac_t""no" 1>&6
     4870    { echo "configure: error: can not build with MP" 1>&2; exit 1; }
    103834871  fi
    103844872else
    10385   echo "$as_me:$LINENO: result: no" >&5
    10386 echo "${ECHO_T}no" >&6
    10387 fi
    10388 
    10389 
    10390 
    10391 echo "$as_me:$LINENO: checking whether to have NTL" >&5
    10392 echo $ECHO_N "checking whether to have NTL... $ECHO_C" >&6
     4873  echo "$ac_t""no" 1>&6
     4874fi
     4875
     4876
     4877
     4878echo $ac_n "checking whether to have NTL""... $ac_c" 1>&6
     4879echo "configure:4880: checking whether to have NTL" >&5
    103934880if test "${with_NTL}" = yes ; then
    10394   echo "$as_me:$LINENO: result: yes" >&5
    10395 echo "${ECHO_T}yes" >&6
     4881  echo "$ac_t""yes" 1>&6
    103964882  NEED_LIBS="-lntl ${NEED_LIBS}"
    103974883else
    10398   echo "$as_me:$LINENO: result: no" >&5
    10399 echo "${ECHO_T}no" >&6
    10400 fi
    10401 
    10402 echo "$as_me:$LINENO: checking whether to have factory" >&5
    10403 echo $ECHO_N "checking whether to have factory... $ECHO_C" >&6
     4884  echo "$ac_t""no" 1>&6
     4885fi
     4886
     4887echo $ac_n "checking whether to have factory""... $ac_c" 1>&6
     4888echo "configure:4889: checking whether to have factory" >&5
    104044889if test "${with_factory}" != yes && test "${with_factory}" != no; then
    104054890  if test "$ac_factory_ok" =  yes || test "$enable_factory" = yes; then
    10406     echo "$as_me:$LINENO: result: yes" >&5
    10407 echo "${ECHO_T}yes" >&6
    10408     cat >>confdefs.h <<\_ACEOF
     4891    echo "$ac_t""yes" 1>&6
     4892    cat >> confdefs.h <<\EOF
    104094893#define HAVE_FACTORY 1
    10410 _ACEOF
     4894EOF
    104114895
    104124896    will_have_factory=yes
    104134897    NEED_LIBS="-lsingcf ${NEED_LIBS}"
    104144898  else
    10415     echo "$as_me:$LINENO: result: no" >&5
    10416 echo "${ECHO_T}no" >&6
     4899    echo "$ac_t""no" 1>&6
    104174900  fi
    104184901elif  test "${with_factory}" = yes; then
    104194902  if test "$ac_factory_ok" =  yes || test "$enable_factory" = yes; then
    10420     echo "$as_me:$LINENO: result: yes" >&5
    10421 echo "${ECHO_T}yes" >&6
    10422     cat >>confdefs.h <<\_ACEOF
     4903    echo "$ac_t""yes" 1>&6
     4904    cat >> confdefs.h <<\EOF
    104234905#define HAVE_FACTORY 1
    10424 _ACEOF
     4906EOF
    104254907
    104264908    will_have_factory=yes
    104274909    NEED_LIBS="-lsingcf ${NEED_LIBS}"
    104284910  else
    10429     echo "$as_me:$LINENO: result: no" >&5
    10430 echo "${ECHO_T}no" >&6
    10431     { { echo "$as_me:$LINENO: error: can not build with factory" >&5
    10432 echo "$as_me: error: can not build with factory" >&2;}
    10433    { (exit 1); exit 1; }; }
     4911    echo "$ac_t""no" 1>&6
     4912    { echo "configure: error: can not build with factory" 1>&2; exit 1; }
    104344913  fi
    104354914else
    10436   echo "$as_me:$LINENO: result: no" >&5
    10437 echo "${ECHO_T}no" >&6
    10438 fi
    10439 
    10440 echo "$as_me:$LINENO: checking whether to have libfac" >&5
    10441 echo $ECHO_N "checking whether to have libfac... $ECHO_C" >&6
     4915  echo "$ac_t""no" 1>&6
     4916fi
     4917
     4918echo $ac_n "checking whether to have libfac""... $ac_c" 1>&6
     4919echo "configure:4920: checking whether to have libfac" >&5
    104424920if test "${with_libfac}" != yes && test "${with_libfac}" != no; then
    104434921  if (test "${will_have_factory}" = yes) && \
    104444922     (test "$ac_libfac_ok" =  yes || test "$enable_libfac" = yes); then
    10445     echo "$as_me:$LINENO: result: yes" >&5
    10446 echo "${ECHO_T}yes" >&6
    10447     cat >>confdefs.h <<\_ACEOF
     4923    echo "$ac_t""yes" 1>&6
     4924    cat >> confdefs.h <<\EOF
    104484925#define HAVE_LIBFAC_P 1
    10449 _ACEOF
     4926EOF
    104504927
    104514928    NEED_LIBS="-lsingfac ${NEED_LIBS}"
    104524929  else
    10453     echo "$as_me:$LINENO: result: no" >&5
    10454 echo "${ECHO_T}no" >&6
     4930    echo "$ac_t""no" 1>&6
    104554931  fi
    104564932elif  test "${with_libfac}" = yes; then
    104574933  if (test "${will_have_factory}" = yes) && \
    104584934     (test "$ac_libfac_ok" =  yes || test "$enable_libfac" = yes); then
    10459     echo "$as_me:$LINENO: result: yes" >&5
    10460 echo "${ECHO_T}yes" >&6
    10461     cat >>confdefs.h <<\_ACEOF
     4935    echo "$ac_t""yes" 1>&6
     4936    cat >> confdefs.h <<\EOF
    104624937#define HAVE_LIBFAC_P 1
    10463 _ACEOF
     4938EOF
    104644939
    104654940    NEED_LIBS="-lsingfac ${NEED_LIBS}"
    104664941  else
    10467     echo "$as_me:$LINENO: result: no" >&5
    10468 echo "${ECHO_T}no" >&6
    10469     { { echo "$as_me:$LINENO: error: can not build with libfac" >&5
    10470 echo "$as_me: error: can not build with libfac" >&2;}
    10471    { (exit 1); exit 1; }; }
     4942    echo "$ac_t""no" 1>&6
     4943    { echo "configure: error: can not build with libfac" 1>&2; exit 1; }
    104724944  fi
    104734945else
    10474   echo "$as_me:$LINENO: result: no" >&5
    10475 echo "${ECHO_T}no" >&6
    10476 fi
    10477 
    10478 
    10479 
    10480 
    10481 echo "$as_me:$LINENO: checking whether to have dbm links" >&5
    10482 echo $ECHO_N "checking whether to have dbm links... $ECHO_C" >&6
     4946  echo "$ac_t""no" 1>&6
     4947fi
     4948
     4949
     4950
     4951
     4952echo $ac_n "checking whether to have dbm links""... $ac_c" 1>&6
     4953echo "configure:4954: checking whether to have dbm links" >&5
    104834954if test "$with_dbm" != no; then
    10484   cat >>confdefs.h <<\_ACEOF
     4955  cat >> confdefs.h <<\EOF
    104854956#define HAVE_DBM 1
    10486 _ACEOF
    10487 
    10488   echo "$as_me:$LINENO: result: yes" >&5
    10489 echo "${ECHO_T}yes" >&6
    10490 else
    10491   echo "$as_me:$LINENO: result: no" >&5
    10492 echo "${ECHO_T}no" >&6
    10493 fi
    10494 
    10495 echo "$as_me:$LINENO: checking whether to have namespaces" >&5
    10496 echo $ECHO_N "checking whether to have namespaces... $ECHO_C" >&6
     4957EOF
     4958
     4959  echo "$ac_t""yes" 1>&6
     4960else
     4961  echo "$ac_t""no" 1>&6
     4962fi
     4963
     4964echo $ac_n "checking whether to have namespaces""... $ac_c" 1>&6
     4965echo "configure:4966: checking whether to have namespaces" >&5
    104974966if test "$with_namespaces" != no; then
    10498   echo "$as_me:$LINENO: result: yes" >&5
    10499 echo "${ECHO_T}yes" >&6
    10500   cat >>confdefs.h <<\_ACEOF
     4967  echo "$ac_t""yes" 1>&6
     4968  cat >> confdefs.h <<\EOF
    105014969#define HAVE_NS 1
    10502 _ACEOF
    10503 
    10504 else
    10505   echo "$as_me:$LINENO: result: no" >&5
    10506 echo "${ECHO_T}no" >&6
    10507 fi
    10508 
    10509 echo "$as_me:$LINENO: checking whether to have dynamic modules" >&5
    10510 echo $ECHO_N "checking whether to have dynamic modules... $ECHO_C" >&6
     4970EOF
     4971
     4972else
     4973  echo "$ac_t""no" 1>&6
     4974fi
     4975
     4976echo $ac_n "checking whether to have dynamic modules""... $ac_c" 1>&6
     4977echo "configure:4978: checking whether to have dynamic modules" >&5
    105114978if test "$with_dynamic_modules" = no || test "$ac_have_dl" != yes; then
    10512   echo "$as_me:$LINENO: result: no" >&5
    10513 echo "${ECHO_T}no" >&6
    10514 else
    10515   cat >>confdefs.h <<\_ACEOF
     4979  echo "$ac_t""no" 1>&6
     4980else
     4981  cat >> confdefs.h <<\EOF
    105164982#define HAVE_DYNAMIC_LOADING 1
    10517 _ACEOF
    10518 
    10519   echo "$as_me:$LINENO: result: yes" >&5
    10520 echo "${ECHO_T}yes" >&6
    10521 fi
    10522 
    10523 echo "$as_me:$LINENO: checking whether to have dynamic kernel" >&5
    10524 echo $ECHO_N "checking whether to have dynamic kernel... $ECHO_C" >&6
     4983EOF
     4984
     4985  echo "$ac_t""yes" 1>&6
     4986fi
     4987
     4988echo $ac_n "checking whether to have dynamic kernel""... $ac_c" 1>&6
     4989echo "configure:4990: checking whether to have dynamic kernel" >&5
    105254990if test "$with_dynamic_kernel" != no && test "$ac_lib_dl" = yes; then
    105264991  DL_KERNEL=1
    10527 
    10528   echo "$as_me:$LINENO: result: yes" >&5
    10529 echo "${ECHO_T}yes" >&6
    10530 else
    10531   echo "$as_me:$LINENO: result: no" >&5
    10532 echo "${ECHO_T}no" >&6
    10533 fi
    10534 
    10535 echo "$as_me:$LINENO: checking whether to have Plural" >&5
    10536 echo $ECHO_N "checking whether to have Plural... $ECHO_C" >&6
     4992 
     4993  echo "$ac_t""yes" 1>&6
     4994else
     4995  echo "$ac_t""no" 1>&6
     4996fi
     4997
     4998echo $ac_n "checking whether to have Plural""... $ac_c" 1>&6
     4999echo "configure:5000: checking whether to have Plural" >&5
    105375000if test "$with_Plural" != yes && test "$enable_Plural" != yes; then
    10538   echo "$as_me:$LINENO: result: no" >&5
    10539 echo "${ECHO_T}no" >&6
    10540 else
    10541   cat >>confdefs.h <<\_ACEOF
     5001  echo "$ac_t""no" 1>&6
     5002else
     5003  cat >> confdefs.h <<\EOF
    105425004#define HAVE_PLURAL 1
    10543 _ACEOF
    10544 
    10545   echo "$as_me:$LINENO: result: yes" >&5
    10546 echo "${ECHO_T}yes" >&6
     5005EOF
     5006
     5007  echo "$ac_t""yes" 1>&6
    105475008  PLURAL=1
    10548 
     5009 
    105495010fi
    105505011
     
    105565017fi
    105575018
    10558           ac_config_files="$ac_config_files ${OUTPUT_MAKEFILES}"
    10559           ac_config_commands="$ac_config_commands default"
    10560 cat >confcache <<\_ACEOF
     5019trap '' 1 2 15
     5020cat > confcache <<\EOF
    105615021# This file is a shell script that caches the results of configure
    105625022# tests run on this system so they can be shared between configure
    10563 # scripts and configure runs, see configure's option --config-cache.
    10564 # It is not useful on other systems.  If it contains results you don't
    10565 # want to keep, you may remove or edit it.
     5023# scripts and configure runs.  It is not useful on other systems.
     5024# If it contains results you don't want to keep, you may remove or edit it.
    105665025#
    10567 # config.status only pays attention to the cache file if you give it
    10568 # the --recheck option to rerun configure.
     5026# By default, configure uses ./config.cache as the cache file,
     5027# creating it if it does not exist already.  You can give configure
     5028# the --cache-file=FILE option to use a different cache file; that is
     5029# what configure does when it calls configure scripts in
     5030# subdirectories, so they share the cache.
     5031# Giving --cache-file=/dev/null disables caching, for debugging configure.
     5032# config.status only pays attention to the cache file if you give it the
     5033# --recheck option to rerun configure.
    105695034#
    10570 # `ac_cv_env_foo' variables (set or unset) will be overridden when
    10571 # loading this file, other *unset* `ac_cv_foo' will be assigned the
    10572 # following values.
    10573 
    10574 _ACEOF
    10575 
     5035EOF
    105765036# The following way of writing the cache mishandles newlines in values,
    105775037# but we know of no workaround that is simple, portable, and efficient.
     
    105795039# Ultrix sh set writes to stderr and can't be redirected directly,
    105805040# and sets the high bit in the cache file unless we assign to the vars.
    10581 {
    10582   (set) 2>&1 |
    10583     case `(ac_space=' '; set | grep ac_space) 2>&1` in
    10584     *ac_space=\ *)
    10585       # `set' does not quote correctly, so add quotes (double-quote
    10586       # substitution turns \\\\ into \\, and sed turns \\ into \).
    10587       sed -n \
    10588         "s/'/'\\\\''/g;
    10589           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
    10590       ;;
    10591     *)
    10592       # `set' quotes correctly as required by POSIX, so do not add quotes.
    10593       sed -n \
    10594         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    10595       ;;
    10596     esac;
    10597 } |
    10598   sed '
    10599      t clear
    10600      : clear
    10601      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
    10602      t end
    10603      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
    10604      : end' >>confcache
    10605 if diff $cache_file confcache >/dev/null 2>&1; then :; else
     5041(set) 2>&1 |
     5042  case `(ac_space=' '; set | grep ac_space) 2>&1` in
     5043  *ac_space=\ *)
     5044    # `set' does not quote correctly, so add quotes (double-quote substitution
     5045    # turns \\\\ into \\, and sed turns \\ into \).
     5046    sed -n \
     5047      -e "s/'/'\\\\''/g" \
     5048      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
     5049    ;;
     5050  *)
     5051    # `set' quotes correctly as required by POSIX, so do not add quotes.
     5052    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
     5053    ;;
     5054  esac >> confcache
     5055if cmp -s $cache_file confcache; then
     5056  :
     5057else
    106065058  if test -w $cache_file; then
    10607     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
    10608     cat confcache >$cache_file
     5059    echo "updating cache $cache_file"
     5060    cat confcache > $cache_file
    106095061  else
    106105062    echo "not updating unwritable cache $cache_file"
     
    106135065rm -f confcache
    106145066
     5067trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
     5068
    106155069test "x$prefix" = xNONE && prefix=$ac_default_prefix
    106165070# Let make expand exec_prefix.
    106175071test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    106185072
    10619 # VPATH may cause trouble with some makes, so we remove $(srcdir),
    10620 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
    10621 # trailing colons and then remove the whole line if VPATH becomes empty
    10622 # (actually we leave an empty line to preserve line numbers).
     5073# Any assignment to VPATH causes Sun make to only execute
     5074# the first set of double-colon rules, so remove it if not needed.
     5075# If there is a colon in the path, we need to keep it.
    106235076if test "x$srcdir" = x.; then
    10624   ac_vpsub='/^[         ]*VPATH[        ]*=/{
    10625 s/:*\$(srcdir):*/:/;
    10626 s/:*\${srcdir}:*/:/;
    10627 s/:*@srcdir@:*/:/;
    10628 s/^\([^=]*=[    ]*\):*/\1/;
    10629 s/:*$//;
    10630 s/^[^=]*=[      ]*$//;
    10631 }'
    10632 fi
     5077  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
     5078fi
     5079
     5080trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
    106335081
    106345082DEFS=-DHAVE_CONFIG_H
    106355083
    10636 ac_libobjs=
    10637 ac_ltlibobjs=
    10638 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
    10639   # 1. Remove the extension, and $U if already installed.
    10640   ac_i=`echo "$ac_i" |
    10641          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
    10642   # 2. Add them.
    10643   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
    10644   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
     5084# Without the "./", some shells look in PATH for config.status.
     5085: ${CONFIG_STATUS=./config.status}
     5086
     5087echo creating $CONFIG_STATUS
     5088rm -f $CONFIG_STATUS
     5089cat > $CONFIG_STATUS <<EOF
     5090#! /bin/sh
     5091# Generated automatically by configure.
     5092# Run this file to recreate the current configuration.
     5093# This directory was configured as follows,
     5094# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
     5095#
     5096# $0 $ac_configure_args
     5097#
     5098# Compiler output produced by configure, useful for debugging
     5099# configure, is in ./config.log if it exists.
     5100
     5101ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
     5102for ac_option
     5103do
     5104  case "\$ac_option" in
     5105  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
     5106    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
     5107    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
     5108  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
     5109    echo "$CONFIG_STATUS generated by autoconf version 2.13"
     5110    exit 0 ;;
     5111  -help | --help | --hel | --he | --h)
     5112    echo "\$ac_cs_usage"; exit 0 ;;
     5113  *) echo "\$ac_cs_usage"; exit 1 ;;
     5114  esac
    106455115done
    10646 LIBOBJS=$ac_libobjs
    10647 
    10648 LTLIBOBJS=$ac_ltlibobjs
    10649 
    10650 
    10651 
    10652 : ${CONFIG_STATUS=./config.status}
    10653 ac_clean_files_save=$ac_clean_files
    10654 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
    10655 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
    10656 echo "$as_me: creating $CONFIG_STATUS" >&6;}
    10657 cat >$CONFIG_STATUS <<_ACEOF
    10658 #! $SHELL
    10659 # Generated by $as_me.
    10660 # Run this file to recreate the current configuration.
    10661 # Compiler output produced by configure, useful for debugging
    10662 # configure, is in config.log if it exists.
    10663 
    10664 debug=false
    10665 ac_cs_recheck=false
    10666 ac_cs_silent=false
    10667 SHELL=\${CONFIG_SHELL-$SHELL}
    10668 _ACEOF
    10669 
    10670 cat >>$CONFIG_STATUS <<\_ACEOF
    10671 ## --------------------- ##
    10672 ## M4sh Initialization.  ##
    10673 ## --------------------- ##
    10674 
    10675 # Be Bourne compatible
    10676 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    10677   emulate sh
    10678   NULLCMD=:
    10679   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    10680   # is contrary to our usage.  Disable this feature.
    10681   alias -g '${1+"$@"}'='"$@"'
    10682 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    10683   set -o posix
    10684 fi
    10685 
    10686 # Support unset when possible.
    10687 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
    10688   as_unset=unset
    10689 else
    10690   as_unset=false
    10691 fi
    10692 
    10693 
    10694 # Work around bugs in pre-3.0 UWIN ksh.
    10695 $as_unset ENV MAIL MAILPATH
    10696 PS1='$ '
    10697 PS2='> '
    10698 PS4='+ '
    10699 
    10700 # NLS nuisances.
    10701 for as_var in \
    10702   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    10703   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    10704   LC_TELEPHONE LC_TIME
    10705 do
    10706   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
    10707     eval $as_var=C; export $as_var
     5116
     5117ac_given_srcdir=$srcdir
     5118ac_given_INSTALL="$INSTALL"
     5119
     5120trap 'rm -fr `echo "${OUTPUT_MAKEFILES} mod2.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
     5121EOF
     5122cat >> $CONFIG_STATUS <<EOF
     5123
     5124# Protect against being on the right side of a sed subst in config.status.
     5125sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
     5126 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
     5127$ac_vpsub
     5128$extrasub
     5129s%@SHELL@%$SHELL%g
     5130s%@CFLAGS@%$CFLAGS%g
     5131s%@CPPFLAGS@%$CPPFLAGS%g
     5132s%@CXXFLAGS@%$CXXFLAGS%g
     5133s%@FFLAGS@%$FFLAGS%g
     5134s%@DEFS@%$DEFS%g
     5135s%@LDFLAGS@%$LDFLAGS%g
     5136s%@LIBS@%$LIBS%g
     5137s%@exec_prefix@%$exec_prefix%g
     5138s%@prefix@%$prefix%g
     5139s%@program_transform_name@%$program_transform_name%g
     5140s%@bindir@%$bindir%g
     5141s%@sbindir@%$sbindir%g
     5142s%@libexecdir@%$libexecdir%g
     5143s%@datadir@%$datadir%g
     5144s%@sysconfdir@%$sysconfdir%g
     5145s%@sharedstatedir@%$sharedstatedir%g
     5146s%@localstatedir@%$localstatedir%g
     5147s%@libdir@%$libdir%g
     5148s%@includedir@%$includedir%g
     5149s%@oldincludedir@%$oldincludedir%g
     5150s%@infodir@%$infodir%g
     5151s%@mandir@%$mandir%g
     5152s%@SINGUNAME@%$SINGUNAME%g
     5153s%@EXEC_EXT@%$EXEC_EXT%g
     5154s%@SING_UNAME@%$SING_UNAME%g
     5155s%@SINGULAR_VERSION@%$SINGULAR_VERSION%g
     5156s%@VERSION_DATE@%$VERSION_DATE%g
     5157s%@SINGULAR_MAJOR_VERSION@%$SINGULAR_MAJOR_VERSION%g
     5158s%@SINGULAR_MINOR_VERSION@%$SINGULAR_MINOR_VERSION%g
     5159s%@SINGULAR_SUB_VERSION@%$SINGULAR_SUB_VERSION%g
     5160s%@CC@%$CC%g
     5161s%@CPP@%$CPP%g
     5162s%@CXX@%$CXX%g
     5163s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
     5164s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
     5165s%@INSTALL_DATA@%$INSTALL_DATA%g
     5166s%@PIPE@%$PIPE%g
     5167s%@CXXTEMPLFLAGS@%$CXXTEMPLFLAGS%g
     5168s%@CXXNOOPTFLAGS@%$CXXNOOPTFLAGS%g
     5169s%@STATIC_LDFLAGS@%$STATIC_LDFLAGS%g
     5170s%@SET_MAKE@%$SET_MAKE%g
     5171s%@SINGULAR@%$SINGULAR%g
     5172s%@LEX@%$LEX%g
     5173s%@BISON@%$BISON%g
     5174s%@LN_S@%$LN_S%g
     5175s%@PERL@%$PERL%g
     5176s%@LD_DYN_FLAGS@%$LD_DYN_FLAGS%g
     5177s%@SFLAGS@%$SFLAGS%g
     5178s%@SLDFLAGS@%$SLDFLAGS%g
     5179s%@LD@%$LD%g
     5180s%@ALLOCA@%$ALLOCA%g
     5181s%@CXXCPP@%$CXXCPP%g
     5182s%@HAVE_MPSR@%$HAVE_MPSR%g
     5183s%@MP_LIBS@%$MP_LIBS%g
     5184s%@NEED_LIBS@%$NEED_LIBS%g
     5185s%@DL_KERNEL@%$DL_KERNEL%g
     5186s%@PLURAL@%$PLURAL%g
     5187
     5188CEOF
     5189EOF
     5190
     5191cat >> $CONFIG_STATUS <<\EOF
     5192
     5193# Split the substitutions into bite-sized pieces for seds with
     5194# small command number limits, like on Digital OSF/1 and HP-UX.
     5195ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
     5196ac_file=1 # Number of current file.
     5197ac_beg=1 # First line for current file.
     5198ac_end=$ac_max_sed_cmds # Line after last line for current file.
     5199ac_more_lines=:
     5200ac_sed_cmds=""
     5201while $ac_more_lines; do
     5202  if test $ac_beg -gt 1; then
     5203    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
    107085204  else
    10709     $as_unset $as_var
     5205    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
     5206  fi
     5207  if test ! -s conftest.s$ac_file; then
     5208    ac_more_lines=false
     5209    rm -f conftest.s$ac_file
     5210  else
     5211    if test -z "$ac_sed_cmds"; then
     5212      ac_sed_cmds="sed -f conftest.s$ac_file"
     5213    else
     5214      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
     5215    fi
     5216    ac_file=`expr $ac_file + 1`
     5217    ac_beg=$ac_end
     5218    ac_end=`expr $ac_end + $ac_max_sed_cmds`
    107105219  fi
    107115220done
    10712 
    10713 # Required to use basename.
    10714 if expr a : '\(a\)' >/dev/null 2>&1; then
    10715   as_expr=expr
    10716 else
    10717   as_expr=false
    10718 fi
    10719 
    10720 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
    10721   as_basename=basename
    10722 else
    10723   as_basename=false
    10724 fi
    10725 
    10726 
    10727 # Name of the executable.
    10728 as_me=`$as_basename "$0" ||
    10729 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    10730          X"$0" : 'X\(//\)$' \| \
    10731          X"$0" : 'X\(/\)$' \| \
    10732          .     : '\(.\)' 2>/dev/null ||
    10733 echo X/"$0" |
    10734     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
    10735           /^X\/\(\/\/\)$/{ s//\1/; q; }
    10736           /^X\/\(\/\).*/{ s//\1/; q; }
    10737           s/.*/./; q'`
    10738 
    10739 
    10740 # PATH needs CR, and LINENO needs CR and PATH.
    10741 # Avoid depending upon Character Ranges.
    10742 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    10743 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    10744 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    10745 as_cr_digits='0123456789'
    10746 as_cr_alnum=$as_cr_Letters$as_cr_digits
    10747 
    10748 # The user is always right.
    10749 if test "${PATH_SEPARATOR+set}" != set; then
    10750   echo "#! /bin/sh" >conf$$.sh
    10751   echo  "exit 0"   >>conf$$.sh
    10752   chmod +x conf$$.sh
    10753   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    10754     PATH_SEPARATOR=';'
     5221if test -z "$ac_sed_cmds"; then
     5222  ac_sed_cmds=cat
     5223fi
     5224EOF
     5225
     5226cat >> $CONFIG_STATUS <<EOF
     5227
     5228CONFIG_FILES=\${CONFIG_FILES-"${OUTPUT_MAKEFILES}"}
     5229EOF
     5230cat >> $CONFIG_STATUS <<\EOF
     5231for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
     5232  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
     5233  case "$ac_file" in
     5234  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
     5235       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
     5236  *) ac_file_in="${ac_file}.in" ;;
     5237  esac
     5238
     5239  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
     5240
     5241  # Remove last slash and all that follows it.  Not all systems have dirname.
     5242  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
     5243  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
     5244    # The file is in a subdirectory.
     5245    test ! -d "$ac_dir" && mkdir "$ac_dir"
     5246    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
     5247    # A "../" for each directory in $ac_dir_suffix.
     5248    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
    107555249  else
    10756     PATH_SEPARATOR=:
     5250    ac_dir_suffix= ac_dots=
    107575251  fi
    10758   rm -f conf$$.sh
    10759 fi
    10760 
    10761 
    10762   as_lineno_1=$LINENO
    10763   as_lineno_2=$LINENO
    10764   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    10765   test "x$as_lineno_1" != "x$as_lineno_2" &&
    10766   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
    10767   # Find who we are.  Look in the path if we contain no path at all
    10768   # relative or not.
    10769   case $0 in
    10770     *[\\/]* ) as_myself=$0 ;;
    10771     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    10772 for as_dir in $PATH
    10773 do
    10774   IFS=$as_save_IFS
    10775   test -z "$as_dir" && as_dir=.
    10776   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    10777 done
    10778 
    10779        ;;
     5252
     5253  case "$ac_given_srcdir" in
     5254  .)  srcdir=.
     5255      if test -z "$ac_dots"; then top_srcdir=.
     5256      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
     5257  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
     5258  *) # Relative path.
     5259    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
     5260    top_srcdir="$ac_dots$ac_given_srcdir" ;;
    107805261  esac
    10781   # We did not find ourselves, most probably we were run as `sh COMMAND'
    10782   # in which case we are not to be found in the path.
    10783   if test "x$as_myself" = x; then
    10784     as_myself=$0
    10785   fi
    10786   if test ! -f "$as_myself"; then
    10787     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
    10788 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
    10789    { (exit 1); exit 1; }; }
    10790   fi
    10791   case $CONFIG_SHELL in
    10792   '')
    10793     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    10794 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    10795 do
    10796   IFS=$as_save_IFS
    10797   test -z "$as_dir" && as_dir=.
    10798   for as_base in sh bash ksh sh5; do
    10799          case $as_dir in
    10800          /*)
    10801            if ("$as_dir/$as_base" -c '
    10802   as_lineno_1=$LINENO
    10803   as_lineno_2=$LINENO
    10804   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    10805   test "x$as_lineno_1" != "x$as_lineno_2" &&
    10806   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
    10807              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
    10808              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
    10809              CONFIG_SHELL=$as_dir/$as_base
    10810              export CONFIG_SHELL
    10811              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
    10812            fi;;
    10813          esac
    10814        done
    10815 done
    10816 ;;
     5262
     5263  case "$ac_given_INSTALL" in
     5264  [/$]*) INSTALL="$ac_given_INSTALL" ;;
     5265  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
    108175266  esac
    108185267
    10819   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    10820   # uniformly replaced by the line number.  The first 'sed' inserts a
    10821   # line-number line before each line; the second 'sed' does the real
    10822   # work.  The second script uses 'N' to pair each line-number line
    10823   # with the numbered line, and appends trailing '-' during
    10824   # substitution so that $LINENO is not a special case at line end.
    10825   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    10826   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
    10827   sed '=' <$as_myself |
    10828     sed '
    10829       N
    10830       s,$,-,
    10831       : loop
    10832       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
    10833       t loop
    10834       s,-$,,
    10835       s,^['$as_cr_digits']*\n,,
    10836     ' >$as_me.lineno &&
    10837   chmod +x $as_me.lineno ||
    10838     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
    10839 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
    10840    { (exit 1); exit 1; }; }
    10841 
    10842   # Don't try to exec as it changes $[0], causing all sort of problems
    10843   # (the dirname of $[0] is not the place where we might find the
    10844   # original and so on.  Autoconf is especially sensible to this).
    10845   . ./$as_me.lineno
    10846   # Exit status is that of the last command.
    10847   exit
    10848 }
    10849 
    10850 
    10851 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
    10852   *c*,-n*) ECHO_N= ECHO_C='
    10853 ' ECHO_T='      ' ;;
    10854   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
    10855   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
    10856 esac
    10857 
    10858 if expr a : '\(a\)' >/dev/null 2>&1; then
    10859   as_expr=expr
    10860 else
    10861   as_expr=false
    10862 fi
    10863 
    10864 rm -f conf$$ conf$$.exe conf$$.file
    10865 echo >conf$$.file
    10866 if ln -s conf$$.file conf$$ 2>/dev/null; then
    10867   # We could just check for DJGPP; but this test a) works b) is more generic
    10868   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
    10869   if test -f conf$$.exe; then
    10870     # Don't use ln at all; we don't have any links
    10871     as_ln_s='cp -p'
    10872   else
    10873     as_ln_s='ln -s'
    10874   fi
    10875 elif ln conf$$.file conf$$ 2>/dev/null; then
    10876   as_ln_s=ln
    10877 else
    10878   as_ln_s='cp -p'
    10879 fi
    10880 rm -f conf$$ conf$$.exe conf$$.file
    10881 
    10882 if mkdir -p . 2>/dev/null; then
    10883   as_mkdir_p=:
    10884 else
    10885   as_mkdir_p=false
    10886 fi
    10887 
    10888 as_executable_p="test -f"
    10889 
    10890 # Sed expression to map a string onto a valid CPP name.
    10891 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
    10892 
    10893 # Sed expression to map a string onto a valid variable name.
    10894 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
    10895 
    10896 
    10897 # IFS
    10898 # We need space, tab and new line, in precisely that order.
    10899 as_nl='
    10900 '
    10901 IFS="   $as_nl"
    10902 
    10903 # CDPATH.
    10904 $as_unset CDPATH
    10905 
    10906 exec 6>&1
    10907 
    10908 # Open the log real soon, to keep \$[0] and so on meaningful, and to
    10909 # report actual input values of CONFIG_FILES etc. instead of their
    10910 # values after options handling.  Logging --version etc. is OK.
    10911 exec 5>>config.log
    10912 {
    10913   echo
    10914   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
    10915 ## Running $as_me. ##
    10916 _ASBOX
    10917 } >&5
    10918 cat >&5 <<_CSEOF
    10919 
    10920 This file was extended by $as_me, which was
    10921 generated by GNU Autoconf 2.57.  Invocation command line was
    10922 
    10923   CONFIG_FILES    = $CONFIG_FILES
    10924   CONFIG_HEADERS  = $CONFIG_HEADERS
    10925   CONFIG_LINKS    = $CONFIG_LINKS
    10926   CONFIG_COMMANDS = $CONFIG_COMMANDS
    10927   $ $0 $@
    10928 
    10929 _CSEOF
    10930 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
    10931 echo >&5
    10932 _ACEOF
    10933 
    10934 # Files that config.status was made for.
    10935 if test -n "$ac_config_files"; then
    10936   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
    10937 fi
    10938 
    10939 if test -n "$ac_config_headers"; then
    10940   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
    10941 fi
    10942 
    10943 if test -n "$ac_config_links"; then
    10944   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
    10945 fi
    10946 
    10947 if test -n "$ac_config_commands"; then
    10948   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
    10949 fi
    10950 
    10951 cat >>$CONFIG_STATUS <<\_ACEOF
    10952 
    10953 ac_cs_usage="\
    10954 \`$as_me' instantiates files from templates according to the
    10955 current configuration.
    10956 
    10957 Usage: $0 [OPTIONS] [FILE]...
    10958 
    10959   -h, --help       print this help, then exit
    10960   -V, --version    print version number, then exit
    10961   -q, --quiet      do not print progress messages
    10962   -d, --debug      don't remove temporary files
    10963       --recheck    update $as_me by reconfiguring in the same conditions
    10964   --file=FILE[:TEMPLATE]
    10965                    instantiate the configuration file FILE
    10966   --header=FILE[:TEMPLATE]
    10967                    instantiate the configuration header FILE
    10968 
    10969 Configuration files:
    10970 $config_files
    10971 
    10972 Configuration headers:
    10973 $config_headers
    10974 
    10975 Configuration commands:
    10976 $config_commands
    10977 
    10978 Report bugs to <bug-autoconf@gnu.org>."
    10979 _ACEOF
    10980 
    10981 cat >>$CONFIG_STATUS <<_ACEOF
    10982 ac_cs_version="\\
    10983 config.status
    10984 configured by $0, generated by GNU Autoconf 2.57,
    10985   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
    10986 
    10987 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
    10988 Free Software Foundation, Inc.
    10989 This config.status script is free software; the Free Software Foundation
    10990 gives unlimited permission to copy, distribute and modify it."
    10991 srcdir=$srcdir
    10992 INSTALL="$INSTALL"
    10993 _ACEOF
    10994 
    10995 cat >>$CONFIG_STATUS <<\_ACEOF
    10996 # If no file are specified by the user, then we need to provide default
    10997 # value.  By we need to know if files were specified by the user.
    10998 ac_need_defaults=:
    10999 while test $# != 0
    11000 do
    11001   case $1 in
    11002   --*=*)
    11003     ac_option=`expr "x$1" : 'x\([^=]*\)='`
    11004     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
    11005     ac_shift=:
    11006     ;;
    11007   -*)
    11008     ac_option=$1
    11009     ac_optarg=$2
    11010     ac_shift=shift
    11011     ;;
    11012   *) # This is not an option, so the user has probably given explicit
    11013      # arguments.
    11014      ac_option=$1
    11015      ac_need_defaults=false;;
     5268  echo creating "$ac_file"
     5269  rm -f "$ac_file"
     5270  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
     5271  case "$ac_file" in
     5272  *Makefile*) ac_comsub="1i\\
     5273# $configure_input" ;;
     5274  *) ac_comsub= ;;
    110165275  esac
    110175276
    11018   case $ac_option in
    11019   # Handling of the options.
    11020 _ACEOF
    11021 cat >>$CONFIG_STATUS <<\_ACEOF
    11022   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    11023     ac_cs_recheck=: ;;
    11024   --version | --vers* | -V )
    11025     echo "$ac_cs_version"; exit 0 ;;
    11026   --he | --h)
    11027     # Conflict between --help and --header
    11028     { { echo "$as_me:$LINENO: error: ambiguous option: $1
    11029 Try \`$0 --help' for more information." >&5
    11030 echo "$as_me: error: ambiguous option: $1
    11031 Try \`$0 --help' for more information." >&2;}
    11032    { (exit 1); exit 1; }; };;
    11033   --help | --hel | -h )
    11034     echo "$ac_cs_usage"; exit 0 ;;
    11035   --debug | --d* | -d )
    11036     debug=: ;;
    11037   --file | --fil | --fi | --f )
    11038     $ac_shift
    11039     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
    11040     ac_need_defaults=false;;
    11041   --header | --heade | --head | --hea )
    11042     $ac_shift
    11043     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
    11044     ac_need_defaults=false;;
    11045   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    11046   | -silent | --silent | --silen | --sile | --sil | --si | --s)
    11047     ac_cs_silent=: ;;
    11048 
    11049   # This is an error.
    11050   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
    11051 Try \`$0 --help' for more information." >&5
    11052 echo "$as_me: error: unrecognized option: $1
    11053 Try \`$0 --help' for more information." >&2;}
    11054    { (exit 1); exit 1; }; } ;;
    11055 
    11056   *) ac_config_targets="$ac_config_targets $1" ;;
    11057 
    11058   esac
    11059   shift
    11060 done
    11061 
    11062 ac_configure_extra_args=
    11063 
    11064 if $ac_cs_silent; then
    11065   exec 6>/dev/null
    11066   ac_configure_extra_args="$ac_configure_extra_args --silent"
    11067 fi
    11068 
    11069 _ACEOF
    11070 cat >>$CONFIG_STATUS <<_ACEOF
    11071 if \$ac_cs_recheck; then
    11072   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
    11073   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
    11074 fi
    11075 
    11076 _ACEOF
    11077 
    11078 
    11079 
    11080 
    11081 
    11082 cat >>$CONFIG_STATUS <<\_ACEOF
    11083 for ac_config_target in $ac_config_targets
    11084 do
    11085   case "$ac_config_target" in
    11086   # Handling of arguments.
    11087   "${OUTPUT_MAKEFILES}" ) CONFIG_FILES="$CONFIG_FILES ${OUTPUT_MAKEFILES}" ;;
    11088   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
    11089   "mod2.h" ) CONFIG_HEADERS="$CONFIG_HEADERS mod2.h" ;;
    11090   "../kernel/mod2.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ../kernel/mod2.h" ;;
    11091   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
    11092 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
    11093    { (exit 1); exit 1; }; };;
    11094   esac
    11095 done
    11096 
    11097 # If the user did not use the arguments to specify the items to instantiate,
    11098 # then the envvar interface is used.  Set only those that are not.
    11099 # We use the long form for the default assignment because of an extremely
    11100 # bizarre bug on SunOS 4.1.3.
    11101 if $ac_need_defaults; then
    11102   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
    11103   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
    11104   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
    11105 fi
    11106 
    11107 # Have a temporary directory for convenience.  Make it in the build tree
    11108 # simply because there is no reason to put it here, and in addition,
    11109 # creating and moving files from /tmp can sometimes cause problems.
    11110 # Create a temporary directory, and hook for its removal unless debugging.
    11111 $debug ||
    11112 {
    11113   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
    11114   trap '{ (exit 1); exit 1; }' 1 2 13 15
    11115 }
    11116 
    11117 # Create a (secure) tmp directory for tmp files.
    11118 
    11119 {
    11120   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
    11121   test -n "$tmp" && test -d "$tmp"
    11122 }  ||
    11123 {
    11124   tmp=./confstat$$-$RANDOM
    11125   (umask 077 && mkdir $tmp)
    11126 } ||
    11127 {
    11128    echo "$me: cannot create a temporary directory in ." >&2
    11129    { (exit 1); exit 1; }
    11130 }
    11131 
    11132 _ACEOF
    11133 
    11134 cat >>$CONFIG_STATUS <<_ACEOF
    11135 
    11136 #
    11137 # CONFIG_FILES section.
    11138 #
    11139 
    11140 # No need to generate the scripts if there are no CONFIG_FILES.
    11141 # This happens for instance when ./config.status config.h
    11142 if test -n "\$CONFIG_FILES"; then
    11143   # Protect against being on the right side of a sed subst in config.status.
    11144   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
    11145    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
    11146 s,@SHELL@,$SHELL,;t t
    11147 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
    11148 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
    11149 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
    11150 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
    11151 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
    11152 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
    11153 s,@exec_prefix@,$exec_prefix,;t t
    11154 s,@prefix@,$prefix,;t t
    11155 s,@program_transform_name@,$program_transform_name,;t t
    11156 s,@bindir@,$bindir,;t t
    11157 s,@sbindir@,$sbindir,;t t
    11158 s,@libexecdir@,$libexecdir,;t t
    11159 s,@datadir@,$datadir,;t t
    11160 s,@sysconfdir@,$sysconfdir,;t t
    11161 s,@sharedstatedir@,$sharedstatedir,;t t
    11162 s,@localstatedir@,$localstatedir,;t t
    11163 s,@libdir@,$libdir,;t t
    11164 s,@includedir@,$includedir,;t t
    11165 s,@oldincludedir@,$oldincludedir,;t t
    11166 s,@infodir@,$infodir,;t t
    11167 s,@mandir@,$mandir,;t t
    11168 s,@build_alias@,$build_alias,;t t
    11169 s,@host_alias@,$host_alias,;t t
    11170 s,@target_alias@,$target_alias,;t t
    11171 s,@DEFS@,$DEFS,;t t
    11172 s,@ECHO_C@,$ECHO_C,;t t
    11173 s,@ECHO_N@,$ECHO_N,;t t
    11174 s,@ECHO_T@,$ECHO_T,;t t
    11175 s,@LIBS@,$LIBS,;t t
    11176 s,@SINGUNAME@,$SINGUNAME,;t t
    11177 s,@EXEC_EXT@,$EXEC_EXT,;t t
    11178 s,@SING_UNAME@,$SING_UNAME,;t t
    11179 s,@SINGULAR_VERSION@,$SINGULAR_VERSION,;t t
    11180 s,@VERSION_DATE@,$VERSION_DATE,;t t
    11181 s,@SINGULAR_MAJOR_VERSION@,$SINGULAR_MAJOR_VERSION,;t t
    11182 s,@SINGULAR_MINOR_VERSION@,$SINGULAR_MINOR_VERSION,;t t
    11183 s,@SINGULAR_SUB_VERSION@,$SINGULAR_SUB_VERSION,;t t
    11184 s,@CC@,$CC,;t t
    11185 s,@CFLAGS@,$CFLAGS,;t t
    11186 s,@LDFLAGS@,$LDFLAGS,;t t
    11187 s,@CPPFLAGS@,$CPPFLAGS,;t t
    11188 s,@ac_ct_CC@,$ac_ct_CC,;t t
    11189 s,@EXEEXT@,$EXEEXT,;t t
    11190 s,@OBJEXT@,$OBJEXT,;t t
    11191 s,@CPP@,$CPP,;t t
    11192 s,@CXX@,$CXX,;t t
    11193 s,@CXXFLAGS@,$CXXFLAGS,;t t
    11194 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
    11195 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
    11196 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
    11197 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
    11198 s,@EGREP@,$EGREP,;t t
    11199 s,@PIPE@,$PIPE,;t t
    11200 s,@CXXTEMPLFLAGS@,$CXXTEMPLFLAGS,;t t
    11201 s,@CXXNOOPTFLAGS@,$CXXNOOPTFLAGS,;t t
    11202 s,@STATIC_LDFLAGS@,$STATIC_LDFLAGS,;t t
    11203 s,@SET_MAKE@,$SET_MAKE,;t t
    11204 s,@SINGULAR@,$SINGULAR,;t t
    11205 s,@LEX@,$LEX,;t t
    11206 s,@BISON@,$BISON,;t t
    11207 s,@LN_S@,$LN_S,;t t
    11208 s,@PERL@,$PERL,;t t
    11209 s,@LD_DYN_FLAGS@,$LD_DYN_FLAGS,;t t
    11210 s,@SFLAGS@,$SFLAGS,;t t
    11211 s,@SLDFLAGS@,$SLDFLAGS,;t t
    11212 s,@LD@,$LD,;t t
    11213 s,@ALLOCA@,$ALLOCA,;t t
    11214 s,@CXXCPP@,$CXXCPP,;t t
    11215 s,@HAVE_MPSR@,$HAVE_MPSR,;t t
    11216 s,@MP_LIBS@,$MP_LIBS,;t t
    11217 s,@NEED_LIBS@,$NEED_LIBS,;t t
    11218 s,@DL_KERNEL@,$DL_KERNEL,;t t
    11219 s,@PLURAL@,$PLURAL,;t t
    11220 s,@LIBOBJS@,$LIBOBJS,;t t
    11221 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
    11222 CEOF
    11223 
    11224 _ACEOF
    11225 
    11226   cat >>$CONFIG_STATUS <<\_ACEOF
    11227   # Split the substitutions into bite-sized pieces for seds with
    11228   # small command number limits, like on Digital OSF/1 and HP-UX.
    11229   ac_max_sed_lines=48
    11230   ac_sed_frag=1 # Number of current file.
    11231   ac_beg=1 # First line for current file.
    11232   ac_end=$ac_max_sed_lines # Line after last line for current file.
    11233   ac_more_lines=:
    11234   ac_sed_cmds=
    11235   while $ac_more_lines; do
    11236     if test $ac_beg -gt 1; then
    11237       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    11238     else
    11239       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    11240     fi
    11241     if test ! -s $tmp/subs.frag; then
    11242       ac_more_lines=false
    11243     else
    11244       # The purpose of the label and of the branching condition is to
    11245       # speed up the sed processing (if there are no `@' at all, there
    11246       # is no need to browse any of the substitutions).
    11247       # These are the two extra sed commands mentioned above.
    11248       (echo ':t
    11249   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
    11250       if test -z "$ac_sed_cmds"; then
    11251         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
    11252       else
    11253         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
    11254       fi
    11255       ac_sed_frag=`expr $ac_sed_frag + 1`
    11256       ac_beg=$ac_end
    11257       ac_end=`expr $ac_end + $ac_max_sed_lines`
    11258     fi
    11259   done
    11260   if test -z "$ac_sed_cmds"; then
    11261     ac_sed_cmds=cat
    11262   fi
    11263 fi # test -n "$CONFIG_FILES"
    11264 
    11265 _ACEOF
    11266 cat >>$CONFIG_STATUS <<\_ACEOF
    11267 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
    11268   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    11269   case $ac_file in
    11270   - | *:- | *:-:* ) # input from stdin
    11271         cat >$tmp/stdin
    11272         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    11273         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    11274   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    11275         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    11276   * )   ac_file_in=$ac_file.in ;;
    11277   esac
    11278 
    11279   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
    11280   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
    11281 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    11282          X"$ac_file" : 'X\(//\)[^/]' \| \
    11283          X"$ac_file" : 'X\(//\)$' \| \
    11284          X"$ac_file" : 'X\(/\)' \| \
    11285          .     : '\(.\)' 2>/dev/null ||
    11286 echo X"$ac_file" |
    11287     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    11288           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    11289           /^X\(\/\/\)$/{ s//\1/; q; }
    11290           /^X\(\/\).*/{ s//\1/; q; }
    11291           s/.*/./; q'`
    11292   { if $as_mkdir_p; then
    11293     mkdir -p "$ac_dir"
    11294   else
    11295     as_dir="$ac_dir"
    11296     as_dirs=
    11297     while test ! -d "$as_dir"; do
    11298       as_dirs="$as_dir $as_dirs"
    11299       as_dir=`(dirname "$as_dir") 2>/dev/null ||
    11300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    11301          X"$as_dir" : 'X\(//\)[^/]' \| \
    11302          X"$as_dir" : 'X\(//\)$' \| \
    11303          X"$as_dir" : 'X\(/\)' \| \
    11304          .     : '\(.\)' 2>/dev/null ||
    11305 echo X"$as_dir" |
    11306     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    11307           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    11308           /^X\(\/\/\)$/{ s//\1/; q; }
    11309           /^X\(\/\).*/{ s//\1/; q; }
    11310           s/.*/./; q'`
    11311     done
    11312     test ! -n "$as_dirs" || mkdir $as_dirs
    11313   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
    11314 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
    11315    { (exit 1); exit 1; }; }; }
    11316 
    11317   ac_builddir=.
    11318 
    11319 if test "$ac_dir" != .; then
    11320   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    11321   # A "../" for each directory in $ac_dir_suffix.
    11322   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    11323 else
    11324   ac_dir_suffix= ac_top_builddir=
    11325 fi
    11326 
    11327 case $srcdir in
    11328   .)  # No --srcdir option.  We are building in place.
    11329     ac_srcdir=.
    11330     if test -z "$ac_top_builddir"; then
    11331        ac_top_srcdir=.
    11332     else
    11333        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    11334     fi ;;
    11335   [\\/]* | ?:[\\/]* )  # Absolute path.
    11336     ac_srcdir=$srcdir$ac_dir_suffix;
    11337     ac_top_srcdir=$srcdir ;;
    11338   *) # Relative path.
    11339     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    11340     ac_top_srcdir=$ac_top_builddir$srcdir ;;
    11341 esac
    11342 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
    11343 # absolute.
    11344 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
    11345 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
    11346 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
    11347 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
    11348 
    11349 
    11350   case $INSTALL in
    11351   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
    11352   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
    11353   esac
    11354 
    11355   if test x"$ac_file" != x-; then
    11356     { echo "$as_me:$LINENO: creating $ac_file" >&5
    11357 echo "$as_me: creating $ac_file" >&6;}
    11358     rm -f "$ac_file"
    11359   fi
    11360   # Let's still pretend it is `configure' which instantiates (i.e., don't
    11361   # use $as_me), people would be surprised to read:
    11362   #    /* config.h.  Generated by config.status.  */
    11363   if test x"$ac_file" = x-; then
    11364     configure_input=
    11365   else
    11366     configure_input="$ac_file.  "
    11367   fi
    11368   configure_input=$configure_input"Generated from `echo $ac_file_in |
    11369                                      sed 's,.*/,,'` by configure."
    11370 
    11371   # First look for the input files in the build tree, otherwise in the
    11372   # src tree.
    11373   ac_file_inputs=`IFS=:
    11374     for f in $ac_file_in; do
    11375       case $f in
    11376       -) echo $tmp/stdin ;;
    11377       [\\/$]*)
    11378          # Absolute (can't be DOS-style, as IFS=:)
    11379          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    11380 echo "$as_me: error: cannot find input file: $f" >&2;}
    11381    { (exit 1); exit 1; }; }
    11382          echo $f;;
    11383       *) # Relative
    11384          if test -f "$f"; then
    11385            # Build tree
    11386            echo $f
    11387          elif test -f "$srcdir/$f"; then
    11388            # Source tree
    11389            echo $srcdir/$f
    11390          else
    11391            # /dev/null tree
    11392            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    11393 echo "$as_me: error: cannot find input file: $f" >&2;}
    11394    { (exit 1); exit 1; }; }
    11395          fi;;
    11396       esac
    11397     done` || { (exit 1); exit 1; }
    11398 _ACEOF
    11399 cat >>$CONFIG_STATUS <<_ACEOF
    11400   sed "$ac_vpsub
    11401 $extrasub
    11402 _ACEOF
    11403 cat >>$CONFIG_STATUS <<\_ACEOF
    11404 :t
    11405 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
    11406 s,@configure_input@,$configure_input,;t t
    11407 s,@srcdir@,$ac_srcdir,;t t
    11408 s,@abs_srcdir@,$ac_abs_srcdir,;t t
    11409 s,@top_srcdir@,$ac_top_srcdir,;t t
    11410 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
    11411 s,@builddir@,$ac_builddir,;t t
    11412 s,@abs_builddir@,$ac_abs_builddir,;t t
    11413 s,@top_builddir@,$ac_top_builddir,;t t
    11414 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
    11415 s,@INSTALL@,$ac_INSTALL,;t t
    11416 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
    11417   rm -f $tmp/stdin
    11418   if test x"$ac_file" != x-; then
    11419     mv $tmp/out $ac_file
    11420   else
    11421     cat $tmp/out
    11422     rm -f $tmp/out
    11423   fi
    11424 
    11425 done
    11426 _ACEOF
    11427 cat >>$CONFIG_STATUS <<\_ACEOF
    11428 
    11429 #
    11430 # CONFIG_HEADER section.
    11431 #
     5277  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
     5278  sed -e "$ac_comsub
     5279s%@configure_input@%$configure_input%g
     5280s%@srcdir@%$srcdir%g
     5281s%@top_srcdir@%$top_srcdir%g
     5282s%@INSTALL@%$INSTALL%g
     5283" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
     5284fi; done
     5285rm -f conftest.s*
    114325286
    114335287# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
     
    114355289#
    114365290# ac_d sets the value in "#define NAME VALUE" lines.
    11437 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
    11438 ac_dB='[        ].*$,\1#\2'
    11439 ac_dC=' '
    11440 ac_dD=',;t'
    11441 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
    11442 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
    11443 ac_uB='$,\1#\2define\3'
     5291ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
     5292ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
     5293ac_dC='\3'
     5294ac_dD='%g'
     5295# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
     5296ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
     5297ac_uB='\([      ]\)%\1#\2define\3'
    114445298ac_uC=' '
    11445 ac_uD=',;t'
    11446 
    11447 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
     5299ac_uD='\4%g'
     5300# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
     5301ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
     5302ac_eB='$%\1#\2define\3'
     5303ac_eC=' '
     5304ac_eD='%g'
     5305
     5306if test "${CONFIG_HEADERS+set}" != set; then
     5307EOF
     5308cat >> $CONFIG_STATUS <<EOF
     5309  CONFIG_HEADERS="mod2.h"
     5310EOF
     5311cat >> $CONFIG_STATUS <<\EOF
     5312fi
     5313for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
    114485314  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    11449   case $ac_file in
    11450   - | *:- | *:-:* ) # input from stdin
    11451         cat >$tmp/stdin
    11452         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    11453         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    11454   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    11455         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    11456   * )   ac_file_in=$ac_file.in ;;
     5315  case "$ac_file" in
     5316  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
     5317       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
     5318  *) ac_file_in="${ac_file}.in" ;;
    114575319  esac
    114585320
    11459   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
    11460 echo "$as_me: creating $ac_file" >&6;}
    11461 
    11462   # First look for the input files in the build tree, otherwise in the
    11463   # src tree.
    11464   ac_file_inputs=`IFS=:
    11465     for f in $ac_file_in; do
    11466       case $f in
    11467       -) echo $tmp/stdin ;;
    11468       [\\/$]*)
    11469          # Absolute (can't be DOS-style, as IFS=:)
    11470          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    11471 echo "$as_me: error: cannot find input file: $f" >&2;}
    11472    { (exit 1); exit 1; }; }
    11473          echo $f;;
    11474       *) # Relative
    11475          if test -f "$f"; then
    11476            # Build tree
    11477            echo $f
    11478          elif test -f "$srcdir/$f"; then
    11479            # Source tree
    11480            echo $srcdir/$f
    11481          else
    11482            # /dev/null tree
    11483            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    11484 echo "$as_me: error: cannot find input file: $f" >&2;}
    11485    { (exit 1); exit 1; }; }
    11486          fi;;
    11487       esac
    11488     done` || { (exit 1); exit 1; }
    11489   # Remove the trailing spaces.
    11490   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
    11491 
    11492 _ACEOF
    11493 
    11494 # Transform confdefs.h into two sed scripts, `conftest.defines' and
    11495 # `conftest.undefs', that substitutes the proper values into
    11496 # config.h.in to produce config.h.  The first handles `#define'
    11497 # templates, and the second `#undef' templates.
    11498 # And first: Protect against being on the right side of a sed subst in
    11499 # config.status.  Protect against being in an unquoted here document
    11500 # in config.status.
    11501 rm -f conftest.defines conftest.undefs
    11502 # Using a here document instead of a string reduces the quoting nightmare.
    11503 # Putting comments in sed scripts is not portable.
    11504 #
    11505 # `end' is used to avoid that the second main sed command (meant for
    11506 # 0-ary CPP macros) applies to n-ary macro definitions.
    11507 # See the Autoconf documentation for `clear'.
    11508 cat >confdef2sed.sed <<\_ACEOF
    11509 s/[\\&,]/\\&/g
    11510 s,[\\$`],\\&,g
    11511 t clear
    11512 : clear
    11513 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
    11514 t end
    11515 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
    11516 : end
    11517 _ACEOF
    11518 # If some macros were called several times there might be several times
    11519 # the same #defines, which is useless.  Nevertheless, we may not want to
    11520 # sort them, since we want the *last* AC-DEFINE to be honored.
    11521 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
    11522 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
    11523 rm -f confdef2sed.sed
     5321  echo creating $ac_file
     5322
     5323  rm -f conftest.frag conftest.in conftest.out
     5324  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
     5325  cat $ac_file_inputs > conftest.in
     5326
     5327EOF
     5328
     5329# Transform confdefs.h into a sed script conftest.vals that substitutes
     5330# the proper values into config.h.in to produce config.h.  And first:
     5331# Protect against being on the right side of a sed subst in config.status.
     5332# Protect against being in an unquoted here document in config.status.
     5333rm -f conftest.vals
     5334cat > conftest.hdr <<\EOF
     5335s/[\\&%]/\\&/g
     5336s%[\\$`]%\\&%g
     5337s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
     5338s%ac_d%ac_u%gp
     5339s%ac_u%ac_e%gp
     5340EOF
     5341sed -n -f conftest.hdr confdefs.h > conftest.vals
     5342rm -f conftest.hdr
    115245343
    115255344# This sed command replaces #undef with comments.  This is necessary, for
    115265345# example, in the case of _POSIX_SOURCE, which is predefined and required
    115275346# on some systems where configure will not decide to define it.
    11528 cat >>conftest.undefs <<\_ACEOF
    11529 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
    11530 _ACEOF
    11531 
    11532 # Break up conftest.defines because some shells have a limit on the size
    11533 # of here documents, and old seds have small limits too (100 cmds).
    11534 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
    11535 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
    11536 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
    11537 echo '  :' >>$CONFIG_STATUS
     5347cat >> conftest.vals <<\EOF
     5348s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
     5349EOF
     5350
     5351# Break up conftest.vals because some shells have a limit on
     5352# the size of here documents, and old seds have small limits too.
     5353
    115385354rm -f conftest.tail
    11539 while grep . conftest.defines >/dev/null
     5355while :
    115405356do
    11541   # Write a limited-size here document to $tmp/defines.sed.
    11542   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
    11543   # Speed up: don't consider the non `#define' lines.
    11544   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
    11545   # Work around the forget-to-reset-the-flag bug.
    11546   echo 't clr' >>$CONFIG_STATUS
    11547   echo ': clr' >>$CONFIG_STATUS
    11548   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
     5357  ac_lines=`grep -c . conftest.vals`
     5358  # grep -c gives empty output for an empty file on some AIX systems.
     5359  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
     5360  # Write a limited-size here document to conftest.frag.
     5361  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
     5362  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
    115495363  echo 'CEOF
    11550   sed -f $tmp/defines.sed $tmp/in >$tmp/out
    11551   rm -f $tmp/in
    11552   mv $tmp/out $tmp/in
    11553 ' >>$CONFIG_STATUS
    11554   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
    11555   rm -f conftest.defines
    11556   mv conftest.tail conftest.defines
     5364  sed -f conftest.frag conftest.in > conftest.out
     5365  rm -f conftest.in
     5366  mv conftest.out conftest.in
     5367' >> $CONFIG_STATUS
     5368  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
     5369  rm -f conftest.vals
     5370  mv conftest.tail conftest.vals
    115575371done
    11558 rm -f conftest.defines
    11559 echo '  fi # grep' >>$CONFIG_STATUS
    11560 echo >>$CONFIG_STATUS
    11561 
    11562 # Break up conftest.undefs because some shells have a limit on the size
    11563 # of here documents, and old seds have small limits too (100 cmds).
    11564 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
    11565 rm -f conftest.tail
    11566 while grep . conftest.undefs >/dev/null
    11567 do
    11568   # Write a limited-size here document to $tmp/undefs.sed.
    11569   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
    11570   # Speed up: don't consider the non `#undef'
    11571   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
    11572   # Work around the forget-to-reset-the-flag bug.
    11573   echo 't clr' >>$CONFIG_STATUS
    11574   echo ': clr' >>$CONFIG_STATUS
    11575   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
    11576   echo 'CEOF
    11577   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
    11578   rm -f $tmp/in
    11579   mv $tmp/out $tmp/in
    11580 ' >>$CONFIG_STATUS
    11581   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
    11582   rm -f conftest.undefs
    11583   mv conftest.tail conftest.undefs
    11584 done
    11585 rm -f conftest.undefs
    11586 
    11587 cat >>$CONFIG_STATUS <<\_ACEOF
    11588   # Let's still pretend it is `configure' which instantiates (i.e., don't
    11589   # use $as_me), people would be surprised to read:
    11590   #    /* config.h.  Generated by config.status.  */
    11591   if test x"$ac_file" = x-; then
    11592     echo "/* Generated by configure.  */" >$tmp/config.h
     5372rm -f conftest.vals
     5373
     5374cat >> $CONFIG_STATUS <<\EOF
     5375  rm -f conftest.frag conftest.h
     5376  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
     5377  cat conftest.in >> conftest.h
     5378  rm -f conftest.in
     5379  if cmp -s $ac_file conftest.h 2>/dev/null; then
     5380    echo "$ac_file is unchanged"
     5381    rm -f conftest.h
    115935382  else
    11594     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
     5383    # Remove last slash and all that follows it.  Not all systems have dirname.
     5384      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
     5385      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
     5386      # The file is in a subdirectory.
     5387      test ! -d "$ac_dir" && mkdir "$ac_dir"
     5388    fi
     5389    rm -f $ac_file
     5390    mv conftest.h $ac_file
    115955391  fi
    11596   cat $tmp/in >>$tmp/config.h
    11597   rm -f $tmp/in
    11598   if test x"$ac_file" != x-; then
    11599     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
    11600       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
    11601 echo "$as_me: $ac_file is unchanged" >&6;}
    11602     else
    11603       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
    11604 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    11605          X"$ac_file" : 'X\(//\)[^/]' \| \
    11606          X"$ac_file" : 'X\(//\)$' \| \
    11607          X"$ac_file" : 'X\(/\)' \| \
    11608          .     : '\(.\)' 2>/dev/null ||
    11609 echo X"$ac_file" |
    11610     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    11611           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    11612           /^X\(\/\/\)$/{ s//\1/; q; }
    11613           /^X\(\/\).*/{ s//\1/; q; }
    11614           s/.*/./; q'`
    11615       { if $as_mkdir_p; then
    11616     mkdir -p "$ac_dir"
    11617   else
    11618     as_dir="$ac_dir"
    11619     as_dirs=
    11620     while test ! -d "$as_dir"; do
    11621       as_dirs="$as_dir $as_dirs"
    11622       as_dir=`(dirname "$as_dir") 2>/dev/null ||
    11623 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    11624          X"$as_dir" : 'X\(//\)[^/]' \| \
    11625          X"$as_dir" : 'X\(//\)$' \| \
    11626          X"$as_dir" : 'X\(/\)' \| \
    11627          .     : '\(.\)' 2>/dev/null ||
    11628 echo X"$as_dir" |
    11629     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    11630           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    11631           /^X\(\/\/\)$/{ s//\1/; q; }
    11632           /^X\(\/\).*/{ s//\1/; q; }
    11633           s/.*/./; q'`
    11634     done
    11635     test ! -n "$as_dirs" || mkdir $as_dirs
    11636   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
    11637 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
    11638    { (exit 1); exit 1; }; }; }
    11639 
    11640       rm -f $ac_file
    11641       mv $tmp/config.h $ac_file
    11642     fi
    11643   else
    11644     cat $tmp/config.h
    11645     rm -f $tmp/config.h
    11646   fi
    11647 done
    11648 _ACEOF
    11649 cat >>$CONFIG_STATUS <<\_ACEOF
    11650 
    11651 #
    11652 # CONFIG_COMMANDS section.
    11653 #
    11654 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
    11655   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
    11656   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
    11657   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
    11658 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    11659          X"$ac_dest" : 'X\(//\)[^/]' \| \
    11660          X"$ac_dest" : 'X\(//\)$' \| \
    11661          X"$ac_dest" : 'X\(/\)' \| \
    11662          .     : '\(.\)' 2>/dev/null ||
    11663 echo X"$ac_dest" |
    11664     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    11665           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    11666           /^X\(\/\/\)$/{ s//\1/; q; }
    11667           /^X\(\/\).*/{ s//\1/; q; }
    11668           s/.*/./; q'`
    11669   ac_builddir=.
    11670 
    11671 if test "$ac_dir" != .; then
    11672   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    11673   # A "../" for each directory in $ac_dir_suffix.
    11674   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    11675 else
    11676   ac_dir_suffix= ac_top_builddir=
    11677 fi
    11678 
    11679 case $srcdir in
    11680   .)  # No --srcdir option.  We are building in place.
    11681     ac_srcdir=.
    11682     if test -z "$ac_top_builddir"; then
    11683        ac_top_srcdir=.
    11684     else
    11685        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    11686     fi ;;
    11687   [\\/]* | ?:[\\/]* )  # Absolute path.
    11688     ac_srcdir=$srcdir$ac_dir_suffix;
    11689     ac_top_srcdir=$srcdir ;;
    11690   *) # Relative path.
    11691     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    11692     ac_top_srcdir=$ac_top_builddir$srcdir ;;
    11693 esac
    11694 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
    11695 # absolute.
    11696 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
    11697 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
    11698 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
    11699 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
    11700 
    11701 
    11702   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
    11703 echo "$as_me: executing $ac_dest commands" >&6;}
    11704   case $ac_dest in
    11705     default ) \
     5392fi; done
     5393
     5394EOF
     5395cat >> $CONFIG_STATUS <<EOF
     5396
     5397EOF
     5398cat >> $CONFIG_STATUS <<\EOF
     5399\
    117065400 cp mod2.h ../kernel/mod2.h; \
    11707  if test "$CONFIG_HEADERS"; then echo timestamp > stamp-h; fi ;;
    11708   esac
    11709 done
    11710 _ACEOF
    11711 
    11712 cat >>$CONFIG_STATUS <<\_ACEOF
    11713 
    11714 { (exit 0); exit 0; }
    11715 _ACEOF
     5401 if test "$CONFIG_HEADERS"; then echo timestamp > stamp-h; fi
     5402exit 0
     5403EOF
    117165404chmod +x $CONFIG_STATUS
    11717 ac_clean_files=$ac_clean_files_save
    11718 
    11719 
    11720 # configure is writing to config.log, and then calls config.status.
    11721 # config.status does its own redirection, appending to config.log.
    11722 # Unfortunately, on DOS this fails, as config.log is still kept open
    11723 # by configure, so config.status won't be able to write to it; its
    11724 # output is simply discarded.  So we exec the FD to /dev/null,
    11725 # effectively closing config.log, so it can be properly (re)opened and
    11726 # appended to by config.status.  When coming back to configure, we
    11727 # need to make the FD available again.
    11728 if test "$no_create" != yes; then
    11729   ac_cs_success=:
    11730   ac_config_status_args=
    11731   test "$silent" = yes &&
    11732     ac_config_status_args="$ac_config_status_args --quiet"
    11733   exec 5>/dev/null
    11734   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
    11735   exec 5>>config.log
    11736   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
    11737   # would make configure fail if this is the last instruction.
    11738   $ac_cs_success || { (exit 1); exit 1; }
    11739 fi
    11740 
     5405rm -fr confdefs* $ac_clean_files
     5406test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
     5407
  • Singular/configure.in

    rd6d3b9 r145917  
    335335        *Linux*)
    336336          AC_CHECK_LIB(dl, dlopen)
    337           if test "$ac_cv_lib_dl_dlopen" = yes; then
     337          if test "$ac_cv_lib_c_dlopen" = yes; then
    338338                LD_DYN_FLAGS="-ldl -rdynamic"
    339339                SFLAGS="-fpic -DPIC"
     
    364364          if test "$ac_cv_lib_dl_dlopen" = yes; then
    365365                LD_DYN_FLAGS="-ldl -dynamic"
     366                SFLAGS="-fpic -DPIC"
     367                SLDFLAGS=-shared
     368                LD=ld
     369                ac_lib_dl=yes
     370          fi
     371        ;;
     372        ix86-freebsd)
     373          AC_CHECK_LIB(c, dlopen)
     374          if test "$ac_cv_lib_c_dlopen" = yes; then
     375                LD_DYN_FLAGS="-dynamic"
    366376                SFLAGS="-fpic -DPIC"
    367377                SLDFLAGS=-shared
Note: See TracChangeset for help on using the changeset viewer.