"Fossies" - the Fresh Open Source Software Archive

Member "xterm-368/configure" (7 Jun 2021, 676932 Bytes) of package /linux/misc/xterm-368.tgz:


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 and code folding option. 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": 367_vs_368.

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