"Fossies" - the Fresh Open Source Software Archive

Member "xterm-379/configure" (12 Feb 2023, 692335 Bytes) of package /linux/misc/xterm-379.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": 377_vs_379.

    1 #! /bin/sh
    2 # Guess values for system-dependent variables and create Makefiles.
    3 # Generated by Autoconf 2.52.20230114.
    4 #
    5 # Copyright 2003-2022,2023  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   --disable-exec-selection disable "exec-formatted" and "exec-selection" actions
  768   --enable-exec-xterm     enable "spawn-new-terminal" action
  769   --enable-double-buffer  enable double-buffering in default resources
  770   --disable-freetype      disable freetype library-support
  771   --with-freetype-config  configure script to use for FreeType
  772   --with-freetype-cflags  -D/-I options for compiling with FreeType
  773   --with-freetype-libs    -L/-l options to link FreeType
  774   --enable-hp-fkeys       enable support for HP-style function keys
  775   --enable-sco-fkeys      enable support for SCO-style function keys
  776   --disable-sun-fkeys     disable support for Sun-style function keys
  777   --disable-fifo-lines    disable FIFO-storage for saved-lines
  778   --disable-i18n          disable internationalization
  779   --disable-initial-erase disable setup for stty erase
  780   --disable-input-method  disable input-method
  781   --enable-load-vt-fonts  enable load-vt-fonts() action
  782   --enable-logging        enable logging
  783   --enable-logfile-exec   enable exec'd logfile filter
  784   --disable-maximize      disable actions for iconify/deiconify/maximize/restore
  785   --disable-num-lock      disable NumLock keypad support
  786   --disable-paste64       disable get/set base64 selection data
  787   --disable-pty-handshake disable pty-handshake support
  788   --disable-readline-mouse disable support for mouse in readline applications
  789   --disable-regex         disable regular-expression selections
  790   --with-pcre2            use PCRE2 for regular-expressions
  791   --with-pcre             use PCRE for regular-expressions
  792   --disable-rightbar      disable right-scrollbar support
  793   --disable-samename      disable check for redundant name-change
  794   --disable-selection-ops disable selection-action operations
  795   --disable-session-mgt   disable support for session management
  796   --enable-status-line    enable support for status-line
  797   --disable-tcap-fkeys    disable termcap function-keys support
  798   --disable-tcap-query    disable compiled-in termcap-query support
  799   --disable-tek4014       disable tek4014 emulation
  800   --enable-toolbar        compile-in toolbar for pulldown menus
  801   --disable-vt52          disable VT52 emulation
  802   --disable-wide-attrs    disable wide-attribute support
  803   --disable-wide-chars    disable wide-character support
  804   --enable-16bit-chars    enable 16-bit character support
  805   --enable-mini-luit      enable mini-luit (built-in Latin9 support)
  806   --disable-luit          enable luit filter (Unicode translation)
  807   --enable-dabbrev        enable dynamic-abbreviation support
  808   --enable-dec-locator    enable DECterm Locator support
  809   --disable-screen-dumps  disable XHTML and SVG screen dumps
  810   --enable-regis-graphics enable ReGIS graphics support
  811   --disable-sixel-graphics disable sixel graphics support
  812   --disable-print-graphics disable screen dump to sixel support
  813   --disable-rectangles    disable VT420 rectangle support
  814   --disable-ziconbeep     disable -ziconbeep option
  815 Testing/development Options:
  816   --enable-trace          test: set to enable debugging traces
  817   --with-dmalloc          test: use Gray Watson's dmalloc library
  818   --with-dbmalloc         test: use Conor Cahill's dbmalloc library
  819   --with-valgrind         test: use valgrind
  820   --disable-leaks         test: free permanent memory, analyze leaks
  821   --disable-echo          do not display "compiling" commands
  822   --enable-xmc-glitch     test: enable xmc magic-cookie emulation
  823   --enable-warnings       test: turn on gcc compiler warnings
  824   --enable-stdnoreturn    enable C11 _Noreturn feature for diagnostics
  825   --disable-rpath-hack    don't add rpath options for additional libraries
  826 
  827 Some influential environment variables:
  828   CC          C compiler command
  829   CFLAGS      C compiler flags
  830   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  831               nonstandard directory <lib dir>
  832   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
  833               headers in a nonstandard directory <include dir>
  834   CPP         C preprocessor
  835 
  836 Use these variables to override the choices made by `configure' or to help
  837 it to find libraries and programs with nonstandard names/locations.
  838 
  839 EOF
  840 fi
  841 
  842 if test "$ac_init_help" = "recursive"; then
  843   # If there are subdirs, report their specific --help.
  844   ac_popdir=`pwd`
  845   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
  846     cd "$ac_subdir"
  847     # A "../" for each directory in /$ac_subdir.
  848     ac_dots=`echo "$ac_subdir" |
  849              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
  850 
  851     case "$srcdir" in
  852     .) # No --srcdir option.  We are building in place.
  853       ac_sub_srcdir="$srcdir" ;;
  854     [\\/]* | ?:[\\/]* ) # Absolute path.
  855       ac_sub_srcdir="$srcdir/$ac_subdir" ;;
  856     *) # Relative path.
  857       ac_sub_srcdir="$ac_dots$srcdir/$ac_subdir" ;;
  858     esac
  859 
  860     # Check for guested configure; otherwise get Cygnus style configure.
  861     if test -f "$ac_sub_srcdir/configure.gnu"; then
  862       echo
  863       $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive
  864     elif test -f "$ac_sub_srcdir/configure"; then
  865       echo
  866       $SHELL "$ac_sub_srcdir/configure" --help=recursive
  867     elif test -f "$ac_sub_srcdir/configure.ac" ||
  868            test -f "$ac_sub_srcdir/configure.in"; then
  869       echo
  870       "$ac_configure" --help
  871     else
  872       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
  873     fi
  874     cd "$ac_popdir"
  875   done
  876 fi
  877 
  878 test -n "$ac_init_help" && exit 0
  879 if "$ac_init_version"; then
  880   cat <<\EOF
  881 
  882 Copyright 2003-2022,2023    Thomas E. Dickey
  883 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  884 Free Software Foundation, Inc.
  885 This configure script is free software; the Free Software Foundation
  886 gives unlimited permission to copy, distribute and modify it.
  887 EOF
  888   exit 0
  889 fi
  890 exec 5>config.log
  891 cat >&5 <<EOF
  892 This file contains any messages produced by compilers while
  893 running configure, to aid debugging if configure makes a mistake.
  894 
  895 It was created by $as_me, which was
  896 generated by GNU Autoconf 2.52.20230114.  Invocation command line was
  897 
  898   $ $0 $@
  899 
  900 EOF
  901 {
  902 cat <<_ASUNAME
  903 ## ---------- ##
  904 ## Platform.  ##
  905 ## ---------- ##
  906 
  907 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  908 uname -m = `(uname -m) 2>/dev/null || echo unknown`
  909 uname -r = `(uname -r) 2>/dev/null || echo unknown`
  910 uname -s = `(uname -s) 2>/dev/null || echo unknown`
  911 uname -v = `(uname -v) 2>/dev/null || echo unknown`
  912 
  913 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  914 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  915 
  916 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  917 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  918 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  919 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
  920 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  921 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  922 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  923 
  924 PATH = $PATH
  925 
  926 _ASUNAME
  927 } >&5
  928 
  929 cat >&5 <<EOF
  930 ## ------------ ##
  931 ## Core tests.  ##
  932 ## ------------ ##
  933 
  934 EOF
  935 
  936 # Keep a trace of the command line.
  937 # Strip out --no-create and --no-recursion so they do not pile up.
  938 # Also quote any args containing shell meta-characters.
  939 ac_configure_args=
  940 ac_sep=
  941 for ac_arg
  942 do
  943   case "$ac_arg" in
  944   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  945   | --no-cr | --no-c) ;;
  946   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  947   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  948   *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  949     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
  950     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  951     ac_sep=" " ;;
  952   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
  953      ac_sep=" " ;;
  954   esac
  955   # Get rid of the leading space.
  956 done
  957 
  958 # When interrupted or exit'd, cleanup temporary files, and complete
  959 # config.log.  We remove comments because anyway the quotes in there
  960 # would cause problems or look ugly.
  961 trap 'exit_status=$?
  962   # Save into config.log some information that might help in debugging.
  963   echo >&5
  964   echo "## ----------------- ##" >&5
  965   echo "## Cache variables.  ##" >&5
  966   echo "## ----------------- ##" >&5
  967   echo >&5
  968   # The following way of writing the cache mishandles newlines in values,
  969 {
  970   (set) 2>&1 |
  971     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  972     *ac_space=\ *)
  973       sed -n \
  974         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  975           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  976       ;;
  977     *)
  978       sed -n \
  979         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  980       ;;
  981     esac;
  982 } >&5
  983   sed "/^$/d" confdefs.h >conftest.log
  984   if test -s conftest.log; then
  985     echo >&5
  986     echo "## ------------ ##" >&5
  987     echo "## confdefs.h.  ##" >&5
  988     echo "## ------------ ##" >&5
  989     echo >&5
  990     cat conftest.log >&5
  991   fi
  992   (echo; echo) >&5
  993   test "$ac_signal" != 0 &&
  994     echo "$as_me: caught signal $ac_signal" >&5
  995   echo "$as_me: exit $exit_status" >&5
  996   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
  997     exit $exit_status
  998      ' 0
  999 for ac_signal in 1 2 13 15; do
 1000   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' "$ac_signal"
 1001 done
 1002 ac_signal=0
 1003 
 1004 # confdefs.h avoids OS command line length limits that DEFS can exceed.
 1005 rm -rf conftest* confdefs.h
 1006 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
 1007 echo >confdefs.h
 1008 
 1009 # Let the site file select an alternate cache file if it wants to.
 1010 # Prefer explicitly selected file to automatically selected ones.
 1011 if test -z "$CONFIG_SITE"; then
 1012   if test "x$prefix" != xNONE; then
 1013     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 1014   else
 1015     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 1016   fi
 1017 fi
 1018 for ac_site_file in $CONFIG_SITE; do
 1019   if test -r "$ac_site_file"; then
 1020     { echo "$as_me:1020: loading site script $ac_site_file" >&5
 1021 echo "$as_me: loading site script $ac_site_file" >&6;}
 1022     cat "$ac_site_file" >&5
 1023     . "$ac_site_file"
 1024   fi
 1025 done
 1026 
 1027 if test -r "$cache_file"; then
 1028   # Some versions of bash will fail to source /dev/null (special
 1029   # files actually), so we avoid doing that.
 1030   if test -f "$cache_file"; then
 1031     { echo "$as_me:1031: loading cache $cache_file" >&5
 1032 echo "$as_me: loading cache $cache_file" >&6;}
 1033     case $cache_file in
 1034       [\\/]* | ?:[\\/]* ) . $cache_file;;
 1035       *)                      . ./$cache_file;;
 1036     esac
 1037   fi
 1038 else
 1039   { echo "$as_me:1039: creating cache $cache_file" >&5
 1040 echo "$as_me: creating cache $cache_file" >&6;}
 1041   >$cache_file
 1042 fi
 1043 
 1044 # Check that the precious variables saved in the cache have kept the same
 1045 # value.
 1046 ac_cache_corrupted=false
 1047 for ac_var in `(set) 2>&1 |
 1048                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 1049   eval ac_old_set=\$ac_cv_env_${ac_var}_set
 1050   eval ac_new_set=\$ac_env_${ac_var}_set
 1051   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 1052   eval ac_new_val="\$ac_env_${ac_var}_value"
 1053   case "$ac_old_set,$ac_new_set" in
 1054     set,)
 1055       { echo "$as_me:1055: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 1056 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 1057       ac_cache_corrupted=: ;;
 1058     ,set)
 1059       { echo "$as_me:1059: error: \`$ac_var' was not set in the previous run" >&5
 1060 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 1061       ac_cache_corrupted=: ;;
 1062     ,);;
 1063     *)
 1064       if test "x$ac_old_val" != "x$ac_new_val"; then
 1065         { echo "$as_me:1065: error: \`$ac_var' has changed since the previous run:" >&5
 1066 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 1067         { echo "$as_me:1067:   former value:  $ac_old_val" >&5
 1068 echo "$as_me:   former value:  $ac_old_val" >&2;}
 1069         { echo "$as_me:1069:   current value: $ac_new_val" >&5
 1070 echo "$as_me:   current value: $ac_new_val" >&2;}
 1071         ac_cache_corrupted=:
 1072       fi;;
 1073   esac
 1074   # Pass precious variables to config.status.  It doesn't matter if
 1075   # we pass some twice (in addition to the command line arguments).
 1076   if test "$ac_new_set" = set; then
 1077     case "$ac_new_val" in
 1078     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 1079       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
 1080       ac_configure_args="$ac_configure_args '$ac_arg'"
 1081       ;;
 1082     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
 1083        ;;
 1084     esac
 1085   fi
 1086 done
 1087 if "$ac_cache_corrupted"; then
 1088   { echo "$as_me:1088: error: changes in the environment can compromise the build" >&5
 1089 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 1090   { { echo "$as_me:1090: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 1091 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 1092    { (exit 1); exit 1; }; }
 1093 fi
 1094 
 1095 ac_ext=c
 1096 ac_cpp='$CPP $CPPFLAGS'
 1097 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
 1098 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
 1099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 1100 ac_main_return="return"
 1101 
 1102 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
 1103   *c*,-n*) ECHO_N=
 1104            ECHO_C=      # newlines do not sed ;-) only broken shells would use this case anyway
 1105            ECHO_T=' '
 1106            ;;
 1107   *c*,*  ) ECHO_N=-n
 1108            ECHO_C=
 1109            ECHO_T=
 1110            ;;
 1111   *)       ECHO_N=
 1112            ECHO_C='\c'
 1113            ECHO_T=
 1114            ;;
 1115 esac
 1116 echo "#! $SHELL" >conftest.sh
 1117 echo  "exit 0"   >>conftest.sh
 1118 chmod +x conftest.sh
 1119 if { (echo "$as_me:1119: PATH=\".;.\"; conftest.sh") >&5
 1120   (PATH=".;."; conftest.sh) 2>&5
 1121   ac_status=$?
 1122   echo "$as_me:1122: \$? = $ac_status" >&5
 1123   (exit "$ac_status"); }; then
 1124   ac_path_separator=';'
 1125 else
 1126   ac_path_separator=:
 1127 fi
 1128 PATH_SEPARATOR="$ac_path_separator"
 1129 rm -f conftest.sh
 1130 
 1131 ac_config_headers="$ac_config_headers xtermcfg.h:xtermcfg.hin"
 1132 
 1133 ac_aux_dir=
 1134 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 1135   if test -f "$ac_dir/install-sh"; then
 1136     ac_aux_dir=$ac_dir
 1137     ac_install_sh="$ac_aux_dir/install-sh -c"
 1138     break
 1139   elif test -f "$ac_dir/install.sh"; then
 1140     ac_aux_dir=$ac_dir
 1141     ac_install_sh="$ac_aux_dir/install.sh -c"
 1142     break
 1143   elif test -f "$ac_dir/shtool"; then
 1144     ac_aux_dir=$ac_dir
 1145     ac_install_sh="$ac_aux_dir/shtool install -c"
 1146     break
 1147   fi
 1148 done
 1149 if test -z "$ac_aux_dir"; then
 1150   { { echo "$as_me:1150: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 1151 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 1152    { (exit 1); exit 1; }; }
 1153 fi
 1154 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 1155 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 1156 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 1157 
 1158 # Make sure we can run config.sub.
 1159 $ac_config_sub sun4 >/dev/null 2>&1 ||
 1160   { { echo "$as_me:1160: error: cannot run $ac_config_sub" >&5
 1161 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 1162    { (exit 1); exit 1; }; }
 1163 
 1164 echo "$as_me:1164: checking build system type" >&5
 1165 echo $ECHO_N "checking build system type... $ECHO_C" >&6
 1166 if test "${ac_cv_build+set}" = set; then
 1167   echo $ECHO_N "(cached) $ECHO_C" >&6
 1168 else
 1169   ac_cv_build_alias=$build_alias
 1170 test -z "$ac_cv_build_alias" &&
 1171   ac_cv_build_alias=`$ac_config_guess`
 1172 test -z "$ac_cv_build_alias" &&
 1173   { { echo "$as_me:1173: error: cannot guess build type; you must specify one" >&5
 1174 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 1175    { (exit 1); exit 1; }; }
 1176 ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` ||
 1177   { { echo "$as_me:1177: error: $ac_config_sub $ac_cv_build_alias failed." >&5
 1178 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
 1179    { (exit 1); exit 1; }; }
 1180 
 1181 fi
 1182 echo "$as_me:1182: result: $ac_cv_build" >&5
 1183 echo "${ECHO_T}$ac_cv_build" >&6
 1184 build=$ac_cv_build
 1185 build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 1186 build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 1187 build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 1188 
 1189 if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then
 1190     echo "$as_me:1190: checking host system type" >&5
 1191 echo $ECHO_N "checking host system type... $ECHO_C" >&6
 1192 if test "${ac_cv_host+set}" = set; then
 1193   echo $ECHO_N "(cached) $ECHO_C" >&6
 1194 else
 1195   ac_cv_host_alias=$host_alias
 1196 test -z "$ac_cv_host_alias" &&
 1197   ac_cv_host_alias=$ac_cv_build_alias
 1198 ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` ||
 1199   { { echo "$as_me:1199: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 1200 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 1201    { (exit 1); exit 1; }; }
 1202 
 1203 fi
 1204 echo "$as_me:1204: result: $ac_cv_host" >&5
 1205 echo "${ECHO_T}$ac_cv_host" >&6
 1206 host=$ac_cv_host
 1207 host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 1208 host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 1209 host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 1210 
 1211     system_name="$host_os"
 1212 else
 1213     system_name="`(uname -s -r) 2>/dev/null`"
 1214     if test -z "$system_name" ; then
 1215         system_name="`(hostname) 2>/dev/null`"
 1216     fi
 1217 fi
 1218 test -n "$system_name" &&
 1219 cat >>confdefs.h <<EOF
 1220 #define SYSTEM_NAME "$system_name"
 1221 EOF
 1222 
 1223 if test "${cf_cv_system_name+set}" = set; then
 1224   echo $ECHO_N "(cached) $ECHO_C" >&6
 1225 else
 1226   cf_cv_system_name="$system_name"
 1227 fi
 1228 
 1229 test -z "$system_name" && system_name="$cf_cv_system_name"
 1230 test -n "$cf_cv_system_name" && echo "$as_me:1230: result: Configuring for $cf_cv_system_name" >&5
 1231 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
 1232 
 1233 if test ".$system_name" != ".$cf_cv_system_name" ; then
 1234     echo "$as_me:1234: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
 1235 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
 1236     { { echo "$as_me:1236: error: \"Please remove config.cache and try again.\"" >&5
 1237 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
 1238    { (exit 1); exit 1; }; }
 1239 fi
 1240 
 1241 ### checks for alternative programs
 1242 
 1243 case "$host_os" in
 1244 (openedition)   : "${CFLAGS=\"-O2 -Wc,dll -Wl,EDIT=NO\"}"
 1245         : "${CPPFLAGS=\"-D_ALL_SOURCE\"}"
 1246         : "${LIBS=\"/usr/lib/Xaw.x /usr/lib/SM.x /usr/lib/ICE.x /usr/lib/X11.x\"}"
 1247         : "${CC=c89}";;
 1248 (darwin*)
 1249         : "${LDFLAGS}=\"${LDFLAGS} -Wl,-bind_at_load\"";;
 1250 esac
 1251 
 1252 ac_ext=c
 1253 ac_cpp='$CPP $CPPFLAGS'
 1254 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
 1255 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
 1256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 1257 ac_main_return="return"
 1258 if test -n "$ac_tool_prefix"; then
 1259   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 1260 set dummy ${ac_tool_prefix}gcc; ac_word=$2
 1261 echo "$as_me:1261: checking for $ac_word" >&5
 1262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 1263 if test "${ac_cv_prog_CC+set}" = set; then
 1264   echo $ECHO_N "(cached) $ECHO_C" >&6
 1265 else
 1266   if test -n "$CC"; then
 1267   ac_cv_prog_CC="$CC" # Let the user override the test.
 1268 else
 1269   ac_save_IFS=$IFS; IFS=$ac_path_separator
 1270 ac_dummy="$PATH"
 1271 for ac_dir in $ac_dummy; do
 1272   IFS=$ac_save_IFS
 1273   test -z "$ac_dir" && ac_dir=.
 1274   $as_executable_p "$ac_dir/$ac_word" || continue
 1275 ac_cv_prog_CC="${ac_tool_prefix}gcc"
 1276 echo "$as_me:1276: found $ac_dir/$ac_word" >&5
 1277 break
 1278 done
 1279 
 1280 fi
 1281 fi
 1282 CC=$ac_cv_prog_CC
 1283 if test -n "$CC"; then
 1284   echo "$as_me:1284: result: $CC" >&5
 1285 echo "${ECHO_T}$CC" >&6
 1286 else
 1287   echo "$as_me:1287: result: no" >&5
 1288 echo "${ECHO_T}no" >&6
 1289 fi
 1290 
 1291 fi
 1292 if test -z "$ac_cv_prog_CC"; then
 1293   ac_ct_CC=$CC
 1294   # Extract the first word of "gcc", so it can be a program name with args.
 1295 set dummy gcc; ac_word=$2
 1296 echo "$as_me:1296: checking for $ac_word" >&5
 1297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 1298 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 1299   echo $ECHO_N "(cached) $ECHO_C" >&6
 1300 else
 1301   if test -n "$ac_ct_CC"; then
 1302   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 1303 else
 1304   ac_save_IFS=$IFS; IFS=$ac_path_separator
 1305 ac_dummy="$PATH"
 1306 for ac_dir in $ac_dummy; do
 1307   IFS=$ac_save_IFS
 1308   test -z "$ac_dir" && ac_dir=.
 1309   $as_executable_p "$ac_dir/$ac_word" || continue
 1310 ac_cv_prog_ac_ct_CC="gcc"
 1311 echo "$as_me:1311: found $ac_dir/$ac_word" >&5
 1312 break
 1313 done
 1314 
 1315 fi
 1316 fi
 1317 ac_ct_CC=$ac_cv_prog_ac_ct_CC
 1318 if test -n "$ac_ct_CC"; then
 1319   echo "$as_me:1319: result: $ac_ct_CC" >&5
 1320 echo "${ECHO_T}$ac_ct_CC" >&6
 1321 else
 1322   echo "$as_me:1322: result: no" >&5
 1323 echo "${ECHO_T}no" >&6
 1324 fi
 1325 
 1326   CC=$ac_ct_CC
 1327 else
 1328   CC="$ac_cv_prog_CC"
 1329 fi
 1330 
 1331 if test -z "$CC"; then
 1332   if test -n "$ac_tool_prefix"; then
 1333   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 1334 set dummy ${ac_tool_prefix}cc; ac_word=$2
 1335 echo "$as_me:1335: checking for $ac_word" >&5
 1336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 1337 if test "${ac_cv_prog_CC+set}" = set; then
 1338   echo $ECHO_N "(cached) $ECHO_C" >&6
 1339 else
 1340   if test -n "$CC"; then
 1341   ac_cv_prog_CC="$CC" # Let the user override the test.
 1342 else
 1343   ac_save_IFS=$IFS; IFS=$ac_path_separator
 1344 ac_dummy="$PATH"
 1345 for ac_dir in $ac_dummy; do
 1346   IFS=$ac_save_IFS
 1347   test -z "$ac_dir" && ac_dir=.
 1348   $as_executable_p "$ac_dir/$ac_word" || continue
 1349 ac_cv_prog_CC="${ac_tool_prefix}cc"
 1350 echo "$as_me:1350: found $ac_dir/$ac_word" >&5
 1351 break
 1352 done
 1353 
 1354 fi
 1355 fi
 1356 CC=$ac_cv_prog_CC
 1357 if test -n "$CC"; then
 1358   echo "$as_me:1358: result: $CC" >&5
 1359 echo "${ECHO_T}$CC" >&6
 1360 else
 1361   echo "$as_me:1361: result: no" >&5
 1362 echo "${ECHO_T}no" >&6
 1363 fi
 1364 
 1365 fi
 1366 if test -z "$ac_cv_prog_CC"; then
 1367   ac_ct_CC=$CC
 1368   # Extract the first word of "cc", so it can be a program name with args.
 1369 set dummy cc; ac_word=$2
 1370 echo "$as_me:1370: checking for $ac_word" >&5
 1371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 1372 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 1373   echo $ECHO_N "(cached) $ECHO_C" >&6
 1374 else
 1375   if test -n "$ac_ct_CC"; then
 1376   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 1377 else
 1378   ac_save_IFS=$IFS; IFS=$ac_path_separator
 1379 ac_dummy="$PATH"
 1380 for ac_dir in $ac_dummy; do
 1381   IFS=$ac_save_IFS
 1382   test -z "$ac_dir" && ac_dir=.
 1383   $as_executable_p "$ac_dir/$ac_word" || continue
 1384 ac_cv_prog_ac_ct_CC="cc"
 1385 echo "$as_me:1385: found $ac_dir/$ac_word" >&5
 1386 break
 1387 done
 1388 
 1389 fi
 1390 fi
 1391 ac_ct_CC=$ac_cv_prog_ac_ct_CC
 1392 if test -n "$ac_ct_CC"; then
 1393   echo "$as_me:1393: result: $ac_ct_CC" >&5
 1394 echo "${ECHO_T}$ac_ct_CC" >&6
 1395 else
 1396   echo "$as_me:1396: result: no" >&5
 1397 echo "${ECHO_T}no" >&6
 1398 fi
 1399 
 1400   CC=$ac_ct_CC
 1401 else
 1402   CC="$ac_cv_prog_CC"
 1403 fi
 1404 
 1405 fi
 1406 if test -z "$CC"; then
 1407   # Extract the first word of "cc", so it can be a program name with args.
 1408 set dummy cc; ac_word=$2
 1409 echo "$as_me:1409: checking for $ac_word" >&5
 1410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 1411 if test "${ac_cv_prog_CC+set}" = set; then
 1412   echo $ECHO_N "(cached) $ECHO_C" >&6
 1413 else
 1414   if test -n "$CC"; then
 1415   ac_cv_prog_CC="$CC" # Let the user override the test.
 1416 else
 1417   ac_prog_rejected=no
 1418   ac_save_IFS=$IFS; IFS=$ac_path_separator
 1419 ac_dummy="$PATH"
 1420 for ac_dir in $ac_dummy; do
 1421   IFS=$ac_save_IFS
 1422   test -z "$ac_dir" && ac_dir=.
 1423   $as_executable_p "$ac_dir/$ac_word" || continue
 1424 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 1425   ac_prog_rejected=yes
 1426   continue
 1427 fi
 1428 ac_cv_prog_CC="cc"
 1429 echo "$as_me:1429: found $ac_dir/$ac_word" >&5
 1430 break
 1431 done
 1432 
 1433 if test "$ac_prog_rejected" = yes; then
 1434   # We found a bogon in the path, so make sure we never use it.
 1435   set dummy $ac_cv_prog_CC
 1436   shift
 1437   if test $# != 0; then
 1438     # We chose a different compiler from the bogus one.
 1439     # However, it has the same basename, so the bogon will be chosen
 1440     # first if we set CC to just the basename; use the full file name.
 1441     shift
 1442     set dummy "$ac_dir/$ac_word" ${1+"$@"}
 1443     shift
 1444     ac_cv_prog_CC="$@"
 1445   fi
 1446 fi
 1447 fi
 1448 fi
 1449 CC=$ac_cv_prog_CC
 1450 if test -n "$CC"; then
 1451   echo "$as_me:1451: result: $CC" >&5
 1452 echo "${ECHO_T}$CC" >&6
 1453 else
 1454   echo "$as_me:1454: result: no" >&5
 1455 echo "${ECHO_T}no" >&6
 1456 fi
 1457 
 1458 fi
 1459 if test -z "$CC"; then
 1460   if test -n "$ac_tool_prefix"; then
 1461   for ac_prog in cl
 1462   do
 1463     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 1464 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 1465 echo "$as_me:1465: checking for $ac_word" >&5
 1466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 1467 if test "${ac_cv_prog_CC+set}" = set; then
 1468   echo $ECHO_N "(cached) $ECHO_C" >&6
 1469 else
 1470   if test -n "$CC"; then
 1471   ac_cv_prog_CC="$CC" # Let the user override the test.
 1472 else
 1473   ac_save_IFS=$IFS; IFS=$ac_path_separator
 1474 ac_dummy="$PATH"
 1475 for ac_dir in $ac_dummy; do
 1476   IFS=$ac_save_IFS
 1477   test -z "$ac_dir" && ac_dir=.
 1478   $as_executable_p "$ac_dir/$ac_word" || continue
 1479 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 1480 echo "$as_me:1480: found $ac_dir/$ac_word" >&5
 1481 break
 1482 done
 1483 
 1484 fi
 1485 fi
 1486 CC=$ac_cv_prog_CC
 1487 if test -n "$CC"; then
 1488   echo "$as_me:1488: result: $CC" >&5
 1489 echo "${ECHO_T}$CC" >&6
 1490 else
 1491   echo "$as_me:1491: result: no" >&5
 1492 echo "${ECHO_T}no" >&6
 1493 fi
 1494 
 1495     test -n "$CC" && break
 1496   done
 1497 fi
 1498 if test -z "$CC"; then
 1499   ac_ct_CC=$CC
 1500   for ac_prog in cl
 1501 do
 1502   # Extract the first word of "$ac_prog", so it can be a program name with args.
 1503 set dummy $ac_prog; ac_word=$2
 1504 echo "$as_me:1504: checking for $ac_word" >&5
 1505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 1506 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 1507   echo $ECHO_N "(cached) $ECHO_C" >&6
 1508 else
 1509   if test -n "$ac_ct_CC"; then
 1510   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 1511 else
 1512   ac_save_IFS=$IFS; IFS=$ac_path_separator
 1513 ac_dummy="$PATH"
 1514 for ac_dir in $ac_dummy; do
 1515   IFS=$ac_save_IFS
 1516   test -z "$ac_dir" && ac_dir=.
 1517   $as_executable_p "$ac_dir/$ac_word" || continue
 1518 ac_cv_prog_ac_ct_CC="$ac_prog"
 1519 echo "$as_me:1519: found $ac_dir/$ac_word" >&5
 1520 break
 1521 done
 1522 
 1523 fi
 1524 fi
 1525 ac_ct_CC=$ac_cv_prog_ac_ct_CC
 1526 if test -n "$ac_ct_CC"; then
 1527   echo "$as_me:1527: result: $ac_ct_CC" >&5
 1528 echo "${ECHO_T}$ac_ct_CC" >&6
 1529 else
 1530   echo "$as_me:1530: result: no" >&5
 1531 echo "${ECHO_T}no" >&6
 1532 fi
 1533 
 1534   test -n "$ac_ct_CC" && break
 1535 done
 1536 
 1537   CC=$ac_ct_CC
 1538 fi
 1539 
 1540 fi
 1541 
 1542 test -z "$CC" && { { echo "$as_me:1542: error: no acceptable cc found in \$PATH" >&5
 1543 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
 1544    { (exit 1); exit 1; }; }
 1545 
 1546 # Provide some information about the compiler.
 1547 echo "$as_me:1547:" \
 1548      "checking for C compiler version" >&5
 1549 ac_compiler=`set X $ac_compile; echo "$2"`
 1550 { (eval echo "$as_me:1550: \"$ac_compiler --version </dev/null >&5\"") >&5
 1551   (eval $ac_compiler --version </dev/null >&5) 2>&5
 1552   ac_status=$?
 1553   echo "$as_me:1553: \$? = $ac_status" >&5
 1554   (exit "$ac_status"); }
 1555 { (eval echo "$as_me:1555: \"$ac_compiler -v </dev/null >&5\"") >&5
 1556   (eval $ac_compiler -v </dev/null >&5) 2>&5
 1557   ac_status=$?
 1558   echo "$as_me:1558: \$? = $ac_status" >&5
 1559   (exit "$ac_status"); }
 1560 { (eval echo "$as_me:1560: \"$ac_compiler -V </dev/null >&5\"") >&5
 1561   (eval $ac_compiler -V </dev/null >&5) 2>&5
 1562   ac_status=$?
 1563   echo "$as_me:1563: \$? = $ac_status" >&5
 1564   (exit "$ac_status"); }
 1565 
 1566 cat >"conftest.$ac_ext" <<_ACEOF
 1567 #line 1567 "configure"
 1568 #include "confdefs.h"
 1569 
 1570 int
 1571 main (void)
 1572 {
 1573 
 1574   ;
 1575   return 0;
 1576 }
 1577 _ACEOF
 1578 ac_clean_files_save=$ac_clean_files
 1579 ac_clean_files="$ac_clean_files a.out a.exe"
 1580 # Try to create an executable without -o first, disregard a.out.
 1581 # It will help us diagnose broken compilers, and finding out an intuition
 1582 # of exeext.
 1583 echo "$as_me:1583: checking for C compiler default output" >&5
 1584 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
 1585 ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'`
 1586 if { (eval echo "$as_me:1586: \"$ac_link_default\"") >&5
 1587   (eval $ac_link_default) 2>&5
 1588   ac_status=$?
 1589   echo "$as_me:1589: \$? = $ac_status" >&5
 1590   (exit "$ac_status"); }; then
 1591   # Find the output, starting from the most likely.  This scheme is
 1592 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
 1593 # resort.
 1594 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
 1595                 ls a.out conftest 2>/dev/null;
 1596                 ls a.* conftest.* 2>/dev/null`; do
 1597   case $ac_file in
 1598     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 1599     a.out ) # We found the default executable, but exeext='' is most
 1600             # certainly right.
 1601             break;;
 1602     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 1603           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
 1604           export ac_cv_exeext
 1605           break;;
 1606     * ) break;;
 1607   esac
 1608 done
 1609 else
 1610   echo "$as_me: failed program was:" >&5
 1611 cat "conftest.$ac_ext" >&5
 1612 { { echo "$as_me:1612: error: C compiler cannot create executables" >&5
 1613 echo "$as_me: error: C compiler cannot create executables" >&2;}
 1614    { (exit 77); exit 77; }; }
 1615 fi
 1616 
 1617 ac_exeext=$ac_cv_exeext
 1618 echo "$as_me:1618: result: $ac_file" >&5
 1619 echo "${ECHO_T}$ac_file" >&6
 1620 
 1621 # Check the compiler produces executables we can run.  If not, either
 1622 # the compiler is broken, or we cross compile.
 1623 echo "$as_me:1623: checking whether the C compiler works" >&5
 1624 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 1625 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 1626 # If not cross compiling, check that we can run a simple program.
 1627 if test "$cross_compiling" != yes; then
 1628   if { ac_try='./$ac_file'
 1629   { (eval echo "$as_me:1629: \"$ac_try\"") >&5
 1630   (eval $ac_try) 2>&5
 1631   ac_status=$?
 1632   echo "$as_me:1632: \$? = $ac_status" >&5
 1633   (exit "$ac_status"); }; }; then
 1634     cross_compiling=no
 1635   else
 1636     if test "$cross_compiling" = maybe; then
 1637     cross_compiling=yes
 1638     else
 1639     { { echo "$as_me:1639: error: cannot run C compiled programs.
 1640 If you meant to cross compile, use \`--host'." >&5
 1641 echo "$as_me: error: cannot run C compiled programs.
 1642 If you meant to cross compile, use \`--host'." >&2;}
 1643    { (exit 1); exit 1; }; }
 1644     fi
 1645   fi
 1646 fi
 1647 echo "$as_me:1647: result: yes" >&5
 1648 echo "${ECHO_T}yes" >&6
 1649 
 1650 rm -f a.out a.exe "conftest$ac_cv_exeext"
 1651 ac_clean_files=$ac_clean_files_save
 1652 # Check the compiler produces executables we can run.  If not, either
 1653 # the compiler is broken, or we cross compile.
 1654 echo "$as_me:1654: checking whether we are cross compiling" >&5
 1655 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 1656 echo "$as_me:1656: result: $cross_compiling" >&5
 1657 echo "${ECHO_T}$cross_compiling" >&6
 1658 
 1659 echo "$as_me:1659: checking for executable suffix" >&5
 1660 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
 1661 if { (eval echo "$as_me:1661: \"$ac_link\"") >&5
 1662   (eval $ac_link) 2>&5
 1663   ac_status=$?
 1664   echo "$as_me:1664: \$? = $ac_status" >&5
 1665   (exit "$ac_status"); }; then
 1666   # If both `conftest.exe' and `conftest' are `present' (well, observable)
 1667 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 1668 # work properly (i.e., refer to `conftest.exe'), while it won't with
 1669 # `rm'.
 1670 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
 1671   case $ac_file in
 1672     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 1673     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 1674           export ac_cv_exeext
 1675           break;;
 1676     * ) break;;
 1677   esac
 1678 done
 1679 else
 1680   { { echo "$as_me:1680: error: cannot compute EXEEXT: cannot compile and link" >&5
 1681 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
 1682    { (exit 1); exit 1; }; }
 1683 fi
 1684 
 1685 rm -f "conftest$ac_cv_exeext"
 1686 echo "$as_me:1686: result: $ac_cv_exeext" >&5
 1687 echo "${ECHO_T}$ac_cv_exeext" >&6
 1688 
 1689 rm -f "conftest.$ac_ext"
 1690 EXEEXT=$ac_cv_exeext
 1691 ac_exeext=$EXEEXT
 1692 echo "$as_me:1692: checking for object suffix" >&5
 1693 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
 1694 if test "${ac_cv_objext+set}" = set; then
 1695   echo $ECHO_N "(cached) $ECHO_C" >&6
 1696 else
 1697   cat >"conftest.$ac_ext" <<_ACEOF
 1698 #line 1698 "configure"
 1699 #include "confdefs.h"
 1700 
 1701 int
 1702 main (void)
 1703 {
 1704 
 1705   ;
 1706   return 0;
 1707 }
 1708 _ACEOF
 1709 rm -f conftest.o conftest.obj
 1710 if { (eval echo "$as_me:1710: \"$ac_compile\"") >&5
 1711   (eval $ac_compile) 2>&5
 1712   ac_status=$?
 1713   echo "$as_me:1713: \$? = $ac_status" >&5
 1714   (exit "$ac_status"); }; then
 1715   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 1716   case $ac_file in
 1717     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
 1718     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 1719        break;;
 1720   esac
 1721 done
 1722 else
 1723   echo "$as_me: failed program was:" >&5
 1724 cat "conftest.$ac_ext" >&5
 1725 { { echo "$as_me:1725: error: cannot compute OBJEXT: cannot compile" >&5
 1726 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
 1727    { (exit 1); exit 1; }; }
 1728 fi
 1729 
 1730 rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext"
 1731 fi
 1732 echo "$as_me:1732: result: $ac_cv_objext" >&5
 1733 echo "${ECHO_T}$ac_cv_objext" >&6
 1734 OBJEXT=$ac_cv_objext
 1735 ac_objext=$OBJEXT
 1736 echo "$as_me:1736: checking whether we are using the GNU C compiler" >&5
 1737 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 1738 if test "${ac_cv_c_compiler_gnu+set}" = set; then
 1739   echo $ECHO_N "(cached) $ECHO_C" >&6
 1740 else
 1741   cat >"conftest.$ac_ext" <<_ACEOF
 1742 #line 1742 "configure"
 1743 #include "confdefs.h"
 1744 
 1745 int
 1746 main (void)
 1747 {
 1748 #ifndef __GNUC__
 1749        choke me
 1750 #endif
 1751 
 1752   ;
 1753   return 0;
 1754 }
 1755 _ACEOF
 1756 rm -f "conftest.$ac_objext"
 1757 if { (eval echo "$as_me:1757: \"$ac_compile\"") >&5
 1758   (eval $ac_compile) 2>&5
 1759   ac_status=$?
 1760   echo "$as_me:1760: \$? = $ac_status" >&5
 1761   (exit "$ac_status"); } &&
 1762          { ac_try='test -s "conftest.$ac_objext"'
 1763   { (eval echo "$as_me:1763: \"$ac_try\"") >&5
 1764   (eval $ac_try) 2>&5
 1765   ac_status=$?
 1766   echo "$as_me:1766: \$? = $ac_status" >&5
 1767   (exit "$ac_status"); }; }; then
 1768   ac_compiler_gnu=yes
 1769 else
 1770   echo "$as_me: failed program was:" >&5
 1771 cat "conftest.$ac_ext" >&5
 1772 ac_compiler_gnu=no
 1773 fi
 1774 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
 1775 ac_cv_c_compiler_gnu=$ac_compiler_gnu
 1776 
 1777 fi
 1778 echo "$as_me:1778: result: $ac_cv_c_compiler_gnu" >&5
 1779 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 1780 GCC=`test $ac_compiler_gnu = yes && echo yes`
 1781 ac_test_CFLAGS=${CFLAGS+set}
 1782 ac_save_CFLAGS=$CFLAGS
 1783 CFLAGS="-g"
 1784 echo "$as_me:1784: checking whether $CC accepts -g" >&5
 1785 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 1786 if test "${ac_cv_prog_cc_g+set}" = set; then
 1787   echo $ECHO_N "(cached) $ECHO_C" >&6
 1788 else
 1789   cat >"conftest.$ac_ext" <<_ACEOF
 1790 #line 1790 "configure"
 1791 #include "confdefs.h"
 1792 
 1793 int
 1794 main (void)
 1795 {
 1796 
 1797   ;
 1798   return 0;
 1799 }
 1800 _ACEOF
 1801 rm -f "conftest.$ac_objext"
 1802 if { (eval echo "$as_me:1802: \"$ac_compile\"") >&5
 1803   (eval $ac_compile) 2>&5
 1804   ac_status=$?
 1805   echo "$as_me:1805: \$? = $ac_status" >&5
 1806   (exit "$ac_status"); } &&
 1807          { ac_try='test -s "conftest.$ac_objext"'
 1808   { (eval echo "$as_me:1808: \"$ac_try\"") >&5
 1809   (eval $ac_try) 2>&5
 1810   ac_status=$?
 1811   echo "$as_me:1811: \$? = $ac_status" >&5
 1812   (exit "$ac_status"); }; }; then
 1813   ac_cv_prog_cc_g=yes
 1814 else
 1815   echo "$as_me: failed program was:" >&5
 1816 cat "conftest.$ac_ext" >&5
 1817 ac_cv_prog_cc_g=no
 1818 fi
 1819 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
 1820 fi
 1821 echo "$as_me:1821: result: $ac_cv_prog_cc_g" >&5
 1822 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 1823 if test "$ac_test_CFLAGS" = set; then
 1824   CFLAGS=$ac_save_CFLAGS
 1825 elif test $ac_cv_prog_cc_g = yes; then
 1826   if test "$GCC" = yes; then
 1827     CFLAGS="-g -O2"
 1828   else
 1829     CFLAGS="-g"
 1830   fi
 1831 else
 1832   if test "$GCC" = yes; then
 1833     CFLAGS="-O2"
 1834   else
 1835     CFLAGS=
 1836   fi
 1837 fi
 1838 # Some people use a C++ compiler to compile C.  Since we use `exit',
 1839 # in C++ we need to declare it.  In case someone uses the same compiler
 1840 # for both compiling C and C++ we need to have the C++ compiler decide
 1841 # the declaration of exit, since it's the most demanding environment.
 1842 cat >"conftest.$ac_ext" <<_ACEOF
 1843 #ifndef __cplusplus
 1844   choke me
 1845 #endif
 1846 _ACEOF
 1847 rm -f "conftest.$ac_objext"
 1848 if { (eval echo "$as_me:1848: \"$ac_compile\"") >&5
 1849   (eval $ac_compile) 2>&5
 1850   ac_status=$?
 1851   echo "$as_me:1851: \$? = $ac_status" >&5
 1852   (exit "$ac_status"); } &&
 1853          { ac_try='test -s "conftest.$ac_objext"'
 1854   { (eval echo "$as_me:1854: \"$ac_try\"") >&5
 1855   (eval $ac_try) 2>&5
 1856   ac_status=$?
 1857   echo "$as_me:1857: \$? = $ac_status" >&5
 1858   (exit "$ac_status"); }; }; then
 1859   for ac_declaration in \
 1860    ''\
 1861    '#include <stdlib.h>' \
 1862    'extern "C" void std::exit (int) throw (); using std::exit;' \
 1863    'extern "C" void std::exit (int); using std::exit;' \
 1864    'extern "C" void exit (int) throw ();' \
 1865    'extern "C" void exit (int);' \
 1866    'void exit (int);'
 1867 do
 1868   cat >"conftest.$ac_ext" <<_ACEOF
 1869 #line 1869 "configure"
 1870 #include "confdefs.h"
 1871 #include <stdlib.h>
 1872 $ac_declaration
 1873 int
 1874 main (void)
 1875 {
 1876 exit (42);
 1877   ;
 1878   return 0;
 1879 }
 1880 _ACEOF
 1881 rm -f "conftest.$ac_objext"
 1882 if { (eval echo "$as_me:1882: \"$ac_compile\"") >&5
 1883   (eval $ac_compile) 2>&5
 1884   ac_status=$?
 1885   echo "$as_me:1885: \$? = $ac_status" >&5
 1886   (exit "$ac_status"); } &&
 1887          { ac_try='test -s "conftest.$ac_objext"'
 1888   { (eval echo "$as_me:1888: \"$ac_try\"") >&5
 1889   (eval $ac_try) 2>&5
 1890   ac_status=$?
 1891   echo "$as_me:1891: \$? = $ac_status" >&5
 1892   (exit "$ac_status"); }; }; then
 1893   :
 1894 else
 1895   echo "$as_me: failed program was:" >&5
 1896 cat "conftest.$ac_ext" >&5
 1897 continue
 1898 fi
 1899 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
 1900   cat >"conftest.$ac_ext" <<_ACEOF
 1901 #line 1901 "configure"
 1902 #include "confdefs.h"
 1903 $ac_declaration
 1904 int
 1905 main (void)
 1906 {
 1907 exit (42);
 1908   ;
 1909   return 0;
 1910 }
 1911 _ACEOF
 1912 rm -f "conftest.$ac_objext"
 1913 if { (eval echo "$as_me:1913: \"$ac_compile\"") >&5
 1914   (eval $ac_compile) 2>&5
 1915   ac_status=$?
 1916   echo "$as_me:1916: \$? = $ac_status" >&5
 1917   (exit "$ac_status"); } &&
 1918          { ac_try='test -s "conftest.$ac_objext"'
 1919   { (eval echo "$as_me:1919: \"$ac_try\"") >&5
 1920   (eval $ac_try) 2>&5
 1921   ac_status=$?
 1922   echo "$as_me:1922: \$? = $ac_status" >&5
 1923   (exit "$ac_status"); }; }; then
 1924   break
 1925 else
 1926   echo "$as_me: failed program was:" >&5
 1927 cat "conftest.$ac_ext" >&5
 1928 fi
 1929 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
 1930 done
 1931 rm -rf conftest*
 1932 if test -n "$ac_declaration"; then
 1933   echo '#ifdef __cplusplus' >>confdefs.h
 1934   echo "$ac_declaration"    >>confdefs.h
 1935   echo '#endif'             >>confdefs.h
 1936 fi
 1937 
 1938 else
 1939   echo "$as_me: failed program was:" >&5
 1940 cat "conftest.$ac_ext" >&5
 1941 fi
 1942 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
 1943 ac_ext=c
 1944 ac_cpp='$CPP $CPPFLAGS'
 1945 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
 1946 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
 1947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 1948 ac_main_return="return"
 1949 
 1950 GCC_VERSION=none
 1951 if test "$GCC" = yes ; then
 1952     echo "$as_me:1952: checking version of $CC" >&5
 1953 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
 1954     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.].*//'`"
 1955     test -z "$GCC_VERSION" && GCC_VERSION=unknown
 1956     echo "$as_me:1956: result: $GCC_VERSION" >&5
 1957 echo "${ECHO_T}$GCC_VERSION" >&6
 1958 fi
 1959 
 1960 INTEL_COMPILER=no
 1961 
 1962 if test "$GCC" = yes ; then
 1963     case "$host_os" in
 1964     (linux*|gnu*)
 1965         echo "$as_me:1965: checking if this is really Intel C compiler" >&5
 1966 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
 1967         cf_save_CFLAGS="$CFLAGS"
 1968         CFLAGS="$CFLAGS -no-gcc"
 1969         cat >"conftest.$ac_ext" <<_ACEOF
 1970 #line 1970 "configure"
 1971 #include "confdefs.h"
 1972 
 1973 int
 1974 main (void)
 1975 {
 1976 
 1977 #ifdef __INTEL_COMPILER
 1978 #else
 1979 make an error
 1980 #endif
 1981 
 1982   ;
 1983   return 0;
 1984 }
 1985 _ACEOF
 1986 rm -f "conftest.$ac_objext"
 1987 if { (eval echo "$as_me:1987: \"$ac_compile\"") >&5
 1988   (eval $ac_compile) 2>&5
 1989   ac_status=$?
 1990   echo "$as_me:1990: \$? = $ac_status" >&5
 1991   (exit "$ac_status"); } &&
 1992          { ac_try='test -s "conftest.$ac_objext"'
 1993   { (eval echo "$as_me:1993: \"$ac_try\"") >&5
 1994   (eval $ac_try) 2>&5
 1995   ac_status=$?
 1996   echo "$as_me:1996: \$? = $ac_status" >&5
 1997   (exit "$ac_status"); }; }; then
 1998   INTEL_COMPILER=yes
 1999 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
 2000 
 2001 else
 2002   echo "$as_me: failed program was:" >&5
 2003 cat "conftest.$ac_ext" >&5
 2004 fi
 2005 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
 2006         CFLAGS="$cf_save_CFLAGS"
 2007         echo "$as_me:2007: result: $INTEL_COMPILER" >&5
 2008 echo "${ECHO_T}$INTEL_COMPILER" >&6
 2009         ;;
 2010     esac
 2011 fi
 2012 
 2013 CLANG_COMPILER=no
 2014 
 2015 if test "$GCC" = yes ; then
 2016     echo "$as_me:2016: checking if this is really Clang C compiler" >&5
 2017 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
 2018     cf_save_CFLAGS="$CFLAGS"
 2019     cat >"conftest.$ac_ext" <<_ACEOF
 2020 #line 2020 "configure"
 2021 #include "confdefs.h"
 2022 
 2023 int
 2024 main (void)
 2025 {
 2026 
 2027 #ifdef __clang__
 2028 #else
 2029 make an error
 2030 #endif
 2031 
 2032   ;
 2033   return 0;
 2034 }
 2035 _ACEOF
 2036 rm -f "conftest.$ac_objext"
 2037 if { (eval echo "$as_me:2037: \"$ac_compile\"") >&5
 2038   (eval $ac_compile) 2>&5
 2039   ac_status=$?
 2040   echo "$as_me:2040: \$? = $ac_status" >&5
 2041   (exit "$ac_status"); } &&
 2042          { ac_try='test -s "conftest.$ac_objext"'
 2043   { (eval echo "$as_me:2043: \"$ac_try\"") >&5
 2044   (eval $ac_try) 2>&5
 2045   ac_status=$?
 2046   echo "$as_me:2046: \$? = $ac_status" >&5
 2047   (exit "$ac_status"); }; }; then
 2048   CLANG_COMPILER=yes
 2049 
 2050 else
 2051   echo "$as_me: failed program was:" >&5
 2052 cat "conftest.$ac_ext" >&5
 2053 fi
 2054 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
 2055     CFLAGS="$cf_save_CFLAGS"
 2056     echo "$as_me:2056: result: $CLANG_COMPILER" >&5
 2057 echo "${ECHO_T}$CLANG_COMPILER" >&6
 2058 fi
 2059 
 2060 CLANG_VERSION=none
 2061 
 2062 if test "x$CLANG_COMPILER" = "xyes" ; then
 2063     case "$CC" in
 2064     (c[1-9][0-9]|*/c[1-9][0-9])
 2065         { echo "$as_me:2065: WARNING: replacing broken compiler alias $CC" >&5
 2066 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
 2067         CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
 2068         CC=clang
 2069         ;;
 2070     esac
 2071 
 2072     echo "$as_me:2072: checking version of $CC" >&5
 2073 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
 2074     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.].*//'`"
 2075     test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
 2076     echo "$as_me:2076: result: $CLANG_VERSION" >&5
 2077 echo "${ECHO_T}$CLANG_VERSION" >&6
 2078 
 2079     for cf_clang_opt in \
 2080         -Qunused-arguments \
 2081         -Wno-error=implicit-function-declaration
 2082     do
 2083         echo "$as_me:2083: checking if option $cf_clang_opt works" >&5
 2084 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
 2085         cf_save_CFLAGS="$CFLAGS"
 2086         CFLAGS="$CFLAGS $cf_clang_opt"
 2087         cat >"conftest.$ac_ext" <<_ACEOF
 2088 #line 2088 "configure"
 2089 #include "confdefs.h"
 2090 
 2091             #include <stdio.h>
 2092 int
 2093 main (void)
 2094 {
 2095 
 2096             printf("hello!\\n");
 2097   ;
 2098   return 0;
 2099 }
 2100 _ACEOF
 2101 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
 2102 if { (eval echo "$as_me:2102: \"$ac_link\"") >&5
 2103   (eval $ac_link) 2>&5
 2104   ac_status=$?
 2105   echo "$as_me:2105: \$? = $ac_status" >&5
 2106   (exit "$ac_status"); } &&
 2107          { ac_try='test -s "conftest$ac_exeext"'
 2108   { (eval echo "$as_me:2108: \"$ac_try\"") >&5
 2109   (eval $ac_try) 2>&5
 2110   ac_status=$?
 2111   echo "$as_me:2111: \$? = $ac_status" >&5
 2112   (exit "$ac_status"); }; }; then
 2113 
 2114             cf_clang_optok=yes
 2115 else
 2116   echo "$as_me: failed program was:" >&5
 2117 cat "conftest.$ac_ext" >&5
 2118 
 2119             cf_clang_optok=no
 2120 fi
 2121 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
 2122         echo "$as_me:2122: result: $cf_clang_optok" >&5
 2123 echo "${ECHO_T}$cf_clang_optok" >&6
 2124         CFLAGS="$cf_save_CFLAGS"
 2125         if test "$cf_clang_optok" = yes; then
 2126             test -n "$verbose" && echo "    adding option $cf_clang_opt" 1>&6
 2127 
 2128 echo "${as_me:-configure}:2128: testing adding option $cf_clang_opt ..." 1>&5
 2129 
 2130     test -n "$CFLAGS" && CFLAGS="$CFLAGS "
 2131     CFLAGS="${CFLAGS}$cf_clang_opt"
 2132 
 2133         fi
 2134     done
 2135 fi
 2136 
 2137 echo "$as_me:2137: checking for $CC option to accept ANSI C" >&5
 2138 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 2139 if test "${ac_cv_prog_cc_stdc+set}" = set; then
 2140   echo $ECHO_N "(cached) $ECHO_C" >&6
 2141 else
 2142   ac_cv_prog_cc_stdc=no
 2143 ac_save_CC=$CC
 2144 cat >"conftest.$ac_ext" <<_ACEOF
 2145 #line 2145 "configure"
 2146 #include "confdefs.h"
 2147 #include <stdarg.h>
 2148 #include <stdio.h>
 2149 #include <sys/types.h>
 2150 #include <sys/stat.h>
 2151 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 2152 struct buf { int x; };
 2153 FILE * (*rcsopen) (struct buf *, struct stat *, int);
 2154 static char *e (char **p, 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*gnu|linux*gnuabi64|linux*gnuabin32|linux*gnueabi|linux*gnueabihf|linux*gnux32|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   ;
 3898   return 0;
 3899 }
 3900 _ACEOF
 3901 rm -f "conftest.$ac_objext"
 3902 if { (eval echo "$as_me:3902: \"$ac_compile\"") >&5
 3903   (eval $ac_compile) 2>&5
 3904   ac_status=$?
 3905   echo "$as_me:3905: \$? = $ac_status" >&5
 3906   (exit "$ac_status"); } &&
 3907          { ac_try='test -s "conftest.$ac_objext"'
 3908   { (eval echo "$as_me:3908: \"$ac_try\"") >&5
 3909   (eval $ac_try) 2>&5
 3910   ac_status=$?
 3911   echo "$as_me:3911: \$? = $ac_status" >&5
 3912   (exit "$ac_status"); }; }; then
 3913   cf_cv_xopen_source=no
 3914 else
 3915   echo "$as_me: failed program was:" >&5
 3916 cat "conftest.$ac_ext" >&5
 3917 cf_save="$CPPFLAGS"
 3918 
 3919     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 3920     CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
 3921 
 3922      cat >"conftest.$ac_ext" <<_ACEOF
 3923 #line 3923 "configure"
 3924 #include "confdefs.h"
 3925 
 3926 #include <stdlib.h>
 3927 #include <string.h>
 3928 #include <sys/types.h>
 3929 
 3930 int
 3931 main (void)
 3932 {
 3933 
 3934 #ifndef _XOPEN_SOURCE
 3935 make an error
 3936 #endif
 3937 
 3938   ;
 3939   return 0;
 3940 }
 3941 _ACEOF
 3942 rm -f "conftest.$ac_objext"
 3943 if { (eval echo "$as_me:3943: \"$ac_compile\"") >&5
 3944   (eval $ac_compile) 2>&5
 3945   ac_status=$?
 3946   echo "$as_me:3946: \$? = $ac_status" >&5
 3947   (exit "$ac_status"); } &&
 3948          { ac_try='test -s "conftest.$ac_objext"'
 3949   { (eval echo "$as_me:3949: \"$ac_try\"") >&5
 3950   (eval $ac_try) 2>&5
 3951   ac_status=$?
 3952   echo "$as_me:3952: \$? = $ac_status" >&5
 3953   (exit "$ac_status"); }; }; then
 3954   cf_cv_xopen_source=no
 3955 else
 3956   echo "$as_me: failed program was:" >&5
 3957 cat "conftest.$ac_ext" >&5
 3958 cf_cv_xopen_source=$cf_XOPEN_SOURCE
 3959 fi
 3960 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
 3961         CPPFLAGS="$cf_save"
 3962 
 3963 fi
 3964 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
 3965 
 3966 fi
 3967 echo "$as_me:3967: result: $cf_cv_xopen_source" >&5
 3968 echo "${ECHO_T}$cf_cv_xopen_source" >&6
 3969 
 3970 if test "$cf_cv_xopen_source" != no ; then
 3971 
 3972 CFLAGS=`echo "$CFLAGS" | \
 3973     sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?[     ]/ /g' \
 3974         -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?$//g'`
 3975 
 3976 CPPFLAGS=`echo "$CPPFLAGS" | \
 3977     sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?[     ]/ /g' \
 3978         -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?$//g'`
 3979 
 3980     cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
 3981 
 3982 for cf_add_cflags in $cf_temp_xopen_source
 3983 do
 3984     case "x$cf_add_cflags" in
 3985     (x-[DU]*)
 3986 
 3987 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
 3988 while true
 3989 do
 3990     cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[     ][  ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^     ][^     ]*\\)\?%%" -e 's/^[     ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
 3991     test "$CFLAGS" != "$cf_old_cflag" || break
 3992 
 3993     CFLAGS="$cf_old_cflag"
 3994 done
 3995 
 3996 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
 3997 while true
 3998 do
 3999     cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[   ][  ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^     ][^     ]*\\)\?%%" -e 's/^[     ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
 4000     test "$CPPFLAGS" != "$cf_old_cflag" || break
 4001 
 4002     CPPFLAGS="$cf_old_cflag"
 4003 done
 4004 
 4005         ;;
 4006     esac
 4007 
 4008 cf_fix_cppflags=no
 4009 cf_new_cflags=
 4010 cf_new_cppflags=
 4011 cf_new_extra_cppflags=
 4012 
 4013 for cf_add_cflags in $cf_add_cflags
 4014 do
 4015 case "$cf_fix_cppflags" in
 4016 (no)
 4017     case "$cf_add_cflags" in
 4018     (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
 4019         case "$cf_add_cflags" in
 4020         (-D*)
 4021             cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
 4022 
 4023             test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 4024                 && test -z "${cf_tst_cflags}" \
 4025                 && cf_fix_cppflags=yes
 4026 
 4027             if test "$cf_fix_cppflags" = yes ; then
 4028 
 4029     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 4030     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 4031 
 4032                 continue
 4033             elif test "${cf_tst_cflags}" = "\"'" ; then
 4034 
 4035     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 4036     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 4037 
 4038                 continue
 4039             fi
 4040             ;;
 4041         esac
 4042         case "$CPPFLAGS" in
 4043         (*$cf_add_cflags)
 4044             ;;
 4045         (*)
 4046             case "$cf_add_cflags" in
 4047             (-D*)
 4048                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
 4049 
 4050 CPPFLAGS=`echo "$CPPFLAGS" | \
 4051     sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[     ]/ /g' \
 4052         -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
 4053 
 4054                 ;;
 4055             esac
 4056 
 4057     test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
 4058     cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
 4059 
 4060             ;;
 4061         esac
 4062         ;;
 4063     (*)
 4064 
 4065     test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
 4066     cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
 4067 
 4068         ;;
 4069     esac
 4070     ;;
 4071 (yes)
 4072 
 4073     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 4074     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 4075 
 4076     cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
 4077 
 4078     test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 4079         && test -z "${cf_tst_cflags}" \
 4080         && cf_fix_cppflags=no
 4081     ;;
 4082 esac
 4083 done
 4084 
 4085 if test -n "$cf_new_cflags" ; then
 4086 
 4087     test -n "$CFLAGS" && CFLAGS="$CFLAGS "
 4088     CFLAGS="${CFLAGS}$cf_new_cflags"
 4089 
 4090 fi
 4091 
 4092 if test -n "$cf_new_cppflags" ; then
 4093 
 4094     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 4095     CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
 4096 
 4097 fi
 4098 
 4099 if test -n "$cf_new_extra_cppflags" ; then
 4100 
 4101     test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
 4102     EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
 4103 
 4104 fi
 4105 
 4106 done
 4107 
 4108 fi
 4109 
 4110     cf_save_xopen_cppflags="$CPPFLAGS"
 4111 
 4112 if test "$cf_cv_posix_visible" = no; then
 4113 
 4114 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
 4115 
 4116 cf_save_CFLAGS="$CFLAGS"
 4117 cf_save_CPPFLAGS="$CPPFLAGS"
 4118 
 4119 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
 4120     sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?[     ]/ /g' \
 4121         -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?$//g'`
 4122 
 4123 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
 4124     sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?[     ]/ /g' \
 4125         -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^     ]*\)\?$//g'`
 4126 
 4127 echo "$as_me:4127: checking if we should define _POSIX_C_SOURCE" >&5
 4128 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
 4129 if test "${cf_cv_posix_c_source+set}" = set; then
 4130   echo $ECHO_N "(cached) $ECHO_C" >&6
 4131 else
 4132 
 4133 echo "${as_me:-configure}:4133: testing if the symbol is already defined go no further ..." 1>&5
 4134 
 4135     cat >"conftest.$ac_ext" <<_ACEOF
 4136 #line 4136 "configure"
 4137 #include "confdefs.h"
 4138 #include <sys/types.h>
 4139 int
 4140 main (void)
 4141 {
 4142 
 4143 #ifndef _POSIX_C_SOURCE
 4144 make an error
 4145 #endif
 4146   ;
 4147   return 0;
 4148 }
 4149 _ACEOF
 4150 rm -f "conftest.$ac_objext"
 4151 if { (eval echo "$as_me:4151: \"$ac_compile\"") >&5
 4152   (eval $ac_compile) 2>&5
 4153   ac_status=$?
 4154   echo "$as_me:4154: \$? = $ac_status" >&5
 4155   (exit "$ac_status"); } &&
 4156          { ac_try='test -s "conftest.$ac_objext"'
 4157   { (eval echo "$as_me:4157: \"$ac_try\"") >&5
 4158   (eval $ac_try) 2>&5
 4159   ac_status=$?
 4160   echo "$as_me:4160: \$? = $ac_status" >&5
 4161   (exit "$ac_status"); }; }; then
 4162   cf_cv_posix_c_source=no
 4163 else
 4164   echo "$as_me: failed program was:" >&5
 4165 cat "conftest.$ac_ext" >&5
 4166 cf_want_posix_source=no
 4167      case .$cf_POSIX_C_SOURCE in
 4168      (.[12]??*)
 4169         cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
 4170         ;;
 4171      (.2)
 4172         cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
 4173         cf_want_posix_source=yes
 4174         ;;
 4175      (.*)
 4176         cf_want_posix_source=yes
 4177         ;;
 4178      esac
 4179      if test "$cf_want_posix_source" = yes ; then
 4180         cat >"conftest.$ac_ext" <<_ACEOF
 4181 #line 4181 "configure"
 4182 #include "confdefs.h"
 4183 #include <sys/types.h>
 4184 int
 4185 main (void)
 4186 {
 4187 
 4188 #ifdef _POSIX_SOURCE
 4189 make an error
 4190 #endif
 4191   ;
 4192   return 0;
 4193 }
 4194 _ACEOF
 4195 rm -f "conftest.$ac_objext"
 4196 if { (eval echo "$as_me:4196: \"$ac_compile\"") >&5
 4197   (eval $ac_compile) 2>&5
 4198   ac_status=$?
 4199   echo "$as_me:4199: \$? = $ac_status" >&5
 4200   (exit "$ac_status"); } &&
 4201          { ac_try='test -s "conftest.$ac_objext"'
 4202   { (eval echo "$as_me:4202: \"$ac_try\"") >&5
 4203   (eval $ac_try) 2>&5
 4204   ac_status=$?
 4205   echo "$as_me:4205: \$? = $ac_status" >&5
 4206   (exit "$ac_status"); }; }; then
 4207   :
 4208 else
 4209   echo "$as_me: failed program was:" >&5
 4210 cat "conftest.$ac_ext" >&5
 4211 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
 4212 fi
 4213 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
 4214      fi
 4215 
 4216 echo "${as_me:-configure}:4216: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
 4217 
 4218      CFLAGS="$cf_trim_CFLAGS"
 4219      CPPFLAGS="$cf_trim_CPPFLAGS"
 4220 
 4221     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 4222     CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
 4223 
 4224 echo "${as_me:-configure}:4224: testing if the second compile does not leave our definition intact error ..." 1>&5
 4225 
 4226      cat >"conftest.$ac_ext" <<_ACEOF
 4227 #line 4227 "configure"
 4228 #include "confdefs.h"
 4229 #include <sys/types.h>
 4230 int
 4231 main (void)
 4232 {
 4233 
 4234 #ifndef _POSIX_C_SOURCE
 4235 make an error
 4236 #endif
 4237   ;
 4238   return 0;
 4239 }
 4240 _ACEOF
 4241 rm -f "conftest.$ac_objext"
 4242 if { (eval echo "$as_me:4242: \"$ac_compile\"") >&5
 4243   (eval $ac_compile) 2>&5
 4244   ac_status=$?
 4245   echo "$as_me:4245: \$? = $ac_status" >&5
 4246   (exit "$ac_status"); } &&
 4247          { ac_try='test -s "conftest.$ac_objext"'
 4248   { (eval echo "$as_me:4248: \"$ac_try\"") >&5
 4249   (eval $ac_try) 2>&5
 4250   ac_status=$?
 4251   echo "$as_me:4251: \$? = $ac_status" >&5
 4252   (exit "$ac_status"); }; }; then
 4253   :
 4254 else
 4255   echo "$as_me: failed program was:" >&5
 4256 cat "conftest.$ac_ext" >&5
 4257 cf_cv_posix_c_source=no
 4258 fi
 4259 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
 4260      CFLAGS="$cf_save_CFLAGS"
 4261      CPPFLAGS="$cf_save_CPPFLAGS"
 4262 
 4263 fi
 4264 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
 4265 
 4266 fi
 4267 echo "$as_me:4267: result: $cf_cv_posix_c_source" >&5
 4268 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
 4269 
 4270 if test "$cf_cv_posix_c_source" != no ; then
 4271     CFLAGS="$cf_trim_CFLAGS"
 4272     CPPFLAGS="$cf_trim_CPPFLAGS"
 4273 
 4274 cf_fix_cppflags=no
 4275 cf_new_cflags=
 4276 cf_new_cppflags=
 4277 cf_new_extra_cppflags=
 4278 
 4279 for cf_add_cflags in $cf_cv_posix_c_source
 4280 do
 4281 case "$cf_fix_cppflags" in
 4282 (no)
 4283     case "$cf_add_cflags" in
 4284     (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
 4285         case "$cf_add_cflags" in
 4286         (-D*)
 4287             cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
 4288 
 4289             test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 4290                 && test -z "${cf_tst_cflags}" \
 4291                 && cf_fix_cppflags=yes
 4292 
 4293             if test "$cf_fix_cppflags" = yes ; then
 4294 
 4295     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 4296     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 4297 
 4298                 continue
 4299             elif test "${cf_tst_cflags}" = "\"'" ; then
 4300 
 4301     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 4302     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 4303 
 4304                 continue
 4305             fi
 4306             ;;
 4307         esac
 4308         case "$CPPFLAGS" in
 4309         (*$cf_add_cflags)
 4310             ;;
 4311         (*)
 4312             case "$cf_add_cflags" in
 4313             (-D*)
 4314                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
 4315 
 4316 CPPFLAGS=`echo "$CPPFLAGS" | \
 4317     sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[     ]/ /g' \
 4318         -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
 4319 
 4320                 ;;
 4321             esac
 4322 
 4323     test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
 4324     cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
 4325 
 4326             ;;
 4327         esac
 4328         ;;
 4329     (*)
 4330 
 4331     test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
 4332     cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
 4333 
 4334         ;;
 4335     esac
 4336     ;;
 4337 (yes)
 4338 
 4339     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 4340     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 4341 
 4342     cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
 4343 
 4344     test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 4345         && test -z "${cf_tst_cflags}" \
 4346         && cf_fix_cppflags=no
 4347     ;;
 4348 esac
 4349 done
 4350 
 4351 if test -n "$cf_new_cflags" ; then
 4352 
 4353     test -n "$CFLAGS" && CFLAGS="$CFLAGS "
 4354     CFLAGS="${CFLAGS}$cf_new_cflags"
 4355 
 4356 fi
 4357 
 4358 if test -n "$cf_new_cppflags" ; then
 4359 
 4360     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 4361     CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
 4362 
 4363 fi
 4364 
 4365 if test -n "$cf_new_extra_cppflags" ; then
 4366 
 4367     test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
 4368     EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
 4369 
 4370 fi
 4371 
 4372 fi
 4373 
 4374 fi # cf_cv_posix_visible
 4375 
 4376     # Some of these niche implementations use copy/paste, double-check...
 4377     if test "$cf_cv_xopen_source" != no ; then
 4378         test -n "$verbose" && echo "    checking if _POSIX_C_SOURCE inteferes" 1>&6
 4379 
 4380 echo "${as_me:-configure}:4380: testing checking if _POSIX_C_SOURCE inteferes ..." 1>&5
 4381 
 4382         cat >"conftest.$ac_ext" <<_ACEOF
 4383 #line 4383 "configure"
 4384 #include "confdefs.h"
 4385 
 4386 #include <stdlib.h>
 4387 #include <string.h>
 4388 #include <sys/types.h>
 4389 
 4390 int
 4391 main (void)
 4392 {
 4393 
 4394 #ifndef _XOPEN_SOURCE
 4395 make an error
 4396 #endif
 4397 
 4398   ;
 4399   return 0;
 4400 }
 4401 _ACEOF
 4402 rm -f "conftest.$ac_objext"
 4403 if { (eval echo "$as_me:4403: \"$ac_compile\"") >&5
 4404   (eval $ac_compile) 2>&5
 4405   ac_status=$?
 4406   echo "$as_me:4406: \$? = $ac_status" >&5
 4407   (exit "$ac_status"); } &&
 4408          { ac_try='test -s "conftest.$ac_objext"'
 4409   { (eval echo "$as_me:4409: \"$ac_try\"") >&5
 4410   (eval $ac_try) 2>&5
 4411   ac_status=$?
 4412   echo "$as_me:4412: \$? = $ac_status" >&5
 4413   (exit "$ac_status"); }; }; then
 4414   :
 4415 else
 4416   echo "$as_me: failed program was:" >&5
 4417 cat "conftest.$ac_ext" >&5
 4418 
 4419             { echo "$as_me:4419: WARNING: _POSIX_C_SOURCE definition is not usable" >&5
 4420 echo "$as_me: WARNING: _POSIX_C_SOURCE definition is not usable" >&2;}
 4421             CPPFLAGS="$cf_save_xopen_cppflags"
 4422 fi
 4423 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
 4424     fi
 4425     ;;
 4426 esac
 4427 
 4428 if test -n "$cf_xopen_source" ; then
 4429 
 4430 for cf_add_cflags in $cf_xopen_source
 4431 do
 4432     case "x$cf_add_cflags" in
 4433     (x-[DU]*)
 4434 
 4435 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
 4436 while true
 4437 do
 4438     cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[     ][  ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^     ][^     ]*\\)\?%%" -e 's/^[     ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
 4439     test "$CFLAGS" != "$cf_old_cflag" || break
 4440     test -n "$verbose" && echo "    removing old option $cf_add_cflags from CFLAGS" 1>&6
 4441 
 4442 echo "${as_me:-configure}:4442: testing removing old option $cf_add_cflags from CFLAGS ..." 1>&5
 4443 
 4444     CFLAGS="$cf_old_cflag"
 4445 done
 4446 
 4447 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
 4448 while true
 4449 do
 4450     cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[   ][  ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^     ][^     ]*\\)\?%%" -e 's/^[     ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
 4451     test "$CPPFLAGS" != "$cf_old_cflag" || break
 4452     test -n "$verbose" && echo "    removing old option $cf_add_cflags from CPPFLAGS" 1>&6
 4453 
 4454 echo "${as_me:-configure}:4454: testing removing old option $cf_add_cflags from CPPFLAGS ..." 1>&5
 4455 
 4456     CPPFLAGS="$cf_old_cflag"
 4457 done
 4458 
 4459         ;;
 4460     esac
 4461 
 4462 cf_fix_cppflags=no
 4463 cf_new_cflags=
 4464 cf_new_cppflags=
 4465 cf_new_extra_cppflags=
 4466 
 4467 for cf_add_cflags in $cf_add_cflags
 4468 do
 4469 case "$cf_fix_cppflags" in
 4470 (no)
 4471     case "$cf_add_cflags" in
 4472     (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
 4473         case "$cf_add_cflags" in
 4474         (-D*)
 4475             cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
 4476 
 4477             test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 4478                 && test -z "${cf_tst_cflags}" \
 4479                 && cf_fix_cppflags=yes
 4480 
 4481             if test "$cf_fix_cppflags" = yes ; then
 4482 
 4483     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 4484     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 4485 
 4486                 continue
 4487             elif test "${cf_tst_cflags}" = "\"'" ; then
 4488 
 4489     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 4490     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 4491 
 4492                 continue
 4493             fi
 4494             ;;
 4495         esac
 4496         case "$CPPFLAGS" in
 4497         (*$cf_add_cflags)
 4498             ;;
 4499         (*)
 4500             case "$cf_add_cflags" in
 4501             (-D*)
 4502                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
 4503 
 4504 CPPFLAGS=`echo "$CPPFLAGS" | \
 4505     sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[     ]/ /g' \
 4506         -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
 4507 
 4508                 ;;
 4509             esac
 4510 
 4511     test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
 4512     cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
 4513 
 4514             ;;
 4515         esac
 4516         ;;
 4517     (*)
 4518 
 4519     test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
 4520     cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
 4521 
 4522         ;;
 4523     esac
 4524     ;;
 4525 (yes)
 4526 
 4527     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 4528     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 4529 
 4530     cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
 4531 
 4532     test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 4533         && test -z "${cf_tst_cflags}" \
 4534         && cf_fix_cppflags=no
 4535     ;;
 4536 esac
 4537 done
 4538 
 4539 if test -n "$cf_new_cflags" ; then
 4540     test -n "$verbose" && echo "    add to \$CFLAGS $cf_new_cflags" 1>&6
 4541 
 4542 echo "${as_me:-configure}:4542: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
 4543 
 4544     test -n "$CFLAGS" && CFLAGS="$CFLAGS "
 4545     CFLAGS="${CFLAGS}$cf_new_cflags"
 4546 
 4547 fi
 4548 
 4549 if test -n "$cf_new_cppflags" ; then
 4550     test -n "$verbose" && echo "    add to \$CPPFLAGS $cf_new_cppflags" 1>&6
 4551 
 4552 echo "${as_me:-configure}:4552: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
 4553 
 4554     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 4555     CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
 4556 
 4557 fi
 4558 
 4559 if test -n "$cf_new_extra_cppflags" ; then
 4560     test -n "$verbose" && echo "    add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
 4561 
 4562 echo "${as_me:-configure}:4562: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
 4563 
 4564     test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
 4565     EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
 4566 
 4567 fi
 4568 
 4569 done
 4570 
 4571 fi
 4572 
 4573 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
 4574     echo "$as_me:4574: checking if _XOPEN_SOURCE really is set" >&5
 4575 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
 4576     cat >"conftest.$ac_ext" <<_ACEOF
 4577 #line 4577 "configure"
 4578 #include "confdefs.h"
 4579 #include <stdlib.h>
 4580 int
 4581 main (void)
 4582 {
 4583 
 4584 #ifndef _XOPEN_SOURCE
 4585 make an error
 4586 #endif
 4587   ;
 4588   return 0;
 4589 }
 4590 _ACEOF
 4591 rm -f "conftest.$ac_objext"
 4592 if { (eval echo "$as_me:4592: \"$ac_compile\"") >&5
 4593   (eval $ac_compile) 2>&5
 4594   ac_status=$?
 4595   echo "$as_me:4595: \$? = $ac_status" >&5
 4596   (exit "$ac_status"); } &&
 4597          { ac_try='test -s "conftest.$ac_objext"'
 4598   { (eval echo "$as_me:4598: \"$ac_try\"") >&5
 4599   (eval $ac_try) 2>&5
 4600   ac_status=$?
 4601   echo "$as_me:4601: \$? = $ac_status" >&5
 4602   (exit "$ac_status"); }; }; then
 4603   cf_XOPEN_SOURCE_set=yes
 4604 else
 4605   echo "$as_me: failed program was:" >&5
 4606 cat "conftest.$ac_ext" >&5
 4607 cf_XOPEN_SOURCE_set=no
 4608 fi
 4609 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
 4610     echo "$as_me:4610: result: $cf_XOPEN_SOURCE_set" >&5
 4611 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
 4612     if test "$cf_XOPEN_SOURCE_set" = yes
 4613     then
 4614         cat >"conftest.$ac_ext" <<_ACEOF
 4615 #line 4615 "configure"
 4616 #include "confdefs.h"
 4617 #include <stdlib.h>
 4618 int
 4619 main (void)
 4620 {
 4621 
 4622 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
 4623 make an error
 4624 #endif
 4625   ;
 4626   return 0;
 4627 }
 4628 _ACEOF
 4629 rm -f "conftest.$ac_objext"
 4630 if { (eval echo "$as_me:4630: \"$ac_compile\"") >&5
 4631   (eval $ac_compile) 2>&5
 4632   ac_status=$?
 4633   echo "$as_me:4633: \$? = $ac_status" >&5
 4634   (exit "$ac_status"); } &&
 4635          { ac_try='test -s "conftest.$ac_objext"'
 4636   { (eval echo "$as_me:4636: \"$ac_try\"") >&5
 4637   (eval $ac_try) 2>&5
 4638   ac_status=$?
 4639   echo "$as_me:4639: \$? = $ac_status" >&5
 4640   (exit "$ac_status"); }; }; then
 4641   cf_XOPEN_SOURCE_set_ok=yes
 4642 else
 4643   echo "$as_me: failed program was:" >&5
 4644 cat "conftest.$ac_ext" >&5
 4645 cf_XOPEN_SOURCE_set_ok=no
 4646 fi
 4647 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
 4648         if test "$cf_XOPEN_SOURCE_set_ok" = no
 4649         then
 4650             { echo "$as_me:4650: WARNING: _XOPEN_SOURCE is lower than requested" >&5
 4651 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
 4652         fi
 4653     else
 4654 
 4655 echo "$as_me:4655: checking if we should define _XOPEN_SOURCE" >&5
 4656 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
 4657 if test "${cf_cv_xopen_source+set}" = set; then
 4658   echo $ECHO_N "(cached) $ECHO_C" >&6
 4659 else
 4660 
 4661     cat >"conftest.$ac_ext" <<_ACEOF
 4662 #line 4662 "configure"
 4663 #include "confdefs.h"
 4664 
 4665 #include <stdlib.h>
 4666 #include <string.h>
 4667 #include <sys/types.h>
 4668 
 4669 int
 4670 main (void)
 4671 {
 4672 
 4673 #ifndef _XOPEN_SOURCE
 4674 make an error
 4675 #endif
 4676 
 4677   ;
 4678   return 0;
 4679 }
 4680 _ACEOF
 4681 rm -f "conftest.$ac_objext"
 4682 if { (eval echo "$as_me:4682: \"$ac_compile\"") >&5
 4683   (eval $ac_compile) 2>&5
 4684   ac_status=$?
 4685   echo "$as_me:4685: \$? = $ac_status" >&5
 4686   (exit "$ac_status"); } &&
 4687          { ac_try='test -s "conftest.$ac_objext"'
 4688   { (eval echo "$as_me:4688: \"$ac_try\"") >&5
 4689   (eval $ac_try) 2>&5
 4690   ac_status=$?
 4691   echo "$as_me:4691: \$? = $ac_status" >&5
 4692   (exit "$ac_status"); }; }; then
 4693   cf_cv_xopen_source=no
 4694 else
 4695   echo "$as_me: failed program was:" >&5
 4696 cat "conftest.$ac_ext" >&5
 4697 cf_save="$CPPFLAGS"
 4698 
 4699     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 4700     CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
 4701 
 4702      cat >"conftest.$ac_ext" <<_ACEOF
 4703 #line 4703 "configure"
 4704 #include "confdefs.h"
 4705 
 4706 #include <stdlib.h>
 4707 #include <string.h>
 4708 #include <sys/types.h>
 4709 
 4710 int
 4711 main (void)
 4712 {
 4713 
 4714 #ifndef _XOPEN_SOURCE
 4715 make an error
 4716 #endif
 4717 
 4718   ;
 4719   return 0;
 4720 }
 4721 _ACEOF
 4722 rm -f "conftest.$ac_objext"
 4723 if { (eval echo "$as_me:4723: \"$ac_compile\"") >&5
 4724   (eval $ac_compile) 2>&5
 4725   ac_status=$?
 4726   echo "$as_me:4726: \$? = $ac_status" >&5
 4727   (exit "$ac_status"); } &&
 4728          { ac_try='test -s "conftest.$ac_objext"'
 4729   { (eval echo "$as_me:4729: \"$ac_try\"") >&5
 4730   (eval $ac_try) 2>&5
 4731   ac_status=$?
 4732   echo "$as_me:4732: \$? = $ac_status" >&5
 4733   (exit "$ac_status"); }; }; then
 4734   cf_cv_xopen_source=no
 4735 else
 4736   echo "$as_me: failed program was:" >&5
 4737 cat "conftest.$ac_ext" >&5
 4738 cf_cv_xopen_source=$cf_XOPEN_SOURCE
 4739 fi
 4740 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
 4741         CPPFLAGS="$cf_save"
 4742 
 4743 fi
 4744 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
 4745 
 4746 fi
 4747 echo "$as_me:4747: result: $cf_cv_xopen_source" >&5
 4748 echo "${ECHO_T}$cf_cv_xopen_source" >&6
 4749 
 4750 if test "$cf_cv_xopen_source" != no ; then
 4751 
 4752 CFLAGS=`echo "$CFLAGS" | \
 4753     sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?[     ]/ /g' \
 4754         -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?$//g'`
 4755 
 4756 CPPFLAGS=`echo "$CPPFLAGS" | \
 4757     sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?[     ]/ /g' \
 4758         -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^   ]*\)\?$//g'`
 4759 
 4760     cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
 4761 
 4762 for cf_add_cflags in $cf_temp_xopen_source
 4763 do
 4764     case "x$cf_add_cflags" in
 4765     (x-[DU]*)
 4766 
 4767 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
 4768 while true
 4769 do
 4770     cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[     ][  ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^     ][^     ]*\\)\?%%" -e 's/^[     ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
 4771     test "$CFLAGS" != "$cf_old_cflag" || break
 4772 
 4773     CFLAGS="$cf_old_cflag"
 4774 done
 4775 
 4776 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
 4777 while true
 4778 do
 4779     cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[   ][  ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^     ][^     ]*\\)\?%%" -e 's/^[     ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
 4780     test "$CPPFLAGS" != "$cf_old_cflag" || break
 4781 
 4782     CPPFLAGS="$cf_old_cflag"
 4783 done
 4784 
 4785         ;;
 4786     esac
 4787 
 4788 cf_fix_cppflags=no
 4789 cf_new_cflags=
 4790 cf_new_cppflags=
 4791 cf_new_extra_cppflags=
 4792 
 4793 for cf_add_cflags in $cf_add_cflags
 4794 do
 4795 case "$cf_fix_cppflags" in
 4796 (no)
 4797     case "$cf_add_cflags" in
 4798     (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
 4799         case "$cf_add_cflags" in
 4800         (-D*)
 4801             cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
 4802 
 4803             test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 4804                 && test -z "${cf_tst_cflags}" \
 4805                 && cf_fix_cppflags=yes
 4806 
 4807             if test "$cf_fix_cppflags" = yes ; then
 4808 
 4809     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 4810     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 4811 
 4812                 continue
 4813             elif test "${cf_tst_cflags}" = "\"'" ; then
 4814 
 4815     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 4816     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 4817 
 4818                 continue
 4819             fi
 4820             ;;
 4821         esac
 4822         case "$CPPFLAGS" in
 4823         (*$cf_add_cflags)
 4824             ;;
 4825         (*)
 4826             case "$cf_add_cflags" in
 4827             (-D*)
 4828                 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
 4829 
 4830 CPPFLAGS=`echo "$CPPFLAGS" | \
 4831     sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?[     ]/ /g' \
 4832         -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^    ]*\)\?$//g'`
 4833 
 4834                 ;;
 4835             esac
 4836 
 4837     test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
 4838     cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
 4839 
 4840             ;;
 4841         esac
 4842         ;;
 4843     (*)
 4844 
 4845     test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
 4846     cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
 4847 
 4848         ;;
 4849     esac
 4850     ;;
 4851 (yes)
 4852 
 4853     test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
 4854     cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
 4855 
 4856     cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
 4857 
 4858     test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
 4859         && test -z "${cf_tst_cflags}" \
 4860         && cf_fix_cppflags=no
 4861     ;;
 4862 esac
 4863 done
 4864 
 4865 if test -n "$cf_new_cflags" ; then
 4866 
 4867     test -n "$CFLAGS" && CFLAGS="$CFLAGS "
 4868     CFLAGS="${CFLAGS}$cf_new_cflags"
 4869 
 4870 fi
 4871 
 4872 if test -n "$cf_new_cppflags" ; then
 4873 
 4874     test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
 4875     CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
 4876 
 4877 fi
 4878 
 4879 if test -n "$cf_new_extra_cppflags" ; then
 4880 
 4881     test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
 4882     EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
 4883 
 4884 fi
 4885 
 4886 done
 4887 
 4888 fi
 4889 
 4890     fi
 4891 fi
 4892 fi # cf_cv_posix_visible
 4893 
 4894 echo "$as_me:4894: checking if SIGWINCH is defined" >&5
 4895 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
 4896 if test "${cf_cv_define_sigwinch+set}" = set; then
 4897   echo $ECHO_N "(cached) $ECHO_C" >&6
 4898 else
 4899 
 4900     cat >"conftest.$ac_ext" <<_ACEOF
 4901 #line 4901 "configure"
 4902 #include "confdefs.h"
 4903 
 4904 #include <sys/types.h>
 4905 #include <sys/signal.h>
 4906 
 4907 int
 4908 main (void)
 4909 {
 4910 int x = SIGWINCH; (void)x
 4911   ;
 4912   return 0;
 4913 }
 4914 _ACEOF
 4915 rm -f "conftest.$ac_objext"
 4916 if { (eval echo "$as_me:4916: \"$ac_compile\"") >&5
 4917   (eval $ac_compile) 2>&5
 4918   ac_status=$?
 4919   echo "$as_me:4919: \$? = $ac_status" >&5
 4920   (exit "$ac_status"); } &&
 4921          { ac_try='test -s "conftest.$ac_objext"'
 4922   { (eval echo "$as_me:4922: \"$ac_try\"") >&5
 4923   (eval $ac_try) 2>&5
 4924   ac_status=$?
 4925   echo "$as_me:4925: \$? = $ac_status" >&5
 4926   (exit "$ac_status"); }; }; then
 4927   cf_cv_define_sigwinch=yes
 4928 else
 4929   echo "$as_me: failed program was:" >&5
 4930 cat "conftest.$ac_ext" >&5
 4931 cat >"conftest.$ac_ext" <<_ACEOF
 4932 #line 4932 "configure"
 4933 #include "confdefs.h"
 4934 
 4935 #undef _XOPEN_SOURCE
 4936 #undef _POSIX_SOURCE
 4937 #undef _POSIX_C_SOURCE
 4938 #include <sys/types.h>
 4939 #include <sys/signal.h>
 4940 
 4941 int
 4942 main (void)
 4943 {
 4944 int x = SIGWINCH; (void)x
 4945   ;
 4946   return 0;
 4947 }
 4948 _ACEOF
 4949 rm -f "conftest.$ac_objext"
 4950 if { (eval echo "$as_me:4950: \"$ac_compile\"") >&5
 4951   (eval $ac_compile) 2>&5
 4952   ac_status=$?
 4953   echo "$as_me:4953: \$? = $ac_status" >&5
 4954   (exit "$ac_status"); } &&
 4955          { ac_try='test -s "conftest.$ac_objext"'
 4956   { (eval echo "$as_me:4956: \"$ac_try\"") >&5
 4957   (eval $ac_try) 2>&5
 4958   ac_status=$?
 4959   echo "$as_me:4959: \$? = $ac_status" >&5
 4960   (exit "$ac_status"); }; }; then
 4961   cf_cv_define_sigwinch=maybe
 4962 else
 4963   echo "$as_me: failed program was:" >&5
 4964 cat "conftest.$ac_ext" >&5
 4965 cf_cv_define_sigwinch=no
 4966 fi
 4967 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
 4968 
 4969 fi
 4970 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
 4971 
 4972 fi
 4973 echo "$as_me:4973: result: $cf_cv_define_sigwinch" >&5
 4974 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
 4975 
 4976 if test "$cf_cv_define_sigwinch" = maybe ; then
 4977 echo "$as_me:4977: checking for actual SIGWINCH definition" >&5
 4978 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
 4979 if test "${cf_cv_fixup_sigwinch+set}" = set; then
 4980   echo $ECHO_N "(cached) $ECHO_C" >&6
 4981 else
 4982 
 4983 cf_cv_fixup_sigwinch=unknown
 4984 cf_sigwinch=32
 4985 while test "$cf_sigwinch" != 1
 4986 do
 4987     cat >"conftest.$ac_ext" <<_ACEOF
 4988 #line 4988 "configure"
 4989 #include "confdefs.h"
 4990 
 4991 #undef _XOPEN_SOURCE
 4992 #undef _POSIX_SOURCE
 4993 #undef _POSIX_C_SOURCE
 4994 #include <sys/types.h>
 4995 #include <sys/signal.h>
 4996 
 4997 int
 4998 main (void)
 4999 {
 5000 
 5001 #if SIGWINCH != $cf_sigwinch
 5002 make an error
 5003 #endif
 5004 int x = SIGWINCH; (void)x
 5005   ;
 5006   return 0;
 5007 }
 5008 _ACEOF
 5009 rm -f "conftest.$ac_objext"
 5010 if { (eval echo "$as_me:5010: \"$ac_compile\"") >&5
 5011   (eval $ac_compile) 2>&5
 5012   ac_status=$?
 5013   echo "$as_me:5013: \$? = $ac_status" >&5
 5014   (exit "$ac_status"); } &&
 5015          { ac_try='test -s "conftest.$ac_objext"'
 5016   { (eval echo "$as_me:5016: \"$ac_try\"") >&5
 5017   (eval $ac_try) 2>&5
 5018   ac_status=$?
 5019   echo "$as_me:5019: \$? = $ac_status" >&5
 5020   (exit "$ac_status"); }; }; then
 5021   cf_cv_fixup_sigwinch=$cf_sigwinch
 5022      break
 5023 else
 5024   echo "$as_me: failed program was:" >&5
 5025 cat "conftest.$ac_ext" >&5
 5026 fi
 5027 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
 5028 
 5029 cf_sigwinch="`expr "$cf_sigwinch" - 1`"
 5030 done
 5031 
 5032 fi
 5033 echo "$as_me:5033: result: $cf_cv_fixup_sigwinch" >&5
 5034 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
 5035 
 5036     if test "$cf_cv_fixup_sigwinch" != unknown ; then
 5037         CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
 5038     fi
 5039 fi
 5040 
 5041 ### checks for header files
 5042 
 5043 echo "$as_me:5043: checking for ANSI C header files" >&5
 5044 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 5045 if test "${ac_cv_header_stdc+set}" = set; then
 5046   echo $ECHO_N "(cached) $ECHO_C" >&6
 5047 else
 5048   cat >"conftest.$ac_ext" <<_ACEOF
 5049 #line 5049 "configure"
 5050 #include "confdefs.h"
 5051 #include <stdlib.h>
 5052 #include <stdarg.h>
 5053 #include <string.h>
 5054 #include <float.h>
 5055 
 5056 _ACEOF
 5057 if { (eval echo "$as_me:5057: \"$ac_cpp "conftest.$ac_ext"\"") >&5
 5058   (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
 5059   ac_status=$?
 5060   $EGREP -v '^ *\+' conftest.er1 >conftest.err
 5061   rm -f conftest.er1
 5062   cat conftest.err >&5
 5063   echo "$as_me:5063: \$? = $ac_status" >&5
 5064   (exit "$ac_status"); } >/dev/null; then
 5065   if test -s conftest.err; then
 5066     ac_cpp_err=$ac_c_preproc_warn_flag
 5067   else
 5068     ac_cpp_err=
 5069   fi
 5070 else
 5071   ac_cpp_err=yes
 5072 fi
 5073 if test -z "$ac_cpp_err"; then
 5074   ac_cv_header_stdc=yes
 5075 else
 5076   echo "$as_me: failed program was:"