"Fossies" - the Fresh Open Source Software Archive

Member "tin-2.4.3/configure" (24 Dec 2018, 897578 Bytes) of package /linux/misc/tin-2.4.3.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "configure": 2.4.2_vs_2.4.3.

    1 #! /bin/sh
    2 # Guess values for system-dependent variables and create Makefiles.
    3 # Generated by Autoconf 2.52.20181006.
    4 #
    5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
    6 # Free Software Foundation, Inc.
    7 # This configure script is free software; the Free Software Foundation
    8 # gives unlimited permission to copy, distribute and modify it.
    9 
   10 # Avoid depending upon Character Ranges.
   11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   14 as_cr_digits='0123456789'
   15 as_cr_alnum=$as_cr_Letters$as_cr_digits
   16 
   17 # Sed expression to map a string onto a valid variable name.
   18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
   19 
   20 # Sed expression to map a string onto a valid CPP name.
   21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
   22 
   23 # Be Bourne compatible
   24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   25   emulate sh
   26   NULLCMD=:
   27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
   28   set -o posix
   29 fi
   30 
   31 # Name of the executable.
   32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
   33 
   34 if expr a : '\(a\)' >/dev/null 2>&1; then
   35   as_expr=expr
   36 else
   37   as_expr=false
   38 fi
   39 
   40 rm -f conf$$ conf$$.exe conf$$.file
   41 echo >conf$$.file
   42 if ln -s conf$$.file conf$$ 2>/dev/null; then
   43   # We could just check for DJGPP; but this test a) works b) is more generic
   44   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
   45   if test -f conf$$.exe; then
   46     # Don't use ln at all; we don't have any links
   47     as_ln_s='cp -p'
   48   else
   49     as_ln_s='ln -s'
   50   fi
   51 elif ln conf$$.file conf$$ 2>/dev/null; then
   52   as_ln_s=ln
   53 else
   54   as_ln_s='cp -p'
   55 fi
   56 rm -f conf$$ conf$$.exe conf$$.file
   57 
   58 as_executable_p="test -f"
   59 
   60 # Support unset when possible.
   61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
   62   as_unset=unset
   63 else
   64   as_unset=false
   65 fi
   66 
   67 # NLS nuisances.
   68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
   69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
   70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
   71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
   72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
   73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
   74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
   75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
   76 
   77 # IFS
   78 # We need space, tab and new line, in precisely that order.
   79 as_nl='
   80 '
   81 IFS="   $as_nl"
   82 
   83 # CDPATH.
   84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
   85 
   86 # Name of the host.
   87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
   88 # so uname gets run too.
   89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
   90 
   91 exec 6>&1
   92 
   93 #
   94 # Initializations.
   95 #
   96 ac_default_prefix=/usr/local
   97 cross_compiling=no
   98 subdirs=
   99 MFLAGS= MAKEFLAGS=
  100 SHELL=${CONFIG_SHELL-/bin/sh}
  101 
  102 # Maximum number of lines to put in a shell here document.
  103 # This variable seems obsolete.  It should probably be removed, and
  104 # only ac_max_sed_lines should be used.
  105 : ${ac_max_here_lines=38}
  106 
  107 ac_unique_file="include/tin.h"
  108 ac_default_prefix=/usr/local
  109 # Factoring default headers for most tests.
  110 ac_includes_default="\
  111 #include <stdio.h>
  112 #if HAVE_SYS_TYPES_H
  113 # include <sys/types.h>
  114 #endif
  115 #if HAVE_SYS_STAT_H
  116 # include <sys/stat.h>
  117 #endif
  118 #if STDC_HEADERS
  119 # include <stdlib.h>
  120 # include <stddef.h>
  121 #else
  122 # if HAVE_STDLIB_H
  123 #  include <stdlib.h>
  124 # endif
  125 #endif
  126 #if HAVE_STRING_H
  127 # if !STDC_HEADERS && HAVE_MEMORY_H
  128 #  include <memory.h>
  129 # endif
  130 # include <string.h>
  131 #endif
  132 #if HAVE_STRINGS_H
  133 # include <strings.h>
  134 #endif
  135 #if HAVE_INTTYPES_H
  136 # include <inttypes.h>
  137 #else
  138 # if HAVE_STDINT_H
  139 #  include <stdint.h>
  140 # endif
  141 #endif
  142 #if HAVE_UNISTD_H
  143 # include <unistd.h>
  144 #endif"
  145 
  146 # Initialize some variables set by options.
  147 ac_init_help=
  148 ac_init_version=false
  149 # The variables have the same names as the options, with
  150 # dashes changed to underlines.
  151 cache_file=/dev/null
  152 exec_prefix=NONE
  153 no_create=
  154 no_recursion=
  155 prefix=NONE
  156 program_prefix=NONE
  157 program_suffix=NONE
  158 program_transform_name=s,x,x,
  159 silent=
  160 site=
  161 srcdir=
  162 verbose=
  163 x_includes=NONE
  164 x_libraries=NONE
  165 
  166 # Installation directory options.
  167 # These are left unexpanded so users can "make install exec_prefix=/foo"
  168 # and all the variables that are supposed to be based on exec_prefix
  169 # by default will actually change.
  170 # Use braces instead of parens because sh, perl, etc. also accept them.
  171 bindir='${exec_prefix}/bin'
  172 sbindir='${exec_prefix}/sbin'
  173 libexecdir='${exec_prefix}/libexec'
  174 datarootdir='${prefix}/share'
  175 datadir='${datarootdir}'
  176 sysconfdir='${prefix}/etc'
  177 sharedstatedir='${prefix}/com'
  178 localstatedir='${prefix}/var'
  179 runstatedir='${localstatedir}/run'
  180 libdir='${exec_prefix}/lib'
  181 includedir='${prefix}/include'
  182 oldincludedir='/usr/include'
  183 infodir='${datarootdir}/info'
  184 mandir='${datarootdir}/man'
  185 
  186 # Identity of this package.
  187 PACKAGE_NAME=
  188 PACKAGE_TARNAME=
  189 PACKAGE_VERSION=
  190 PACKAGE_STRING=
  191 PACKAGE_BUGREPORT=
  192 
  193 ac_prev=
  194 for ac_option
  195 do
  196   # If the previous option needs an argument, assign it.
  197   if test -n "$ac_prev"; then
  198     eval "$ac_prev=\$ac_option"
  199     ac_prev=
  200     continue
  201   fi
  202 
  203   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  204 
  205   # Accept the important Cygnus configure options, so we can diagnose typos.
  206 
  207   case $ac_option in
  208 
  209   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  210     ac_prev=bindir ;;
  211   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  212     bindir=$ac_optarg ;;
  213 
  214   -build | --build | --buil | --bui | --bu)
  215     ac_prev=build_alias ;;
  216   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  217     build_alias=$ac_optarg ;;
  218 
  219   -cache-file | --cache-file | --cache-fil | --cache-fi \
  220   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  221     ac_prev=cache_file ;;
  222   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  223   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  224     cache_file=$ac_optarg ;;
  225 
  226   --config-cache | -C)
  227     cache_file=config.cache ;;
  228 
  229   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  230     ac_prev=datadir ;;
  231   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  232   | --da=*)
  233     datadir=$ac_optarg ;;
  234 
  235   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  236   | --dataroo | --dataro | --datar)
  237     ac_prev=datarootdir ;;
  238   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  239   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  240     datarootdir=$ac_optarg ;;
  241 
  242   -disable-* | --disable-*)
  243     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  244     # Reject names that are not valid shell variable names.
  245     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  246       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  247    { (exit 1); exit 1; }; }
  248     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  249     eval "enable_$ac_feature=no" ;;
  250 
  251   -enable-* | --enable-*)
  252     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  253     # Reject names that are not valid shell variable names.
  254     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  255       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  256    { (exit 1); exit 1; }; }
  257     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  258     case $ac_option in
  259       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  260       *) ac_optarg=yes ;;
  261     esac
  262     eval "enable_$ac_feature='$ac_optarg'" ;;
  263 
  264   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  265   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  266   | --exec | --exe | --ex)
  267     ac_prev=exec_prefix ;;
  268   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  269   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  270   | --exec=* | --exe=* | --ex=*)
  271     exec_prefix=$ac_optarg ;;
  272 
  273   -gas | --gas | --ga | --g)
  274     # Obsolete; use --with-gas.
  275     with_gas=yes ;;
  276 
  277   -help | --help | --hel | --he | -h)
  278     ac_init_help=long ;;
  279   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  280     ac_init_help=recursive ;;
  281   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  282     ac_init_help=short ;;
  283 
  284   -host | --host | --hos | --ho)
  285     ac_prev=host_alias ;;
  286   -host=* | --host=* | --hos=* | --ho=*)
  287     host_alias=$ac_optarg ;;
  288 
  289   -includedir | --includedir | --includedi | --included | --include \
  290   | --includ | --inclu | --incl | --inc)
  291     ac_prev=includedir ;;
  292   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  293   | --includ=* | --inclu=* | --incl=* | --inc=*)
  294     includedir=$ac_optarg ;;
  295 
  296   -infodir | --infodir | --infodi | --infod | --info | --inf)
  297     ac_prev=infodir ;;
  298   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  299     infodir=$ac_optarg ;;
  300 
  301   -libdir | --libdir | --libdi | --libd)
  302     ac_prev=libdir ;;
  303   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  304     libdir=$ac_optarg ;;
  305 
  306   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  307   | --libexe | --libex | --libe)
  308     ac_prev=libexecdir ;;
  309   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  310   | --libexe=* | --libex=* | --libe=*)
  311     libexecdir=$ac_optarg ;;
  312 
  313   -localstatedir | --localstatedir | --localstatedi | --localstated \
  314   | --localstate | --localstat | --localsta | --localst \
  315   | --locals | --local | --loca | --loc | --lo)
  316     ac_prev=localstatedir ;;
  317   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  318   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  319   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  320     localstatedir=$ac_optarg ;;
  321 
  322   -runstatedir | --runstatedir | --runstatedi | --runstated \
  323   | --runstate | --runstat | --runsta | --runst \
  324   | --runs | --run | --ru)
  325     ac_prev=runstatedir ;;
  326   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  327   | --runstate=* | --runstat=* | --runsta=* | --runst=* \
  328   | --runs=* | --run=* | --ru=*)
  329     runstatedir=$ac_optarg ;;
  330 
  331   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  332     ac_prev=mandir ;;
  333   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  334     mandir=$ac_optarg ;;
  335 
  336   -nfp | --nfp | --nf)
  337     # Obsolete; use --without-fp.
  338     with_fp=no ;;
  339 
  340   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  341   | --no-cr | --no-c)
  342     no_create=yes ;;
  343 
  344   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  345   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  346     no_recursion=yes ;;
  347 
  348   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  349   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  350   | --oldin | --oldi | --old | --ol | --o)
  351     ac_prev=oldincludedir ;;
  352   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  353   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  354   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  355     oldincludedir=$ac_optarg ;;
  356 
  357   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  358     ac_prev=prefix ;;
  359   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  360     prefix=$ac_optarg ;;
  361 
  362   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  363   | --program-pre | --program-pr | --program-p)
  364     ac_prev=program_prefix ;;
  365   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  366   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  367     program_prefix=$ac_optarg ;;
  368 
  369   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  370   | --program-suf | --program-su | --program-s)
  371     ac_prev=program_suffix ;;
  372   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  373   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  374     program_suffix=$ac_optarg ;;
  375 
  376   -program-transform-name | --program-transform-name \
  377   | --program-transform-nam | --program-transform-na \
  378   | --program-transform-n | --program-transform- \
  379   | --program-transform | --program-transfor \
  380   | --program-transfo | --program-transf \
  381   | --program-trans | --program-tran \
  382   | --progr-tra | --program-tr | --program-t)
  383     ac_prev=program_transform_name ;;
  384   -program-transform-name=* | --program-transform-name=* \
  385   | --program-transform-nam=* | --program-transform-na=* \
  386   | --program-transform-n=* | --program-transform-=* \
  387   | --program-transform=* | --program-transfor=* \
  388   | --program-transfo=* | --program-transf=* \
  389   | --program-trans=* | --program-tran=* \
  390   | --progr-tra=* | --program-tr=* | --program-t=*)
  391     program_transform_name=$ac_optarg ;;
  392 
  393   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  394   | -silent | --silent | --silen | --sile | --sil)
  395     silent=yes ;;
  396 
  397   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  398     ac_prev=sbindir ;;
  399   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  400   | --sbi=* | --sb=*)
  401     sbindir=$ac_optarg ;;
  402 
  403   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  404   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  405   | --sharedst | --shareds | --shared | --share | --shar \
  406   | --sha | --sh)
  407     ac_prev=sharedstatedir ;;
  408   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  409   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  410   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  411   | --sha=* | --sh=*)
  412     sharedstatedir=$ac_optarg ;;
  413 
  414   -site | --site | --sit)
  415     ac_prev=site ;;
  416   -site=* | --site=* | --sit=*)
  417     site=$ac_optarg ;;
  418 
  419   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  420     ac_prev=srcdir ;;
  421   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  422     srcdir=$ac_optarg ;;
  423 
  424   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  425   | --syscon | --sysco | --sysc | --sys | --sy)
  426     ac_prev=sysconfdir ;;
  427   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  428   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  429     sysconfdir=$ac_optarg ;;
  430 
  431   -target | --target | --targe | --targ | --tar | --ta | --t)
  432     ac_prev=target_alias ;;
  433   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  434     target_alias=$ac_optarg ;;
  435 
  436   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  437     verbose=yes ;;
  438 
  439   -version | --version | --versio | --versi | --vers | -V)
  440     ac_init_version=: ;;
  441 
  442   -with-* | --with-*)
  443     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  444     # Reject names that are not valid shell variable names.
  445     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  446       { echo "$as_me: error: invalid package name: $ac_package" >&2
  447    { (exit 1); exit 1; }; }
  448     ac_package=`echo $ac_package| sed 's/-/_/g'`
  449     case $ac_option in
  450       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  451       *) ac_optarg=yes ;;
  452     esac
  453     eval "with_$ac_package='$ac_optarg'" ;;
  454 
  455   -without-* | --without-*)
  456     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  457     # Reject names that are not valid shell variable names.
  458     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  459       { echo "$as_me: error: invalid package name: $ac_package" >&2
  460    { (exit 1); exit 1; }; }
  461     ac_package=`echo $ac_package | sed 's/-/_/g'`
  462     eval "with_$ac_package=no" ;;
  463 
  464   --x)
  465     # Obsolete; use --with-x.
  466     with_x=yes ;;
  467 
  468   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  469   | --x-incl | --x-inc | --x-in | --x-i)
  470     ac_prev=x_includes ;;
  471   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  472   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  473     x_includes=$ac_optarg ;;
  474 
  475   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  476   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  477     ac_prev=x_libraries ;;
  478   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  479   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  480     x_libraries=$ac_optarg ;;
  481 
  482   -*) { echo "$as_me: error: unrecognized option: $ac_option
  483 Try \`$0 --help' for more information." >&2
  484    { (exit 1); exit 1; }; }
  485     ;;
  486 
  487   *=*)
  488     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  489     # Reject names that are not valid shell variable names.
  490     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  491       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  492    { (exit 1); exit 1; }; }
  493     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  494     eval "$ac_envvar='$ac_optarg'"
  495     export $ac_envvar ;;
  496 
  497   *)
  498     # FIXME: should be removed in autoconf 3.0.
  499     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  500     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  501       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  502     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  503     ;;
  504 
  505   esac
  506 done
  507 
  508 if test -n "$ac_prev"; then
  509   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  510   { echo "$as_me: error: missing argument to $ac_option" >&2
  511    { (exit 1); exit 1; }; }
  512 fi
  513 
  514 # Be sure to have absolute paths.
  515 for ac_var in exec_prefix prefix
  516 do
  517   eval ac_val=$`echo $ac_var`
  518   case $ac_val in
  519     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  520     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
  521    { (exit 1); exit 1; }; };;
  522   esac
  523 done
  524 
  525 # Be sure to have absolute paths.
  526 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
  527               localstatedir libdir includedir oldincludedir infodir mandir
  528 do
  529   eval ac_val=$`echo $ac_var`
  530   case $ac_val in
  531     [\\/$]* | ?:[\\/]* ) ;;
  532     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
  533    { (exit 1); exit 1; }; };;
  534   esac
  535 done
  536 
  537 # There might be people who depend on the old broken behavior: `$host'
  538 # used to hold the argument of --host etc.
  539 build=$build_alias
  540 host=$host_alias
  541 target=$target_alias
  542 
  543 # FIXME: should be removed in autoconf 3.0.
  544 if test "x$host_alias" != x; then
  545   if test "x$build_alias" = x; then
  546     cross_compiling=maybe
  547     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  548     If a cross compiler is detected then cross compile mode will be used." >&2
  549   elif test "x$build_alias" != "x$host_alias"; then
  550     cross_compiling=yes
  551   fi
  552 fi
  553 
  554 ac_tool_prefix=
  555 test -n "$host_alias" && ac_tool_prefix=$host_alias-
  556 
  557 test "$silent" = yes && exec 6>/dev/null
  558 
  559 # Find the source files, if location was not specified.
  560 if test -z "$srcdir"; then
  561   ac_srcdir_defaulted=yes
  562   # Try the directory containing this script, then its parent.
  563   ac_prog=$0
  564   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
  565   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  566   srcdir=$ac_confdir
  567   if test ! -r $srcdir/$ac_unique_file; then
  568     srcdir=..
  569   fi
  570 else
  571   ac_srcdir_defaulted=no
  572 fi
  573 if test ! -r $srcdir/$ac_unique_file; then
  574   if test "$ac_srcdir_defaulted" = yes; then
  575     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
  576    { (exit 1); exit 1; }; }
  577   else
  578     { echo "$as_me: error: cannot find sources in $srcdir" >&2
  579    { (exit 1); exit 1; }; }
  580   fi
  581 fi
  582 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  583 ac_env_build_alias_set=${build_alias+set}
  584 ac_env_build_alias_value=$build_alias
  585 ac_cv_env_build_alias_set=${build_alias+set}
  586 ac_cv_env_build_alias_value=$build_alias
  587 ac_env_host_alias_set=${host_alias+set}
  588 ac_env_host_alias_value=$host_alias
  589 ac_cv_env_host_alias_set=${host_alias+set}
  590 ac_cv_env_host_alias_value=$host_alias
  591 ac_env_target_alias_set=${target_alias+set}
  592 ac_env_target_alias_value=$target_alias
  593 ac_cv_env_target_alias_set=${target_alias+set}
  594 ac_cv_env_target_alias_value=$target_alias
  595 ac_env_CC_set=${CC+set}
  596 ac_env_CC_value=$CC
  597 ac_cv_env_CC_set=${CC+set}
  598 ac_cv_env_CC_value=$CC
  599 ac_env_CFLAGS_set=${CFLAGS+set}
  600 ac_env_CFLAGS_value=$CFLAGS
  601 ac_cv_env_CFLAGS_set=${CFLAGS+set}
  602 ac_cv_env_CFLAGS_value=$CFLAGS
  603 ac_env_LDFLAGS_set=${LDFLAGS+set}
  604 ac_env_LDFLAGS_value=$LDFLAGS
  605 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  606 ac_cv_env_LDFLAGS_value=$LDFLAGS
  607 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  608 ac_env_CPPFLAGS_value=$CPPFLAGS
  609 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  610 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  611 ac_env_CPP_set=${CPP+set}
  612 ac_env_CPP_value=$CPP
  613 ac_cv_env_CPP_set=${CPP+set}
  614 ac_cv_env_CPP_value=$CPP
  615 
  616 #
  617 # Report the --help message.
  618 #
  619 if test "$ac_init_help" = "long"; then
  620   # Omit some internal or obsolete options to make the list less imposing.
  621   # This message is too long to be a string in the A/UX 3.1 sh.
  622   cat <<EOF
  623 \`configure' configures this package to adapt to many kinds of systems.
  624 
  625 Usage: $0 [OPTION]... [VAR=VALUE]...
  626 
  627 To assign environment variables (e.g., CC, CFLAGS...), specify them as
  628 VAR=VALUE.  See below for descriptions of some of the useful variables.
  629 
  630 Defaults for the options are specified in brackets.
  631 
  632 Configuration:
  633   -h, --help              display this help and exit
  634       --help=short        display options specific to this package
  635       --help=recursive    display the short help of all the included packages
  636   -V, --version           display version information and exit
  637   -q, --quiet, --silent   do not print \`checking...' messages
  638       --cache-file=FILE   cache test results in FILE [disabled]
  639   -C, --config-cache      alias for \`--cache-file=config.cache'
  640   -n, --no-create         do not create output files
  641       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  642 
  643 EOF
  644 
  645   cat <<EOF
  646 Installation directories:
  647   --prefix=PREFIX         install architecture-independent files in PREFIX
  648                           [$ac_default_prefix]
  649   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  650                           [PREFIX]
  651 
  652 By default, \`make install' will install all the files in
  653 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  654 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  655 for instance \`--prefix=\$HOME'.
  656 
  657 For better control, use the options below.
  658 
  659 Fine tuning of the installation directories:
  660   --bindir=DIR            user executables [EPREFIX/bin]
  661   --sbindir=DIR           system admin executables [EPREFIX/sbin]
  662   --libexecdir=DIR        program executables [EPREFIX/libexec]
  663   --datarootdir=DIR       read-only architecture-independent data [PREFIX/share]
  664   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  665   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  666   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  667   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  668   --runstatedir=DIR       extra definition of runtime data [LOCALSTATEDIR/run]
  669   --libdir=DIR            object code libraries [EPREFIX/lib]
  670   --includedir=DIR        C header files [PREFIX/include]
  671   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  672   --infodir=DIR           info documentation [DATAROOTDIR/info]
  673   --mandir=DIR            man documentation [DATAROOTDIR/man]
  674 EOF
  675 
  676   cat <<\EOF
  677 
  678 Program names:
  679   --program-prefix=PREFIX            prepend PREFIX to installed program names
  680   --program-suffix=SUFFIX            append SUFFIX to installed program names
  681   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  682 
  683 X features:
  684   --x-includes=DIR    X include files are in DIR
  685   --x-libraries=DIR   X library files are in DIR
  686 
  687 System types:
  688   --build=BUILD           configure for building on BUILD [guessed]
  689   --host=HOST       build programs to run on HOST [BUILD]
  690 EOF
  691 fi
  692 
  693 if test -n "$ac_init_help"; then
  694 
  695   cat <<\EOF
  696 
  697 Optional Packages:
  698   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  699   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  700 
  701 Optional Features:
  702   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  703   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  704 
  705   --with-install-prefix   prefixes actual install location (default: /)
  706   --with-build-cc=XXX     the build C compiler ($BUILD_CC)
  707   --with-build-cpp=XXX    the build C preprocessor ($BUILD_CPP)
  708   --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
  709   --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
  710   --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
  711   --with-build-libs=XXX   the build libraries (${BUILD_LIBS})
  712   --disable-heapsort      disable heapsort() as alternative to qsort
  713   --with-ispell           (default: from system path)
  714   --with-metamail         (default: from system path)
  715   --with-sum              (default: from system path)
  716   --with-editor=PROG      specify editor (default: vi)
  717   --with-mailer=PROG      specify default mailer-program (default: mailx)
  718   --with-mailbox=DIR      directory for incoming mailboxes (default: empty)
  719   --disable-pgp-gpg       disable PGP/GPG Support
  720   --with-pgp              (default: from system path)
  721   --with-pgpk             (default: from system path)
  722   --with-gpg              (default: from system path)
  723   --with-slrnface         (default: from system path)
  724   --with-shell=PROG       default $SHELL program (default: sh)
  725   --disable-nntp          disable reading via NNTP
  726   --enable-nntp-only      enable reading via NNTP only
  727   --enable-debug          turn on debug support
  728   --disable-echo          do not display "compiling" commands
  729   --enable-prototypes     check for optional prototypes
  730   --enable-warnings       turn on GCC compiler warnings
  731   --with-libdir=PATH      news-library (default: /usr/lib/news)
  732   --with-spooldir=PATH    news spool-directory (default: /var/spool/news)
  733   --with-nov-dir=PATH     news overview-directory (default: $SPOOLDIR)
  734   --with-nov-fname        specify names of overview files (default: .overview)
  735   --with-inews-dir=PATH   directory containing "inews" (default: $INEWSPATH)
  736   --with-socks=path       link with socks library if available
  737   --with-socks5=path      link with socks5 library if available
  738   --disable-fcntl         disable fcntl() locking
  739   --enable-lockf          enable lockf() locking
  740   --enable-flock          enable flock() locking
  741   --with-screen=xxx       specify screen type, which must be one of:
  742                           termcap, terminfo, curses, ncurses, ncursesw, or
  743                           pdcurses (replaces options --enable-curses and
  744                           --with-ncurses)
  745   --with-curses-dir=DIR   directory in which (n)curses is installed
  746   --with-ncurses          link with ncurses if available (deprecated)
  747   --enable-curses         use curses interface (deprecated)
  748   --with-pkg-config{=path} enable/disable use of pkg-config
  749   --with-pcre=PATH        use installed pcre versus bundled
  750   --with-dbmalloc         test: use Conor Cahill's dbmalloc library
  751   --with-dmalloc          test: use Gray Watson's dmalloc library
  752   --with-trace            use debugging/traces for screen output
  753   --with-domain-name      sets $DOMAIN_NAME (default: empty)
  754   --with-nntp-default-server
  755                           (sets NNTP_DEFAULT_SERVER)
  756                           (default: news.$DOMAIN_NAME)
  757   --enable-mh-mail-handling
  758                           use MH style mail handling for mailgroups
  759   --enable-cancel-locks   enable creation of Cancel-Locks
  760   --disable-gsasl         don't use GNU SASL
  761   --disable-8bit-keys     disable 8-bit keycode support
  762   --disable-color         disable ANSI-color support
  763   --disable-etiquette     disable printing of posting-etiquette
  764   --disable-break-long-lines
  765                           don't break long mime-encoded lines
  766   --disable-mime-strict-charset
  767                           force MM_CHARSET obeyance
  768   --with-mime-default-charset=CHARSET
  769                           fallback for $MM_CHARSET (default: US-ASCII)
  770   --with-iso-to-ascii     ISO -> ASCII conversion (default: -1)
  771   --disable-locale        disable locale support
  772   --disable-posting       disable posting
  773   --disable-shell-escape  disable shell escape
  774   --enable-fascist-newsadmin
  775                           have fascist newsadmin
  776   --disable-inverse-video disable inverse video and highlighting
  777   --disable-piping        disable piping support
  778   --disable-printing      disable printer support
  779   --disable-append-pid    disable appending .pid to tmp-files
  780   --disable-xhdr-xref     disable XHDR XREF fallback
  781   --enable-broken-listgroup-fix
  782                           send extra GROUP command before LISTGROUP
  783   --enable-broken-system-fix
  784                           ignore system()s return value
  785   --with-defaults-dir=PATH
  786                           directory containing tin.defaults file
  787                           (default: /etc/tin)
  788   --disable-ipv6          disable IPv6 support (default: enabled)
  789   --enable-long-article-numbers
  790                           enable long article numbers (default: disabled)
  791   --with-coffee           coffee support
  792   --with-libiconv-prefix=DIR
  793                           search for libiconv in DIR/include and DIR/lib
  794   --disable-nls           do not use Native Language Support
  795   --with-included-gettext use the GNU gettext library included here
  796   --with-textdomain=PKG   NLS text-domain (default is package name)
  797   --disable-included-msgs use included messages, for i18n support
  798   --with-Xaw3d            link with Xaw 3d library
  799   --with-Xaw3dxft         link with Xaw 3d xft library
  800   --with-neXtaw           link with neXT Athena library
  801   --with-XawPlus          link with Athena-Plus library
  802   --with-x                use the X Window System
  803 
  804 Some influential environment variables:
  805   CC          C compiler command
  806   CFLAGS      C compiler flags
  807   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  808               nonstandard directory <lib dir>
  809   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
  810               headers in a nonstandard directory <include dir>
  811   CPP         C preprocessor
  812 
  813 Use these variables to override the choices made by `configure' or to help
  814 it to find libraries and programs with nonstandard names/locations.
  815 
  816 EOF
  817 fi
  818 
  819 if test "$ac_init_help" = "recursive"; then
  820   # If there are subdirs, report their specific --help.
  821   ac_popdir=`pwd`
  822   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
  823     cd $ac_subdir
  824     # A "../" for each directory in /$ac_subdir.
  825     ac_dots=`echo $ac_subdir |
  826              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
  827 
  828     case $srcdir in
  829     .) # No --srcdir option.  We are building in place.
  830       ac_sub_srcdir=$srcdir ;;
  831     [\\/]* | ?:[\\/]* ) # Absolute path.
  832       ac_sub_srcdir=$srcdir/$ac_subdir ;;
  833     *) # Relative path.
  834       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
  835     esac
  836 
  837     # Check for guested configure; otherwise get Cygnus style configure.
  838     if test -f $ac_sub_srcdir/configure.gnu; then
  839       echo
  840       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
  841     elif test -f $ac_sub_srcdir/configure; then
  842       echo
  843       $SHELL $ac_sub_srcdir/configure  --help=recursive
  844     elif test -f $ac_sub_srcdir/configure.ac ||
  845            test -f $ac_sub_srcdir/configure.in; then
  846       echo
  847       $ac_configure --help
  848     else
  849       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
  850     fi
  851     cd $ac_popdir
  852   done
  853 fi
  854 
  855 test -n "$ac_init_help" && exit 0
  856 if $ac_init_version; then
  857   cat <<\EOF
  858 
  859 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  860 Free Software Foundation, Inc.
  861 This configure script is free software; the Free Software Foundation
  862 gives unlimited permission to copy, distribute and modify it.
  863 EOF
  864   exit 0
  865 fi
  866 exec 5>config.log
  867 cat >&5 <<EOF
  868 This file contains any messages produced by compilers while
  869 running configure, to aid debugging if configure makes a mistake.
  870 
  871 It was created by $as_me, which was
  872 generated by GNU Autoconf 2.52.20181006.  Invocation command line was
  873 
  874   $ $0 $@
  875 
  876 EOF
  877 {
  878 cat <<_ASUNAME
  879 ## ---------- ##
  880 ## Platform.  ##
  881 ## ---------- ##
  882 
  883 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  884 uname -m = `(uname -m) 2>/dev/null || echo unknown`
  885 uname -r = `(uname -r) 2>/dev/null || echo unknown`
  886 uname -s = `(uname -s) 2>/dev/null || echo unknown`
  887 uname -v = `(uname -v) 2>/dev/null || echo unknown`
  888 
  889 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  890 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  891 
  892 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  893 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  894 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  895 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
  896 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  897 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  898 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  899 
  900 PATH = $PATH
  901 
  902 _ASUNAME
  903 } >&5
  904 
  905 cat >&5 <<EOF
  906 ## ------------ ##
  907 ## Core tests.  ##
  908 ## ------------ ##
  909 
  910 EOF
  911 
  912 # Keep a trace of the command line.
  913 # Strip out --no-create and --no-recursion so they do not pile up.
  914 # Also quote any args containing shell meta-characters.
  915 ac_configure_args=
  916 ac_sep=
  917 for ac_arg
  918 do
  919   case $ac_arg in
  920   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  921   | --no-cr | --no-c) ;;
  922   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  923   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  924   *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  925     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
  926     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  927     ac_sep=" " ;;
  928   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
  929      ac_sep=" " ;;
  930   esac
  931   # Get rid of the leading space.
  932 done
  933 
  934 # When interrupted or exit'd, cleanup temporary files, and complete
  935 # config.log.  We remove comments because anyway the quotes in there
  936 # would cause problems or look ugly.
  937 trap 'exit_status=$?
  938   # Save into config.log some information that might help in debugging.
  939   echo >&5
  940   echo "## ----------------- ##" >&5
  941   echo "## Cache variables.  ##" >&5
  942   echo "## ----------------- ##" >&5
  943   echo >&5
  944   # The following way of writing the cache mishandles newlines in values,
  945 {
  946   (set) 2>&1 |
  947     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  948     *ac_space=\ *)
  949       sed -n \
  950         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  951           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  952       ;;
  953     *)
  954       sed -n \
  955         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  956       ;;
  957     esac;
  958 } >&5
  959   sed "/^$/d" confdefs.h >conftest.log
  960   if test -s conftest.log; then
  961     echo >&5
  962     echo "## ------------ ##" >&5
  963     echo "## confdefs.h.  ##" >&5
  964     echo "## ------------ ##" >&5
  965     echo >&5
  966     cat conftest.log >&5
  967   fi
  968   (echo; echo) >&5
  969   test "$ac_signal" != 0 &&
  970     echo "$as_me: caught signal $ac_signal" >&5
  971   echo "$as_me: exit $exit_status" >&5
  972   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
  973     exit $exit_status
  974      ' 0
  975 for ac_signal in 1 2 13 15; do
  976   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  977 done
  978 ac_signal=0
  979 
  980 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  981 rm -rf conftest* confdefs.h
  982 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  983 echo >confdefs.h
  984 
  985 # Let the site file select an alternate cache file if it wants to.
  986 # Prefer explicitly selected file to automatically selected ones.
  987 if test -z "$CONFIG_SITE"; then
  988   if test "x$prefix" != xNONE; then
  989     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  990   else
  991     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  992   fi
  993 fi
  994 for ac_site_file in $CONFIG_SITE; do
  995   if test -r "$ac_site_file"; then
  996     { echo "$as_me:996: loading site script $ac_site_file" >&5
  997 echo "$as_me: loading site script $ac_site_file" >&6;}
  998     cat "$ac_site_file" >&5
  999     . "$ac_site_file"
 1000   fi
 1001 done
 1002 
 1003 if test -r "$cache_file"; then
 1004   # Some versions of bash will fail to source /dev/null (special
 1005   # files actually), so we avoid doing that.
 1006   if test -f "$cache_file"; then
 1007     { echo "$as_me:1007: loading cache $cache_file" >&5
 1008 echo "$as_me: loading cache $cache_file" >&6;}
 1009     case $cache_file in
 1010       [\\/]* | ?:[\\/]* ) . $cache_file;;
 1011       *)                      . ./$cache_file;;
 1012     esac
 1013   fi
 1014 else
 1015   { echo "$as_me:1015: creating cache $cache_file" >&5
 1016 echo "$as_me: creating cache $cache_file" >&6;}
 1017   >$cache_file
 1018 fi
 1019 
 1020 # Check that the precious variables saved in the cache have kept the same
 1021 # value.
 1022 ac_cache_corrupted=false
 1023 for ac_var in `(set) 2>&1 |
 1024                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 1025   eval ac_old_set=\$ac_cv_env_${ac_var}_set
 1026   eval ac_new_set=\$ac_env_${ac_var}_set
 1027   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 1028   eval ac_new_val="\$ac_env_${ac_var}_value"
 1029   case $ac_old_set,$ac_new_set in
 1030     set,)
 1031       { echo "$as_me:1031: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 1032 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 1033       ac_cache_corrupted=: ;;
 1034     ,set)
 1035       { echo "$as_me:1035: error: \`$ac_var' was not set in the previous run" >&5
 1036 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 1037       ac_cache_corrupted=: ;;
 1038     ,);;
 1039     *)
 1040       if test "x$ac_old_val" != "x$ac_new_val"; then
 1041         { echo "$as_me:1041: error: \`$ac_var' has changed since the previous run:" >&5
 1042 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 1043         { echo "$as_me:1043:   former value:  $ac_old_val" >&5
 1044 echo "$as_me:   former value:  $ac_old_val" >&2;}
 1045         { echo "$as_me:1045:   current value: $ac_new_val" >&5
 1046 echo "$as_me:   current value: $ac_new_val" >&2;}
 1047         ac_cache_corrupted=:
 1048       fi;;
 1049   esac
 1050   # Pass precious variables to config.status.  It doesn't matter if
 1051   # we pass some twice (in addition to the command line arguments).
 1052   if test "$ac_new_set" = set; then
 1053     case $ac_new_val in
 1054     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 1055       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
 1056       ac_configure_args="$ac_configure_args '$ac_arg'"
 1057       ;;
 1058     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
 1059        ;;
 1060     esac
 1061   fi
 1062 done
 1063 if $ac_cache_corrupted; then
 1064   { echo "$as_me:1064: error: changes in the environment can compromise the build" >&5
 1065 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 1066   { { echo "$as_me:1066: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 1067 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 1068    { (exit 1); exit 1; }; }
 1069 fi
 1070 
 1071 ac_ext=c
 1072 ac_cpp='$CPP $CPPFLAGS'
 1073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 1074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 1075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 1076 ac_main_return=return
 1077 
 1078 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
 1079   *c*,-n*) ECHO_N= ECHO_C=  # newlines do not sed ;-) only broken shells would use this case anyway
 1080            ECHO_T=' ' ;;
 1081   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 1082   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
 1083 esac
 1084 echo "#! $SHELL" >conftest.sh
 1085 echo  "exit 0"   >>conftest.sh
 1086 chmod +x conftest.sh
 1087 if { (echo "$as_me:1087: PATH=\".;.\"; conftest.sh") >&5
 1088   (PATH=".;."; conftest.sh) 2>&5
 1089   ac_status=$?
 1090   echo "$as_me:1090: \$? = $ac_status" >&5
 1091   (exit $ac_status); }; then
 1092   ac_path_separator=';'
 1093 else
 1094   ac_path_separator=:
 1095 fi
 1096 PATH_SEPARATOR="$ac_path_separator"
 1097 rm -f conftest.sh
 1098 
 1099 ac_config_headers="$ac_config_headers include/autoconf.h:include/autoconf.hin"
 1100 
 1101 PACKAGE=tin
 1102 VERSION=2.4.3
 1103 cat >>confdefs.h <<EOF
 1104 #define PACKAGE "$PACKAGE"
 1105 EOF
 1106 
 1107 cat >>confdefs.h <<EOF
 1108 #define VERSION "$VERSION"
 1109 EOF
 1110 
 1111 EXTRAO_DEP='#'
 1112 
 1113 ac_aux_dir=
 1114 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 1115   if test -f $ac_dir/install-sh; then
 1116     ac_aux_dir=$ac_dir
 1117     ac_install_sh="$ac_aux_dir/install-sh -c"
 1118     break
 1119   elif test -f $ac_dir/install.sh; then
 1120     ac_aux_dir=$ac_dir
 1121     ac_install_sh="$ac_aux_dir/install.sh -c"
 1122     break
 1123   elif test -f $ac_dir/shtool; then
 1124     ac_aux_dir=$ac_dir
 1125     ac_install_sh="$ac_aux_dir/shtool install -c"
 1126     break
 1127   fi
 1128 done
 1129 if test -z "$ac_aux_dir"; then
 1130   { { echo "$as_me:1130: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 1131 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 1132    { (exit 1); exit 1; }; }
 1133 fi
 1134 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 1135 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 1136 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 1137 
 1138 # Make sure we can run config.sub.
 1139 $ac_config_sub sun4 >/dev/null 2>&1 ||
 1140   { { echo "$as_me:1140: error: cannot run $ac_config_sub" >&5
 1141 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 1142    { (exit 1); exit 1; }; }
 1143 
 1144 echo "$as_me:1144: checking build system type" >&5
 1145 echo $ECHO_N "checking build system type... $ECHO_C" >&6
 1146 if test "${ac_cv_build+set}" = set; then
 1147   echo $ECHO_N "(cached) $ECHO_C" >&6
 1148 else
 1149   ac_cv_build_alias=$build_alias
 1150 test -z "$ac_cv_build_alias" &&
 1151   ac_cv_build_alias=`$ac_config_guess`
 1152 test -z "$ac_cv_build_alias" &&
 1153   { { echo "$as_me:1153: error: cannot guess build type; you must specify one" >&5
 1154 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 1155    { (exit 1); exit 1; }; }
 1156 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 1157   { { echo "$as_me:1157: error: $ac_config_sub $ac_cv_build_alias failed." >&5
 1158 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
 1159    { (exit 1); exit 1; }; }
 1160 
 1161 fi
 1162 echo "$as_me:1162: result: $ac_cv_build" >&5
 1163 echo "${ECHO_T}$ac_cv_build" >&6
 1164 build=$ac_cv_build
 1165 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 1166 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 1167 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 1168 
 1169 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
 1170     echo "$as_me:1170: checking host system type" >&5
 1171 echo $ECHO_N "checking host system type... $ECHO_C" >&6
 1172 if test "${ac_cv_host+set}" = set; then
 1173   echo $ECHO_N "(cached) $ECHO_C" >&6
 1174 else
 1175   ac_cv_host_alias=$host_alias
 1176 test -z "$ac_cv_host_alias" &&
 1177   ac_cv_host_alias=$ac_cv_build_alias
 1178 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 1179   { { echo "$as_me:1179: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 1180 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 1181    { (exit 1); exit 1; }; }
 1182 
 1183 fi
 1184 echo "$as_me:1184: result: $ac_cv_host" >&5
 1185 echo "${ECHO_T}$ac_cv_host" >&6
 1186 host=$ac_cv_host
 1187 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 1188 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 1189 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 1190 
 1191     system_name="$host_os"
 1192 else
 1193     system_name="`(uname -s -r) 2>/dev/null`"
 1194     if test -z "$system_name" ; then
 1195         system_name="`(hostname) 2>/dev/null`"
 1196     fi
 1197 fi
 1198 test -n "$system_name" &&
 1199 cat >>confdefs.h <<EOF
 1200 #define SYSTEM_NAME "$system_name"
 1201 EOF
 1202 
 1203 if test "${cf_cv_system_name+set}" = set; then
 1204   echo $ECHO_N "(cached) $ECHO_C" >&6
 1205 else
 1206   cf_cv_system_name="$system_name"
 1207 fi
 1208 
 1209 test -z "$system_name" && system_name="$cf_cv_system_name"
 1210 test -n "$cf_cv_system_name" && echo "$as_me:1210: result: Configuring for $cf_cv_system_name" >&5
 1211 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
 1212 
 1213 if test ".$system_name" != ".$cf_cv_system_name" ; then
 1214     echo "$as_me:1214: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
 1215 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
 1216     { { echo "$as_me:1216: error: \"Please remove config.cache and try again.\"" >&5
 1217 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
 1218    { (exit 1); exit 1; }; }
 1219 fi
 1220 
 1221     echo "$as_me:1221: checking for PATH separator" >&5
 1222 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
 1223     case $cf_cv_system_name in
 1224     (os2*)  PATH_SEPARATOR=';'  ;;
 1225     (*) ${PATH_SEPARATOR:=':'}  ;;
 1226     esac
 1227 
 1228     echo "$as_me:1228: result: $PATH_SEPARATOR" >&5
 1229 echo "${ECHO_T}$PATH_SEPARATOR" >&6
 1230 
 1231 # Check whether --with-install-prefix or --without-install-prefix was given.
 1232 if test "${with_install_prefix+set}" = set; then
 1233   withval="$with_install_prefix"
 1234 
 1235 else
 1236   withval="${DESTDIR:-/}"
 1237 fi; if true ; then
 1238 
 1239 if test "x$prefix" != xNONE; then
 1240     cf_path_syntax="$prefix"
 1241 else
 1242     cf_path_syntax="$ac_default_prefix"
 1243 fi
 1244 
 1245 case ".$withval" in
 1246 (.\$\(*\)*|.\'*\'*)
 1247     ;;
 1248 (..|./*|.\\*)
 1249     ;;
 1250 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
 1251     ;;
 1252 (.\${*prefix}*|.\${*dir}*)
 1253     eval withval="$withval"
 1254     case ".$withval" in
 1255     (.NONE/*)
 1256         withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
 1257         ;;
 1258     esac
 1259     ;;
 1260 (.no|.NONE/*)
 1261     withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
 1262     ;;
 1263 (*)
 1264     { { echo "$as_me:1264: error: expected a pathname, not \"$withval\"" >&5
 1265 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
 1266    { (exit 1); exit 1; }; }
 1267     ;;
 1268 esac
 1269 
 1270 fi
 1271 eval DESTDIR="$withval"
 1272 
 1273 case ".$DESTDIR" in # (vi
 1274 ./) DESTDIR=
 1275     ;; # (vi
 1276 ./*/)   ;; # (vi
 1277 ./*)    DESTDIR="$DESTDIR/"
 1278     ;;
 1279 esac
 1280 
 1281 test "$program_prefix" != NONE &&
 1282   program_transform_name="s,^,$program_prefix,;$program_transform_name"
 1283 # Use a double $ so make ignores it.
 1284 test "$program_suffix" != NONE &&
 1285   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 1286 # Double any \ or $.  echo might interpret backslashes.
 1287 # By default was `s,x,x', remove it if useless.
 1288 cat <<\_ACEOF >conftest.sed
 1289 s/[\\$]/&&/g;s/;s,x,x,$//
 1290 _ACEOF
 1291 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 1292 rm conftest.sed
 1293 
 1294 ### Compiler/options that autoconf doesn't get right
 1295 case "$host_os" in
 1296     aix*)   #(vi
 1297         if test "$CC" = ""; then
 1298             # Extract the first word of "xlc", so it can be a program name with args.
 1299 set dummy xlc; ac_word=$2
 1300 echo "$as_me:1300: checking for $ac_word" >&5
 1301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 1302 if test "${ac_cv_path_XLC+set}" = set; then
 1303   echo $ECHO_N "(cached) $ECHO_C" >&6
 1304 else
 1305   case $XLC in
 1306   [\\/]* | ?:[\\/]*)
 1307   ac_cv_path_XLC="$XLC" # Let the user override the test with a path.
 1308   ;;
 1309   *)
 1310   ac_save_IFS=$IFS; IFS=$ac_path_separator
 1311 ac_dummy="$PATH"
 1312 for ac_dir in $ac_dummy; do
 1313   IFS=$ac_save_IFS
 1314   test -z "$ac_dir" && ac_dir=.
 1315   if $as_executable_p "$ac_dir/$ac_word"; then
 1316    ac_cv_path_XLC="$ac_dir/$ac_word"
 1317    echo "$as_me:1317: found $ac_dir/$ac_word" >&5
 1318    break
 1319 fi
 1320 done
 1321 
 1322   ;;
 1323 esac
 1324 fi
 1325 XLC=$ac_cv_path_XLC
 1326 
 1327 if test -n "$XLC"; then
 1328   echo "$as_me:1328: result: $XLC" >&5
 1329 echo "${ECHO_T}$XLC" >&6
 1330 else
 1331   echo "$as_me:1331: result: no" >&5
 1332 echo "${ECHO_T}no" >&6
 1333 fi
 1334 
 1335             if test "$ac_cv_path_XLC" != ""; then
 1336                 CC="$ac_cv_path_XLC"
 1337             fi
 1338         fi
 1339         ;;
 1340     hpux*)  #(vi
 1341         test "$CC" != "cc" && test -z "$CFLAGS" && CFLAGS="-O"
 1342         ;;
 1343 esac
 1344 
 1345 ### Native Language Support
 1346 ALL_LINGUAS="da de en_GB es et fr ru sv tr zh_CN zh_TW"
 1347 
 1348 ### Checks for programs
 1349 save_CFLAGS="$CFLAGS"
 1350 
 1351 ac_ext=c
 1352 ac_cpp='$CPP $CPPFLAGS'
 1353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 1354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 1355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 1356 ac_main_return=return
 1357 if test -n "$ac_tool_prefix"; then
 1358   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 1359 set dummy ${ac_tool_prefix}gcc; ac_word=$2
 1360 echo "$as_me:1360: checking for $ac_word" >&5
 1361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 1362 if test "${ac_cv_prog_CC+set}" = set; then
 1363   echo $ECHO_N "(cached) $ECHO_C" >&6
 1364 else
 1365   if test -n "$CC"; then
 1366   ac_cv_prog_CC="$CC" # Let the user override the test.
 1367 else
 1368   ac_save_IFS=$IFS; IFS=$ac_path_separator
 1369 ac_dummy="$PATH"
 1370 for ac_dir in $ac_dummy; do
 1371   IFS=$ac_save_IFS
 1372   test -z "$ac_dir" && ac_dir=.
 1373   $as_executable_p "$ac_dir/$ac_word" || continue
 1374 ac_cv_prog_CC="${ac_tool_prefix}gcc"
 1375 echo "$as_me:1375: found $ac_dir/$ac_word" >&5
 1376 break
 1377 done
 1378 
 1379 fi
 1380 fi
 1381 CC=$ac_cv_prog_CC
 1382 if test -n "$CC"; then
 1383   echo "$as_me:1383: result: $CC" >&5
 1384 echo "${ECHO_T}$CC" >&6
 1385 else
 1386   echo "$as_me:1386: result: no" >&5
 1387 echo "${ECHO_T}no" >&6
 1388 fi
 1389 
 1390 fi
 1391 if test -z "$ac_cv_prog_CC"; then
 1392   ac_ct_CC=$CC
 1393   # Extract the first word of "gcc", so it can be a program name with args.
 1394 set dummy gcc; ac_word=$2
 1395 echo "$as_me:1395: checking for $ac_word" >&5
 1396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 1397 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 1398   echo $ECHO_N "(cached) $ECHO_C" >&6
 1399 else
 1400   if test -n "$ac_ct_CC"; then
 1401   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 1402 else
 1403   ac_save_IFS=$IFS; IFS=$ac_path_separator
 1404 ac_dummy="$PATH"
 1405 for ac_dir in $ac_dummy; do
 1406   IFS=$ac_save_IFS
 1407   test -z "$ac_dir" && ac_dir=.
 1408   $as_executable_p "$ac_dir/$ac_word" || continue
 1409 ac_cv_prog_ac_ct_CC="gcc"
 1410 echo "$as_me:1410: found $ac_dir/$ac_word" >&5
 1411 break
 1412 done
 1413 
 1414 fi
 1415 fi
 1416 ac_ct_CC=$ac_cv_prog_ac_ct_CC
 1417 if test -n "$ac_ct_CC"; then
 1418   echo "$as_me:1418: result: $ac_ct_CC" >&5
 1419 echo "${ECHO_T}$ac_ct_CC" >&6
 1420 else
 1421   echo "$as_me:1421: result: no" >&5
 1422 echo "${ECHO_T}no" >&6
 1423 fi
 1424 
 1425   CC=$ac_ct_CC
 1426 else
 1427   CC="$ac_cv_prog_CC"
 1428 fi
 1429 
 1430 if test -z "$CC"; then
 1431   if test -n "$ac_tool_prefix"; then
 1432   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 1433 set dummy ${ac_tool_prefix}cc; ac_word=$2
 1434 echo "$as_me:1434: checking for $ac_word" >&5
 1435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 1436 if test "${ac_cv_prog_CC+set}" = set; then
 1437   echo $ECHO_N "(cached) $ECHO_C" >&6
 1438 else
 1439   if test -n "$CC"; then
 1440   ac_cv_prog_CC="$CC" # Let the user override the test.
 1441 else
 1442   ac_save_IFS=$IFS; IFS=$ac_path_separator
 1443 ac_dummy="$PATH"
 1444 for ac_dir in $ac_dummy; do
 1445   IFS=$ac_save_IFS
 1446   test -z "$ac_dir" && ac_dir=.
 1447   $as_executable_p "$ac_dir/$ac_word" || continue
 1448 ac_cv_prog_CC="${ac_tool_prefix}cc"
 1449 echo "$as_me:1449: found $ac_dir/$ac_word" >&5
 1450 break
 1451 done
 1452 
 1453 fi
 1454 fi
 1455 CC=$ac_cv_prog_CC
 1456 if test -n "$CC"; then
 1457   echo "$as_me:1457: result: $CC" >&5
 1458 echo "${ECHO_T}$CC" >&6
 1459 else
 1460   echo "$as_me:1460: result: no" >&5
 1461 echo "${ECHO_T}no" >&6
 1462 fi
 1463 
 1464 fi
 1465 if test -z "$ac_cv_prog_CC"; then
 1466   ac_ct_CC=$CC
 1467   # Extract the first word of "cc", so it can be a program name with args.
 1468 set dummy cc; ac_word=$2
 1469 echo "$as_me:1469: checking for $ac_word" >&5
 1470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 1471 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 1472   echo $ECHO_N "(cached) $ECHO_C" >&6
 1473 else
 1474   if test -n "$ac_ct_CC"; then
 1475   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 1476 else
 1477   ac_save_IFS=$IFS; IFS=$ac_path_separator
 1478 ac_dummy="$PATH"
 1479 for ac_dir in $ac_dummy; do
 1480   IFS=$ac_save_IFS
 1481   test -z "$ac_dir" && ac_dir=.
 1482   $as_executable_p "$ac_dir/$ac_word" || continue
 1483 ac_cv_prog_ac_ct_CC="cc"
 1484 echo "$as_me:1484: found $ac_dir/$ac_word" >&5
 1485 break
 1486 done
 1487 
 1488 fi
 1489 fi
 1490 ac_ct_CC=$ac_cv_prog_ac_ct_CC
 1491 if test -n "$ac_ct_CC"; then
 1492   echo "$as_me:1492: result: $ac_ct_CC" >&5
 1493 echo "${ECHO_T}$ac_ct_CC" >&6
 1494 else
 1495   echo "$as_me:1495: result: no" >&5
 1496 echo "${ECHO_T}no" >&6
 1497 fi
 1498 
 1499   CC=$ac_ct_CC
 1500 else
 1501   CC="$ac_cv_prog_CC"
 1502 fi
 1503 
 1504 fi
 1505 if test -z "$CC"; then
 1506   # Extract the first word of "cc", so it can be a program name with args.
 1507 set dummy cc; ac_word=$2
 1508 echo "$as_me:1508: checking for $ac_word" >&5
 1509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 1510 if test "${ac_cv_prog_CC+set}" = set; then
 1511   echo $ECHO_N "(cached) $ECHO_C" >&6
 1512 else
 1513   if test -n "$CC"; then
 1514   ac_cv_prog_CC="$CC" # Let the user override the test.
 1515 else
 1516   ac_prog_rejected=no
 1517   ac_save_IFS=$IFS; IFS=$ac_path_separator
 1518 ac_dummy="$PATH"
 1519 for ac_dir in $ac_dummy; do
 1520   IFS=$ac_save_IFS
 1521   test -z "$ac_dir" && ac_dir=.
 1522   $as_executable_p "$ac_dir/$ac_word" || continue
 1523 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 1524   ac_prog_rejected=yes
 1525   continue
 1526 fi
 1527 ac_cv_prog_CC="cc"
 1528 echo "$as_me:1528: found $ac_dir/$ac_word" >&5
 1529 break
 1530 done
 1531 
 1532 if test $ac_prog_rejected = yes; then
 1533   # We found a bogon in the path, so make sure we never use it.
 1534   set dummy $ac_cv_prog_CC
 1535   shift
 1536   if test $# != 0; then
 1537     # We chose a different compiler from the bogus one.
 1538     # However, it has the same basename, so the bogon will be chosen
 1539     # first if we set CC to just the basename; use the full file name.
 1540     shift
 1541     set dummy "$ac_dir/$ac_word" ${1+"$@"}
 1542     shift
 1543     ac_cv_prog_CC="$@"
 1544   fi
 1545 fi
 1546 fi
 1547 fi
 1548 CC=$ac_cv_prog_CC
 1549 if test -n "$CC"; then
 1550   echo "$as_me:1550: result: $CC" >&5
 1551 echo "${ECHO_T}$CC" >&6
 1552 else
 1553   echo "$as_me:1553: result: no" >&5
 1554 echo "${ECHO_T}no" >&6
 1555 fi
 1556 
 1557 fi
 1558 if test -z "$CC"; then
 1559   if test -n "$ac_tool_prefix"; then
 1560   for ac_prog in cl
 1561   do
 1562     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 1563 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 1564 echo "$as_me:1564: checking for $ac_word" >&5
 1565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 1566 if test "${ac_cv_prog_CC+set}" = set; then
 1567   echo $ECHO_N "(cached) $ECHO_C" >&6
 1568 else
 1569   if test -n "$CC"; then
 1570   ac_cv_prog_CC="$CC" # Let the user override the test.
 1571 else
 1572   ac_save_IFS=$IFS; IFS=$ac_path_separator
 1573 ac_dummy="$PATH"
 1574 for ac_dir in $ac_dummy; do
 1575   IFS=$ac_save_IFS
 1576   test -z "$ac_dir" && ac_dir=.
 1577   $as_executable_p "$ac_dir/$ac_word" || continue
 1578 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 1579 echo "$as_me:1579: found $ac_dir/$ac_word" >&5
 1580 break
 1581 done
 1582 
 1583 fi
 1584 fi
 1585 CC=$ac_cv_prog_CC
 1586 if test -n "$CC"; then
 1587   echo "$as_me:1587: result: $CC" >&5
 1588 echo "${ECHO_T}$CC" >&6
 1589 else
 1590   echo "$as_me:1590: result: no" >&5
 1591 echo "${ECHO_T}no" >&6
 1592 fi
 1593 
 1594     test -n "$CC" && break
 1595   done
 1596 fi
 1597 if test -z "$CC"; then
 1598   ac_ct_CC=$CC
 1599   for ac_prog in cl
 1600 do
 1601   # Extract the first word of "$ac_prog", so it can be a program name with args.
 1602 set dummy $ac_prog; ac_word=$2
 1603 echo "$as_me:1603: checking for $ac_word" >&5
 1604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 1605 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 1606   echo $ECHO_N "(cached) $ECHO_C" >&6
 1607 else
 1608   if test -n "$ac_ct_CC"; then
 1609   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 1610 else
 1611   ac_save_IFS=$IFS; IFS=$ac_path_separator
 1612 ac_dummy="$PATH"
 1613 for ac_dir in $ac_dummy; do
 1614   IFS=$ac_save_IFS
 1615   test -z "$ac_dir" && ac_dir=.
 1616   $as_executable_p "$ac_dir/$ac_word" || continue
 1617 ac_cv_prog_ac_ct_CC="$ac_prog"
 1618 echo "$as_me:1618: found $ac_dir/$ac_word" >&5
 1619 break
 1620 done
 1621 
 1622 fi
 1623 fi
 1624 ac_ct_CC=$ac_cv_prog_ac_ct_CC
 1625 if test -n "$ac_ct_CC"; then
 1626   echo "$as_me:1626: result: $ac_ct_CC" >&5
 1627 echo "${ECHO_T}$ac_ct_CC" >&6
 1628 else
 1629   echo "$as_me:1629: result: no" >&5
 1630 echo "${ECHO_T}no" >&6
 1631 fi
 1632 
 1633   test -n "$ac_ct_CC" && break
 1634 done
 1635 
 1636   CC=$ac_ct_CC
 1637 fi
 1638 
 1639 fi
 1640 
 1641 test -z "$CC" && { { echo "$as_me:1641: error: no acceptable cc found in \$PATH" >&5
 1642 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
 1643    { (exit 1); exit 1; }; }
 1644 
 1645 # Provide some information about the compiler.
 1646 echo "$as_me:1646:" \
 1647      "checking for C compiler version" >&5
 1648 ac_compiler=`set X $ac_compile; echo $2`
 1649 { (eval echo "$as_me:1649: \"$ac_compiler --version </dev/null >&5\"") >&5
 1650   (eval $ac_compiler --version </dev/null >&5) 2>&5
 1651   ac_status=$?
 1652   echo "$as_me:1652: \$? = $ac_status" >&5
 1653   (exit $ac_status); }
 1654 { (eval echo "$as_me:1654: \"$ac_compiler -v </dev/null >&5\"") >&5
 1655   (eval $ac_compiler -v </dev/null >&5) 2>&5
 1656   ac_status=$?
 1657   echo "$as_me:1657: \$? = $ac_status" >&5
 1658   (exit $ac_status); }
 1659 { (eval echo "$as_me:1659: \"$ac_compiler -V </dev/null >&5\"") >&5
 1660   (eval $ac_compiler -V </dev/null >&5) 2>&5
 1661   ac_status=$?
 1662   echo "$as_me:1662: \$? = $ac_status" >&5
 1663   (exit $ac_status); }
 1664 
 1665 cat >conftest.$ac_ext <<_ACEOF
 1666 #line 1666 "configure"
 1667 #include "confdefs.h"
 1668 
 1669 int
 1670 main (void)
 1671 {
 1672 
 1673   ;
 1674   return 0;
 1675 }
 1676 _ACEOF
 1677 ac_clean_files_save=$ac_clean_files
 1678 ac_clean_files="$ac_clean_files a.out a.exe"
 1679 # Try to create an executable without -o first, disregard a.out.
 1680 # It will help us diagnose broken compilers, and finding out an intuition
 1681 # of exeext.
 1682 echo "$as_me:1682: checking for C compiler default output" >&5
 1683 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
 1684 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 1685 if { (eval echo "$as_me:1685: \"$ac_link_default\"") >&5
 1686   (eval $ac_link_default) 2>&5
 1687   ac_status=$?
 1688   echo "$as_me:1688: \$? = $ac_status" >&5
 1689   (exit $ac_status); }; then
 1690   # Find the output, starting from the most likely.  This scheme is
 1691 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
 1692 # resort.
 1693 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
 1694                 ls a.out conftest 2>/dev/null;
 1695                 ls a.* conftest.* 2>/dev/null`; do
 1696   case $ac_file in
 1697     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 1698     a.out ) # We found the default executable, but exeext='' is most
 1699             # certainly right.
 1700             break;;
 1701     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 1702           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
 1703           export ac_cv_exeext
 1704           break;;
 1705     * ) break;;
 1706   esac
 1707 done
 1708 else
 1709   echo "$as_me: failed program was:" >&5
 1710 cat conftest.$ac_ext >&5
 1711 { { echo "$as_me:1711: error: C compiler cannot create executables" >&5
 1712 echo "$as_me: error: C compiler cannot create executables" >&2;}
 1713    { (exit 77); exit 77; }; }
 1714 fi
 1715 
 1716 ac_exeext=$ac_cv_exeext
 1717 echo "$as_me:1717: result: $ac_file" >&5
 1718 echo "${ECHO_T}$ac_file" >&6
 1719 
 1720 # Check the compiler produces executables we can run.  If not, either
 1721 # the compiler is broken, or we cross compile.
 1722 echo "$as_me:1722: checking whether the C compiler works" >&5
 1723 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 1724 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 1725 # If not cross compiling, check that we can run a simple program.
 1726 if test "$cross_compiling" != yes; then
 1727   if { ac_try='./$ac_file'
 1728   { (eval echo "$as_me:1728: \"$ac_try\"") >&5
 1729   (eval $ac_try) 2>&5
 1730   ac_status=$?
 1731   echo "$as_me:1731: \$? = $ac_status" >&5
 1732   (exit $ac_status); }; }; then
 1733     cross_compiling=no
 1734   else
 1735     if test "$cross_compiling" = maybe; then
 1736     cross_compiling=yes
 1737     else
 1738     { { echo "$as_me:1738: error: cannot run C compiled programs.
 1739 If you meant to cross compile, use \`--host'." >&5
 1740 echo "$as_me: error: cannot run C compiled programs.
 1741 If you meant to cross compile, use \`--host'." >&2;}
 1742    { (exit 1); exit 1; }; }
 1743     fi
 1744   fi
 1745 fi
 1746 echo "$as_me:1746: result: yes" >&5
 1747 echo "${ECHO_T}yes" >&6
 1748 
 1749 rm -f a.out a.exe conftest$ac_cv_exeext
 1750 ac_clean_files=$ac_clean_files_save
 1751 # Check the compiler produces executables we can run.  If not, either
 1752 # the compiler is broken, or we cross compile.
 1753 echo "$as_me:1753: checking whether we are cross compiling" >&5
 1754 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 1755 echo "$as_me:1755: result: $cross_compiling" >&5
 1756 echo "${ECHO_T}$cross_compiling" >&6
 1757 
 1758 echo "$as_me:1758: checking for executable suffix" >&5
 1759 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
 1760 if { (eval echo "$as_me:1760: \"$ac_link\"") >&5
 1761   (eval $ac_link) 2>&5
 1762   ac_status=$?
 1763   echo "$as_me:1763: \$? = $ac_status" >&5
 1764   (exit $ac_status); }; then
 1765   # If both `conftest.exe' and `conftest' are `present' (well, observable)
 1766 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 1767 # work properly (i.e., refer to `conftest.exe'), while it won't with
 1768 # `rm'.
 1769 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
 1770   case $ac_file in
 1771     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 1772     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 1773           export ac_cv_exeext
 1774           break;;
 1775     * ) break;;
 1776   esac
 1777 done
 1778 else
 1779   { { echo "$as_me:1779: error: cannot compute EXEEXT: cannot compile and link" >&5
 1780 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
 1781    { (exit 1); exit 1; }; }
 1782 fi
 1783 
 1784 rm -f conftest$ac_cv_exeext
 1785 echo "$as_me:1785: result: $ac_cv_exeext" >&5
 1786 echo "${ECHO_T}$ac_cv_exeext" >&6
 1787 
 1788 rm -f conftest.$ac_ext
 1789 EXEEXT=$ac_cv_exeext
 1790 ac_exeext=$EXEEXT
 1791 echo "$as_me:1791: checking for object suffix" >&5
 1792 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
 1793 if test "${ac_cv_objext+set}" = set; then
 1794   echo $ECHO_N "(cached) $ECHO_C" >&6
 1795 else
 1796   cat >conftest.$ac_ext <<_ACEOF
 1797 #line 1797 "configure"
 1798 #include "confdefs.h"
 1799 
 1800 int
 1801 main (void)
 1802 {
 1803 
 1804   ;
 1805   return 0;
 1806 }
 1807 _ACEOF
 1808 rm -f conftest.o conftest.obj
 1809 if { (eval echo "$as_me:1809: \"$ac_compile\"") >&5
 1810   (eval $ac_compile) 2>&5
 1811   ac_status=$?
 1812   echo "$as_me:1812: \$? = $ac_status" >&5
 1813   (exit $ac_status); }; then
 1814   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 1815   case $ac_file in
 1816     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
 1817     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 1818        break;;
 1819   esac
 1820 done
 1821 else
 1822   echo "$as_me: failed program was:" >&5
 1823 cat conftest.$ac_ext >&5
 1824 { { echo "$as_me:1824: error: cannot compute OBJEXT: cannot compile" >&5
 1825 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
 1826    { (exit 1); exit 1; }; }
 1827 fi
 1828 
 1829 rm -f conftest.$ac_cv_objext conftest.$ac_ext
 1830 fi
 1831 echo "$as_me:1831: result: $ac_cv_objext" >&5
 1832 echo "${ECHO_T}$ac_cv_objext" >&6
 1833 OBJEXT=$ac_cv_objext
 1834 ac_objext=$OBJEXT
 1835 echo "$as_me:1835: checking whether we are using the GNU C compiler" >&5
 1836 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 1837 if test "${ac_cv_c_compiler_gnu+set}" = set; then
 1838   echo $ECHO_N "(cached) $ECHO_C" >&6
 1839 else
 1840   cat >conftest.$ac_ext <<_ACEOF
 1841 #line 1841 "configure"
 1842 #include "confdefs.h"
 1843 
 1844 int
 1845 main (void)
 1846 {
 1847 #ifndef __GNUC__
 1848        choke me
 1849 #endif
 1850 
 1851   ;
 1852   return 0;
 1853 }
 1854 _ACEOF
 1855 rm -f conftest.$ac_objext
 1856 if { (eval echo "$as_me:1856: \"$ac_compile\"") >&5
 1857   (eval $ac_compile) 2>&5
 1858   ac_status=$?
 1859   echo "$as_me:1859: \$? = $ac_status" >&5
 1860   (exit $ac_status); } &&
 1861          { ac_try='test -s conftest.$ac_objext'
 1862   { (eval echo "$as_me:1862: \"$ac_try\"") >&5
 1863   (eval $ac_try) 2>&5
 1864   ac_status=$?
 1865   echo "$as_me:1865: \$? = $ac_status" >&5
 1866   (exit $ac_status); }; }; then
 1867   ac_compiler_gnu=yes
 1868 else
 1869   echo "$as_me: failed program was:" >&5
 1870 cat conftest.$ac_ext >&5
 1871 ac_compiler_gnu=no
 1872 fi
 1873 rm -f conftest.$ac_objext conftest.$ac_ext
 1874 ac_cv_c_compiler_gnu=$ac_compiler_gnu
 1875 
 1876 fi
 1877 echo "$as_me:1877: result: $ac_cv_c_compiler_gnu" >&5
 1878 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 1879 GCC=`test $ac_compiler_gnu = yes && echo yes`
 1880 ac_test_CFLAGS=${CFLAGS+set}
 1881 ac_save_CFLAGS=$CFLAGS
 1882 CFLAGS="-g"
 1883 echo "$as_me:1883: checking whether $CC accepts -g" >&5
 1884 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 1885 if test "${ac_cv_prog_cc_g+set}" = set; then
 1886   echo $ECHO_N "(cached) $ECHO_C" >&6
 1887 else
 1888   cat >conftest.$ac_ext <<_ACEOF
 1889 #line 1889 "configure"
 1890 #include "confdefs.h"
 1891 
 1892 int
 1893 main (void)
 1894 {
 1895 
 1896   ;
 1897   return 0;
 1898 }
 1899 _ACEOF
 1900 rm -f conftest.$ac_objext
 1901 if { (eval echo "$as_me:1901: \"$ac_compile\"") >&5
 1902   (eval $ac_compile) 2>&5
 1903   ac_status=$?
 1904   echo "$as_me:1904: \$? = $ac_status" >&5
 1905   (exit $ac_status); } &&
 1906          { ac_try='test -s conftest.$ac_objext'
 1907   { (eval echo "$as_me:1907: \"$ac_try\"") >&5
 1908   (eval $ac_try) 2>&5
 1909   ac_status=$?
 1910   echo "$as_me:1910: \$? = $ac_status" >&5
 1911   (exit $ac_status); }; }; then
 1912   ac_cv_prog_cc_g=yes
 1913 else
 1914   echo "$as_me: failed program was:" >&5
 1915 cat conftest.$ac_ext >&5
 1916 ac_cv_prog_cc_g=no
 1917 fi
 1918 rm -f conftest.$ac_objext conftest.$ac_ext
 1919 fi
 1920 echo "$as_me:1920: result: $ac_cv_prog_cc_g" >&5
 1921 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 1922 if test "$ac_test_CFLAGS" = set; then
 1923   CFLAGS=$ac_save_CFLAGS
 1924 elif test $ac_cv_prog_cc_g = yes; then
 1925   if test "$GCC" = yes; then
 1926     CFLAGS="-g -O2"
 1927   else
 1928     CFLAGS="-g"
 1929   fi
 1930 else
 1931   if test "$GCC" = yes; then
 1932     CFLAGS="-O2"
 1933   else
 1934     CFLAGS=
 1935   fi
 1936 fi
 1937 # Some people use a C++ compiler to compile C.  Since we use `exit',
 1938 # in C++ we need to declare it.  In case someone uses the same compiler
 1939 # for both compiling C and C++ we need to have the C++ compiler decide
 1940 # the declaration of exit, since it's the most demanding environment.
 1941 cat >conftest.$ac_ext <<_ACEOF
 1942 #ifndef __cplusplus
 1943   choke me
 1944 #endif
 1945 _ACEOF
 1946 rm -f conftest.$ac_objext
 1947 if { (eval echo "$as_me:1947: \"$ac_compile\"") >&5
 1948   (eval $ac_compile) 2>&5
 1949   ac_status=$?
 1950   echo "$as_me:1950: \$? = $ac_status" >&5
 1951   (exit $ac_status); } &&
 1952          { ac_try='test -s conftest.$ac_objext'
 1953   { (eval echo "$as_me:1953: \"$ac_try\"") >&5
 1954   (eval $ac_try) 2>&5
 1955   ac_status=$?
 1956   echo "$as_me:1956: \$? = $ac_status" >&5
 1957   (exit $ac_status); }; }; then
 1958   for ac_declaration in \
 1959    ''\
 1960    '#include <stdlib.h>' \
 1961    'extern "C" void std::exit (int) throw (); using std::exit;' \
 1962    'extern "C" void std::exit (int); using std::exit;' \
 1963    'extern "C" void exit (int) throw ();' \
 1964    'extern "C" void exit (int);' \
 1965    'void exit (int);'
 1966 do
 1967   cat >conftest.$ac_ext <<_ACEOF
 1968 #line 1968 "configure"
 1969 #include "confdefs.h"
 1970 #include <stdlib.h>
 1971 $ac_declaration
 1972 int
 1973 main (void)
 1974 {
 1975 exit (42);
 1976   ;
 1977   return 0;
 1978 }
 1979 _ACEOF
 1980 rm -f conftest.$ac_objext
 1981 if { (eval echo "$as_me:1981: \"$ac_compile\"") >&5
 1982   (eval $ac_compile) 2>&5
 1983   ac_status=$?
 1984   echo "$as_me:1984: \$? = $ac_status" >&5
 1985   (exit $ac_status); } &&
 1986          { ac_try='test -s conftest.$ac_objext'
 1987   { (eval echo "$as_me:1987: \"$ac_try\"") >&5
 1988   (eval $ac_try) 2>&5
 1989   ac_status=$?
 1990   echo "$as_me:1990: \$? = $ac_status" >&5
 1991   (exit $ac_status); }; }; then
 1992   :
 1993 else
 1994   echo "$as_me: failed program was:" >&5
 1995 cat conftest.$ac_ext >&5
 1996 continue
 1997 fi
 1998 rm -f conftest.$ac_objext conftest.$ac_ext
 1999   cat >conftest.$ac_ext <<_ACEOF
 2000 #line 2000 "configure"
 2001 #include "confdefs.h"
 2002 $ac_declaration
 2003 int
 2004 main (void)
 2005 {
 2006 exit (42);
 2007   ;
 2008   return 0;
 2009 }
 2010 _ACEOF
 2011 rm -f conftest.$ac_objext
 2012 if { (eval echo "$as_me:2012: \"$ac_compile\"") >&5
 2013   (eval $ac_compile) 2>&5
 2014   ac_status=$?
 2015   echo "$as_me:2015: \$? = $ac_status" >&5
 2016   (exit $ac_status); } &&
 2017          { ac_try='test -s conftest.$ac_objext'
 2018   { (eval echo "$as_me:2018: \"$ac_try\"") >&5
 2019   (eval $ac_try) 2>&5
 2020   ac_status=$?
 2021   echo "$as_me:2021: \$? = $ac_status" >&5
 2022   (exit $ac_status); }; }; then
 2023   break
 2024 else
 2025   echo "$as_me: failed program was:" >&5
 2026 cat conftest.$ac_ext >&5
 2027 fi
 2028 rm -f conftest.$ac_objext conftest.$ac_ext
 2029 done
 2030 rm -rf conftest*
 2031 if test -n "$ac_declaration"; then
 2032   echo '#ifdef __cplusplus' >>confdefs.h
 2033   echo $ac_declaration      >>confdefs.h
 2034   echo '#endif'             >>confdefs.h
 2035 fi
 2036 
 2037 else
 2038   echo "$as_me: failed program was:" >&5
 2039 cat conftest.$ac_ext >&5
 2040 fi
 2041 rm -f conftest.$ac_objext conftest.$ac_ext
 2042 ac_ext=c
 2043 ac_cpp='$CPP $CPPFLAGS'
 2044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 2045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 2046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 2047 ac_main_return=return
 2048 
 2049 GCC_VERSION=none
 2050 if test "$GCC" = yes ; then
 2051     echo "$as_me:2051: checking version of $CC" >&5
 2052 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
 2053     GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
 2054     test -z "$GCC_VERSION" && GCC_VERSION=unknown
 2055     echo "$as_me:2055: result: $GCC_VERSION" >&5
 2056 echo "${ECHO_T}$GCC_VERSION" >&6
 2057 fi
 2058 
 2059 echo "$as_me:2059: checking for $CC option to accept ANSI C" >&5
 2060 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 2061 if test "${ac_cv_prog_cc_stdc+set}" = set; then
 2062   echo $ECHO_N "(cached) $ECHO_C" >&6
 2063 else
 2064   ac_cv_prog_cc_stdc=no
 2065 ac_save_CC=$CC
 2066 cat >conftest.$ac_ext <<_ACEOF
 2067 #line 2067 "configure"
 2068 #include "confdefs.h"
 2069 #include <stdarg.h>
 2070 #include <stdio.h>
 2071 #include <sys/types.h>
 2072 #include <sys/stat.h>
 2073 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 2074 struct buf { int x; };
 2075 FILE * (*rcsopen) (struct buf *, struct stat *, int);
 2076 static char *e (p, i)
 2077      char **p;
 2078      int i;
 2079 {
 2080   return p[i];
 2081 }
 2082 static char *f (char * (*g) (char **, int), char **p, ...)
 2083 {
 2084   char *s;
 2085   va_list v;
 2086   va_start (v,p);
 2087   s = g (p, va_arg (v,int));
 2088   va_end (v);
 2089   return s;
 2090 }
 2091 int test (int i, double x);
 2092 struct s1 {int (*f) (int a);};
 2093 struct s2 {int (*f) (double a);};
 2094 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 2095 int argc;
 2096 char **argv;
 2097 int
 2098 main (void)
 2099 {
 2100 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 2101   ;
 2102   return 0;
 2103 }
 2104 _ACEOF
 2105 # Don't try gcc -ansi; that turns off useful extensions and
 2106 # breaks some systems' header files.
 2107 # AIX           -qlanglvl=ansi
 2108 # Ultrix and OSF/1  -std1
 2109 # HP-UX 10.20 and later -Ae
 2110 # HP-UX older versions  -Aa -D_HPUX_SOURCE
 2111 # SVR4          -Xc -D__EXTENSIONS__
 2112 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 2113 do
 2114   CC="$ac_save_CC $ac_arg"
 2115   rm -f conftest.$ac_objext
 2116 if { (eval echo "$as_me:2116: \"$ac_compile\"") >&5
 2117   (eval $ac_compile) 2>&5
 2118   ac_status=$?
 2119   echo "$as_me:2119: \$? = $ac_status" >&5
 2120   (exit $ac_status); } &&
 2121          { ac_try='test -s conftest.$ac_objext'
 2122   { (eval echo "$as_me:2122: \"$ac_try\"") >&5
 2123   (eval $ac_try) 2>&5
 2124   ac_status=$?
 2125   echo "$as_me:2125: \$? = $ac_status" >&5
 2126   (exit $ac_status); }; }; then
 2127   ac_cv_prog_cc_stdc=$ac_arg
 2128 break
 2129 else
 2130   echo "$as_me: failed program was:" >&5
 2131 cat conftest.$ac_ext >&5
 2132 fi
 2133 rm -f conftest.$ac_objext
 2134 done
 2135 rm -f conftest.$ac_ext conftest.$ac_objext
 2136 CC=$ac_save_CC
 2137 
 2138 fi
 2139 
 2140 case "x$ac_cv_prog_cc_stdc" in
 2141   x|xno)
 2142     echo "$as_me:2142: result: none needed" >&5
 2143 echo "${ECHO_T}none needed" >&6 ;;
 2144   *)
 2145     echo "$as_me:2145: result: $ac_cv_prog_cc_stdc" >&5
 2146 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 2147     CC="$CC $ac_cv_prog_cc_stdc" ;;
 2148 esac
 2149 
 2150 # This should have been defined by AC_PROG_CC
 2151 : ${CC:=cc}
 2152 
 2153 echo "$as_me:2153: checking \$CFLAGS variable" >&5
 2154 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
 2155 case "x$CFLAGS" in
 2156 (*-[IUD]*)
 2157     echo "$as_me:2157: result: broken" >&5
 2158 echo "${ECHO_T}broken" >&6
 2159     { echo "$as_me:2159: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
 2160 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
 2161     cf_flags="$CFLAGS"
 2162     CFLAGS=
 2163     for cf_arg in $cf_flags
 2164     do
 2165 
 2166 cf_fix_cppflags=no
 2167 cf_new_cflags=
 2168 cf_new_cppflags=
 2169 cf_new_extra_cppflags=
 2170 
 2171 for cf_add_cflags in $cf_arg
 2172 do
 2173 case $cf_fix_cppflags in
 2174 (no)
 2175     case $cf_add_cflags in
 2176     (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
 2177         case $cf_add_cflags in
 2178         (-D*)
 2179             cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
 2180 
 2181             test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 2182                 && test -z "${cf_tst_cflags}" \
 2183                 && cf_fix_cppflags=yes
 2184 
 2185             if test $cf_fix_cppflags = yes ; then
 2186 
 2187     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 2188     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 2189 
 2190                 continue
 2191             elif test "${cf_tst_cflags}" = "\"'" ; then
 2192 
 2193     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 2194     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 2195 
 2196                 continue
 2197             fi
 2198             ;;
 2199         esac
 2200         case "$CPPFLAGS" in
 2201         (*$cf_add_cflags)
 2202             ;;
 2203         (*)
 2204             case $cf_add_cflags in
 2205             (-D*)
 2206                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
 2207 
 2208 CPPFLAGS=`echo "$CPPFLAGS" | \
 2209     sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[     ]/ /g' \
 2210         -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
 2211 
 2212                 ;;
 2213             esac
 2214 
 2215     test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
 2216     cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
 2217 
 2218             ;;
 2219         esac
 2220         ;;
 2221     (*)
 2222 
 2223     test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
 2224     cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
 2225 
 2226         ;;
 2227     esac
 2228     ;;
 2229 (yes)
 2230 
 2231     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 2232     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 2233 
 2234     cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
 2235 
 2236     test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 2237         && test -z "${cf_tst_cflags}" \
 2238         && cf_fix_cppflags=no
 2239     ;;
 2240 esac
 2241 done
 2242 
 2243 if test -n "$cf_new_cflags" ; then
 2244 
 2245     test -n "$CFLAGS" && CFLAGS="$CFLAGS "
 2246     CFLAGS="${CFLAGS}$cf_new_cflags"
 2247 
 2248 fi
 2249 
 2250 if test -n "$cf_new_cppflags" ; then
 2251 
 2252     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 2253     CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
 2254 
 2255 fi
 2256 
 2257 if test -n "$cf_new_extra_cppflags" ; then
 2258 
 2259     test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
 2260     EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
 2261 
 2262 fi
 2263 
 2264     done
 2265     ;;
 2266 (*)
 2267     echo "$as_me:2267: result: ok" >&5
 2268 echo "${ECHO_T}ok" >&6
 2269     ;;
 2270 esac
 2271 
 2272 echo "$as_me:2272: checking \$CC variable" >&5
 2273 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
 2274 case "$CC" in
 2275 (*[\ \  ]-*)
 2276     echo "$as_me:2276: result: broken" >&5
 2277 echo "${ECHO_T}broken" >&6
 2278     { echo "$as_me:2278: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
 2279 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
 2280     # humor him...
 2281     cf_prog=`echo "$CC" | sed -e 's/    / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
 2282     cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
 2283     CC="$cf_prog"
 2284     for cf_arg in $cf_flags
 2285     do
 2286         case "x$cf_arg" in
 2287         (x-[IUDfgOW]*)
 2288 
 2289 cf_fix_cppflags=no
 2290 cf_new_cflags=
 2291 cf_new_cppflags=
 2292 cf_new_extra_cppflags=
 2293 
 2294 for cf_add_cflags in $cf_arg
 2295 do
 2296 case $cf_fix_cppflags in
 2297 (no)
 2298     case $cf_add_cflags in
 2299     (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
 2300         case $cf_add_cflags in
 2301         (-D*)
 2302             cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
 2303 
 2304             test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 2305                 && test -z "${cf_tst_cflags}" \
 2306                 && cf_fix_cppflags=yes
 2307 
 2308             if test $cf_fix_cppflags = yes ; then
 2309 
 2310     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 2311     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 2312 
 2313                 continue
 2314             elif test "${cf_tst_cflags}" = "\"'" ; then
 2315 
 2316     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 2317     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 2318 
 2319                 continue
 2320             fi
 2321             ;;
 2322         esac
 2323         case "$CPPFLAGS" in
 2324         (*$cf_add_cflags)
 2325             ;;
 2326         (*)
 2327             case $cf_add_cflags in
 2328             (-D*)
 2329                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
 2330 
 2331 CPPFLAGS=`echo "$CPPFLAGS" | \
 2332     sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[     ]/ /g' \
 2333         -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
 2334 
 2335                 ;;
 2336             esac
 2337 
 2338     test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
 2339     cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
 2340 
 2341             ;;
 2342         esac
 2343         ;;
 2344     (*)
 2345 
 2346     test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
 2347     cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
 2348 
 2349         ;;
 2350     esac
 2351     ;;
 2352 (yes)
 2353 
 2354     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 2355     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 2356 
 2357     cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
 2358 
 2359     test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 2360         && test -z "${cf_tst_cflags}" \
 2361         && cf_fix_cppflags=no
 2362     ;;
 2363 esac
 2364 done
 2365 
 2366 if test -n "$cf_new_cflags" ; then
 2367 
 2368     test -n "$CFLAGS" && CFLAGS="$CFLAGS "
 2369     CFLAGS="${CFLAGS}$cf_new_cflags"
 2370 
 2371 fi
 2372 
 2373 if test -n "$cf_new_cppflags" ; then
 2374 
 2375     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 2376     CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
 2377 
 2378 fi
 2379 
 2380 if test -n "$cf_new_extra_cppflags" ; then
 2381 
 2382     test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
 2383     EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
 2384 
 2385 fi
 2386 
 2387             ;;
 2388         (*)
 2389             CC="$CC $cf_arg"
 2390             ;;
 2391         esac
 2392     done
 2393     test -n "$verbose" && echo "    resulting CC: '$CC'" 1>&6
 2394 
 2395 echo "${as_me:-configure}:2395: testing resulting CC: '$CC' ..." 1>&5
 2396 
 2397     test -n "$verbose" && echo "    resulting CFLAGS: '$CFLAGS'" 1>&6
 2398 
 2399 echo "${as_me:-configure}:2399: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
 2400 
 2401     test -n "$verbose" && echo "    resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
 2402 
 2403 echo "${as_me:-configure}:2403: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
 2404 
 2405     ;;
 2406 (*)
 2407     echo "$as_me:2407: result: ok" >&5
 2408 echo "${ECHO_T}ok" >&6
 2409     ;;
 2410 esac
 2411 
 2412 ac_ext=c
 2413 ac_cpp='$CPP $CPPFLAGS'
 2414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 2415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 2416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 2417 ac_main_return=return
 2418 echo "$as_me:2418: checking how to run the C preprocessor" >&5
 2419 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 2420 # On Suns, sometimes $CPP names a directory.
 2421 if test -n "$CPP" && test -d "$CPP"; then
 2422   CPP=
 2423 fi
 2424 if test -z "$CPP"; then
 2425   if test "${ac_cv_prog_CPP+set}" = set; then
 2426   echo $ECHO_N "(cached) $ECHO_C" >&6
 2427 else
 2428       # Double quotes because CPP needs to be expanded
 2429     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 2430     do
 2431       ac_preproc_ok=false
 2432 for ac_c_preproc_warn_flag in '' yes
 2433 do
 2434   # Use a header file that comes with gcc, so configuring glibc
 2435   # with a fresh cross-compiler works.
 2436   # On the NeXT, cc -E runs the code through the compiler's parser,
 2437   # not just through cpp. "Syntax error" is here to catch this case.
 2438   cat >conftest.$ac_ext <<_ACEOF
 2439 #line 2439 "configure"
 2440 #include "confdefs.h"
 2441 #include <assert.h>
 2442                      Syntax error
 2443 _ACEOF
 2444 if { (eval echo "$as_me:2444: \"$ac_cpp conftest.$ac_ext\"") >&5
 2445   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 2446   ac_status=$?
 2447   egrep -v '^ *\+' conftest.er1 >conftest.err
 2448   rm -f conftest.er1
 2449   cat conftest.err >&5
 2450   echo "$as_me:2450: \$? = $ac_status" >&5
 2451   (exit $ac_status); } >/dev/null; then
 2452   if test -s conftest.err; then
 2453     ac_cpp_err=$ac_c_preproc_warn_flag
 2454   else
 2455     ac_cpp_err=
 2456   fi
 2457 else
 2458   ac_cpp_err=yes
 2459 fi
 2460 if test -z "$ac_cpp_err"; then
 2461   :
 2462 else
 2463   echo "$as_me: failed program was:" >&5
 2464   cat conftest.$ac_ext >&5
 2465   # Broken: fails on valid input.
 2466 continue
 2467 fi
 2468 rm -f conftest.err conftest.$ac_ext
 2469 
 2470   # OK, works on sane cases.  Now check whether non-existent headers
 2471   # can be detected and how.
 2472   cat >conftest.$ac_ext <<_ACEOF
 2473 #line 2473 "configure"
 2474 #include "confdefs.h"
 2475 #include <ac_nonexistent.h>
 2476 _ACEOF
 2477 if { (eval echo "$as_me:2477: \"$ac_cpp conftest.$ac_ext\"") >&5
 2478   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 2479   ac_status=$?
 2480   egrep -v '^ *\+' conftest.er1 >conftest.err
 2481   rm -f conftest.er1
 2482   cat conftest.err >&5
 2483   echo "$as_me:2483: \$? = $ac_status" >&5
 2484   (exit $ac_status); } >/dev/null; then
 2485   if test -s conftest.err; then
 2486     ac_cpp_err=$ac_c_preproc_warn_flag
 2487   else
 2488     ac_cpp_err=
 2489   fi
 2490 else
 2491   ac_cpp_err=yes
 2492 fi
 2493 if test -z "$ac_cpp_err"; then
 2494   # Broken: success on invalid input.
 2495 continue
 2496 else
 2497   echo "$as_me: failed program was:" >&5
 2498   cat conftest.$ac_ext >&5
 2499   # Passes both tests.
 2500 ac_preproc_ok=:
 2501 break
 2502 fi
 2503 rm -f conftest.err conftest.$ac_ext
 2504 
 2505 done
 2506 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 2507 rm -f conftest.err conftest.$ac_ext
 2508 if $ac_preproc_ok; then
 2509   break
 2510 fi
 2511 
 2512     done
 2513     ac_cv_prog_CPP=$CPP
 2514 
 2515 fi
 2516   CPP=$ac_cv_prog_CPP
 2517 else
 2518   ac_cv_prog_CPP=$CPP
 2519 fi
 2520 echo "$as_me:2520: result: $CPP" >&5
 2521 echo "${ECHO_T}$CPP" >&6
 2522 ac_preproc_ok=false
 2523 for ac_c_preproc_warn_flag in '' yes
 2524 do
 2525   # Use a header file that comes with gcc, so configuring glibc
 2526   # with a fresh cross-compiler works.
 2527   # On the NeXT, cc -E runs the code through the compiler's parser,
 2528   # not just through cpp. "Syntax error" is here to catch this case.
 2529   cat >conftest.$ac_ext <<_ACEOF
 2530 #line 2530 "configure"
 2531 #include "confdefs.h"
 2532 #include <assert.h>
 2533                      Syntax error
 2534 _ACEOF
 2535 if { (eval echo "$as_me:2535: \"$ac_cpp conftest.$ac_ext\"") >&5
 2536   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 2537   ac_status=$?
 2538   egrep -v '^ *\+' conftest.er1 >conftest.err
 2539   rm -f conftest.er1
 2540   cat conftest.err >&5
 2541   echo "$as_me:2541: \$? = $ac_status" >&5
 2542   (exit $ac_status); } >/dev/null; then
 2543   if test -s conftest.err; then
 2544     ac_cpp_err=$ac_c_preproc_warn_flag
 2545   else
 2546     ac_cpp_err=
 2547   fi
 2548 else
 2549   ac_cpp_err=yes
 2550 fi
 2551 if test -z "$ac_cpp_err"; then
 2552   :
 2553 else
 2554   echo "$as_me: failed program was:" >&5
 2555   cat conftest.$ac_ext >&5
 2556   # Broken: fails on valid input.
 2557 continue
 2558 fi
 2559 rm -f conftest.err conftest.$ac_ext
 2560 
 2561   # OK, works on sane cases.  Now check whether non-existent headers
 2562   # can be detected and how.
 2563   cat >conftest.$ac_ext <<_ACEOF
 2564 #line 2564 "configure"
 2565 #include "confdefs.h"
 2566 #include <ac_nonexistent.h>
 2567 _ACEOF
 2568 if { (eval echo "$as_me:2568: \"$ac_cpp conftest.$ac_ext\"") >&5
 2569   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 2570   ac_status=$?
 2571   egrep -v '^ *\+' conftest.er1 >conftest.err
 2572   rm -f conftest.er1
 2573   cat conftest.err >&5
 2574   echo "$as_me:2574: \$? = $ac_status" >&5
 2575   (exit $ac_status); } >/dev/null; then
 2576   if test -s conftest.err; then
 2577     ac_cpp_err=$ac_c_preproc_warn_flag
 2578   else
 2579     ac_cpp_err=
 2580   fi
 2581 else
 2582   ac_cpp_err=yes
 2583 fi
 2584 if test -z "$ac_cpp_err"; then
 2585   # Broken: success on invalid input.
 2586 continue
 2587 else
 2588   echo "$as_me: failed program was:" >&5
 2589   cat conftest.$ac_ext >&5
 2590   # Passes both tests.
 2591 ac_preproc_ok=:
 2592 break
 2593 fi
 2594 rm -f conftest.err conftest.$ac_ext
 2595 
 2596 done
 2597 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 2598 rm -f conftest.err conftest.$ac_ext
 2599 if $ac_preproc_ok; then
 2600   :
 2601 else
 2602   { { echo "$as_me:2602: error: C preprocessor \"$CPP\" fails sanity check" >&5
 2603 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
 2604    { (exit 1); exit 1; }; }
 2605 fi
 2606 
 2607 ac_ext=c
 2608 ac_cpp='$CPP $CPPFLAGS'
 2609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 2610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 2611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 2612 ac_main_return=return
 2613 
 2614 if test $ac_cv_c_compiler_gnu = yes; then
 2615     echo "$as_me:2615: checking whether $CC needs -traditional" >&5
 2616 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
 2617 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
 2618   echo $ECHO_N "(cached) $ECHO_C" >&6
 2619 else
 2620     ac_pattern="Autoconf.*'x'"
 2621   cat >conftest.$ac_ext <<_ACEOF
 2622 #line 2622 "configure"
 2623 #include "confdefs.h"
 2624 #include <sgtty.h>
 2625 int Autoconf = TIOCGETP;
 2626 _ACEOF
 2627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 2628   egrep "$ac_pattern" >/dev/null 2>&1; then
 2629   ac_cv_prog_gcc_traditional=yes
 2630 else
 2631   ac_cv_prog_gcc_traditional=no
 2632 fi
 2633 rm -rf conftest*
 2634 
 2635   if test $ac_cv_prog_gcc_traditional = no; then
 2636     cat >conftest.$ac_ext <<_ACEOF
 2637 #line 2637 "configure"
 2638 #include "confdefs.h"
 2639 #include <termio.h>
 2640 int Autoconf = TCGETA;
 2641 _ACEOF
 2642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 2643   egrep "$ac_pattern" >/dev/null 2>&1; then
 2644   ac_cv_prog_gcc_traditional=yes
 2645 fi
 2646 rm -rf conftest*
 2647 
 2648   fi
 2649 fi
 2650 echo "$as_me:2650: result: $ac_cv_prog_gcc_traditional" >&5
 2651 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
 2652   if test $ac_cv_prog_gcc_traditional = yes; then
 2653     CC="$CC -traditional"
 2654   fi
 2655 fi
 2656 
 2657 echo "$as_me:2657: checking whether ${MAKE-make} sets \${MAKE}" >&5
 2658 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
 2659 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
 2660 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 2661   echo $ECHO_N "(cached) $ECHO_C" >&6
 2662 else
 2663   cat >conftest.make <<\EOF
 2664 all:
 2665     @echo 'ac_maketemp="${MAKE}"'
 2666 EOF
 2667 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 2668 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 2669 if test -n "$ac_maketemp"; then
 2670   eval ac_cv_prog_make_${ac_make}_set=yes
 2671 else
 2672   eval ac_cv_prog_make_${ac_make}_set=no
 2673 fi
 2674 rm -f conftest.make
 2675 fi
 2676 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 2677   echo "$as_me:2677: result: yes" >&5
 2678 echo "${ECHO_T}yes" >&6
 2679   SET_MAKE=
 2680 else
 2681   echo "$as_me:2681: result: no" >&5
 2682 echo "${ECHO_T}no" >&6
 2683   SET_MAKE="MAKE=${MAKE-make}"
 2684 fi
 2685 
 2686 # Find a good install program.  We prefer a C program (faster),
 2687 # so one script is as good as another.  But avoid the broken or
 2688 # incompatible versions:
 2689 # SysV /etc/install, /usr/sbin/install
 2690 # SunOS /usr/etc/install
 2691 # IRIX /sbin/install
 2692 # AIX /bin/install
 2693 # AmigaOS /C/install, which installs bootblocks on floppy discs
 2694 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 2695 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
 2696 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 2697 # ./install, which can be erroneously created by make from ./install.sh.
 2698 echo "$as_me:2698: checking for a BSD compatible install" >&5
 2699 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
 2700 if test -z "$INSTALL"; then
 2701 if test "${ac_cv_path_install+set}" = set; then
 2702   echo $ECHO_N "(cached) $ECHO_C" >&6
 2703 else
 2704     ac_save_IFS=$IFS; IFS=$ac_path_separator
 2705   for ac_dir in $PATH; do
 2706     IFS=$ac_save_IFS
 2707     # Account for people who put trailing slashes in PATH elements.
 2708     case $ac_dir/ in
 2709     / | ./ | .// | /cC/* \
 2710     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
 2711     | /usr/ucb/* ) ;;
 2712     *)
 2713       # OSF1 and SCO ODT 3.0 have their own names for install.
 2714       # Don't use installbsd from OSF since it installs stuff as root
 2715       # by default.
 2716       for ac_prog in ginstall scoinst install; do
 2717         if $as_executable_p "$ac_dir/$ac_prog"; then
 2718       if test $ac_prog = install &&
 2719             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
 2720         # AIX install.  It has an incompatible calling convention.
 2721         :
 2722       elif test $ac_prog = install &&
 2723         grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
 2724         # program-specific install script used by HP pwplus--don't use.
 2725         :
 2726       else
 2727         ac_cv_path_install="$ac_dir/$ac_prog -c"
 2728         break 2
 2729       fi
 2730     fi
 2731       done
 2732       ;;
 2733     esac
 2734   done
 2735 
 2736 fi
 2737   if test "${ac_cv_path_install+set}" = set; then
 2738     INSTALL=$ac_cv_path_install
 2739   else
 2740     # As a last resort, use the slow shell script.  We don't cache a
 2741     # path for INSTALL within a source directory, because that will
 2742     # break other packages using the cache if that directory is
 2743     # removed, or if the path is relative.
 2744     INSTALL=$ac_install_sh
 2745   fi
 2746 fi
 2747 echo "$as_me:2747: result: $INSTALL" >&5
 2748 echo "${ECHO_T}$INSTALL" >&6
 2749 
 2750 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 2751 # It thinks the first close brace ends the variable substitution.
 2752 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 2753 
 2754 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 2755 
 2756 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 2757 
 2758 if test "${cf_cv_prog_YACC+set}" = set; then
 2759   echo $ECHO_N "(cached) $ECHO_C" >&6
 2760 else
 2761 
 2762 if test -n "$YACC" ; then
 2763   cf_cv_prog_YACC="$YACC" # Let the user override the test.
 2764 else
 2765 cat >conftest.y <<EOF
 2766 %{
 2767 void yyerror(s) char *s; { }
 2768 %}
 2769 %token  NUMBER
 2770 %%
 2771 time    : NUMBER ':' NUMBER
 2772     ;
 2773 %%
 2774 int yylex() { return NUMBER; }
 2775 int main() { return yyparse(); }
 2776 EOF
 2777   for cf_prog in 'bison -y' byacc yacc
 2778   do
 2779     rm -f y.tab.ch
 2780     echo "$as_me:2780: checking for $cf_prog" >&5
 2781 echo $ECHO_N "checking for $cf_prog... $ECHO_C" >&6
 2782     cf_command="$cf_prog conftest.y"
 2783     cf_result=no
 2784     if { (eval echo "$as_me:2784: \"$cf_command\"") >&5
 2785   (eval $cf_command) 2>&5
 2786   ac_status=$?
 2787   echo "$as_me:2787: \$? = $ac_status" >&5
 2788   (exit $ac_status); } && test -s y.tab.c ; then
 2789       mv y.tab.c conftest.c
 2790       rm -f y.tab.h
 2791       if test "$cf_prog" = 'bison -y' ; then
 2792         if { (eval echo "$as_me:2792: \"$ac_link\"") >&5
 2793   (eval $ac_link) 2>&5
 2794   ac_status=$?
 2795   echo "$as_me:2795: \$? = $ac_status" >&5
 2796   (exit $ac_status); } && test -s conftest ; then
 2797           cf_result=yes
 2798         fi
 2799       else
 2800         cf_result=yes
 2801       fi
 2802     fi
 2803     echo "$as_me:2803: result: $cf_result" >&5
 2804 echo "${ECHO_T}$cf_result" >&6
 2805     if test $cf_result = yes ; then
 2806       cf_cv_prog_YACC="$cf_prog"
 2807       break
 2808     fi
 2809   done
 2810 fi
 2811 
 2812 fi
 2813 
 2814 YACC="$cf_cv_prog_YACC"
 2815 
 2816 for ac_prog in lint alint lclint tdlint splint
 2817 do
 2818   # Extract the first word of "$ac_prog", so it can be a program name with args.
 2819 set dummy $ac_prog; ac_word=$2
 2820 echo "$as_me:2820: checking for $ac_word" >&5
 2821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 2822 if test "${ac_cv_prog_LINT+set}" = set; then
 2823   echo $ECHO_N "(cached) $ECHO_C" >&6
 2824 else
 2825   if test -n "$LINT"; then
 2826   ac_cv_prog_LINT="$LINT" # Let the user override the test.
 2827 else
 2828   ac_save_IFS=$IFS; IFS=$ac_path_separator
 2829 ac_dummy="$PATH"
 2830 for ac_dir in $ac_dummy; do
 2831   IFS=$ac_save_IFS
 2832   test -z "$ac_dir" && ac_dir=.
 2833   $as_executable_p "$ac_dir/$ac_word" || continue
 2834 ac_cv_prog_LINT="$ac_prog"
 2835 echo "$as_me:2835: found $ac_dir/$ac_word" >&5
 2836 break
 2837 done
 2838 
 2839 fi
 2840 fi
 2841 LINT=$ac_cv_prog_LINT
 2842 if test -n "$LINT"; then
 2843   echo "$as_me:2843: result: $LINT" >&5
 2844 echo "${ECHO_T}$LINT" >&6
 2845 else
 2846   echo "$as_me:2846: result: no" >&5
 2847 echo "${ECHO_T}no" >&6
 2848 fi
 2849 
 2850   test -n "$LINT" && break
 2851 done
 2852 test -n "$LINT" || LINT=":"
 2853 
 2854 cf_XOPEN_SOURCE=500
 2855 cf_POSIX_C_SOURCE=199506L
 2856 cf_xopen_source=
 2857 
 2858 case $host_os in
 2859 (aix[4-7]*)
 2860     cf_xopen_source="-D_ALL_SOURCE"
 2861     ;;
 2862 (msys)
 2863     cf_XOPEN_SOURCE=600
 2864     ;;
 2865 (darwin[0-8].*)
 2866     cf_xopen_source="-D_APPLE_C_SOURCE"
 2867     ;;
 2868 (darwin*)
 2869     cf_xopen_source="-D_DARWIN_C_SOURCE"
 2870     cf_XOPEN_SOURCE=
 2871     ;;
 2872 (freebsd*|dragonfly*|midnightbsd*)
 2873     # 5.x headers associate
 2874     #   _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
 2875     #   _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
 2876     cf_POSIX_C_SOURCE=200112L
 2877     cf_XOPEN_SOURCE=600
 2878     cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
 2879     ;;
 2880 (hpux11*)
 2881     cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
 2882     ;;
 2883 (hpux*)
 2884     cf_xopen_source="-D_HPUX_SOURCE"
 2885     ;;
 2886 (irix[56].*)
 2887     cf_xopen_source="-D_SGI_SOURCE"
 2888     cf_XOPEN_SOURCE=
 2889     ;;
 2890 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
 2891 
 2892 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
 2893 
 2894 echo "$as_me:2894: checking if this is the GNU C library" >&5
 2895 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
 2896 if test "${cf_cv_gnu_library+set}" = set; then
 2897   echo $ECHO_N "(cached) $ECHO_C" >&6
 2898 else
 2899 
 2900 cat >conftest.$ac_ext <<_ACEOF
 2901 #line 2901 "configure"
 2902 #include "confdefs.h"
 2903 #include <sys/types.h>
 2904 int
 2905 main (void)
 2906 {
 2907 
 2908     #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
 2909         return 0;
 2910     #else
 2911     #   error not GNU C library
 2912     #endif
 2913   ;
 2914   return 0;
 2915 }
 2916 _ACEOF
 2917 rm -f conftest.$ac_objext
 2918 if { (eval echo "$as_me:2918: \"$ac_compile\"") >&5
 2919   (eval $ac_compile) 2>&5
 2920   ac_status=$?
 2921   echo "$as_me:2921: \$? = $ac_status" >&5
 2922   (exit $ac_status); } &&
 2923          { ac_try='test -s conftest.$ac_objext'
 2924   { (eval echo "$as_me:2924: \"$ac_try\"") >&5
 2925   (eval $ac_try) 2>&5
 2926   ac_status=$?
 2927   echo "$as_me:2927: \$? = $ac_status" >&5
 2928   (exit $ac_status); }; }; then
 2929   cf_cv_gnu_library=yes
 2930 else
 2931   echo "$as_me: failed program was:" >&5
 2932 cat conftest.$ac_ext >&5
 2933 cf_cv_gnu_library=no
 2934 fi
 2935 rm -f conftest.$ac_objext conftest.$ac_ext
 2936 
 2937 fi
 2938 echo "$as_me:2938: result: $cf_cv_gnu_library" >&5
 2939 echo "${ECHO_T}$cf_cv_gnu_library" >&6
 2940 
 2941 if test x$cf_cv_gnu_library = xyes; then
 2942 
 2943     # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
 2944     # was changed to help a little...
 2945     echo "$as_me:2945: checking if _DEFAULT_SOURCE can be used as a basis" >&5
 2946 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
 2947 if test "${cf_cv_gnu_library_219+set}" = set; then
 2948   echo $ECHO_N "(cached) $ECHO_C" >&6
 2949 else
 2950 
 2951         cf_save="$CPPFLAGS"
 2952 
 2953     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 2954     CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
 2955 
 2956         cat >conftest.$ac_ext <<_ACEOF
 2957 #line 2957 "configure"
 2958 #include "confdefs.h"
 2959 #include <sys/types.h>
 2960 int
 2961 main (void)
 2962 {
 2963 
 2964             #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
 2965                 return 0;
 2966             #else
 2967             #   error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
 2968             #endif
 2969   ;
 2970   return 0;
 2971 }
 2972 _ACEOF
 2973 rm -f conftest.$ac_objext
 2974 if { (eval echo "$as_me:2974: \"$ac_compile\"") >&5
 2975   (eval $ac_compile) 2>&5
 2976   ac_status=$?
 2977   echo "$as_me:2977: \$? = $ac_status" >&5
 2978   (exit $ac_status); } &&
 2979          { ac_try='test -s conftest.$ac_objext'
 2980   { (eval echo "$as_me:2980: \"$ac_try\"") >&5
 2981   (eval $ac_try) 2>&5
 2982   ac_status=$?
 2983   echo "$as_me:2983: \$? = $ac_status" >&5
 2984   (exit $ac_status); }; }; then
 2985   cf_cv_gnu_library_219=yes
 2986 else
 2987   echo "$as_me: failed program was:" >&5
 2988 cat conftest.$ac_ext >&5
 2989 cf_cv_gnu_library_219=no
 2990 fi
 2991 rm -f conftest.$ac_objext conftest.$ac_ext
 2992         CPPFLAGS="$cf_save"
 2993 
 2994 fi
 2995 echo "$as_me:2995: result: $cf_cv_gnu_library_219" >&5
 2996 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
 2997 
 2998     if test "x$cf_cv_gnu_library_219" = xyes; then
 2999         cf_save="$CPPFLAGS"
 3000         echo "$as_me:3000: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
 3001 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
 3002 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
 3003   echo $ECHO_N "(cached) $ECHO_C" >&6
 3004 else
 3005 
 3006 cf_fix_cppflags=no
 3007 cf_new_cflags=
 3008 cf_new_cppflags=
 3009 cf_new_extra_cppflags=
 3010 
 3011 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
 3012 do
 3013 case $cf_fix_cppflags in
 3014 (no)
 3015     case $cf_add_cflags in
 3016     (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
 3017         case $cf_add_cflags in
 3018         (-D*)
 3019             cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
 3020 
 3021             test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 3022                 && test -z "${cf_tst_cflags}" \
 3023                 && cf_fix_cppflags=yes
 3024 
 3025             if test $cf_fix_cppflags = yes ; then
 3026 
 3027     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 3028     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 3029 
 3030                 continue
 3031             elif test "${cf_tst_cflags}" = "\"'" ; then
 3032 
 3033     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 3034     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 3035 
 3036                 continue
 3037             fi
 3038             ;;
 3039         esac
 3040         case "$CPPFLAGS" in
 3041         (*$cf_add_cflags)
 3042             ;;
 3043         (*)
 3044             case $cf_add_cflags in
 3045             (-D*)
 3046                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
 3047 
 3048 CPPFLAGS=`echo "$CPPFLAGS" | \
 3049     sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[     ]/ /g' \
 3050         -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
 3051 
 3052                 ;;
 3053             esac
 3054 
 3055     test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
 3056     cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
 3057 
 3058             ;;
 3059         esac
 3060         ;;
 3061     (*)
 3062 
 3063     test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
 3064     cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
 3065 
 3066         ;;
 3067     esac
 3068     ;;
 3069 (yes)
 3070 
 3071     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 3072     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 3073 
 3074     cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
 3075 
 3076     test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 3077         && test -z "${cf_tst_cflags}" \
 3078         && cf_fix_cppflags=no
 3079     ;;
 3080 esac
 3081 done
 3082 
 3083 if test -n "$cf_new_cflags" ; then
 3084 
 3085     test -n "$CFLAGS" && CFLAGS="$CFLAGS "
 3086     CFLAGS="${CFLAGS}$cf_new_cflags"
 3087 
 3088 fi
 3089 
 3090 if test -n "$cf_new_cppflags" ; then
 3091 
 3092     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 3093     CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
 3094 
 3095 fi
 3096 
 3097 if test -n "$cf_new_extra_cppflags" ; then
 3098 
 3099     test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
 3100     EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
 3101 
 3102 fi
 3103 
 3104             cat >conftest.$ac_ext <<_ACEOF
 3105 #line 3105 "configure"
 3106 #include "confdefs.h"
 3107 
 3108                 #include <limits.h>
 3109                 #include <sys/types.h>
 3110 
 3111 int
 3112 main (void)
 3113 {
 3114 
 3115                 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
 3116                     return 0;
 3117                 #else
 3118                 #   error GNU C library is too old
 3119                 #endif
 3120   ;
 3121   return 0;
 3122 }
 3123 _ACEOF
 3124 rm -f conftest.$ac_objext
 3125 if { (eval echo "$as_me:3125: \"$ac_compile\"") >&5
 3126   (eval $ac_compile) 2>&5
 3127   ac_status=$?
 3128   echo "$as_me:3128: \$? = $ac_status" >&5
 3129   (exit $ac_status); } &&
 3130          { ac_try='test -s conftest.$ac_objext'
 3131   { (eval echo "$as_me:3131: \"$ac_try\"") >&5
 3132   (eval $ac_try) 2>&5
 3133   ac_status=$?
 3134   echo "$as_me:3134: \$? = $ac_status" >&5
 3135   (exit $ac_status); }; }; then
 3136   cf_cv_gnu_dftsrc_219=yes
 3137 else
 3138   echo "$as_me: failed program was:" >&5
 3139 cat conftest.$ac_ext >&5
 3140 cf_cv_gnu_dftsrc_219=no
 3141 fi
 3142 rm -f conftest.$ac_objext conftest.$ac_ext
 3143 
 3144 fi
 3145 echo "$as_me:3145: result: $cf_cv_gnu_dftsrc_219" >&5
 3146 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
 3147         test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
 3148     else
 3149         cf_cv_gnu_dftsrc_219=maybe
 3150     fi
 3151 
 3152     if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
 3153 
 3154         echo "$as_me:3154: checking if we must define _GNU_SOURCE" >&5
 3155 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
 3156 if test "${cf_cv_gnu_source+set}" = set; then
 3157   echo $ECHO_N "(cached) $ECHO_C" >&6
 3158 else
 3159 
 3160         cat >conftest.$ac_ext <<_ACEOF
 3161 #line 3161 "configure"
 3162 #include "confdefs.h"
 3163 #include <sys/types.h>
 3164 int
 3165 main (void)
 3166 {
 3167 
 3168             #ifndef _XOPEN_SOURCE
 3169             #error  expected _XOPEN_SOURCE to be defined
 3170             #endif
 3171   ;
 3172   return 0;
 3173 }
 3174 _ACEOF
 3175 rm -f conftest.$ac_objext
 3176 if { (eval echo "$as_me:3176: \"$ac_compile\"") >&5
 3177   (eval $ac_compile) 2>&5
 3178   ac_status=$?
 3179   echo "$as_me:3179: \$? = $ac_status" >&5
 3180   (exit $ac_status); } &&
 3181          { ac_try='test -s conftest.$ac_objext'
 3182   { (eval echo "$as_me:3182: \"$ac_try\"") >&5
 3183   (eval $ac_try) 2>&5
 3184   ac_status=$?
 3185   echo "$as_me:3185: \$? = $ac_status" >&5
 3186   (exit $ac_status); }; }; then
 3187   cf_cv_gnu_source=no
 3188 else
 3189   echo "$as_me: failed program was:" >&5
 3190 cat conftest.$ac_ext >&5
 3191 cf_save="$CPPFLAGS"
 3192 
 3193 cf_fix_cppflags=no
 3194 cf_new_cflags=
 3195 cf_new_cppflags=
 3196 cf_new_extra_cppflags=
 3197 
 3198 for cf_add_cflags in -D_GNU_SOURCE
 3199 do
 3200 case $cf_fix_cppflags in
 3201 (no)
 3202     case $cf_add_cflags in
 3203     (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
 3204         case $cf_add_cflags in
 3205         (-D*)
 3206             cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
 3207 
 3208             test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 3209                 && test -z "${cf_tst_cflags}" \
 3210                 && cf_fix_cppflags=yes
 3211 
 3212             if test $cf_fix_cppflags = yes ; then
 3213 
 3214     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 3215     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 3216 
 3217                 continue
 3218             elif test "${cf_tst_cflags}" = "\"'" ; then
 3219 
 3220     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 3221     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 3222 
 3223                 continue
 3224             fi
 3225             ;;
 3226         esac
 3227         case "$CPPFLAGS" in
 3228         (*$cf_add_cflags)
 3229             ;;
 3230         (*)
 3231             case $cf_add_cflags in
 3232             (-D*)
 3233                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
 3234 
 3235 CPPFLAGS=`echo "$CPPFLAGS" | \
 3236     sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[     ]/ /g' \
 3237         -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
 3238 
 3239                 ;;
 3240             esac
 3241 
 3242     test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
 3243     cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
 3244 
 3245             ;;
 3246         esac
 3247         ;;
 3248     (*)
 3249 
 3250     test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
 3251     cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
 3252 
 3253         ;;
 3254     esac
 3255     ;;
 3256 (yes)
 3257 
 3258     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 3259     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 3260 
 3261     cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
 3262 
 3263     test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 3264         && test -z "${cf_tst_cflags}" \
 3265         && cf_fix_cppflags=no
 3266     ;;
 3267 esac
 3268 done
 3269 
 3270 if test -n "$cf_new_cflags" ; then
 3271 
 3272     test -n "$CFLAGS" && CFLAGS="$CFLAGS "
 3273     CFLAGS="${CFLAGS}$cf_new_cflags"
 3274 
 3275 fi
 3276 
 3277 if test -n "$cf_new_cppflags" ; then
 3278 
 3279     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 3280     CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
 3281 
 3282 fi
 3283 
 3284 if test -n "$cf_new_extra_cppflags" ; then
 3285 
 3286     test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
 3287     EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
 3288 
 3289 fi
 3290 
 3291              cat >conftest.$ac_ext <<_ACEOF
 3292 #line 3292 "configure"
 3293 #include "confdefs.h"
 3294 #include <sys/types.h>
 3295 int
 3296 main (void)
 3297 {
 3298 
 3299                 #ifdef _XOPEN_SOURCE
 3300                 #error  expected _XOPEN_SOURCE to be undefined
 3301                 #endif
 3302   ;
 3303   return 0;
 3304 }
 3305 _ACEOF
 3306 rm -f conftest.$ac_objext
 3307 if { (eval echo "$as_me:3307: \"$ac_compile\"") >&5
 3308   (eval $ac_compile) 2>&5
 3309   ac_status=$?
 3310   echo "$as_me:3310: \$? = $ac_status" >&5
 3311   (exit $ac_status); } &&
 3312          { ac_try='test -s conftest.$ac_objext'
 3313   { (eval echo "$as_me:3313: \"$ac_try\"") >&5
 3314   (eval $ac_try) 2>&5
 3315   ac_status=$?
 3316   echo "$as_me:3316: \$? = $ac_status" >&5
 3317   (exit $ac_status); }; }; then
 3318   cf_cv_gnu_source=no
 3319 else
 3320   echo "$as_me: failed program was:" >&5
 3321 cat conftest.$ac_ext >&5
 3322 cf_cv_gnu_source=yes
 3323 fi
 3324 rm -f conftest.$ac_objext conftest.$ac_ext
 3325             CPPFLAGS="$cf_save"
 3326 
 3327 fi
 3328 rm -f conftest.$ac_objext conftest.$ac_ext
 3329 
 3330 fi
 3331 echo "$as_me:3331: result: $cf_cv_gnu_source" >&5
 3332 echo "${ECHO_T}$cf_cv_gnu_source" >&6
 3333 
 3334         if test "$cf_cv_gnu_source" = yes
 3335         then
 3336         echo "$as_me:3336: checking if we should also define _DEFAULT_SOURCE" >&5
 3337 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
 3338 if test "${cf_cv_default_source+set}" = set; then
 3339   echo $ECHO_N "(cached) $ECHO_C" >&6
 3340 else
 3341 
 3342     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 3343     CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
 3344 
 3345             cat >conftest.$ac_ext <<_ACEOF
 3346 #line 3346 "configure"
 3347 #include "confdefs.h"
 3348 #include <sys/types.h>
 3349 int
 3350 main (void)
 3351 {
 3352 
 3353                 #ifdef _DEFAULT_SOURCE
 3354                 #error  expected _DEFAULT_SOURCE to be undefined
 3355                 #endif
 3356   ;
 3357   return 0;
 3358 }
 3359 _ACEOF
 3360 rm -f conftest.$ac_objext
 3361 if { (eval echo "$as_me:3361: \"$ac_compile\"") >&5
 3362   (eval $ac_compile) 2>&5
 3363   ac_status=$?
 3364   echo "$as_me:3364: \$? = $ac_status" >&5
 3365   (exit $ac_status); } &&
 3366          { ac_try='test -s conftest.$ac_objext'
 3367   { (eval echo "$as_me:3367: \"$ac_try\"") >&5
 3368   (eval $ac_try) 2>&5
 3369   ac_status=$?
 3370   echo "$as_me:3370: \$? = $ac_status" >&5
 3371   (exit $ac_status); }; }; then
 3372   cf_cv_default_source=no
 3373 else
 3374   echo "$as_me: failed program was:" >&5
 3375 cat conftest.$ac_ext >&5
 3376 cf_cv_default_source=yes
 3377 fi
 3378 rm -f conftest.$ac_objext conftest.$ac_ext
 3379 
 3380 fi
 3381 echo "$as_me:3381: result: $cf_cv_default_source" >&5
 3382 echo "${ECHO_T}$cf_cv_default_source" >&6
 3383             if test "$cf_cv_default_source" = yes
 3384             then
 3385 
 3386     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 3387     CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
 3388 
 3389             fi
 3390         fi
 3391     fi
 3392 
 3393 fi
 3394 
 3395     ;;
 3396 (minix*)
 3397     cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
 3398     ;;
 3399 (mirbsd*)
 3400     # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
 3401     cf_XOPEN_SOURCE=
 3402 
 3403 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
 3404 
 3405 cf_save_CFLAGS="$CFLAGS"
 3406 cf_save_CPPFLAGS="$CPPFLAGS"
 3407 
 3408 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
 3409     sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?[     ]/ /g' \
 3410         -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?$//g'`
 3411 
 3412 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
 3413     sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?[     ]/ /g' \
 3414         -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?$//g'`
 3415 
 3416 echo "$as_me:3416: checking if we should define _POSIX_C_SOURCE" >&5
 3417 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
 3418 if test "${cf_cv_posix_c_source+set}" = set; then
 3419   echo $ECHO_N "(cached) $ECHO_C" >&6
 3420 else
 3421 
 3422 echo "${as_me:-configure}:3422: testing if the symbol is already defined go no further ..." 1>&5
 3423 
 3424     cat >conftest.$ac_ext <<_ACEOF
 3425 #line 3425 "configure"
 3426 #include "confdefs.h"
 3427 #include <sys/types.h>
 3428 int
 3429 main (void)
 3430 {
 3431 
 3432 #ifndef _POSIX_C_SOURCE
 3433 make an error
 3434 #endif
 3435   ;
 3436   return 0;
 3437 }
 3438 _ACEOF
 3439 rm -f conftest.$ac_objext
 3440 if { (eval echo "$as_me:3440: \"$ac_compile\"") >&5
 3441   (eval $ac_compile) 2>&5
 3442   ac_status=$?
 3443   echo "$as_me:3443: \$? = $ac_status" >&5
 3444   (exit $ac_status); } &&
 3445          { ac_try='test -s conftest.$ac_objext'
 3446   { (eval echo "$as_me:3446: \"$ac_try\"") >&5
 3447   (eval $ac_try) 2>&5
 3448   ac_status=$?
 3449   echo "$as_me:3449: \$? = $ac_status" >&5
 3450   (exit $ac_status); }; }; then
 3451   cf_cv_posix_c_source=no
 3452 else
 3453   echo "$as_me: failed program was:" >&5
 3454 cat conftest.$ac_ext >&5
 3455 cf_want_posix_source=no
 3456      case .$cf_POSIX_C_SOURCE in
 3457      (.[12]??*)
 3458         cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
 3459         ;;
 3460      (.2)
 3461         cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
 3462         cf_want_posix_source=yes
 3463         ;;
 3464      (.*)
 3465         cf_want_posix_source=yes
 3466         ;;
 3467      esac
 3468      if test "$cf_want_posix_source" = yes ; then
 3469         cat >conftest.$ac_ext <<_ACEOF
 3470 #line 3470 "configure"
 3471 #include "confdefs.h"
 3472 #include <sys/types.h>
 3473 int
 3474 main (void)
 3475 {
 3476 
 3477 #ifdef _POSIX_SOURCE
 3478 make an error
 3479 #endif
 3480   ;
 3481   return 0;
 3482 }
 3483 _ACEOF
 3484 rm -f conftest.$ac_objext
 3485 if { (eval echo "$as_me:3485: \"$ac_compile\"") >&5
 3486   (eval $ac_compile) 2>&5
 3487   ac_status=$?
 3488   echo "$as_me:3488: \$? = $ac_status" >&5
 3489   (exit $ac_status); } &&
 3490          { ac_try='test -s conftest.$ac_objext'
 3491   { (eval echo "$as_me:3491: \"$ac_try\"") >&5
 3492   (eval $ac_try) 2>&5
 3493   ac_status=$?
 3494   echo "$as_me:3494: \$? = $ac_status" >&5
 3495   (exit $ac_status); }; }; then
 3496   :
 3497 else
 3498   echo "$as_me: failed program was:" >&5
 3499 cat conftest.$ac_ext >&5
 3500 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
 3501 fi
 3502 rm -f conftest.$ac_objext conftest.$ac_ext
 3503      fi
 3504 
 3505 echo "${as_me:-configure}:3505: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
 3506 
 3507      CFLAGS="$cf_trim_CFLAGS"
 3508      CPPFLAGS="$cf_trim_CPPFLAGS"
 3509 
 3510     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 3511     CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
 3512 
 3513 echo "${as_me:-configure}:3513: testing if the second compile does not leave our definition intact error ..." 1>&5
 3514 
 3515      cat >conftest.$ac_ext <<_ACEOF
 3516 #line 3516 "configure"
 3517 #include "confdefs.h"
 3518 #include <sys/types.h>
 3519 int
 3520 main (void)
 3521 {
 3522 
 3523 #ifndef _POSIX_C_SOURCE
 3524 make an error
 3525 #endif
 3526   ;
 3527   return 0;
 3528 }
 3529 _ACEOF
 3530 rm -f conftest.$ac_objext
 3531 if { (eval echo "$as_me:3531: \"$ac_compile\"") >&5
 3532   (eval $ac_compile) 2>&5
 3533   ac_status=$?
 3534   echo "$as_me:3534: \$? = $ac_status" >&5
 3535   (exit $ac_status); } &&
 3536          { ac_try='test -s conftest.$ac_objext'
 3537   { (eval echo "$as_me:3537: \"$ac_try\"") >&5
 3538   (eval $ac_try) 2>&5
 3539   ac_status=$?
 3540   echo "$as_me:3540: \$? = $ac_status" >&5
 3541   (exit $ac_status); }; }; then
 3542   :
 3543 else
 3544   echo "$as_me: failed program was:" >&5
 3545 cat conftest.$ac_ext >&5
 3546 cf_cv_posix_c_source=no
 3547 fi
 3548 rm -f conftest.$ac_objext conftest.$ac_ext
 3549      CFLAGS="$cf_save_CFLAGS"
 3550      CPPFLAGS="$cf_save_CPPFLAGS"
 3551 
 3552 fi
 3553 rm -f conftest.$ac_objext conftest.$ac_ext
 3554 
 3555 fi
 3556 echo "$as_me:3556: result: $cf_cv_posix_c_source" >&5
 3557 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
 3558 
 3559 if test "$cf_cv_posix_c_source" != no ; then
 3560     CFLAGS="$cf_trim_CFLAGS"
 3561     CPPFLAGS="$cf_trim_CPPFLAGS"
 3562 
 3563 cf_fix_cppflags=no
 3564 cf_new_cflags=
 3565 cf_new_cppflags=
 3566 cf_new_extra_cppflags=
 3567 
 3568 for cf_add_cflags in $cf_cv_posix_c_source
 3569 do
 3570 case $cf_fix_cppflags in
 3571 (no)
 3572     case $cf_add_cflags in
 3573     (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
 3574         case $cf_add_cflags in
 3575         (-D*)
 3576             cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
 3577 
 3578             test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 3579                 && test -z "${cf_tst_cflags}" \
 3580                 && cf_fix_cppflags=yes
 3581 
 3582             if test $cf_fix_cppflags = yes ; then
 3583 
 3584     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 3585     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 3586 
 3587                 continue
 3588             elif test "${cf_tst_cflags}" = "\"'" ; then
 3589 
 3590     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 3591     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 3592 
 3593                 continue
 3594             fi
 3595             ;;
 3596         esac
 3597         case "$CPPFLAGS" in
 3598         (*$cf_add_cflags)
 3599             ;;
 3600         (*)
 3601             case $cf_add_cflags in
 3602             (-D*)
 3603                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
 3604 
 3605 CPPFLAGS=`echo "$CPPFLAGS" | \
 3606     sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[     ]/ /g' \
 3607         -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
 3608 
 3609                 ;;
 3610             esac
 3611 
 3612     test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
 3613     cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
 3614 
 3615             ;;
 3616         esac
 3617         ;;
 3618     (*)
 3619 
 3620     test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
 3621     cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
 3622 
 3623         ;;
 3624     esac
 3625     ;;
 3626 (yes)
 3627 
 3628     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 3629     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 3630 
 3631     cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
 3632 
 3633     test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 3634         && test -z "${cf_tst_cflags}" \
 3635         && cf_fix_cppflags=no
 3636     ;;
 3637 esac
 3638 done
 3639 
 3640 if test -n "$cf_new_cflags" ; then
 3641 
 3642     test -n "$CFLAGS" && CFLAGS="$CFLAGS "
 3643     CFLAGS="${CFLAGS}$cf_new_cflags"
 3644 
 3645 fi
 3646 
 3647 if test -n "$cf_new_cppflags" ; then
 3648 
 3649     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 3650     CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
 3651 
 3652 fi
 3653 
 3654 if test -n "$cf_new_extra_cppflags" ; then
 3655 
 3656     test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
 3657     EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
 3658 
 3659 fi
 3660 
 3661 fi
 3662 
 3663     ;;
 3664 (netbsd*)
 3665     cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
 3666     ;;
 3667 (openbsd[4-9]*)
 3668     # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
 3669     cf_xopen_source="-D_BSD_SOURCE"
 3670     cf_XOPEN_SOURCE=600
 3671     ;;
 3672 (openbsd*)
 3673     # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
 3674     ;;
 3675 (osf[45]*)
 3676     cf_xopen_source="-D_OSF_SOURCE"
 3677     ;;
 3678 (nto-qnx*)
 3679     cf_xopen_source="-D_QNX_SOURCE"
 3680     ;;
 3681 (sco*)
 3682     # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
 3683     ;;
 3684 (solaris2.*)
 3685     cf_xopen_source="-D__EXTENSIONS__"
 3686     cf_cv_xopen_source=broken
 3687     ;;
 3688 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
 3689     cf_XOPEN_SOURCE=
 3690     cf_POSIX_C_SOURCE=
 3691     ;;
 3692 (*)
 3693 
 3694 echo "$as_me:3694: checking if we should define _XOPEN_SOURCE" >&5
 3695 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
 3696 if test "${cf_cv_xopen_source+set}" = set; then
 3697   echo $ECHO_N "(cached) $ECHO_C" >&6
 3698 else
 3699 
 3700     cat >conftest.$ac_ext <<_ACEOF
 3701 #line 3701 "configure"
 3702 #include "confdefs.h"
 3703 
 3704 #include <stdlib.h>
 3705 #include <string.h>
 3706 #include <sys/types.h>
 3707 
 3708 int
 3709 main (void)
 3710 {
 3711 
 3712 #ifndef _XOPEN_SOURCE
 3713 make an error
 3714 #endif
 3715   ;
 3716   return 0;
 3717 }
 3718 _ACEOF
 3719 rm -f conftest.$ac_objext
 3720 if { (eval echo "$as_me:3720: \"$ac_compile\"") >&5
 3721   (eval $ac_compile) 2>&5
 3722   ac_status=$?
 3723   echo "$as_me:3723: \$? = $ac_status" >&5
 3724   (exit $ac_status); } &&
 3725          { ac_try='test -s conftest.$ac_objext'
 3726   { (eval echo "$as_me:3726: \"$ac_try\"") >&5
 3727   (eval $ac_try) 2>&5
 3728   ac_status=$?
 3729   echo "$as_me:3729: \$? = $ac_status" >&5
 3730   (exit $ac_status); }; }; then
 3731   cf_cv_xopen_source=no
 3732 else
 3733   echo "$as_me: failed program was:" >&5
 3734 cat conftest.$ac_ext >&5
 3735 cf_save="$CPPFLAGS"
 3736 
 3737     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 3738     CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
 3739 
 3740      cat >conftest.$ac_ext <<_ACEOF
 3741 #line 3741 "configure"
 3742 #include "confdefs.h"
 3743 
 3744 #include <stdlib.h>
 3745 #include <string.h>
 3746 #include <sys/types.h>
 3747 
 3748 int
 3749 main (void)
 3750 {
 3751 
 3752 #ifdef _XOPEN_SOURCE
 3753 make an error
 3754 #endif
 3755   ;
 3756   return 0;
 3757 }
 3758 _ACEOF
 3759 rm -f conftest.$ac_objext
 3760 if { (eval echo "$as_me:3760: \"$ac_compile\"") >&5
 3761   (eval $ac_compile) 2>&5
 3762   ac_status=$?
 3763   echo "$as_me:3763: \$? = $ac_status" >&5
 3764   (exit $ac_status); } &&
 3765          { ac_try='test -s conftest.$ac_objext'
 3766   { (eval echo "$as_me:3766: \"$ac_try\"") >&5
 3767   (eval $ac_try) 2>&5
 3768   ac_status=$?
 3769   echo "$as_me:3769: \$? = $ac_status" >&5
 3770   (exit $ac_status); }; }; then
 3771   cf_cv_xopen_source=no
 3772 else
 3773   echo "$as_me: failed program was:" >&5
 3774 cat conftest.$ac_ext >&5
 3775 cf_cv_xopen_source=$cf_XOPEN_SOURCE
 3776 fi
 3777 rm -f conftest.$ac_objext conftest.$ac_ext
 3778     CPPFLAGS="$cf_save"
 3779 
 3780 fi
 3781 rm -f conftest.$ac_objext conftest.$ac_ext
 3782 
 3783 fi
 3784 echo "$as_me:3784: result: $cf_cv_xopen_source" >&5
 3785 echo "${ECHO_T}$cf_cv_xopen_source" >&6
 3786 
 3787 if test "$cf_cv_xopen_source" != no ; then
 3788 
 3789 CFLAGS=`echo "$CFLAGS" | \
 3790     sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?[     ]/ /g' \
 3791         -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?$//g'`
 3792 
 3793 CPPFLAGS=`echo "$CPPFLAGS" | \
 3794     sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?[     ]/ /g' \
 3795         -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?$//g'`
 3796 
 3797     cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
 3798 
 3799 cf_fix_cppflags=no
 3800 cf_new_cflags=
 3801 cf_new_cppflags=
 3802 cf_new_extra_cppflags=
 3803 
 3804 for cf_add_cflags in $cf_temp_xopen_source
 3805 do
 3806 case $cf_fix_cppflags in
 3807 (no)
 3808     case $cf_add_cflags in
 3809     (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
 3810         case $cf_add_cflags in
 3811         (-D*)
 3812             cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
 3813 
 3814             test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 3815                 && test -z "${cf_tst_cflags}" \
 3816                 && cf_fix_cppflags=yes
 3817 
 3818             if test $cf_fix_cppflags = yes ; then
 3819 
 3820     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 3821     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 3822 
 3823                 continue
 3824             elif test "${cf_tst_cflags}" = "\"'" ; then
 3825 
 3826     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 3827     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 3828 
 3829                 continue
 3830             fi
 3831             ;;
 3832         esac
 3833         case "$CPPFLAGS" in
 3834         (*$cf_add_cflags)
 3835             ;;
 3836         (*)
 3837             case $cf_add_cflags in
 3838             (-D*)
 3839                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
 3840 
 3841 CPPFLAGS=`echo "$CPPFLAGS" | \
 3842     sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[     ]/ /g' \
 3843         -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
 3844 
 3845                 ;;
 3846             esac
 3847 
 3848     test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
 3849     cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
 3850 
 3851             ;;
 3852         esac
 3853         ;;
 3854     (*)
 3855 
 3856     test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
 3857     cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
 3858 
 3859         ;;
 3860     esac
 3861     ;;
 3862 (yes)
 3863 
 3864     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 3865     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 3866 
 3867     cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
 3868 
 3869     test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 3870         && test -z "${cf_tst_cflags}" \
 3871         && cf_fix_cppflags=no
 3872     ;;
 3873 esac
 3874 done
 3875 
 3876 if test -n "$cf_new_cflags" ; then
 3877 
 3878     test -n "$CFLAGS" && CFLAGS="$CFLAGS "
 3879     CFLAGS="${CFLAGS}$cf_new_cflags"
 3880 
 3881 fi
 3882 
 3883 if test -n "$cf_new_cppflags" ; then
 3884 
 3885     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 3886     CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
 3887 
 3888 fi
 3889 
 3890 if test -n "$cf_new_extra_cppflags" ; then
 3891 
 3892     test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
 3893     EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
 3894 
 3895 fi
 3896 
 3897 fi
 3898 
 3899 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
 3900 
 3901 cf_save_CFLAGS="$CFLAGS"
 3902 cf_save_CPPFLAGS="$CPPFLAGS"
 3903 
 3904 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
 3905     sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?[     ]/ /g' \
 3906         -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?$//g'`
 3907 
 3908 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
 3909     sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?[     ]/ /g' \
 3910         -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?$//g'`
 3911 
 3912 echo "$as_me:3912: checking if we should define _POSIX_C_SOURCE" >&5
 3913 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
 3914 if test "${cf_cv_posix_c_source+set}" = set; then
 3915   echo $ECHO_N "(cached) $ECHO_C" >&6
 3916 else
 3917 
 3918 echo "${as_me:-configure}:3918: testing if the symbol is already defined go no further ..." 1>&5
 3919 
 3920     cat >conftest.$ac_ext <<_ACEOF
 3921 #line 3921 "configure"
 3922 #include "confdefs.h"
 3923 #include <sys/types.h>
 3924 int
 3925 main (void)
 3926 {
 3927 
 3928 #ifndef _POSIX_C_SOURCE
 3929 make an error
 3930 #endif
 3931   ;
 3932   return 0;
 3933 }
 3934 _ACEOF
 3935 rm -f conftest.$ac_objext
 3936 if { (eval echo "$as_me:3936: \"$ac_compile\"") >&5
 3937   (eval $ac_compile) 2>&5
 3938   ac_status=$?
 3939   echo "$as_me:3939: \$? = $ac_status" >&5
 3940   (exit $ac_status); } &&
 3941          { ac_try='test -s conftest.$ac_objext'
 3942   { (eval echo "$as_me:3942: \"$ac_try\"") >&5
 3943   (eval $ac_try) 2>&5
 3944   ac_status=$?
 3945   echo "$as_me:3945: \$? = $ac_status" >&5
 3946   (exit $ac_status); }; }; then
 3947   cf_cv_posix_c_source=no
 3948 else
 3949   echo "$as_me: failed program was:" >&5
 3950 cat conftest.$ac_ext >&5
 3951 cf_want_posix_source=no
 3952      case .$cf_POSIX_C_SOURCE in
 3953      (.[12]??*)
 3954         cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
 3955         ;;
 3956      (.2)
 3957         cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
 3958         cf_want_posix_source=yes
 3959         ;;
 3960      (.*)
 3961         cf_want_posix_source=yes
 3962         ;;
 3963      esac
 3964      if test "$cf_want_posix_source" = yes ; then
 3965         cat >conftest.$ac_ext <<_ACEOF
 3966 #line 3966 "configure"
 3967 #include "confdefs.h"
 3968 #include <sys/types.h>
 3969 int
 3970 main (void)
 3971 {
 3972 
 3973 #ifdef _POSIX_SOURCE
 3974 make an error
 3975 #endif
 3976   ;
 3977   return 0;
 3978 }
 3979 _ACEOF
 3980 rm -f conftest.$ac_objext
 3981 if { (eval echo "$as_me:3981: \"$ac_compile\"") >&5
 3982   (eval $ac_compile) 2>&5
 3983   ac_status=$?
 3984   echo "$as_me:3984: \$? = $ac_status" >&5
 3985   (exit $ac_status); } &&
 3986          { ac_try='test -s conftest.$ac_objext'
 3987   { (eval echo "$as_me:3987: \"$ac_try\"") >&5
 3988   (eval $ac_try) 2>&5
 3989   ac_status=$?
 3990   echo "$as_me:3990: \$? = $ac_status" >&5
 3991   (exit $ac_status); }; }; then
 3992   :
 3993 else
 3994   echo "$as_me: failed program was:" >&5
 3995 cat conftest.$ac_ext >&5
 3996 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
 3997 fi
 3998 rm -f conftest.$ac_objext conftest.$ac_ext
 3999      fi
 4000 
 4001 echo "${as_me:-configure}:4001: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
 4002 
 4003      CFLAGS="$cf_trim_CFLAGS"
 4004      CPPFLAGS="$cf_trim_CPPFLAGS"
 4005 
 4006     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 4007     CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
 4008 
 4009 echo "${as_me:-configure}:4009: testing if the second compile does not leave our definition intact error ..." 1>&5
 4010 
 4011      cat >conftest.$ac_ext <<_ACEOF
 4012 #line 4012 "configure"
 4013 #include "confdefs.h"
 4014 #include <sys/types.h>
 4015 int
 4016 main (void)
 4017 {
 4018 
 4019 #ifndef _POSIX_C_SOURCE
 4020 make an error
 4021 #endif
 4022   ;
 4023   return 0;
 4024 }
 4025 _ACEOF
 4026 rm -f conftest.$ac_objext
 4027 if { (eval echo "$as_me:4027: \"$ac_compile\"") >&5
 4028   (eval $ac_compile) 2>&5
 4029   ac_status=$?
 4030   echo "$as_me:4030: \$? = $ac_status" >&5
 4031   (exit $ac_status); } &&
 4032          { ac_try='test -s conftest.$ac_objext'
 4033   { (eval echo "$as_me:4033: \"$ac_try\"") >&5
 4034   (eval $ac_try) 2>&5
 4035   ac_status=$?
 4036   echo "$as_me:4036: \$? = $ac_status" >&5
 4037   (exit $ac_status); }; }; then
 4038   :
 4039 else
 4040   echo "$as_me: failed program was:" >&5
 4041 cat conftest.$ac_ext >&5
 4042 cf_cv_posix_c_source=no
 4043 fi
 4044 rm -f conftest.$ac_objext conftest.$ac_ext
 4045      CFLAGS="$cf_save_CFLAGS"
 4046      CPPFLAGS="$cf_save_CPPFLAGS"
 4047 
 4048 fi
 4049 rm -f conftest.$ac_objext conftest.$ac_ext
 4050 
 4051 fi
 4052 echo "$as_me:4052: result: $cf_cv_posix_c_source" >&5
 4053 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
 4054 
 4055 if test "$cf_cv_posix_c_source" != no ; then
 4056     CFLAGS="$cf_trim_CFLAGS"
 4057     CPPFLAGS="$cf_trim_CPPFLAGS"
 4058 
 4059 cf_fix_cppflags=no
 4060 cf_new_cflags=
 4061 cf_new_cppflags=
 4062 cf_new_extra_cppflags=
 4063 
 4064 for cf_add_cflags in $cf_cv_posix_c_source
 4065 do
 4066 case $cf_fix_cppflags in
 4067 (no)
 4068     case $cf_add_cflags in
 4069     (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
 4070         case $cf_add_cflags in
 4071         (-D*)
 4072             cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
 4073 
 4074             test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 4075                 && test -z "${cf_tst_cflags}" \
 4076                 && cf_fix_cppflags=yes
 4077 
 4078             if test $cf_fix_cppflags = yes ; then
 4079 
 4080     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 4081     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 4082 
 4083                 continue
 4084             elif test "${cf_tst_cflags}" = "\"'" ; then
 4085 
 4086     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 4087     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 4088 
 4089                 continue
 4090             fi
 4091             ;;
 4092         esac
 4093         case "$CPPFLAGS" in
 4094         (*$cf_add_cflags)
 4095             ;;
 4096         (*)
 4097             case $cf_add_cflags in
 4098             (-D*)
 4099                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
 4100 
 4101 CPPFLAGS=`echo "$CPPFLAGS" | \
 4102     sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[     ]/ /g' \
 4103         -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
 4104 
 4105                 ;;
 4106             esac
 4107 
 4108     test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
 4109     cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
 4110 
 4111             ;;
 4112         esac
 4113         ;;
 4114     (*)
 4115 
 4116     test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
 4117     cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
 4118 
 4119         ;;
 4120     esac
 4121     ;;
 4122 (yes)
 4123 
 4124     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 4125     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 4126 
 4127     cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
 4128 
 4129     test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 4130         && test -z "${cf_tst_cflags}" \
 4131         && cf_fix_cppflags=no
 4132     ;;
 4133 esac
 4134 done
 4135 
 4136 if test -n "$cf_new_cflags" ; then
 4137 
 4138     test -n "$CFLAGS" && CFLAGS="$CFLAGS "
 4139     CFLAGS="${CFLAGS}$cf_new_cflags"
 4140 
 4141 fi
 4142 
 4143 if test -n "$cf_new_cppflags" ; then
 4144 
 4145     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 4146     CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
 4147 
 4148 fi
 4149 
 4150 if test -n "$cf_new_extra_cppflags" ; then
 4151 
 4152     test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
 4153     EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
 4154 
 4155 fi
 4156 
 4157 fi
 4158 
 4159     ;;
 4160 esac
 4161 
 4162 if test -n "$cf_xopen_source" ; then
 4163 
 4164 cf_fix_cppflags=no
 4165 cf_new_cflags=
 4166 cf_new_cppflags=
 4167 cf_new_extra_cppflags=
 4168 
 4169 for cf_add_cflags in $cf_xopen_source
 4170 do
 4171 case $cf_fix_cppflags in
 4172 (no)
 4173     case $cf_add_cflags in
 4174     (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
 4175         case $cf_add_cflags in
 4176         (-D*)
 4177             cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
 4178 
 4179             test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 4180                 && test -z "${cf_tst_cflags}" \
 4181                 && cf_fix_cppflags=yes
 4182 
 4183             if test $cf_fix_cppflags = yes ; then
 4184 
 4185     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 4186     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 4187 
 4188                 continue
 4189             elif test "${cf_tst_cflags}" = "\"'" ; then
 4190 
 4191     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 4192     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 4193 
 4194                 continue
 4195             fi
 4196             ;;
 4197         esac
 4198         case "$CPPFLAGS" in
 4199         (*$cf_add_cflags)
 4200             ;;
 4201         (*)
 4202             case $cf_add_cflags in
 4203             (-D*)
 4204                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
 4205 
 4206 CPPFLAGS=`echo "$CPPFLAGS" | \
 4207     sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[     ]/ /g' \
 4208         -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
 4209 
 4210                 ;;
 4211             esac
 4212 
 4213     test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
 4214     cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
 4215 
 4216             ;;
 4217         esac
 4218         ;;
 4219     (*)
 4220 
 4221     test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
 4222     cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
 4223 
 4224         ;;
 4225     esac
 4226     ;;
 4227 (yes)
 4228 
 4229     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 4230     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 4231 
 4232     cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
 4233 
 4234     test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 4235         && test -z "${cf_tst_cflags}" \
 4236         && cf_fix_cppflags=no
 4237     ;;
 4238 esac
 4239 done
 4240 
 4241 if test -n "$cf_new_cflags" ; then
 4242     test -n "$verbose" && echo "    add to \$CFLAGS $cf_new_cflags" 1>&6
 4243 
 4244 echo "${as_me:-configure}:4244: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
 4245 
 4246     test -n "$CFLAGS" && CFLAGS="$CFLAGS "
 4247     CFLAGS="${CFLAGS}$cf_new_cflags"
 4248 
 4249 fi
 4250 
 4251 if test -n "$cf_new_cppflags" ; then
 4252     test -n "$verbose" && echo "    add to \$CPPFLAGS $cf_new_cppflags" 1>&6
 4253 
 4254 echo "${as_me:-configure}:4254: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
 4255 
 4256     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 4257     CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
 4258 
 4259 fi
 4260 
 4261 if test -n "$cf_new_extra_cppflags" ; then
 4262     test -n "$verbose" && echo "    add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
 4263 
 4264 echo "${as_me:-configure}:4264: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
 4265 
 4266     test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
 4267     EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
 4268 
 4269 fi
 4270 
 4271 fi
 4272 
 4273 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
 4274     echo "$as_me:4274: checking if _XOPEN_SOURCE really is set" >&5
 4275 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
 4276     cat >conftest.$ac_ext <<_ACEOF
 4277 #line 4277 "configure"
 4278 #include "confdefs.h"
 4279 #include <stdlib.h>
 4280 int
 4281 main (void)
 4282 {
 4283 
 4284 #ifndef _XOPEN_SOURCE
 4285 make an error
 4286 #endif
 4287   ;
 4288   return 0;
 4289 }
 4290 _ACEOF
 4291 rm -f conftest.$ac_objext
 4292 if { (eval echo "$as_me:4292: \"$ac_compile\"") >&5
 4293   (eval $ac_compile) 2>&5
 4294   ac_status=$?
 4295   echo "$as_me:4295: \$? = $ac_status" >&5
 4296   (exit $ac_status); } &&
 4297          { ac_try='test -s conftest.$ac_objext'
 4298   { (eval echo "$as_me:4298: \"$ac_try\"") >&5
 4299   (eval $ac_try) 2>&5
 4300   ac_status=$?
 4301   echo "$as_me:4301: \$? = $ac_status" >&5
 4302   (exit $ac_status); }; }; then
 4303   cf_XOPEN_SOURCE_set=yes
 4304 else
 4305   echo "$as_me: failed program was:" >&5
 4306 cat conftest.$ac_ext >&5
 4307 cf_XOPEN_SOURCE_set=no
 4308 fi
 4309 rm -f conftest.$ac_objext conftest.$ac_ext
 4310     echo "$as_me:4310: result: $cf_XOPEN_SOURCE_set" >&5
 4311 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
 4312     if test $cf_XOPEN_SOURCE_set = yes
 4313     then
 4314         cat >conftest.$ac_ext <<_ACEOF
 4315 #line 4315 "configure"
 4316 #include "confdefs.h"
 4317 #include <stdlib.h>
 4318 int
 4319 main (void)
 4320 {
 4321 
 4322 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
 4323 make an error
 4324 #endif
 4325   ;
 4326   return 0;
 4327 }
 4328 _ACEOF
 4329 rm -f conftest.$ac_objext
 4330 if { (eval echo "$as_me:4330: \"$ac_compile\"") >&5
 4331   (eval $ac_compile) 2>&5
 4332   ac_status=$?
 4333   echo "$as_me:4333: \$? = $ac_status" >&5
 4334   (exit $ac_status); } &&
 4335          { ac_try='test -s conftest.$ac_objext'
 4336   { (eval echo "$as_me:4336: \"$ac_try\"") >&5
 4337   (eval $ac_try) 2>&5
 4338   ac_status=$?
 4339   echo "$as_me:4339: \$? = $ac_status" >&5
 4340   (exit $ac_status); }; }; then
 4341   cf_XOPEN_SOURCE_set_ok=yes
 4342 else
 4343   echo "$as_me: failed program was:" >&5
 4344 cat conftest.$ac_ext >&5
 4345 cf_XOPEN_SOURCE_set_ok=no
 4346 fi
 4347 rm -f conftest.$ac_objext conftest.$ac_ext
 4348         if test $cf_XOPEN_SOURCE_set_ok = no
 4349         then
 4350             { echo "$as_me:4350: WARNING: _XOPEN_SOURCE is lower than requested" >&5
 4351 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
 4352         fi
 4353     else
 4354 
 4355 echo "$as_me:4355: checking if we should define _XOPEN_SOURCE" >&5
 4356 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
 4357 if test "${cf_cv_xopen_source+set}" = set; then
 4358   echo $ECHO_N "(cached) $ECHO_C" >&6
 4359 else
 4360 
 4361     cat >conftest.$ac_ext <<_ACEOF
 4362 #line 4362 "configure"
 4363 #include "confdefs.h"
 4364 
 4365 #include <stdlib.h>
 4366 #include <string.h>
 4367 #include <sys/types.h>
 4368 
 4369 int
 4370 main (void)
 4371 {
 4372 
 4373 #ifndef _XOPEN_SOURCE
 4374 make an error
 4375 #endif
 4376   ;
 4377   return 0;
 4378 }
 4379 _ACEOF
 4380 rm -f conftest.$ac_objext
 4381 if { (eval echo "$as_me:4381: \"$ac_compile\"") >&5
 4382   (eval $ac_compile) 2>&5
 4383   ac_status=$?
 4384   echo "$as_me:4384: \$? = $ac_status" >&5
 4385   (exit $ac_status); } &&
 4386          { ac_try='test -s conftest.$ac_objext'
 4387   { (eval echo "$as_me:4387: \"$ac_try\"") >&5
 4388   (eval $ac_try) 2>&5
 4389   ac_status=$?
 4390   echo "$as_me:4390: \$? = $ac_status" >&5
 4391   (exit $ac_status); }; }; then
 4392   cf_cv_xopen_source=no
 4393 else
 4394   echo "$as_me: failed program was:" >&5
 4395 cat conftest.$ac_ext >&5
 4396 cf_save="$CPPFLAGS"
 4397 
 4398     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 4399     CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
 4400 
 4401      cat >conftest.$ac_ext <<_ACEOF
 4402 #line 4402 "configure"
 4403 #include "confdefs.h"
 4404 
 4405 #include <stdlib.h>
 4406 #include <string.h>
 4407 #include <sys/types.h>
 4408 
 4409 int
 4410 main (void)
 4411 {
 4412 
 4413 #ifdef _XOPEN_SOURCE
 4414 make an error
 4415 #endif
 4416   ;
 4417   return 0;
 4418 }
 4419 _ACEOF
 4420 rm -f conftest.$ac_objext
 4421 if { (eval echo "$as_me:4421: \"$ac_compile\"") >&5
 4422   (eval $ac_compile) 2>&5
 4423   ac_status=$?
 4424   echo "$as_me:4424: \$? = $ac_status" >&5
 4425   (exit $ac_status); } &&
 4426          { ac_try='test -s conftest.$ac_objext'
 4427   { (eval echo "$as_me:4427: \"$ac_try\"") >&5
 4428   (eval $ac_try) 2>&5
 4429   ac_status=$?
 4430   echo "$as_me:4430: \$? = $ac_status" >&5
 4431   (exit $ac_status); }; }; then
 4432   cf_cv_xopen_source=no
 4433 else
 4434   echo "$as_me: failed program was:" >&5
 4435 cat conftest.$ac_ext >&5
 4436 cf_cv_xopen_source=$cf_XOPEN_SOURCE
 4437 fi
 4438 rm -f conftest.$ac_objext conftest.$ac_ext
 4439     CPPFLAGS="$cf_save"
 4440 
 4441 fi
 4442 rm -f conftest.$ac_objext conftest.$ac_ext
 4443 
 4444 fi
 4445 echo "$as_me:4445: result: $cf_cv_xopen_source" >&5
 4446 echo "${ECHO_T}$cf_cv_xopen_source" >&6
 4447 
 4448 if test "$cf_cv_xopen_source" != no ; then
 4449 
 4450 CFLAGS=`echo "$CFLAGS" | \
 4451     sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?[     ]/ /g' \
 4452         -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?$//g'`
 4453 
 4454 CPPFLAGS=`echo "$CPPFLAGS" | \
 4455     sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?[     ]/ /g' \
 4456         -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?$//g'`
 4457 
 4458     cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
 4459 
 4460 cf_fix_cppflags=no
 4461 cf_new_cflags=
 4462 cf_new_cppflags=
 4463 cf_new_extra_cppflags=
 4464 
 4465 for cf_add_cflags in $cf_temp_xopen_source
 4466 do
 4467 case $cf_fix_cppflags in
 4468 (no)
 4469     case $cf_add_cflags in
 4470     (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
 4471         case $cf_add_cflags in
 4472         (-D*)
 4473             cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
 4474 
 4475             test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 4476                 && test -z "${cf_tst_cflags}" \
 4477                 && cf_fix_cppflags=yes
 4478 
 4479             if test $cf_fix_cppflags = yes ; then
 4480 
 4481     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 4482     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 4483 
 4484                 continue
 4485             elif test "${cf_tst_cflags}" = "\"'" ; then
 4486 
 4487     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 4488     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 4489 
 4490                 continue
 4491             fi
 4492             ;;
 4493         esac
 4494         case "$CPPFLAGS" in
 4495         (*$cf_add_cflags)
 4496             ;;
 4497         (*)
 4498             case $cf_add_cflags in
 4499             (-D*)
 4500                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
 4501 
 4502 CPPFLAGS=`echo "$CPPFLAGS" | \
 4503     sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[     ]/ /g' \
 4504         -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
 4505 
 4506                 ;;
 4507             esac
 4508 
 4509     test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
 4510     cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
 4511 
 4512             ;;
 4513         esac
 4514         ;;
 4515     (*)
 4516 
 4517     test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
 4518     cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
 4519 
 4520         ;;
 4521     esac
 4522     ;;
 4523 (yes)
 4524 
 4525     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 4526     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 4527 
 4528     cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
 4529 
 4530     test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 4531         && test -z "${cf_tst_cflags}" \
 4532         && cf_fix_cppflags=no
 4533     ;;
 4534 esac
 4535 done
 4536 
 4537 if test -n "$cf_new_cflags" ; then
 4538 
 4539     test -n "$CFLAGS" && CFLAGS="$CFLAGS "
 4540     CFLAGS="${CFLAGS}$cf_new_cflags"
 4541 
 4542 fi
 4543 
 4544 if test -n "$cf_new_cppflags" ; then
 4545 
 4546     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 4547     CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
 4548 
 4549 fi
 4550 
 4551 if test -n "$cf_new_extra_cppflags" ; then
 4552 
 4553     test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
 4554     EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
 4555 
 4556 fi
 4557 
 4558 fi
 4559 
 4560     fi
 4561 fi
 4562 
 4563 echo "$as_me:4563: checking if SIGWINCH is defined" >&5
 4564 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
 4565 if test "${cf_cv_define_sigwinch+set}" = set; then
 4566   echo $ECHO_N "(cached) $ECHO_C" >&6
 4567 else
 4568 
 4569     cat >conftest.$ac_ext <<_ACEOF
 4570 #line 4570 "configure"
 4571 #include "confdefs.h"
 4572 
 4573 #include <sys/types.h>
 4574 #include <sys/signal.h>
 4575 
 4576 int
 4577 main (void)
 4578 {
 4579 int x = SIGWINCH
 4580   ;
 4581   return 0;
 4582 }
 4583 _ACEOF
 4584 rm -f conftest.$ac_objext
 4585 if { (eval echo "$as_me:4585: \"$ac_compile\"") >&5
 4586   (eval $ac_compile) 2>&5
 4587   ac_status=$?
 4588   echo "$as_me:4588: \$? = $ac_status" >&5
 4589   (exit $ac_status); } &&
 4590          { ac_try='test -s conftest.$ac_objext'
 4591   { (eval echo "$as_me:4591: \"$ac_try\"") >&5
 4592   (eval $ac_try) 2>&5
 4593   ac_status=$?
 4594   echo "$as_me:4594: \$? = $ac_status" >&5
 4595   (exit $ac_status); }; }; then
 4596   cf_cv_define_sigwinch=yes
 4597 else
 4598   echo "$as_me: failed program was:" >&5
 4599 cat conftest.$ac_ext >&5
 4600 cat >conftest.$ac_ext <<_ACEOF
 4601 #line 4601 "configure"
 4602 #include "confdefs.h"
 4603 
 4604 #undef _XOPEN_SOURCE
 4605 #undef _POSIX_SOURCE
 4606 #undef _POSIX_C_SOURCE
 4607 #include <sys/types.h>
 4608 #include <sys/signal.h>
 4609 
 4610 int
 4611 main (void)
 4612 {
 4613 int x = SIGWINCH
 4614   ;
 4615   return 0;
 4616 }
 4617 _ACEOF
 4618 rm -f conftest.$ac_objext
 4619 if { (eval echo "$as_me:4619: \"$ac_compile\"") >&5
 4620   (eval $ac_compile) 2>&5
 4621   ac_status=$?
 4622   echo "$as_me:4622: \$? = $ac_status" >&5
 4623   (exit $ac_status); } &&
 4624          { ac_try='test -s conftest.$ac_objext'
 4625   { (eval echo "$as_me:4625: \"$ac_try\"") >&5
 4626   (eval $ac_try) 2>&5
 4627   ac_status=$?
 4628   echo "$as_me:4628: \$? = $ac_status" >&5
 4629   (exit $ac_status); }; }; then
 4630   cf_cv_define_sigwinch=maybe
 4631 else
 4632   echo "$as_me: failed program was:" >&5
 4633 cat conftest.$ac_ext >&5
 4634 cf_cv_define_sigwinch=no
 4635 fi
 4636 rm -f conftest.$ac_objext conftest.$ac_ext
 4637 
 4638 fi
 4639 rm -f conftest.$ac_objext conftest.$ac_ext
 4640 
 4641 fi
 4642 echo "$as_me:4642: result: $cf_cv_define_sigwinch" >&5
 4643 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
 4644 
 4645 if test "$cf_cv_define_sigwinch" = maybe ; then
 4646 echo "$as_me:4646: checking for actual SIGWINCH definition" >&5
 4647 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
 4648 if test "${cf_cv_fixup_sigwinch+set}" = set; then
 4649   echo $ECHO_N "(cached) $ECHO_C" >&6
 4650 else
 4651 
 4652 cf_cv_fixup_sigwinch=unknown
 4653 cf_sigwinch=32
 4654 while test $cf_sigwinch != 1
 4655 do
 4656     cat >conftest.$ac_ext <<_ACEOF
 4657 #line 4657 "configure"
 4658 #include "confdefs.h"
 4659 
 4660 #undef _XOPEN_SOURCE
 4661 #undef _POSIX_SOURCE
 4662 #undef _POSIX_C_SOURCE
 4663 #include <sys/types.h>
 4664 #include <sys/signal.h>
 4665 
 4666 int
 4667 main (void)
 4668 {
 4669 
 4670 #if SIGWINCH != $cf_sigwinch
 4671 make an error
 4672 #endif
 4673 int x = SIGWINCH
 4674   ;
 4675   return 0;
 4676 }
 4677 _ACEOF
 4678 rm -f conftest.$ac_objext
 4679 if { (eval echo "$as_me:4679: \"$ac_compile\"") >&5
 4680   (eval $ac_compile) 2>&5
 4681   ac_status=$?
 4682   echo "$as_me:4682: \$? = $ac_status" >&5
 4683   (exit $ac_status); } &&
 4684          { ac_try='test -s conftest.$ac_objext'
 4685   { (eval echo "$as_me:4685: \"$ac_try\"") >&5
 4686   (eval $ac_try) 2>&5
 4687   ac_status=$?
 4688   echo "$as_me:4688: \$? = $ac_status" >&5
 4689   (exit $ac_status); }; }; then
 4690   cf_cv_fixup_sigwinch=$cf_sigwinch
 4691      break
 4692 else
 4693   echo "$as_me: failed program was:" >&5
 4694 cat conftest.$ac_ext >&5
 4695 fi
 4696 rm -f conftest.$ac_objext conftest.$ac_ext
 4697 
 4698 cf_sigwinch=`expr $cf_sigwinch - 1`
 4699 done
 4700 
 4701 fi
 4702 echo "$as_me:4702: result: $cf_cv_fixup_sigwinch" >&5
 4703 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
 4704 
 4705     if test "$cf_cv_fixup_sigwinch" != unknown ; then
 4706         CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
 4707     fi
 4708 fi
 4709 
 4710 case $cf_cv_system_name in
 4711 (os2*)
 4712     CFLAGS="$CFLAGS -Zmt"
 4713 
 4714     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 4715     CPPFLAGS="${CPPFLAGS}-D__ST_MT_ERRNO__"
 4716 
 4717     CXXFLAGS="$CXXFLAGS -Zmt"
 4718     # autoconf's macro sets -Zexe and suffix both, which conflict:w
 4719     LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
 4720     ac_cv_exeext=.exe
 4721     ;;
 4722 esac
 4723 
 4724 PROG_EXT="$EXEEXT"
 4725 
 4726 test -n "$PROG_EXT" &&
 4727 cat >>confdefs.h <<EOF
 4728 #define PROG_EXT "$PROG_EXT"
 4729 EOF
 4730 
 4731     case $cf_cv_system_name in
 4732     (OS/2*|os2*)
 4733         if test "$DFT_LWR_MODEL" = libtool; then
 4734             LIB_PREFIX='lib'
 4735         else
 4736             LIB_PREFIX=''
 4737         fi
 4738         ;;
 4739     (*) LIB_PREFIX='lib'
 4740         ;;
 4741     esac
 4742 LIB_PREFIX=$LIB_PREFIX
 4743 
 4744 echo "$as_me:4744: checking whether ln -s works" >&5
 4745 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 4746 LN_S=$as_ln_s
 4747 if test "$LN_S" = "ln -s"; then
 4748   echo "$as_me:4748: result: yes" >&5
 4749 echo "${ECHO_T}yes" >&6
 4750 else
 4751   echo "$as_me:4751: result: no, using $LN_S" >&5
 4752 echo "${ECHO_T}no, using $LN_S" >&6
 4753 fi
 4754 
 4755 if test "$cross_compiling" = yes ; then
 4756 
 4757     # defaults that we might want to override
 4758     : ${BUILD_CFLAGS:=''}
 4759     : ${BUILD_CPPFLAGS:='-I$(INCDIR)'}
 4760     : ${BUILD_LDFLAGS:=''}
 4761     : ${BUILD_LIBS:=''}
 4762     : ${BUILD_EXEEXT:='$x'}
 4763     : ${BUILD_OBJEXT:='o'}
 4764 
 4765 # Check whether --with-build-cc or --without-build-cc was given.
 4766 if test "${with_build_cc+set}" = set; then
 4767   withval="$with_build_cc"
 4768   BUILD_CC="$withval"
 4769 else
 4770   for ac_prog in gcc clang c99 c89 cc cl
 4771 do
 4772   # Extract the first word of "$ac_prog", so it can be a program name with args.
 4773 set dummy $ac_prog; ac_word=$2
 4774 echo "$as_me:4774: checking for $ac_word" >&5
 4775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 4776 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
 4777   echo $ECHO_N "(cached) $ECHO_C" >&6
 4778 else
 4779   if test -n "$BUILD_CC"; then
 4780   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
 4781 else
 4782   ac_save_IFS=$IFS; IFS=$ac_path_separator
 4783 ac_dummy="$PATH"
 4784 for ac_dir in $ac_dummy; do
 4785   IFS=$ac_save_IFS
 4786   test -z "$ac_dir" && ac_dir=.
 4787   $as_executable_p "$ac_dir/$ac_word" || continue
 4788 ac_cv_prog_BUILD_CC="$ac_prog"
 4789 echo "$as_me:4789: found $ac_dir/$ac_word" >&5
 4790 break
 4791 done
 4792 
 4793 fi
 4794 fi
 4795 BUILD_CC=$ac_cv_prog_BUILD_CC
 4796 if test -n "$BUILD_CC"; then
 4797   echo "$as_me:4797: result: $BUILD_CC" >&5
 4798 echo "${ECHO_T}$BUILD_CC" >&6
 4799 else
 4800   echo "$as_me:4800: result: no" >&5
 4801 echo "${ECHO_T}no" >&6
 4802 fi
 4803 
 4804   test -n "$BUILD_CC" && break
 4805 done
 4806 test -n "$BUILD_CC" || BUILD_CC="none"
 4807 
 4808 fi;
 4809     echo "$as_me:4809: checking for native build C compiler" >&5
 4810 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
 4811     echo "$as_me:4811: result: $BUILD_CC" >&5
 4812 echo "${ECHO_T}$BUILD_CC" >&6
 4813 
 4814     echo "$as_me:4814: checking for native build C preprocessor" >&5
 4815 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
 4816 
 4817 # Check whether --with-build-cpp or --without-build-cpp was given.
 4818 if test "${with_build_cpp+set}" = set; then
 4819   withval="$with_build_cpp"
 4820   BUILD_CPP="$withval"
 4821 else
 4822   BUILD_CPP='${BUILD_CC} -E'
 4823 fi;
 4824     echo "$as_me:4824: result: $BUILD_CPP" >&5
 4825 echo "${ECHO_T}$BUILD_CPP" >&6
 4826 
 4827     echo "$as_me:4827: checking for native build C flags" >&5
 4828 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
 4829 
 4830 # Check whether --with-build-cflags or --without-build-cflags was given.
 4831 if test "${with_build_cflags+set}" = set; then
 4832   withval="$with_build_cflags"
 4833   BUILD_CFLAGS="$withval"
 4834 fi;
 4835     echo "$as_me:4835: result: $BUILD_CFLAGS" >&5
 4836 echo "${ECHO_T}$BUILD_CFLAGS" >&6
 4837 
 4838     echo "$as_me:4838: checking for native build C preprocessor-flags" >&5
 4839 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
 4840 
 4841 # Check whether --with-build-cppflags or --without-build-cppflags was given.
 4842 if test "${with_build_cppflags+set}" = set; then
 4843   withval="$with_build_cppflags"
 4844   BUILD_CPPFLAGS="$withval"
 4845 fi;
 4846     echo "$as_me:4846: result: $BUILD_CPPFLAGS" >&5
 4847 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
 4848 
 4849     echo "$as_me:4849: checking for native build linker-flags" >&5
 4850 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
 4851 
 4852 # Check whether --with-build-ldflags or --without-build-ldflags was given.
 4853 if test "${with_build_ldflags+set}" = set; then
 4854   withval="$with_build_ldflags"
 4855   BUILD_LDFLAGS="$withval"
 4856 fi;
 4857     echo "$as_me:4857: result: $BUILD_LDFLAGS" >&5
 4858 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
 4859 
 4860     echo "$as_me:4860: checking for native build linker-libraries" >&5
 4861 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
 4862 
 4863 # Check whether --with-build-libs or --without-build-libs was given.
 4864 if test "${with_build_libs+set}" = set; then
 4865   withval="$with_build_libs"
 4866   BUILD_LIBS="$withval"
 4867 fi;
 4868     echo "$as_me:4868: result: $BUILD_LIBS" >&5
 4869 echo "${ECHO_T}$BUILD_LIBS" >&6
 4870 
 4871     # this assumes we're on Unix.
 4872     BUILD_EXEEXT=
 4873     BUILD_OBJEXT=o
 4874 
 4875     : ${BUILD_CC:='${CC}'}
 4876 
 4877     if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
 4878         { { echo "$as_me:4878: error: Cross-build requires two compilers.
 4879 Use --with-build-cc to specify the native compiler." >&5
 4880 echo "$as_me: error: Cross-build requires two compilers.
 4881 Use --with-build-cc to specify the native compiler." >&2;}
 4882    { (exit 1); exit 1; }; }
 4883     fi
 4884 
 4885 else
 4886     : ${BUILD_CC:='${CC}'}
 4887     : ${BUILD_CPP:='${CPP}'}
 4888     : ${BUILD_CFLAGS:='${CFLAGS}'}
 4889     : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
 4890     : ${BUILD_LDFLAGS:='${LDFLAGS}'}
 4891     : ${BUILD_LIBS:='${LIBS}'}
 4892     : ${BUILD_EXEEXT:='$x'}
 4893     : ${BUILD_OBJEXT:='o'}
 4894 fi
 4895 
 4896 if test -n "$ac_tool_prefix"; then
 4897   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 4898 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 4899 echo "$as_me:4899: checking for $ac_word" >&5
 4900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 4901 if test "${ac_cv_prog_RANLIB+set}" = set; then
 4902   echo $ECHO_N "(cached) $ECHO_C" >&6
 4903 else
 4904   if test -n "$RANLIB"; then
 4905   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 4906 else
 4907   ac_save_IFS=$IFS; IFS=$ac_path_separator
 4908 ac_dummy="$PATH"
 4909 for ac_dir in $ac_dummy; do
 4910   IFS=$ac_save_IFS
 4911   test -z "$ac_dir" && ac_dir=.
 4912   $as_executable_p "$ac_dir/$ac_word" || continue
 4913 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 4914 echo "$as_me:4914: found $ac_dir/$ac_word" >&5
 4915 break
 4916 done
 4917 
 4918 fi
 4919 fi
 4920 RANLIB=$ac_cv_prog_RANLIB
 4921 if test -n "$RANLIB"; then
 4922   echo "$as_me:4922: result: $RANLIB" >&5
 4923 echo "${ECHO_T}$RANLIB" >&6
 4924 else
 4925   echo "$as_me:4925: result: no" >&5
 4926 echo "${ECHO_T}no" >&6
 4927 fi
 4928 
 4929 fi
 4930 if test -z "$ac_cv_prog_RANLIB"; then
 4931   ac_ct_RANLIB=$RANLIB
 4932   # Extract the first word of "ranlib", so it can be a program name with args.
 4933 set dummy ranlib; ac_word=$2
 4934 echo "$as_me:4934: checking for $ac_word" >&5
 4935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 4936 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 4937   echo $ECHO_N "(cached) $ECHO_C" >&6
 4938 else
 4939   if test -n "$ac_ct_RANLIB"; then
 4940   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 4941 else
 4942   ac_save_IFS=$IFS; IFS=$ac_path_separator
 4943 ac_dummy="$PATH"
 4944 for ac_dir in $ac_dummy; do
 4945   IFS=$ac_save_IFS
 4946   test -z "$ac_dir" && ac_dir=.
 4947   $as_executable_p "$ac_dir/$ac_word" || continue
 4948 ac_cv_prog_ac_ct_RANLIB="ranlib"
 4949 echo "$as_me:4949: found $ac_dir/$ac_word" >&5
 4950 break
 4951 done
 4952 
 4953   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
 4954 fi
 4955 fi
 4956 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 4957 if test -n "$ac_ct_RANLIB"; then
 4958   echo "$as_me:4958: result: $ac_ct_RANLIB" >&5
 4959 echo "${ECHO_T}$ac_ct_RANLIB" >&6
 4960 else
 4961   echo "$as_me:4961: result: no" >&5
 4962 echo "${ECHO_T}no" >&6
 4963 fi
 4964 
 4965   RANLIB=$ac_ct_RANLIB
 4966 else
 4967   RANLIB="$ac_cv_prog_RANLIB"
 4968 fi
 4969 
 4970 if test -n "$ac_tool_prefix"; then
 4971   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
 4972 set dummy ${ac_tool_prefix}ld; ac_word=$2
 4973 echo "$as_me:4973: checking for $ac_word" >&5
 4974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 4975 if test "${ac_cv_prog_LD+set}" = set; then
 4976   echo $ECHO_N "(cached) $ECHO_C" >&6
 4977 else
 4978   if test -n "$LD"; then
 4979   ac_cv_prog_LD="$LD" # Let the user override the test.
 4980 else
 4981   ac_save_IFS=$IFS; IFS=$ac_path_separator
 4982 ac_dummy="$PATH"
 4983 for ac_dir in $ac_dummy; do
 4984   IFS=$ac_save_IFS
 4985   test -z "$ac_dir" && ac_dir=.
 4986   $as_executable_p "$ac_dir/$ac_word" || continue
 4987 ac_cv_prog_LD="${ac_tool_prefix}ld"
 4988 echo "$as_me:4988: found $ac_dir/$ac_word" >&5
 4989 break
 4990 done
 4991 
 4992 fi
 4993 fi
 4994 LD=$ac_cv_prog_LD
 4995 if test -n "$LD"; then
 4996   echo "$as_me:4996: result: $LD" >&5
 4997 echo "${ECHO_T}$LD" >&6
 4998 else
 4999   echo "$as_me:4999: result: no" >&5
 5000 echo "${ECHO_T}no" >&6
 5001 fi
 5002 
 5003 fi
 5004 if test -z "$ac_cv_prog_LD"; then
 5005   ac_ct_LD=$LD
 5006   # Extract the first word of "ld", so it can be a program name with args.
 5007 set dummy ld; ac_word=$2
 5008 echo "$as_me:5008: checking for $ac_word" >&5
 5009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 5010 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
 5011   echo $ECHO_N "(cached) $ECHO_C" >&6
 5012 else
 5013   if test -n "$ac_ct_LD"; then
 5014   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
 5015 else
 5016   ac_save_IFS=$IFS; IFS=$ac_path_separator
 5017 ac_dummy="$PATH"
 5018 for ac_dir in $ac_dummy; do
 5019   IFS=$ac_save_IFS
 5020   test -z "$ac_dir" && ac_dir=.
 5021   $as_executable_p "$ac_dir/$ac_word" || continue
 5022 ac_cv_prog_ac_ct_LD="ld"
 5023 echo "$as_me:5023: found $ac_dir/$ac_word" >&5
 5024 break
 5025 done
 5026 
 5027   test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
 5028 fi
 5029 fi
 5030 ac_ct_LD=$ac_cv_prog_ac_ct_LD
 5031 if test -n "$ac_ct_LD"; then
 5032   echo "$as_me:5032: result: $ac_ct_LD" >&5
 5033 echo "${ECHO_T}$ac_ct_LD" >&6
 5034 else
 5035   echo "$as_me:5035: result: no" >&5
 5036 echo "${ECHO_T}no" >&6
 5037 fi
 5038 
 5039   LD=$ac_ct_LD
 5040 else
 5041   LD="$ac_cv_prog_LD"
 5042 fi
 5043 
 5044 if test -n "$ac_tool_prefix"; then
 5045   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 5046 set dummy ${ac_tool_prefix}ar; ac_word=$2
 5047 echo "$as_me:5047: checking for $ac_word" >&5
 5048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 5049 if test "${ac_cv_prog_AR+set}" = set; then
 5050   echo $ECHO_N "(cached) $ECHO_C" >&6
 5051 else
 5052   if test -n "$AR"; then
 5053   ac_cv_prog_AR="$AR" # Let the user override the test.
 5054 else
 5055   ac_save_IFS=$IFS; IFS=$ac_path_separator
 5056 ac_dummy="$PATH"
 5057 for ac_dir in $ac_dummy; do
 5058   IFS=$ac_save_IFS
 5059   test -z "$ac_dir" && ac_dir=.
 5060   $as_executable_p "$ac_dir/$ac_word" || continue
 5061 ac_cv_prog_AR="${ac_tool_prefix}ar"
 5062 echo "$as_me:5062: found $ac_dir/$ac_word" >&5
 5063 break
 5064 done
 5065 
 5066 fi
 5067 fi
 5068 AR=$ac_cv_prog_AR
 5069 if test -n "$AR"; then
 5070   echo "$as_me:5070: result: $AR" >&5
 5071 echo "${ECHO_T}$AR" >&6
 5072 else
 5073   echo "$as_me:5073: result: no" >&5
 5074 echo "${ECHO_T}no" >&6
 5075 fi
 5076 
 5077 fi
 5078 if test -z "$ac_cv_prog_AR"; then
 5079   ac_ct_AR=$AR
 5080   # Extract the first word of "ar", so it can be a program name with args.
 5081 set dummy ar; ac_word=$2
 5082 echo "$as_me:5082: checking for $ac_word" >&5
 5083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 5084 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 5085   echo $ECHO_N "(cached) $ECHO_C" >&6
 5086 else
 5087   if test -n "$ac_ct_AR"; then
 5088   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 5089 else
 5090   ac_save_IFS=$IFS; IFS=$ac_path_separator
 5091 ac_dummy="$PATH"
 5092 for ac_dir in $ac_dummy; do
 5093   IFS=$ac_save_IFS
 5094   test -z "$ac_dir" && ac_dir=.
 5095   $as_executable_p "$ac_dir/$ac_word" || continue
 5096 ac_cv_prog_ac_ct_AR="ar"
 5097 echo "$as_me:5097: found $ac_dir/$ac_word" >&5
 5098 break
 5099 done
 5100 
 5101   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
 5102 fi
 5103 fi
 5104 ac_ct_AR=$ac_cv_prog_ac_ct_AR
 5105 if test -n "$ac_ct_AR"; then
 5106   echo "$as_me:5106: result: $ac_ct_AR" >&5
 5107 echo "${ECHO_T}$ac_ct_AR" >&6
 5108 else
 5109   echo "$as_me:5109: result: no" >&5
 5110 echo "${ECHO_T}no" >&6
 5111 fi
 5112 
 5113   AR=$ac_ct_AR
 5114 else
 5115   AR="$ac_cv_prog_AR"
 5116 fi
 5117 
 5118 echo "$as_me:5118: checking for options to update archives" >&5
 5119 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
 5120 if test "${cf_cv_ar_flags+set}" = set; then
 5121   echo $ECHO_N "(cached) $ECHO_C" >&6
 5122 else
 5123 
 5124     cf_cv_ar_flags=unknown
 5125     for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
 5126     do
 5127 
 5128         # check if $ARFLAGS already contains this choice
 5129         if test "x$ARFLAGS" != "x" ; then
 5130             cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
 5131             if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
 5132                 cf_cv_ar_flags=
 5133                 break
 5134             fi
 5135         fi
 5136 
 5137         rm -f conftest.$ac_cv_objext
 5138         rm -f conftest.a
 5139 
 5140         cat >conftest.$ac_ext <<EOF
 5141 #line 5141 "configure"
 5142 int testdata[3] = { 123, 456, 789 };
 5143 EOF
 5144         if { (eval echo "$as_me:5144: \"$ac_compile\"") >&5
 5145   (eval $ac_compile) 2>&5
 5146   ac_status=$?
 5147   echo "$as_me:5147: \$? = $ac_status" >&5
 5148   (exit $ac_status); } ; then
 5149             echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
 5150             $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
 5151             if test -f conftest.a ; then
 5152                 cf_cv_ar_flags=$cf_ar_flags
 5153                 break
 5154             fi
 5155         else
 5156             test -n "$verbose" && echo "    cannot compile test-program" 1>&6
 5157 
 5158 echo "${as_me:-configure}:5158: testing cannot compile test-program ..." 1>&5
 5159 
 5160             break
 5161         fi
 5162     done
 5163     rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
 5164 
 5165 fi
 5166 echo "$as_me:5166: result: $cf_cv_ar_flags" >&5
 5167 echo "${ECHO_T}$cf_cv_ar_flags" >&6
 5168 
 5169 if test -n "$ARFLAGS" ; then
 5170     if test -n "$cf_cv_ar_flags" ; then
 5171         ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
 5172     fi
 5173 else
 5174     ARFLAGS=$cf_cv_ar_flags
 5175 fi
 5176 
 5177 case "$host_cpu:$host_vendor:$host_os" in
 5178     # check for cygwin environment
 5179     # -DSTATIC is needed for pcre
 5180     *:*:*cygwin*)   #(vi
 5181         PCRE_DEFINES="$PCRE_DEFINES -DSTATIC"
 5182         ;;
 5183     # SEIUX doesn't have any useful preprocessor symbol
 5184     mips:sei:seiux*)    #(vi
 5185         cat >>confdefs.h <<\EOF
 5186 #define SEIUX 1
 5187 EOF
 5188 
 5189         ;;
 5190 esac
 5191 
 5192 echo "$as_me:5192: checking if you would like to use heapsort" >&5
 5193 echo $ECHO_N "checking if you would like to use heapsort... $ECHO_C" >&6
 5194 
 5195 # Check whether --enable-heapsort or --disable-heapsort was given.
 5196 if test "${enable_heapsort+set}" = set; then
 5197   enableval="$enable_heapsort"
 5198   test "$enableval" != no && enableval=yes
 5199     if test "$enableval" !=