Home | History | Annotate | Line # | Download | only in dist
configure revision 1.1.1.7.12.2
      1           1.1  christos #! /bin/sh
      2       1.1.1.6  christos # From configure.in Revision: 1.21 .
      3           1.1  christos # Guess values for system-dependent variables and create Makefiles.
      4  1.1.1.7.12.2    martin # Generated by Autoconf 2.52.20181006.
      5           1.1  christos #
      6           1.1  christos # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
      7           1.1  christos # Free Software Foundation, Inc.
      8           1.1  christos # This configure script is free software; the Free Software Foundation
      9           1.1  christos # gives unlimited permission to copy, distribute and modify it.
     10           1.1  christos 
     11           1.1  christos # Avoid depending upon Character Ranges.
     12           1.1  christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     13           1.1  christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     14           1.1  christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     15           1.1  christos as_cr_digits='0123456789'
     16           1.1  christos as_cr_alnum=$as_cr_Letters$as_cr_digits
     17           1.1  christos 
     18           1.1  christos # Sed expression to map a string onto a valid variable name.
     19           1.1  christos as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
     20           1.1  christos 
     21           1.1  christos # Sed expression to map a string onto a valid CPP name.
     22           1.1  christos as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
     23           1.1  christos 
     24           1.1  christos # Be Bourne compatible
     25           1.1  christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     26           1.1  christos   emulate sh
     27           1.1  christos   NULLCMD=:
     28           1.1  christos elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     29           1.1  christos   set -o posix
     30           1.1  christos fi
     31           1.1  christos 
     32           1.1  christos # Name of the executable.
     33           1.1  christos as_me=`echo "$0" |sed 's,.*[\\/],,'`
     34           1.1  christos 
     35           1.1  christos if expr a : '\(a\)' >/dev/null 2>&1; then
     36           1.1  christos   as_expr=expr
     37           1.1  christos else
     38           1.1  christos   as_expr=false
     39           1.1  christos fi
     40           1.1  christos 
     41           1.1  christos rm -f conf$$ conf$$.exe conf$$.file
     42           1.1  christos echo >conf$$.file
     43           1.1  christos if ln -s conf$$.file conf$$ 2>/dev/null; then
     44           1.1  christos   # We could just check for DJGPP; but this test a) works b) is more generic
     45           1.1  christos   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
     46           1.1  christos   if test -f conf$$.exe; then
     47           1.1  christos     # Don't use ln at all; we don't have any links
     48           1.1  christos     as_ln_s='cp -p'
     49           1.1  christos   else
     50           1.1  christos     as_ln_s='ln -s'
     51           1.1  christos   fi
     52           1.1  christos elif ln conf$$.file conf$$ 2>/dev/null; then
     53           1.1  christos   as_ln_s=ln
     54           1.1  christos else
     55           1.1  christos   as_ln_s='cp -p'
     56           1.1  christos fi
     57           1.1  christos rm -f conf$$ conf$$.exe conf$$.file
     58           1.1  christos 
     59           1.1  christos as_executable_p="test -f"
     60           1.1  christos 
     61           1.1  christos # Support unset when possible.
     62           1.1  christos if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
     63           1.1  christos   as_unset=unset
     64           1.1  christos else
     65           1.1  christos   as_unset=false
     66           1.1  christos fi
     67           1.1  christos 
     68           1.1  christos # NLS nuisances.
     69           1.1  christos $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
     70           1.1  christos $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
     71           1.1  christos $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
     72           1.1  christos $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
     73           1.1  christos $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
     74           1.1  christos $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
     75           1.1  christos $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
     76           1.1  christos $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
     77           1.1  christos 
     78           1.1  christos # IFS
     79           1.1  christos # We need space, tab and new line, in precisely that order.
     80           1.1  christos as_nl='
     81           1.1  christos '
     82           1.1  christos IFS=" 	$as_nl"
     83           1.1  christos 
     84           1.1  christos # CDPATH.
     85           1.1  christos $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
     86           1.1  christos 
     87           1.1  christos # Name of the host.
     88           1.1  christos # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
     89           1.1  christos # so uname gets run too.
     90           1.1  christos ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
     91           1.1  christos 
     92           1.1  christos exec 6>&1
     93           1.1  christos 
     94           1.1  christos #
     95           1.1  christos # Initializations.
     96           1.1  christos #
     97           1.1  christos ac_default_prefix=/usr/local
     98           1.1  christos cross_compiling=no
     99           1.1  christos subdirs=
    100           1.1  christos MFLAGS= MAKEFLAGS=
    101           1.1  christos SHELL=${CONFIG_SHELL-/bin/sh}
    102           1.1  christos 
    103           1.1  christos # Maximum number of lines to put in a shell here document.
    104           1.1  christos # This variable seems obsolete.  It should probably be removed, and
    105           1.1  christos # only ac_max_sed_lines should be used.
    106           1.1  christos : ${ac_max_here_lines=38}
    107           1.1  christos 
    108           1.1  christos ac_unique_file="main.c"
    109       1.1.1.5  christos # Factoring default headers for most tests.
    110       1.1.1.5  christos ac_includes_default="\
    111       1.1.1.5  christos #include <stdio.h>
    112       1.1.1.5  christos #if HAVE_SYS_TYPES_H
    113       1.1.1.5  christos # include <sys/types.h>
    114       1.1.1.5  christos #endif
    115       1.1.1.5  christos #if HAVE_SYS_STAT_H
    116       1.1.1.5  christos # include <sys/stat.h>
    117       1.1.1.5  christos #endif
    118       1.1.1.5  christos #if STDC_HEADERS
    119       1.1.1.5  christos # include <stdlib.h>
    120       1.1.1.5  christos # include <stddef.h>
    121       1.1.1.5  christos #else
    122       1.1.1.5  christos # if HAVE_STDLIB_H
    123       1.1.1.5  christos #  include <stdlib.h>
    124       1.1.1.5  christos # endif
    125       1.1.1.5  christos #endif
    126       1.1.1.5  christos #if HAVE_STRING_H
    127       1.1.1.5  christos # if !STDC_HEADERS && HAVE_MEMORY_H
    128       1.1.1.5  christos #  include <memory.h>
    129       1.1.1.5  christos # endif
    130       1.1.1.5  christos # include <string.h>
    131       1.1.1.5  christos #endif
    132       1.1.1.5  christos #if HAVE_STRINGS_H
    133       1.1.1.5  christos # include <strings.h>
    134       1.1.1.5  christos #endif
    135       1.1.1.5  christos #if HAVE_INTTYPES_H
    136       1.1.1.5  christos # include <inttypes.h>
    137       1.1.1.5  christos #else
    138       1.1.1.5  christos # if HAVE_STDINT_H
    139       1.1.1.5  christos #  include <stdint.h>
    140       1.1.1.5  christos # endif
    141       1.1.1.5  christos #endif
    142       1.1.1.5  christos #if HAVE_UNISTD_H
    143       1.1.1.5  christos # include <unistd.h>
    144       1.1.1.5  christos #endif"
    145           1.1  christos 
    146           1.1  christos # Initialize some variables set by options.
    147           1.1  christos ac_init_help=
    148           1.1  christos ac_init_version=false
    149           1.1  christos # The variables have the same names as the options, with
    150           1.1  christos # dashes changed to underlines.
    151           1.1  christos cache_file=/dev/null
    152           1.1  christos exec_prefix=NONE
    153           1.1  christos no_create=
    154           1.1  christos no_recursion=
    155           1.1  christos prefix=NONE
    156           1.1  christos program_prefix=NONE
    157           1.1  christos program_suffix=NONE
    158           1.1  christos program_transform_name=s,x,x,
    159           1.1  christos silent=
    160           1.1  christos site=
    161           1.1  christos srcdir=
    162           1.1  christos verbose=
    163           1.1  christos x_includes=NONE
    164           1.1  christos x_libraries=NONE
    165           1.1  christos 
    166           1.1  christos # Installation directory options.
    167           1.1  christos # These are left unexpanded so users can "make install exec_prefix=/foo"
    168           1.1  christos # and all the variables that are supposed to be based on exec_prefix
    169           1.1  christos # by default will actually change.
    170           1.1  christos # Use braces instead of parens because sh, perl, etc. also accept them.
    171           1.1  christos bindir='${exec_prefix}/bin'
    172           1.1  christos sbindir='${exec_prefix}/sbin'
    173           1.1  christos libexecdir='${exec_prefix}/libexec'
    174       1.1.1.4  christos datarootdir='${prefix}/share'
    175       1.1.1.4  christos datadir='${datarootdir}'
    176           1.1  christos sysconfdir='${prefix}/etc'
    177           1.1  christos sharedstatedir='${prefix}/com'
    178           1.1  christos localstatedir='${prefix}/var'
    179  1.1.1.7.12.2    martin runstatedir='${localstatedir}/run'
    180           1.1  christos libdir='${exec_prefix}/lib'
    181           1.1  christos includedir='${prefix}/include'
    182           1.1  christos oldincludedir='/usr/include'
    183       1.1.1.4  christos infodir='${datarootdir}/info'
    184       1.1.1.4  christos mandir='${datarootdir}/man'
    185           1.1  christos 
    186           1.1  christos # Identity of this package.
    187           1.1  christos PACKAGE_NAME=
    188           1.1  christos PACKAGE_TARNAME=
    189           1.1  christos PACKAGE_VERSION=
    190           1.1  christos PACKAGE_STRING=
    191           1.1  christos PACKAGE_BUGREPORT=
    192           1.1  christos 
    193           1.1  christos ac_prev=
    194           1.1  christos for ac_option
    195           1.1  christos do
    196           1.1  christos   # If the previous option needs an argument, assign it.
    197           1.1  christos   if test -n "$ac_prev"; then
    198           1.1  christos     eval "$ac_prev=\$ac_option"
    199           1.1  christos     ac_prev=
    200           1.1  christos     continue
    201           1.1  christos   fi
    202           1.1  christos 
    203           1.1  christos   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
    204           1.1  christos 
    205           1.1  christos   # Accept the important Cygnus configure options, so we can diagnose typos.
    206           1.1  christos 
    207           1.1  christos   case $ac_option in
    208           1.1  christos 
    209           1.1  christos   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    210           1.1  christos     ac_prev=bindir ;;
    211           1.1  christos   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    212           1.1  christos     bindir=$ac_optarg ;;
    213           1.1  christos 
    214           1.1  christos   -build | --build | --buil | --bui | --bu)
    215           1.1  christos     ac_prev=build_alias ;;
    216           1.1  christos   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    217           1.1  christos     build_alias=$ac_optarg ;;
    218           1.1  christos 
    219           1.1  christos   -cache-file | --cache-file | --cache-fil | --cache-fi \
    220           1.1  christos   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    221           1.1  christos     ac_prev=cache_file ;;
    222           1.1  christos   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    223           1.1  christos   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    224           1.1  christos     cache_file=$ac_optarg ;;
    225           1.1  christos 
    226           1.1  christos   --config-cache | -C)
    227           1.1  christos     cache_file=config.cache ;;
    228           1.1  christos 
    229           1.1  christos   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    230           1.1  christos     ac_prev=datadir ;;
    231           1.1  christos   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    232           1.1  christos   | --da=*)
    233           1.1  christos     datadir=$ac_optarg ;;
    234           1.1  christos 
    235       1.1.1.4  christos   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    236       1.1.1.4  christos   | --dataroo | --dataro | --datar)
    237       1.1.1.4  christos     ac_prev=datarootdir ;;
    238       1.1.1.4  christos   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    239       1.1.1.4  christos   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    240       1.1.1.4  christos     datarootdir=$ac_optarg ;;
    241       1.1.1.4  christos 
    242           1.1  christos   -disable-* | --disable-*)
    243           1.1  christos     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    244           1.1  christos     # Reject names that are not valid shell variable names.
    245           1.1  christos     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    246           1.1  christos       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    247           1.1  christos    { (exit 1); exit 1; }; }
    248           1.1  christos     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    249           1.1  christos     eval "enable_$ac_feature=no" ;;
    250           1.1  christos 
    251           1.1  christos   -enable-* | --enable-*)
    252           1.1  christos     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    253           1.1  christos     # Reject names that are not valid shell variable names.
    254           1.1  christos     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    255           1.1  christos       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    256           1.1  christos    { (exit 1); exit 1; }; }
    257           1.1  christos     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    258           1.1  christos     case $ac_option in
    259           1.1  christos       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    260           1.1  christos       *) ac_optarg=yes ;;
    261           1.1  christos     esac
    262           1.1  christos     eval "enable_$ac_feature='$ac_optarg'" ;;
    263           1.1  christos 
    264           1.1  christos   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    265           1.1  christos   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    266           1.1  christos   | --exec | --exe | --ex)
    267           1.1  christos     ac_prev=exec_prefix ;;
    268           1.1  christos   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    269           1.1  christos   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    270           1.1  christos   | --exec=* | --exe=* | --ex=*)
    271           1.1  christos     exec_prefix=$ac_optarg ;;
    272           1.1  christos 
    273           1.1  christos   -gas | --gas | --ga | --g)
    274           1.1  christos     # Obsolete; use --with-gas.
    275           1.1  christos     with_gas=yes ;;
    276           1.1  christos 
    277           1.1  christos   -help | --help | --hel | --he | -h)
    278           1.1  christos     ac_init_help=long ;;
    279           1.1  christos   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    280           1.1  christos     ac_init_help=recursive ;;
    281           1.1  christos   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    282           1.1  christos     ac_init_help=short ;;
    283           1.1  christos 
    284           1.1  christos   -host | --host | --hos | --ho)
    285           1.1  christos     ac_prev=host_alias ;;
    286           1.1  christos   -host=* | --host=* | --hos=* | --ho=*)
    287           1.1  christos     host_alias=$ac_optarg ;;
    288           1.1  christos 
    289           1.1  christos   -includedir | --includedir | --includedi | --included | --include \
    290           1.1  christos   | --includ | --inclu | --incl | --inc)
    291           1.1  christos     ac_prev=includedir ;;
    292           1.1  christos   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    293           1.1  christos   | --includ=* | --inclu=* | --incl=* | --inc=*)
    294           1.1  christos     includedir=$ac_optarg ;;
    295           1.1  christos 
    296           1.1  christos   -infodir | --infodir | --infodi | --infod | --info | --inf)
    297           1.1  christos     ac_prev=infodir ;;
    298           1.1  christos   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    299           1.1  christos     infodir=$ac_optarg ;;
    300           1.1  christos 
    301           1.1  christos   -libdir | --libdir | --libdi | --libd)
    302           1.1  christos     ac_prev=libdir ;;
    303           1.1  christos   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    304           1.1  christos     libdir=$ac_optarg ;;
    305           1.1  christos 
    306           1.1  christos   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    307           1.1  christos   | --libexe | --libex | --libe)
    308           1.1  christos     ac_prev=libexecdir ;;
    309           1.1  christos   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    310           1.1  christos   | --libexe=* | --libex=* | --libe=*)
    311           1.1  christos     libexecdir=$ac_optarg ;;
    312           1.1  christos 
    313           1.1  christos   -localstatedir | --localstatedir | --localstatedi | --localstated \
    314           1.1  christos   | --localstate | --localstat | --localsta | --localst \
    315           1.1  christos   | --locals | --local | --loca | --loc | --lo)
    316           1.1  christos     ac_prev=localstatedir ;;
    317           1.1  christos   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    318           1.1  christos   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    319           1.1  christos   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    320           1.1  christos     localstatedir=$ac_optarg ;;
    321           1.1  christos 
    322  1.1.1.7.12.2    martin   -runstatedir | --runstatedir | --runstatedi | --runstated \
    323  1.1.1.7.12.2    martin   | --runstate | --runstat | --runsta | --runst \
    324  1.1.1.7.12.2    martin   | --runs | --run | --ru)
    325  1.1.1.7.12.2    martin     ac_prev=runstatedir ;;
    326  1.1.1.7.12.2    martin   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
    327  1.1.1.7.12.2    martin   | --runstate=* | --runstat=* | --runsta=* | --runst=* \
    328  1.1.1.7.12.2    martin   | --runs=* | --run=* | --ru=*)
    329  1.1.1.7.12.2    martin     runstatedir=$ac_optarg ;;
    330  1.1.1.7.12.2    martin 
    331           1.1  christos   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    332           1.1  christos     ac_prev=mandir ;;
    333           1.1  christos   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    334           1.1  christos     mandir=$ac_optarg ;;
    335           1.1  christos 
    336           1.1  christos   -nfp | --nfp | --nf)
    337           1.1  christos     # Obsolete; use --without-fp.
    338           1.1  christos     with_fp=no ;;
    339           1.1  christos 
    340           1.1  christos   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    341           1.1  christos   | --no-cr | --no-c)
    342           1.1  christos     no_create=yes ;;
    343           1.1  christos 
    344           1.1  christos   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    345           1.1  christos   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    346           1.1  christos     no_recursion=yes ;;
    347           1.1  christos 
    348           1.1  christos   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
    349           1.1  christos   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
    350           1.1  christos   | --oldin | --oldi | --old | --ol | --o)
    351           1.1  christos     ac_prev=oldincludedir ;;
    352           1.1  christos   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
    353           1.1  christos   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    354           1.1  christos   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    355           1.1  christos     oldincludedir=$ac_optarg ;;
    356           1.1  christos 
    357           1.1  christos   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    358           1.1  christos     ac_prev=prefix ;;
    359           1.1  christos   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    360           1.1  christos     prefix=$ac_optarg ;;
    361           1.1  christos 
    362           1.1  christos   -program-prefix | --program-prefix | --program-prefi | --program-pref \
    363           1.1  christos   | --program-pre | --program-pr | --program-p)
    364           1.1  christos     ac_prev=program_prefix ;;
    365           1.1  christos   -program-prefix=* | --program-prefix=* | --program-prefi=* \
    366           1.1  christos   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    367           1.1  christos     program_prefix=$ac_optarg ;;
    368           1.1  christos 
    369           1.1  christos   -program-suffix | --program-suffix | --program-suffi | --program-suff \
    370           1.1  christos   | --program-suf | --program-su | --program-s)
    371           1.1  christos     ac_prev=program_suffix ;;
    372           1.1  christos   -program-suffix=* | --program-suffix=* | --program-suffi=* \
    373           1.1  christos   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    374           1.1  christos     program_suffix=$ac_optarg ;;
    375           1.1  christos 
    376           1.1  christos   -program-transform-name | --program-transform-name \
    377           1.1  christos   | --program-transform-nam | --program-transform-na \
    378           1.1  christos   | --program-transform-n | --program-transform- \
    379           1.1  christos   | --program-transform | --program-transfor \
    380           1.1  christos   | --program-transfo | --program-transf \
    381           1.1  christos   | --program-trans | --program-tran \
    382           1.1  christos   | --progr-tra | --program-tr | --program-t)
    383           1.1  christos     ac_prev=program_transform_name ;;
    384           1.1  christos   -program-transform-name=* | --program-transform-name=* \
    385           1.1  christos   | --program-transform-nam=* | --program-transform-na=* \
    386           1.1  christos   | --program-transform-n=* | --program-transform-=* \
    387           1.1  christos   | --program-transform=* | --program-transfor=* \
    388           1.1  christos   | --program-transfo=* | --program-transf=* \
    389           1.1  christos   | --program-trans=* | --program-tran=* \
    390           1.1  christos   | --progr-tra=* | --program-tr=* | --program-t=*)
    391           1.1  christos     program_transform_name=$ac_optarg ;;
    392           1.1  christos 
    393           1.1  christos   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    394           1.1  christos   | -silent | --silent | --silen | --sile | --sil)
    395           1.1  christos     silent=yes ;;
    396           1.1  christos 
    397           1.1  christos   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    398           1.1  christos     ac_prev=sbindir ;;
    399           1.1  christos   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    400           1.1  christos   | --sbi=* | --sb=*)
    401           1.1  christos     sbindir=$ac_optarg ;;
    402           1.1  christos 
    403           1.1  christos   -sharedstatedir | --sharedstatedir | --sharedstatedi \
    404           1.1  christos   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
    405           1.1  christos   | --sharedst | --shareds | --shared | --share | --shar \
    406           1.1  christos   | --sha | --sh)
    407           1.1  christos     ac_prev=sharedstatedir ;;
    408           1.1  christos   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
    409           1.1  christos   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
    410           1.1  christos   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
    411           1.1  christos   | --sha=* | --sh=*)
    412           1.1  christos     sharedstatedir=$ac_optarg ;;
    413           1.1  christos 
    414           1.1  christos   -site | --site | --sit)
    415           1.1  christos     ac_prev=site ;;
    416           1.1  christos   -site=* | --site=* | --sit=*)
    417           1.1  christos     site=$ac_optarg ;;
    418           1.1  christos 
    419           1.1  christos   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    420           1.1  christos     ac_prev=srcdir ;;
    421           1.1  christos   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    422           1.1  christos     srcdir=$ac_optarg ;;
    423           1.1  christos 
    424           1.1  christos   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
    425           1.1  christos   | --syscon | --sysco | --sysc | --sys | --sy)
    426           1.1  christos     ac_prev=sysconfdir ;;
    427           1.1  christos   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
    428           1.1  christos   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    429           1.1  christos     sysconfdir=$ac_optarg ;;
    430           1.1  christos 
    431           1.1  christos   -target | --target | --targe | --targ | --tar | --ta | --t)
    432           1.1  christos     ac_prev=target_alias ;;
    433           1.1  christos   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    434           1.1  christos     target_alias=$ac_optarg ;;
    435           1.1  christos 
    436           1.1  christos   -v | -verbose | --verbose | --verbos | --verbo | --verb)
    437           1.1  christos     verbose=yes ;;
    438           1.1  christos 
    439           1.1  christos   -version | --version | --versio | --versi | --vers | -V)
    440           1.1  christos     ac_init_version=: ;;
    441           1.1  christos 
    442           1.1  christos   -with-* | --with-*)
    443           1.1  christos     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    444           1.1  christos     # Reject names that are not valid shell variable names.
    445           1.1  christos     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    446           1.1  christos       { echo "$as_me: error: invalid package name: $ac_package" >&2
    447           1.1  christos    { (exit 1); exit 1; }; }
    448           1.1  christos     ac_package=`echo $ac_package| sed 's/-/_/g'`
    449           1.1  christos     case $ac_option in
    450           1.1  christos       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    451           1.1  christos       *) ac_optarg=yes ;;
    452           1.1  christos     esac
    453           1.1  christos     eval "with_$ac_package='$ac_optarg'" ;;
    454           1.1  christos 
    455           1.1  christos   -without-* | --without-*)
    456           1.1  christos     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    457           1.1  christos     # Reject names that are not valid shell variable names.
    458           1.1  christos     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    459           1.1  christos       { echo "$as_me: error: invalid package name: $ac_package" >&2
    460           1.1  christos    { (exit 1); exit 1; }; }
    461           1.1  christos     ac_package=`echo $ac_package | sed 's/-/_/g'`
    462           1.1  christos     eval "with_$ac_package=no" ;;
    463           1.1  christos 
    464           1.1  christos   --x)
    465           1.1  christos     # Obsolete; use --with-x.
    466           1.1  christos     with_x=yes ;;
    467           1.1  christos 
    468           1.1  christos   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
    469           1.1  christos   | --x-incl | --x-inc | --x-in | --x-i)
    470           1.1  christos     ac_prev=x_includes ;;
    471           1.1  christos   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
    472           1.1  christos   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    473           1.1  christos     x_includes=$ac_optarg ;;
    474           1.1  christos 
    475           1.1  christos   -x-libraries | --x-libraries | --x-librarie | --x-librari \
    476           1.1  christos   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    477           1.1  christos     ac_prev=x_libraries ;;
    478           1.1  christos   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
    479           1.1  christos   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    480           1.1  christos     x_libraries=$ac_optarg ;;
    481           1.1  christos 
    482           1.1  christos   -*) { echo "$as_me: error: unrecognized option: $ac_option
    483           1.1  christos Try \`$0 --help' for more information." >&2
    484           1.1  christos    { (exit 1); exit 1; }; }
    485           1.1  christos     ;;
    486           1.1  christos 
    487           1.1  christos   *=*)
    488           1.1  christos     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    489           1.1  christos     # Reject names that are not valid shell variable names.
    490           1.1  christos     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
    491           1.1  christos       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
    492           1.1  christos    { (exit 1); exit 1; }; }
    493           1.1  christos     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    494           1.1  christos     eval "$ac_envvar='$ac_optarg'"
    495           1.1  christos     export $ac_envvar ;;
    496           1.1  christos 
    497           1.1  christos   *)
    498           1.1  christos     # FIXME: should be removed in autoconf 3.0.
    499           1.1  christos     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    500           1.1  christos     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    501           1.1  christos       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    502           1.1  christos     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    503           1.1  christos     ;;
    504           1.1  christos 
    505           1.1  christos   esac
    506           1.1  christos done
    507           1.1  christos 
    508           1.1  christos if test -n "$ac_prev"; then
    509           1.1  christos   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
    510           1.1  christos   { echo "$as_me: error: missing argument to $ac_option" >&2
    511           1.1  christos    { (exit 1); exit 1; }; }
    512           1.1  christos fi
    513           1.1  christos 
    514           1.1  christos # Be sure to have absolute paths.
    515           1.1  christos for ac_var in exec_prefix prefix
    516           1.1  christos do
    517           1.1  christos   eval ac_val=$`echo $ac_var`
    518           1.1  christos   case $ac_val in
    519           1.1  christos     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
    520           1.1  christos     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
    521           1.1  christos    { (exit 1); exit 1; }; };;
    522           1.1  christos   esac
    523           1.1  christos done
    524           1.1  christos 
    525           1.1  christos # Be sure to have absolute paths.
    526       1.1.1.4  christos for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
    527           1.1  christos               localstatedir libdir includedir oldincludedir infodir mandir
    528           1.1  christos do
    529           1.1  christos   eval ac_val=$`echo $ac_var`
    530           1.1  christos   case $ac_val in
    531           1.1  christos     [\\/$]* | ?:[\\/]* ) ;;
    532           1.1  christos     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
    533           1.1  christos    { (exit 1); exit 1; }; };;
    534           1.1  christos   esac
    535           1.1  christos done
    536           1.1  christos 
    537           1.1  christos # There might be people who depend on the old broken behavior: `$host'
    538           1.1  christos # used to hold the argument of --host etc.
    539           1.1  christos build=$build_alias
    540           1.1  christos host=$host_alias
    541           1.1  christos target=$target_alias
    542           1.1  christos 
    543           1.1  christos # FIXME: should be removed in autoconf 3.0.
    544           1.1  christos if test "x$host_alias" != x; then
    545           1.1  christos   if test "x$build_alias" = x; then
    546           1.1  christos     cross_compiling=maybe
    547           1.1  christos     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    548           1.1  christos     If a cross compiler is detected then cross compile mode will be used." >&2
    549           1.1  christos   elif test "x$build_alias" != "x$host_alias"; then
    550           1.1  christos     cross_compiling=yes
    551           1.1  christos   fi
    552           1.1  christos fi
    553           1.1  christos 
    554           1.1  christos ac_tool_prefix=
    555           1.1  christos test -n "$host_alias" && ac_tool_prefix=$host_alias-
    556           1.1  christos 
    557           1.1  christos test "$silent" = yes && exec 6>/dev/null
    558           1.1  christos 
    559           1.1  christos # Find the source files, if location was not specified.
    560           1.1  christos if test -z "$srcdir"; then
    561           1.1  christos   ac_srcdir_defaulted=yes
    562           1.1  christos   # Try the directory containing this script, then its parent.
    563           1.1  christos   ac_prog=$0
    564           1.1  christos   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
    565           1.1  christos   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
    566           1.1  christos   srcdir=$ac_confdir
    567           1.1  christos   if test ! -r $srcdir/$ac_unique_file; then
    568           1.1  christos     srcdir=..
    569           1.1  christos   fi
    570           1.1  christos else
    571           1.1  christos   ac_srcdir_defaulted=no
    572           1.1  christos fi
    573           1.1  christos if test ! -r $srcdir/$ac_unique_file; then
    574           1.1  christos   if test "$ac_srcdir_defaulted" = yes; then
    575           1.1  christos     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
    576           1.1  christos    { (exit 1); exit 1; }; }
    577           1.1  christos   else
    578           1.1  christos     { echo "$as_me: error: cannot find sources in $srcdir" >&2
    579           1.1  christos    { (exit 1); exit 1; }; }
    580           1.1  christos   fi
    581           1.1  christos fi
    582           1.1  christos srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
    583           1.1  christos ac_env_build_alias_set=${build_alias+set}
    584           1.1  christos ac_env_build_alias_value=$build_alias
    585           1.1  christos ac_cv_env_build_alias_set=${build_alias+set}
    586           1.1  christos ac_cv_env_build_alias_value=$build_alias
    587           1.1  christos ac_env_host_alias_set=${host_alias+set}
    588           1.1  christos ac_env_host_alias_value=$host_alias
    589           1.1  christos ac_cv_env_host_alias_set=${host_alias+set}
    590           1.1  christos ac_cv_env_host_alias_value=$host_alias
    591           1.1  christos ac_env_target_alias_set=${target_alias+set}
    592           1.1  christos ac_env_target_alias_value=$target_alias
    593           1.1  christos ac_cv_env_target_alias_set=${target_alias+set}
    594           1.1  christos ac_cv_env_target_alias_value=$target_alias
    595           1.1  christos ac_env_CC_set=${CC+set}
    596           1.1  christos ac_env_CC_value=$CC
    597           1.1  christos ac_cv_env_CC_set=${CC+set}
    598           1.1  christos ac_cv_env_CC_value=$CC
    599           1.1  christos ac_env_CFLAGS_set=${CFLAGS+set}
    600           1.1  christos ac_env_CFLAGS_value=$CFLAGS
    601           1.1  christos ac_cv_env_CFLAGS_set=${CFLAGS+set}
    602           1.1  christos ac_cv_env_CFLAGS_value=$CFLAGS
    603           1.1  christos ac_env_LDFLAGS_set=${LDFLAGS+set}
    604           1.1  christos ac_env_LDFLAGS_value=$LDFLAGS
    605           1.1  christos ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
    606           1.1  christos ac_cv_env_LDFLAGS_value=$LDFLAGS
    607           1.1  christos ac_env_CPPFLAGS_set=${CPPFLAGS+set}
    608           1.1  christos ac_env_CPPFLAGS_value=$CPPFLAGS
    609           1.1  christos ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
    610           1.1  christos ac_cv_env_CPPFLAGS_value=$CPPFLAGS
    611           1.1  christos ac_env_CPP_set=${CPP+set}
    612           1.1  christos ac_env_CPP_value=$CPP
    613           1.1  christos ac_cv_env_CPP_set=${CPP+set}
    614           1.1  christos ac_cv_env_CPP_value=$CPP
    615           1.1  christos 
    616           1.1  christos #
    617           1.1  christos # Report the --help message.
    618           1.1  christos #
    619           1.1  christos if test "$ac_init_help" = "long"; then
    620           1.1  christos   # Omit some internal or obsolete options to make the list less imposing.
    621           1.1  christos   # This message is too long to be a string in the A/UX 3.1 sh.
    622           1.1  christos   cat <<EOF
    623           1.1  christos \`configure' configures this package to adapt to many kinds of systems.
    624           1.1  christos 
    625           1.1  christos Usage: $0 [OPTION]... [VAR=VALUE]...
    626           1.1  christos 
    627           1.1  christos To assign environment variables (e.g., CC, CFLAGS...), specify them as
    628           1.1  christos VAR=VALUE.  See below for descriptions of some of the useful variables.
    629           1.1  christos 
    630           1.1  christos Defaults for the options are specified in brackets.
    631           1.1  christos 
    632           1.1  christos Configuration:
    633           1.1  christos   -h, --help              display this help and exit
    634           1.1  christos       --help=short        display options specific to this package
    635           1.1  christos       --help=recursive    display the short help of all the included packages
    636           1.1  christos   -V, --version           display version information and exit
    637           1.1  christos   -q, --quiet, --silent   do not print \`checking...' messages
    638           1.1  christos       --cache-file=FILE   cache test results in FILE [disabled]
    639           1.1  christos   -C, --config-cache      alias for \`--cache-file=config.cache'
    640           1.1  christos   -n, --no-create         do not create output files
    641           1.1  christos       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
    642           1.1  christos 
    643           1.1  christos EOF
    644           1.1  christos 
    645           1.1  christos   cat <<EOF
    646           1.1  christos Installation directories:
    647           1.1  christos   --prefix=PREFIX         install architecture-independent files in PREFIX
    648           1.1  christos                           [$ac_default_prefix]
    649           1.1  christos   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    650           1.1  christos                           [PREFIX]
    651           1.1  christos 
    652           1.1  christos By default, \`make install' will install all the files in
    653           1.1  christos \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
    654           1.1  christos an installation prefix other than \`$ac_default_prefix' using \`--prefix',
    655           1.1  christos for instance \`--prefix=\$HOME'.
    656           1.1  christos 
    657           1.1  christos For better control, use the options below.
    658           1.1  christos 
    659           1.1  christos Fine tuning of the installation directories:
    660           1.1  christos   --bindir=DIR            user executables [EPREFIX/bin]
    661           1.1  christos   --sbindir=DIR           system admin executables [EPREFIX/sbin]
    662           1.1  christos   --libexecdir=DIR        program executables [EPREFIX/libexec]
    663       1.1.1.4  christos   --datarootdir=DIR       read-only architecture-independent data [PREFIX/share]
    664       1.1.1.4  christos   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
    665           1.1  christos   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
    666           1.1  christos   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
    667           1.1  christos   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
    668  1.1.1.7.12.2    martin   --runstatedir=DIR       extra definition of runtime data [LOCALSTATEDIR/run]
    669           1.1  christos   --libdir=DIR            object code libraries [EPREFIX/lib]
    670           1.1  christos   --includedir=DIR        C header files [PREFIX/include]
    671           1.1  christos   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
    672       1.1.1.4  christos   --infodir=DIR           info documentation [DATAROOTDIR/info]
    673       1.1.1.4  christos   --mandir=DIR            man documentation [DATAROOTDIR/man]
    674           1.1  christos EOF
    675           1.1  christos 
    676           1.1  christos   cat <<\EOF
    677           1.1  christos 
    678           1.1  christos Program names:
    679           1.1  christos   --program-prefix=PREFIX            prepend PREFIX to installed program names
    680           1.1  christos   --program-suffix=SUFFIX            append SUFFIX to installed program names
    681           1.1  christos   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
    682           1.1  christos 
    683           1.1  christos System types:
    684           1.1  christos   --build=BUILD           configure for building on BUILD [guessed]
    685           1.1  christos   --host=HOST       build programs to run on HOST [BUILD]
    686           1.1  christos   --target=TARGET   configure for building compilers for TARGET [HOST]
    687           1.1  christos EOF
    688           1.1  christos fi
    689           1.1  christos 
    690           1.1  christos if test -n "$ac_init_help"; then
    691           1.1  christos 
    692           1.1  christos   cat <<\EOF
    693           1.1  christos 
    694           1.1  christos Optional Packages:
    695           1.1  christos   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    696           1.1  christos   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    697           1.1  christos 
    698           1.1  christos Optional Features:
    699           1.1  christos   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    700           1.1  christos   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    701           1.1  christos 
    702       1.1.1.5  christos   --with-max-table-size=N set the maximum table size = N (no default)
    703       1.1.1.5  christos   --enable-btyacc         turn on support for the btyacc backtracking
    704       1.1.1.5  christos                           extension (default: no)
    705           1.1  christos   --with-warnings         test: turn on gcc warnings
    706       1.1.1.4  christos   --disable-echo          do not display "compiling" commands
    707           1.1  christos   --with-dmalloc          test: use Gray Watson's dmalloc library
    708           1.1  christos   --with-dbmalloc         test: use Conor Cahill's dbmalloc library
    709           1.1  christos   --with-valgrind         test: use valgrind
    710           1.1  christos   --disable-leaks         test: free permanent memory, analyze leaks
    711       1.1.1.6  christos   --with-man2html=XXX     use XXX rather than groff
    712           1.1  christos 
    713           1.1  christos Some influential environment variables:
    714           1.1  christos   CC          C compiler command
    715           1.1  christos   CFLAGS      C compiler flags
    716           1.1  christos   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
    717           1.1  christos               nonstandard directory <lib dir>
    718           1.1  christos   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
    719           1.1  christos               headers in a nonstandard directory <include dir>
    720           1.1  christos   CPP         C preprocessor
    721           1.1  christos 
    722           1.1  christos Use these variables to override the choices made by `configure' or to help
    723           1.1  christos it to find libraries and programs with nonstandard names/locations.
    724           1.1  christos 
    725           1.1  christos EOF
    726           1.1  christos fi
    727           1.1  christos 
    728           1.1  christos if test "$ac_init_help" = "recursive"; then
    729           1.1  christos   # If there are subdirs, report their specific --help.
    730           1.1  christos   ac_popdir=`pwd`
    731           1.1  christos   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
    732           1.1  christos     cd $ac_subdir
    733           1.1  christos     # A "../" for each directory in /$ac_subdir.
    734           1.1  christos     ac_dots=`echo $ac_subdir |
    735           1.1  christos              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    736           1.1  christos 
    737           1.1  christos     case $srcdir in
    738           1.1  christos     .) # No --srcdir option.  We are building in place.
    739           1.1  christos       ac_sub_srcdir=$srcdir ;;
    740           1.1  christos     [\\/]* | ?:[\\/]* ) # Absolute path.
    741           1.1  christos       ac_sub_srcdir=$srcdir/$ac_subdir ;;
    742           1.1  christos     *) # Relative path.
    743           1.1  christos       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
    744           1.1  christos     esac
    745           1.1  christos 
    746           1.1  christos     # Check for guested configure; otherwise get Cygnus style configure.
    747           1.1  christos     if test -f $ac_sub_srcdir/configure.gnu; then
    748           1.1  christos       echo
    749           1.1  christos       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
    750           1.1  christos     elif test -f $ac_sub_srcdir/configure; then
    751           1.1  christos       echo
    752           1.1  christos       $SHELL $ac_sub_srcdir/configure  --help=recursive
    753           1.1  christos     elif test -f $ac_sub_srcdir/configure.ac ||
    754           1.1  christos            test -f $ac_sub_srcdir/configure.in; then
    755           1.1  christos       echo
    756           1.1  christos       $ac_configure --help
    757           1.1  christos     else
    758           1.1  christos       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
    759           1.1  christos     fi
    760           1.1  christos     cd $ac_popdir
    761           1.1  christos   done
    762           1.1  christos fi
    763           1.1  christos 
    764           1.1  christos test -n "$ac_init_help" && exit 0
    765           1.1  christos if $ac_init_version; then
    766           1.1  christos   cat <<\EOF
    767           1.1  christos 
    768           1.1  christos Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
    769           1.1  christos Free Software Foundation, Inc.
    770           1.1  christos This configure script is free software; the Free Software Foundation
    771           1.1  christos gives unlimited permission to copy, distribute and modify it.
    772           1.1  christos EOF
    773           1.1  christos   exit 0
    774           1.1  christos fi
    775           1.1  christos exec 5>config.log
    776           1.1  christos cat >&5 <<EOF
    777           1.1  christos This file contains any messages produced by compilers while
    778           1.1  christos running configure, to aid debugging if configure makes a mistake.
    779           1.1  christos 
    780           1.1  christos It was created by $as_me, which was
    781  1.1.1.7.12.2    martin generated by GNU Autoconf 2.52.20181006.  Invocation command line was
    782           1.1  christos 
    783           1.1  christos   $ $0 $@
    784           1.1  christos 
    785           1.1  christos EOF
    786           1.1  christos {
    787           1.1  christos cat <<_ASUNAME
    788           1.1  christos ## ---------- ##
    789           1.1  christos ## Platform.  ##
    790           1.1  christos ## ---------- ##
    791           1.1  christos 
    792           1.1  christos hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
    793           1.1  christos uname -m = `(uname -m) 2>/dev/null || echo unknown`
    794           1.1  christos uname -r = `(uname -r) 2>/dev/null || echo unknown`
    795           1.1  christos uname -s = `(uname -s) 2>/dev/null || echo unknown`
    796           1.1  christos uname -v = `(uname -v) 2>/dev/null || echo unknown`
    797           1.1  christos 
    798           1.1  christos /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
    799           1.1  christos /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
    800           1.1  christos 
    801           1.1  christos /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
    802           1.1  christos /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
    803           1.1  christos /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
    804           1.1  christos hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
    805           1.1  christos /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
    806           1.1  christos /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
    807           1.1  christos /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
    808           1.1  christos 
    809           1.1  christos PATH = $PATH
    810           1.1  christos 
    811           1.1  christos _ASUNAME
    812           1.1  christos } >&5
    813           1.1  christos 
    814           1.1  christos cat >&5 <<EOF
    815           1.1  christos ## ------------ ##
    816           1.1  christos ## Core tests.  ##
    817           1.1  christos ## ------------ ##
    818           1.1  christos 
    819           1.1  christos EOF
    820           1.1  christos 
    821           1.1  christos # Keep a trace of the command line.
    822           1.1  christos # Strip out --no-create and --no-recursion so they do not pile up.
    823           1.1  christos # Also quote any args containing shell meta-characters.
    824           1.1  christos ac_configure_args=
    825           1.1  christos ac_sep=
    826           1.1  christos for ac_arg
    827           1.1  christos do
    828           1.1  christos   case $ac_arg in
    829           1.1  christos   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    830           1.1  christos   | --no-cr | --no-c) ;;
    831           1.1  christos   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    832           1.1  christos   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
    833           1.1  christos   *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    834           1.1  christos     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
    835           1.1  christos     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    836           1.1  christos     ac_sep=" " ;;
    837           1.1  christos   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
    838           1.1  christos      ac_sep=" " ;;
    839           1.1  christos   esac
    840           1.1  christos   # Get rid of the leading space.
    841           1.1  christos done
    842           1.1  christos 
    843           1.1  christos # When interrupted or exit'd, cleanup temporary files, and complete
    844           1.1  christos # config.log.  We remove comments because anyway the quotes in there
    845           1.1  christos # would cause problems or look ugly.
    846           1.1  christos trap 'exit_status=$?
    847           1.1  christos   # Save into config.log some information that might help in debugging.
    848           1.1  christos   echo >&5
    849           1.1  christos   echo "## ----------------- ##" >&5
    850           1.1  christos   echo "## Cache variables.  ##" >&5
    851           1.1  christos   echo "## ----------------- ##" >&5
    852           1.1  christos   echo >&5
    853           1.1  christos   # The following way of writing the cache mishandles newlines in values,
    854           1.1  christos {
    855           1.1  christos   (set) 2>&1 |
    856           1.1  christos     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    857           1.1  christos     *ac_space=\ *)
    858           1.1  christos       sed -n \
    859           1.1  christos         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    860           1.1  christos     	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
    861           1.1  christos       ;;
    862           1.1  christos     *)
    863           1.1  christos       sed -n \
    864           1.1  christos         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    865           1.1  christos       ;;
    866           1.1  christos     esac;
    867           1.1  christos } >&5
    868           1.1  christos   sed "/^$/d" confdefs.h >conftest.log
    869           1.1  christos   if test -s conftest.log; then
    870           1.1  christos     echo >&5
    871           1.1  christos     echo "## ------------ ##" >&5
    872           1.1  christos     echo "## confdefs.h.  ##" >&5
    873           1.1  christos     echo "## ------------ ##" >&5
    874           1.1  christos     echo >&5
    875           1.1  christos     cat conftest.log >&5
    876           1.1  christos   fi
    877           1.1  christos   (echo; echo) >&5
    878           1.1  christos   test "$ac_signal" != 0 &&
    879           1.1  christos     echo "$as_me: caught signal $ac_signal" >&5
    880           1.1  christos   echo "$as_me: exit $exit_status" >&5
    881           1.1  christos   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
    882           1.1  christos     exit $exit_status
    883           1.1  christos      ' 0
    884           1.1  christos for ac_signal in 1 2 13 15; do
    885           1.1  christos   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
    886           1.1  christos done
    887           1.1  christos ac_signal=0
    888           1.1  christos 
    889           1.1  christos # confdefs.h avoids OS command line length limits that DEFS can exceed.
    890           1.1  christos rm -rf conftest* confdefs.h
    891           1.1  christos # AIX cpp loses on an empty file, so make sure it contains at least a newline.
    892           1.1  christos echo >confdefs.h
    893           1.1  christos 
    894           1.1  christos # Let the site file select an alternate cache file if it wants to.
    895           1.1  christos # Prefer explicitly selected file to automatically selected ones.
    896           1.1  christos if test -z "$CONFIG_SITE"; then
    897           1.1  christos   if test "x$prefix" != xNONE; then
    898           1.1  christos     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
    899           1.1  christos   else
    900           1.1  christos     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
    901           1.1  christos   fi
    902           1.1  christos fi
    903           1.1  christos for ac_site_file in $CONFIG_SITE; do
    904           1.1  christos   if test -r "$ac_site_file"; then
    905  1.1.1.7.12.2    martin     { echo "$as_me:905: loading site script $ac_site_file" >&5
    906           1.1  christos echo "$as_me: loading site script $ac_site_file" >&6;}
    907           1.1  christos     cat "$ac_site_file" >&5
    908           1.1  christos     . "$ac_site_file"
    909           1.1  christos   fi
    910           1.1  christos done
    911           1.1  christos 
    912           1.1  christos if test -r "$cache_file"; then
    913           1.1  christos   # Some versions of bash will fail to source /dev/null (special
    914           1.1  christos   # files actually), so we avoid doing that.
    915           1.1  christos   if test -f "$cache_file"; then
    916  1.1.1.7.12.2    martin     { echo "$as_me:916: loading cache $cache_file" >&5
    917           1.1  christos echo "$as_me: loading cache $cache_file" >&6;}
    918           1.1  christos     case $cache_file in
    919           1.1  christos       [\\/]* | ?:[\\/]* ) . $cache_file;;
    920           1.1  christos       *)                      . ./$cache_file;;
    921           1.1  christos     esac
    922           1.1  christos   fi
    923           1.1  christos else
    924  1.1.1.7.12.2    martin   { echo "$as_me:924: creating cache $cache_file" >&5
    925           1.1  christos echo "$as_me: creating cache $cache_file" >&6;}
    926           1.1  christos   >$cache_file
    927           1.1  christos fi
    928           1.1  christos 
    929           1.1  christos # Check that the precious variables saved in the cache have kept the same
    930           1.1  christos # value.
    931           1.1  christos ac_cache_corrupted=false
    932           1.1  christos for ac_var in `(set) 2>&1 |
    933           1.1  christos                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
    934           1.1  christos   eval ac_old_set=\$ac_cv_env_${ac_var}_set
    935           1.1  christos   eval ac_new_set=\$ac_env_${ac_var}_set
    936           1.1  christos   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
    937           1.1  christos   eval ac_new_val="\$ac_env_${ac_var}_value"
    938           1.1  christos   case $ac_old_set,$ac_new_set in
    939           1.1  christos     set,)
    940  1.1.1.7.12.2    martin       { echo "$as_me:940: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
    941           1.1  christos echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
    942           1.1  christos       ac_cache_corrupted=: ;;
    943           1.1  christos     ,set)
    944  1.1.1.7.12.2    martin       { echo "$as_me:944: error: \`$ac_var' was not set in the previous run" >&5
    945           1.1  christos echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
    946           1.1  christos       ac_cache_corrupted=: ;;
    947           1.1  christos     ,);;
    948           1.1  christos     *)
    949           1.1  christos       if test "x$ac_old_val" != "x$ac_new_val"; then
    950  1.1.1.7.12.2    martin         { echo "$as_me:950: error: \`$ac_var' has changed since the previous run:" >&5
    951           1.1  christos echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
    952  1.1.1.7.12.2    martin         { echo "$as_me:952:   former value:  $ac_old_val" >&5
    953           1.1  christos echo "$as_me:   former value:  $ac_old_val" >&2;}
    954  1.1.1.7.12.2    martin         { echo "$as_me:954:   current value: $ac_new_val" >&5
    955           1.1  christos echo "$as_me:   current value: $ac_new_val" >&2;}
    956           1.1  christos         ac_cache_corrupted=:
    957           1.1  christos       fi;;
    958           1.1  christos   esac
    959           1.1  christos   # Pass precious variables to config.status.  It doesn't matter if
    960           1.1  christos   # we pass some twice (in addition to the command line arguments).
    961           1.1  christos   if test "$ac_new_set" = set; then
    962           1.1  christos     case $ac_new_val in
    963           1.1  christos     *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    964           1.1  christos       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
    965           1.1  christos       ac_configure_args="$ac_configure_args '$ac_arg'"
    966           1.1  christos       ;;
    967           1.1  christos     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
    968           1.1  christos        ;;
    969           1.1  christos     esac
    970           1.1  christos   fi
    971           1.1  christos done
    972           1.1  christos if $ac_cache_corrupted; then
    973  1.1.1.7.12.2    martin   { echo "$as_me:973: error: changes in the environment can compromise the build" >&5
    974           1.1  christos echo "$as_me: error: changes in the environment can compromise the build" >&2;}
    975  1.1.1.7.12.2    martin   { { echo "$as_me:975: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
    976           1.1  christos echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
    977           1.1  christos    { (exit 1); exit 1; }; }
    978           1.1  christos fi
    979           1.1  christos 
    980           1.1  christos ac_ext=c
    981           1.1  christos ac_cpp='$CPP $CPPFLAGS'
    982           1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    983           1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    984           1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
    985           1.1  christos ac_main_return=return
    986           1.1  christos 
    987       1.1.1.6  christos case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
    988       1.1.1.6  christos   *c*,-n*) ECHO_N= ECHO_C=	# newlines do not sed ;-) only broken shells would use this case anyway
    989       1.1.1.6  christos 		   ECHO_T='	' ;;
    990           1.1  christos   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
    991           1.1  christos   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
    992           1.1  christos esac
    993           1.1  christos echo "#! $SHELL" >conftest.sh
    994           1.1  christos echo  "exit 0"   >>conftest.sh
    995           1.1  christos chmod +x conftest.sh
    996  1.1.1.7.12.2    martin if { (echo "$as_me:996: PATH=\".;.\"; conftest.sh") >&5
    997           1.1  christos   (PATH=".;."; conftest.sh) 2>&5
    998           1.1  christos   ac_status=$?
    999  1.1.1.7.12.2    martin   echo "$as_me:999: \$? = $ac_status" >&5
   1000           1.1  christos   (exit $ac_status); }; then
   1001           1.1  christos   ac_path_separator=';'
   1002           1.1  christos else
   1003           1.1  christos   ac_path_separator=:
   1004           1.1  christos fi
   1005           1.1  christos PATH_SEPARATOR="$ac_path_separator"
   1006           1.1  christos rm -f conftest.sh
   1007           1.1  christos 
   1008           1.1  christos ac_config_headers="$ac_config_headers config.h:config_h.in"
   1009           1.1  christos 
   1010           1.1  christos ac_aux_dir=
   1011           1.1  christos for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
   1012           1.1  christos   if test -f $ac_dir/install-sh; then
   1013           1.1  christos     ac_aux_dir=$ac_dir
   1014           1.1  christos     ac_install_sh="$ac_aux_dir/install-sh -c"
   1015           1.1  christos     break
   1016           1.1  christos   elif test -f $ac_dir/install.sh; then
   1017           1.1  christos     ac_aux_dir=$ac_dir
   1018           1.1  christos     ac_install_sh="$ac_aux_dir/install.sh -c"
   1019           1.1  christos     break
   1020           1.1  christos   elif test -f $ac_dir/shtool; then
   1021           1.1  christos     ac_aux_dir=$ac_dir
   1022           1.1  christos     ac_install_sh="$ac_aux_dir/shtool install -c"
   1023           1.1  christos     break
   1024           1.1  christos   fi
   1025           1.1  christos done
   1026           1.1  christos if test -z "$ac_aux_dir"; then
   1027  1.1.1.7.12.2    martin   { { echo "$as_me:1027: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
   1028           1.1  christos echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
   1029           1.1  christos    { (exit 1); exit 1; }; }
   1030           1.1  christos fi
   1031           1.1  christos ac_config_guess="$SHELL $ac_aux_dir/config.guess"
   1032           1.1  christos ac_config_sub="$SHELL $ac_aux_dir/config.sub"
   1033           1.1  christos ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
   1034           1.1  christos 
   1035           1.1  christos # Make sure we can run config.sub.
   1036           1.1  christos $ac_config_sub sun4 >/dev/null 2>&1 ||
   1037  1.1.1.7.12.2    martin   { { echo "$as_me:1037: error: cannot run $ac_config_sub" >&5
   1038           1.1  christos echo "$as_me: error: cannot run $ac_config_sub" >&2;}
   1039           1.1  christos    { (exit 1); exit 1; }; }
   1040           1.1  christos 
   1041  1.1.1.7.12.2    martin echo "$as_me:1041: checking build system type" >&5
   1042           1.1  christos echo $ECHO_N "checking build system type... $ECHO_C" >&6
   1043           1.1  christos if test "${ac_cv_build+set}" = set; then
   1044           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1045           1.1  christos else
   1046           1.1  christos   ac_cv_build_alias=$build_alias
   1047           1.1  christos test -z "$ac_cv_build_alias" &&
   1048           1.1  christos   ac_cv_build_alias=`$ac_config_guess`
   1049           1.1  christos test -z "$ac_cv_build_alias" &&
   1050  1.1.1.7.12.2    martin   { { echo "$as_me:1050: error: cannot guess build type; you must specify one" >&5
   1051           1.1  christos echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   1052           1.1  christos    { (exit 1); exit 1; }; }
   1053           1.1  christos ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
   1054  1.1.1.7.12.2    martin   { { echo "$as_me:1054: error: $ac_config_sub $ac_cv_build_alias failed." >&5
   1055           1.1  christos echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
   1056           1.1  christos    { (exit 1); exit 1; }; }
   1057           1.1  christos 
   1058           1.1  christos fi
   1059  1.1.1.7.12.2    martin echo "$as_me:1059: result: $ac_cv_build" >&5
   1060           1.1  christos echo "${ECHO_T}$ac_cv_build" >&6
   1061           1.1  christos build=$ac_cv_build
   1062           1.1  christos build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
   1063           1.1  christos build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
   1064           1.1  christos build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
   1065           1.1  christos 
   1066  1.1.1.7.12.2    martin echo "$as_me:1066: checking host system type" >&5
   1067           1.1  christos echo $ECHO_N "checking host system type... $ECHO_C" >&6
   1068           1.1  christos if test "${ac_cv_host+set}" = set; then
   1069           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1070           1.1  christos else
   1071           1.1  christos   ac_cv_host_alias=$host_alias
   1072           1.1  christos test -z "$ac_cv_host_alias" &&
   1073           1.1  christos   ac_cv_host_alias=$ac_cv_build_alias
   1074           1.1  christos ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
   1075  1.1.1.7.12.2    martin   { { echo "$as_me:1075: error: $ac_config_sub $ac_cv_host_alias failed" >&5
   1076           1.1  christos echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
   1077           1.1  christos    { (exit 1); exit 1; }; }
   1078           1.1  christos 
   1079           1.1  christos fi
   1080  1.1.1.7.12.2    martin echo "$as_me:1080: result: $ac_cv_host" >&5
   1081           1.1  christos echo "${ECHO_T}$ac_cv_host" >&6
   1082           1.1  christos host=$ac_cv_host
   1083           1.1  christos host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
   1084           1.1  christos host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
   1085           1.1  christos host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
   1086           1.1  christos 
   1087           1.1  christos if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
   1088  1.1.1.7.12.2    martin 	echo "$as_me:1088: checking target system type" >&5
   1089           1.1  christos echo $ECHO_N "checking target system type... $ECHO_C" >&6
   1090           1.1  christos if test "${ac_cv_target+set}" = set; then
   1091           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1092           1.1  christos else
   1093           1.1  christos   ac_cv_target_alias=$target_alias
   1094           1.1  christos test "x$ac_cv_target_alias" = "x" &&
   1095           1.1  christos   ac_cv_target_alias=$ac_cv_host_alias
   1096           1.1  christos ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
   1097  1.1.1.7.12.2    martin   { { echo "$as_me:1097: error: $ac_config_sub $ac_cv_target_alias failed" >&5
   1098           1.1  christos echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
   1099           1.1  christos    { (exit 1); exit 1; }; }
   1100           1.1  christos 
   1101           1.1  christos fi
   1102  1.1.1.7.12.2    martin echo "$as_me:1102: result: $ac_cv_target" >&5
   1103           1.1  christos echo "${ECHO_T}$ac_cv_target" >&6
   1104           1.1  christos target=$ac_cv_target
   1105           1.1  christos target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
   1106           1.1  christos target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
   1107           1.1  christos target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
   1108           1.1  christos 
   1109           1.1  christos # The aliases save the names the user supplied, while $host etc.
   1110           1.1  christos # will get canonicalized.
   1111           1.1  christos test -n "$target_alias" &&
   1112           1.1  christos   test "$program_prefix$program_suffix$program_transform_name" = \
   1113           1.1  christos     NONENONEs,x,x, &&
   1114           1.1  christos   program_prefix=${target_alias}-
   1115           1.1  christos 	system_name="$host_os"
   1116           1.1  christos else
   1117           1.1  christos 	system_name="`(uname -s -r) 2>/dev/null`"
   1118           1.1  christos 	if test -z "$system_name" ; then
   1119           1.1  christos 		system_name="`(hostname) 2>/dev/null`"
   1120           1.1  christos 	fi
   1121           1.1  christos fi
   1122       1.1.1.4  christos test -n "$system_name" &&
   1123       1.1.1.4  christos cat >>confdefs.h <<EOF
   1124           1.1  christos #define SYSTEM_NAME "$system_name"
   1125           1.1  christos EOF
   1126           1.1  christos 
   1127           1.1  christos if test "${cf_cv_system_name+set}" = set; then
   1128           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1129           1.1  christos else
   1130           1.1  christos   cf_cv_system_name="$system_name"
   1131           1.1  christos fi
   1132           1.1  christos 
   1133           1.1  christos test -z "$system_name" && system_name="$cf_cv_system_name"
   1134  1.1.1.7.12.2    martin test -n "$cf_cv_system_name" && echo "$as_me:1134: result: Configuring for $cf_cv_system_name" >&5
   1135           1.1  christos echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
   1136           1.1  christos 
   1137           1.1  christos if test ".$system_name" != ".$cf_cv_system_name" ; then
   1138  1.1.1.7.12.2    martin 	echo "$as_me:1138: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
   1139           1.1  christos echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
   1140  1.1.1.7.12.2    martin 	{ { echo "$as_me:1140: error: \"Please remove config.cache and try again.\"" >&5
   1141           1.1  christos echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
   1142           1.1  christos    { (exit 1); exit 1; }; }
   1143           1.1  christos fi
   1144           1.1  christos 
   1145           1.1  christos test "$program_prefix" != NONE &&
   1146           1.1  christos   program_transform_name="s,^,$program_prefix,;$program_transform_name"
   1147           1.1  christos # Use a double $ so make ignores it.
   1148           1.1  christos test "$program_suffix" != NONE &&
   1149           1.1  christos   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
   1150           1.1  christos # Double any \ or $.  echo might interpret backslashes.
   1151           1.1  christos # By default was `s,x,x', remove it if useless.
   1152           1.1  christos cat <<\_ACEOF >conftest.sed
   1153           1.1  christos s/[\\$]/&&/g;s/;s,x,x,$//
   1154           1.1  christos _ACEOF
   1155           1.1  christos program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
   1156           1.1  christos rm conftest.sed
   1157           1.1  christos 
   1158           1.1  christos ac_ext=c
   1159           1.1  christos ac_cpp='$CPP $CPPFLAGS'
   1160           1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1161           1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1162           1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1163           1.1  christos ac_main_return=return
   1164           1.1  christos if test -n "$ac_tool_prefix"; then
   1165           1.1  christos   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   1166           1.1  christos set dummy ${ac_tool_prefix}gcc; ac_word=$2
   1167  1.1.1.7.12.2    martin echo "$as_me:1167: checking for $ac_word" >&5
   1168           1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1169           1.1  christos if test "${ac_cv_prog_CC+set}" = set; then
   1170           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1171           1.1  christos else
   1172           1.1  christos   if test -n "$CC"; then
   1173           1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   1174           1.1  christos else
   1175           1.1  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1176           1.1  christos ac_dummy="$PATH"
   1177           1.1  christos for ac_dir in $ac_dummy; do
   1178           1.1  christos   IFS=$ac_save_IFS
   1179           1.1  christos   test -z "$ac_dir" && ac_dir=.
   1180           1.1  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   1181           1.1  christos ac_cv_prog_CC="${ac_tool_prefix}gcc"
   1182  1.1.1.7.12.2    martin echo "$as_me:1182: found $ac_dir/$ac_word" >&5
   1183           1.1  christos break
   1184           1.1  christos done
   1185           1.1  christos 
   1186           1.1  christos fi
   1187           1.1  christos fi
   1188           1.1  christos CC=$ac_cv_prog_CC
   1189           1.1  christos if test -n "$CC"; then
   1190  1.1.1.7.12.2    martin   echo "$as_me:1190: result: $CC" >&5
   1191           1.1  christos echo "${ECHO_T}$CC" >&6
   1192           1.1  christos else
   1193  1.1.1.7.12.2    martin   echo "$as_me:1193: result: no" >&5
   1194           1.1  christos echo "${ECHO_T}no" >&6
   1195           1.1  christos fi
   1196           1.1  christos 
   1197           1.1  christos fi
   1198           1.1  christos if test -z "$ac_cv_prog_CC"; then
   1199           1.1  christos   ac_ct_CC=$CC
   1200           1.1  christos   # Extract the first word of "gcc", so it can be a program name with args.
   1201           1.1  christos set dummy gcc; ac_word=$2
   1202  1.1.1.7.12.2    martin echo "$as_me:1202: checking for $ac_word" >&5
   1203           1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1204           1.1  christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1205           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1206           1.1  christos else
   1207           1.1  christos   if test -n "$ac_ct_CC"; then
   1208           1.1  christos   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1209           1.1  christos else
   1210           1.1  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1211           1.1  christos ac_dummy="$PATH"
   1212           1.1  christos for ac_dir in $ac_dummy; do
   1213           1.1  christos   IFS=$ac_save_IFS
   1214           1.1  christos   test -z "$ac_dir" && ac_dir=.
   1215           1.1  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   1216           1.1  christos ac_cv_prog_ac_ct_CC="gcc"
   1217  1.1.1.7.12.2    martin echo "$as_me:1217: found $ac_dir/$ac_word" >&5
   1218           1.1  christos break
   1219           1.1  christos done
   1220           1.1  christos 
   1221           1.1  christos fi
   1222           1.1  christos fi
   1223           1.1  christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1224           1.1  christos if test -n "$ac_ct_CC"; then
   1225  1.1.1.7.12.2    martin   echo "$as_me:1225: result: $ac_ct_CC" >&5
   1226           1.1  christos echo "${ECHO_T}$ac_ct_CC" >&6
   1227           1.1  christos else
   1228  1.1.1.7.12.2    martin   echo "$as_me:1228: result: no" >&5
   1229           1.1  christos echo "${ECHO_T}no" >&6
   1230           1.1  christos fi
   1231           1.1  christos 
   1232           1.1  christos   CC=$ac_ct_CC
   1233           1.1  christos else
   1234           1.1  christos   CC="$ac_cv_prog_CC"
   1235           1.1  christos fi
   1236           1.1  christos 
   1237           1.1  christos if test -z "$CC"; then
   1238           1.1  christos   if test -n "$ac_tool_prefix"; then
   1239           1.1  christos   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   1240           1.1  christos set dummy ${ac_tool_prefix}cc; ac_word=$2
   1241  1.1.1.7.12.2    martin echo "$as_me:1241: checking for $ac_word" >&5
   1242           1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1243           1.1  christos if test "${ac_cv_prog_CC+set}" = set; then
   1244           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1245           1.1  christos else
   1246           1.1  christos   if test -n "$CC"; then
   1247           1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   1248           1.1  christos else
   1249           1.1  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1250           1.1  christos ac_dummy="$PATH"
   1251           1.1  christos for ac_dir in $ac_dummy; do
   1252           1.1  christos   IFS=$ac_save_IFS
   1253           1.1  christos   test -z "$ac_dir" && ac_dir=.
   1254           1.1  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   1255           1.1  christos ac_cv_prog_CC="${ac_tool_prefix}cc"
   1256  1.1.1.7.12.2    martin echo "$as_me:1256: found $ac_dir/$ac_word" >&5
   1257           1.1  christos break
   1258           1.1  christos done
   1259           1.1  christos 
   1260           1.1  christos fi
   1261           1.1  christos fi
   1262           1.1  christos CC=$ac_cv_prog_CC
   1263           1.1  christos if test -n "$CC"; then
   1264  1.1.1.7.12.2    martin   echo "$as_me:1264: result: $CC" >&5
   1265           1.1  christos echo "${ECHO_T}$CC" >&6
   1266           1.1  christos else
   1267  1.1.1.7.12.2    martin   echo "$as_me:1267: result: no" >&5
   1268           1.1  christos echo "${ECHO_T}no" >&6
   1269           1.1  christos fi
   1270           1.1  christos 
   1271           1.1  christos fi
   1272           1.1  christos if test -z "$ac_cv_prog_CC"; then
   1273           1.1  christos   ac_ct_CC=$CC
   1274           1.1  christos   # Extract the first word of "cc", so it can be a program name with args.
   1275           1.1  christos set dummy cc; ac_word=$2
   1276  1.1.1.7.12.2    martin echo "$as_me:1276: checking for $ac_word" >&5
   1277           1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1278           1.1  christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1279           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1280           1.1  christos else
   1281           1.1  christos   if test -n "$ac_ct_CC"; then
   1282           1.1  christos   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1283           1.1  christos else
   1284           1.1  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1285           1.1  christos ac_dummy="$PATH"
   1286           1.1  christos for ac_dir in $ac_dummy; do
   1287           1.1  christos   IFS=$ac_save_IFS
   1288           1.1  christos   test -z "$ac_dir" && ac_dir=.
   1289           1.1  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   1290           1.1  christos ac_cv_prog_ac_ct_CC="cc"
   1291  1.1.1.7.12.2    martin echo "$as_me:1291: found $ac_dir/$ac_word" >&5
   1292           1.1  christos break
   1293           1.1  christos done
   1294           1.1  christos 
   1295           1.1  christos fi
   1296           1.1  christos fi
   1297           1.1  christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1298           1.1  christos if test -n "$ac_ct_CC"; then
   1299  1.1.1.7.12.2    martin   echo "$as_me:1299: result: $ac_ct_CC" >&5
   1300           1.1  christos echo "${ECHO_T}$ac_ct_CC" >&6
   1301           1.1  christos else
   1302  1.1.1.7.12.2    martin   echo "$as_me:1302: result: no" >&5
   1303           1.1  christos echo "${ECHO_T}no" >&6
   1304           1.1  christos fi
   1305           1.1  christos 
   1306           1.1  christos   CC=$ac_ct_CC
   1307           1.1  christos else
   1308           1.1  christos   CC="$ac_cv_prog_CC"
   1309           1.1  christos fi
   1310           1.1  christos 
   1311           1.1  christos fi
   1312           1.1  christos if test -z "$CC"; then
   1313           1.1  christos   # Extract the first word of "cc", so it can be a program name with args.
   1314           1.1  christos set dummy cc; ac_word=$2
   1315  1.1.1.7.12.2    martin echo "$as_me:1315: checking for $ac_word" >&5
   1316           1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1317           1.1  christos if test "${ac_cv_prog_CC+set}" = set; then
   1318           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1319           1.1  christos else
   1320           1.1  christos   if test -n "$CC"; then
   1321           1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   1322           1.1  christos else
   1323           1.1  christos   ac_prog_rejected=no
   1324           1.1  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1325           1.1  christos ac_dummy="$PATH"
   1326           1.1  christos for ac_dir in $ac_dummy; do
   1327           1.1  christos   IFS=$ac_save_IFS
   1328           1.1  christos   test -z "$ac_dir" && ac_dir=.
   1329           1.1  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   1330           1.1  christos if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
   1331           1.1  christos   ac_prog_rejected=yes
   1332           1.1  christos   continue
   1333           1.1  christos fi
   1334           1.1  christos ac_cv_prog_CC="cc"
   1335  1.1.1.7.12.2    martin echo "$as_me:1335: found $ac_dir/$ac_word" >&5
   1336           1.1  christos break
   1337           1.1  christos done
   1338           1.1  christos 
   1339           1.1  christos if test $ac_prog_rejected = yes; then
   1340           1.1  christos   # We found a bogon in the path, so make sure we never use it.
   1341           1.1  christos   set dummy $ac_cv_prog_CC
   1342           1.1  christos   shift
   1343           1.1  christos   if test $# != 0; then
   1344           1.1  christos     # We chose a different compiler from the bogus one.
   1345           1.1  christos     # However, it has the same basename, so the bogon will be chosen
   1346           1.1  christos     # first if we set CC to just the basename; use the full file name.
   1347           1.1  christos     shift
   1348           1.1  christos     set dummy "$ac_dir/$ac_word" ${1+"$@"}
   1349           1.1  christos     shift
   1350           1.1  christos     ac_cv_prog_CC="$@"
   1351           1.1  christos   fi
   1352           1.1  christos fi
   1353           1.1  christos fi
   1354           1.1  christos fi
   1355           1.1  christos CC=$ac_cv_prog_CC
   1356           1.1  christos if test -n "$CC"; then
   1357  1.1.1.7.12.2    martin   echo "$as_me:1357: result: $CC" >&5
   1358           1.1  christos echo "${ECHO_T}$CC" >&6
   1359           1.1  christos else
   1360  1.1.1.7.12.2    martin   echo "$as_me:1360: result: no" >&5
   1361           1.1  christos echo "${ECHO_T}no" >&6
   1362           1.1  christos fi
   1363           1.1  christos 
   1364           1.1  christos fi
   1365           1.1  christos if test -z "$CC"; then
   1366           1.1  christos   if test -n "$ac_tool_prefix"; then
   1367           1.1  christos   for ac_prog in cl
   1368           1.1  christos   do
   1369           1.1  christos     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   1370           1.1  christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   1371  1.1.1.7.12.2    martin echo "$as_me:1371: checking for $ac_word" >&5
   1372           1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1373           1.1  christos if test "${ac_cv_prog_CC+set}" = set; then
   1374           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1375           1.1  christos else
   1376           1.1  christos   if test -n "$CC"; then
   1377           1.1  christos   ac_cv_prog_CC="$CC" # Let the user override the test.
   1378           1.1  christos else
   1379           1.1  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1380           1.1  christos ac_dummy="$PATH"
   1381           1.1  christos for ac_dir in $ac_dummy; do
   1382           1.1  christos   IFS=$ac_save_IFS
   1383           1.1  christos   test -z "$ac_dir" && ac_dir=.
   1384           1.1  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   1385           1.1  christos ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   1386  1.1.1.7.12.2    martin echo "$as_me:1386: found $ac_dir/$ac_word" >&5
   1387           1.1  christos break
   1388           1.1  christos done
   1389           1.1  christos 
   1390           1.1  christos fi
   1391           1.1  christos fi
   1392           1.1  christos CC=$ac_cv_prog_CC
   1393           1.1  christos if test -n "$CC"; then
   1394  1.1.1.7.12.2    martin   echo "$as_me:1394: result: $CC" >&5
   1395           1.1  christos echo "${ECHO_T}$CC" >&6
   1396           1.1  christos else
   1397  1.1.1.7.12.2    martin   echo "$as_me:1397: result: no" >&5
   1398           1.1  christos echo "${ECHO_T}no" >&6
   1399           1.1  christos fi
   1400           1.1  christos 
   1401           1.1  christos     test -n "$CC" && break
   1402           1.1  christos   done
   1403           1.1  christos fi
   1404           1.1  christos if test -z "$CC"; then
   1405           1.1  christos   ac_ct_CC=$CC
   1406           1.1  christos   for ac_prog in cl
   1407           1.1  christos do
   1408           1.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   1409           1.1  christos set dummy $ac_prog; ac_word=$2
   1410  1.1.1.7.12.2    martin echo "$as_me:1410: checking for $ac_word" >&5
   1411           1.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1412           1.1  christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1413           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1414           1.1  christos else
   1415           1.1  christos   if test -n "$ac_ct_CC"; then
   1416           1.1  christos   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1417           1.1  christos else
   1418           1.1  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1419           1.1  christos ac_dummy="$PATH"
   1420           1.1  christos for ac_dir in $ac_dummy; do
   1421           1.1  christos   IFS=$ac_save_IFS
   1422           1.1  christos   test -z "$ac_dir" && ac_dir=.
   1423           1.1  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   1424           1.1  christos ac_cv_prog_ac_ct_CC="$ac_prog"
   1425  1.1.1.7.12.2    martin echo "$as_me:1425: found $ac_dir/$ac_word" >&5
   1426           1.1  christos break
   1427           1.1  christos done
   1428           1.1  christos 
   1429           1.1  christos fi
   1430           1.1  christos fi
   1431           1.1  christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1432           1.1  christos if test -n "$ac_ct_CC"; then
   1433  1.1.1.7.12.2    martin   echo "$as_me:1433: result: $ac_ct_CC" >&5
   1434           1.1  christos echo "${ECHO_T}$ac_ct_CC" >&6
   1435           1.1  christos else
   1436  1.1.1.7.12.2    martin   echo "$as_me:1436: result: no" >&5
   1437           1.1  christos echo "${ECHO_T}no" >&6
   1438           1.1  christos fi
   1439           1.1  christos 
   1440           1.1  christos   test -n "$ac_ct_CC" && break
   1441           1.1  christos done
   1442           1.1  christos 
   1443           1.1  christos   CC=$ac_ct_CC
   1444           1.1  christos fi
   1445           1.1  christos 
   1446           1.1  christos fi
   1447           1.1  christos 
   1448  1.1.1.7.12.2    martin test -z "$CC" && { { echo "$as_me:1448: error: no acceptable cc found in \$PATH" >&5
   1449           1.1  christos echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
   1450           1.1  christos    { (exit 1); exit 1; }; }
   1451           1.1  christos 
   1452           1.1  christos # Provide some information about the compiler.
   1453  1.1.1.7.12.2    martin echo "$as_me:1453:" \
   1454           1.1  christos      "checking for C compiler version" >&5
   1455           1.1  christos ac_compiler=`set X $ac_compile; echo $2`
   1456  1.1.1.7.12.2    martin { (eval echo "$as_me:1456: \"$ac_compiler --version </dev/null >&5\"") >&5
   1457           1.1  christos   (eval $ac_compiler --version </dev/null >&5) 2>&5
   1458           1.1  christos   ac_status=$?
   1459  1.1.1.7.12.2    martin   echo "$as_me:1459: \$? = $ac_status" >&5
   1460           1.1  christos   (exit $ac_status); }
   1461  1.1.1.7.12.2    martin { (eval echo "$as_me:1461: \"$ac_compiler -v </dev/null >&5\"") >&5
   1462           1.1  christos   (eval $ac_compiler -v </dev/null >&5) 2>&5
   1463           1.1  christos   ac_status=$?
   1464  1.1.1.7.12.2    martin   echo "$as_me:1464: \$? = $ac_status" >&5
   1465           1.1  christos   (exit $ac_status); }
   1466  1.1.1.7.12.2    martin { (eval echo "$as_me:1466: \"$ac_compiler -V </dev/null >&5\"") >&5
   1467           1.1  christos   (eval $ac_compiler -V </dev/null >&5) 2>&5
   1468           1.1  christos   ac_status=$?
   1469  1.1.1.7.12.2    martin   echo "$as_me:1469: \$? = $ac_status" >&5
   1470           1.1  christos   (exit $ac_status); }
   1471           1.1  christos 
   1472           1.1  christos cat >conftest.$ac_ext <<_ACEOF
   1473  1.1.1.7.12.2    martin #line 1473 "configure"
   1474           1.1  christos #include "confdefs.h"
   1475           1.1  christos 
   1476           1.1  christos int
   1477  1.1.1.7.12.1  christos main (void)
   1478           1.1  christos {
   1479           1.1  christos 
   1480           1.1  christos   ;
   1481           1.1  christos   return 0;
   1482           1.1  christos }
   1483           1.1  christos _ACEOF
   1484           1.1  christos ac_clean_files_save=$ac_clean_files
   1485           1.1  christos ac_clean_files="$ac_clean_files a.out a.exe"
   1486           1.1  christos # Try to create an executable without -o first, disregard a.out.
   1487           1.1  christos # It will help us diagnose broken compilers, and finding out an intuition
   1488           1.1  christos # of exeext.
   1489  1.1.1.7.12.2    martin echo "$as_me:1489: checking for C compiler default output" >&5
   1490           1.1  christos echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
   1491           1.1  christos ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   1492  1.1.1.7.12.2    martin if { (eval echo "$as_me:1492: \"$ac_link_default\"") >&5
   1493           1.1  christos   (eval $ac_link_default) 2>&5
   1494           1.1  christos   ac_status=$?
   1495  1.1.1.7.12.2    martin   echo "$as_me:1495: \$? = $ac_status" >&5
   1496           1.1  christos   (exit $ac_status); }; then
   1497           1.1  christos   # Find the output, starting from the most likely.  This scheme is
   1498           1.1  christos # not robust to junk in `.', hence go to wildcards (a.*) only as a last
   1499           1.1  christos # resort.
   1500           1.1  christos for ac_file in `ls a.exe conftest.exe 2>/dev/null;
   1501           1.1  christos                 ls a.out conftest 2>/dev/null;
   1502           1.1  christos                 ls a.* conftest.* 2>/dev/null`; do
   1503           1.1  christos   case $ac_file in
   1504           1.1  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   1505           1.1  christos     a.out ) # We found the default executable, but exeext='' is most
   1506           1.1  christos             # certainly right.
   1507           1.1  christos             break;;
   1508           1.1  christos     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   1509           1.1  christos           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
   1510           1.1  christos           export ac_cv_exeext
   1511           1.1  christos           break;;
   1512           1.1  christos     * ) break;;
   1513           1.1  christos   esac
   1514           1.1  christos done
   1515           1.1  christos else
   1516           1.1  christos   echo "$as_me: failed program was:" >&5
   1517           1.1  christos cat conftest.$ac_ext >&5
   1518  1.1.1.7.12.2    martin { { echo "$as_me:1518: error: C compiler cannot create executables" >&5
   1519           1.1  christos echo "$as_me: error: C compiler cannot create executables" >&2;}
   1520           1.1  christos    { (exit 77); exit 77; }; }
   1521           1.1  christos fi
   1522           1.1  christos 
   1523           1.1  christos ac_exeext=$ac_cv_exeext
   1524  1.1.1.7.12.2    martin echo "$as_me:1524: result: $ac_file" >&5
   1525           1.1  christos echo "${ECHO_T}$ac_file" >&6
   1526           1.1  christos 
   1527           1.1  christos # Check the compiler produces executables we can run.  If not, either
   1528           1.1  christos # the compiler is broken, or we cross compile.
   1529  1.1.1.7.12.2    martin echo "$as_me:1529: checking whether the C compiler works" >&5
   1530           1.1  christos echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
   1531           1.1  christos # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
   1532           1.1  christos # If not cross compiling, check that we can run a simple program.
   1533           1.1  christos if test "$cross_compiling" != yes; then
   1534           1.1  christos   if { ac_try='./$ac_file'
   1535  1.1.1.7.12.2    martin   { (eval echo "$as_me:1535: \"$ac_try\"") >&5
   1536           1.1  christos   (eval $ac_try) 2>&5
   1537           1.1  christos   ac_status=$?
   1538  1.1.1.7.12.2    martin   echo "$as_me:1538: \$? = $ac_status" >&5
   1539           1.1  christos   (exit $ac_status); }; }; then
   1540           1.1  christos     cross_compiling=no
   1541           1.1  christos   else
   1542           1.1  christos     if test "$cross_compiling" = maybe; then
   1543           1.1  christos 	cross_compiling=yes
   1544           1.1  christos     else
   1545  1.1.1.7.12.2    martin 	{ { echo "$as_me:1545: error: cannot run C compiled programs.
   1546           1.1  christos If you meant to cross compile, use \`--host'." >&5
   1547           1.1  christos echo "$as_me: error: cannot run C compiled programs.
   1548           1.1  christos If you meant to cross compile, use \`--host'." >&2;}
   1549           1.1  christos    { (exit 1); exit 1; }; }
   1550           1.1  christos     fi
   1551           1.1  christos   fi
   1552           1.1  christos fi
   1553  1.1.1.7.12.2    martin echo "$as_me:1553: result: yes" >&5
   1554           1.1  christos echo "${ECHO_T}yes" >&6
   1555           1.1  christos 
   1556           1.1  christos rm -f a.out a.exe conftest$ac_cv_exeext
   1557           1.1  christos ac_clean_files=$ac_clean_files_save
   1558           1.1  christos # Check the compiler produces executables we can run.  If not, either
   1559           1.1  christos # the compiler is broken, or we cross compile.
   1560  1.1.1.7.12.2    martin echo "$as_me:1560: checking whether we are cross compiling" >&5
   1561           1.1  christos echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
   1562  1.1.1.7.12.2    martin echo "$as_me:1562: result: $cross_compiling" >&5
   1563           1.1  christos echo "${ECHO_T}$cross_compiling" >&6
   1564           1.1  christos 
   1565  1.1.1.7.12.2    martin echo "$as_me:1565: checking for executable suffix" >&5
   1566           1.1  christos echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
   1567  1.1.1.7.12.2    martin if { (eval echo "$as_me:1567: \"$ac_link\"") >&5
   1568           1.1  christos   (eval $ac_link) 2>&5
   1569           1.1  christos   ac_status=$?
   1570  1.1.1.7.12.2    martin   echo "$as_me:1570: \$? = $ac_status" >&5
   1571           1.1  christos   (exit $ac_status); }; then
   1572           1.1  christos   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   1573           1.1  christos # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   1574           1.1  christos # work properly (i.e., refer to `conftest.exe'), while it won't with
   1575           1.1  christos # `rm'.
   1576           1.1  christos for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
   1577           1.1  christos   case $ac_file in
   1578           1.1  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   1579           1.1  christos     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   1580           1.1  christos           export ac_cv_exeext
   1581           1.1  christos           break;;
   1582           1.1  christos     * ) break;;
   1583           1.1  christos   esac
   1584           1.1  christos done
   1585           1.1  christos else
   1586  1.1.1.7.12.2    martin   { { echo "$as_me:1586: error: cannot compute EXEEXT: cannot compile and link" >&5
   1587           1.1  christos echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
   1588           1.1  christos    { (exit 1); exit 1; }; }
   1589           1.1  christos fi
   1590           1.1  christos 
   1591           1.1  christos rm -f conftest$ac_cv_exeext
   1592  1.1.1.7.12.2    martin echo "$as_me:1592: result: $ac_cv_exeext" >&5
   1593           1.1  christos echo "${ECHO_T}$ac_cv_exeext" >&6
   1594           1.1  christos 
   1595           1.1  christos rm -f conftest.$ac_ext
   1596           1.1  christos EXEEXT=$ac_cv_exeext
   1597           1.1  christos ac_exeext=$EXEEXT
   1598  1.1.1.7.12.2    martin echo "$as_me:1598: checking for object suffix" >&5
   1599           1.1  christos echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
   1600           1.1  christos if test "${ac_cv_objext+set}" = set; then
   1601           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1602           1.1  christos else
   1603           1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   1604  1.1.1.7.12.2    martin #line 1604 "configure"
   1605           1.1  christos #include "confdefs.h"
   1606           1.1  christos 
   1607           1.1  christos int
   1608  1.1.1.7.12.1  christos main (void)
   1609           1.1  christos {
   1610           1.1  christos 
   1611           1.1  christos   ;
   1612           1.1  christos   return 0;
   1613           1.1  christos }
   1614           1.1  christos _ACEOF
   1615           1.1  christos rm -f conftest.o conftest.obj
   1616  1.1.1.7.12.2    martin if { (eval echo "$as_me:1616: \"$ac_compile\"") >&5
   1617           1.1  christos   (eval $ac_compile) 2>&5
   1618           1.1  christos   ac_status=$?
   1619  1.1.1.7.12.2    martin   echo "$as_me:1619: \$? = $ac_status" >&5
   1620           1.1  christos   (exit $ac_status); }; then
   1621           1.1  christos   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
   1622           1.1  christos   case $ac_file in
   1623           1.1  christos     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
   1624           1.1  christos     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   1625           1.1  christos        break;;
   1626           1.1  christos   esac
   1627           1.1  christos done
   1628           1.1  christos else
   1629           1.1  christos   echo "$as_me: failed program was:" >&5
   1630           1.1  christos cat conftest.$ac_ext >&5
   1631  1.1.1.7.12.2    martin { { echo "$as_me:1631: error: cannot compute OBJEXT: cannot compile" >&5
   1632           1.1  christos echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
   1633           1.1  christos    { (exit 1); exit 1; }; }
   1634           1.1  christos fi
   1635           1.1  christos 
   1636           1.1  christos rm -f conftest.$ac_cv_objext conftest.$ac_ext
   1637           1.1  christos fi
   1638  1.1.1.7.12.2    martin echo "$as_me:1638: result: $ac_cv_objext" >&5
   1639           1.1  christos echo "${ECHO_T}$ac_cv_objext" >&6
   1640           1.1  christos OBJEXT=$ac_cv_objext
   1641           1.1  christos ac_objext=$OBJEXT
   1642  1.1.1.7.12.2    martin echo "$as_me:1642: checking whether we are using the GNU C compiler" >&5
   1643           1.1  christos echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
   1644           1.1  christos if test "${ac_cv_c_compiler_gnu+set}" = set; then
   1645           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1646           1.1  christos else
   1647           1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   1648  1.1.1.7.12.2    martin #line 1648 "configure"
   1649           1.1  christos #include "confdefs.h"
   1650           1.1  christos 
   1651           1.1  christos int
   1652  1.1.1.7.12.1  christos main (void)
   1653           1.1  christos {
   1654           1.1  christos #ifndef __GNUC__
   1655           1.1  christos        choke me
   1656           1.1  christos #endif
   1657           1.1  christos 
   1658           1.1  christos   ;
   1659           1.1  christos   return 0;
   1660           1.1  christos }
   1661           1.1  christos _ACEOF
   1662           1.1  christos rm -f conftest.$ac_objext
   1663  1.1.1.7.12.2    martin if { (eval echo "$as_me:1663: \"$ac_compile\"") >&5
   1664           1.1  christos   (eval $ac_compile) 2>&5
   1665           1.1  christos   ac_status=$?
   1666  1.1.1.7.12.2    martin   echo "$as_me:1666: \$? = $ac_status" >&5
   1667           1.1  christos   (exit $ac_status); } &&
   1668           1.1  christos          { ac_try='test -s conftest.$ac_objext'
   1669  1.1.1.7.12.2    martin   { (eval echo "$as_me:1669: \"$ac_try\"") >&5
   1670           1.1  christos   (eval $ac_try) 2>&5
   1671           1.1  christos   ac_status=$?
   1672  1.1.1.7.12.2    martin   echo "$as_me:1672: \$? = $ac_status" >&5
   1673           1.1  christos   (exit $ac_status); }; }; then
   1674           1.1  christos   ac_compiler_gnu=yes
   1675           1.1  christos else
   1676           1.1  christos   echo "$as_me: failed program was:" >&5
   1677           1.1  christos cat conftest.$ac_ext >&5
   1678           1.1  christos ac_compiler_gnu=no
   1679           1.1  christos fi
   1680           1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   1681           1.1  christos ac_cv_c_compiler_gnu=$ac_compiler_gnu
   1682           1.1  christos 
   1683           1.1  christos fi
   1684  1.1.1.7.12.2    martin echo "$as_me:1684: result: $ac_cv_c_compiler_gnu" >&5
   1685           1.1  christos echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
   1686           1.1  christos GCC=`test $ac_compiler_gnu = yes && echo yes`
   1687           1.1  christos ac_test_CFLAGS=${CFLAGS+set}
   1688           1.1  christos ac_save_CFLAGS=$CFLAGS
   1689           1.1  christos CFLAGS="-g"
   1690  1.1.1.7.12.2    martin echo "$as_me:1690: checking whether $CC accepts -g" >&5
   1691           1.1  christos echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
   1692           1.1  christos if test "${ac_cv_prog_cc_g+set}" = set; then
   1693           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1694           1.1  christos else
   1695           1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   1696  1.1.1.7.12.2    martin #line 1696 "configure"
   1697           1.1  christos #include "confdefs.h"
   1698           1.1  christos 
   1699           1.1  christos int
   1700  1.1.1.7.12.1  christos main (void)
   1701           1.1  christos {
   1702           1.1  christos 
   1703           1.1  christos   ;
   1704           1.1  christos   return 0;
   1705           1.1  christos }
   1706           1.1  christos _ACEOF
   1707           1.1  christos rm -f conftest.$ac_objext
   1708  1.1.1.7.12.2    martin if { (eval echo "$as_me:1708: \"$ac_compile\"") >&5
   1709           1.1  christos   (eval $ac_compile) 2>&5
   1710           1.1  christos   ac_status=$?
   1711  1.1.1.7.12.2    martin   echo "$as_me:1711: \$? = $ac_status" >&5
   1712           1.1  christos   (exit $ac_status); } &&
   1713           1.1  christos          { ac_try='test -s conftest.$ac_objext'
   1714  1.1.1.7.12.2    martin   { (eval echo "$as_me:1714: \"$ac_try\"") >&5
   1715           1.1  christos   (eval $ac_try) 2>&5
   1716           1.1  christos   ac_status=$?
   1717  1.1.1.7.12.2    martin   echo "$as_me:1717: \$? = $ac_status" >&5
   1718           1.1  christos   (exit $ac_status); }; }; then
   1719           1.1  christos   ac_cv_prog_cc_g=yes
   1720           1.1  christos else
   1721           1.1  christos   echo "$as_me: failed program was:" >&5
   1722           1.1  christos cat conftest.$ac_ext >&5
   1723           1.1  christos ac_cv_prog_cc_g=no
   1724           1.1  christos fi
   1725           1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   1726           1.1  christos fi
   1727  1.1.1.7.12.2    martin echo "$as_me:1727: result: $ac_cv_prog_cc_g" >&5
   1728           1.1  christos echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
   1729           1.1  christos if test "$ac_test_CFLAGS" = set; then
   1730           1.1  christos   CFLAGS=$ac_save_CFLAGS
   1731           1.1  christos elif test $ac_cv_prog_cc_g = yes; then
   1732           1.1  christos   if test "$GCC" = yes; then
   1733           1.1  christos     CFLAGS="-g -O2"
   1734           1.1  christos   else
   1735           1.1  christos     CFLAGS="-g"
   1736           1.1  christos   fi
   1737           1.1  christos else
   1738           1.1  christos   if test "$GCC" = yes; then
   1739           1.1  christos     CFLAGS="-O2"
   1740           1.1  christos   else
   1741           1.1  christos     CFLAGS=
   1742           1.1  christos   fi
   1743           1.1  christos fi
   1744           1.1  christos # Some people use a C++ compiler to compile C.  Since we use `exit',
   1745           1.1  christos # in C++ we need to declare it.  In case someone uses the same compiler
   1746           1.1  christos # for both compiling C and C++ we need to have the C++ compiler decide
   1747           1.1  christos # the declaration of exit, since it's the most demanding environment.
   1748           1.1  christos cat >conftest.$ac_ext <<_ACEOF
   1749           1.1  christos #ifndef __cplusplus
   1750           1.1  christos   choke me
   1751           1.1  christos #endif
   1752           1.1  christos _ACEOF
   1753           1.1  christos rm -f conftest.$ac_objext
   1754  1.1.1.7.12.2    martin if { (eval echo "$as_me:1754: \"$ac_compile\"") >&5
   1755           1.1  christos   (eval $ac_compile) 2>&5
   1756           1.1  christos   ac_status=$?
   1757  1.1.1.7.12.2    martin   echo "$as_me:1757: \$? = $ac_status" >&5
   1758           1.1  christos   (exit $ac_status); } &&
   1759           1.1  christos          { ac_try='test -s conftest.$ac_objext'
   1760  1.1.1.7.12.2    martin   { (eval echo "$as_me:1760: \"$ac_try\"") >&5
   1761           1.1  christos   (eval $ac_try) 2>&5
   1762           1.1  christos   ac_status=$?
   1763  1.1.1.7.12.2    martin   echo "$as_me:1763: \$? = $ac_status" >&5
   1764           1.1  christos   (exit $ac_status); }; }; then
   1765           1.1  christos   for ac_declaration in \
   1766           1.1  christos    ''\
   1767           1.1  christos    '#include <stdlib.h>' \
   1768           1.1  christos    'extern "C" void std::exit (int) throw (); using std::exit;' \
   1769           1.1  christos    'extern "C" void std::exit (int); using std::exit;' \
   1770           1.1  christos    'extern "C" void exit (int) throw ();' \
   1771           1.1  christos    'extern "C" void exit (int);' \
   1772           1.1  christos    'void exit (int);'
   1773           1.1  christos do
   1774           1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   1775  1.1.1.7.12.2    martin #line 1775 "configure"
   1776           1.1  christos #include "confdefs.h"
   1777           1.1  christos #include <stdlib.h>
   1778           1.1  christos $ac_declaration
   1779           1.1  christos int
   1780  1.1.1.7.12.1  christos main (void)
   1781           1.1  christos {
   1782           1.1  christos exit (42);
   1783           1.1  christos   ;
   1784           1.1  christos   return 0;
   1785           1.1  christos }
   1786           1.1  christos _ACEOF
   1787           1.1  christos rm -f conftest.$ac_objext
   1788  1.1.1.7.12.2    martin if { (eval echo "$as_me:1788: \"$ac_compile\"") >&5
   1789           1.1  christos   (eval $ac_compile) 2>&5
   1790           1.1  christos   ac_status=$?
   1791  1.1.1.7.12.2    martin   echo "$as_me:1791: \$? = $ac_status" >&5
   1792           1.1  christos   (exit $ac_status); } &&
   1793           1.1  christos          { ac_try='test -s conftest.$ac_objext'
   1794  1.1.1.7.12.2    martin   { (eval echo "$as_me:1794: \"$ac_try\"") >&5
   1795           1.1  christos   (eval $ac_try) 2>&5
   1796           1.1  christos   ac_status=$?
   1797  1.1.1.7.12.2    martin   echo "$as_me:1797: \$? = $ac_status" >&5
   1798           1.1  christos   (exit $ac_status); }; }; then
   1799           1.1  christos   :
   1800           1.1  christos else
   1801           1.1  christos   echo "$as_me: failed program was:" >&5
   1802           1.1  christos cat conftest.$ac_ext >&5
   1803           1.1  christos continue
   1804           1.1  christos fi
   1805           1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   1806           1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   1807  1.1.1.7.12.2    martin #line 1807 "configure"
   1808           1.1  christos #include "confdefs.h"
   1809           1.1  christos $ac_declaration
   1810           1.1  christos int
   1811  1.1.1.7.12.1  christos main (void)
   1812           1.1  christos {
   1813           1.1  christos exit (42);
   1814           1.1  christos   ;
   1815           1.1  christos   return 0;
   1816           1.1  christos }
   1817           1.1  christos _ACEOF
   1818           1.1  christos rm -f conftest.$ac_objext
   1819  1.1.1.7.12.2    martin if { (eval echo "$as_me:1819: \"$ac_compile\"") >&5
   1820           1.1  christos   (eval $ac_compile) 2>&5
   1821           1.1  christos   ac_status=$?
   1822  1.1.1.7.12.2    martin   echo "$as_me:1822: \$? = $ac_status" >&5
   1823           1.1  christos   (exit $ac_status); } &&
   1824           1.1  christos          { ac_try='test -s conftest.$ac_objext'
   1825  1.1.1.7.12.2    martin   { (eval echo "$as_me:1825: \"$ac_try\"") >&5
   1826           1.1  christos   (eval $ac_try) 2>&5
   1827           1.1  christos   ac_status=$?
   1828  1.1.1.7.12.2    martin   echo "$as_me:1828: \$? = $ac_status" >&5
   1829           1.1  christos   (exit $ac_status); }; }; then
   1830           1.1  christos   break
   1831           1.1  christos else
   1832           1.1  christos   echo "$as_me: failed program was:" >&5
   1833           1.1  christos cat conftest.$ac_ext >&5
   1834           1.1  christos fi
   1835           1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   1836           1.1  christos done
   1837       1.1.1.3  christos rm -rf conftest*
   1838           1.1  christos if test -n "$ac_declaration"; then
   1839           1.1  christos   echo '#ifdef __cplusplus' >>confdefs.h
   1840           1.1  christos   echo $ac_declaration      >>confdefs.h
   1841           1.1  christos   echo '#endif'             >>confdefs.h
   1842           1.1  christos fi
   1843           1.1  christos 
   1844           1.1  christos else
   1845           1.1  christos   echo "$as_me: failed program was:" >&5
   1846           1.1  christos cat conftest.$ac_ext >&5
   1847           1.1  christos fi
   1848           1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   1849           1.1  christos ac_ext=c
   1850           1.1  christos ac_cpp='$CPP $CPPFLAGS'
   1851           1.1  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1852           1.1  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1853           1.1  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1854           1.1  christos ac_main_return=return
   1855           1.1  christos 
   1856       1.1.1.4  christos GCC_VERSION=none
   1857       1.1.1.4  christos if test "$GCC" = yes ; then
   1858  1.1.1.7.12.2    martin 	echo "$as_me:1858: checking version of $CC" >&5
   1859       1.1.1.4  christos echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
   1860       1.1.1.4  christos 	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.].*//'`"
   1861       1.1.1.4  christos 	test -z "$GCC_VERSION" && GCC_VERSION=unknown
   1862  1.1.1.7.12.2    martin 	echo "$as_me:1862: result: $GCC_VERSION" >&5
   1863       1.1.1.4  christos echo "${ECHO_T}$GCC_VERSION" >&6
   1864       1.1.1.4  christos fi
   1865       1.1.1.4  christos 
   1866  1.1.1.7.12.2    martin echo "$as_me:1866: checking for $CC option to accept ANSI C" >&5
   1867           1.1  christos echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
   1868           1.1  christos if test "${ac_cv_prog_cc_stdc+set}" = set; then
   1869           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   1870           1.1  christos else
   1871           1.1  christos   ac_cv_prog_cc_stdc=no
   1872           1.1  christos ac_save_CC=$CC
   1873           1.1  christos cat >conftest.$ac_ext <<_ACEOF
   1874  1.1.1.7.12.2    martin #line 1874 "configure"
   1875           1.1  christos #include "confdefs.h"
   1876           1.1  christos #include <stdarg.h>
   1877           1.1  christos #include <stdio.h>
   1878           1.1  christos #include <sys/types.h>
   1879           1.1  christos #include <sys/stat.h>
   1880           1.1  christos /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   1881           1.1  christos struct buf { int x; };
   1882           1.1  christos FILE * (*rcsopen) (struct buf *, struct stat *, int);
   1883           1.1  christos static char *e (p, i)
   1884           1.1  christos      char **p;
   1885           1.1  christos      int i;
   1886           1.1  christos {
   1887           1.1  christos   return p[i];
   1888           1.1  christos }
   1889           1.1  christos static char *f (char * (*g) (char **, int), char **p, ...)
   1890           1.1  christos {
   1891           1.1  christos   char *s;
   1892           1.1  christos   va_list v;
   1893           1.1  christos   va_start (v,p);
   1894           1.1  christos   s = g (p, va_arg (v,int));
   1895           1.1  christos   va_end (v);
   1896           1.1  christos   return s;
   1897           1.1  christos }
   1898           1.1  christos int test (int i, double x);
   1899           1.1  christos struct s1 {int (*f) (int a);};
   1900           1.1  christos struct s2 {int (*f) (double a);};
   1901           1.1  christos int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   1902           1.1  christos int argc;
   1903           1.1  christos char **argv;
   1904           1.1  christos int
   1905  1.1.1.7.12.1  christos main (void)
   1906           1.1  christos {
   1907           1.1  christos return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   1908           1.1  christos   ;
   1909           1.1  christos   return 0;
   1910           1.1  christos }
   1911           1.1  christos _ACEOF
   1912           1.1  christos # Don't try gcc -ansi; that turns off useful extensions and
   1913           1.1  christos # breaks some systems' header files.
   1914           1.1  christos # AIX			-qlanglvl=ansi
   1915           1.1  christos # Ultrix and OSF/1	-std1
   1916           1.1  christos # HP-UX 10.20 and later	-Ae
   1917           1.1  christos # HP-UX older versions	-Aa -D_HPUX_SOURCE
   1918           1.1  christos # SVR4			-Xc -D__EXTENSIONS__
   1919           1.1  christos for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   1920           1.1  christos do
   1921           1.1  christos   CC="$ac_save_CC $ac_arg"
   1922           1.1  christos   rm -f conftest.$ac_objext
   1923  1.1.1.7.12.2    martin if { (eval echo "$as_me:1923: \"$ac_compile\"") >&5
   1924           1.1  christos   (eval $ac_compile) 2>&5
   1925           1.1  christos   ac_status=$?
   1926  1.1.1.7.12.2    martin   echo "$as_me:1926: \$? = $ac_status" >&5
   1927           1.1  christos   (exit $ac_status); } &&
   1928           1.1  christos          { ac_try='test -s conftest.$ac_objext'
   1929  1.1.1.7.12.2    martin   { (eval echo "$as_me:1929: \"$ac_try\"") >&5
   1930           1.1  christos   (eval $ac_try) 2>&5
   1931           1.1  christos   ac_status=$?
   1932  1.1.1.7.12.2    martin   echo "$as_me:1932: \$? = $ac_status" >&5
   1933           1.1  christos   (exit $ac_status); }; }; then
   1934           1.1  christos   ac_cv_prog_cc_stdc=$ac_arg
   1935           1.1  christos break
   1936           1.1  christos else
   1937           1.1  christos   echo "$as_me: failed program was:" >&5
   1938           1.1  christos cat conftest.$ac_ext >&5
   1939           1.1  christos fi
   1940           1.1  christos rm -f conftest.$ac_objext
   1941           1.1  christos done
   1942           1.1  christos rm -f conftest.$ac_ext conftest.$ac_objext
   1943           1.1  christos CC=$ac_save_CC
   1944           1.1  christos 
   1945           1.1  christos fi
   1946           1.1  christos 
   1947           1.1  christos case "x$ac_cv_prog_cc_stdc" in
   1948           1.1  christos   x|xno)
   1949  1.1.1.7.12.2    martin     echo "$as_me:1949: result: none needed" >&5
   1950           1.1  christos echo "${ECHO_T}none needed" >&6 ;;
   1951           1.1  christos   *)
   1952  1.1.1.7.12.2    martin     echo "$as_me:1952: result: $ac_cv_prog_cc_stdc" >&5
   1953           1.1  christos echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
   1954           1.1  christos     CC="$CC $ac_cv_prog_cc_stdc" ;;
   1955           1.1  christos esac
   1956           1.1  christos 
   1957       1.1.1.4  christos # This should have been defined by AC_PROG_CC
   1958       1.1.1.4  christos : ${CC:=cc}
   1959           1.1  christos 
   1960  1.1.1.7.12.2    martin echo "$as_me:1960: checking \$CFLAGS variable" >&5
   1961  1.1.1.7.12.2    martin echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
   1962  1.1.1.7.12.2    martin case "x$CFLAGS" in
   1963  1.1.1.7.12.2    martin (*-[IUD]*)
   1964  1.1.1.7.12.2    martin 	echo "$as_me:1964: result: broken" >&5
   1965  1.1.1.7.12.2    martin echo "${ECHO_T}broken" >&6
   1966  1.1.1.7.12.2    martin 	{ echo "$as_me:1966: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
   1967  1.1.1.7.12.2    martin echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
   1968  1.1.1.7.12.2    martin 	cf_flags="$CFLAGS"
   1969  1.1.1.7.12.2    martin 	CFLAGS=
   1970  1.1.1.7.12.2    martin 	for cf_arg in $cf_flags
   1971  1.1.1.7.12.2    martin 	do
   1972  1.1.1.7.12.2    martin 
   1973  1.1.1.7.12.2    martin cf_fix_cppflags=no
   1974  1.1.1.7.12.2    martin cf_new_cflags=
   1975  1.1.1.7.12.2    martin cf_new_cppflags=
   1976  1.1.1.7.12.2    martin cf_new_extra_cppflags=
   1977  1.1.1.7.12.2    martin 
   1978  1.1.1.7.12.2    martin for cf_add_cflags in $cf_arg
   1979  1.1.1.7.12.2    martin do
   1980  1.1.1.7.12.2    martin case $cf_fix_cppflags in
   1981  1.1.1.7.12.2    martin (no)
   1982  1.1.1.7.12.2    martin 	case $cf_add_cflags in
   1983  1.1.1.7.12.2    martin 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   1984  1.1.1.7.12.2    martin 		case $cf_add_cflags in
   1985  1.1.1.7.12.2    martin 		(-D*)
   1986  1.1.1.7.12.2    martin 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   1987  1.1.1.7.12.2    martin 
   1988  1.1.1.7.12.2    martin 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   1989  1.1.1.7.12.2    martin 				&& test -z "${cf_tst_cflags}" \
   1990  1.1.1.7.12.2    martin 				&& cf_fix_cppflags=yes
   1991  1.1.1.7.12.2    martin 
   1992  1.1.1.7.12.2    martin 			if test $cf_fix_cppflags = yes ; then
   1993  1.1.1.7.12.2    martin 
   1994  1.1.1.7.12.2    martin 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   1995  1.1.1.7.12.2    martin 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   1996  1.1.1.7.12.2    martin 
   1997  1.1.1.7.12.2    martin 				continue
   1998  1.1.1.7.12.2    martin 			elif test "${cf_tst_cflags}" = "\"'" ; then
   1999  1.1.1.7.12.2    martin 
   2000  1.1.1.7.12.2    martin 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   2001  1.1.1.7.12.2    martin 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   2002  1.1.1.7.12.2    martin 
   2003  1.1.1.7.12.2    martin 				continue
   2004  1.1.1.7.12.2    martin 			fi
   2005  1.1.1.7.12.2    martin 			;;
   2006  1.1.1.7.12.2    martin 		esac
   2007  1.1.1.7.12.2    martin 		case "$CPPFLAGS" in
   2008  1.1.1.7.12.2    martin 		(*$cf_add_cflags)
   2009  1.1.1.7.12.2    martin 			;;
   2010  1.1.1.7.12.2    martin 		(*)
   2011  1.1.1.7.12.2    martin 			case $cf_add_cflags in
   2012  1.1.1.7.12.2    martin 			(-D*)
   2013  1.1.1.7.12.2    martin 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   2014  1.1.1.7.12.2    martin 
   2015  1.1.1.7.12.2    martin CPPFLAGS=`echo "$CPPFLAGS" | \
   2016  1.1.1.7.12.2    martin 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   2017  1.1.1.7.12.2    martin 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   2018  1.1.1.7.12.2    martin 
   2019  1.1.1.7.12.2    martin 				;;
   2020  1.1.1.7.12.2    martin 			esac
   2021  1.1.1.7.12.2    martin 
   2022  1.1.1.7.12.2    martin 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   2023  1.1.1.7.12.2    martin 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   2024  1.1.1.7.12.2    martin 
   2025  1.1.1.7.12.2    martin 			;;
   2026  1.1.1.7.12.2    martin 		esac
   2027  1.1.1.7.12.2    martin 		;;
   2028  1.1.1.7.12.2    martin 	(*)
   2029  1.1.1.7.12.2    martin 
   2030  1.1.1.7.12.2    martin 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   2031  1.1.1.7.12.2    martin 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   2032  1.1.1.7.12.2    martin 
   2033  1.1.1.7.12.2    martin 		;;
   2034  1.1.1.7.12.2    martin 	esac
   2035  1.1.1.7.12.2    martin 	;;
   2036  1.1.1.7.12.2    martin (yes)
   2037  1.1.1.7.12.2    martin 
   2038  1.1.1.7.12.2    martin 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   2039  1.1.1.7.12.2    martin 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   2040  1.1.1.7.12.2    martin 
   2041  1.1.1.7.12.2    martin 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   2042  1.1.1.7.12.2    martin 
   2043  1.1.1.7.12.2    martin 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   2044  1.1.1.7.12.2    martin 		&& test -z "${cf_tst_cflags}" \
   2045  1.1.1.7.12.2    martin 		&& cf_fix_cppflags=no
   2046  1.1.1.7.12.2    martin 	;;
   2047  1.1.1.7.12.2    martin esac
   2048  1.1.1.7.12.2    martin done
   2049  1.1.1.7.12.2    martin 
   2050  1.1.1.7.12.2    martin if test -n "$cf_new_cflags" ; then
   2051  1.1.1.7.12.2    martin 
   2052  1.1.1.7.12.2    martin 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   2053  1.1.1.7.12.2    martin 	CFLAGS="${CFLAGS}$cf_new_cflags"
   2054  1.1.1.7.12.2    martin 
   2055  1.1.1.7.12.2    martin fi
   2056  1.1.1.7.12.2    martin 
   2057  1.1.1.7.12.2    martin if test -n "$cf_new_cppflags" ; then
   2058  1.1.1.7.12.2    martin 
   2059  1.1.1.7.12.2    martin 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   2060  1.1.1.7.12.2    martin 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   2061  1.1.1.7.12.2    martin 
   2062  1.1.1.7.12.2    martin fi
   2063  1.1.1.7.12.2    martin 
   2064  1.1.1.7.12.2    martin if test -n "$cf_new_extra_cppflags" ; then
   2065  1.1.1.7.12.2    martin 
   2066  1.1.1.7.12.2    martin 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   2067  1.1.1.7.12.2    martin 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   2068  1.1.1.7.12.2    martin 
   2069  1.1.1.7.12.2    martin fi
   2070  1.1.1.7.12.2    martin 
   2071  1.1.1.7.12.2    martin 	done
   2072  1.1.1.7.12.2    martin 	;;
   2073  1.1.1.7.12.2    martin (*)
   2074  1.1.1.7.12.2    martin 	echo "$as_me:2074: result: ok" >&5
   2075  1.1.1.7.12.2    martin echo "${ECHO_T}ok" >&6
   2076  1.1.1.7.12.2    martin 	;;
   2077  1.1.1.7.12.2    martin esac
   2078  1.1.1.7.12.2    martin 
   2079  1.1.1.7.12.2    martin echo "$as_me:2079: checking \$CC variable" >&5
   2080       1.1.1.4  christos echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
   2081       1.1.1.6  christos case "$CC" in
   2082       1.1.1.7  christos (*[\ \	]-*)
   2083  1.1.1.7.12.2    martin 	echo "$as_me:2083: result: broken" >&5
   2084       1.1.1.4  christos echo "${ECHO_T}broken" >&6
   2085  1.1.1.7.12.2    martin 	{ echo "$as_me:2085: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
   2086  1.1.1.7.12.2    martin echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
   2087       1.1.1.4  christos 	# humor him...
   2088  1.1.1.7.12.1  christos 	cf_prog=`echo "$CC" | sed -e 's/	/ /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
   2089  1.1.1.7.12.1  christos 	cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
   2090  1.1.1.7.12.1  christos 	CC="$cf_prog"
   2091       1.1.1.7  christos 	for cf_arg in $cf_flags
   2092       1.1.1.7  christos 	do
   2093       1.1.1.7  christos 		case "x$cf_arg" in
   2094       1.1.1.7  christos 		(x-[IUDfgOW]*)
   2095           1.1  christos 
   2096       1.1.1.4  christos cf_fix_cppflags=no
   2097       1.1.1.4  christos cf_new_cflags=
   2098       1.1.1.4  christos cf_new_cppflags=
   2099       1.1.1.4  christos cf_new_extra_cppflags=
   2100       1.1.1.4  christos 
   2101  1.1.1.7.12.1  christos for cf_add_cflags in $cf_arg
   2102       1.1.1.4  christos do
   2103       1.1.1.4  christos case $cf_fix_cppflags in
   2104       1.1.1.6  christos (no)
   2105       1.1.1.6  christos 	case $cf_add_cflags in
   2106       1.1.1.6  christos 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   2107       1.1.1.4  christos 		case $cf_add_cflags in
   2108       1.1.1.6  christos 		(-D*)
   2109       1.1.1.4  christos 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   2110       1.1.1.4  christos 
   2111       1.1.1.5  christos 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   2112       1.1.1.4  christos 				&& test -z "${cf_tst_cflags}" \
   2113       1.1.1.4  christos 				&& cf_fix_cppflags=yes
   2114       1.1.1.4  christos 
   2115       1.1.1.4  christos 			if test $cf_fix_cppflags = yes ; then
   2116  1.1.1.7.12.1  christos 
   2117  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   2118  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   2119  1.1.1.7.12.1  christos 
   2120       1.1.1.4  christos 				continue
   2121       1.1.1.4  christos 			elif test "${cf_tst_cflags}" = "\"'" ; then
   2122  1.1.1.7.12.1  christos 
   2123  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   2124  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   2125  1.1.1.7.12.1  christos 
   2126       1.1.1.4  christos 				continue
   2127       1.1.1.4  christos 			fi
   2128       1.1.1.4  christos 			;;
   2129       1.1.1.4  christos 		esac
   2130       1.1.1.4  christos 		case "$CPPFLAGS" in
   2131       1.1.1.6  christos 		(*$cf_add_cflags)
   2132       1.1.1.4  christos 			;;
   2133       1.1.1.6  christos 		(*)
   2134       1.1.1.6  christos 			case $cf_add_cflags in
   2135       1.1.1.6  christos 			(-D*)
   2136       1.1.1.4  christos 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   2137       1.1.1.4  christos 
   2138       1.1.1.4  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   2139       1.1.1.4  christos 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   2140       1.1.1.4  christos 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   2141       1.1.1.4  christos 
   2142       1.1.1.4  christos 				;;
   2143       1.1.1.4  christos 			esac
   2144  1.1.1.7.12.1  christos 
   2145  1.1.1.7.12.1  christos 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   2146  1.1.1.7.12.1  christos 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   2147  1.1.1.7.12.1  christos 
   2148       1.1.1.4  christos 			;;
   2149       1.1.1.4  christos 		esac
   2150       1.1.1.4  christos 		;;
   2151       1.1.1.6  christos 	(*)
   2152  1.1.1.7.12.1  christos 
   2153  1.1.1.7.12.1  christos 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   2154  1.1.1.7.12.1  christos 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   2155  1.1.1.7.12.1  christos 
   2156       1.1.1.4  christos 		;;
   2157       1.1.1.4  christos 	esac
   2158       1.1.1.4  christos 	;;
   2159       1.1.1.6  christos (yes)
   2160  1.1.1.7.12.1  christos 
   2161  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   2162  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   2163       1.1.1.4  christos 
   2164       1.1.1.4  christos 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   2165       1.1.1.4  christos 
   2166       1.1.1.5  christos 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   2167       1.1.1.4  christos 		&& test -z "${cf_tst_cflags}" \
   2168       1.1.1.4  christos 		&& cf_fix_cppflags=no
   2169       1.1.1.4  christos 	;;
   2170       1.1.1.4  christos esac
   2171       1.1.1.4  christos done
   2172       1.1.1.4  christos 
   2173       1.1.1.4  christos if test -n "$cf_new_cflags" ; then
   2174       1.1.1.4  christos 
   2175  1.1.1.7.12.1  christos 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   2176  1.1.1.7.12.1  christos 	CFLAGS="${CFLAGS}$cf_new_cflags"
   2177  1.1.1.7.12.1  christos 
   2178           1.1  christos fi
   2179       1.1.1.4  christos 
   2180       1.1.1.4  christos if test -n "$cf_new_cppflags" ; then
   2181       1.1.1.4  christos 
   2182  1.1.1.7.12.1  christos 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   2183  1.1.1.7.12.1  christos 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   2184  1.1.1.7.12.1  christos 
   2185           1.1  christos fi
   2186           1.1  christos 
   2187       1.1.1.4  christos if test -n "$cf_new_extra_cppflags" ; then
   2188           1.1  christos 
   2189  1.1.1.7.12.1  christos 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   2190  1.1.1.7.12.1  christos 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   2191  1.1.1.7.12.1  christos 
   2192           1.1  christos fi
   2193           1.1  christos 
   2194       1.1.1.7  christos 			;;
   2195       1.1.1.7  christos 		(*)
   2196       1.1.1.7  christos 			CC="$CC $cf_arg"
   2197       1.1.1.7  christos 			;;
   2198       1.1.1.7  christos 		esac
   2199       1.1.1.7  christos 	done
   2200       1.1.1.7  christos 	test -n "$verbose" && echo "	resulting CC: '$CC'" 1>&6
   2201       1.1.1.7  christos 
   2202  1.1.1.7.12.2    martin echo "${as_me:-configure}:2202: testing resulting CC: '$CC' ..." 1>&5
   2203       1.1.1.7  christos 
   2204       1.1.1.7  christos 	test -n "$verbose" && echo "	resulting CFLAGS: '$CFLAGS'" 1>&6
   2205       1.1.1.7  christos 
   2206  1.1.1.7.12.2    martin echo "${as_me:-configure}:2206: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
   2207       1.1.1.7  christos 
   2208       1.1.1.7  christos 	test -n "$verbose" && echo "	resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
   2209       1.1.1.7  christos 
   2210  1.1.1.7.12.2    martin echo "${as_me:-configure}:2210: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
   2211       1.1.1.7  christos 
   2212       1.1.1.4  christos 	;;
   2213       1.1.1.6  christos (*)
   2214  1.1.1.7.12.2    martin 	echo "$as_me:2214: result: ok" >&5
   2215       1.1.1.4  christos echo "${ECHO_T}ok" >&6
   2216       1.1.1.4  christos 	;;
   2217       1.1.1.4  christos esac
   2218       1.1.1.4  christos 
   2219  1.1.1.7.12.2    martin echo "$as_me:2219: checking whether ${MAKE-make} sets \${MAKE}" >&5
   2220           1.1  christos echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
   2221           1.1  christos set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
   2222           1.1  christos if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
   2223           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2224           1.1  christos else
   2225           1.1  christos   cat >conftest.make <<\EOF
   2226           1.1  christos all:
   2227           1.1  christos 	@echo 'ac_maketemp="${MAKE}"'
   2228           1.1  christos EOF
   2229           1.1  christos # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
   2230           1.1  christos eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
   2231           1.1  christos if test -n "$ac_maketemp"; then
   2232           1.1  christos   eval ac_cv_prog_make_${ac_make}_set=yes
   2233           1.1  christos else
   2234           1.1  christos   eval ac_cv_prog_make_${ac_make}_set=no
   2235           1.1  christos fi
   2236           1.1  christos rm -f conftest.make
   2237           1.1  christos fi
   2238           1.1  christos if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
   2239  1.1.1.7.12.2    martin   echo "$as_me:2239: result: yes" >&5
   2240           1.1  christos echo "${ECHO_T}yes" >&6
   2241           1.1  christos   SET_MAKE=
   2242           1.1  christos else
   2243  1.1.1.7.12.2    martin   echo "$as_me:2243: result: no" >&5
   2244           1.1  christos echo "${ECHO_T}no" >&6
   2245           1.1  christos   SET_MAKE="MAKE=${MAKE-make}"
   2246           1.1  christos fi
   2247           1.1  christos 
   2248           1.1  christos # Find a good install program.  We prefer a C program (faster),
   2249           1.1  christos # so one script is as good as another.  But avoid the broken or
   2250           1.1  christos # incompatible versions:
   2251           1.1  christos # SysV /etc/install, /usr/sbin/install
   2252           1.1  christos # SunOS /usr/etc/install
   2253           1.1  christos # IRIX /sbin/install
   2254           1.1  christos # AIX /bin/install
   2255           1.1  christos # AmigaOS /C/install, which installs bootblocks on floppy discs
   2256           1.1  christos # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   2257           1.1  christos # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   2258           1.1  christos # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   2259           1.1  christos # ./install, which can be erroneously created by make from ./install.sh.
   2260  1.1.1.7.12.2    martin echo "$as_me:2260: checking for a BSD compatible install" >&5
   2261           1.1  christos echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
   2262           1.1  christos if test -z "$INSTALL"; then
   2263           1.1  christos if test "${ac_cv_path_install+set}" = set; then
   2264           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2265           1.1  christos else
   2266           1.1  christos     ac_save_IFS=$IFS; IFS=$ac_path_separator
   2267           1.1  christos   for ac_dir in $PATH; do
   2268           1.1  christos     IFS=$ac_save_IFS
   2269           1.1  christos     # Account for people who put trailing slashes in PATH elements.
   2270           1.1  christos     case $ac_dir/ in
   2271           1.1  christos     / | ./ | .// | /cC/* \
   2272           1.1  christos     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
   2273           1.1  christos     | /usr/ucb/* ) ;;
   2274           1.1  christos     *)
   2275           1.1  christos       # OSF1 and SCO ODT 3.0 have their own names for install.
   2276           1.1  christos       # Don't use installbsd from OSF since it installs stuff as root
   2277           1.1  christos       # by default.
   2278           1.1  christos       for ac_prog in ginstall scoinst install; do
   2279           1.1  christos         if $as_executable_p "$ac_dir/$ac_prog"; then
   2280           1.1  christos 	  if test $ac_prog = install &&
   2281           1.1  christos             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
   2282           1.1  christos 	    # AIX install.  It has an incompatible calling convention.
   2283           1.1  christos 	    :
   2284           1.1  christos 	  elif test $ac_prog = install &&
   2285           1.1  christos 	    grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
   2286           1.1  christos 	    # program-specific install script used by HP pwplus--don't use.
   2287           1.1  christos 	    :
   2288           1.1  christos 	  else
   2289           1.1  christos 	    ac_cv_path_install="$ac_dir/$ac_prog -c"
   2290           1.1  christos 	    break 2
   2291           1.1  christos 	  fi
   2292           1.1  christos 	fi
   2293           1.1  christos       done
   2294           1.1  christos       ;;
   2295           1.1  christos     esac
   2296           1.1  christos   done
   2297           1.1  christos 
   2298           1.1  christos fi
   2299           1.1  christos   if test "${ac_cv_path_install+set}" = set; then
   2300           1.1  christos     INSTALL=$ac_cv_path_install
   2301           1.1  christos   else
   2302           1.1  christos     # As a last resort, use the slow shell script.  We don't cache a
   2303           1.1  christos     # path for INSTALL within a source directory, because that will
   2304           1.1  christos     # break other packages using the cache if that directory is
   2305           1.1  christos     # removed, or if the path is relative.
   2306           1.1  christos     INSTALL=$ac_install_sh
   2307           1.1  christos   fi
   2308           1.1  christos fi
   2309  1.1.1.7.12.2    martin echo "$as_me:2309: result: $INSTALL" >&5
   2310           1.1  christos echo "${ECHO_T}$INSTALL" >&6
   2311           1.1  christos 
   2312           1.1  christos # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   2313           1.1  christos # It thinks the first close brace ends the variable substitution.
   2314           1.1  christos test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   2315           1.1  christos 
   2316           1.1  christos test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   2317           1.1  christos 
   2318           1.1  christos test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   2319           1.1  christos 
   2320  1.1.1.7.12.2    martin echo "$as_me:2320: checking if filesystem supports mixed-case filenames" >&5
   2321       1.1.1.2  christos echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
   2322       1.1.1.2  christos if test "${cf_cv_mixedcase+set}" = set; then
   2323       1.1.1.2  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2324       1.1.1.2  christos else
   2325       1.1.1.2  christos 
   2326       1.1.1.2  christos if test "$cross_compiling" = yes ; then
   2327       1.1.1.6  christos 	case $target_alias in
   2328       1.1.1.6  christos 	(*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
   2329       1.1.1.2  christos 		cf_cv_mixedcase=no
   2330       1.1.1.2  christos 		;;
   2331       1.1.1.6  christos 	(*)
   2332       1.1.1.2  christos 		cf_cv_mixedcase=yes
   2333       1.1.1.2  christos 		;;
   2334       1.1.1.2  christos 	esac
   2335       1.1.1.2  christos else
   2336       1.1.1.2  christos 	rm -f conftest CONFTEST
   2337       1.1.1.2  christos 	echo test >conftest
   2338       1.1.1.2  christos 	if test -f CONFTEST ; then
   2339       1.1.1.2  christos 		cf_cv_mixedcase=no
   2340       1.1.1.2  christos 	else
   2341       1.1.1.2  christos 		cf_cv_mixedcase=yes
   2342       1.1.1.2  christos 	fi
   2343       1.1.1.2  christos 	rm -f conftest CONFTEST
   2344       1.1.1.2  christos fi
   2345       1.1.1.2  christos 
   2346       1.1.1.2  christos fi
   2347  1.1.1.7.12.2    martin echo "$as_me:2347: result: $cf_cv_mixedcase" >&5
   2348       1.1.1.2  christos echo "${ECHO_T}$cf_cv_mixedcase" >&6
   2349       1.1.1.4  christos test "$cf_cv_mixedcase" = yes &&
   2350       1.1.1.4  christos cat >>confdefs.h <<\EOF
   2351       1.1.1.2  christos #define MIXEDCASE_FILENAMES 1
   2352       1.1.1.2  christos EOF
   2353       1.1.1.2  christos 
   2354       1.1.1.2  christos for ac_prog in exctags ctags
   2355       1.1.1.2  christos do
   2356       1.1.1.2  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2357       1.1.1.2  christos set dummy $ac_prog; ac_word=$2
   2358  1.1.1.7.12.2    martin echo "$as_me:2358: checking for $ac_word" >&5
   2359       1.1.1.2  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2360       1.1.1.2  christos if test "${ac_cv_prog_CTAGS+set}" = set; then
   2361       1.1.1.2  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2362       1.1.1.2  christos else
   2363       1.1.1.2  christos   if test -n "$CTAGS"; then
   2364       1.1.1.2  christos   ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
   2365       1.1.1.2  christos else
   2366       1.1.1.2  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   2367       1.1.1.2  christos ac_dummy="$PATH"
   2368       1.1.1.2  christos for ac_dir in $ac_dummy; do
   2369       1.1.1.2  christos   IFS=$ac_save_IFS
   2370       1.1.1.2  christos   test -z "$ac_dir" && ac_dir=.
   2371       1.1.1.2  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   2372       1.1.1.2  christos ac_cv_prog_CTAGS="$ac_prog"
   2373  1.1.1.7.12.2    martin echo "$as_me:2373: found $ac_dir/$ac_word" >&5
   2374       1.1.1.2  christos break
   2375       1.1.1.2  christos done
   2376       1.1.1.2  christos 
   2377       1.1.1.2  christos fi
   2378       1.1.1.2  christos fi
   2379       1.1.1.2  christos CTAGS=$ac_cv_prog_CTAGS
   2380       1.1.1.2  christos if test -n "$CTAGS"; then
   2381  1.1.1.7.12.2    martin   echo "$as_me:2381: result: $CTAGS" >&5
   2382       1.1.1.2  christos echo "${ECHO_T}$CTAGS" >&6
   2383       1.1.1.2  christos else
   2384  1.1.1.7.12.2    martin   echo "$as_me:2384: result: no" >&5
   2385       1.1.1.2  christos echo "${ECHO_T}no" >&6
   2386       1.1.1.2  christos fi
   2387       1.1.1.2  christos 
   2388       1.1.1.2  christos   test -n "$CTAGS" && break
   2389       1.1.1.2  christos done
   2390       1.1.1.2  christos 
   2391       1.1.1.2  christos for ac_prog in exetags etags
   2392       1.1.1.2  christos do
   2393       1.1.1.2  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2394       1.1.1.2  christos set dummy $ac_prog; ac_word=$2
   2395  1.1.1.7.12.2    martin echo "$as_me:2395: checking for $ac_word" >&5
   2396       1.1.1.2  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2397       1.1.1.2  christos if test "${ac_cv_prog_ETAGS+set}" = set; then
   2398       1.1.1.2  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2399       1.1.1.2  christos else
   2400       1.1.1.2  christos   if test -n "$ETAGS"; then
   2401       1.1.1.2  christos   ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
   2402       1.1.1.2  christos else
   2403       1.1.1.2  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   2404       1.1.1.2  christos ac_dummy="$PATH"
   2405       1.1.1.2  christos for ac_dir in $ac_dummy; do
   2406       1.1.1.2  christos   IFS=$ac_save_IFS
   2407       1.1.1.2  christos   test -z "$ac_dir" && ac_dir=.
   2408       1.1.1.2  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   2409       1.1.1.2  christos ac_cv_prog_ETAGS="$ac_prog"
   2410  1.1.1.7.12.2    martin echo "$as_me:2410: found $ac_dir/$ac_word" >&5
   2411       1.1.1.2  christos break
   2412       1.1.1.2  christos done
   2413       1.1.1.2  christos 
   2414       1.1.1.2  christos fi
   2415       1.1.1.2  christos fi
   2416       1.1.1.2  christos ETAGS=$ac_cv_prog_ETAGS
   2417       1.1.1.2  christos if test -n "$ETAGS"; then
   2418  1.1.1.7.12.2    martin   echo "$as_me:2418: result: $ETAGS" >&5
   2419       1.1.1.2  christos echo "${ECHO_T}$ETAGS" >&6
   2420       1.1.1.2  christos else
   2421  1.1.1.7.12.2    martin   echo "$as_me:2421: result: no" >&5
   2422       1.1.1.2  christos echo "${ECHO_T}no" >&6
   2423       1.1.1.2  christos fi
   2424       1.1.1.2  christos 
   2425       1.1.1.2  christos   test -n "$ETAGS" && break
   2426       1.1.1.2  christos done
   2427       1.1.1.2  christos 
   2428       1.1.1.3  christos # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
   2429       1.1.1.3  christos set dummy ${CTAGS:-ctags}; ac_word=$2
   2430  1.1.1.7.12.2    martin echo "$as_me:2430: checking for $ac_word" >&5
   2431       1.1.1.2  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2432       1.1.1.2  christos if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
   2433       1.1.1.2  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2434       1.1.1.2  christos else
   2435       1.1.1.2  christos   if test -n "$MAKE_LOWER_TAGS"; then
   2436       1.1.1.2  christos   ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
   2437       1.1.1.2  christos else
   2438       1.1.1.2  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   2439       1.1.1.2  christos ac_dummy="$PATH"
   2440       1.1.1.2  christos for ac_dir in $ac_dummy; do
   2441       1.1.1.2  christos   IFS=$ac_save_IFS
   2442       1.1.1.2  christos   test -z "$ac_dir" && ac_dir=.
   2443       1.1.1.2  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   2444       1.1.1.2  christos ac_cv_prog_MAKE_LOWER_TAGS="yes"
   2445  1.1.1.7.12.2    martin echo "$as_me:2445: found $ac_dir/$ac_word" >&5
   2446       1.1.1.2  christos break
   2447       1.1.1.2  christos done
   2448       1.1.1.2  christos 
   2449       1.1.1.2  christos   test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
   2450       1.1.1.2  christos fi
   2451       1.1.1.2  christos fi
   2452       1.1.1.2  christos MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
   2453       1.1.1.2  christos if test -n "$MAKE_LOWER_TAGS"; then
   2454  1.1.1.7.12.2    martin   echo "$as_me:2454: result: $MAKE_LOWER_TAGS" >&5
   2455       1.1.1.2  christos echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
   2456       1.1.1.2  christos else
   2457  1.1.1.7.12.2    martin   echo "$as_me:2457: result: no" >&5
   2458       1.1.1.2  christos echo "${ECHO_T}no" >&6
   2459       1.1.1.2  christos fi
   2460       1.1.1.2  christos 
   2461       1.1.1.2  christos if test "$cf_cv_mixedcase" = yes ; then
   2462       1.1.1.3  christos 	# Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
   2463       1.1.1.3  christos set dummy ${ETAGS:-etags}; ac_word=$2
   2464  1.1.1.7.12.2    martin echo "$as_me:2464: checking for $ac_word" >&5
   2465       1.1.1.2  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2466       1.1.1.2  christos if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
   2467       1.1.1.2  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2468       1.1.1.2  christos else
   2469       1.1.1.2  christos   if test -n "$MAKE_UPPER_TAGS"; then
   2470       1.1.1.2  christos   ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
   2471       1.1.1.2  christos else
   2472       1.1.1.2  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   2473       1.1.1.2  christos ac_dummy="$PATH"
   2474       1.1.1.2  christos for ac_dir in $ac_dummy; do
   2475       1.1.1.2  christos   IFS=$ac_save_IFS
   2476       1.1.1.2  christos   test -z "$ac_dir" && ac_dir=.
   2477       1.1.1.2  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   2478       1.1.1.2  christos ac_cv_prog_MAKE_UPPER_TAGS="yes"
   2479  1.1.1.7.12.2    martin echo "$as_me:2479: found $ac_dir/$ac_word" >&5
   2480       1.1.1.2  christos break
   2481       1.1.1.2  christos done
   2482       1.1.1.2  christos 
   2483       1.1.1.2  christos   test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
   2484       1.1.1.2  christos fi
   2485       1.1.1.2  christos fi
   2486       1.1.1.2  christos MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
   2487       1.1.1.2  christos if test -n "$MAKE_UPPER_TAGS"; then
   2488  1.1.1.7.12.2    martin   echo "$as_me:2488: result: $MAKE_UPPER_TAGS" >&5
   2489       1.1.1.2  christos echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
   2490       1.1.1.2  christos else
   2491  1.1.1.7.12.2    martin   echo "$as_me:2491: result: no" >&5
   2492       1.1.1.2  christos echo "${ECHO_T}no" >&6
   2493       1.1.1.2  christos fi
   2494       1.1.1.2  christos 
   2495       1.1.1.2  christos else
   2496       1.1.1.2  christos 	MAKE_UPPER_TAGS=no
   2497       1.1.1.2  christos fi
   2498       1.1.1.2  christos 
   2499       1.1.1.2  christos if test "$MAKE_UPPER_TAGS" = yes ; then
   2500       1.1.1.2  christos 	MAKE_UPPER_TAGS=
   2501       1.1.1.2  christos else
   2502       1.1.1.2  christos 	MAKE_UPPER_TAGS="#"
   2503       1.1.1.2  christos fi
   2504       1.1.1.2  christos 
   2505       1.1.1.2  christos if test "$MAKE_LOWER_TAGS" = yes ; then
   2506       1.1.1.2  christos 	MAKE_LOWER_TAGS=
   2507       1.1.1.2  christos else
   2508       1.1.1.2  christos 	MAKE_LOWER_TAGS="#"
   2509       1.1.1.2  christos fi
   2510       1.1.1.2  christos 
   2511       1.1.1.5  christos for ac_prog in mawk gawk nawk awk
   2512       1.1.1.5  christos do
   2513       1.1.1.5  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2514       1.1.1.5  christos set dummy $ac_prog; ac_word=$2
   2515  1.1.1.7.12.2    martin echo "$as_me:2515: checking for $ac_word" >&5
   2516       1.1.1.5  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2517       1.1.1.5  christos if test "${ac_cv_prog_AWK+set}" = set; then
   2518       1.1.1.5  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2519       1.1.1.5  christos else
   2520       1.1.1.5  christos   if test -n "$AWK"; then
   2521       1.1.1.5  christos   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   2522       1.1.1.5  christos else
   2523       1.1.1.5  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   2524       1.1.1.5  christos ac_dummy="$PATH"
   2525       1.1.1.5  christos for ac_dir in $ac_dummy; do
   2526       1.1.1.5  christos   IFS=$ac_save_IFS
   2527       1.1.1.5  christos   test -z "$ac_dir" && ac_dir=.
   2528       1.1.1.5  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   2529       1.1.1.5  christos ac_cv_prog_AWK="$ac_prog"
   2530  1.1.1.7.12.2    martin echo "$as_me:2530: found $ac_dir/$ac_word" >&5
   2531       1.1.1.5  christos break
   2532       1.1.1.5  christos done
   2533       1.1.1.5  christos 
   2534       1.1.1.5  christos fi
   2535       1.1.1.5  christos fi
   2536       1.1.1.5  christos AWK=$ac_cv_prog_AWK
   2537       1.1.1.5  christos if test -n "$AWK"; then
   2538  1.1.1.7.12.2    martin   echo "$as_me:2538: result: $AWK" >&5
   2539       1.1.1.5  christos echo "${ECHO_T}$AWK" >&6
   2540       1.1.1.5  christos else
   2541  1.1.1.7.12.2    martin   echo "$as_me:2541: result: no" >&5
   2542       1.1.1.5  christos echo "${ECHO_T}no" >&6
   2543       1.1.1.5  christos fi
   2544       1.1.1.5  christos 
   2545       1.1.1.5  christos   test -n "$AWK" && break
   2546       1.1.1.5  christos done
   2547       1.1.1.5  christos 
   2548  1.1.1.7.12.2    martin test -z "$AWK" && { { echo "$as_me:2548: error: No awk program found" >&5
   2549       1.1.1.5  christos echo "$as_me: error: No awk program found" >&2;}
   2550       1.1.1.5  christos    { (exit 1); exit 1; }; }
   2551       1.1.1.5  christos 
   2552       1.1.1.7  christos for ac_prog in lint cppcheck splint
   2553       1.1.1.2  christos do
   2554       1.1.1.2  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2555       1.1.1.2  christos set dummy $ac_prog; ac_word=$2
   2556  1.1.1.7.12.2    martin echo "$as_me:2556: checking for $ac_word" >&5
   2557       1.1.1.2  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2558       1.1.1.2  christos if test "${ac_cv_prog_LINT+set}" = set; then
   2559       1.1.1.2  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2560       1.1.1.2  christos else
   2561       1.1.1.2  christos   if test -n "$LINT"; then
   2562       1.1.1.2  christos   ac_cv_prog_LINT="$LINT" # Let the user override the test.
   2563       1.1.1.2  christos else
   2564       1.1.1.2  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   2565       1.1.1.2  christos ac_dummy="$PATH"
   2566       1.1.1.2  christos for ac_dir in $ac_dummy; do
   2567       1.1.1.2  christos   IFS=$ac_save_IFS
   2568       1.1.1.2  christos   test -z "$ac_dir" && ac_dir=.
   2569       1.1.1.2  christos   $as_executable_p "$ac_dir/$ac_word" || continue
   2570       1.1.1.2  christos ac_cv_prog_LINT="$ac_prog"
   2571  1.1.1.7.12.2    martin echo "$as_me:2571: found $ac_dir/$ac_word" >&5
   2572       1.1.1.2  christos break
   2573       1.1.1.2  christos done
   2574       1.1.1.2  christos 
   2575       1.1.1.2  christos fi
   2576       1.1.1.2  christos fi
   2577       1.1.1.2  christos LINT=$ac_cv_prog_LINT
   2578       1.1.1.2  christos if test -n "$LINT"; then
   2579  1.1.1.7.12.2    martin   echo "$as_me:2579: result: $LINT" >&5
   2580       1.1.1.2  christos echo "${ECHO_T}$LINT" >&6
   2581       1.1.1.2  christos else
   2582  1.1.1.7.12.2    martin   echo "$as_me:2582: result: no" >&5
   2583       1.1.1.2  christos echo "${ECHO_T}no" >&6
   2584       1.1.1.2  christos fi
   2585       1.1.1.2  christos 
   2586       1.1.1.2  christos   test -n "$LINT" && break
   2587       1.1.1.2  christos done
   2588       1.1.1.2  christos 
   2589  1.1.1.7.12.2    martin echo "$as_me:2589: checking if the POSIX test-macros are already defined" >&5
   2590  1.1.1.7.12.2    martin echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
   2591  1.1.1.7.12.2    martin if test "${cf_cv_posix_visible+set}" = set; then
   2592  1.1.1.7.12.2    martin   echo $ECHO_N "(cached) $ECHO_C" >&6
   2593  1.1.1.7.12.2    martin else
   2594  1.1.1.7.12.2    martin 
   2595  1.1.1.7.12.2    martin cat >conftest.$ac_ext <<_ACEOF
   2596  1.1.1.7.12.2    martin #line 2596 "configure"
   2597  1.1.1.7.12.2    martin #include "confdefs.h"
   2598  1.1.1.7.12.2    martin #include <stdio.h>
   2599  1.1.1.7.12.2    martin int
   2600  1.1.1.7.12.2    martin main (void)
   2601  1.1.1.7.12.2    martin {
   2602  1.1.1.7.12.2    martin 
   2603  1.1.1.7.12.2    martin #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
   2604  1.1.1.7.12.2    martin 	&& defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
   2605  1.1.1.7.12.2    martin 	&& defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
   2606  1.1.1.7.12.2    martin 	&& defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
   2607  1.1.1.7.12.2    martin #error conflicting symbols found
   2608  1.1.1.7.12.2    martin #endif
   2609  1.1.1.7.12.2    martin 
   2610  1.1.1.7.12.2    martin   ;
   2611  1.1.1.7.12.2    martin   return 0;
   2612  1.1.1.7.12.2    martin }
   2613  1.1.1.7.12.2    martin _ACEOF
   2614  1.1.1.7.12.2    martin rm -f conftest.$ac_objext
   2615  1.1.1.7.12.2    martin if { (eval echo "$as_me:2615: \"$ac_compile\"") >&5
   2616  1.1.1.7.12.2    martin   (eval $ac_compile) 2>&5
   2617  1.1.1.7.12.2    martin   ac_status=$?
   2618  1.1.1.7.12.2    martin   echo "$as_me:2618: \$? = $ac_status" >&5
   2619  1.1.1.7.12.2    martin   (exit $ac_status); } &&
   2620  1.1.1.7.12.2    martin          { ac_try='test -s conftest.$ac_objext'
   2621  1.1.1.7.12.2    martin   { (eval echo "$as_me:2621: \"$ac_try\"") >&5
   2622  1.1.1.7.12.2    martin   (eval $ac_try) 2>&5
   2623  1.1.1.7.12.2    martin   ac_status=$?
   2624  1.1.1.7.12.2    martin   echo "$as_me:2624: \$? = $ac_status" >&5
   2625  1.1.1.7.12.2    martin   (exit $ac_status); }; }; then
   2626  1.1.1.7.12.2    martin   cf_cv_posix_visible=no
   2627  1.1.1.7.12.2    martin else
   2628  1.1.1.7.12.2    martin   echo "$as_me: failed program was:" >&5
   2629  1.1.1.7.12.2    martin cat conftest.$ac_ext >&5
   2630  1.1.1.7.12.2    martin cf_cv_posix_visible=yes
   2631  1.1.1.7.12.2    martin fi
   2632  1.1.1.7.12.2    martin rm -f conftest.$ac_objext conftest.$ac_ext
   2633  1.1.1.7.12.2    martin 
   2634  1.1.1.7.12.2    martin fi
   2635  1.1.1.7.12.2    martin echo "$as_me:2635: result: $cf_cv_posix_visible" >&5
   2636  1.1.1.7.12.2    martin echo "${ECHO_T}$cf_cv_posix_visible" >&6
   2637  1.1.1.7.12.2    martin 
   2638  1.1.1.7.12.2    martin if test "$cf_cv_posix_visible" = no; then
   2639  1.1.1.7.12.2    martin 
   2640       1.1.1.4  christos cf_XOPEN_SOURCE=500
   2641       1.1.1.4  christos cf_POSIX_C_SOURCE=199506L
   2642       1.1.1.4  christos cf_xopen_source=
   2643       1.1.1.3  christos 
   2644       1.1.1.6  christos case $host_os in
   2645       1.1.1.6  christos (aix[4-7]*)
   2646       1.1.1.4  christos 	cf_xopen_source="-D_ALL_SOURCE"
   2647       1.1.1.3  christos 	;;
   2648       1.1.1.7  christos (msys)
   2649       1.1.1.4  christos 	cf_XOPEN_SOURCE=600
   2650       1.1.1.3  christos 	;;
   2651       1.1.1.6  christos (darwin[0-8].*)
   2652       1.1.1.4  christos 	cf_xopen_source="-D_APPLE_C_SOURCE"
   2653       1.1.1.3  christos 	;;
   2654       1.1.1.6  christos (darwin*)
   2655       1.1.1.4  christos 	cf_xopen_source="-D_DARWIN_C_SOURCE"
   2656       1.1.1.4  christos 	cf_XOPEN_SOURCE=
   2657       1.1.1.3  christos 	;;
   2658  1.1.1.7.12.2    martin (freebsd*|dragonfly*|midnightbsd*)
   2659       1.1.1.4  christos 	# 5.x headers associate
   2660       1.1.1.4  christos 	#	_XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
   2661       1.1.1.4  christos 	#	_XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
   2662       1.1.1.4  christos 	cf_POSIX_C_SOURCE=200112L
   2663       1.1.1.4  christos 	cf_XOPEN_SOURCE=600
   2664       1.1.1.4  christos 	cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
   2665       1.1.1.4  christos 	;;
   2666       1.1.1.6  christos (hpux11*)
   2667       1.1.1.4  christos 	cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
   2668       1.1.1.4  christos 	;;
   2669       1.1.1.6  christos (hpux*)
   2670       1.1.1.4  christos 	cf_xopen_source="-D_HPUX_SOURCE"
   2671       1.1.1.4  christos 	;;
   2672       1.1.1.6  christos (irix[56].*)
   2673       1.1.1.4  christos 	cf_xopen_source="-D_SGI_SOURCE"
   2674       1.1.1.4  christos 	cf_XOPEN_SOURCE=
   2675       1.1.1.4  christos 	;;
   2676       1.1.1.7  christos (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
   2677       1.1.1.3  christos 
   2678  1.1.1.7.12.2    martin cf_gnu_xopen_source=$cf_XOPEN_SOURCE
   2679  1.1.1.7.12.2    martin 
   2680  1.1.1.7.12.2    martin echo "$as_me:2680: checking if this is the GNU C library" >&5
   2681  1.1.1.7.12.2    martin echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
   2682  1.1.1.7.12.2    martin if test "${cf_cv_gnu_library+set}" = set; then
   2683           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2684           1.1  christos else
   2685           1.1  christos 
   2686       1.1.1.4  christos cat >conftest.$ac_ext <<_ACEOF
   2687  1.1.1.7.12.2    martin #line 2687 "configure"
   2688       1.1.1.4  christos #include "confdefs.h"
   2689       1.1.1.4  christos #include <sys/types.h>
   2690       1.1.1.4  christos int
   2691  1.1.1.7.12.1  christos main (void)
   2692       1.1.1.4  christos {
   2693       1.1.1.2  christos 
   2694  1.1.1.7.12.2    martin 	#if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
   2695  1.1.1.7.12.2    martin 		return 0;
   2696  1.1.1.7.12.2    martin 	#elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
   2697  1.1.1.7.12.2    martin 		return 0;
   2698  1.1.1.7.12.2    martin 	#else
   2699  1.1.1.7.12.2    martin 	#	error not GNU C library
   2700  1.1.1.7.12.2    martin 	#endif
   2701       1.1.1.4  christos   ;
   2702       1.1.1.4  christos   return 0;
   2703       1.1.1.4  christos }
   2704       1.1.1.4  christos _ACEOF
   2705       1.1.1.4  christos rm -f conftest.$ac_objext
   2706  1.1.1.7.12.2    martin if { (eval echo "$as_me:2706: \"$ac_compile\"") >&5
   2707       1.1.1.4  christos   (eval $ac_compile) 2>&5
   2708       1.1.1.4  christos   ac_status=$?
   2709  1.1.1.7.12.2    martin   echo "$as_me:2709: \$? = $ac_status" >&5
   2710       1.1.1.4  christos   (exit $ac_status); } &&
   2711       1.1.1.4  christos          { ac_try='test -s conftest.$ac_objext'
   2712  1.1.1.7.12.2    martin   { (eval echo "$as_me:2712: \"$ac_try\"") >&5
   2713       1.1.1.4  christos   (eval $ac_try) 2>&5
   2714       1.1.1.4  christos   ac_status=$?
   2715  1.1.1.7.12.2    martin   echo "$as_me:2715: \$? = $ac_status" >&5
   2716       1.1.1.4  christos   (exit $ac_status); }; }; then
   2717  1.1.1.7.12.2    martin   cf_cv_gnu_library=yes
   2718       1.1.1.4  christos else
   2719       1.1.1.4  christos   echo "$as_me: failed program was:" >&5
   2720       1.1.1.4  christos cat conftest.$ac_ext >&5
   2721  1.1.1.7.12.2    martin cf_cv_gnu_library=no
   2722       1.1.1.4  christos fi
   2723       1.1.1.4  christos rm -f conftest.$ac_objext conftest.$ac_ext
   2724       1.1.1.2  christos 
   2725       1.1.1.4  christos fi
   2726  1.1.1.7.12.2    martin echo "$as_me:2726: result: $cf_cv_gnu_library" >&5
   2727  1.1.1.7.12.2    martin echo "${ECHO_T}$cf_cv_gnu_library" >&6
   2728       1.1.1.2  christos 
   2729  1.1.1.7.12.2    martin if test x$cf_cv_gnu_library = xyes; then
   2730       1.1.1.7  christos 
   2731  1.1.1.7.12.2    martin 	# With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
   2732  1.1.1.7.12.2    martin 	# was changed to help a little.  newlib incorporated the change about 4
   2733  1.1.1.7.12.2    martin 	# years later.
   2734  1.1.1.7.12.2    martin 	echo "$as_me:2734: checking if _DEFAULT_SOURCE can be used as a basis" >&5
   2735  1.1.1.7.12.2    martin echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
   2736  1.1.1.7.12.2    martin if test "${cf_cv_gnu_library_219+set}" = set; then
   2737       1.1.1.7  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   2738       1.1.1.7  christos else
   2739       1.1.1.7  christos 
   2740  1.1.1.7.12.2    martin 		cf_save="$CPPFLAGS"
   2741  1.1.1.7.12.2    martin 
   2742  1.1.1.7.12.2    martin 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   2743  1.1.1.7.12.2    martin 	CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
   2744  1.1.1.7.12.2    martin 
   2745  1.1.1.7.12.2    martin 		cat >conftest.$ac_ext <<_ACEOF
   2746  1.1.1.7.12.2    martin #line 2746 "configure"
   2747       1.1.1.7  christos #include "confdefs.h"
   2748       1.1.1.7  christos #include <sys/types.h>
   2749       1.1.1.7  christos int
   2750  1.1.1.7.12.1  christos main (void)
   2751       1.1.1.7  christos {
   2752       1.1.1.7  christos 
   2753  1.1.1.7.12.2    martin 			#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
   2754  1.1.1.7.12.2    martin 				return 0;
   2755  1.1.1.7.12.2    martin 			#elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
   2756  1.1.1.7.12.2    martin 				return 0;
   2757  1.1.1.7.12.2    martin 			#else
   2758  1.1.1.7.12.2    martin 			#	error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
   2759  1.1.1.7.12.2    martin 			#endif
   2760       1.1.1.7  christos   ;
   2761       1.1.1.7  christos   return 0;
   2762       1.1.1.7  christos }
   2763       1.1.1.7  christos _ACEOF
   2764       1.1.1.7  christos rm -f conftest.$ac_objext
   2765  1.1.1.7.12.2    martin if { (eval echo "$as_me:2765: \"$ac_compile\"") >&5
   2766       1.1.1.7  christos   (eval $ac_compile) 2>&5
   2767       1.1.1.7  christos   ac_status=$?
   2768  1.1.1.7.12.2    martin   echo "$as_me:2768: \$? = $ac_status" >&5
   2769       1.1.1.7  christos   (exit $ac_status); } &&
   2770       1.1.1.7  christos          { ac_try='test -s conftest.$ac_objext'
   2771  1.1.1.7.12.2    martin   { (eval echo "$as_me:2771: \"$ac_try\"") >&5
   2772       1.1.1.7  christos   (eval $ac_try) 2>&5
   2773       1.1.1.7  christos   ac_status=$?
   2774  1.1.1.7.12.2    martin   echo "$as_me:2774: \$? = $ac_status" >&5
   2775       1.1.1.7  christos   (exit $ac_status); }; }; then
   2776  1.1.1.7.12.2    martin   cf_cv_gnu_library_219=yes
   2777       1.1.1.7  christos else
   2778       1.1.1.7  christos   echo "$as_me: failed program was:" >&5
   2779       1.1.1.7  christos cat conftest.$ac_ext >&5
   2780  1.1.1.7.12.2    martin cf_cv_gnu_library_219=no
   2781       1.1.1.7  christos fi
   2782       1.1.1.7  christos rm -f conftest.$ac_objext conftest.$ac_ext
   2783  1.1.1.7.12.2    martin 		CPPFLAGS="$cf_save"
   2784       1.1.1.7  christos 
   2785       1.1.1.7  christos fi
   2786  1.1.1.7.12.2    martin echo "$as_me:2786: result: $cf_cv_gnu_library_219" >&5
   2787  1.1.1.7.12.2    martin echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
   2788       1.1.1.2  christos 
   2789  1.1.1.7.12.2    martin 	if test "x$cf_cv_gnu_library_219" = xyes; then
   2790  1.1.1.7.12.2    martin 		cf_save="$CPPFLAGS"
   2791  1.1.1.7.12.2    martin 		echo "$as_me:2791: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
   2792  1.1.1.7.12.2    martin echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
   2793  1.1.1.7.12.2    martin if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
   2794  1.1.1.7.12.2    martin   echo $ECHO_N "(cached) $ECHO_C" >&6
   2795  1.1.1.7.12.2    martin else
   2796       1.1.1.2  christos 
   2797  1.1.1.7.12.2    martin cf_fix_cppflags=no
   2798  1.1.1.7.12.2    martin cf_new_cflags=
   2799  1.1.1.7.12.2    martin cf_new_cppflags=
   2800  1.1.1.7.12.2    martin cf_new_extra_cppflags=
   2801       1.1.1.2  christos 
   2802  1.1.1.7.12.2    martin for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
   2803  1.1.1.7.12.2    martin do
   2804  1.1.1.7.12.2    martin case $cf_fix_cppflags in
   2805  1.1.1.7.12.2    martin (no)
   2806  1.1.1.7.12.2    martin 	case $cf_add_cflags in
   2807  1.1.1.7.12.2    martin 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   2808  1.1.1.7.12.2    martin 		case $cf_add_cflags in
   2809  1.1.1.7.12.2    martin 		(-D*)
   2810  1.1.1.7.12.2    martin 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   2811       1.1.1.2  christos 
   2812  1.1.1.7.12.2    martin 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   2813  1.1.1.7.12.2    martin 				&& test -z "${cf_tst_cflags}" \
   2814  1.1.1.7.12.2    martin 				&& cf_fix_cppflags=yes
   2815       1.1.1.2  christos 
   2816  1.1.1.7.12.2    martin 			if test $cf_fix_cppflags = yes ; then
   2817       1.1.1.2  christos 
   2818  1.1.1.7.12.2    martin 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   2819  1.1.1.7.12.2    martin 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   2820       1.1.1.2  christos 
   2821  1.1.1.7.12.2    martin 				continue
   2822  1.1.1.7.12.2    martin 			elif test "${cf_tst_cflags}" = "\"'" ; then
   2823       1.1.1.2  christos 
   2824  1.1.1.7.12.2    martin 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   2825  1.1.1.7.12.2    martin 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   2826       1.1.1.2  christos 
   2827  1.1.1.7.12.2    martin 				continue
   2828  1.1.1.7.12.2    martin 			fi
   2829  1.1.1.7.12.2    martin 			;;
   2830  1.1.1.7.12.2    martin 		esac
   2831  1.1.1.7.12.2    martin 		case "$CPPFLAGS" in
   2832  1.1.1.7.12.2    martin 		(*$cf_add_cflags)
   2833  1.1.1.7.12.2    martin 			;;
   2834  1.1.1.7.12.2    martin 		(*)
   2835  1.1.1.7.12.2    martin 			case $cf_add_cflags in
   2836  1.1.1.7.12.2    martin 			(-D*)
   2837  1.1.1.7.12.2    martin 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   2838  1.1.1.7.12.2    martin 
   2839  1.1.1.7.12.2    martin CPPFLAGS=`echo "$CPPFLAGS" | \
   2840  1.1.1.7.12.2    martin 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   2841  1.1.1.7.12.2    martin 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   2842  1.1.1.7.12.2    martin 
   2843  1.1.1.7.12.2    martin 				;;
   2844  1.1.1.7.12.2    martin 			esac
   2845  1.1.1.7.12.2    martin 
   2846  1.1.1.7.12.2    martin 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   2847  1.1.1.7.12.2    martin 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   2848  1.1.1.7.12.2    martin 
   2849  1.1.1.7.12.2    martin 			;;
   2850  1.1.1.7.12.2    martin 		esac
   2851  1.1.1.7.12.2    martin 		;;
   2852  1.1.1.7.12.2    martin 	(*)
   2853  1.1.1.7.12.2    martin 
   2854  1.1.1.7.12.2    martin 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   2855  1.1.1.7.12.2    martin 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   2856  1.1.1.7.12.2    martin 
   2857  1.1.1.7.12.2    martin 		;;
   2858  1.1.1.7.12.2    martin 	esac
   2859  1.1.1.7.12.2    martin 	;;
   2860  1.1.1.7.12.2    martin (yes)
   2861  1.1.1.7.12.2    martin 
   2862  1.1.1.7.12.2    martin 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   2863  1.1.1.7.12.2    martin 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   2864  1.1.1.7.12.2    martin 
   2865  1.1.1.7.12.2    martin 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   2866  1.1.1.7.12.2    martin 
   2867  1.1.1.7.12.2    martin 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   2868  1.1.1.7.12.2    martin 		&& test -z "${cf_tst_cflags}" \
   2869  1.1.1.7.12.2    martin 		&& cf_fix_cppflags=no
   2870  1.1.1.7.12.2    martin 	;;
   2871  1.1.1.7.12.2    martin esac
   2872  1.1.1.7.12.2    martin done
   2873  1.1.1.7.12.2    martin 
   2874  1.1.1.7.12.2    martin if test -n "$cf_new_cflags" ; then
   2875  1.1.1.7.12.2    martin 
   2876  1.1.1.7.12.2    martin 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   2877  1.1.1.7.12.2    martin 	CFLAGS="${CFLAGS}$cf_new_cflags"
   2878  1.1.1.7.12.2    martin 
   2879  1.1.1.7.12.2    martin fi
   2880  1.1.1.7.12.2    martin 
   2881  1.1.1.7.12.2    martin if test -n "$cf_new_cppflags" ; then
   2882  1.1.1.7.12.2    martin 
   2883  1.1.1.7.12.2    martin 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   2884  1.1.1.7.12.2    martin 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   2885  1.1.1.7.12.2    martin 
   2886  1.1.1.7.12.2    martin fi
   2887  1.1.1.7.12.2    martin 
   2888  1.1.1.7.12.2    martin if test -n "$cf_new_extra_cppflags" ; then
   2889  1.1.1.7.12.2    martin 
   2890  1.1.1.7.12.2    martin 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   2891  1.1.1.7.12.2    martin 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   2892  1.1.1.7.12.2    martin 
   2893  1.1.1.7.12.2    martin fi
   2894  1.1.1.7.12.2    martin 
   2895  1.1.1.7.12.2    martin 			cat >conftest.$ac_ext <<_ACEOF
   2896  1.1.1.7.12.2    martin #line 2896 "configure"
   2897  1.1.1.7.12.2    martin #include "confdefs.h"
   2898  1.1.1.7.12.2    martin 
   2899  1.1.1.7.12.2    martin 				#include <limits.h>
   2900  1.1.1.7.12.2    martin 				#include <sys/types.h>
   2901  1.1.1.7.12.2    martin 
   2902  1.1.1.7.12.2    martin int
   2903  1.1.1.7.12.2    martin main (void)
   2904  1.1.1.7.12.2    martin {
   2905  1.1.1.7.12.2    martin 
   2906  1.1.1.7.12.2    martin 				#if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
   2907  1.1.1.7.12.2    martin 					return 0;
   2908  1.1.1.7.12.2    martin 				#else
   2909  1.1.1.7.12.2    martin 				#	error GNU C library is too old
   2910  1.1.1.7.12.2    martin 				#endif
   2911  1.1.1.7.12.2    martin   ;
   2912  1.1.1.7.12.2    martin   return 0;
   2913  1.1.1.7.12.2    martin }
   2914  1.1.1.7.12.2    martin _ACEOF
   2915  1.1.1.7.12.2    martin rm -f conftest.$ac_objext
   2916  1.1.1.7.12.2    martin if { (eval echo "$as_me:2916: \"$ac_compile\"") >&5
   2917  1.1.1.7.12.2    martin   (eval $ac_compile) 2>&5
   2918  1.1.1.7.12.2    martin   ac_status=$?
   2919  1.1.1.7.12.2    martin   echo "$as_me:2919: \$? = $ac_status" >&5
   2920  1.1.1.7.12.2    martin   (exit $ac_status); } &&
   2921  1.1.1.7.12.2    martin          { ac_try='test -s conftest.$ac_objext'
   2922  1.1.1.7.12.2    martin   { (eval echo "$as_me:2922: \"$ac_try\"") >&5
   2923  1.1.1.7.12.2    martin   (eval $ac_try) 2>&5
   2924  1.1.1.7.12.2    martin   ac_status=$?
   2925  1.1.1.7.12.2    martin   echo "$as_me:2925: \$? = $ac_status" >&5
   2926  1.1.1.7.12.2    martin   (exit $ac_status); }; }; then
   2927  1.1.1.7.12.2    martin   cf_cv_gnu_dftsrc_219=yes
   2928  1.1.1.7.12.2    martin else
   2929  1.1.1.7.12.2    martin   echo "$as_me: failed program was:" >&5
   2930  1.1.1.7.12.2    martin cat conftest.$ac_ext >&5
   2931  1.1.1.7.12.2    martin cf_cv_gnu_dftsrc_219=no
   2932  1.1.1.7.12.2    martin fi
   2933  1.1.1.7.12.2    martin rm -f conftest.$ac_objext conftest.$ac_ext
   2934  1.1.1.7.12.2    martin 
   2935  1.1.1.7.12.2    martin fi
   2936  1.1.1.7.12.2    martin echo "$as_me:2936: result: $cf_cv_gnu_dftsrc_219" >&5
   2937  1.1.1.7.12.2    martin echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
   2938  1.1.1.7.12.2    martin 		test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
   2939  1.1.1.7.12.2    martin 	else
   2940  1.1.1.7.12.2    martin 		cf_cv_gnu_dftsrc_219=maybe
   2941  1.1.1.7.12.2    martin 	fi
   2942  1.1.1.7.12.2    martin 
   2943  1.1.1.7.12.2    martin 	if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
   2944  1.1.1.7.12.2    martin 
   2945  1.1.1.7.12.2    martin 		echo "$as_me:2945: checking if we must define _GNU_SOURCE" >&5
   2946  1.1.1.7.12.2    martin echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
   2947  1.1.1.7.12.2    martin if test "${cf_cv_gnu_source+set}" = set; then
   2948  1.1.1.7.12.2    martin   echo $ECHO_N "(cached) $ECHO_C" >&6
   2949  1.1.1.7.12.2    martin else
   2950  1.1.1.7.12.2    martin 
   2951  1.1.1.7.12.2    martin 		cat >conftest.$ac_ext <<_ACEOF
   2952  1.1.1.7.12.2    martin #line 2952 "configure"
   2953  1.1.1.7.12.2    martin #include "confdefs.h"
   2954  1.1.1.7.12.2    martin #include <sys/types.h>
   2955  1.1.1.7.12.2    martin int
   2956  1.1.1.7.12.2    martin main (void)
   2957  1.1.1.7.12.2    martin {
   2958  1.1.1.7.12.2    martin 
   2959  1.1.1.7.12.2    martin 			#ifndef _XOPEN_SOURCE
   2960  1.1.1.7.12.2    martin 			#error	expected _XOPEN_SOURCE to be defined
   2961  1.1.1.7.12.2    martin 			#endif
   2962  1.1.1.7.12.2    martin   ;
   2963  1.1.1.7.12.2    martin   return 0;
   2964  1.1.1.7.12.2    martin }
   2965  1.1.1.7.12.2    martin _ACEOF
   2966  1.1.1.7.12.2    martin rm -f conftest.$ac_objext
   2967  1.1.1.7.12.2    martin if { (eval echo "$as_me:2967: \"$ac_compile\"") >&5
   2968  1.1.1.7.12.2    martin   (eval $ac_compile) 2>&5
   2969  1.1.1.7.12.2    martin   ac_status=$?
   2970  1.1.1.7.12.2    martin   echo "$as_me:2970: \$? = $ac_status" >&5
   2971  1.1.1.7.12.2    martin   (exit $ac_status); } &&
   2972  1.1.1.7.12.2    martin          { ac_try='test -s conftest.$ac_objext'
   2973  1.1.1.7.12.2    martin   { (eval echo "$as_me:2973: \"$ac_try\"") >&5
   2974  1.1.1.7.12.2    martin   (eval $ac_try) 2>&5
   2975  1.1.1.7.12.2    martin   ac_status=$?
   2976  1.1.1.7.12.2    martin   echo "$as_me:2976: \$? = $ac_status" >&5
   2977  1.1.1.7.12.2    martin   (exit $ac_status); }; }; then
   2978  1.1.1.7.12.2    martin   cf_cv_gnu_source=no
   2979  1.1.1.7.12.2    martin else
   2980  1.1.1.7.12.2    martin   echo "$as_me: failed program was:" >&5
   2981  1.1.1.7.12.2    martin cat conftest.$ac_ext >&5
   2982  1.1.1.7.12.2    martin cf_save="$CPPFLAGS"
   2983  1.1.1.7.12.2    martin 
   2984  1.1.1.7.12.2    martin cf_fix_cppflags=no
   2985  1.1.1.7.12.2    martin cf_new_cflags=
   2986  1.1.1.7.12.2    martin cf_new_cppflags=
   2987  1.1.1.7.12.2    martin cf_new_extra_cppflags=
   2988  1.1.1.7.12.2    martin 
   2989  1.1.1.7.12.2    martin for cf_add_cflags in -D_GNU_SOURCE
   2990  1.1.1.7.12.2    martin do
   2991  1.1.1.7.12.2    martin case $cf_fix_cppflags in
   2992  1.1.1.7.12.2    martin (no)
   2993  1.1.1.7.12.2    martin 	case $cf_add_cflags in
   2994  1.1.1.7.12.2    martin 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   2995  1.1.1.7.12.2    martin 		case $cf_add_cflags in
   2996  1.1.1.7.12.2    martin 		(-D*)
   2997  1.1.1.7.12.2    martin 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   2998  1.1.1.7.12.2    martin 
   2999  1.1.1.7.12.2    martin 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3000  1.1.1.7.12.2    martin 				&& test -z "${cf_tst_cflags}" \
   3001  1.1.1.7.12.2    martin 				&& cf_fix_cppflags=yes
   3002  1.1.1.7.12.2    martin 
   3003  1.1.1.7.12.2    martin 			if test $cf_fix_cppflags = yes ; then
   3004  1.1.1.7.12.2    martin 
   3005  1.1.1.7.12.2    martin 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3006  1.1.1.7.12.2    martin 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3007  1.1.1.7.12.2    martin 
   3008  1.1.1.7.12.2    martin 				continue
   3009  1.1.1.7.12.2    martin 			elif test "${cf_tst_cflags}" = "\"'" ; then
   3010  1.1.1.7.12.2    martin 
   3011  1.1.1.7.12.2    martin 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3012  1.1.1.7.12.2    martin 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3013  1.1.1.7.12.2    martin 
   3014  1.1.1.7.12.2    martin 				continue
   3015  1.1.1.7.12.2    martin 			fi
   3016  1.1.1.7.12.2    martin 			;;
   3017  1.1.1.7.12.2    martin 		esac
   3018  1.1.1.7.12.2    martin 		case "$CPPFLAGS" in
   3019  1.1.1.7.12.2    martin 		(*$cf_add_cflags)
   3020  1.1.1.7.12.2    martin 			;;
   3021  1.1.1.7.12.2    martin 		(*)
   3022  1.1.1.7.12.2    martin 			case $cf_add_cflags in
   3023  1.1.1.7.12.2    martin 			(-D*)
   3024  1.1.1.7.12.2    martin 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   3025  1.1.1.7.12.2    martin 
   3026  1.1.1.7.12.2    martin CPPFLAGS=`echo "$CPPFLAGS" | \
   3027  1.1.1.7.12.2    martin 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3028  1.1.1.7.12.2    martin 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   3029  1.1.1.7.12.2    martin 
   3030  1.1.1.7.12.2    martin 				;;
   3031  1.1.1.7.12.2    martin 			esac
   3032  1.1.1.7.12.2    martin 
   3033  1.1.1.7.12.2    martin 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   3034  1.1.1.7.12.2    martin 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   3035  1.1.1.7.12.2    martin 
   3036  1.1.1.7.12.2    martin 			;;
   3037  1.1.1.7.12.2    martin 		esac
   3038  1.1.1.7.12.2    martin 		;;
   3039  1.1.1.7.12.2    martin 	(*)
   3040  1.1.1.7.12.2    martin 
   3041  1.1.1.7.12.2    martin 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   3042  1.1.1.7.12.2    martin 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   3043  1.1.1.7.12.2    martin 
   3044  1.1.1.7.12.2    martin 		;;
   3045  1.1.1.7.12.2    martin 	esac
   3046  1.1.1.7.12.2    martin 	;;
   3047  1.1.1.7.12.2    martin (yes)
   3048  1.1.1.7.12.2    martin 
   3049  1.1.1.7.12.2    martin 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3050  1.1.1.7.12.2    martin 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3051  1.1.1.7.12.2    martin 
   3052  1.1.1.7.12.2    martin 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   3053  1.1.1.7.12.2    martin 
   3054  1.1.1.7.12.2    martin 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3055  1.1.1.7.12.2    martin 		&& test -z "${cf_tst_cflags}" \
   3056  1.1.1.7.12.2    martin 		&& cf_fix_cppflags=no
   3057  1.1.1.7.12.2    martin 	;;
   3058  1.1.1.7.12.2    martin esac
   3059  1.1.1.7.12.2    martin done
   3060  1.1.1.7.12.2    martin 
   3061  1.1.1.7.12.2    martin if test -n "$cf_new_cflags" ; then
   3062  1.1.1.7.12.2    martin 
   3063  1.1.1.7.12.2    martin 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   3064  1.1.1.7.12.2    martin 	CFLAGS="${CFLAGS}$cf_new_cflags"
   3065  1.1.1.7.12.2    martin 
   3066  1.1.1.7.12.2    martin fi
   3067  1.1.1.7.12.2    martin 
   3068  1.1.1.7.12.2    martin if test -n "$cf_new_cppflags" ; then
   3069  1.1.1.7.12.2    martin 
   3070  1.1.1.7.12.2    martin 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   3071  1.1.1.7.12.2    martin 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   3072  1.1.1.7.12.2    martin 
   3073  1.1.1.7.12.2    martin fi
   3074  1.1.1.7.12.2    martin 
   3075  1.1.1.7.12.2    martin if test -n "$cf_new_extra_cppflags" ; then
   3076  1.1.1.7.12.2    martin 
   3077  1.1.1.7.12.2    martin 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   3078  1.1.1.7.12.2    martin 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   3079  1.1.1.7.12.2    martin 
   3080  1.1.1.7.12.2    martin fi
   3081  1.1.1.7.12.2    martin 
   3082  1.1.1.7.12.2    martin 			 cat >conftest.$ac_ext <<_ACEOF
   3083  1.1.1.7.12.2    martin #line 3083 "configure"
   3084  1.1.1.7.12.2    martin #include "confdefs.h"
   3085  1.1.1.7.12.2    martin #include <sys/types.h>
   3086  1.1.1.7.12.2    martin int
   3087  1.1.1.7.12.2    martin main (void)
   3088  1.1.1.7.12.2    martin {
   3089  1.1.1.7.12.2    martin 
   3090  1.1.1.7.12.2    martin 				#ifdef _XOPEN_SOURCE
   3091  1.1.1.7.12.2    martin 				#error	expected _XOPEN_SOURCE to be undefined
   3092  1.1.1.7.12.2    martin 				#endif
   3093  1.1.1.7.12.2    martin   ;
   3094  1.1.1.7.12.2    martin   return 0;
   3095  1.1.1.7.12.2    martin }
   3096  1.1.1.7.12.2    martin _ACEOF
   3097  1.1.1.7.12.2    martin rm -f conftest.$ac_objext
   3098  1.1.1.7.12.2    martin if { (eval echo "$as_me:3098: \"$ac_compile\"") >&5
   3099  1.1.1.7.12.2    martin   (eval $ac_compile) 2>&5
   3100  1.1.1.7.12.2    martin   ac_status=$?
   3101  1.1.1.7.12.2    martin   echo "$as_me:3101: \$? = $ac_status" >&5
   3102  1.1.1.7.12.2    martin   (exit $ac_status); } &&
   3103  1.1.1.7.12.2    martin          { ac_try='test -s conftest.$ac_objext'
   3104  1.1.1.7.12.2    martin   { (eval echo "$as_me:3104: \"$ac_try\"") >&5
   3105  1.1.1.7.12.2    martin   (eval $ac_try) 2>&5
   3106  1.1.1.7.12.2    martin   ac_status=$?
   3107  1.1.1.7.12.2    martin   echo "$as_me:3107: \$? = $ac_status" >&5
   3108  1.1.1.7.12.2    martin   (exit $ac_status); }; }; then
   3109  1.1.1.7.12.2    martin   cf_cv_gnu_source=no
   3110  1.1.1.7.12.2    martin else
   3111  1.1.1.7.12.2    martin   echo "$as_me: failed program was:" >&5
   3112  1.1.1.7.12.2    martin cat conftest.$ac_ext >&5
   3113  1.1.1.7.12.2    martin cf_cv_gnu_source=yes
   3114  1.1.1.7.12.2    martin fi
   3115  1.1.1.7.12.2    martin rm -f conftest.$ac_objext conftest.$ac_ext
   3116  1.1.1.7.12.2    martin 			CPPFLAGS="$cf_save"
   3117  1.1.1.7.12.2    martin 
   3118  1.1.1.7.12.2    martin fi
   3119  1.1.1.7.12.2    martin rm -f conftest.$ac_objext conftest.$ac_ext
   3120  1.1.1.7.12.2    martin 
   3121  1.1.1.7.12.2    martin fi
   3122  1.1.1.7.12.2    martin echo "$as_me:3122: result: $cf_cv_gnu_source" >&5
   3123  1.1.1.7.12.2    martin echo "${ECHO_T}$cf_cv_gnu_source" >&6
   3124  1.1.1.7.12.2    martin 
   3125  1.1.1.7.12.2    martin 		if test "$cf_cv_gnu_source" = yes
   3126  1.1.1.7.12.2    martin 		then
   3127  1.1.1.7.12.2    martin 		echo "$as_me:3127: checking if we should also define _DEFAULT_SOURCE" >&5
   3128  1.1.1.7.12.2    martin echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
   3129  1.1.1.7.12.2    martin if test "${cf_cv_default_source+set}" = set; then
   3130  1.1.1.7.12.2    martin   echo $ECHO_N "(cached) $ECHO_C" >&6
   3131  1.1.1.7.12.2    martin else
   3132  1.1.1.7.12.2    martin 
   3133  1.1.1.7.12.2    martin 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   3134  1.1.1.7.12.2    martin 	CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
   3135  1.1.1.7.12.2    martin 
   3136  1.1.1.7.12.2    martin 			cat >conftest.$ac_ext <<_ACEOF
   3137  1.1.1.7.12.2    martin #line 3137 "configure"
   3138  1.1.1.7.12.2    martin #include "confdefs.h"
   3139  1.1.1.7.12.2    martin #include <sys/types.h>
   3140  1.1.1.7.12.2    martin int
   3141  1.1.1.7.12.2    martin main (void)
   3142  1.1.1.7.12.2    martin {
   3143  1.1.1.7.12.2    martin 
   3144  1.1.1.7.12.2    martin 				#ifdef _DEFAULT_SOURCE
   3145  1.1.1.7.12.2    martin 				#error	expected _DEFAULT_SOURCE to be undefined
   3146  1.1.1.7.12.2    martin 				#endif
   3147  1.1.1.7.12.2    martin   ;
   3148  1.1.1.7.12.2    martin   return 0;
   3149  1.1.1.7.12.2    martin }
   3150  1.1.1.7.12.2    martin _ACEOF
   3151  1.1.1.7.12.2    martin rm -f conftest.$ac_objext
   3152  1.1.1.7.12.2    martin if { (eval echo "$as_me:3152: \"$ac_compile\"") >&5
   3153  1.1.1.7.12.2    martin   (eval $ac_compile) 2>&5
   3154  1.1.1.7.12.2    martin   ac_status=$?
   3155  1.1.1.7.12.2    martin   echo "$as_me:3155: \$? = $ac_status" >&5
   3156  1.1.1.7.12.2    martin   (exit $ac_status); } &&
   3157  1.1.1.7.12.2    martin          { ac_try='test -s conftest.$ac_objext'
   3158  1.1.1.7.12.2    martin   { (eval echo "$as_me:3158: \"$ac_try\"") >&5
   3159  1.1.1.7.12.2    martin   (eval $ac_try) 2>&5
   3160  1.1.1.7.12.2    martin   ac_status=$?
   3161  1.1.1.7.12.2    martin   echo "$as_me:3161: \$? = $ac_status" >&5
   3162  1.1.1.7.12.2    martin   (exit $ac_status); }; }; then
   3163  1.1.1.7.12.2    martin   cf_cv_default_source=no
   3164  1.1.1.7.12.2    martin else
   3165  1.1.1.7.12.2    martin   echo "$as_me: failed program was:" >&5
   3166  1.1.1.7.12.2    martin cat conftest.$ac_ext >&5
   3167  1.1.1.7.12.2    martin cf_cv_default_source=yes
   3168  1.1.1.7.12.2    martin fi
   3169  1.1.1.7.12.2    martin rm -f conftest.$ac_objext conftest.$ac_ext
   3170  1.1.1.7.12.2    martin 
   3171  1.1.1.7.12.2    martin fi
   3172  1.1.1.7.12.2    martin echo "$as_me:3172: result: $cf_cv_default_source" >&5
   3173  1.1.1.7.12.2    martin echo "${ECHO_T}$cf_cv_default_source" >&6
   3174  1.1.1.7.12.2    martin 			if test "$cf_cv_default_source" = yes
   3175  1.1.1.7.12.2    martin 			then
   3176  1.1.1.7.12.2    martin 
   3177  1.1.1.7.12.2    martin 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   3178  1.1.1.7.12.2    martin 	CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
   3179  1.1.1.7.12.2    martin 
   3180  1.1.1.7.12.2    martin 			fi
   3181  1.1.1.7.12.2    martin 		fi
   3182  1.1.1.7.12.2    martin 	fi
   3183  1.1.1.7.12.2    martin 
   3184  1.1.1.7.12.2    martin fi
   3185  1.1.1.7.12.2    martin 
   3186  1.1.1.7.12.2    martin 	;;
   3187  1.1.1.7.12.2    martin (minix*)
   3188  1.1.1.7.12.2    martin 	cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
   3189  1.1.1.7.12.2    martin 	;;
   3190  1.1.1.7.12.2    martin (mirbsd*)
   3191  1.1.1.7.12.2    martin 	# setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
   3192  1.1.1.7.12.2    martin 	cf_XOPEN_SOURCE=
   3193  1.1.1.7.12.2    martin 
   3194  1.1.1.7.12.2    martin if test "$cf_cv_posix_visible" = no; then
   3195  1.1.1.7.12.2    martin 
   3196  1.1.1.7.12.2    martin cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
   3197  1.1.1.7.12.2    martin 
   3198  1.1.1.7.12.2    martin cf_save_CFLAGS="$CFLAGS"
   3199  1.1.1.7.12.2    martin cf_save_CPPFLAGS="$CPPFLAGS"
   3200  1.1.1.7.12.2    martin 
   3201  1.1.1.7.12.2    martin cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
   3202  1.1.1.7.12.2    martin 	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3203  1.1.1.7.12.2    martin 		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
   3204  1.1.1.7.12.2    martin 
   3205  1.1.1.7.12.2    martin cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
   3206  1.1.1.7.12.2    martin 	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3207  1.1.1.7.12.2    martin 		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
   3208  1.1.1.7.12.2    martin 
   3209  1.1.1.7.12.2    martin echo "$as_me:3209: checking if we should define _POSIX_C_SOURCE" >&5
   3210  1.1.1.7.12.2    martin echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
   3211  1.1.1.7.12.2    martin if test "${cf_cv_posix_c_source+set}" = set; then
   3212  1.1.1.7.12.2    martin   echo $ECHO_N "(cached) $ECHO_C" >&6
   3213  1.1.1.7.12.2    martin else
   3214  1.1.1.7.12.2    martin 
   3215  1.1.1.7.12.2    martin echo "${as_me:-configure}:3215: testing if the symbol is already defined go no further ..." 1>&5
   3216  1.1.1.7.12.2    martin 
   3217  1.1.1.7.12.2    martin 	cat >conftest.$ac_ext <<_ACEOF
   3218  1.1.1.7.12.2    martin #line 3218 "configure"
   3219  1.1.1.7.12.2    martin #include "confdefs.h"
   3220  1.1.1.7.12.2    martin #include <sys/types.h>
   3221  1.1.1.7.12.2    martin int
   3222  1.1.1.7.12.2    martin main (void)
   3223  1.1.1.7.12.2    martin {
   3224  1.1.1.7.12.2    martin 
   3225  1.1.1.7.12.2    martin #ifndef _POSIX_C_SOURCE
   3226  1.1.1.7.12.2    martin make an error
   3227  1.1.1.7.12.2    martin #endif
   3228  1.1.1.7.12.2    martin   ;
   3229  1.1.1.7.12.2    martin   return 0;
   3230  1.1.1.7.12.2    martin }
   3231  1.1.1.7.12.2    martin _ACEOF
   3232  1.1.1.7.12.2    martin rm -f conftest.$ac_objext
   3233  1.1.1.7.12.2    martin if { (eval echo "$as_me:3233: \"$ac_compile\"") >&5
   3234  1.1.1.7.12.2    martin   (eval $ac_compile) 2>&5
   3235  1.1.1.7.12.2    martin   ac_status=$?
   3236  1.1.1.7.12.2    martin   echo "$as_me:3236: \$? = $ac_status" >&5
   3237       1.1.1.4  christos   (exit $ac_status); } &&
   3238       1.1.1.4  christos          { ac_try='test -s conftest.$ac_objext'
   3239  1.1.1.7.12.2    martin   { (eval echo "$as_me:3239: \"$ac_try\"") >&5
   3240       1.1.1.4  christos   (eval $ac_try) 2>&5
   3241       1.1.1.4  christos   ac_status=$?
   3242  1.1.1.7.12.2    martin   echo "$as_me:3242: \$? = $ac_status" >&5
   3243       1.1.1.4  christos   (exit $ac_status); }; }; then
   3244       1.1.1.4  christos   cf_cv_posix_c_source=no
   3245       1.1.1.4  christos else
   3246       1.1.1.4  christos   echo "$as_me: failed program was:" >&5
   3247       1.1.1.4  christos cat conftest.$ac_ext >&5
   3248       1.1.1.4  christos cf_want_posix_source=no
   3249       1.1.1.6  christos 	 case .$cf_POSIX_C_SOURCE in
   3250       1.1.1.6  christos 	 (.[12]??*)
   3251       1.1.1.4  christos 		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
   3252       1.1.1.4  christos 		;;
   3253       1.1.1.6  christos 	 (.2)
   3254       1.1.1.4  christos 		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
   3255       1.1.1.4  christos 		cf_want_posix_source=yes
   3256       1.1.1.4  christos 		;;
   3257       1.1.1.6  christos 	 (.*)
   3258       1.1.1.4  christos 		cf_want_posix_source=yes
   3259       1.1.1.4  christos 		;;
   3260       1.1.1.4  christos 	 esac
   3261       1.1.1.4  christos 	 if test "$cf_want_posix_source" = yes ; then
   3262       1.1.1.4  christos 		cat >conftest.$ac_ext <<_ACEOF
   3263  1.1.1.7.12.2    martin #line 3263 "configure"
   3264       1.1.1.4  christos #include "confdefs.h"
   3265       1.1.1.4  christos #include <sys/types.h>
   3266       1.1.1.4  christos int
   3267  1.1.1.7.12.1  christos main (void)
   3268       1.1.1.4  christos {
   3269       1.1.1.4  christos 
   3270       1.1.1.4  christos #ifdef _POSIX_SOURCE
   3271       1.1.1.4  christos make an error
   3272       1.1.1.2  christos #endif
   3273       1.1.1.4  christos   ;
   3274       1.1.1.4  christos   return 0;
   3275       1.1.1.4  christos }
   3276       1.1.1.4  christos _ACEOF
   3277       1.1.1.4  christos rm -f conftest.$ac_objext
   3278  1.1.1.7.12.2    martin if { (eval echo "$as_me:3278: \"$ac_compile\"") >&5
   3279       1.1.1.4  christos   (eval $ac_compile) 2>&5
   3280       1.1.1.4  christos   ac_status=$?
   3281  1.1.1.7.12.2    martin   echo "$as_me:3281: \$? = $ac_status" >&5
   3282       1.1.1.4  christos   (exit $ac_status); } &&
   3283       1.1.1.4  christos          { ac_try='test -s conftest.$ac_objext'
   3284  1.1.1.7.12.2    martin   { (eval echo "$as_me:3284: \"$ac_try\"") >&5
   3285       1.1.1.4  christos   (eval $ac_try) 2>&5
   3286       1.1.1.4  christos   ac_status=$?
   3287  1.1.1.7.12.2    martin   echo "$as_me:3287: \$? = $ac_status" >&5
   3288       1.1.1.4  christos   (exit $ac_status); }; }; then
   3289       1.1.1.4  christos   :
   3290       1.1.1.4  christos else
   3291       1.1.1.4  christos   echo "$as_me: failed program was:" >&5
   3292       1.1.1.4  christos cat conftest.$ac_ext >&5
   3293       1.1.1.4  christos cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
   3294       1.1.1.4  christos fi
   3295       1.1.1.4  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3296       1.1.1.4  christos 	 fi
   3297       1.1.1.4  christos 
   3298  1.1.1.7.12.2    martin echo "${as_me:-configure}:3298: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
   3299       1.1.1.2  christos 
   3300       1.1.1.4  christos 	 CFLAGS="$cf_trim_CFLAGS"
   3301  1.1.1.7.12.2    martin 	 CPPFLAGS="$cf_trim_CPPFLAGS"
   3302  1.1.1.7.12.2    martin 
   3303  1.1.1.7.12.2    martin 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   3304  1.1.1.7.12.2    martin 	CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
   3305       1.1.1.4  christos 
   3306  1.1.1.7.12.2    martin echo "${as_me:-configure}:3306: testing if the second compile does not leave our definition intact error ..." 1>&5
   3307       1.1.1.4  christos 
   3308       1.1.1.4  christos 	 cat >conftest.$ac_ext <<_ACEOF
   3309  1.1.1.7.12.2    martin #line 3309 "configure"
   3310       1.1.1.4  christos #include "confdefs.h"
   3311       1.1.1.4  christos #include <sys/types.h>
   3312       1.1.1.2  christos int
   3313  1.1.1.7.12.1  christos main (void)
   3314       1.1.1.2  christos {
   3315       1.1.1.2  christos 
   3316       1.1.1.4  christos #ifndef _POSIX_C_SOURCE
   3317       1.1.1.4  christos make an error
   3318       1.1.1.4  christos #endif
   3319       1.1.1.2  christos   ;
   3320       1.1.1.2  christos   return 0;
   3321       1.1.1.2  christos }
   3322       1.1.1.2  christos _ACEOF
   3323       1.1.1.2  christos rm -f conftest.$ac_objext
   3324  1.1.1.7.12.2    martin if { (eval echo "$as_me:3324: \"$ac_compile\"") >&5
   3325       1.1.1.2  christos   (eval $ac_compile) 2>&5
   3326       1.1.1.2  christos   ac_status=$?
   3327  1.1.1.7.12.2    martin   echo "$as_me:3327: \$? = $ac_status" >&5
   3328       1.1.1.2  christos   (exit $ac_status); } &&
   3329       1.1.1.2  christos          { ac_try='test -s conftest.$ac_objext'
   3330  1.1.1.7.12.2    martin   { (eval echo "$as_me:3330: \"$ac_try\"") >&5
   3331       1.1.1.2  christos   (eval $ac_try) 2>&5
   3332       1.1.1.2  christos   ac_status=$?
   3333  1.1.1.7.12.2    martin   echo "$as_me:3333: \$? = $ac_status" >&5
   3334       1.1.1.2  christos   (exit $ac_status); }; }; then
   3335       1.1.1.4  christos   :
   3336       1.1.1.2  christos else
   3337       1.1.1.2  christos   echo "$as_me: failed program was:" >&5
   3338       1.1.1.2  christos cat conftest.$ac_ext >&5
   3339       1.1.1.4  christos cf_cv_posix_c_source=no
   3340       1.1.1.2  christos fi
   3341       1.1.1.2  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3342       1.1.1.4  christos 	 CFLAGS="$cf_save_CFLAGS"
   3343       1.1.1.4  christos 	 CPPFLAGS="$cf_save_CPPFLAGS"
   3344       1.1.1.2  christos 
   3345       1.1.1.2  christos fi
   3346       1.1.1.4  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3347       1.1.1.2  christos 
   3348       1.1.1.4  christos fi
   3349  1.1.1.7.12.2    martin echo "$as_me:3349: result: $cf_cv_posix_c_source" >&5
   3350       1.1.1.4  christos echo "${ECHO_T}$cf_cv_posix_c_source" >&6
   3351       1.1.1.4  christos 
   3352       1.1.1.4  christos if test "$cf_cv_posix_c_source" != no ; then
   3353       1.1.1.4  christos 	CFLAGS="$cf_trim_CFLAGS"
   3354       1.1.1.4  christos 	CPPFLAGS="$cf_trim_CPPFLAGS"
   3355       1.1.1.2  christos 
   3356       1.1.1.2  christos cf_fix_cppflags=no
   3357       1.1.1.2  christos cf_new_cflags=
   3358       1.1.1.2  christos cf_new_cppflags=
   3359       1.1.1.2  christos cf_new_extra_cppflags=
   3360       1.1.1.2  christos 
   3361       1.1.1.4  christos for cf_add_cflags in $cf_cv_posix_c_source
   3362       1.1.1.2  christos do
   3363       1.1.1.2  christos case $cf_fix_cppflags in
   3364       1.1.1.6  christos (no)
   3365       1.1.1.6  christos 	case $cf_add_cflags in
   3366       1.1.1.6  christos 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   3367       1.1.1.2  christos 		case $cf_add_cflags in
   3368       1.1.1.6  christos 		(-D*)
   3369       1.1.1.2  christos 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   3370       1.1.1.2  christos 
   3371       1.1.1.5  christos 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3372       1.1.1.2  christos 				&& test -z "${cf_tst_cflags}" \
   3373       1.1.1.2  christos 				&& cf_fix_cppflags=yes
   3374       1.1.1.2  christos 
   3375       1.1.1.2  christos 			if test $cf_fix_cppflags = yes ; then
   3376  1.1.1.7.12.1  christos 
   3377  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3378  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3379  1.1.1.7.12.1  christos 
   3380       1.1.1.2  christos 				continue
   3381       1.1.1.2  christos 			elif test "${cf_tst_cflags}" = "\"'" ; then
   3382  1.1.1.7.12.1  christos 
   3383  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3384  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3385  1.1.1.7.12.1  christos 
   3386       1.1.1.2  christos 				continue
   3387       1.1.1.2  christos 			fi
   3388       1.1.1.2  christos 			;;
   3389       1.1.1.2  christos 		esac
   3390       1.1.1.2  christos 		case "$CPPFLAGS" in
   3391       1.1.1.6  christos 		(*$cf_add_cflags)
   3392       1.1.1.2  christos 			;;
   3393       1.1.1.6  christos 		(*)
   3394       1.1.1.6  christos 			case $cf_add_cflags in
   3395       1.1.1.6  christos 			(-D*)
   3396       1.1.1.2  christos 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   3397       1.1.1.2  christos 
   3398       1.1.1.2  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   3399       1.1.1.2  christos 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3400       1.1.1.2  christos 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   3401       1.1.1.2  christos 
   3402       1.1.1.2  christos 				;;
   3403       1.1.1.2  christos 			esac
   3404  1.1.1.7.12.1  christos 
   3405  1.1.1.7.12.1  christos 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   3406  1.1.1.7.12.1  christos 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   3407  1.1.1.7.12.1  christos 
   3408       1.1.1.2  christos 			;;
   3409       1.1.1.2  christos 		esac
   3410       1.1.1.2  christos 		;;
   3411       1.1.1.6  christos 	(*)
   3412  1.1.1.7.12.1  christos 
   3413  1.1.1.7.12.1  christos 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   3414  1.1.1.7.12.1  christos 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   3415  1.1.1.7.12.1  christos 
   3416       1.1.1.2  christos 		;;
   3417       1.1.1.2  christos 	esac
   3418       1.1.1.2  christos 	;;
   3419       1.1.1.6  christos (yes)
   3420  1.1.1.7.12.1  christos 
   3421  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3422  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3423       1.1.1.2  christos 
   3424       1.1.1.2  christos 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   3425       1.1.1.2  christos 
   3426       1.1.1.5  christos 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3427       1.1.1.2  christos 		&& test -z "${cf_tst_cflags}" \
   3428       1.1.1.2  christos 		&& cf_fix_cppflags=no
   3429       1.1.1.2  christos 	;;
   3430       1.1.1.2  christos esac
   3431       1.1.1.2  christos done
   3432       1.1.1.2  christos 
   3433       1.1.1.2  christos if test -n "$cf_new_cflags" ; then
   3434       1.1.1.2  christos 
   3435  1.1.1.7.12.1  christos 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   3436  1.1.1.7.12.1  christos 	CFLAGS="${CFLAGS}$cf_new_cflags"
   3437  1.1.1.7.12.1  christos 
   3438       1.1.1.2  christos fi
   3439       1.1.1.4  christos 
   3440       1.1.1.4  christos if test -n "$cf_new_cppflags" ; then
   3441       1.1.1.4  christos 
   3442  1.1.1.7.12.1  christos 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   3443  1.1.1.7.12.1  christos 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   3444  1.1.1.7.12.1  christos 
   3445       1.1.1.2  christos fi
   3446       1.1.1.2  christos 
   3447       1.1.1.4  christos if test -n "$cf_new_extra_cppflags" ; then
   3448       1.1.1.4  christos 
   3449  1.1.1.7.12.1  christos 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   3450  1.1.1.7.12.1  christos 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   3451  1.1.1.7.12.1  christos 
   3452       1.1.1.2  christos fi
   3453       1.1.1.2  christos 
   3454       1.1.1.2  christos fi
   3455       1.1.1.2  christos 
   3456  1.1.1.7.12.2    martin fi # cf_cv_posix_visible
   3457  1.1.1.7.12.2    martin 
   3458       1.1.1.2  christos 	;;
   3459       1.1.1.6  christos (netbsd*)
   3460       1.1.1.3  christos 	cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
   3461       1.1.1.2  christos 	;;
   3462       1.1.1.6  christos (openbsd[4-9]*)
   3463       1.1.1.4  christos 	# setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
   3464       1.1.1.4  christos 	cf_xopen_source="-D_BSD_SOURCE"
   3465       1.1.1.4  christos 	cf_XOPEN_SOURCE=600
   3466       1.1.1.4  christos 	;;
   3467       1.1.1.6  christos (openbsd*)
   3468       1.1.1.2  christos 	# setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
   3469       1.1.1.2  christos 	;;
   3470       1.1.1.6  christos (osf[45]*)
   3471       1.1.1.2  christos 	cf_xopen_source="-D_OSF_SOURCE"
   3472       1.1.1.2  christos 	;;
   3473       1.1.1.6  christos (nto-qnx*)
   3474       1.1.1.2  christos 	cf_xopen_source="-D_QNX_SOURCE"
   3475       1.1.1.2  christos 	;;
   3476       1.1.1.6  christos (sco*)
   3477       1.1.1.2  christos 	# setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
   3478       1.1.1.2  christos 	;;
   3479       1.1.1.6  christos (solaris2.*)
   3480       1.1.1.2  christos 	cf_xopen_source="-D__EXTENSIONS__"
   3481       1.1.1.5  christos 	cf_cv_xopen_source=broken
   3482       1.1.1.5  christos 	;;
   3483       1.1.1.6  christos (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
   3484       1.1.1.5  christos 	cf_XOPEN_SOURCE=
   3485       1.1.1.5  christos 	cf_POSIX_C_SOURCE=
   3486       1.1.1.2  christos 	;;
   3487       1.1.1.6  christos (*)
   3488       1.1.1.4  christos 
   3489  1.1.1.7.12.2    martin echo "$as_me:3489: checking if we should define _XOPEN_SOURCE" >&5
   3490       1.1.1.2  christos echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
   3491       1.1.1.2  christos if test "${cf_cv_xopen_source+set}" = set; then
   3492       1.1.1.2  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3493       1.1.1.2  christos else
   3494       1.1.1.2  christos 
   3495       1.1.1.2  christos 	cat >conftest.$ac_ext <<_ACEOF
   3496  1.1.1.7.12.2    martin #line 3496 "configure"
   3497       1.1.1.2  christos #include "confdefs.h"
   3498       1.1.1.4  christos 
   3499       1.1.1.4  christos #include <stdlib.h>
   3500       1.1.1.4  christos #include <string.h>
   3501       1.1.1.2  christos #include <sys/types.h>
   3502       1.1.1.4  christos 
   3503       1.1.1.2  christos int
   3504  1.1.1.7.12.1  christos main (void)
   3505       1.1.1.2  christos {
   3506       1.1.1.2  christos 
   3507       1.1.1.2  christos #ifndef _XOPEN_SOURCE
   3508       1.1.1.2  christos make an error
   3509       1.1.1.2  christos #endif
   3510       1.1.1.2  christos   ;
   3511       1.1.1.2  christos   return 0;
   3512       1.1.1.2  christos }
   3513       1.1.1.2  christos _ACEOF
   3514       1.1.1.2  christos rm -f conftest.$ac_objext
   3515  1.1.1.7.12.2    martin if { (eval echo "$as_me:3515: \"$ac_compile\"") >&5
   3516       1.1.1.2  christos   (eval $ac_compile) 2>&5
   3517       1.1.1.2  christos   ac_status=$?
   3518  1.1.1.7.12.2    martin   echo "$as_me:3518: \$? = $ac_status" >&5
   3519       1.1.1.2  christos   (exit $ac_status); } &&
   3520       1.1.1.2  christos          { ac_try='test -s conftest.$ac_objext'
   3521  1.1.1.7.12.2    martin   { (eval echo "$as_me:3521: \"$ac_try\"") >&5
   3522       1.1.1.2  christos   (eval $ac_try) 2>&5
   3523       1.1.1.2  christos   ac_status=$?
   3524  1.1.1.7.12.2    martin   echo "$as_me:3524: \$? = $ac_status" >&5
   3525       1.1.1.2  christos   (exit $ac_status); }; }; then
   3526       1.1.1.2  christos   cf_cv_xopen_source=no
   3527       1.1.1.2  christos else
   3528       1.1.1.2  christos   echo "$as_me: failed program was:" >&5
   3529       1.1.1.2  christos cat conftest.$ac_ext >&5
   3530       1.1.1.2  christos cf_save="$CPPFLAGS"
   3531  1.1.1.7.12.2    martin 
   3532  1.1.1.7.12.2    martin 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   3533  1.1.1.7.12.2    martin 	CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
   3534  1.1.1.7.12.2    martin 
   3535       1.1.1.2  christos 	 cat >conftest.$ac_ext <<_ACEOF
   3536  1.1.1.7.12.2    martin #line 3536 "configure"
   3537       1.1.1.2  christos #include "confdefs.h"
   3538       1.1.1.4  christos 
   3539       1.1.1.4  christos #include <stdlib.h>
   3540       1.1.1.4  christos #include <string.h>
   3541       1.1.1.2  christos #include <sys/types.h>
   3542       1.1.1.4  christos 
   3543       1.1.1.2  christos int
   3544  1.1.1.7.12.1  christos main (void)
   3545       1.1.1.2  christos {
   3546       1.1.1.2  christos 
   3547       1.1.1.2  christos #ifdef _XOPEN_SOURCE
   3548       1.1.1.2  christos make an error
   3549       1.1.1.2  christos #endif
   3550       1.1.1.2  christos   ;
   3551       1.1.1.2  christos   return 0;
   3552       1.1.1.2  christos }
   3553       1.1.1.2  christos _ACEOF
   3554       1.1.1.2  christos rm -f conftest.$ac_objext
   3555  1.1.1.7.12.2    martin if { (eval echo "$as_me:3555: \"$ac_compile\"") >&5
   3556       1.1.1.2  christos   (eval $ac_compile) 2>&5
   3557       1.1.1.2  christos   ac_status=$?
   3558  1.1.1.7.12.2    martin   echo "$as_me:3558: \$? = $ac_status" >&5
   3559       1.1.1.2  christos   (exit $ac_status); } &&
   3560       1.1.1.2  christos          { ac_try='test -s conftest.$ac_objext'
   3561  1.1.1.7.12.2    martin   { (eval echo "$as_me:3561: \"$ac_try\"") >&5
   3562       1.1.1.2  christos   (eval $ac_try) 2>&5
   3563       1.1.1.2  christos   ac_status=$?
   3564  1.1.1.7.12.2    martin   echo "$as_me:3564: \$? = $ac_status" >&5
   3565       1.1.1.2  christos   (exit $ac_status); }; }; then
   3566       1.1.1.2  christos   cf_cv_xopen_source=no
   3567       1.1.1.2  christos else
   3568       1.1.1.2  christos   echo "$as_me: failed program was:" >&5
   3569       1.1.1.2  christos cat conftest.$ac_ext >&5
   3570       1.1.1.2  christos cf_cv_xopen_source=$cf_XOPEN_SOURCE
   3571       1.1.1.2  christos fi
   3572       1.1.1.2  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3573       1.1.1.2  christos 	CPPFLAGS="$cf_save"
   3574       1.1.1.2  christos 
   3575       1.1.1.2  christos fi
   3576       1.1.1.2  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3577       1.1.1.2  christos 
   3578       1.1.1.2  christos fi
   3579  1.1.1.7.12.2    martin echo "$as_me:3579: result: $cf_cv_xopen_source" >&5
   3580       1.1.1.2  christos echo "${ECHO_T}$cf_cv_xopen_source" >&6
   3581       1.1.1.4  christos 
   3582       1.1.1.4  christos if test "$cf_cv_xopen_source" != no ; then
   3583       1.1.1.2  christos 
   3584       1.1.1.2  christos CFLAGS=`echo "$CFLAGS" | \
   3585       1.1.1.2  christos 	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3586       1.1.1.2  christos 		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
   3587       1.1.1.2  christos 
   3588       1.1.1.2  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   3589       1.1.1.2  christos 	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3590       1.1.1.2  christos 		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
   3591       1.1.1.2  christos 
   3592       1.1.1.4  christos 	cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
   3593           1.1  christos 
   3594           1.1  christos cf_fix_cppflags=no
   3595           1.1  christos cf_new_cflags=
   3596           1.1  christos cf_new_cppflags=
   3597           1.1  christos cf_new_extra_cppflags=
   3598           1.1  christos 
   3599       1.1.1.2  christos for cf_add_cflags in $cf_temp_xopen_source
   3600           1.1  christos do
   3601           1.1  christos case $cf_fix_cppflags in
   3602       1.1.1.6  christos (no)
   3603       1.1.1.6  christos 	case $cf_add_cflags in
   3604       1.1.1.6  christos 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   3605           1.1  christos 		case $cf_add_cflags in
   3606       1.1.1.6  christos 		(-D*)
   3607           1.1  christos 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   3608           1.1  christos 
   3609       1.1.1.5  christos 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3610       1.1.1.2  christos 				&& test -z "${cf_tst_cflags}" \
   3611       1.1.1.2  christos 				&& cf_fix_cppflags=yes
   3612           1.1  christos 
   3613           1.1  christos 			if test $cf_fix_cppflags = yes ; then
   3614  1.1.1.7.12.1  christos 
   3615  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3616  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3617  1.1.1.7.12.1  christos 
   3618           1.1  christos 				continue
   3619           1.1  christos 			elif test "${cf_tst_cflags}" = "\"'" ; then
   3620  1.1.1.7.12.1  christos 
   3621  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3622  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3623  1.1.1.7.12.1  christos 
   3624           1.1  christos 				continue
   3625           1.1  christos 			fi
   3626           1.1  christos 			;;
   3627           1.1  christos 		esac
   3628           1.1  christos 		case "$CPPFLAGS" in
   3629       1.1.1.6  christos 		(*$cf_add_cflags)
   3630           1.1  christos 			;;
   3631       1.1.1.6  christos 		(*)
   3632       1.1.1.6  christos 			case $cf_add_cflags in
   3633       1.1.1.6  christos 			(-D*)
   3634       1.1.1.2  christos 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   3635       1.1.1.2  christos 
   3636       1.1.1.2  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   3637       1.1.1.2  christos 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3638       1.1.1.2  christos 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   3639       1.1.1.2  christos 
   3640       1.1.1.2  christos 				;;
   3641       1.1.1.2  christos 			esac
   3642  1.1.1.7.12.1  christos 
   3643  1.1.1.7.12.1  christos 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   3644  1.1.1.7.12.1  christos 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   3645  1.1.1.7.12.1  christos 
   3646           1.1  christos 			;;
   3647           1.1  christos 		esac
   3648           1.1  christos 		;;
   3649       1.1.1.6  christos 	(*)
   3650  1.1.1.7.12.1  christos 
   3651  1.1.1.7.12.1  christos 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   3652  1.1.1.7.12.1  christos 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   3653  1.1.1.7.12.1  christos 
   3654           1.1  christos 		;;
   3655           1.1  christos 	esac
   3656           1.1  christos 	;;
   3657       1.1.1.6  christos (yes)
   3658  1.1.1.7.12.1  christos 
   3659  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3660  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3661           1.1  christos 
   3662           1.1  christos 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   3663           1.1  christos 
   3664       1.1.1.5  christos 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3665       1.1.1.2  christos 		&& test -z "${cf_tst_cflags}" \
   3666       1.1.1.2  christos 		&& cf_fix_cppflags=no
   3667           1.1  christos 	;;
   3668           1.1  christos esac
   3669           1.1  christos done
   3670           1.1  christos 
   3671           1.1  christos if test -n "$cf_new_cflags" ; then
   3672           1.1  christos 
   3673  1.1.1.7.12.1  christos 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   3674  1.1.1.7.12.1  christos 	CFLAGS="${CFLAGS}$cf_new_cflags"
   3675  1.1.1.7.12.1  christos 
   3676           1.1  christos fi
   3677           1.1  christos 
   3678           1.1  christos if test -n "$cf_new_cppflags" ; then
   3679           1.1  christos 
   3680  1.1.1.7.12.1  christos 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   3681  1.1.1.7.12.1  christos 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   3682  1.1.1.7.12.1  christos 
   3683           1.1  christos fi
   3684           1.1  christos 
   3685           1.1  christos if test -n "$cf_new_extra_cppflags" ; then
   3686           1.1  christos 
   3687  1.1.1.7.12.1  christos 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   3688  1.1.1.7.12.1  christos 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   3689  1.1.1.7.12.1  christos 
   3690           1.1  christos fi
   3691           1.1  christos 
   3692       1.1.1.4  christos fi
   3693       1.1.1.2  christos 
   3694  1.1.1.7.12.2    martin if test "$cf_cv_posix_visible" = no; then
   3695  1.1.1.7.12.2    martin 
   3696       1.1.1.2  christos cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
   3697       1.1.1.2  christos 
   3698       1.1.1.2  christos cf_save_CFLAGS="$CFLAGS"
   3699       1.1.1.2  christos cf_save_CPPFLAGS="$CPPFLAGS"
   3700       1.1.1.2  christos 
   3701       1.1.1.2  christos cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
   3702       1.1.1.2  christos 	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3703       1.1.1.2  christos 		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
   3704       1.1.1.2  christos 
   3705       1.1.1.2  christos cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
   3706       1.1.1.2  christos 	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3707       1.1.1.2  christos 		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
   3708       1.1.1.2  christos 
   3709  1.1.1.7.12.2    martin echo "$as_me:3709: checking if we should define _POSIX_C_SOURCE" >&5
   3710       1.1.1.2  christos echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
   3711       1.1.1.2  christos if test "${cf_cv_posix_c_source+set}" = set; then
   3712       1.1.1.2  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   3713       1.1.1.2  christos else
   3714       1.1.1.2  christos 
   3715  1.1.1.7.12.2    martin echo "${as_me:-configure}:3715: testing if the symbol is already defined go no further ..." 1>&5
   3716       1.1.1.2  christos 
   3717           1.1  christos 	cat >conftest.$ac_ext <<_ACEOF
   3718  1.1.1.7.12.2    martin #line 3718 "configure"
   3719           1.1  christos #include "confdefs.h"
   3720       1.1.1.2  christos #include <sys/types.h>
   3721       1.1.1.2  christos int
   3722  1.1.1.7.12.1  christos main (void)
   3723       1.1.1.2  christos {
   3724           1.1  christos 
   3725       1.1.1.2  christos #ifndef _POSIX_C_SOURCE
   3726       1.1.1.2  christos make an error
   3727           1.1  christos #endif
   3728       1.1.1.2  christos   ;
   3729       1.1.1.2  christos   return 0;
   3730       1.1.1.2  christos }
   3731       1.1.1.2  christos _ACEOF
   3732       1.1.1.2  christos rm -f conftest.$ac_objext
   3733  1.1.1.7.12.2    martin if { (eval echo "$as_me:3733: \"$ac_compile\"") >&5
   3734       1.1.1.2  christos   (eval $ac_compile) 2>&5
   3735       1.1.1.2  christos   ac_status=$?
   3736  1.1.1.7.12.2    martin   echo "$as_me:3736: \$? = $ac_status" >&5
   3737       1.1.1.2  christos   (exit $ac_status); } &&
   3738       1.1.1.2  christos          { ac_try='test -s conftest.$ac_objext'
   3739  1.1.1.7.12.2    martin   { (eval echo "$as_me:3739: \"$ac_try\"") >&5
   3740       1.1.1.2  christos   (eval $ac_try) 2>&5
   3741       1.1.1.2  christos   ac_status=$?
   3742  1.1.1.7.12.2    martin   echo "$as_me:3742: \$? = $ac_status" >&5
   3743       1.1.1.2  christos   (exit $ac_status); }; }; then
   3744       1.1.1.2  christos   cf_cv_posix_c_source=no
   3745       1.1.1.2  christos else
   3746       1.1.1.2  christos   echo "$as_me: failed program was:" >&5
   3747       1.1.1.2  christos cat conftest.$ac_ext >&5
   3748       1.1.1.2  christos cf_want_posix_source=no
   3749       1.1.1.6  christos 	 case .$cf_POSIX_C_SOURCE in
   3750       1.1.1.6  christos 	 (.[12]??*)
   3751       1.1.1.2  christos 		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
   3752       1.1.1.2  christos 		;;
   3753       1.1.1.6  christos 	 (.2)
   3754       1.1.1.2  christos 		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
   3755       1.1.1.2  christos 		cf_want_posix_source=yes
   3756       1.1.1.2  christos 		;;
   3757       1.1.1.6  christos 	 (.*)
   3758       1.1.1.2  christos 		cf_want_posix_source=yes
   3759       1.1.1.2  christos 		;;
   3760       1.1.1.2  christos 	 esac
   3761       1.1.1.2  christos 	 if test "$cf_want_posix_source" = yes ; then
   3762       1.1.1.2  christos 		cat >conftest.$ac_ext <<_ACEOF
   3763  1.1.1.7.12.2    martin #line 3763 "configure"
   3764       1.1.1.2  christos #include "confdefs.h"
   3765       1.1.1.2  christos #include <sys/types.h>
   3766       1.1.1.2  christos int
   3767  1.1.1.7.12.1  christos main (void)
   3768       1.1.1.2  christos {
   3769       1.1.1.2  christos 
   3770       1.1.1.2  christos #ifdef _POSIX_SOURCE
   3771       1.1.1.2  christos make an error
   3772           1.1  christos #endif
   3773       1.1.1.2  christos   ;
   3774       1.1.1.2  christos   return 0;
   3775       1.1.1.2  christos }
   3776       1.1.1.2  christos _ACEOF
   3777       1.1.1.2  christos rm -f conftest.$ac_objext
   3778  1.1.1.7.12.2    martin if { (eval echo "$as_me:3778: \"$ac_compile\"") >&5
   3779       1.1.1.2  christos   (eval $ac_compile) 2>&5
   3780       1.1.1.2  christos   ac_status=$?
   3781  1.1.1.7.12.2    martin   echo "$as_me:3781: \$? = $ac_status" >&5
   3782       1.1.1.2  christos   (exit $ac_status); } &&
   3783       1.1.1.2  christos          { ac_try='test -s conftest.$ac_objext'
   3784  1.1.1.7.12.2    martin   { (eval echo "$as_me:3784: \"$ac_try\"") >&5
   3785       1.1.1.2  christos   (eval $ac_try) 2>&5
   3786       1.1.1.2  christos   ac_status=$?
   3787  1.1.1.7.12.2    martin   echo "$as_me:3787: \$? = $ac_status" >&5
   3788       1.1.1.2  christos   (exit $ac_status); }; }; then
   3789       1.1.1.2  christos   :
   3790       1.1.1.2  christos else
   3791       1.1.1.2  christos   echo "$as_me: failed program was:" >&5
   3792       1.1.1.2  christos cat conftest.$ac_ext >&5
   3793       1.1.1.2  christos cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
   3794       1.1.1.2  christos fi
   3795       1.1.1.2  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3796       1.1.1.2  christos 	 fi
   3797       1.1.1.2  christos 
   3798  1.1.1.7.12.2    martin echo "${as_me:-configure}:3798: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
   3799       1.1.1.2  christos 
   3800       1.1.1.2  christos 	 CFLAGS="$cf_trim_CFLAGS"
   3801  1.1.1.7.12.2    martin 	 CPPFLAGS="$cf_trim_CPPFLAGS"
   3802  1.1.1.7.12.2    martin 
   3803  1.1.1.7.12.2    martin 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   3804  1.1.1.7.12.2    martin 	CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
   3805       1.1.1.2  christos 
   3806  1.1.1.7.12.2    martin echo "${as_me:-configure}:3806: testing if the second compile does not leave our definition intact error ..." 1>&5
   3807           1.1  christos 
   3808       1.1.1.2  christos 	 cat >conftest.$ac_ext <<_ACEOF
   3809  1.1.1.7.12.2    martin #line 3809 "configure"
   3810       1.1.1.2  christos #include "confdefs.h"
   3811       1.1.1.2  christos #include <sys/types.h>
   3812           1.1  christos int
   3813  1.1.1.7.12.1  christos main (void)
   3814           1.1  christos {
   3815           1.1  christos 
   3816       1.1.1.2  christos #ifndef _POSIX_C_SOURCE
   3817       1.1.1.2  christos make an error
   3818       1.1.1.2  christos #endif
   3819           1.1  christos   ;
   3820           1.1  christos   return 0;
   3821           1.1  christos }
   3822           1.1  christos _ACEOF
   3823           1.1  christos rm -f conftest.$ac_objext
   3824  1.1.1.7.12.2    martin if { (eval echo "$as_me:3824: \"$ac_compile\"") >&5
   3825           1.1  christos   (eval $ac_compile) 2>&5
   3826           1.1  christos   ac_status=$?
   3827  1.1.1.7.12.2    martin   echo "$as_me:3827: \$? = $ac_status" >&5
   3828           1.1  christos   (exit $ac_status); } &&
   3829           1.1  christos          { ac_try='test -s conftest.$ac_objext'
   3830  1.1.1.7.12.2    martin   { (eval echo "$as_me:3830: \"$ac_try\"") >&5
   3831           1.1  christos   (eval $ac_try) 2>&5
   3832           1.1  christos   ac_status=$?
   3833  1.1.1.7.12.2    martin   echo "$as_me:3833: \$? = $ac_status" >&5
   3834           1.1  christos   (exit $ac_status); }; }; then
   3835       1.1.1.2  christos   :
   3836           1.1  christos else
   3837           1.1  christos   echo "$as_me: failed program was:" >&5
   3838           1.1  christos cat conftest.$ac_ext >&5
   3839       1.1.1.2  christos cf_cv_posix_c_source=no
   3840           1.1  christos fi
   3841           1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3842       1.1.1.2  christos 	 CFLAGS="$cf_save_CFLAGS"
   3843       1.1.1.2  christos 	 CPPFLAGS="$cf_save_CPPFLAGS"
   3844           1.1  christos 
   3845           1.1  christos fi
   3846       1.1.1.2  christos rm -f conftest.$ac_objext conftest.$ac_ext
   3847           1.1  christos 
   3848       1.1.1.2  christos fi
   3849  1.1.1.7.12.2    martin echo "$as_me:3849: result: $cf_cv_posix_c_source" >&5
   3850       1.1.1.2  christos echo "${ECHO_T}$cf_cv_posix_c_source" >&6
   3851       1.1.1.2  christos 
   3852       1.1.1.2  christos if test "$cf_cv_posix_c_source" != no ; then
   3853       1.1.1.2  christos 	CFLAGS="$cf_trim_CFLAGS"
   3854       1.1.1.2  christos 	CPPFLAGS="$cf_trim_CPPFLAGS"
   3855           1.1  christos 
   3856           1.1  christos cf_fix_cppflags=no
   3857           1.1  christos cf_new_cflags=
   3858           1.1  christos cf_new_cppflags=
   3859           1.1  christos cf_new_extra_cppflags=
   3860           1.1  christos 
   3861       1.1.1.2  christos for cf_add_cflags in $cf_cv_posix_c_source
   3862           1.1  christos do
   3863           1.1  christos case $cf_fix_cppflags in
   3864       1.1.1.6  christos (no)
   3865       1.1.1.6  christos 	case $cf_add_cflags in
   3866       1.1.1.6  christos 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   3867           1.1  christos 		case $cf_add_cflags in
   3868       1.1.1.6  christos 		(-D*)
   3869           1.1  christos 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   3870           1.1  christos 
   3871       1.1.1.5  christos 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3872       1.1.1.2  christos 				&& test -z "${cf_tst_cflags}" \
   3873       1.1.1.2  christos 				&& cf_fix_cppflags=yes
   3874           1.1  christos 
   3875           1.1  christos 			if test $cf_fix_cppflags = yes ; then
   3876  1.1.1.7.12.1  christos 
   3877  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3878  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3879  1.1.1.7.12.1  christos 
   3880           1.1  christos 				continue
   3881           1.1  christos 			elif test "${cf_tst_cflags}" = "\"'" ; then
   3882  1.1.1.7.12.1  christos 
   3883  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3884  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3885  1.1.1.7.12.1  christos 
   3886           1.1  christos 				continue
   3887           1.1  christos 			fi
   3888           1.1  christos 			;;
   3889           1.1  christos 		esac
   3890           1.1  christos 		case "$CPPFLAGS" in
   3891       1.1.1.6  christos 		(*$cf_add_cflags)
   3892           1.1  christos 			;;
   3893       1.1.1.6  christos 		(*)
   3894       1.1.1.6  christos 			case $cf_add_cflags in
   3895       1.1.1.6  christos 			(-D*)
   3896       1.1.1.2  christos 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   3897       1.1.1.2  christos 
   3898       1.1.1.2  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   3899       1.1.1.2  christos 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3900       1.1.1.2  christos 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   3901       1.1.1.2  christos 
   3902       1.1.1.2  christos 				;;
   3903       1.1.1.2  christos 			esac
   3904  1.1.1.7.12.1  christos 
   3905  1.1.1.7.12.1  christos 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   3906  1.1.1.7.12.1  christos 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   3907  1.1.1.7.12.1  christos 
   3908           1.1  christos 			;;
   3909           1.1  christos 		esac
   3910           1.1  christos 		;;
   3911       1.1.1.6  christos 	(*)
   3912  1.1.1.7.12.1  christos 
   3913  1.1.1.7.12.1  christos 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   3914  1.1.1.7.12.1  christos 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   3915  1.1.1.7.12.1  christos 
   3916           1.1  christos 		;;
   3917           1.1  christos 	esac
   3918           1.1  christos 	;;
   3919       1.1.1.6  christos (yes)
   3920  1.1.1.7.12.1  christos 
   3921  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3922  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3923           1.1  christos 
   3924           1.1  christos 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   3925           1.1  christos 
   3926       1.1.1.5  christos 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3927       1.1.1.2  christos 		&& test -z "${cf_tst_cflags}" \
   3928       1.1.1.2  christos 		&& cf_fix_cppflags=no
   3929           1.1  christos 	;;
   3930           1.1  christos esac
   3931           1.1  christos done
   3932           1.1  christos 
   3933           1.1  christos if test -n "$cf_new_cflags" ; then
   3934           1.1  christos 
   3935  1.1.1.7.12.1  christos 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   3936  1.1.1.7.12.1  christos 	CFLAGS="${CFLAGS}$cf_new_cflags"
   3937  1.1.1.7.12.1  christos 
   3938           1.1  christos fi
   3939           1.1  christos 
   3940           1.1  christos if test -n "$cf_new_cppflags" ; then
   3941           1.1  christos 
   3942  1.1.1.7.12.1  christos 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   3943  1.1.1.7.12.1  christos 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   3944  1.1.1.7.12.1  christos 
   3945           1.1  christos fi
   3946           1.1  christos 
   3947           1.1  christos if test -n "$cf_new_extra_cppflags" ; then
   3948           1.1  christos 
   3949  1.1.1.7.12.1  christos 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   3950  1.1.1.7.12.1  christos 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   3951  1.1.1.7.12.1  christos 
   3952           1.1  christos fi
   3953           1.1  christos 
   3954       1.1.1.2  christos fi
   3955       1.1.1.2  christos 
   3956  1.1.1.7.12.2    martin fi # cf_cv_posix_visible
   3957  1.1.1.7.12.2    martin 
   3958       1.1.1.2  christos 	;;
   3959       1.1.1.2  christos esac
   3960       1.1.1.2  christos 
   3961       1.1.1.2  christos if test -n "$cf_xopen_source" ; then
   3962       1.1.1.2  christos 
   3963       1.1.1.2  christos cf_fix_cppflags=no
   3964       1.1.1.2  christos cf_new_cflags=
   3965       1.1.1.2  christos cf_new_cppflags=
   3966       1.1.1.2  christos cf_new_extra_cppflags=
   3967       1.1.1.2  christos 
   3968       1.1.1.2  christos for cf_add_cflags in $cf_xopen_source
   3969       1.1.1.2  christos do
   3970       1.1.1.2  christos case $cf_fix_cppflags in
   3971       1.1.1.6  christos (no)
   3972       1.1.1.6  christos 	case $cf_add_cflags in
   3973       1.1.1.6  christos 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   3974       1.1.1.2  christos 		case $cf_add_cflags in
   3975       1.1.1.6  christos 		(-D*)
   3976       1.1.1.2  christos 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   3977       1.1.1.2  christos 
   3978       1.1.1.5  christos 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   3979       1.1.1.2  christos 				&& test -z "${cf_tst_cflags}" \
   3980       1.1.1.2  christos 				&& cf_fix_cppflags=yes
   3981       1.1.1.2  christos 
   3982       1.1.1.2  christos 			if test $cf_fix_cppflags = yes ; then
   3983  1.1.1.7.12.1  christos 
   3984  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3985  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3986  1.1.1.7.12.1  christos 
   3987       1.1.1.2  christos 				continue
   3988       1.1.1.2  christos 			elif test "${cf_tst_cflags}" = "\"'" ; then
   3989  1.1.1.7.12.1  christos 
   3990  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   3991  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   3992  1.1.1.7.12.1  christos 
   3993       1.1.1.2  christos 				continue
   3994       1.1.1.2  christos 			fi
   3995       1.1.1.2  christos 			;;
   3996       1.1.1.2  christos 		esac
   3997       1.1.1.2  christos 		case "$CPPFLAGS" in
   3998       1.1.1.6  christos 		(*$cf_add_cflags)
   3999       1.1.1.2  christos 			;;
   4000       1.1.1.6  christos 		(*)
   4001       1.1.1.6  christos 			case $cf_add_cflags in
   4002       1.1.1.6  christos 			(-D*)
   4003       1.1.1.2  christos 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   4004       1.1.1.2  christos 
   4005       1.1.1.2  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   4006       1.1.1.2  christos 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   4007       1.1.1.2  christos 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   4008       1.1.1.2  christos 
   4009       1.1.1.2  christos 				;;
   4010       1.1.1.2  christos 			esac
   4011  1.1.1.7.12.1  christos 
   4012  1.1.1.7.12.1  christos 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   4013  1.1.1.7.12.1  christos 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   4014  1.1.1.7.12.1  christos 
   4015       1.1.1.2  christos 			;;
   4016       1.1.1.2  christos 		esac
   4017       1.1.1.2  christos 		;;
   4018       1.1.1.6  christos 	(*)
   4019  1.1.1.7.12.1  christos 
   4020  1.1.1.7.12.1  christos 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   4021  1.1.1.7.12.1  christos 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   4022  1.1.1.7.12.1  christos 
   4023       1.1.1.2  christos 		;;
   4024       1.1.1.2  christos 	esac
   4025       1.1.1.2  christos 	;;
   4026       1.1.1.6  christos (yes)
   4027  1.1.1.7.12.1  christos 
   4028  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   4029  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   4030       1.1.1.2  christos 
   4031       1.1.1.2  christos 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   4032       1.1.1.2  christos 
   4033       1.1.1.5  christos 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   4034       1.1.1.2  christos 		&& test -z "${cf_tst_cflags}" \
   4035       1.1.1.2  christos 		&& cf_fix_cppflags=no
   4036       1.1.1.2  christos 	;;
   4037       1.1.1.2  christos esac
   4038       1.1.1.2  christos done
   4039       1.1.1.2  christos 
   4040       1.1.1.2  christos if test -n "$cf_new_cflags" ; then
   4041       1.1.1.5  christos 	test -n "$verbose" && echo "	add to \$CFLAGS $cf_new_cflags" 1>&6
   4042       1.1.1.5  christos 
   4043  1.1.1.7.12.2    martin echo "${as_me:-configure}:4043: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
   4044  1.1.1.7.12.1  christos 
   4045  1.1.1.7.12.1  christos 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   4046  1.1.1.7.12.1  christos 	CFLAGS="${CFLAGS}$cf_new_cflags"
   4047           1.1  christos 
   4048           1.1  christos fi
   4049       1.1.1.2  christos 
   4050       1.1.1.2  christos if test -n "$cf_new_cppflags" ; then
   4051       1.1.1.5  christos 	test -n "$verbose" && echo "	add to \$CPPFLAGS $cf_new_cppflags" 1>&6
   4052       1.1.1.5  christos 
   4053  1.1.1.7.12.2    martin echo "${as_me:-configure}:4053: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
   4054  1.1.1.7.12.1  christos 
   4055  1.1.1.7.12.1  christos 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   4056  1.1.1.7.12.1  christos 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   4057       1.1.1.2  christos 
   4058       1.1.1.2  christos fi
   4059       1.1.1.2  christos 
   4060       1.1.1.2  christos if test -n "$cf_new_extra_cppflags" ; then
   4061       1.1.1.5  christos 	test -n "$verbose" && echo "	add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
   4062       1.1.1.5  christos 
   4063  1.1.1.7.12.2    martin echo "${as_me:-configure}:4063: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
   4064  1.1.1.7.12.1  christos 
   4065  1.1.1.7.12.1  christos 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   4066  1.1.1.7.12.1  christos 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   4067       1.1.1.2  christos 
   4068           1.1  christos fi
   4069           1.1  christos 
   4070           1.1  christos fi
   4071           1.1  christos 
   4072       1.1.1.4  christos if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
   4073  1.1.1.7.12.2    martin 	echo "$as_me:4073: checking if _XOPEN_SOURCE really is set" >&5
   4074       1.1.1.4  christos echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
   4075       1.1.1.4  christos 	cat >conftest.$ac_ext <<_ACEOF
   4076  1.1.1.7.12.2    martin #line 4076 "configure"
   4077       1.1.1.4  christos #include "confdefs.h"
   4078       1.1.1.4  christos #include <stdlib.h>
   4079       1.1.1.4  christos int
   4080  1.1.1.7.12.1  christos main (void)
   4081       1.1.1.4  christos {
   4082       1.1.1.4  christos 
   4083       1.1.1.4  christos #ifndef _XOPEN_SOURCE
   4084       1.1.1.4  christos make an error
   4085       1.1.1.4  christos #endif
   4086       1.1.1.4  christos   ;
   4087       1.1.1.4  christos   return 0;
   4088       1.1.1.4  christos }
   4089       1.1.1.4  christos _ACEOF
   4090       1.1.1.4  christos rm -f conftest.$ac_objext
   4091  1.1.1.7.12.2    martin if { (eval echo "$as_me:4091: \"$ac_compile\"") >&5
   4092       1.1.1.4  christos   (eval $ac_compile) 2>&5
   4093       1.1.1.4  christos   ac_status=$?
   4094  1.1.1.7.12.2    martin   echo "$as_me:4094: \$? = $ac_status" >&5
   4095       1.1.1.4  christos   (exit $ac_status); } &&
   4096       1.1.1.4  christos          { ac_try='test -s conftest.$ac_objext'
   4097  1.1.1.7.12.2    martin   { (eval echo "$as_me:4097: \"$ac_try\"") >&5
   4098       1.1.1.4  christos   (eval $ac_try) 2>&5
   4099       1.1.1.4  christos   ac_status=$?
   4100  1.1.1.7.12.2    martin   echo "$as_me:4100: \$? = $ac_status" >&5
   4101       1.1.1.4  christos   (exit $ac_status); }; }; then
   4102       1.1.1.4  christos   cf_XOPEN_SOURCE_set=yes
   4103       1.1.1.4  christos else
   4104       1.1.1.4  christos   echo "$as_me: failed program was:" >&5
   4105       1.1.1.4  christos cat conftest.$ac_ext >&5
   4106       1.1.1.4  christos cf_XOPEN_SOURCE_set=no
   4107       1.1.1.4  christos fi
   4108       1.1.1.4  christos rm -f conftest.$ac_objext conftest.$ac_ext
   4109  1.1.1.7.12.2    martin 	echo "$as_me:4109: result: $cf_XOPEN_SOURCE_set" >&5
   4110       1.1.1.4  christos echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
   4111       1.1.1.4  christos 	if test $cf_XOPEN_SOURCE_set = yes
   4112       1.1.1.4  christos 	then
   4113       1.1.1.4  christos 		cat >conftest.$ac_ext <<_ACEOF
   4114  1.1.1.7.12.2    martin #line 4114 "configure"
   4115       1.1.1.4  christos #include "confdefs.h"
   4116       1.1.1.4  christos #include <stdlib.h>
   4117       1.1.1.4  christos int
   4118  1.1.1.7.12.1  christos main (void)
   4119       1.1.1.4  christos {
   4120       1.1.1.4  christos 
   4121       1.1.1.4  christos #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
   4122       1.1.1.4  christos make an error
   4123       1.1.1.4  christos #endif
   4124       1.1.1.4  christos   ;
   4125       1.1.1.4  christos   return 0;
   4126       1.1.1.4  christos }
   4127       1.1.1.4  christos _ACEOF
   4128       1.1.1.4  christos rm -f conftest.$ac_objext
   4129  1.1.1.7.12.2    martin if { (eval echo "$as_me:4129: \"$ac_compile\"") >&5
   4130       1.1.1.4  christos   (eval $ac_compile) 2>&5
   4131       1.1.1.4  christos   ac_status=$?
   4132  1.1.1.7.12.2    martin   echo "$as_me:4132: \$? = $ac_status" >&5
   4133       1.1.1.4  christos   (exit $ac_status); } &&
   4134       1.1.1.4  christos          { ac_try='test -s conftest.$ac_objext'
   4135  1.1.1.7.12.2    martin   { (eval echo "$as_me:4135: \"$ac_try\"") >&5
   4136       1.1.1.4  christos   (eval $ac_try) 2>&5
   4137       1.1.1.4  christos   ac_status=$?
   4138  1.1.1.7.12.2    martin   echo "$as_me:4138: \$? = $ac_status" >&5
   4139       1.1.1.4  christos   (exit $ac_status); }; }; then
   4140       1.1.1.4  christos   cf_XOPEN_SOURCE_set_ok=yes
   4141       1.1.1.4  christos else
   4142       1.1.1.4  christos   echo "$as_me: failed program was:" >&5
   4143       1.1.1.4  christos cat conftest.$ac_ext >&5
   4144       1.1.1.4  christos cf_XOPEN_SOURCE_set_ok=no
   4145       1.1.1.4  christos fi
   4146       1.1.1.4  christos rm -f conftest.$ac_objext conftest.$ac_ext
   4147       1.1.1.4  christos 		if test $cf_XOPEN_SOURCE_set_ok = no
   4148       1.1.1.4  christos 		then
   4149  1.1.1.7.12.2    martin 			{ echo "$as_me:4149: WARNING: _XOPEN_SOURCE is lower than requested" >&5
   4150       1.1.1.4  christos echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
   4151       1.1.1.4  christos 		fi
   4152       1.1.1.4  christos 	else
   4153       1.1.1.4  christos 
   4154  1.1.1.7.12.2    martin echo "$as_me:4154: checking if we should define _XOPEN_SOURCE" >&5
   4155       1.1.1.4  christos echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
   4156       1.1.1.4  christos if test "${cf_cv_xopen_source+set}" = set; then
   4157       1.1.1.4  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4158       1.1.1.4  christos else
   4159       1.1.1.4  christos 
   4160       1.1.1.4  christos 	cat >conftest.$ac_ext <<_ACEOF
   4161  1.1.1.7.12.2    martin #line 4161 "configure"
   4162       1.1.1.4  christos #include "confdefs.h"
   4163       1.1.1.4  christos 
   4164       1.1.1.4  christos #include <stdlib.h>
   4165       1.1.1.4  christos #include <string.h>
   4166       1.1.1.4  christos #include <sys/types.h>
   4167       1.1.1.4  christos 
   4168       1.1.1.4  christos int
   4169  1.1.1.7.12.1  christos main (void)
   4170       1.1.1.4  christos {
   4171       1.1.1.4  christos 
   4172       1.1.1.4  christos #ifndef _XOPEN_SOURCE
   4173       1.1.1.4  christos make an error
   4174       1.1.1.4  christos #endif
   4175       1.1.1.4  christos   ;
   4176       1.1.1.4  christos   return 0;
   4177       1.1.1.4  christos }
   4178       1.1.1.4  christos _ACEOF
   4179       1.1.1.4  christos rm -f conftest.$ac_objext
   4180  1.1.1.7.12.2    martin if { (eval echo "$as_me:4180: \"$ac_compile\"") >&5
   4181       1.1.1.4  christos   (eval $ac_compile) 2>&5
   4182       1.1.1.4  christos   ac_status=$?
   4183  1.1.1.7.12.2    martin   echo "$as_me:4183: \$? = $ac_status" >&5
   4184       1.1.1.4  christos   (exit $ac_status); } &&
   4185       1.1.1.4  christos          { ac_try='test -s conftest.$ac_objext'
   4186  1.1.1.7.12.2    martin   { (eval echo "$as_me:4186: \"$ac_try\"") >&5
   4187       1.1.1.4  christos   (eval $ac_try) 2>&5
   4188       1.1.1.4  christos   ac_status=$?
   4189  1.1.1.7.12.2    martin   echo "$as_me:4189: \$? = $ac_status" >&5
   4190       1.1.1.4  christos   (exit $ac_status); }; }; then
   4191       1.1.1.4  christos   cf_cv_xopen_source=no
   4192       1.1.1.4  christos else
   4193       1.1.1.4  christos   echo "$as_me: failed program was:" >&5
   4194       1.1.1.4  christos cat conftest.$ac_ext >&5
   4195       1.1.1.4  christos cf_save="$CPPFLAGS"
   4196  1.1.1.7.12.2    martin 
   4197  1.1.1.7.12.2    martin 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   4198  1.1.1.7.12.2    martin 	CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
   4199  1.1.1.7.12.2    martin 
   4200       1.1.1.4  christos 	 cat >conftest.$ac_ext <<_ACEOF
   4201  1.1.1.7.12.2    martin #line 4201 "configure"
   4202       1.1.1.4  christos #include "confdefs.h"
   4203       1.1.1.4  christos 
   4204       1.1.1.4  christos #include <stdlib.h>
   4205       1.1.1.4  christos #include <string.h>
   4206       1.1.1.4  christos #include <sys/types.h>
   4207       1.1.1.4  christos 
   4208       1.1.1.4  christos int
   4209  1.1.1.7.12.1  christos main (void)
   4210       1.1.1.4  christos {
   4211       1.1.1.4  christos 
   4212       1.1.1.4  christos #ifdef _XOPEN_SOURCE
   4213       1.1.1.4  christos make an error
   4214       1.1.1.4  christos #endif
   4215       1.1.1.4  christos   ;
   4216       1.1.1.4  christos   return 0;
   4217       1.1.1.4  christos }
   4218       1.1.1.4  christos _ACEOF
   4219       1.1.1.4  christos rm -f conftest.$ac_objext
   4220  1.1.1.7.12.2    martin if { (eval echo "$as_me:4220: \"$ac_compile\"") >&5
   4221       1.1.1.4  christos   (eval $ac_compile) 2>&5
   4222       1.1.1.4  christos   ac_status=$?
   4223  1.1.1.7.12.2    martin   echo "$as_me:4223: \$? = $ac_status" >&5
   4224       1.1.1.4  christos   (exit $ac_status); } &&
   4225       1.1.1.4  christos          { ac_try='test -s conftest.$ac_objext'
   4226  1.1.1.7.12.2    martin   { (eval echo "$as_me:4226: \"$ac_try\"") >&5
   4227       1.1.1.4  christos   (eval $ac_try) 2>&5
   4228       1.1.1.4  christos   ac_status=$?
   4229  1.1.1.7.12.2    martin   echo "$as_me:4229: \$? = $ac_status" >&5
   4230       1.1.1.4  christos   (exit $ac_status); }; }; then
   4231       1.1.1.4  christos   cf_cv_xopen_source=no
   4232       1.1.1.4  christos else
   4233       1.1.1.4  christos   echo "$as_me: failed program was:" >&5
   4234       1.1.1.4  christos cat conftest.$ac_ext >&5
   4235       1.1.1.4  christos cf_cv_xopen_source=$cf_XOPEN_SOURCE
   4236       1.1.1.4  christos fi
   4237       1.1.1.4  christos rm -f conftest.$ac_objext conftest.$ac_ext
   4238       1.1.1.4  christos 	CPPFLAGS="$cf_save"
   4239       1.1.1.4  christos 
   4240       1.1.1.4  christos fi
   4241       1.1.1.4  christos rm -f conftest.$ac_objext conftest.$ac_ext
   4242       1.1.1.4  christos 
   4243       1.1.1.4  christos fi
   4244  1.1.1.7.12.2    martin echo "$as_me:4244: result: $cf_cv_xopen_source" >&5
   4245       1.1.1.4  christos echo "${ECHO_T}$cf_cv_xopen_source" >&6
   4246       1.1.1.4  christos 
   4247       1.1.1.4  christos if test "$cf_cv_xopen_source" != no ; then
   4248       1.1.1.4  christos 
   4249       1.1.1.4  christos CFLAGS=`echo "$CFLAGS" | \
   4250       1.1.1.4  christos 	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   4251       1.1.1.4  christos 		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
   4252       1.1.1.4  christos 
   4253       1.1.1.4  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   4254       1.1.1.4  christos 	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   4255       1.1.1.4  christos 		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
   4256       1.1.1.4  christos 
   4257       1.1.1.4  christos 	cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
   4258       1.1.1.4  christos 
   4259       1.1.1.4  christos cf_fix_cppflags=no
   4260       1.1.1.4  christos cf_new_cflags=
   4261       1.1.1.4  christos cf_new_cppflags=
   4262       1.1.1.4  christos cf_new_extra_cppflags=
   4263       1.1.1.4  christos 
   4264       1.1.1.4  christos for cf_add_cflags in $cf_temp_xopen_source
   4265       1.1.1.4  christos do
   4266       1.1.1.4  christos case $cf_fix_cppflags in
   4267       1.1.1.6  christos (no)
   4268       1.1.1.6  christos 	case $cf_add_cflags in
   4269       1.1.1.6  christos 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   4270       1.1.1.4  christos 		case $cf_add_cflags in
   4271       1.1.1.6  christos 		(-D*)
   4272       1.1.1.4  christos 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   4273       1.1.1.4  christos 
   4274       1.1.1.5  christos 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   4275       1.1.1.4  christos 				&& test -z "${cf_tst_cflags}" \
   4276       1.1.1.4  christos 				&& cf_fix_cppflags=yes
   4277       1.1.1.4  christos 
   4278       1.1.1.4  christos 			if test $cf_fix_cppflags = yes ; then
   4279  1.1.1.7.12.1  christos 
   4280  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   4281  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   4282  1.1.1.7.12.1  christos 
   4283       1.1.1.4  christos 				continue
   4284       1.1.1.4  christos 			elif test "${cf_tst_cflags}" = "\"'" ; then
   4285  1.1.1.7.12.1  christos 
   4286  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   4287  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   4288  1.1.1.7.12.1  christos 
   4289       1.1.1.4  christos 				continue
   4290       1.1.1.4  christos 			fi
   4291       1.1.1.4  christos 			;;
   4292       1.1.1.4  christos 		esac
   4293       1.1.1.4  christos 		case "$CPPFLAGS" in
   4294       1.1.1.6  christos 		(*$cf_add_cflags)
   4295       1.1.1.4  christos 			;;
   4296       1.1.1.6  christos 		(*)
   4297       1.1.1.6  christos 			case $cf_add_cflags in
   4298       1.1.1.6  christos 			(-D*)
   4299       1.1.1.4  christos 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   4300       1.1.1.4  christos 
   4301       1.1.1.4  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   4302       1.1.1.4  christos 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   4303       1.1.1.4  christos 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   4304       1.1.1.4  christos 
   4305       1.1.1.4  christos 				;;
   4306       1.1.1.4  christos 			esac
   4307  1.1.1.7.12.1  christos 
   4308  1.1.1.7.12.1  christos 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   4309  1.1.1.7.12.1  christos 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   4310  1.1.1.7.12.1  christos 
   4311       1.1.1.4  christos 			;;
   4312       1.1.1.4  christos 		esac
   4313       1.1.1.4  christos 		;;
   4314       1.1.1.6  christos 	(*)
   4315  1.1.1.7.12.1  christos 
   4316  1.1.1.7.12.1  christos 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   4317  1.1.1.7.12.1  christos 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   4318  1.1.1.7.12.1  christos 
   4319       1.1.1.4  christos 		;;
   4320       1.1.1.4  christos 	esac
   4321       1.1.1.4  christos 	;;
   4322       1.1.1.6  christos (yes)
   4323  1.1.1.7.12.1  christos 
   4324  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   4325  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   4326       1.1.1.4  christos 
   4327       1.1.1.4  christos 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   4328       1.1.1.4  christos 
   4329       1.1.1.5  christos 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   4330       1.1.1.4  christos 		&& test -z "${cf_tst_cflags}" \
   4331       1.1.1.4  christos 		&& cf_fix_cppflags=no
   4332       1.1.1.4  christos 	;;
   4333       1.1.1.4  christos esac
   4334       1.1.1.4  christos done
   4335       1.1.1.4  christos 
   4336       1.1.1.4  christos if test -n "$cf_new_cflags" ; then
   4337       1.1.1.4  christos 
   4338  1.1.1.7.12.1  christos 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   4339  1.1.1.7.12.1  christos 	CFLAGS="${CFLAGS}$cf_new_cflags"
   4340  1.1.1.7.12.1  christos 
   4341       1.1.1.4  christos fi
   4342       1.1.1.4  christos 
   4343       1.1.1.4  christos if test -n "$cf_new_cppflags" ; then
   4344       1.1.1.4  christos 
   4345  1.1.1.7.12.1  christos 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   4346  1.1.1.7.12.1  christos 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   4347  1.1.1.7.12.1  christos 
   4348       1.1.1.4  christos fi
   4349       1.1.1.4  christos 
   4350       1.1.1.4  christos if test -n "$cf_new_extra_cppflags" ; then
   4351       1.1.1.4  christos 
   4352  1.1.1.7.12.1  christos 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   4353  1.1.1.7.12.1  christos 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   4354  1.1.1.7.12.1  christos 
   4355       1.1.1.4  christos fi
   4356       1.1.1.4  christos 
   4357       1.1.1.4  christos fi
   4358       1.1.1.4  christos 
   4359       1.1.1.4  christos 	fi
   4360       1.1.1.4  christos fi
   4361  1.1.1.7.12.2    martin fi # cf_cv_posix_visible
   4362       1.1.1.4  christos 
   4363       1.1.1.3  christos ac_ext=c
   4364       1.1.1.3  christos ac_cpp='$CPP $CPPFLAGS'
   4365       1.1.1.3  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4366       1.1.1.3  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4367       1.1.1.3  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4368       1.1.1.3  christos ac_main_return=return
   4369  1.1.1.7.12.2    martin echo "$as_me:4369: checking how to run the C preprocessor" >&5
   4370       1.1.1.3  christos echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
   4371       1.1.1.3  christos # On Suns, sometimes $CPP names a directory.
   4372       1.1.1.3  christos if test -n "$CPP" && test -d "$CPP"; then
   4373       1.1.1.3  christos   CPP=
   4374           1.1  christos fi
   4375       1.1.1.3  christos if test -z "$CPP"; then
   4376       1.1.1.3  christos   if test "${ac_cv_prog_CPP+set}" = set; then
   4377       1.1.1.3  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4378           1.1  christos else
   4379       1.1.1.3  christos       # Double quotes because CPP needs to be expanded
   4380       1.1.1.3  christos     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   4381       1.1.1.3  christos     do
   4382       1.1.1.3  christos       ac_preproc_ok=false
   4383       1.1.1.3  christos for ac_c_preproc_warn_flag in '' yes
   4384       1.1.1.3  christos do
   4385       1.1.1.3  christos   # Use a header file that comes with gcc, so configuring glibc
   4386       1.1.1.3  christos   # with a fresh cross-compiler works.
   4387       1.1.1.3  christos   # On the NeXT, cc -E runs the code through the compiler's parser,
   4388       1.1.1.3  christos   # not just through cpp. "Syntax error" is here to catch this case.
   4389       1.1.1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   4390  1.1.1.7.12.2    martin #line 4390 "configure"
   4391           1.1  christos #include "confdefs.h"
   4392       1.1.1.3  christos #include <assert.h>
   4393       1.1.1.3  christos                      Syntax error
   4394       1.1.1.3  christos _ACEOF
   4395  1.1.1.7.12.2    martin if { (eval echo "$as_me:4395: \"$ac_cpp conftest.$ac_ext\"") >&5
   4396       1.1.1.3  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   4397           1.1  christos   ac_status=$?
   4398       1.1.1.3  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   4399       1.1.1.3  christos   rm -f conftest.er1
   4400       1.1.1.3  christos   cat conftest.err >&5
   4401  1.1.1.7.12.2    martin   echo "$as_me:4401: \$? = $ac_status" >&5
   4402       1.1.1.3  christos   (exit $ac_status); } >/dev/null; then
   4403       1.1.1.3  christos   if test -s conftest.err; then
   4404       1.1.1.3  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   4405       1.1.1.3  christos   else
   4406       1.1.1.3  christos     ac_cpp_err=
   4407       1.1.1.3  christos   fi
   4408           1.1  christos else
   4409       1.1.1.3  christos   ac_cpp_err=yes
   4410           1.1  christos fi
   4411       1.1.1.3  christos if test -z "$ac_cpp_err"; then
   4412       1.1.1.3  christos   :
   4413       1.1.1.3  christos else
   4414       1.1.1.3  christos   echo "$as_me: failed program was:" >&5
   4415       1.1.1.3  christos   cat conftest.$ac_ext >&5
   4416       1.1.1.3  christos   # Broken: fails on valid input.
   4417       1.1.1.3  christos continue
   4418           1.1  christos fi
   4419       1.1.1.3  christos rm -f conftest.err conftest.$ac_ext
   4420           1.1  christos 
   4421       1.1.1.3  christos   # OK, works on sane cases.  Now check whether non-existent headers
   4422       1.1.1.3  christos   # can be detected and how.
   4423       1.1.1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   4424  1.1.1.7.12.2    martin #line 4424 "configure"
   4425       1.1.1.3  christos #include "confdefs.h"
   4426       1.1.1.3  christos #include <ac_nonexistent.h>
   4427       1.1.1.3  christos _ACEOF
   4428  1.1.1.7.12.2    martin if { (eval echo "$as_me:4428: \"$ac_cpp conftest.$ac_ext\"") >&5
   4429       1.1.1.3  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   4430       1.1.1.3  christos   ac_status=$?
   4431       1.1.1.3  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   4432       1.1.1.3  christos   rm -f conftest.er1
   4433       1.1.1.3  christos   cat conftest.err >&5
   4434  1.1.1.7.12.2    martin   echo "$as_me:4434: \$? = $ac_status" >&5
   4435       1.1.1.3  christos   (exit $ac_status); } >/dev/null; then
   4436       1.1.1.3  christos   if test -s conftest.err; then
   4437       1.1.1.3  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   4438       1.1.1.3  christos   else
   4439       1.1.1.3  christos     ac_cpp_err=
   4440       1.1.1.3  christos   fi
   4441       1.1.1.3  christos else
   4442       1.1.1.3  christos   ac_cpp_err=yes
   4443       1.1.1.3  christos fi
   4444       1.1.1.3  christos if test -z "$ac_cpp_err"; then
   4445       1.1.1.3  christos   # Broken: success on invalid input.
   4446       1.1.1.3  christos continue
   4447       1.1.1.3  christos else
   4448       1.1.1.3  christos   echo "$as_me: failed program was:" >&5
   4449       1.1.1.3  christos   cat conftest.$ac_ext >&5
   4450       1.1.1.3  christos   # Passes both tests.
   4451       1.1.1.3  christos ac_preproc_ok=:
   4452       1.1.1.3  christos break
   4453       1.1.1.3  christos fi
   4454       1.1.1.3  christos rm -f conftest.err conftest.$ac_ext
   4455       1.1.1.3  christos 
   4456       1.1.1.3  christos done
   4457       1.1.1.3  christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4458       1.1.1.3  christos rm -f conftest.err conftest.$ac_ext
   4459       1.1.1.3  christos if $ac_preproc_ok; then
   4460       1.1.1.3  christos   break
   4461       1.1.1.3  christos fi
   4462       1.1.1.3  christos 
   4463       1.1.1.3  christos     done
   4464       1.1.1.3  christos     ac_cv_prog_CPP=$CPP
   4465       1.1.1.3  christos 
   4466       1.1.1.3  christos fi
   4467       1.1.1.3  christos   CPP=$ac_cv_prog_CPP
   4468       1.1.1.3  christos else
   4469       1.1.1.3  christos   ac_cv_prog_CPP=$CPP
   4470       1.1.1.3  christos fi
   4471  1.1.1.7.12.2    martin echo "$as_me:4471: result: $CPP" >&5
   4472       1.1.1.3  christos echo "${ECHO_T}$CPP" >&6
   4473       1.1.1.3  christos ac_preproc_ok=false
   4474       1.1.1.3  christos for ac_c_preproc_warn_flag in '' yes
   4475       1.1.1.3  christos do
   4476       1.1.1.3  christos   # Use a header file that comes with gcc, so configuring glibc
   4477       1.1.1.3  christos   # with a fresh cross-compiler works.
   4478       1.1.1.3  christos   # On the NeXT, cc -E runs the code through the compiler's parser,
   4479       1.1.1.3  christos   # not just through cpp. "Syntax error" is here to catch this case.
   4480       1.1.1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   4481  1.1.1.7.12.2    martin #line 4481 "configure"
   4482       1.1.1.3  christos #include "confdefs.h"
   4483       1.1.1.3  christos #include <assert.h>
   4484       1.1.1.3  christos                      Syntax error
   4485       1.1.1.3  christos _ACEOF
   4486  1.1.1.7.12.2    martin if { (eval echo "$as_me:4486: \"$ac_cpp conftest.$ac_ext\"") >&5
   4487       1.1.1.3  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   4488       1.1.1.3  christos   ac_status=$?
   4489       1.1.1.3  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   4490       1.1.1.3  christos   rm -f conftest.er1
   4491       1.1.1.3  christos   cat conftest.err >&5
   4492  1.1.1.7.12.2    martin   echo "$as_me:4492: \$? = $ac_status" >&5
   4493       1.1.1.3  christos   (exit $ac_status); } >/dev/null; then
   4494       1.1.1.3  christos   if test -s conftest.err; then
   4495       1.1.1.3  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   4496       1.1.1.3  christos   else
   4497       1.1.1.3  christos     ac_cpp_err=
   4498       1.1.1.3  christos   fi
   4499       1.1.1.3  christos else
   4500       1.1.1.3  christos   ac_cpp_err=yes
   4501       1.1.1.3  christos fi
   4502       1.1.1.3  christos if test -z "$ac_cpp_err"; then
   4503       1.1.1.3  christos   :
   4504       1.1.1.3  christos else
   4505       1.1.1.3  christos   echo "$as_me: failed program was:" >&5
   4506       1.1.1.3  christos   cat conftest.$ac_ext >&5
   4507       1.1.1.3  christos   # Broken: fails on valid input.
   4508       1.1.1.3  christos continue
   4509       1.1.1.3  christos fi
   4510       1.1.1.3  christos rm -f conftest.err conftest.$ac_ext
   4511       1.1.1.3  christos 
   4512       1.1.1.3  christos   # OK, works on sane cases.  Now check whether non-existent headers
   4513       1.1.1.3  christos   # can be detected and how.
   4514       1.1.1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   4515  1.1.1.7.12.2    martin #line 4515 "configure"
   4516       1.1.1.3  christos #include "confdefs.h"
   4517       1.1.1.3  christos #include <ac_nonexistent.h>
   4518       1.1.1.3  christos _ACEOF
   4519  1.1.1.7.12.2    martin if { (eval echo "$as_me:4519: \"$ac_cpp conftest.$ac_ext\"") >&5
   4520       1.1.1.3  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   4521       1.1.1.3  christos   ac_status=$?
   4522       1.1.1.3  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   4523       1.1.1.3  christos   rm -f conftest.er1
   4524       1.1.1.3  christos   cat conftest.err >&5
   4525  1.1.1.7.12.2    martin   echo "$as_me:4525: \$? = $ac_status" >&5
   4526       1.1.1.3  christos   (exit $ac_status); } >/dev/null; then
   4527       1.1.1.3  christos   if test -s conftest.err; then
   4528       1.1.1.3  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   4529       1.1.1.3  christos   else
   4530       1.1.1.3  christos     ac_cpp_err=
   4531       1.1.1.3  christos   fi
   4532       1.1.1.3  christos else
   4533       1.1.1.3  christos   ac_cpp_err=yes
   4534       1.1.1.3  christos fi
   4535       1.1.1.3  christos if test -z "$ac_cpp_err"; then
   4536       1.1.1.3  christos   # Broken: success on invalid input.
   4537       1.1.1.3  christos continue
   4538       1.1.1.3  christos else
   4539       1.1.1.3  christos   echo "$as_me: failed program was:" >&5
   4540       1.1.1.3  christos   cat conftest.$ac_ext >&5
   4541       1.1.1.3  christos   # Passes both tests.
   4542       1.1.1.3  christos ac_preproc_ok=:
   4543       1.1.1.3  christos break
   4544       1.1.1.3  christos fi
   4545       1.1.1.3  christos rm -f conftest.err conftest.$ac_ext
   4546       1.1.1.3  christos 
   4547       1.1.1.3  christos done
   4548       1.1.1.3  christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4549       1.1.1.3  christos rm -f conftest.err conftest.$ac_ext
   4550       1.1.1.3  christos if $ac_preproc_ok; then
   4551       1.1.1.3  christos   :
   4552       1.1.1.3  christos else
   4553  1.1.1.7.12.2    martin   { { echo "$as_me:4553: error: C preprocessor \"$CPP\" fails sanity check" >&5
   4554       1.1.1.3  christos echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
   4555       1.1.1.3  christos    { (exit 1); exit 1; }; }
   4556       1.1.1.3  christos fi
   4557       1.1.1.3  christos 
   4558       1.1.1.3  christos ac_ext=c
   4559       1.1.1.3  christos ac_cpp='$CPP $CPPFLAGS'
   4560       1.1.1.3  christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4561       1.1.1.3  christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4562       1.1.1.3  christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4563       1.1.1.3  christos ac_main_return=return
   4564       1.1.1.3  christos 
   4565       1.1.1.3  christos for ac_header in fcntl.h
   4566       1.1.1.3  christos do
   4567       1.1.1.3  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4568  1.1.1.7.12.2    martin echo "$as_me:4568: checking for $ac_header" >&5
   4569       1.1.1.7  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   4570       1.1.1.7  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   4571       1.1.1.7  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4572       1.1.1.7  christos else
   4573       1.1.1.7  christos   cat >conftest.$ac_ext <<_ACEOF
   4574  1.1.1.7.12.2    martin #line 4574 "configure"
   4575       1.1.1.7  christos #include "confdefs.h"
   4576       1.1.1.7  christos #include <$ac_header>
   4577       1.1.1.7  christos _ACEOF
   4578  1.1.1.7.12.2    martin if { (eval echo "$as_me:4578: \"$ac_cpp conftest.$ac_ext\"") >&5
   4579       1.1.1.7  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   4580       1.1.1.7  christos   ac_status=$?
   4581       1.1.1.7  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   4582       1.1.1.7  christos   rm -f conftest.er1
   4583       1.1.1.7  christos   cat conftest.err >&5
   4584  1.1.1.7.12.2    martin   echo "$as_me:4584: \$? = $ac_status" >&5
   4585       1.1.1.7  christos   (exit $ac_status); } >/dev/null; then
   4586       1.1.1.7  christos   if test -s conftest.err; then
   4587       1.1.1.7  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   4588       1.1.1.7  christos   else
   4589       1.1.1.7  christos     ac_cpp_err=
   4590       1.1.1.7  christos   fi
   4591       1.1.1.7  christos else
   4592       1.1.1.7  christos   ac_cpp_err=yes
   4593       1.1.1.7  christos fi
   4594       1.1.1.7  christos if test -z "$ac_cpp_err"; then
   4595       1.1.1.7  christos   eval "$as_ac_Header=yes"
   4596       1.1.1.7  christos else
   4597       1.1.1.7  christos   echo "$as_me: failed program was:" >&5
   4598       1.1.1.7  christos   cat conftest.$ac_ext >&5
   4599       1.1.1.7  christos   eval "$as_ac_Header=no"
   4600       1.1.1.7  christos fi
   4601       1.1.1.7  christos rm -f conftest.err conftest.$ac_ext
   4602       1.1.1.7  christos fi
   4603  1.1.1.7.12.2    martin echo "$as_me:4603: result: `eval echo '${'$as_ac_Header'}'`" >&5
   4604       1.1.1.7  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   4605       1.1.1.7  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   4606       1.1.1.7  christos   cat >>confdefs.h <<EOF
   4607       1.1.1.7  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4608       1.1.1.7  christos EOF
   4609       1.1.1.7  christos 
   4610       1.1.1.7  christos fi
   4611       1.1.1.7  christos done
   4612       1.1.1.7  christos 
   4613       1.1.1.7  christos for ac_header in \
   4614       1.1.1.7  christos unistd.h \
   4615       1.1.1.7  christos 
   4616       1.1.1.7  christos do
   4617       1.1.1.7  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4618  1.1.1.7.12.2    martin echo "$as_me:4618: checking for $ac_header" >&5
   4619       1.1.1.3  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   4620       1.1.1.3  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   4621       1.1.1.3  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4622       1.1.1.3  christos else
   4623       1.1.1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   4624  1.1.1.7.12.2    martin #line 4624 "configure"
   4625       1.1.1.3  christos #include "confdefs.h"
   4626       1.1.1.3  christos #include <$ac_header>
   4627       1.1.1.3  christos _ACEOF
   4628  1.1.1.7.12.2    martin if { (eval echo "$as_me:4628: \"$ac_cpp conftest.$ac_ext\"") >&5
   4629       1.1.1.3  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   4630       1.1.1.3  christos   ac_status=$?
   4631       1.1.1.3  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   4632       1.1.1.3  christos   rm -f conftest.er1
   4633       1.1.1.3  christos   cat conftest.err >&5
   4634  1.1.1.7.12.2    martin   echo "$as_me:4634: \$? = $ac_status" >&5
   4635       1.1.1.3  christos   (exit $ac_status); } >/dev/null; then
   4636       1.1.1.3  christos   if test -s conftest.err; then
   4637       1.1.1.3  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   4638       1.1.1.3  christos   else
   4639       1.1.1.3  christos     ac_cpp_err=
   4640       1.1.1.3  christos   fi
   4641       1.1.1.3  christos else
   4642       1.1.1.3  christos   ac_cpp_err=yes
   4643       1.1.1.3  christos fi
   4644       1.1.1.3  christos if test -z "$ac_cpp_err"; then
   4645       1.1.1.3  christos   eval "$as_ac_Header=yes"
   4646       1.1.1.3  christos else
   4647       1.1.1.3  christos   echo "$as_me: failed program was:" >&5
   4648       1.1.1.3  christos   cat conftest.$ac_ext >&5
   4649       1.1.1.3  christos   eval "$as_ac_Header=no"
   4650       1.1.1.3  christos fi
   4651       1.1.1.3  christos rm -f conftest.err conftest.$ac_ext
   4652       1.1.1.3  christos fi
   4653  1.1.1.7.12.2    martin echo "$as_me:4653: result: `eval echo '${'$as_ac_Header'}'`" >&5
   4654       1.1.1.3  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   4655       1.1.1.3  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   4656       1.1.1.3  christos   cat >>confdefs.h <<EOF
   4657       1.1.1.3  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4658       1.1.1.3  christos EOF
   4659       1.1.1.3  christos 
   4660       1.1.1.3  christos fi
   4661       1.1.1.3  christos done
   4662       1.1.1.3  christos 
   4663  1.1.1.7.12.2    martin echo "$as_me:4663: checking for working mkstemp" >&5
   4664       1.1.1.4  christos echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
   4665       1.1.1.4  christos if test "${cf_cv_func_mkstemp+set}" = set; then
   4666       1.1.1.3  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4667       1.1.1.3  christos else
   4668       1.1.1.4  christos 
   4669       1.1.1.4  christos rm -rf conftest*
   4670       1.1.1.4  christos if test "$cross_compiling" = yes; then
   4671       1.1.1.4  christos   cf_cv_func_mkstemp=maybe
   4672       1.1.1.4  christos else
   4673       1.1.1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   4674  1.1.1.7.12.2    martin #line 4674 "configure"
   4675       1.1.1.3  christos #include "confdefs.h"
   4676       1.1.1.3  christos 
   4677       1.1.1.4  christos #include <sys/types.h>
   4678       1.1.1.7  christos #ifdef HAVE_UNISTD_H
   4679       1.1.1.7  christos #include <unistd.h>
   4680       1.1.1.7  christos #endif
   4681       1.1.1.4  christos #include <stdlib.h>
   4682       1.1.1.4  christos #include <stdio.h>
   4683       1.1.1.4  christos #include <string.h>
   4684       1.1.1.4  christos #include <sys/stat.h>
   4685       1.1.1.7  christos int main(void)
   4686       1.1.1.3  christos {
   4687       1.1.1.4  christos 	char *tmpl = "conftestXXXXXX";
   4688       1.1.1.4  christos 	char name[2][80];
   4689       1.1.1.4  christos 	int n;
   4690       1.1.1.4  christos 	int result = 0;
   4691       1.1.1.4  christos 	int fd;
   4692       1.1.1.4  christos 	struct stat sb;
   4693       1.1.1.3  christos 
   4694       1.1.1.4  christos 	umask(077);
   4695       1.1.1.4  christos 	for (n = 0; n < 2; ++n) {
   4696       1.1.1.4  christos 		strcpy(name[n], tmpl);
   4697       1.1.1.4  christos 		if ((fd = mkstemp(name[n])) >= 0) {
   4698       1.1.1.4  christos 			if (!strcmp(name[n], tmpl)
   4699       1.1.1.4  christos 			 || stat(name[n], &sb) != 0
   4700       1.1.1.4  christos 			 || (sb.st_mode & S_IFMT) != S_IFREG
   4701       1.1.1.4  christos 			 || (sb.st_mode & 077) != 0) {
   4702       1.1.1.4  christos 				result = 1;
   4703       1.1.1.4  christos 			}
   4704       1.1.1.4  christos 			close(fd);
   4705       1.1.1.4  christos 		}
   4706       1.1.1.4  christos 	}
   4707       1.1.1.4  christos 	if (result == 0
   4708       1.1.1.4  christos 	 && !strcmp(name[0], name[1]))
   4709       1.1.1.4  christos 		result = 1;
   4710       1.1.1.4  christos 	${cf_cv_main_return:-return}(result);
   4711       1.1.1.3  christos }
   4712       1.1.1.4  christos 
   4713       1.1.1.3  christos _ACEOF
   4714       1.1.1.4  christos rm -f conftest$ac_exeext
   4715  1.1.1.7.12.2    martin if { (eval echo "$as_me:4715: \"$ac_link\"") >&5
   4716       1.1.1.3  christos   (eval $ac_link) 2>&5
   4717       1.1.1.3  christos   ac_status=$?
   4718  1.1.1.7.12.2    martin   echo "$as_me:4718: \$? = $ac_status" >&5
   4719       1.1.1.4  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   4720  1.1.1.7.12.2    martin   { (eval echo "$as_me:4720: \"$ac_try\"") >&5
   4721       1.1.1.3  christos   (eval $ac_try) 2>&5
   4722       1.1.1.3  christos   ac_status=$?
   4723  1.1.1.7.12.2    martin   echo "$as_me:4723: \$? = $ac_status" >&5
   4724       1.1.1.3  christos   (exit $ac_status); }; }; then
   4725       1.1.1.4  christos   cf_cv_func_mkstemp=yes
   4726       1.1.1.4  christos 
   4727       1.1.1.3  christos else
   4728       1.1.1.4  christos   echo "$as_me: program exited with status $ac_status" >&5
   4729       1.1.1.4  christos echo "$as_me: failed program was:" >&5
   4730       1.1.1.3  christos cat conftest.$ac_ext >&5
   4731       1.1.1.4  christos cf_cv_func_mkstemp=no
   4732       1.1.1.4  christos 
   4733       1.1.1.3  christos fi
   4734       1.1.1.4  christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   4735       1.1.1.3  christos fi
   4736       1.1.1.3  christos 
   4737       1.1.1.3  christos fi
   4738  1.1.1.7.12.2    martin echo "$as_me:4738: result: $cf_cv_func_mkstemp" >&5
   4739       1.1.1.4  christos echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
   4740       1.1.1.4  christos if test "x$cf_cv_func_mkstemp" = xmaybe ; then
   4741  1.1.1.7.12.2    martin 	echo "$as_me:4741: checking for mkstemp" >&5
   4742       1.1.1.3  christos echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
   4743       1.1.1.3  christos if test "${ac_cv_func_mkstemp+set}" = set; then
   4744       1.1.1.3  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4745       1.1.1.3  christos else
   4746       1.1.1.3  christos   cat >conftest.$ac_ext <<_ACEOF
   4747  1.1.1.7.12.2    martin #line 4747 "configure"
   4748       1.1.1.3  christos #include "confdefs.h"
   4749  1.1.1.7.12.2    martin #define mkstemp autoconf_temporary
   4750  1.1.1.7.12.2    martin #include <limits.h>	/* least-intrusive standard header which defines gcc2 __stub macros */
   4751  1.1.1.7.12.2    martin #undef mkstemp
   4752  1.1.1.7.12.2    martin 
   4753       1.1.1.3  christos #ifdef __cplusplus
   4754       1.1.1.3  christos extern "C"
   4755       1.1.1.3  christos #endif
   4756  1.1.1.7.12.2    martin 
   4757       1.1.1.3  christos /* We use char because int might match the return type of a gcc2
   4758       1.1.1.3  christos    builtin and then its argument prototype would still apply.  */
   4759  1.1.1.7.12.2    martin char mkstemp (void);
   4760       1.1.1.3  christos 
   4761       1.1.1.3  christos int
   4762  1.1.1.7.12.1  christos main (void)
   4763       1.1.1.3  christos {
   4764  1.1.1.7.12.2    martin 
   4765  1.1.1.7.12.2    martin /* The GNU C library defines stubs for functions which it implements
   4766       1.1.1.3  christos     to always fail with ENOSYS.  Some functions are actually named
   4767       1.1.1.3  christos     something starting with __ and the normal name is an alias.  */
   4768       1.1.1.3  christos #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
   4769  1.1.1.7.12.2    martin #error found stub for mkstemp
   4770       1.1.1.3  christos #endif
   4771       1.1.1.3  christos 
   4772  1.1.1.7.12.2    martin 	return mkstemp ();
   4773       1.1.1.3  christos   ;
   4774       1.1.1.3  christos   return 0;
   4775       1.1.1.3  christos }
   4776       1.1.1.3  christos _ACEOF
   4777       1.1.1.3  christos rm -f conftest.$ac_objext conftest$ac_exeext
   4778  1.1.1.7.12.2    martin if { (eval echo "$as_me:4778: \"$ac_link\"") >&5
   4779       1.1.1.3  christos   (eval $ac_link) 2>&5
   4780       1.1.1.3  christos   ac_status=$?
   4781  1.1.1.7.12.2    martin   echo "$as_me:4781: \$? = $ac_status" >&5
   4782       1.1.1.3  christos   (exit $ac_status); } &&
   4783       1.1.1.3  christos          { ac_try='test -s conftest$ac_exeext'
   4784  1.1.1.7.12.2    martin   { (eval echo "$as_me:4784: \"$ac_try\"") >&5
   4785       1.1.1.3  christos   (eval $ac_try) 2>&5
   4786       1.1.1.3  christos   ac_status=$?
   4787  1.1.1.7.12.2    martin   echo "$as_me:4787: \$? = $ac_status" >&5
   4788       1.1.1.3  christos   (exit $ac_status); }; }; then
   4789       1.1.1.3  christos   ac_cv_func_mkstemp=yes
   4790       1.1.1.3  christos else
   4791       1.1.1.3  christos   echo "$as_me: failed program was:" >&5
   4792       1.1.1.3  christos cat conftest.$ac_ext >&5
   4793       1.1.1.3  christos ac_cv_func_mkstemp=no
   4794       1.1.1.3  christos fi
   4795       1.1.1.3  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   4796       1.1.1.3  christos fi
   4797  1.1.1.7.12.2    martin echo "$as_me:4797: result: $ac_cv_func_mkstemp" >&5
   4798       1.1.1.3  christos echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
   4799       1.1.1.3  christos 
   4800       1.1.1.3  christos fi
   4801       1.1.1.3  christos if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
   4802       1.1.1.4  christos 
   4803       1.1.1.4  christos cat >>confdefs.h <<\EOF
   4804       1.1.1.3  christos #define HAVE_MKSTEMP 1
   4805       1.1.1.3  christos EOF
   4806       1.1.1.3  christos 
   4807       1.1.1.3  christos fi
   4808       1.1.1.3  christos 
   4809       1.1.1.5  christos for ac_func in vsnprintf
   4810       1.1.1.5  christos do
   4811       1.1.1.5  christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   4812  1.1.1.7.12.2    martin echo "$as_me:4812: checking for $ac_func" >&5
   4813       1.1.1.5  christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   4814       1.1.1.5  christos if eval "test \"\${$as_ac_var+set}\" = set"; then
   4815       1.1.1.5  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   4816       1.1.1.5  christos else
   4817       1.1.1.5  christos   cat >conftest.$ac_ext <<_ACEOF
   4818  1.1.1.7.12.2    martin #line 4818 "configure"
   4819       1.1.1.5  christos #include "confdefs.h"
   4820  1.1.1.7.12.2    martin #define $ac_func autoconf_temporary
   4821  1.1.1.7.12.2    martin #include <limits.h>	/* least-intrusive standard header which defines gcc2 __stub macros */
   4822  1.1.1.7.12.2    martin #undef $ac_func
   4823  1.1.1.7.12.2    martin 
   4824       1.1.1.5  christos #ifdef __cplusplus
   4825       1.1.1.5  christos extern "C"
   4826       1.1.1.5  christos #endif
   4827  1.1.1.7.12.2    martin 
   4828       1.1.1.5  christos /* We use char because int might match the return type of a gcc2
   4829       1.1.1.5  christos    builtin and then its argument prototype would still apply.  */
   4830  1.1.1.7.12.2    martin char $ac_func (void);
   4831       1.1.1.5  christos 
   4832       1.1.1.5  christos int
   4833  1.1.1.7.12.1  christos main (void)
   4834       1.1.1.5  christos {
   4835  1.1.1.7.12.2    martin 
   4836  1.1.1.7.12.2    martin /* The GNU C library defines stubs for functions which it implements
   4837       1.1.1.5  christos     to always fail with ENOSYS.  Some functions are actually named
   4838       1.1.1.5  christos     something starting with __ and the normal name is an alias.  */
   4839       1.1.1.5  christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   4840  1.1.1.7.12.2    martin #error found stub for $ac_func
   4841       1.1.1.5  christos #endif
   4842       1.1.1.5  christos 
   4843  1.1.1.7.12.2    martin 	return $ac_func ();
   4844       1.1.1.5  christos   ;
   4845       1.1.1.5  christos   return 0;
   4846       1.1.1.5  christos }
   4847       1.1.1.5  christos _ACEOF
   4848       1.1.1.5  christos rm -f conftest.$ac_objext conftest$ac_exeext
   4849  1.1.1.7.12.2    martin if { (eval echo "$as_me:4849: \"$ac_link\"") >&5
   4850       1.1.1.5  christos   (eval $ac_link) 2>&5
   4851       1.1.1.5  christos   ac_status=$?
   4852  1.1.1.7.12.2    martin   echo "$as_me:4852: \$? = $ac_status" >&5
   4853       1.1.1.5  christos   (exit $ac_status); } &&
   4854       1.1.1.5  christos          { ac_try='test -s conftest$ac_exeext'
   4855  1.1.1.7.12.2    martin   { (eval echo "$as_me:4855: \"$ac_try\"") >&5
   4856       1.1.1.5  christos   (eval $ac_try) 2>&5
   4857       1.1.1.5  christos   ac_status=$?
   4858  1.1.1.7.12.2    martin   echo "$as_me:4858: \$? = $ac_status" >&5
   4859       1.1.1.5  christos   (exit $ac_status); }; }; then
   4860       1.1.1.5  christos   eval "$as_ac_var=yes"
   4861       1.1.1.5  christos else
   4862       1.1.1.5  christos   echo "$as_me: failed program was:" >&5
   4863       1.1.1.5  christos cat conftest.$ac_ext >&5
   4864       1.1.1.5  christos eval "$as_ac_var=no"
   4865       1.1.1.5  christos fi
   4866       1.1.1.5  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   4867       1.1.1.5  christos fi
   4868  1.1.1.7.12.2    martin echo "$as_me:4868: result: `eval echo '${'$as_ac_var'}'`" >&5
   4869       1.1.1.5  christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   4870       1.1.1.5  christos if test `eval echo '${'$as_ac_var'}'` = yes; then
   4871       1.1.1.5  christos   cat >>confdefs.h <<EOF
   4872       1.1.1.5  christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   4873       1.1.1.5  christos EOF
   4874       1.1.1.5  christos 
   4875       1.1.1.5  christos fi
   4876       1.1.1.5  christos done
   4877       1.1.1.5  christos 
   4878  1.1.1.7.12.2    martin echo "$as_me:4878: checking for maximum table size" >&5
   4879       1.1.1.5  christos echo $ECHO_N "checking for maximum table size... $ECHO_C" >&6
   4880       1.1.1.5  christos 
   4881       1.1.1.5  christos # Check whether --with-max-table-size or --without-max-table-size was given.
   4882       1.1.1.5  christos if test "${with_max_table_size+set}" = set; then
   4883       1.1.1.5  christos   withval="$with_max_table_size"
   4884       1.1.1.5  christos 
   4885       1.1.1.5  christos fi;
   4886       1.1.1.5  christos if test -n "$with_max_table_size"
   4887       1.1.1.5  christos then
   4888  1.1.1.7.12.2    martin 	echo "$as_me:4888: result: $with_max_table_size" >&5
   4889       1.1.1.5  christos echo "${ECHO_T}$with_max_table_size" >&6
   4890       1.1.1.5  christos 	check=`expr "$with_max_table_size" + 0`
   4891       1.1.1.5  christos 	if test "x$check" != "x$with_max_table_size"
   4892       1.1.1.5  christos 	then
   4893  1.1.1.7.12.2    martin 		{ { echo "$as_me:4893: error: invalid value for --with-max-table-size: $with_max_table_size" >&5
   4894       1.1.1.5  christos echo "$as_me: error: invalid value for --with-max-table-size: $with_max_table_size" >&2;}
   4895       1.1.1.5  christos    { (exit 1); exit 1; }; }
   4896       1.1.1.5  christos 	fi
   4897       1.1.1.5  christos 
   4898       1.1.1.5  christos cat >>confdefs.h <<EOF
   4899       1.1.1.5  christos #define MAXTABLE $with_max_table_size
   4900       1.1.1.5  christos EOF
   4901       1.1.1.5  christos 
   4902       1.1.1.5  christos else
   4903  1.1.1.7.12.2    martin 	echo "$as_me:4903: result: default" >&5
   4904       1.1.1.5  christos echo "${ECHO_T}default" >&6
   4905       1.1.1.5  christos fi
   4906       1.1.1.5  christos 
   4907  1.1.1.7.12.2    martin echo "$as_me:4907: checking if backtracking extension is wanted" >&5
   4908       1.1.1.5  christos echo $ECHO_N "checking if backtracking extension is wanted... $ECHO_C" >&6
   4909       1.1.1.5  christos 
   4910       1.1.1.5  christos # Check whether --enable-btyacc or --disable-btyacc was given.
   4911       1.1.1.5  christos if test "${enable_btyacc+set}" = set; then
   4912       1.1.1.5  christos   enableval="$enable_btyacc"
   4913       1.1.1.5  christos 
   4914       1.1.1.5  christos fi;
   4915  1.1.1.7.12.2    martin echo "$as_me:4915: result: $enable_btyacc" >&5
   4916       1.1.1.5  christos echo "${ECHO_T}$enable_btyacc" >&6
   4917       1.1.1.5  christos if test "$enable_btyacc" = "yes"; then
   4918       1.1.1.5  christos 
   4919       1.1.1.5  christos cat >>confdefs.h <<\EOF
   4920       1.1.1.5  christos #define YYBTYACC 1
   4921       1.1.1.5  christos EOF
   4922       1.1.1.5  christos 
   4923       1.1.1.5  christos 	SKELETON=btyaccpar
   4924       1.1.1.5  christos else
   4925       1.1.1.5  christos 	SKELETON=yaccpar
   4926       1.1.1.5  christos fi
   4927       1.1.1.5  christos 
   4928       1.1.1.3  christos if ( test "$GCC" = yes || test "$GXX" = yes )
   4929       1.1.1.3  christos then
   4930  1.1.1.7.12.2    martin echo "$as_me:4930: checking if you want to check for gcc warnings" >&5
   4931       1.1.1.3  christos echo $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6
   4932       1.1.1.3  christos 
   4933       1.1.1.3  christos # Check whether --with-warnings or --without-warnings was given.
   4934       1.1.1.3  christos if test "${with_warnings+set}" = set; then
   4935       1.1.1.3  christos   withval="$with_warnings"
   4936       1.1.1.3  christos   cf_opt_with_warnings=$withval
   4937       1.1.1.3  christos else
   4938       1.1.1.3  christos   cf_opt_with_warnings=no
   4939       1.1.1.3  christos fi;
   4940  1.1.1.7.12.2    martin echo "$as_me:4940: result: $cf_opt_with_warnings" >&5
   4941       1.1.1.3  christos echo "${ECHO_T}$cf_opt_with_warnings" >&6
   4942       1.1.1.3  christos if test "$cf_opt_with_warnings" != no ; then
   4943       1.1.1.3  christos 
   4944       1.1.1.3  christos if test "$GCC" = yes
   4945       1.1.1.3  christos then
   4946       1.1.1.3  christos cat > conftest.i <<EOF
   4947       1.1.1.3  christos #ifndef GCC_PRINTF
   4948       1.1.1.3  christos #define GCC_PRINTF 0
   4949       1.1.1.3  christos #endif
   4950       1.1.1.3  christos #ifndef GCC_SCANF
   4951       1.1.1.3  christos #define GCC_SCANF 0
   4952       1.1.1.3  christos #endif
   4953       1.1.1.3  christos #ifndef GCC_NORETURN
   4954       1.1.1.3  christos #define GCC_NORETURN /* nothing */
   4955       1.1.1.3  christos #endif
   4956       1.1.1.3  christos #ifndef GCC_UNUSED
   4957       1.1.1.3  christos #define GCC_UNUSED /* nothing */
   4958       1.1.1.3  christos #endif
   4959       1.1.1.3  christos EOF
   4960       1.1.1.3  christos if test "$GCC" = yes
   4961       1.1.1.3  christos then
   4962  1.1.1.7.12.2    martin 	{ echo "$as_me:4962: checking for $CC __attribute__ directives..." >&5
   4963       1.1.1.3  christos echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
   4964       1.1.1.3  christos cat > conftest.$ac_ext <<EOF
   4965  1.1.1.7.12.2    martin #line 4965 "${as_me:-configure}"
   4966       1.1.1.3  christos #include "confdefs.h"
   4967       1.1.1.3  christos #include "conftest.h"
   4968       1.1.1.3  christos #include "conftest.i"
   4969       1.1.1.3  christos #if	GCC_PRINTF
   4970       1.1.1.3  christos #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
   4971       1.1.1.3  christos #else
   4972       1.1.1.3  christos #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
   4973       1.1.1.3  christos #endif
   4974       1.1.1.3  christos #if	GCC_SCANF
   4975       1.1.1.3  christos #define GCC_SCANFLIKE(fmt,var)  __attribute__((format(scanf,fmt,var)))
   4976       1.1.1.3  christos #else
   4977       1.1.1.3  christos #define GCC_SCANFLIKE(fmt,var)  /*nothing*/
   4978       1.1.1.3  christos #endif
   4979       1.1.1.3  christos extern void wow(char *,...) GCC_SCANFLIKE(1,2);
   4980       1.1.1.3  christos extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
   4981       1.1.1.3  christos extern void foo(void) GCC_NORETURN;
   4982       1.1.1.3  christos int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
   4983       1.1.1.3  christos EOF
   4984       1.1.1.3  christos 	cf_printf_attribute=no
   4985       1.1.1.3  christos 	cf_scanf_attribute=no
   4986       1.1.1.3  christos 	for cf_attribute in scanf printf unused noreturn
   4987       1.1.1.3  christos 	do
   4988       1.1.1.3  christos 
   4989       1.1.1.3  christos cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   4990       1.1.1.3  christos 
   4991       1.1.1.3  christos 		cf_directive="__attribute__(($cf_attribute))"
   4992       1.1.1.3  christos 		echo "checking for $CC $cf_directive" 1>&5
   4993       1.1.1.3  christos 
   4994       1.1.1.6  christos 		case $cf_attribute in
   4995       1.1.1.6  christos 		(printf)
   4996       1.1.1.3  christos 			cf_printf_attribute=yes
   4997       1.1.1.3  christos 			cat >conftest.h <<EOF
   4998       1.1.1.3  christos #define GCC_$cf_ATTRIBUTE 1
   4999       1.1.1.3  christos EOF
   5000       1.1.1.3  christos 			;;
   5001       1.1.1.6  christos 		(scanf)
   5002       1.1.1.3  christos 			cf_scanf_attribute=yes
   5003       1.1.1.3  christos 			cat >conftest.h <<EOF
   5004       1.1.1.3  christos #define GCC_$cf_ATTRIBUTE 1
   5005       1.1.1.3  christos EOF
   5006       1.1.1.3  christos 			;;
   5007       1.1.1.6  christos 		(*)
   5008       1.1.1.3  christos 			cat >conftest.h <<EOF
   5009       1.1.1.3  christos #define GCC_$cf_ATTRIBUTE $cf_directive
   5010       1.1.1.3  christos EOF
   5011       1.1.1.3  christos 			;;
   5012       1.1.1.3  christos 		esac
   5013       1.1.1.3  christos 
   5014  1.1.1.7.12.2    martin 		if { (eval echo "$as_me:5014: \"$ac_compile\"") >&5
   5015       1.1.1.3  christos   (eval $ac_compile) 2>&5
   5016       1.1.1.3  christos   ac_status=$?
   5017  1.1.1.7.12.2    martin   echo "$as_me:5017: \$? = $ac_status" >&5
   5018       1.1.1.3  christos   (exit $ac_status); }; then
   5019  1.1.1.7.12.2    martin 			test -n "$verbose" && echo "$as_me:5019: result: ... $cf_attribute" >&5
   5020       1.1.1.3  christos echo "${ECHO_T}... $cf_attribute" >&6
   5021       1.1.1.3  christos 			cat conftest.h >>confdefs.h
   5022       1.1.1.6  christos 			case $cf_attribute in
   5023       1.1.1.6  christos 			(noreturn)
   5024       1.1.1.4  christos 
   5025       1.1.1.4  christos cat >>confdefs.h <<EOF
   5026       1.1.1.4  christos #define GCC_NORETURN $cf_directive
   5027       1.1.1.3  christos EOF
   5028       1.1.1.4  christos 
   5029       1.1.1.4  christos 				;;
   5030       1.1.1.6  christos 			(printf)
   5031       1.1.1.4  christos 				cf_value='/* nothing */'
   5032       1.1.1.4  christos 				if test "$cf_printf_attribute" != no ; then
   5033       1.1.1.4  christos 					cf_value='__attribute__((format(printf,fmt,var)))'
   5034       1.1.1.4  christos 
   5035       1.1.1.4  christos cat >>confdefs.h <<\EOF
   5036       1.1.1.4  christos #define GCC_PRINTF 1
   5037       1.1.1.3  christos EOF
   5038       1.1.1.4  christos 
   5039       1.1.1.3  christos 				fi
   5040       1.1.1.4  christos 
   5041       1.1.1.4  christos cat >>confdefs.h <<EOF
   5042       1.1.1.4  christos #define GCC_PRINTFLIKE(fmt,var) $cf_value
   5043       1.1.1.4  christos EOF
   5044       1.1.1.4  christos 
   5045       1.1.1.3  christos 				;;
   5046       1.1.1.6  christos 			(scanf)
   5047       1.1.1.4  christos 				cf_value='/* nothing */'
   5048       1.1.1.4  christos 				if test "$cf_scanf_attribute" != no ; then
   5049       1.1.1.4  christos 					cf_value='__attribute__((format(scanf,fmt,var)))'
   5050       1.1.1.4  christos 
   5051       1.1.1.4  christos cat >>confdefs.h <<\EOF
   5052       1.1.1.4  christos #define GCC_SCANF 1
   5053       1.1.1.3  christos EOF
   5054       1.1.1.4  christos 
   5055       1.1.1.3  christos 				fi
   5056       1.1.1.4  christos 
   5057       1.1.1.4  christos cat >>confdefs.h <<EOF
   5058       1.1.1.4  christos #define GCC_SCANFLIKE(fmt,var) $cf_value
   5059       1.1.1.4  christos EOF
   5060       1.1.1.4  christos 
   5061       1.1.1.4  christos 				;;
   5062       1.1.1.6  christos 			(unused)
   5063       1.1.1.4  christos 
   5064       1.1.1.4  christos cat >>confdefs.h <<EOF
   5065       1.1.1.4  christos #define GCC_UNUSED $cf_directive
   5066       1.1.1.4  christos EOF
   5067       1.1.1.4  christos 
   5068       1.1.1.3  christos 				;;
   5069       1.1.1.3  christos 			esac
   5070       1.1.1.3  christos 		fi
   5071       1.1.1.3  christos 	done
   5072       1.1.1.3  christos else
   5073       1.1.1.3  christos 	fgrep define conftest.i >>confdefs.h
   5074       1.1.1.3  christos fi
   5075       1.1.1.3  christos rm -rf conftest*
   5076       1.1.1.3  christos fi
   5077       1.1.1.3  christos 
   5078       1.1.1.3  christos INTEL_COMPILER=no
   5079       1.1.1.3  christos 
   5080       1.1.1.3  christos if test "$GCC" = yes ; then
   5081       1.1.1.3  christos 	case $host_os in
   5082       1.1.1.6  christos 	(linux*|gnu*)
   5083  1.1.1.7.12.2    martin 		echo "$as_me:5083: checking if this is really Intel C compiler" >&5
   5084           1.1  christos echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
   5085           1.1  christos 		cf_save_CFLAGS="$CFLAGS"
   5086           1.1  christos 		CFLAGS="$CFLAGS -no-gcc"
   5087           1.1  christos 		cat >conftest.$ac_ext <<_ACEOF
   5088  1.1.1.7.12.2    martin #line 5088 "configure"
   5089           1.1  christos #include "confdefs.h"
   5090           1.1  christos 
   5091           1.1  christos int
   5092  1.1.1.7.12.1  christos main (void)
   5093           1.1  christos {
   5094           1.1  christos 
   5095           1.1  christos #ifdef __INTEL_COMPILER
   5096           1.1  christos #else
   5097           1.1  christos make an error
   5098           1.1  christos #endif
   5099           1.1  christos 
   5100           1.1  christos   ;
   5101           1.1  christos   return 0;
   5102           1.1  christos }
   5103           1.1  christos _ACEOF
   5104           1.1  christos rm -f conftest.$ac_objext
   5105  1.1.1.7.12.2    martin if { (eval echo "$as_me:5105: \"$ac_compile\"") >&5
   5106           1.1  christos   (eval $ac_compile) 2>&5
   5107           1.1  christos   ac_status=$?
   5108  1.1.1.7.12.2    martin   echo "$as_me:5108: \$? = $ac_status" >&5
   5109           1.1  christos   (exit $ac_status); } &&
   5110           1.1  christos          { ac_try='test -s conftest.$ac_objext'
   5111  1.1.1.7.12.2    martin   { (eval echo "$as_me:5111: \"$ac_try\"") >&5
   5112           1.1  christos   (eval $ac_try) 2>&5
   5113           1.1  christos   ac_status=$?
   5114  1.1.1.7.12.2    martin   echo "$as_me:5114: \$? = $ac_status" >&5
   5115           1.1  christos   (exit $ac_status); }; }; then
   5116           1.1  christos   INTEL_COMPILER=yes
   5117       1.1.1.5  christos cf_save_CFLAGS="$cf_save_CFLAGS -we147"
   5118           1.1  christos 
   5119           1.1  christos else
   5120           1.1  christos   echo "$as_me: failed program was:" >&5
   5121           1.1  christos cat conftest.$ac_ext >&5
   5122           1.1  christos fi
   5123           1.1  christos rm -f conftest.$ac_objext conftest.$ac_ext
   5124           1.1  christos 		CFLAGS="$cf_save_CFLAGS"
   5125  1.1.1.7.12.2    martin 		echo "$as_me:5125: result: $INTEL_COMPILER" >&5
   5126           1.1  christos echo "${ECHO_T}$INTEL_COMPILER" >&6
   5127           1.1  christos 		;;
   5128           1.1  christos 	esac
   5129           1.1  christos fi
   5130           1.1  christos 
   5131       1.1.1.4  christos CLANG_COMPILER=no
   5132       1.1.1.4  christos 
   5133       1.1.1.4  christos if test "$GCC" = yes ; then
   5134  1.1.1.7.12.2    martin 	echo "$as_me:5134: checking if this is really Clang C compiler" >&5
   5135       1.1.1.4  christos echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
   5136       1.1.1.4  christos 	cf_save_CFLAGS="$CFLAGS"
   5137       1.1.1.4  christos 	CFLAGS="$CFLAGS -Qunused-arguments"
   5138       1.1.1.4  christos 	cat >conftest.$ac_ext <<_ACEOF
   5139  1.1.1.7.12.2    martin #line 5139 "configure"
   5140       1.1.1.4  christos #include "confdefs.h"
   5141       1.1.1.4  christos 
   5142       1.1.1.4  christos int
   5143  1.1.1.7.12.1  christos main (void)
   5144       1.1.1.4  christos {
   5145       1.1.1.4  christos 
   5146       1.1.1.4  christos #ifdef __clang__
   5147       1.1.1.4  christos #else
   5148       1.1.1.4  christos make an error
   5149       1.1.1.4  christos #endif
   5150       1.1.1.4  christos 
   5151       1.1.1.4  christos   ;
   5152       1.1.1.4  christos   return 0;
   5153       1.1.1.4  christos }
   5154       1.1.1.4  christos _ACEOF
   5155       1.1.1.4  christos rm -f conftest.$ac_objext
   5156  1.1.1.7.12.2    martin if { (eval echo "$as_me:5156: \"$ac_compile\"") >&5
   5157       1.1.1.4  christos   (eval $ac_compile) 2>&5
   5158       1.1.1.4  christos   ac_status=$?
   5159  1.1.1.7.12.2    martin   echo "$as_me:5159: \$? = $ac_status" >&5
   5160       1.1.1.4  christos   (exit $ac_status); } &&
   5161       1.1.1.4  christos          { ac_try='test -s conftest.$ac_objext'
   5162  1.1.1.7.12.2    martin   { (eval echo "$as_me:5162: \"$ac_try\"") >&5
   5163       1.1.1.4  christos   (eval $ac_try) 2>&5
   5164       1.1.1.4  christos   ac_status=$?
   5165  1.1.1.7.12.2    martin   echo "$as_me:5165: \$? = $ac_status" >&5
   5166       1.1.1.4  christos   (exit $ac_status); }; }; then
   5167       1.1.1.4  christos   CLANG_COMPILER=yes
   5168       1.1.1.4  christos cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
   5169       1.1.1.4  christos 
   5170       1.1.1.4  christos else
   5171       1.1.1.4  christos   echo "$as_me: failed program was:" >&5
   5172       1.1.1.4  christos cat conftest.$ac_ext >&5
   5173       1.1.1.4  christos fi
   5174       1.1.1.4  christos rm -f conftest.$ac_objext conftest.$ac_ext
   5175       1.1.1.4  christos 	CFLAGS="$cf_save_CFLAGS"
   5176  1.1.1.7.12.2    martin 	echo "$as_me:5176: result: $CLANG_COMPILER" >&5
   5177       1.1.1.4  christos echo "${ECHO_T}$CLANG_COMPILER" >&6
   5178       1.1.1.4  christos fi
   5179       1.1.1.4  christos 
   5180  1.1.1.7.12.2    martin if test "x$have_x" = xyes; then
   5181  1.1.1.7.12.2    martin cat >conftest.$ac_ext <<_ACEOF
   5182  1.1.1.7.12.2    martin #line 5182 "configure"
   5183  1.1.1.7.12.2    martin #include "confdefs.h"
   5184  1.1.1.7.12.2    martin 
   5185  1.1.1.7.12.2    martin #include <stdlib.h>
   5186  1.1.1.7.12.2    martin #include <X11/Intrinsic.h>
   5187  1.1.1.7.12.2    martin 
   5188  1.1.1.7.12.2    martin int
   5189  1.1.1.7.12.2    martin main (void)
   5190  1.1.1.7.12.2    martin {
   5191  1.1.1.7.12.2    martin String foo = malloc(1)
   5192  1.1.1.7.12.2    martin   ;
   5193  1.1.1.7.12.2    martin   return 0;
   5194  1.1.1.7.12.2    martin }
   5195  1.1.1.7.12.2    martin _ACEOF
   5196  1.1.1.7.12.2    martin rm -f conftest.$ac_objext
   5197  1.1.1.7.12.2    martin if { (eval echo "$as_me:5197: \"$ac_compile\"") >&5
   5198  1.1.1.7.12.2    martin   (eval $ac_compile) 2>&5
   5199  1.1.1.7.12.2    martin   ac_status=$?
   5200  1.1.1.7.12.2    martin   echo "$as_me:5200: \$? = $ac_status" >&5
   5201  1.1.1.7.12.2    martin   (exit $ac_status); } &&
   5202  1.1.1.7.12.2    martin          { ac_try='test -s conftest.$ac_objext'
   5203  1.1.1.7.12.2    martin   { (eval echo "$as_me:5203: \"$ac_try\"") >&5
   5204  1.1.1.7.12.2    martin   (eval $ac_try) 2>&5
   5205  1.1.1.7.12.2    martin   ac_status=$?
   5206  1.1.1.7.12.2    martin   echo "$as_me:5206: \$? = $ac_status" >&5
   5207  1.1.1.7.12.2    martin   (exit $ac_status); }; }; then
   5208  1.1.1.7.12.2    martin 
   5209  1.1.1.7.12.2    martin echo "$as_me:5209: checking for X11/Xt const-feature" >&5
   5210  1.1.1.7.12.2    martin echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
   5211  1.1.1.7.12.2    martin if test "${cf_cv_const_x_string+set}" = set; then
   5212  1.1.1.7.12.2    martin   echo $ECHO_N "(cached) $ECHO_C" >&6
   5213  1.1.1.7.12.2    martin else
   5214  1.1.1.7.12.2    martin 
   5215  1.1.1.7.12.2    martin 	cat >conftest.$ac_ext <<_ACEOF
   5216  1.1.1.7.12.2    martin #line 5216 "configure"
   5217  1.1.1.7.12.2    martin #include "confdefs.h"
   5218  1.1.1.7.12.2    martin 
   5219  1.1.1.7.12.2    martin #define _CONST_X_STRING	/* X11R7.8 (perhaps) */
   5220  1.1.1.7.12.2    martin #undef  XTSTRINGDEFINES	/* X11R5 and later */
   5221  1.1.1.7.12.2    martin #include <stdlib.h>
   5222  1.1.1.7.12.2    martin #include <X11/Intrinsic.h>
   5223  1.1.1.7.12.2    martin 
   5224  1.1.1.7.12.2    martin int
   5225  1.1.1.7.12.2    martin main (void)
   5226  1.1.1.7.12.2    martin {
   5227  1.1.1.7.12.2    martin String foo = malloc(1); *foo = 0
   5228  1.1.1.7.12.2    martin   ;
   5229  1.1.1.7.12.2    martin   return 0;
   5230  1.1.1.7.12.2    martin }
   5231  1.1.1.7.12.2    martin _ACEOF
   5232  1.1.1.7.12.2    martin rm -f conftest.$ac_objext
   5233  1.1.1.7.12.2    martin if { (eval echo "$as_me:5233: \"$ac_compile\"") >&5
   5234  1.1.1.7.12.2    martin   (eval $ac_compile) 2>&5
   5235  1.1.1.7.12.2    martin   ac_status=$?
   5236  1.1.1.7.12.2    martin   echo "$as_me:5236: \$? = $ac_status" >&5
   5237  1.1.1.7.12.2    martin   (exit $ac_status); } &&
   5238  1.1.1.7.12.2    martin          { ac_try='test -s conftest.$ac_objext'
   5239  1.1.1.7.12.2    martin   { (eval echo "$as_me:5239: \"$ac_try\"") >&5
   5240  1.1.1.7.12.2    martin   (eval $ac_try) 2>&5
   5241  1.1.1.7.12.2    martin   ac_status=$?
   5242  1.1.1.7.12.2    martin   echo "$as_me:5242: \$? = $ac_status" >&5
   5243  1.1.1.7.12.2    martin   (exit $ac_status); }; }; then
   5244  1.1.1.7.12.2    martin 
   5245  1.1.1.7.12.2    martin 			cf_cv_const_x_string=no
   5246  1.1.1.7.12.2    martin 
   5247  1.1.1.7.12.2    martin else
   5248  1.1.1.7.12.2    martin   echo "$as_me: failed program was:" >&5
   5249  1.1.1.7.12.2    martin cat conftest.$ac_ext >&5
   5250  1.1.1.7.12.2    martin 
   5251  1.1.1.7.12.2    martin 			cf_cv_const_x_string=yes
   5252  1.1.1.7.12.2    martin 
   5253  1.1.1.7.12.2    martin fi
   5254  1.1.1.7.12.2    martin rm -f conftest.$ac_objext conftest.$ac_ext
   5255  1.1.1.7.12.2    martin 
   5256  1.1.1.7.12.2    martin fi
   5257  1.1.1.7.12.2    martin echo "$as_me:5257: result: $cf_cv_const_x_string" >&5
   5258  1.1.1.7.12.2    martin echo "${ECHO_T}$cf_cv_const_x_string" >&6
   5259  1.1.1.7.12.2    martin 
   5260  1.1.1.7.12.2    martin case $cf_cv_const_x_string in
   5261  1.1.1.7.12.2    martin (no)
   5262  1.1.1.7.12.2    martin 
   5263  1.1.1.7.12.2    martin 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   5264  1.1.1.7.12.2    martin 	CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
   5265  1.1.1.7.12.2    martin 
   5266  1.1.1.7.12.2    martin 	;;
   5267  1.1.1.7.12.2    martin (*)
   5268  1.1.1.7.12.2    martin 
   5269  1.1.1.7.12.2    martin 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   5270  1.1.1.7.12.2    martin 	CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
   5271  1.1.1.7.12.2    martin 
   5272  1.1.1.7.12.2    martin 	;;
   5273  1.1.1.7.12.2    martin esac
   5274  1.1.1.7.12.2    martin 
   5275  1.1.1.7.12.2    martin else
   5276  1.1.1.7.12.2    martin   echo "$as_me: failed program was:" >&5
   5277  1.1.1.7.12.2    martin cat conftest.$ac_ext >&5
   5278  1.1.1.7.12.2    martin fi
   5279  1.1.1.7.12.2    martin rm -f conftest.$ac_objext conftest.$ac_ext
   5280  1.1.1.7.12.2    martin  fi
   5281           1.1  christos cat > conftest.$ac_ext <<EOF
   5282  1.1.1.7.12.2    martin #line 5282 "${as_me:-configure}"
   5283           1.1  christos int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
   5284           1.1  christos EOF
   5285           1.1  christos if test "$INTEL_COMPILER" = yes
   5286           1.1  christos then
   5287           1.1  christos # The "-wdXXX" options suppress warnings:
   5288           1.1  christos # remark #1419: external declaration in primary source file
   5289           1.1  christos # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
   5290           1.1  christos # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
   5291           1.1  christos # remark #193: zero used for undefined preprocessing identifier
   5292           1.1  christos # remark #593: variable "curs_sb_left_arrow" was set but never used
   5293           1.1  christos # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
   5294           1.1  christos # remark #869: parameter "tw" was never referenced
   5295           1.1  christos # remark #981: operands are evaluated in unspecified order
   5296           1.1  christos # warning #279: controlling expression is constant
   5297           1.1  christos 
   5298  1.1.1.7.12.2    martin 	{ echo "$as_me:5298: checking for $CC warning options..." >&5
   5299           1.1  christos echo "$as_me: checking for $CC warning options..." >&6;}
   5300           1.1  christos 	cf_save_CFLAGS="$CFLAGS"
   5301           1.1  christos 	EXTRA_CFLAGS="-Wall"
   5302           1.1  christos 	for cf_opt in \
   5303           1.1  christos 		wd1419 \
   5304           1.1  christos 		wd1683 \
   5305           1.1  christos 		wd1684 \
   5306           1.1  christos 		wd193 \
   5307           1.1  christos 		wd593 \
   5308           1.1  christos 		wd279 \
   5309           1.1  christos 		wd810 \
   5310           1.1  christos 		wd869 \
   5311           1.1  christos 		wd981
   5312           1.1  christos 	do
   5313           1.1  christos 		CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
   5314  1.1.1.7.12.2    martin 		if { (eval echo "$as_me:5314: \"$ac_compile\"") >&5
   5315           1.1  christos   (eval $ac_compile) 2>&5
   5316           1.1  christos   ac_status=$?
   5317  1.1.1.7.12.2    martin   echo "$as_me:5317: \$? = $ac_status" >&5
   5318           1.1  christos   (exit $ac_status); }; then
   5319  1.1.1.7.12.2    martin 			test -n "$verbose" && echo "$as_me:5319: result: ... -$cf_opt" >&5
   5320           1.1  christos echo "${ECHO_T}... -$cf_opt" >&6
   5321           1.1  christos 			EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
   5322           1.1  christos 		fi
   5323           1.1  christos 	done
   5324           1.1  christos 	CFLAGS="$cf_save_CFLAGS"
   5325           1.1  christos elif test "$GCC" = yes
   5326           1.1  christos then
   5327  1.1.1.7.12.2    martin 	{ echo "$as_me:5327: checking for $CC warning options..." >&5
   5328           1.1  christos echo "$as_me: checking for $CC warning options..." >&6;}
   5329           1.1  christos 	cf_save_CFLAGS="$CFLAGS"
   5330       1.1.1.2  christos 	EXTRA_CFLAGS=
   5331           1.1  christos 	cf_warn_CONST=""
   5332           1.1  christos 	test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
   5333       1.1.1.5  christos 	cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
   5334       1.1.1.5  christos 	test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
   5335       1.1.1.2  christos 	for cf_opt in W Wall \
   5336           1.1  christos 		Wbad-function-cast \
   5337           1.1  christos 		Wcast-align \
   5338           1.1  christos 		Wcast-qual \
   5339       1.1.1.5  christos 		Wdeclaration-after-statement \
   5340       1.1.1.5  christos 		Wextra \
   5341           1.1  christos 		Winline \
   5342           1.1  christos 		Wmissing-declarations \
   5343           1.1  christos 		Wmissing-prototypes \
   5344           1.1  christos 		Wnested-externs \
   5345           1.1  christos 		Wpointer-arith \
   5346           1.1  christos 		Wshadow \
   5347           1.1  christos 		Wstrict-prototypes \
   5348       1.1.1.5  christos 		Wundef $cf_gcc_warnings $cf_warn_CONST Wwrite-strings
   5349           1.1  christos 	do
   5350           1.1  christos 		CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
   5351  1.1.1.7.12.2    martin 		if { (eval echo "$as_me:5351: \"$ac_compile\"") >&5
   5352           1.1  christos   (eval $ac_compile) 2>&5
   5353           1.1  christos   ac_status=$?
   5354  1.1.1.7.12.2    martin   echo "$as_me:5354: \$? = $ac_status" >&5
   5355           1.1  christos   (exit $ac_status); }; then
   5356  1.1.1.7.12.2    martin 			test -n "$verbose" && echo "$as_me:5356: result: ... -$cf_opt" >&5
   5357           1.1  christos echo "${ECHO_T}... -$cf_opt" >&6
   5358       1.1.1.6  christos 			case $cf_opt in
   5359       1.1.1.6  christos 			(Winline)
   5360           1.1  christos 				case $GCC_VERSION in
   5361       1.1.1.6  christos 				([34].*)
   5362           1.1  christos 					test -n "$verbose" && echo "	feature is broken in gcc $GCC_VERSION" 1>&6
   5363           1.1  christos 
   5364  1.1.1.7.12.2    martin echo "${as_me:-configure}:5364: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
   5365       1.1.1.4  christos 
   5366       1.1.1.4  christos 					continue;;
   5367       1.1.1.4  christos 				esac
   5368       1.1.1.4  christos 				;;
   5369       1.1.1.6  christos 			(Wpointer-arith)
   5370       1.1.1.4  christos 				case $GCC_VERSION in
   5371       1.1.1.6  christos 				([12].*)
   5372       1.1.1.4  christos 					test -n "$verbose" && echo "	feature is broken in gcc $GCC_VERSION" 1>&6
   5373       1.1.1.4  christos 
   5374  1.1.1.7.12.2    martin echo "${as_me:-configure}:5374: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
   5375           1.1  christos 
   5376           1.1  christos 					continue;;
   5377           1.1  christos 				esac
   5378           1.1  christos 				;;
   5379           1.1  christos 			esac
   5380           1.1  christos 			EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
   5381           1.1  christos 		fi
   5382           1.1  christos 	done
   5383           1.1  christos 	CFLAGS="$cf_save_CFLAGS"
   5384           1.1  christos fi
   5385       1.1.1.3  christos rm -rf conftest*
   5386           1.1  christos 
   5387           1.1  christos fi
   5388           1.1  christos fi
   5389           1.1  christos 
   5390  1.1.1.7.12.2    martin echo "$as_me:5390: checking if you want to see long compiling messages" >&5
   5391           1.1  christos echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
   5392           1.1  christos 
   5393           1.1  christos # Check whether --enable-echo or --disable-echo was given.
   5394           1.1  christos if test "${enable_echo+set}" = set; then
   5395           1.1  christos   enableval="$enable_echo"
   5396           1.1  christos   test "$enableval" != no && enableval=yes
   5397       1.1.1.6  christos 	if test "$enableval" != "yes" ; then
   5398           1.1  christos 
   5399       1.1.1.6  christos 	ECHO_LT='--silent'
   5400       1.1.1.6  christos 	ECHO_LD='@echo linking $@;'
   5401       1.1.1.6  christos 	RULE_CC='@echo compiling $<'
   5402       1.1.1.6  christos 	SHOW_CC='@echo compiling $@'
   5403       1.1.1.6  christos 	ECHO_CC='@'
   5404           1.1  christos 
   5405       1.1.1.6  christos 	else
   5406           1.1  christos 
   5407       1.1.1.6  christos 	ECHO_LT=''
   5408       1.1.1.6  christos 	ECHO_LD=''
   5409       1.1.1.6  christos 	RULE_CC=''
   5410       1.1.1.6  christos 	SHOW_CC=''
   5411       1.1.1.6  christos 	ECHO_CC=''
   5412           1.1  christos 
   5413       1.1.1.6  christos 	fi
   5414           1.1  christos else
   5415           1.1  christos   enableval=yes
   5416           1.1  christos 
   5417       1.1.1.6  christos 	ECHO_LT=''
   5418       1.1.1.6  christos 	ECHO_LD=''
   5419       1.1.1.6  christos 	RULE_CC=''
   5420       1.1.1.6  christos 	SHOW_CC=''
   5421       1.1.1.6  christos 	ECHO_CC=''
   5422           1.1  christos 
   5423           1.1  christos fi;
   5424  1.1.1.7.12.2    martin echo "$as_me:5424: result: $enableval" >&5
   5425           1.1  christos echo "${ECHO_T}$enableval" >&6
   5426           1.1  christos 
   5427  1.1.1.7.12.2    martin echo "$as_me:5427: checking if you want to use dmalloc for testing" >&5
   5428           1.1  christos echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
   5429           1.1  christos 
   5430           1.1  christos # Check whether --with-dmalloc or --without-dmalloc was given.
   5431           1.1  christos if test "${with_dmalloc+set}" = set; then
   5432           1.1  christos   withval="$with_dmalloc"
   5433       1.1.1.4  christos 
   5434       1.1.1.4  christos cat >>confdefs.h <<EOF
   5435           1.1  christos #define USE_DMALLOC 1
   5436           1.1  christos EOF
   5437           1.1  christos 
   5438           1.1  christos 	: ${with_cflags:=-g}
   5439           1.1  christos 	: ${with_no_leaks:=yes}
   5440           1.1  christos 	 with_dmalloc=yes
   5441           1.1  christos else
   5442           1.1  christos   with_dmalloc=
   5443           1.1  christos fi;
   5444  1.1.1.7.12.2    martin echo "$as_me:5444: result: ${with_dmalloc:-no}" >&5
   5445           1.1  christos echo "${ECHO_T}${with_dmalloc:-no}" >&6
   5446           1.1  christos 
   5447       1.1.1.6  christos case .$with_cflags in
   5448       1.1.1.6  christos (.*-g*)
   5449       1.1.1.6  christos 	case .$CFLAGS in
   5450       1.1.1.6  christos 	(.*-g*)
   5451           1.1  christos 		;;
   5452       1.1.1.6  christos 	(*)
   5453           1.1  christos 
   5454           1.1  christos cf_fix_cppflags=no
   5455           1.1  christos cf_new_cflags=
   5456           1.1  christos cf_new_cppflags=
   5457           1.1  christos cf_new_extra_cppflags=
   5458           1.1  christos 
   5459           1.1  christos for cf_add_cflags in -g
   5460           1.1  christos do
   5461           1.1  christos case $cf_fix_cppflags in
   5462       1.1.1.6  christos (no)
   5463       1.1.1.6  christos 	case $cf_add_cflags in
   5464       1.1.1.6  christos 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   5465           1.1  christos 		case $cf_add_cflags in
   5466       1.1.1.6  christos 		(-D*)
   5467           1.1  christos 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   5468           1.1  christos 
   5469       1.1.1.5  christos 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   5470       1.1.1.2  christos 				&& test -z "${cf_tst_cflags}" \
   5471       1.1.1.2  christos 				&& cf_fix_cppflags=yes
   5472           1.1  christos 
   5473           1.1  christos 			if test $cf_fix_cppflags = yes ; then
   5474  1.1.1.7.12.1  christos 
   5475  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   5476  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   5477  1.1.1.7.12.1  christos 
   5478           1.1  christos 				continue
   5479           1.1  christos 			elif test "${cf_tst_cflags}" = "\"'" ; then
   5480  1.1.1.7.12.1  christos 
   5481  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   5482  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   5483  1.1.1.7.12.1  christos 
   5484           1.1  christos 				continue
   5485           1.1  christos 			fi
   5486           1.1  christos 			;;
   5487           1.1  christos 		esac
   5488           1.1  christos 		case "$CPPFLAGS" in
   5489       1.1.1.6  christos 		(*$cf_add_cflags)
   5490           1.1  christos 			;;
   5491       1.1.1.6  christos 		(*)
   5492       1.1.1.6  christos 			case $cf_add_cflags in
   5493       1.1.1.6  christos 			(-D*)
   5494       1.1.1.2  christos 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   5495       1.1.1.2  christos 
   5496       1.1.1.2  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   5497       1.1.1.2  christos 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   5498       1.1.1.2  christos 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   5499       1.1.1.2  christos 
   5500       1.1.1.2  christos 				;;
   5501       1.1.1.2  christos 			esac
   5502  1.1.1.7.12.1  christos 
   5503  1.1.1.7.12.1  christos 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   5504  1.1.1.7.12.1  christos 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   5505  1.1.1.7.12.1  christos 
   5506           1.1  christos 			;;
   5507           1.1  christos 		esac
   5508           1.1  christos 		;;
   5509       1.1.1.6  christos 	(*)
   5510  1.1.1.7.12.1  christos 
   5511  1.1.1.7.12.1  christos 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   5512  1.1.1.7.12.1  christos 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   5513  1.1.1.7.12.1  christos 
   5514           1.1  christos 		;;
   5515           1.1  christos 	esac
   5516           1.1  christos 	;;
   5517       1.1.1.6  christos (yes)
   5518  1.1.1.7.12.1  christos 
   5519  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   5520  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   5521           1.1  christos 
   5522           1.1  christos 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   5523           1.1  christos 
   5524       1.1.1.5  christos 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   5525       1.1.1.2  christos 		&& test -z "${cf_tst_cflags}" \
   5526       1.1.1.2  christos 		&& cf_fix_cppflags=no
   5527           1.1  christos 	;;
   5528           1.1  christos esac
   5529           1.1  christos done
   5530           1.1  christos 
   5531           1.1  christos if test -n "$cf_new_cflags" ; then
   5532           1.1  christos 
   5533  1.1.1.7.12.1  christos 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   5534  1.1.1.7.12.1  christos 	CFLAGS="${CFLAGS}$cf_new_cflags"
   5535  1.1.1.7.12.1  christos 
   5536           1.1  christos fi
   5537           1.1  christos 
   5538           1.1  christos if test -n "$cf_new_cppflags" ; then
   5539           1.1  christos 
   5540  1.1.1.7.12.1  christos 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   5541  1.1.1.7.12.1  christos 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   5542  1.1.1.7.12.1  christos 
   5543           1.1  christos fi
   5544           1.1  christos 
   5545           1.1  christos if test -n "$cf_new_extra_cppflags" ; then
   5546           1.1  christos 
   5547  1.1.1.7.12.1  christos 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   5548  1.1.1.7.12.1  christos 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   5549  1.1.1.7.12.1  christos 
   5550           1.1  christos fi
   5551           1.1  christos 
   5552           1.1  christos 		;;
   5553           1.1  christos 	esac
   5554           1.1  christos 	;;
   5555           1.1  christos esac
   5556           1.1  christos 
   5557           1.1  christos if test "$with_dmalloc" = yes ; then
   5558  1.1.1.7.12.2    martin 	echo "$as_me:5558: checking for dmalloc.h" >&5
   5559           1.1  christos echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
   5560           1.1  christos if test "${ac_cv_header_dmalloc_h+set}" = set; then
   5561           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5562           1.1  christos else
   5563           1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   5564  1.1.1.7.12.2    martin #line 5564 "configure"
   5565           1.1  christos #include "confdefs.h"
   5566           1.1  christos #include <dmalloc.h>
   5567           1.1  christos _ACEOF
   5568  1.1.1.7.12.2    martin if { (eval echo "$as_me:5568: \"$ac_cpp conftest.$ac_ext\"") >&5
   5569           1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   5570           1.1  christos   ac_status=$?
   5571           1.1  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   5572           1.1  christos   rm -f conftest.er1
   5573           1.1  christos   cat conftest.err >&5
   5574  1.1.1.7.12.2    martin   echo "$as_me:5574: \$? = $ac_status" >&5
   5575           1.1  christos   (exit $ac_status); } >/dev/null; then
   5576           1.1  christos   if test -s conftest.err; then
   5577           1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   5578           1.1  christos   else
   5579           1.1  christos     ac_cpp_err=
   5580           1.1  christos   fi
   5581           1.1  christos else
   5582           1.1  christos   ac_cpp_err=yes
   5583           1.1  christos fi
   5584           1.1  christos if test -z "$ac_cpp_err"; then
   5585           1.1  christos   ac_cv_header_dmalloc_h=yes
   5586           1.1  christos else
   5587           1.1  christos   echo "$as_me: failed program was:" >&5
   5588           1.1  christos   cat conftest.$ac_ext >&5
   5589           1.1  christos   ac_cv_header_dmalloc_h=no
   5590           1.1  christos fi
   5591           1.1  christos rm -f conftest.err conftest.$ac_ext
   5592           1.1  christos fi
   5593  1.1.1.7.12.2    martin echo "$as_me:5593: result: $ac_cv_header_dmalloc_h" >&5
   5594           1.1  christos echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
   5595           1.1  christos if test $ac_cv_header_dmalloc_h = yes; then
   5596           1.1  christos 
   5597  1.1.1.7.12.2    martin echo "$as_me:5597: checking for dmalloc_debug in -ldmalloc" >&5
   5598           1.1  christos echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
   5599           1.1  christos if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
   5600           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5601           1.1  christos else
   5602           1.1  christos   ac_check_lib_save_LIBS=$LIBS
   5603           1.1  christos LIBS="-ldmalloc  $LIBS"
   5604           1.1  christos cat >conftest.$ac_ext <<_ACEOF
   5605  1.1.1.7.12.2    martin #line 5605 "configure"
   5606           1.1  christos #include "confdefs.h"
   5607           1.1  christos 
   5608           1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   5609           1.1  christos #ifdef __cplusplus
   5610           1.1  christos extern "C"
   5611           1.1  christos #endif
   5612           1.1  christos /* We use char because int might match the return type of a gcc2
   5613           1.1  christos    builtin and then its argument prototype would still apply.  */
   5614           1.1  christos char dmalloc_debug ();
   5615           1.1  christos int
   5616  1.1.1.7.12.1  christos main (void)
   5617           1.1  christos {
   5618           1.1  christos dmalloc_debug ();
   5619           1.1  christos   ;
   5620           1.1  christos   return 0;
   5621           1.1  christos }
   5622           1.1  christos _ACEOF
   5623           1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   5624  1.1.1.7.12.2    martin if { (eval echo "$as_me:5624: \"$ac_link\"") >&5
   5625           1.1  christos   (eval $ac_link) 2>&5
   5626           1.1  christos   ac_status=$?
   5627  1.1.1.7.12.2    martin   echo "$as_me:5627: \$? = $ac_status" >&5
   5628           1.1  christos   (exit $ac_status); } &&
   5629           1.1  christos          { ac_try='test -s conftest$ac_exeext'
   5630  1.1.1.7.12.2    martin   { (eval echo "$as_me:5630: \"$ac_try\"") >&5
   5631           1.1  christos   (eval $ac_try) 2>&5
   5632           1.1  christos   ac_status=$?
   5633  1.1.1.7.12.2    martin   echo "$as_me:5633: \$? = $ac_status" >&5
   5634           1.1  christos   (exit $ac_status); }; }; then
   5635           1.1  christos   ac_cv_lib_dmalloc_dmalloc_debug=yes
   5636           1.1  christos else
   5637           1.1  christos   echo "$as_me: failed program was:" >&5
   5638           1.1  christos cat conftest.$ac_ext >&5
   5639           1.1  christos ac_cv_lib_dmalloc_dmalloc_debug=no
   5640           1.1  christos fi
   5641           1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   5642           1.1  christos LIBS=$ac_check_lib_save_LIBS
   5643           1.1  christos fi
   5644  1.1.1.7.12.2    martin echo "$as_me:5644: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
   5645           1.1  christos echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
   5646           1.1  christos if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
   5647           1.1  christos   cat >>confdefs.h <<EOF
   5648           1.1  christos #define HAVE_LIBDMALLOC 1
   5649           1.1  christos EOF
   5650           1.1  christos 
   5651           1.1  christos   LIBS="-ldmalloc $LIBS"
   5652           1.1  christos 
   5653           1.1  christos fi
   5654           1.1  christos 
   5655           1.1  christos fi
   5656           1.1  christos 
   5657           1.1  christos fi
   5658           1.1  christos 
   5659  1.1.1.7.12.2    martin echo "$as_me:5659: checking if you want to use dbmalloc for testing" >&5
   5660           1.1  christos echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
   5661           1.1  christos 
   5662           1.1  christos # Check whether --with-dbmalloc or --without-dbmalloc was given.
   5663           1.1  christos if test "${with_dbmalloc+set}" = set; then
   5664           1.1  christos   withval="$with_dbmalloc"
   5665       1.1.1.4  christos 
   5666       1.1.1.4  christos cat >>confdefs.h <<EOF
   5667           1.1  christos #define USE_DBMALLOC 1
   5668           1.1  christos EOF
   5669           1.1  christos 
   5670           1.1  christos 	: ${with_cflags:=-g}
   5671           1.1  christos 	: ${with_no_leaks:=yes}
   5672           1.1  christos 	 with_dbmalloc=yes
   5673           1.1  christos else
   5674           1.1  christos   with_dbmalloc=
   5675           1.1  christos fi;
   5676  1.1.1.7.12.2    martin echo "$as_me:5676: result: ${with_dbmalloc:-no}" >&5
   5677           1.1  christos echo "${ECHO_T}${with_dbmalloc:-no}" >&6
   5678           1.1  christos 
   5679       1.1.1.6  christos case .$with_cflags in
   5680       1.1.1.6  christos (.*-g*)
   5681       1.1.1.6  christos 	case .$CFLAGS in
   5682       1.1.1.6  christos 	(.*-g*)
   5683           1.1  christos 		;;
   5684       1.1.1.6  christos 	(*)
   5685           1.1  christos 
   5686           1.1  christos cf_fix_cppflags=no
   5687           1.1  christos cf_new_cflags=
   5688           1.1  christos cf_new_cppflags=
   5689           1.1  christos cf_new_extra_cppflags=
   5690           1.1  christos 
   5691           1.1  christos for cf_add_cflags in -g
   5692           1.1  christos do
   5693           1.1  christos case $cf_fix_cppflags in
   5694       1.1.1.6  christos (no)
   5695       1.1.1.6  christos 	case $cf_add_cflags in
   5696       1.1.1.6  christos 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   5697           1.1  christos 		case $cf_add_cflags in
   5698       1.1.1.6  christos 		(-D*)
   5699           1.1  christos 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   5700           1.1  christos 
   5701       1.1.1.5  christos 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   5702       1.1.1.2  christos 				&& test -z "${cf_tst_cflags}" \
   5703       1.1.1.2  christos 				&& cf_fix_cppflags=yes
   5704           1.1  christos 
   5705           1.1  christos 			if test $cf_fix_cppflags = yes ; then
   5706  1.1.1.7.12.1  christos 
   5707  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   5708  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   5709  1.1.1.7.12.1  christos 
   5710           1.1  christos 				continue
   5711           1.1  christos 			elif test "${cf_tst_cflags}" = "\"'" ; then
   5712  1.1.1.7.12.1  christos 
   5713  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   5714  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   5715  1.1.1.7.12.1  christos 
   5716           1.1  christos 				continue
   5717           1.1  christos 			fi
   5718           1.1  christos 			;;
   5719           1.1  christos 		esac
   5720           1.1  christos 		case "$CPPFLAGS" in
   5721       1.1.1.6  christos 		(*$cf_add_cflags)
   5722           1.1  christos 			;;
   5723       1.1.1.6  christos 		(*)
   5724       1.1.1.6  christos 			case $cf_add_cflags in
   5725       1.1.1.6  christos 			(-D*)
   5726       1.1.1.2  christos 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   5727       1.1.1.2  christos 
   5728       1.1.1.2  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   5729       1.1.1.2  christos 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   5730       1.1.1.2  christos 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   5731       1.1.1.2  christos 
   5732       1.1.1.2  christos 				;;
   5733       1.1.1.2  christos 			esac
   5734  1.1.1.7.12.1  christos 
   5735  1.1.1.7.12.1  christos 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   5736  1.1.1.7.12.1  christos 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   5737  1.1.1.7.12.1  christos 
   5738           1.1  christos 			;;
   5739           1.1  christos 		esac
   5740           1.1  christos 		;;
   5741       1.1.1.6  christos 	(*)
   5742  1.1.1.7.12.1  christos 
   5743  1.1.1.7.12.1  christos 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   5744  1.1.1.7.12.1  christos 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   5745  1.1.1.7.12.1  christos 
   5746           1.1  christos 		;;
   5747           1.1  christos 	esac
   5748           1.1  christos 	;;
   5749       1.1.1.6  christos (yes)
   5750  1.1.1.7.12.1  christos 
   5751  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   5752  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   5753           1.1  christos 
   5754           1.1  christos 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   5755           1.1  christos 
   5756       1.1.1.5  christos 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   5757       1.1.1.2  christos 		&& test -z "${cf_tst_cflags}" \
   5758       1.1.1.2  christos 		&& cf_fix_cppflags=no
   5759           1.1  christos 	;;
   5760           1.1  christos esac
   5761           1.1  christos done
   5762           1.1  christos 
   5763           1.1  christos if test -n "$cf_new_cflags" ; then
   5764           1.1  christos 
   5765  1.1.1.7.12.1  christos 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   5766  1.1.1.7.12.1  christos 	CFLAGS="${CFLAGS}$cf_new_cflags"
   5767  1.1.1.7.12.1  christos 
   5768           1.1  christos fi
   5769           1.1  christos 
   5770           1.1  christos if test -n "$cf_new_cppflags" ; then
   5771           1.1  christos 
   5772  1.1.1.7.12.1  christos 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   5773  1.1.1.7.12.1  christos 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   5774  1.1.1.7.12.1  christos 
   5775           1.1  christos fi
   5776           1.1  christos 
   5777           1.1  christos if test -n "$cf_new_extra_cppflags" ; then
   5778           1.1  christos 
   5779  1.1.1.7.12.1  christos 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   5780  1.1.1.7.12.1  christos 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   5781  1.1.1.7.12.1  christos 
   5782           1.1  christos fi
   5783           1.1  christos 
   5784           1.1  christos 		;;
   5785           1.1  christos 	esac
   5786           1.1  christos 	;;
   5787           1.1  christos esac
   5788           1.1  christos 
   5789           1.1  christos if test "$with_dbmalloc" = yes ; then
   5790  1.1.1.7.12.2    martin 	echo "$as_me:5790: checking for dbmalloc.h" >&5
   5791           1.1  christos echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
   5792           1.1  christos if test "${ac_cv_header_dbmalloc_h+set}" = set; then
   5793           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5794           1.1  christos else
   5795           1.1  christos   cat >conftest.$ac_ext <<_ACEOF
   5796  1.1.1.7.12.2    martin #line 5796 "configure"
   5797           1.1  christos #include "confdefs.h"
   5798           1.1  christos #include <dbmalloc.h>
   5799           1.1  christos _ACEOF
   5800  1.1.1.7.12.2    martin if { (eval echo "$as_me:5800: \"$ac_cpp conftest.$ac_ext\"") >&5
   5801           1.1  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   5802           1.1  christos   ac_status=$?
   5803           1.1  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   5804           1.1  christos   rm -f conftest.er1
   5805           1.1  christos   cat conftest.err >&5
   5806  1.1.1.7.12.2    martin   echo "$as_me:5806: \$? = $ac_status" >&5
   5807           1.1  christos   (exit $ac_status); } >/dev/null; then
   5808           1.1  christos   if test -s conftest.err; then
   5809           1.1  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   5810           1.1  christos   else
   5811           1.1  christos     ac_cpp_err=
   5812           1.1  christos   fi
   5813           1.1  christos else
   5814           1.1  christos   ac_cpp_err=yes
   5815           1.1  christos fi
   5816           1.1  christos if test -z "$ac_cpp_err"; then
   5817           1.1  christos   ac_cv_header_dbmalloc_h=yes
   5818           1.1  christos else
   5819           1.1  christos   echo "$as_me: failed program was:" >&5
   5820           1.1  christos   cat conftest.$ac_ext >&5
   5821           1.1  christos   ac_cv_header_dbmalloc_h=no
   5822           1.1  christos fi
   5823           1.1  christos rm -f conftest.err conftest.$ac_ext
   5824           1.1  christos fi
   5825  1.1.1.7.12.2    martin echo "$as_me:5825: result: $ac_cv_header_dbmalloc_h" >&5
   5826           1.1  christos echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
   5827           1.1  christos if test $ac_cv_header_dbmalloc_h = yes; then
   5828           1.1  christos 
   5829  1.1.1.7.12.2    martin echo "$as_me:5829: checking for debug_malloc in -ldbmalloc" >&5
   5830           1.1  christos echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
   5831           1.1  christos if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
   5832           1.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   5833           1.1  christos else
   5834           1.1  christos   ac_check_lib_save_LIBS=$LIBS
   5835           1.1  christos LIBS="-ldbmalloc  $LIBS"
   5836           1.1  christos cat >conftest.$ac_ext <<_ACEOF
   5837  1.1.1.7.12.2    martin #line 5837 "configure"
   5838           1.1  christos #include "confdefs.h"
   5839           1.1  christos 
   5840           1.1  christos /* Override any gcc2 internal prototype to avoid an error.  */
   5841           1.1  christos #ifdef __cplusplus
   5842           1.1  christos extern "C"
   5843           1.1  christos #endif
   5844           1.1  christos /* We use char because int might match the return type of a gcc2
   5845           1.1  christos    builtin and then its argument prototype would still apply.  */
   5846           1.1  christos char debug_malloc ();
   5847           1.1  christos int
   5848  1.1.1.7.12.1  christos main (void)
   5849           1.1  christos {
   5850           1.1  christos debug_malloc ();
   5851           1.1  christos   ;
   5852           1.1  christos   return 0;
   5853           1.1  christos }
   5854           1.1  christos _ACEOF
   5855           1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext
   5856  1.1.1.7.12.2    martin if { (eval echo "$as_me:5856: \"$ac_link\"") >&5
   5857           1.1  christos   (eval $ac_link) 2>&5
   5858           1.1  christos   ac_status=$?
   5859  1.1.1.7.12.2    martin   echo "$as_me:5859: \$? = $ac_status" >&5
   5860           1.1  christos   (exit $ac_status); } &&
   5861           1.1  christos          { ac_try='test -s conftest$ac_exeext'
   5862  1.1.1.7.12.2    martin   { (eval echo "$as_me:5862: \"$ac_try\"") >&5
   5863           1.1  christos   (eval $ac_try) 2>&5
   5864           1.1  christos   ac_status=$?
   5865  1.1.1.7.12.2    martin   echo "$as_me:5865: \$? = $ac_status" >&5
   5866           1.1  christos   (exit $ac_status); }; }; then
   5867           1.1  christos   ac_cv_lib_dbmalloc_debug_malloc=yes
   5868           1.1  christos else
   5869           1.1  christos   echo "$as_me: failed program was:" >&5
   5870           1.1  christos cat conftest.$ac_ext >&5
   5871           1.1  christos ac_cv_lib_dbmalloc_debug_malloc=no
   5872           1.1  christos fi
   5873           1.1  christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   5874           1.1  christos LIBS=$ac_check_lib_save_LIBS
   5875           1.1  christos fi
   5876  1.1.1.7.12.2    martin echo "$as_me:5876: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
   5877           1.1  christos echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
   5878           1.1  christos if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
   5879           1.1  christos   cat >>confdefs.h <<EOF
   5880           1.1  christos #define HAVE_LIBDBMALLOC 1
   5881           1.1  christos EOF
   5882           1.1  christos 
   5883           1.1  christos   LIBS="-ldbmalloc $LIBS"
   5884           1.1  christos 
   5885           1.1  christos fi
   5886           1.1  christos 
   5887           1.1  christos fi
   5888           1.1  christos 
   5889           1.1  christos fi
   5890           1.1  christos 
   5891  1.1.1.7.12.2    martin echo "$as_me:5891: checking if you want to use valgrind for testing" >&5
   5892           1.1  christos echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
   5893           1.1  christos 
   5894           1.1  christos # Check whether --with-valgrind or --without-valgrind was given.
   5895           1.1  christos if test "${with_valgrind+set}" = set; then
   5896           1.1  christos   withval="$with_valgrind"
   5897       1.1.1.4  christos 
   5898       1.1.1.4  christos cat >>confdefs.h <<EOF
   5899           1.1  christos #define USE_VALGRIND 1
   5900           1.1  christos EOF
   5901           1.1  christos 
   5902           1.1  christos 	: ${with_cflags:=-g}
   5903           1.1  christos 	: ${with_no_leaks:=yes}
   5904           1.1  christos 	 with_valgrind=yes
   5905           1.1  christos else
   5906           1.1  christos   with_valgrind=
   5907           1.1  christos fi;
   5908  1.1.1.7.12.2    martin echo "$as_me:5908: result: ${with_valgrind:-no}" >&5
   5909           1.1  christos echo "${ECHO_T}${with_valgrind:-no}" >&6
   5910           1.1  christos 
   5911       1.1.1.6  christos case .$with_cflags in
   5912       1.1.1.6  christos (.*-g*)
   5913       1.1.1.6  christos 	case .$CFLAGS in
   5914       1.1.1.6  christos 	(.*-g*)
   5915           1.1  christos 		;;
   5916       1.1.1.6  christos 	(*)
   5917           1.1  christos 
   5918           1.1  christos cf_fix_cppflags=no
   5919           1.1  christos cf_new_cflags=
   5920           1.1  christos cf_new_cppflags=
   5921           1.1  christos cf_new_extra_cppflags=
   5922           1.1  christos 
   5923           1.1  christos for cf_add_cflags in -g
   5924           1.1  christos do
   5925           1.1  christos case $cf_fix_cppflags in
   5926       1.1.1.6  christos (no)
   5927       1.1.1.6  christos 	case $cf_add_cflags in
   5928       1.1.1.6  christos 	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
   5929           1.1  christos 		case $cf_add_cflags in
   5930       1.1.1.6  christos 		(-D*)
   5931           1.1  christos 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   5932           1.1  christos 
   5933       1.1.1.5  christos 			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   5934       1.1.1.2  christos 				&& test -z "${cf_tst_cflags}" \
   5935       1.1.1.2  christos 				&& cf_fix_cppflags=yes
   5936           1.1  christos 
   5937           1.1  christos 			if test $cf_fix_cppflags = yes ; then
   5938  1.1.1.7.12.1  christos 
   5939  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   5940  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   5941  1.1.1.7.12.1  christos 
   5942           1.1  christos 				continue
   5943           1.1  christos 			elif test "${cf_tst_cflags}" = "\"'" ; then
   5944  1.1.1.7.12.1  christos 
   5945  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   5946  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   5947  1.1.1.7.12.1  christos 
   5948           1.1  christos 				continue
   5949           1.1  christos 			fi
   5950           1.1  christos 			;;
   5951           1.1  christos 		esac
   5952           1.1  christos 		case "$CPPFLAGS" in
   5953       1.1.1.6  christos 		(*$cf_add_cflags)
   5954           1.1  christos 			;;
   5955       1.1.1.6  christos 		(*)
   5956       1.1.1.6  christos 			case $cf_add_cflags in
   5957       1.1.1.6  christos 			(-D*)
   5958       1.1.1.2  christos 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   5959       1.1.1.2  christos 
   5960       1.1.1.2  christos CPPFLAGS=`echo "$CPPFLAGS" | \
   5961       1.1.1.2  christos 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   5962       1.1.1.2  christos 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   5963       1.1.1.2  christos 
   5964       1.1.1.2  christos 				;;
   5965       1.1.1.2  christos 			esac
   5966  1.1.1.7.12.1  christos 
   5967  1.1.1.7.12.1  christos 	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
   5968  1.1.1.7.12.1  christos 	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
   5969  1.1.1.7.12.1  christos 
   5970           1.1  christos 			;;
   5971           1.1  christos 		esac
   5972           1.1  christos 		;;
   5973       1.1.1.6  christos 	(*)
   5974  1.1.1.7.12.1  christos 
   5975  1.1.1.7.12.1  christos 	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
   5976  1.1.1.7.12.1  christos 	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
   5977  1.1.1.7.12.1  christos 
   5978           1.1  christos 		;;
   5979           1.1  christos 	esac
   5980           1.1  christos 	;;
   5981       1.1.1.6  christos (yes)
   5982  1.1.1.7.12.1  christos 
   5983  1.1.1.7.12.1  christos 	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
   5984  1.1.1.7.12.1  christos 	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
   5985           1.1  christos 
   5986           1.1  christos 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   5987           1.1  christos 
   5988       1.1.1.5  christos 	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
   5989       1.1.1.2  christos 		&& test -z "${cf_tst_cflags}" \
   5990       1.1.1.2  christos 		&& cf_fix_cppflags=no
   5991           1.1  christos 	;;
   5992           1.1  christos esac
   5993           1.1  christos done
   5994           1.1  christos 
   5995           1.1  christos if test -n "$cf_new_cflags" ; then
   5996           1.1  christos 
   5997  1.1.1.7.12.1  christos 	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
   5998  1.1.1.7.12.1  christos 	CFLAGS="${CFLAGS}$cf_new_cflags"
   5999  1.1.1.7.12.1  christos 
   6000           1.1  christos fi
   6001           1.1  christos 
   6002           1.1  christos if test -n "$cf_new_cppflags" ; then
   6003           1.1  christos 
   6004  1.1.1.7.12.1  christos 	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
   6005  1.1.1.7.12.1  christos 	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
   6006  1.1.1.7.12.1  christos 
   6007           1.1  christos fi
   6008           1.1  christos 
   6009           1.1  christos if test -n "$cf_new_extra_cppflags" ; then
   6010           1.1  christos 
   6011  1.1.1.7.12.1  christos 	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
   6012  1.1.1.7.12.1  christos 	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
   6013  1.1.1.7.12.1  christos 
   6014           1.1  christos fi
   6015           1.1  christos 
   6016           1.1  christos 		;;
   6017           1.1  christos 	esac
   6018           1.1  christos 	;;
   6019           1.1  christos esac
   6020           1.1  christos 
   6021  1.1.1.7.12.2    martin echo "$as_me:6021: checking if you want to perform memory-leak testing" >&5
   6022           1.1  christos echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
   6023           1.1  christos 
   6024           1.1  christos # Check whether --enable-leaks or --disable-leaks was given.
   6025           1.1  christos if test "${enable_leaks+set}" = set; then
   6026           1.1  christos   enableval="$enable_leaks"
   6027       1.1.1.2  christos   if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
   6028           1.1  christos else
   6029           1.1  christos   : ${with_no_leaks:=no}
   6030           1.1  christos fi;
   6031  1.1.1.7.12.2    martin echo "$as_me:6031: result: $with_no_leaks" >&5
   6032           1.1  christos echo "${ECHO_T}$with_no_leaks" >&6
   6033           1.1  christos 
   6034           1.1  christos if test "$with_no_leaks" = yes ; then
   6035       1.1.1.4  christos 
   6036       1.1.1.4  christos cat >>confdefs.h <<\EOF
   6037           1.1  christos #define NO_LEAKS 1
   6038           1.1  christos EOF
   6039           1.1  christos 
   6040       1.1.1.4  christos cat >>confdefs.h <<\EOF
   6041       1.1.1.3  christos #define YY_NO_LEAKS 1
   6042       1.1.1.3  christos EOF
   6043       1.1.1.3  christos 
   6044           1.1  christos fi
   6045           1.1  christos 
   6046       1.1.1.6  christos # Extract the first word of "groff", so it can be a program name with args.
   6047       1.1.1.6  christos set dummy groff; ac_word=$2
   6048  1.1.1.7.12.2    martin echo "$as_me:6048: checking for $ac_word" >&5
   6049       1.1.1.6  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   6050       1.1.1.6  christos if test "${ac_cv_path_GROFF_PATH+set}" = set; then
   6051       1.1.1.6  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6052       1.1.1.6  christos else
   6053       1.1.1.6  christos   case $GROFF_PATH in
   6054       1.1.1.6  christos   [\\/]* | ?:[\\/]*)
   6055       1.1.1.6  christos   ac_cv_path_GROFF_PATH="$GROFF_PATH" # Let the user override the test with a path.
   6056       1.1.1.6  christos   ;;
   6057       1.1.1.6  christos   *)
   6058       1.1.1.6  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   6059       1.1.1.6  christos ac_dummy="$PATH"
   6060       1.1.1.6  christos for ac_dir in $ac_dummy; do
   6061       1.1.1.6  christos   IFS=$ac_save_IFS
   6062       1.1.1.6  christos   test -z "$ac_dir" && ac_dir=.
   6063       1.1.1.6  christos   if $as_executable_p "$ac_dir/$ac_word"; then
   6064       1.1.1.6  christos    ac_cv_path_GROFF_PATH="$ac_dir/$ac_word"
   6065  1.1.1.7.12.2    martin    echo "$as_me:6065: found $ac_dir/$ac_word" >&5
   6066       1.1.1.6  christos    break
   6067       1.1.1.6  christos fi
   6068       1.1.1.6  christos done
   6069       1.1.1.6  christos 
   6070       1.1.1.6  christos   test -z "$ac_cv_path_GROFF_PATH" && ac_cv_path_GROFF_PATH="no"
   6071       1.1.1.6  christos   ;;
   6072       1.1.1.6  christos esac
   6073       1.1.1.6  christos fi
   6074       1.1.1.6  christos GROFF_PATH=$ac_cv_path_GROFF_PATH
   6075       1.1.1.6  christos 
   6076       1.1.1.6  christos if test -n "$GROFF_PATH"; then
   6077  1.1.1.7.12.2    martin   echo "$as_me:6077: result: $GROFF_PATH" >&5
   6078       1.1.1.6  christos echo "${ECHO_T}$GROFF_PATH" >&6
   6079       1.1.1.6  christos else
   6080  1.1.1.7.12.2    martin   echo "$as_me:6080: result: no" >&5
   6081       1.1.1.6  christos echo "${ECHO_T}no" >&6
   6082       1.1.1.6  christos fi
   6083       1.1.1.6  christos 
   6084  1.1.1.7.12.1  christos for ac_prog in nroff mandoc
   6085  1.1.1.7.12.1  christos do
   6086  1.1.1.7.12.1  christos   # Extract the first word of "$ac_prog", so it can be a program name with args.
   6087  1.1.1.7.12.1  christos set dummy $ac_prog; ac_word=$2
   6088  1.1.1.7.12.2    martin echo "$as_me:6088: checking for $ac_word" >&5
   6089       1.1.1.6  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   6090       1.1.1.6  christos if test "${ac_cv_path_NROFF_PATH+set}" = set; then
   6091       1.1.1.6  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6092       1.1.1.6  christos else
   6093       1.1.1.6  christos   case $NROFF_PATH in
   6094       1.1.1.6  christos   [\\/]* | ?:[\\/]*)
   6095       1.1.1.6  christos   ac_cv_path_NROFF_PATH="$NROFF_PATH" # Let the user override the test with a path.
   6096       1.1.1.6  christos   ;;
   6097       1.1.1.6  christos   *)
   6098       1.1.1.6  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   6099       1.1.1.6  christos ac_dummy="$PATH"
   6100       1.1.1.6  christos for ac_dir in $ac_dummy; do
   6101       1.1.1.6  christos   IFS=$ac_save_IFS
   6102       1.1.1.6  christos   test -z "$ac_dir" && ac_dir=.
   6103       1.1.1.6  christos   if $as_executable_p "$ac_dir/$ac_word"; then
   6104       1.1.1.6  christos    ac_cv_path_NROFF_PATH="$ac_dir/$ac_word"
   6105  1.1.1.7.12.2    martin    echo "$as_me:6105: found $ac_dir/$ac_word" >&5
   6106       1.1.1.6  christos    break
   6107       1.1.1.6  christos fi
   6108       1.1.1.6  christos done
   6109       1.1.1.6  christos 
   6110       1.1.1.6  christos   ;;
   6111       1.1.1.6  christos esac
   6112       1.1.1.6  christos fi
   6113       1.1.1.6  christos NROFF_PATH=$ac_cv_path_NROFF_PATH
   6114       1.1.1.6  christos 
   6115       1.1.1.6  christos if test -n "$NROFF_PATH"; then
   6116  1.1.1.7.12.2    martin   echo "$as_me:6116: result: $NROFF_PATH" >&5
   6117       1.1.1.6  christos echo "${ECHO_T}$NROFF_PATH" >&6
   6118       1.1.1.6  christos else
   6119  1.1.1.7.12.2    martin   echo "$as_me:6119: result: no" >&5
   6120  1.1.1.7.12.1  christos echo "${ECHO_T}no" >&6
   6121  1.1.1.7.12.1  christos fi
   6122  1.1.1.7.12.1  christos 
   6123  1.1.1.7.12.1  christos   test -n "$NROFF_PATH" && break
   6124  1.1.1.7.12.1  christos done
   6125  1.1.1.7.12.1  christos test -n "$NROFF_PATH" || NROFF_PATH="no"
   6126  1.1.1.7.12.1  christos 
   6127  1.1.1.7.12.1  christos # Extract the first word of "tbl", so it can be a program name with args.
   6128  1.1.1.7.12.1  christos set dummy tbl; ac_word=$2
   6129  1.1.1.7.12.2    martin echo "$as_me:6129: checking for $ac_word" >&5
   6130  1.1.1.7.12.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   6131  1.1.1.7.12.1  christos if test "${ac_cv_path_TBL_PATH+set}" = set; then
   6132  1.1.1.7.12.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6133  1.1.1.7.12.1  christos else
   6134  1.1.1.7.12.1  christos   case $TBL_PATH in
   6135  1.1.1.7.12.1  christos   [\\/]* | ?:[\\/]*)
   6136  1.1.1.7.12.1  christos   ac_cv_path_TBL_PATH="$TBL_PATH" # Let the user override the test with a path.
   6137  1.1.1.7.12.1  christos   ;;
   6138  1.1.1.7.12.1  christos   *)
   6139  1.1.1.7.12.1  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   6140  1.1.1.7.12.1  christos ac_dummy="$PATH"
   6141  1.1.1.7.12.1  christos for ac_dir in $ac_dummy; do
   6142  1.1.1.7.12.1  christos   IFS=$ac_save_IFS
   6143  1.1.1.7.12.1  christos   test -z "$ac_dir" && ac_dir=.
   6144  1.1.1.7.12.1  christos   if $as_executable_p "$ac_dir/$ac_word"; then
   6145  1.1.1.7.12.1  christos    ac_cv_path_TBL_PATH="$ac_dir/$ac_word"
   6146  1.1.1.7.12.2    martin    echo "$as_me:6146: found $ac_dir/$ac_word" >&5
   6147  1.1.1.7.12.1  christos    break
   6148  1.1.1.7.12.1  christos fi
   6149  1.1.1.7.12.1  christos done
   6150  1.1.1.7.12.1  christos 
   6151  1.1.1.7.12.1  christos   test -z "$ac_cv_path_TBL_PATH" && ac_cv_path_TBL_PATH="cat"
   6152  1.1.1.7.12.1  christos   ;;
   6153  1.1.1.7.12.1  christos esac
   6154  1.1.1.7.12.1  christos fi
   6155  1.1.1.7.12.1  christos TBL_PATH=$ac_cv_path_TBL_PATH
   6156  1.1.1.7.12.1  christos 
   6157  1.1.1.7.12.1  christos if test -n "$TBL_PATH"; then
   6158  1.1.1.7.12.2    martin   echo "$as_me:6158: result: $TBL_PATH" >&5
   6159  1.1.1.7.12.1  christos echo "${ECHO_T}$TBL_PATH" >&6
   6160  1.1.1.7.12.1  christos else
   6161  1.1.1.7.12.2    martin   echo "$as_me:6161: result: no" >&5
   6162       1.1.1.6  christos echo "${ECHO_T}no" >&6
   6163       1.1.1.6  christos fi
   6164       1.1.1.6  christos 
   6165       1.1.1.6  christos if test "x$GROFF_PATH" = xno
   6166       1.1.1.6  christos then
   6167       1.1.1.6  christos 	NROFF_NOTE=
   6168       1.1.1.6  christos 	GROFF_NOTE="#"
   6169       1.1.1.6  christos else
   6170       1.1.1.6  christos 	NROFF_NOTE="#"
   6171       1.1.1.6  christos 	GROFF_NOTE=
   6172       1.1.1.6  christos fi
   6173       1.1.1.6  christos 
   6174  1.1.1.7.12.1  christos case "x${with_man2html}" in
   6175  1.1.1.7.12.1  christos (xno)
   6176  1.1.1.7.12.1  christos 	cf_man2html=no
   6177  1.1.1.7.12.1  christos 	;;
   6178  1.1.1.7.12.1  christos (x|xyes)
   6179  1.1.1.7.12.1  christos 	# Extract the first word of "man2html", so it can be a program name with args.
   6180  1.1.1.7.12.1  christos set dummy man2html; ac_word=$2
   6181  1.1.1.7.12.2    martin echo "$as_me:6181: checking for $ac_word" >&5
   6182  1.1.1.7.12.1  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   6183  1.1.1.7.12.1  christos if test "${ac_cv_path_cf_man2html+set}" = set; then
   6184  1.1.1.7.12.1  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6185  1.1.1.7.12.1  christos else
   6186  1.1.1.7.12.1  christos   case $cf_man2html in
   6187  1.1.1.7.12.1  christos   [\\/]* | ?:[\\/]*)
   6188  1.1.1.7.12.1  christos   ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path.
   6189  1.1.1.7.12.1  christos   ;;
   6190  1.1.1.7.12.1  christos   *)
   6191  1.1.1.7.12.1  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   6192  1.1.1.7.12.1  christos ac_dummy="$PATH"
   6193  1.1.1.7.12.1  christos for ac_dir in $ac_dummy; do
   6194  1.1.1.7.12.1  christos   IFS=$ac_save_IFS
   6195  1.1.1.7.12.1  christos   test -z "$ac_dir" && ac_dir=.
   6196  1.1.1.7.12.1  christos   if $as_executable_p "$ac_dir/$ac_word"; then
   6197  1.1.1.7.12.1  christos    ac_cv_path_cf_man2html="$ac_dir/$ac_word"
   6198  1.1.1.7.12.2    martin    echo "$as_me:6198: found $ac_dir/$ac_word" >&5
   6199  1.1.1.7.12.1  christos    break
   6200  1.1.1.7.12.1  christos fi
   6201  1.1.1.7.12.1  christos done
   6202  1.1.1.7.12.1  christos 
   6203  1.1.1.7.12.1  christos   test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no"
   6204  1.1.1.7.12.1  christos   ;;
   6205  1.1.1.7.12.1  christos esac
   6206  1.1.1.7.12.1  christos fi
   6207  1.1.1.7.12.1  christos cf_man2html=$ac_cv_path_cf_man2html
   6208  1.1.1.7.12.1  christos 
   6209  1.1.1.7.12.1  christos if test -n "$cf_man2html"; then
   6210  1.1.1.7.12.2    martin   echo "$as_me:6210: result: $cf_man2html" >&5
   6211  1.1.1.7.12.1  christos echo "${ECHO_T}$cf_man2html" >&6
   6212  1.1.1.7.12.1  christos else
   6213  1.1.1.7.12.2    martin   echo "$as_me:6213: result: no" >&5
   6214  1.1.1.7.12.1  christos echo "${ECHO_T}no" >&6
   6215  1.1.1.7.12.1  christos fi
   6216  1.1.1.7.12.1  christos 
   6217  1.1.1.7.12.1  christos 	case "x$cf_man2html" in
   6218  1.1.1.7.12.1  christos 	(x/*)
   6219  1.1.1.7.12.2    martin 		echo "$as_me:6219: checking for the modified Earl Hood script" >&5
   6220  1.1.1.7.12.1  christos echo $ECHO_N "checking for the modified Earl Hood script... $ECHO_C" >&6
   6221  1.1.1.7.12.1  christos 		if ( $cf_man2html -help 2>&1 | grep 'Make an index of headers at the end' >/dev/null )
   6222  1.1.1.7.12.1  christos 		then
   6223  1.1.1.7.12.1  christos 			cf_man2html_ok=yes
   6224  1.1.1.7.12.1  christos 		else
   6225  1.1.1.7.12.1  christos 			cf_man2html=no
   6226  1.1.1.7.12.1  christos 			cf_man2html_ok=no
   6227  1.1.1.7.12.1  christos 		fi
   6228  1.1.1.7.12.2    martin 		echo "$as_me:6228: result: $cf_man2html_ok" >&5
   6229  1.1.1.7.12.1  christos echo "${ECHO_T}$cf_man2html_ok" >&6
   6230  1.1.1.7.12.1  christos 		;;
   6231  1.1.1.7.12.1  christos 	(*)
   6232  1.1.1.7.12.1  christos 		cf_man2html=no
   6233  1.1.1.7.12.1  christos 		;;
   6234  1.1.1.7.12.1  christos 	esac
   6235  1.1.1.7.12.1  christos esac
   6236  1.1.1.7.12.1  christos 
   6237  1.1.1.7.12.2    martin echo "$as_me:6237: checking for program to convert manpage to html" >&5
   6238       1.1.1.6  christos echo $ECHO_N "checking for program to convert manpage to html... $ECHO_C" >&6
   6239       1.1.1.6  christos 
   6240       1.1.1.6  christos # Check whether --with-man2html or --without-man2html was given.
   6241       1.1.1.6  christos if test "${with_man2html+set}" = set; then
   6242       1.1.1.6  christos   withval="$with_man2html"
   6243       1.1.1.6  christos   cf_man2html=$withval
   6244       1.1.1.6  christos else
   6245  1.1.1.7.12.1  christos   cf_man2html=$cf_man2html
   6246       1.1.1.6  christos fi;
   6247       1.1.1.6  christos 
   6248       1.1.1.6  christos cf_with_groff=no
   6249       1.1.1.6  christos 
   6250       1.1.1.6  christos case $cf_man2html in
   6251       1.1.1.6  christos (yes)
   6252  1.1.1.7.12.2    martin 	echo "$as_me:6252: result: man2html" >&5
   6253       1.1.1.6  christos echo "${ECHO_T}man2html" >&6
   6254       1.1.1.6  christos 	# Extract the first word of "man2html", so it can be a program name with args.
   6255       1.1.1.6  christos set dummy man2html; ac_word=$2
   6256  1.1.1.7.12.2    martin echo "$as_me:6256: checking for $ac_word" >&5
   6257       1.1.1.6  christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   6258       1.1.1.6  christos if test "${ac_cv_path_cf_man2html+set}" = set; then
   6259       1.1.1.6  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6260       1.1.1.6  christos else
   6261       1.1.1.6  christos   case $cf_man2html in
   6262       1.1.1.6  christos   [\\/]* | ?:[\\/]*)
   6263       1.1.1.6  christos   ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path.
   6264       1.1.1.6  christos   ;;
   6265       1.1.1.6  christos   *)
   6266       1.1.1.6  christos   ac_save_IFS=$IFS; IFS=$ac_path_separator
   6267       1.1.1.6  christos ac_dummy="$PATH"
   6268       1.1.1.6  christos for ac_dir in $ac_dummy; do
   6269       1.1.1.6  christos   IFS=$ac_save_IFS
   6270       1.1.1.6  christos   test -z "$ac_dir" && ac_dir=.
   6271       1.1.1.6  christos   if $as_executable_p "$ac_dir/$ac_word"; then
   6272       1.1.1.6  christos    ac_cv_path_cf_man2html="$ac_dir/$ac_word"
   6273  1.1.1.7.12.2    martin    echo "$as_me:6273: found $ac_dir/$ac_word" >&5
   6274       1.1.1.6  christos    break
   6275       1.1.1.6  christos fi
   6276       1.1.1.6  christos done
   6277       1.1.1.6  christos 
   6278       1.1.1.6  christos   test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no"
   6279       1.1.1.6  christos   ;;
   6280       1.1.1.6  christos esac
   6281       1.1.1.6  christos fi
   6282       1.1.1.6  christos cf_man2html=$ac_cv_path_cf_man2html
   6283       1.1.1.6  christos 
   6284       1.1.1.6  christos if test -n "$cf_man2html"; then
   6285  1.1.1.7.12.2    martin   echo "$as_me:6285: result: $cf_man2html" >&5
   6286       1.1.1.6  christos echo "${ECHO_T}$cf_man2html" >&6
   6287       1.1.1.6  christos else
   6288  1.1.1.7.12.2    martin   echo "$as_me:6288: result: no" >&5
   6289       1.1.1.6  christos echo "${ECHO_T}no" >&6
   6290       1.1.1.6  christos fi
   6291       1.1.1.6  christos 
   6292       1.1.1.6  christos 	;;
   6293       1.1.1.6  christos (no|groff|*/groff*)
   6294       1.1.1.6  christos 	cf_with_groff=yes
   6295       1.1.1.6  christos 	cf_man2html=$GROFF_PATH
   6296  1.1.1.7.12.2    martin 	echo "$as_me:6296: result: $cf_man2html" >&5
   6297       1.1.1.6  christos echo "${ECHO_T}$cf_man2html" >&6
   6298       1.1.1.6  christos 	;;
   6299       1.1.1.6  christos (*)
   6300  1.1.1.7.12.2    martin 	echo "$as_me:6300: result: $cf_man2html" >&5
   6301       1.1.1.6  christos echo "${ECHO_T}$cf_man2html" >&6
   6302       1.1.1.6  christos 	;;
   6303       1.1.1.6  christos esac
   6304       1.1.1.6  christos 
   6305       1.1.1.6  christos MAN2HTML_TEMP="man2html.tmp"
   6306       1.1.1.6  christos 	cat >$MAN2HTML_TEMP <<CF_EOF
   6307       1.1.1.7  christos #!$SHELL
   6308       1.1.1.6  christos # Temporary script generated by CF_WITH_MAN2HTML
   6309       1.1.1.6  christos # Convert inputs to html, sending result to standard output.
   6310       1.1.1.6  christos #
   6311       1.1.1.6  christos # Parameters:
   6312       1.1.1.6  christos # \${1} = rootname of file to convert
   6313       1.1.1.6  christos # \${2} = suffix of file to convert, e.g., "1"
   6314       1.1.1.6  christos # \${3} = macros to use, e.g., "man"
   6315       1.1.1.6  christos #
   6316       1.1.1.6  christos ROOT=\$1
   6317       1.1.1.6  christos TYPE=\$2
   6318       1.1.1.6  christos MACS=\$3
   6319       1.1.1.6  christos 
   6320       1.1.1.6  christos unset LANG
   6321       1.1.1.6  christos unset LC_ALL
   6322       1.1.1.6  christos unset LC_CTYPE
   6323       1.1.1.6  christos unset LANGUAGE
   6324       1.1.1.6  christos GROFF_NO_SGR=stupid
   6325       1.1.1.6  christos export GROFF_NO_SGR
   6326       1.1.1.6  christos 
   6327       1.1.1.6  christos CF_EOF
   6328       1.1.1.6  christos 
   6329       1.1.1.6  christos if test "x$cf_with_groff" = xyes
   6330       1.1.1.6  christos then
   6331       1.1.1.6  christos 	MAN2HTML_NOTE="$GROFF_NOTE"
   6332       1.1.1.6  christos 	MAN2HTML_PATH="$GROFF_PATH"
   6333       1.1.1.6  christos 	cat >>$MAN2HTML_TEMP <<CF_EOF
   6334  1.1.1.7.12.1  christos $SHELL -c "$TBL_PATH \${ROOT}.\${TYPE} | $GROFF_PATH -P -o0 -I\${ROOT}_ -Thtml -\${MACS}"
   6335       1.1.1.6  christos CF_EOF
   6336       1.1.1.6  christos else
   6337       1.1.1.6  christos 	MAN2HTML_NOTE=""
   6338       1.1.1.6  christos 
   6339       1.1.1.6  christos if test "x$prefix" != xNONE; then
   6340       1.1.1.6  christos 	cf_path_syntax="$prefix"
   6341       1.1.1.6  christos else
   6342       1.1.1.6  christos 	cf_path_syntax="$ac_default_prefix"
   6343       1.1.1.6  christos fi
   6344       1.1.1.6  christos 
   6345       1.1.1.6  christos case ".$cf_man2html" in
   6346       1.1.1.6  christos (.\$\(*\)*|.\'*\'*)
   6347       1.1.1.6  christos 	;;
   6348       1.1.1.6  christos (..|./*|.\\*)
   6349       1.1.1.6  christos 	;;
   6350       1.1.1.6  christos (.[a-zA-Z]:[\\/]*) # OS/2 EMX
   6351       1.1.1.6  christos 	;;
   6352       1.1.1.6  christos (.\${*prefix}*|.\${*dir}*)
   6353       1.1.1.6  christos 	eval cf_man2html="$cf_man2html"
   6354       1.1.1.6  christos 	case ".$cf_man2html" in
   6355       1.1.1.6  christos 	(.NONE/*)
   6356       1.1.1.6  christos 		cf_man2html=`echo $cf_man2html | sed -e s%NONE%$cf_path_syntax%`
   6357       1.1.1.6  christos 		;;
   6358       1.1.1.6  christos 	esac
   6359       1.1.1.6  christos 	;;
   6360       1.1.1.6  christos (.no|.NONE/*)
   6361       1.1.1.6  christos 	cf_man2html=`echo $cf_man2html | sed -e s%NONE%$cf_path_syntax%`
   6362       1.1.1.6  christos 	;;
   6363       1.1.1.6  christos (*)
   6364  1.1.1.7.12.2    martin 	{ { echo "$as_me:6364: error: expected a pathname, not \"$cf_man2html\"" >&5
   6365       1.1.1.6  christos echo "$as_me: error: expected a pathname, not \"$cf_man2html\"" >&2;}
   6366       1.1.1.6  christos    { (exit 1); exit 1; }; }
   6367       1.1.1.6  christos 	;;
   6368       1.1.1.6  christos esac
   6369       1.1.1.6  christos 
   6370       1.1.1.6  christos 	MAN2HTML_PATH="$cf_man2html"
   6371  1.1.1.7.12.2    martin 	echo "$as_me:6371: checking for $cf_man2html top/bottom margins" >&5
   6372       1.1.1.6  christos echo $ECHO_N "checking for $cf_man2html top/bottom margins... $ECHO_C" >&6
   6373       1.1.1.6  christos 
   6374       1.1.1.6  christos 	# for this example, expect 3 lines of content, the remainder is head/foot
   6375       1.1.1.6  christos 	cat >conftest.in <<CF_EOF
   6376       1.1.1.6  christos .TH HEAD1 HEAD2 HEAD3 HEAD4 HEAD5
   6377       1.1.1.6  christos .SH SECTION
   6378       1.1.1.6  christos MARKER
   6379       1.1.1.6  christos CF_EOF
   6380       1.1.1.6  christos 
   6381  1.1.1.7.12.1  christos 	LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out
   6382       1.1.1.6  christos 
   6383       1.1.1.6  christos 	cf_man2html_1st=`fgrep -n MARKER conftest.out |sed -e 's/^[^0-9]*://' -e 's/:.*//'`
   6384       1.1.1.6  christos 	cf_man2html_top=`expr $cf_man2html_1st - 2`
   6385       1.1.1.6  christos 	cf_man2html_bot=`wc -l conftest.out |sed -e 's/[^0-9]//g'`
   6386       1.1.1.6  christos 	cf_man2html_bot=`expr $cf_man2html_bot - 2 - $cf_man2html_top`
   6387       1.1.1.6  christos 	cf_man2html_top_bot="-topm=$cf_man2html_top -botm=$cf_man2html_bot"
   6388       1.1.1.6  christos 
   6389  1.1.1.7.12.2    martin 	echo "$as_me:6389: result: $cf_man2html_top_bot" >&5
   6390       1.1.1.6  christos echo "${ECHO_T}$cf_man2html_top_bot" >&6
   6391       1.1.1.6  christos 
   6392  1.1.1.7.12.2    martin 	echo "$as_me:6392: checking for pagesize to use" >&5
   6393       1.1.1.6  christos echo $ECHO_N "checking for pagesize to use... $ECHO_C" >&6
   6394       1.1.1.6  christos 	for cf_block in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
   6395       1.1.1.6  christos 	do
   6396       1.1.1.6  christos 	cat >>conftest.in <<CF_EOF
   6397       1.1.1.6  christos .nf
   6398       1.1.1.6  christos 0
   6399       1.1.1.6  christos 1
   6400       1.1.1.6  christos 2
   6401       1.1.1.6  christos 3
   6402       1.1.1.6  christos 4
   6403       1.1.1.6  christos 5
   6404       1.1.1.6  christos 6
   6405       1.1.1.6  christos 7
   6406       1.1.1.6  christos 8
   6407       1.1.1.6  christos 9
   6408       1.1.1.6  christos CF_EOF
   6409       1.1.1.6  christos 	done
   6410       1.1.1.6  christos 
   6411  1.1.1.7.12.1  christos 	LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out
   6412  1.1.1.7.12.2    martin 	cf_man2html_page=`fgrep -n HEAD1 conftest.out |sed -n '$p' |sed -e 's/^[^0-9]*://' -e 's/:.*//'`
   6413       1.1.1.6  christos 	test -z "$cf_man2html_page" && cf_man2html_page=99999
   6414       1.1.1.6  christos 	test "$cf_man2html_page" -gt 100 && cf_man2html_page=99999
   6415       1.1.1.6  christos 
   6416       1.1.1.6  christos 	rm -rf conftest*
   6417  1.1.1.7.12.2    martin 	echo "$as_me:6417: result: $cf_man2html_page" >&5
   6418       1.1.1.6  christos echo "${ECHO_T}$cf_man2html_page" >&6
   6419       1.1.1.6  christos 
   6420       1.1.1.6  christos 	cat >>$MAN2HTML_TEMP <<CF_EOF
   6421       1.1.1.6  christos : \${MAN2HTML_PATH=$MAN2HTML_PATH}
   6422       1.1.1.6  christos MAN2HTML_OPTS="\$MAN2HTML_OPTS -index -title="\$ROOT\(\$TYPE\)" -compress -pgsize $cf_man2html_page"
   6423       1.1.1.6  christos case \${TYPE} in
   6424       1.1.1.6  christos (ms)
   6425  1.1.1.7.12.1  christos 	$TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH -\${MACS} | \$MAN2HTML_PATH -topm=0 -botm=0 \$MAN2HTML_OPTS
   6426       1.1.1.6  christos 	;;
   6427       1.1.1.6  christos (*)
   6428  1.1.1.7.12.1  christos 	$TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH -\${MACS} | \$MAN2HTML_PATH $cf_man2html_top_bot \$MAN2HTML_OPTS
   6429       1.1.1.6  christos 	;;
   6430       1.1.1.6  christos esac
   6431       1.1.1.6  christos CF_EOF
   6432       1.1.1.6  christos fi
   6433       1.1.1.6  christos 
   6434       1.1.1.6  christos chmod 700 $MAN2HTML_TEMP
   6435       1.1.1.6  christos 
   6436  1.1.1.7.12.2    martin echo "$as_me:6436: checking for ANSI C header files" >&5
   6437       1.1.1.5  christos echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
   6438       1.1.1.5  christos if test "${ac_cv_header_stdc+set}" = set; then
   6439       1.1.1.5  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6440       1.1.1.5  christos else
   6441       1.1.1.5  christos   cat >conftest.$ac_ext <<_ACEOF
   6442  1.1.1.7.12.2    martin #line 6442 "configure"
   6443       1.1.1.5  christos #include "confdefs.h"
   6444       1.1.1.5  christos #include <stdlib.h>
   6445       1.1.1.5  christos #include <stdarg.h>
   6446       1.1.1.5  christos #include <string.h>
   6447       1.1.1.5  christos #include <float.h>
   6448       1.1.1.5  christos 
   6449       1.1.1.5  christos _ACEOF
   6450  1.1.1.7.12.2    martin if { (eval echo "$as_me:6450: \"$ac_cpp conftest.$ac_ext\"") >&5
   6451       1.1.1.5  christos   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   6452       1.1.1.5  christos   ac_status=$?
   6453       1.1.1.5  christos   egrep -v '^ *\+' conftest.er1 >conftest.err
   6454       1.1.1.5  christos   rm -f conftest.er1
   6455       1.1.1.5  christos   cat conftest.err >&5
   6456  1.1.1.7.12.2    martin   echo "$as_me:6456: \$? = $ac_status" >&5
   6457       1.1.1.5  christos   (exit $ac_status); } >/dev/null; then
   6458       1.1.1.5  christos   if test -s conftest.err; then
   6459       1.1.1.5  christos     ac_cpp_err=$ac_c_preproc_warn_flag
   6460       1.1.1.5  christos   else
   6461       1.1.1.5  christos     ac_cpp_err=
   6462       1.1.1.5  christos   fi
   6463       1.1.1.5  christos else
   6464       1.1.1.5  christos   ac_cpp_err=yes
   6465       1.1.1.5  christos fi
   6466       1.1.1.5  christos if test -z "$ac_cpp_err"; then
   6467       1.1.1.5  christos   ac_cv_header_stdc=yes
   6468       1.1.1.5  christos else
   6469       1.1.1.5  christos   echo "$as_me: failed program was:" >&5
   6470       1.1.1.5  christos   cat conftest.$ac_ext >&5
   6471       1.1.1.5  christos   ac_cv_header_stdc=no
   6472       1.1.1.5  christos fi
   6473       1.1.1.5  christos rm -f conftest.err conftest.$ac_ext
   6474       1.1.1.5  christos 
   6475       1.1.1.5  christos if test $ac_cv_header_stdc = yes; then
   6476       1.1.1.5  christos   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   6477       1.1.1.5  christos   cat >conftest.$ac_ext <<_ACEOF
   6478  1.1.1.7.12.2    martin #line 6478 "configure"
   6479       1.1.1.5  christos #include "confdefs.h"
   6480       1.1.1.5  christos #include <string.h>
   6481       1.1.1.5  christos 
   6482       1.1.1.5  christos _ACEOF
   6483       1.1.1.5  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6484       1.1.1.5  christos   egrep "memchr" >/dev/null 2>&1; then
   6485       1.1.1.5  christos   :
   6486       1.1.1.5  christos else
   6487       1.1.1.5  christos   ac_cv_header_stdc=no
   6488       1.1.1.5  christos fi
   6489       1.1.1.5  christos rm -rf conftest*
   6490       1.1.1.5  christos 
   6491       1.1.1.5  christos fi
   6492       1.1.1.5  christos 
   6493       1.1.1.5  christos if test $ac_cv_header_stdc = yes; then
   6494       1.1.1.5  christos   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   6495       1.1.1.5  christos   cat >conftest.$ac_ext <<_ACEOF
   6496  1.1.1.7.12.2    martin #line 6496 "configure"
   6497       1.1.1.5  christos #include "confdefs.h"
   6498       1.1.1.5  christos #include <stdlib.h>
   6499       1.1.1.5  christos 
   6500       1.1.1.5  christos _ACEOF
   6501       1.1.1.5  christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6502       1.1.1.5  christos   egrep "free" >/dev/null 2>&1; then
   6503       1.1.1.5  christos   :
   6504       1.1.1.5  christos else
   6505       1.1.1.5  christos   ac_cv_header_stdc=no
   6506       1.1.1.5  christos fi
   6507       1.1.1.5  christos rm -rf conftest*
   6508       1.1.1.5  christos 
   6509       1.1.1.5  christos fi
   6510       1.1.1.5  christos 
   6511       1.1.1.5  christos if test $ac_cv_header_stdc = yes; then
   6512       1.1.1.5  christos   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   6513       1.1.1.5  christos   if test "$cross_compiling" = yes; then
   6514       1.1.1.5  christos   :
   6515       1.1.1.5  christos else
   6516       1.1.1.5  christos   cat >conftest.$ac_ext <<_ACEOF
   6517  1.1.1.7.12.2    martin #line 6517 "configure"
   6518       1.1.1.5  christos #include "confdefs.h"
   6519       1.1.1.5  christos #include <ctype.h>
   6520       1.1.1.5  christos #if ((' ' & 0x0FF) == 0x020)
   6521       1.1.1.5  christos # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   6522       1.1.1.5  christos # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   6523       1.1.1.5  christos #else
   6524       1.1.1.5  christos # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
   6525       1.1.1.5  christos                      || ('j' <= (c) && (c) <= 'r') \
   6526       1.1.1.5  christos                      || ('s' <= (c) && (c) <= 'z'))
   6527       1.1.1.5  christos # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   6528       1.1.1.5  christos #endif
   6529       1.1.1.5  christos 
   6530       1.1.1.5  christos #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   6531       1.1.1.5  christos int
   6532  1.1.1.7.12.1  christos main (void)
   6533       1.1.1.5  christos {
   6534       1.1.1.5  christos   int i;
   6535       1.1.1.5  christos   for (i = 0; i < 256; i++)
   6536       1.1.1.5  christos     if (XOR (islower (i), ISLOWER (i))
   6537       1.1.1.5  christos         || toupper (i) != TOUPPER (i))
   6538       1.1.1.5  christos       $ac_main_return(2);
   6539       1.1.1.5  christos   $ac_main_return (0);
   6540       1.1.1.5  christos }
   6541       1.1.1.5  christos _ACEOF
   6542       1.1.1.5  christos rm -f conftest$ac_exeext
   6543  1.1.1.7.12.2    martin if { (eval echo "$as_me:6543: \"$ac_link\"") >&5
   6544       1.1.1.5  christos   (eval $ac_link) 2>&5
   6545       1.1.1.5  christos   ac_status=$?
   6546  1.1.1.7.12.2    martin   echo "$as_me:6546: \$? = $ac_status" >&5
   6547       1.1.1.5  christos   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   6548  1.1.1.7.12.2    martin   { (eval echo "$as_me:6548: \"$ac_try\"") >&5
   6549       1.1.1.5  christos   (eval $ac_try) 2>&5
   6550       1.1.1.5  christos   ac_status=$?
   6551  1.1.1.7.12.2    martin   echo "$as_me:6551: \$? = $ac_status" >&5
   6552       1.1.1.5  christos   (exit $ac_status); }; }; then
   6553       1.1.1.5  christos   :
   6554       1.1.1.5  christos else
   6555       1.1.1.5  christos   echo "$as_me: program exited with status $ac_status" >&5
   6556       1.1.1.5  christos echo "$as_me: failed program was:" >&5
   6557       1.1.1.5  christos cat conftest.$ac_ext >&5
   6558       1.1.1.5  christos ac_cv_header_stdc=no
   6559       1.1.1.5  christos fi
   6560       1.1.1.5  christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   6561       1.1.1.5  christos fi
   6562       1.1.1.5  christos fi
   6563       1.1.1.5  christos fi
   6564  1.1.1.7.12.2    martin echo "$as_me:6564: result: $ac_cv_header_stdc" >&5
   6565       1.1.1.5  christos echo "${ECHO_T}$ac_cv_header_stdc" >&6
   6566       1.1.1.5  christos if test $ac_cv_header_stdc = yes; then
   6567       1.1.1.5  christos 
   6568       1.1.1.5  christos cat >>confdefs.h <<\EOF
   6569       1.1.1.5  christos #define STDC_HEADERS 1
   6570       1.1.1.5  christos EOF
   6571       1.1.1.5  christos 
   6572       1.1.1.5  christos fi
   6573       1.1.1.5  christos 
   6574       1.1.1.5  christos # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   6575       1.1.1.5  christos 
   6576       1.1.1.5  christos for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   6577       1.1.1.5  christos                   inttypes.h stdint.h unistd.h
   6578       1.1.1.5  christos do
   6579       1.1.1.5  christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   6580  1.1.1.7.12.2    martin echo "$as_me:6580: checking for $ac_header" >&5
   6581       1.1.1.5  christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   6582       1.1.1.5  christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
   6583       1.1.1.5  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6584       1.1.1.5  christos else
   6585       1.1.1.5  christos   cat >conftest.$ac_ext <<_ACEOF
   6586  1.1.1.7.12.2    martin #line 6586 "configure"
   6587       1.1.1.5  christos #include "confdefs.h"
   6588       1.1.1.5  christos $ac_includes_default
   6589       1.1.1.5  christos #include <$ac_header>
   6590       1.1.1.5  christos _ACEOF
   6591       1.1.1.5  christos rm -f conftest.$ac_objext
   6592  1.1.1.7.12.2    martin if { (eval echo "$as_me:6592: \"$ac_compile\"") >&5
   6593       1.1.1.5  christos   (eval $ac_compile) 2>&5
   6594       1.1.1.5  christos   ac_status=$?
   6595  1.1.1.7.12.2    martin   echo "$as_me:6595: \$? = $ac_status" >&5
   6596       1.1.1.5  christos   (exit $ac_status); } &&
   6597       1.1.1.5  christos          { ac_try='test -s conftest.$ac_objext'
   6598  1.1.1.7.12.2    martin   { (eval echo "$as_me:6598: \"$ac_try\"") >&5
   6599       1.1.1.5  christos   (eval $ac_try) 2>&5
   6600       1.1.1.5  christos   ac_status=$?
   6601  1.1.1.7.12.2    martin   echo "$as_me:6601: \$? = $ac_status" >&5
   6602       1.1.1.5  christos   (exit $ac_status); }; }; then
   6603       1.1.1.5  christos   eval "$as_ac_Header=yes"
   6604       1.1.1.5  christos else
   6605       1.1.1.5  christos   echo "$as_me: failed program was:" >&5
   6606       1.1.1.5  christos cat conftest.$ac_ext >&5
   6607       1.1.1.5  christos eval "$as_ac_Header=no"
   6608       1.1.1.5  christos fi
   6609       1.1.1.5  christos rm -f conftest.$ac_objext conftest.$ac_ext
   6610       1.1.1.5  christos fi
   6611  1.1.1.7.12.2    martin echo "$as_me:6611: result: `eval echo '${'$as_ac_Header'}'`" >&5
   6612       1.1.1.5  christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   6613       1.1.1.5  christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
   6614       1.1.1.5  christos   cat >>confdefs.h <<EOF
   6615       1.1.1.5  christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   6616       1.1.1.5  christos EOF
   6617       1.1.1.5  christos 
   6618       1.1.1.5  christos fi
   6619       1.1.1.5  christos done
   6620       1.1.1.5  christos 
   6621  1.1.1.7.12.2    martin echo "$as_me:6621: checking for mode_t" >&5
   6622       1.1.1.5  christos echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
   6623       1.1.1.5  christos if test "${ac_cv_type_mode_t+set}" = set; then
   6624       1.1.1.5  christos   echo $ECHO_N "(cached) $ECHO_C" >&6
   6625       1.1.1.5  christos else
   6626       1.1.1.5  christos   cat >conftest.$ac_ext <<_ACEOF
   6627  1.1.1.7.12.2    martin #line 6627 "configure"
   6628       1.1.1.5  christos #include "confdefs.h"
   6629       1.1.1.5  christos $ac_includes_default
   6630       1.1.1.5  christos int
   6631  1.1.1.7.12.1  christos main (void)
   6632       1.1.1.5  christos {
   6633       1.1.1.5  christos if ((mode_t *) 0)
   6634       1.1.1.5  christos   return 0;
   6635       1.1.1.5  christos if (sizeof (mode_t))
   6636       1.1.1.5  christos   return 0;
   6637       1.1.1.5  christos   ;
   6638       1.1.1.5  christos   return 0;
   6639       1.1.1.5  christos }
   6640       1.1.1.5  christos _ACEOF
   6641       1.1.1.5  christos rm -f conftest.$ac_objext
   6642  1.1.1.7.12.2    martin if { (eval echo "$as_me:6642: \"$ac_compile\"") >&5
   6643       1.1.1.5  christos   (eval $ac_compile) 2>&5
   6644       1.1.1.5  christos   ac_status=$?
   6645  1.1.1.7.12.2    martin   echo "$as_me:6645: \$? = $ac_status" >&5
   6646       1.1.1.5  christos   (exit $ac_status); } &&
   6647       1.1.1.5  christos          { ac_try='test -s conftest.$ac_objext'
   6648  1.1.1.7.12.2    martin   { (eval echo "$as_me:6648: \"$ac_try\"") >&5
   6649       1.1.1.5  christos   (eval $ac_try) 2>&5
   6650       1.1.1.5  christos   ac_status=$?
   6651  1.1.1.7.12.2    martin   echo "$as_me:6651: \$? = $ac_status" >&5
   6652       1.1.1.5  christos   (exit $ac_status); }; }; then
   6653       1.1.1.5  christos   ac_cv_type_mode_t=yes
   6654       1.1.1.5  christos else
   6655       1.1.1.5  christos   echo "$as_me: failed program was:" >&5
   6656       1.1.1.5  christos cat conftest.$ac_ext >&5
   6657       1.1.1.5  christos ac_cv_type_mode_t=no
   6658       1.1.1.5  christos fi
   6659       1.1.1.5  christos rm -f conftest.$ac_objext conftest.$ac_ext
   6660       1.1.1.5  christos fi
   6661  1.1.1.7.12.2    martin echo "$as_me:6661: result: $ac_cv_type_mode_t" >&5
   6662       1.1.1.5  christos echo "${ECHO_T}$ac_cv_type_mode_t" >&6
   6663       1.1.1.5  christos if test $ac_cv_type_mode_t = yes; then
   6664       1.1.1.5  christos   :
   6665       1.1.1.5  christos else
   6666       1.1.1.5  christos 
   6667       1.1.1.5  christos cat >>confdefs.h <<EOF
   6668       1.1.1.5  christos #define mode_t int
   6669       1.1.1.5  christos EOF
   6670       1.1.1.5  christos 
   6671       1.1.1.5  christos fi
   6672       1.1.1.5  christos 
   6673           1.1  christos ###	output makefile
   6674           1.1  christos ac_config_files="$ac_config_files makefile"
   6675           1.1  christos cat >confcache <<\_ACEOF
   6676           1.1  christos # This file is a shell script that caches the results of configure
   6677           1.1  christos # tests run on this system so they can be shared between configure
   6678           1.1  christos # scripts and configure runs, see configure's option --config-cache.
   6679           1.1  christos # It is not useful on other systems.  If it contains results you don't
   6680           1.1  christos # want to keep, you may remove or edit it.
   6681           1.1  christos #
   6682           1.1  christos # config.status only pays attention to the cache file if you give it
   6683           1.1  christos # the --recheck option to rerun configure.
   6684           1.1  christos #
   6685           1.1  christos # `ac_cv_env_foo' variables (set or unset) will be overriden when
   6686           1.1  christos # loading this file, other *unset* `ac_cv_foo' will be assigned the
   6687           1.1  christos # following values.
   6688           1.1  christos 
   6689           1.1  christos _ACEOF
   6690           1.1  christos 
   6691           1.1  christos # The following way of writing the cache mishandles newlines in values,
   6692           1.1  christos # but we know of no workaround that is simple, portable, and efficient.
   6693           1.1  christos # So, don't put newlines in cache variables' values.
   6694           1.1  christos # Ultrix sh set writes to stderr and can't be redirected directly,
   6695           1.1  christos # and sets the high bit in the cache file unless we assign to the vars.
   6696           1.1  christos {
   6697           1.1  christos   (set) 2>&1 |
   6698           1.1  christos     case `(ac_space=' '; set | grep ac_space) 2>&1` in
   6699           1.1  christos     *ac_space=\ *)
   6700           1.1  christos       # `set' does not quote correctly, so add quotes (double-quote
   6701           1.1  christos       # substitution turns \\\\ into \\, and sed turns \\ into \).
   6702           1.1  christos       sed -n \
   6703           1.1  christos         "s/'/'\\\\''/g;
   6704           1.1  christos     	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   6705           1.1  christos       ;;
   6706           1.1  christos     *)
   6707           1.1  christos       # `set' quotes correctly as required by POSIX, so do not add quotes.
   6708           1.1  christos       sed -n \
   6709           1.1  christos         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
   6710           1.1  christos       ;;
   6711           1.1  christos     esac;
   6712           1.1  christos } |
   6713           1.1  christos   sed '
   6714           1.1  christos      t clear
   6715           1.1  christos      : clear
   6716           1.1  christos      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   6717           1.1  christos      t end
   6718           1.1  christos      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   6719           1.1  christos      : end' >>confcache
   6720           1.1  christos if cmp -s $cache_file confcache; then :; else
   6721           1.1  christos   if test -w $cache_file; then
   6722           1.1  christos     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
   6723           1.1  christos     cat confcache >$cache_file
   6724           1.1  christos   else
   6725           1.1  christos     echo "not updating unwritable cache $cache_file"
   6726           1.1  christos   fi
   6727           1.1  christos fi
   6728           1.1  christos rm -f confcache
   6729           1.1  christos 
   6730           1.1  christos test "x$prefix" = xNONE && prefix=$ac_default_prefix
   6731           1.1  christos # Let make expand exec_prefix.
   6732           1.1  christos test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   6733           1.1  christos 
   6734           1.1  christos # VPATH may cause trouble with some makes, so we remove $(srcdir),
   6735           1.1  christos # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
   6736           1.1  christos # trailing colons and then remove the whole line if VPATH becomes empty
   6737           1.1  christos # (actually we leave an empty line to preserve line numbers).
   6738           1.1  christos if test "x$srcdir" = x.; then
   6739           1.1  christos   ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
   6740           1.1  christos s/:*\$(srcdir):*/:/;
   6741           1.1  christos s/:*\${srcdir}:*/:/;
   6742           1.1  christos s/:*@srcdir@:*/:/;
   6743           1.1  christos s/^\([^=]*=[ 	]*\):*/\1/;
   6744           1.1  christos s/:*$//;
   6745           1.1  christos s/^[^=]*=[ 	]*$//;
   6746           1.1  christos }'
   6747           1.1  christos fi
   6748           1.1  christos 
   6749           1.1  christos DEFS=-DHAVE_CONFIG_H
   6750           1.1  christos 
   6751           1.1  christos : ${CONFIG_STATUS=./config.status}
   6752           1.1  christos ac_clean_files_save=$ac_clean_files
   6753           1.1  christos ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   6754  1.1.1.7.12.2    martin { echo "$as_me:6754: creating $CONFIG_STATUS" >&5
   6755           1.1  christos echo "$as_me: creating $CONFIG_STATUS" >&6;}
   6756           1.1  christos cat >$CONFIG_STATUS <<_ACEOF
   6757           1.1  christos #! $SHELL
   6758           1.1  christos # Generated automatically by configure.
   6759           1.1  christos # Run this file to recreate the current configuration.
   6760           1.1  christos # Compiler output produced by configure, useful for debugging
   6761           1.1  christos # configure, is in config.log if it exists.
   6762           1.1  christos 
   6763           1.1  christos debug=false
   6764           1.1  christos SHELL=\${CONFIG_SHELL-$SHELL}
   6765           1.1  christos ac_cs_invocation="\$0 \$@"
   6766           1.1  christos 
   6767           1.1  christos _ACEOF
   6768           1.1  christos 
   6769           1.1  christos cat >>$CONFIG_STATUS <<\_ACEOF
   6770           1.1  christos # Be Bourne compatible
   6771           1.1  christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   6772           1.1  christos   emulate sh
   6773           1.1  christos   NULLCMD=:
   6774           1.1  christos elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
   6775           1.1  christos   set -o posix
   6776           1.1  christos fi
   6777           1.1  christos 
   6778           1.1  christos # Name of the executable.
   6779           1.1  christos as_me=`echo "$0" |sed 's,.*[\\/],,'`
   6780           1.1  christos 
   6781           1.1  christos if expr a : '\(a\)' >/dev/null 2>&1; then
   6782           1.1  christos   as_expr=expr
   6783           1.1  christos else
   6784           1.1  christos   as_expr=false
   6785           1.1  christos fi
   6786           1.1  christos 
   6787           1.1  christos rm -f conf$$ conf$$.exe conf$$.file
   6788           1.1  christos echo >conf$$.file
   6789           1.1  christos if ln -s conf$$.file conf$$ 2>/dev/null; then
   6790           1.1  christos   # We could just check for DJGPP; but this test a) works b) is more generic
   6791           1.1  christos   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
   6792           1.1  christos   if test -f conf$$.exe; then
   6793           1.1  christos     # Don't use ln at all; we don't have any links
   6794           1.1  christos     as_ln_s='cp -p'
   6795           1.1  christos   else
   6796           1.1  christos     as_ln_s='ln -s'
   6797           1.1  christos   fi
   6798           1.1  christos elif ln conf$$.file conf$$ 2>/dev/null; then
   6799           1.1  christos   as_ln_s=ln
   6800           1.1  christos else
   6801           1.1  christos   as_ln_s='cp -p'
   6802           1.1  christos fi
   6803           1.1  christos rm -f conf$$ conf$$.exe conf$$.file
   6804           1.1  christos 
   6805           1.1  christos as_executable_p="test -f"
   6806           1.1  christos 
   6807           1.1  christos # Support unset when possible.
   6808           1.1  christos if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
   6809           1.1  christos   as_unset=unset
   6810           1.1  christos else
   6811           1.1  christos   as_unset=false
   6812           1.1  christos fi
   6813           1.1  christos 
   6814           1.1  christos # NLS nuisances.
   6815           1.1  christos $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
   6816           1.1  christos $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
   6817           1.1  christos $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
   6818           1.1  christos $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
   6819           1.1  christos $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
   6820           1.1  christos $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
   6821           1.1  christos $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
   6822           1.1  christos $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
   6823           1.1  christos 
   6824           1.1  christos # IFS
   6825           1.1  christos # We need space, tab and new line, in precisely that order.
   6826           1.1  christos as_nl='
   6827           1.1  christos '
   6828           1.1  christos IFS=" 	$as_nl"
   6829           1.1  christos 
   6830           1.1  christos # CDPATH.
   6831           1.1  christos $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
   6832           1.1  christos 
   6833           1.1  christos exec 6>&1
   6834           1.1  christos 
   6835           1.1  christos _ACEOF
   6836           1.1  christos 
   6837           1.1  christos # Files that config.status was made for.
   6838           1.1  christos if test -n "$ac_config_files"; then
   6839           1.1  christos   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
   6840           1.1  christos fi
   6841           1.1  christos 
   6842           1.1  christos if test -n "$ac_config_headers"; then
   6843           1.1  christos   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
   6844           1.1  christos fi
   6845           1.1  christos 
   6846           1.1  christos if test -n "$ac_config_links"; then
   6847           1.1  christos   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
   6848           1.1  christos fi
   6849           1.1  christos 
   6850           1.1  christos if test -n "$ac_config_commands"; then
   6851           1.1  christos   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
   6852           1.1  christos fi
   6853           1.1  christos 
   6854           1.1  christos cat >>$CONFIG_STATUS <<\EOF
   6855           1.1  christos 
   6856           1.1  christos ac_cs_usage="\
   6857           1.1  christos \`$as_me' instantiates files from templates according to the
   6858           1.1  christos current configuration.
   6859           1.1  christos 
   6860           1.1  christos Usage: $0 [OPTIONS] [FILE]...
   6861           1.1  christos 
   6862           1.1  christos   -h, --help       print this help, then exit
   6863           1.1  christos   -V, --version    print version number, then exit
   6864           1.1  christos   -d, --debug      don't remove temporary files
   6865           1.1  christos       --recheck    update $as_me by reconfiguring in the same conditions
   6866           1.1  christos   --file=FILE[:TEMPLATE]
   6867           1.1  christos                    instantiate the configuration file FILE
   6868           1.1  christos   --header=FILE[:TEMPLATE]
   6869           1.1  christos                    instantiate the configuration header FILE
   6870           1.1  christos 
   6871           1.1  christos Configuration files:
   6872           1.1  christos $config_files
   6873           1.1  christos 
   6874           1.1  christos Configuration headers:
   6875           1.1  christos $config_headers
   6876           1.1  christos 
   6877       1.1.1.3  christos Report bugs to <dickey@invisible-island.net>."
   6878           1.1  christos EOF
   6879           1.1  christos 
   6880           1.1  christos cat >>$CONFIG_STATUS <<EOF
   6881           1.1  christos ac_cs_version="\\
   6882           1.1  christos config.status
   6883  1.1.1.7.12.2    martin configured by $0, generated by GNU Autoconf 2.52.20181006,
   6884           1.1  christos   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
   6885           1.1  christos 
   6886           1.1  christos Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
   6887           1.1  christos Free Software Foundation, Inc.
   6888           1.1  christos This config.status script is free software; the Free Software Foundation
   6889           1.1  christos gives unlimited permission to copy, distribute and modify it."
   6890           1.1  christos srcdir=$srcdir
   6891           1.1  christos INSTALL="$INSTALL"
   6892           1.1  christos EOF
   6893           1.1  christos 
   6894           1.1  christos cat >>$CONFIG_STATUS <<\EOF
   6895           1.1  christos # If no file are specified by the user, then we need to provide default
   6896           1.1  christos # value.  By we need to know if files were specified by the user.
   6897           1.1  christos ac_need_defaults=:
   6898           1.1  christos while test $# != 0
   6899           1.1  christos do
   6900           1.1  christos   case $1 in
   6901           1.1  christos   --*=*)
   6902           1.1  christos     ac_option=`expr "x$1" : 'x\([^=]*\)='`
   6903           1.1  christos     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
   6904           1.1  christos     shift
   6905           1.1  christos     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
   6906           1.1  christos     shift
   6907           1.1  christos     ;;
   6908           1.1  christos   -*);;
   6909           1.1  christos   *) # This is not an option, so the user has probably given explicit
   6910           1.1  christos      # arguments.
   6911           1.1  christos      ac_need_defaults=false;;
   6912           1.1  christos   esac
   6913           1.1  christos 
   6914           1.1  christos   case $1 in
   6915           1.1  christos   # Handling of the options.
   6916           1.1  christos EOF
   6917           1.1  christos cat >>$CONFIG_STATUS <<EOF
   6918           1.1  christos   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   6919           1.1  christos     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
   6920           1.1  christos     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
   6921           1.1  christos EOF
   6922           1.1  christos cat >>$CONFIG_STATUS <<\EOF
   6923           1.1  christos   --version | --vers* | -V )
   6924           1.1  christos     echo "$ac_cs_version"; exit 0 ;;
   6925           1.1  christos   --he | --h)
   6926           1.1  christos     # Conflict between --help and --header
   6927  1.1.1.7.12.2    martin     { { echo "$as_me:6927: error: ambiguous option: $1
   6928           1.1  christos Try \`$0 --help' for more information." >&5
   6929           1.1  christos echo "$as_me: error: ambiguous option: $1
   6930           1.1  christos Try \`$0 --help' for more information." >&2;}
   6931           1.1  christos    { (exit 1); exit 1; }; };;
   6932           1.1  christos   --help | --hel | -h )
   6933           1.1  christos     echo "$ac_cs_usage"; exit 0 ;;
   6934           1.1  christos   --debug | --d* | -d )
   6935           1.1  christos     debug=: ;;
   6936           1.1  christos   --file | --fil | --fi | --f )
   6937           1.1  christos     shift
   6938           1.1  christos     CONFIG_FILES="$CONFIG_FILES $1"
   6939           1.1  christos     ac_need_defaults=false;;
   6940           1.1  christos   --header | --heade | --head | --hea )
   6941           1.1  christos     shift
   6942           1.1  christos     CONFIG_HEADERS="$CONFIG_HEADERS $1"
   6943           1.1  christos     ac_need_defaults=false;;
   6944           1.1  christos 
   6945           1.1  christos   # This is an error.
   6946  1.1.1.7.12.2    martin   -*) { { echo "$as_me:6946: error: unrecognized option: $1
   6947           1.1  christos Try \`$0 --help' for more information." >&5
   6948           1.1  christos echo "$as_me: error: unrecognized option: $1
   6949           1.1  christos Try \`$0 --help' for more information." >&2;}
   6950           1.1  christos    { (exit 1); exit 1; }; } ;;
   6951           1.1  christos 
   6952           1.1  christos   *) ac_config_targets="$ac_config_targets $1" ;;
   6953           1.1  christos 
   6954           1.1  christos   esac
   6955           1.1  christos   shift
   6956           1.1  christos done
   6957           1.1  christos 
   6958           1.1  christos exec 5>>config.log
   6959           1.1  christos cat >&5 << _ACEOF
   6960           1.1  christos 
   6961           1.1  christos ## ----------------------- ##
   6962           1.1  christos ## Running config.status.  ##
   6963           1.1  christos ## ----------------------- ##
   6964           1.1  christos 
   6965  1.1.1.7.12.2    martin This file was extended by $as_me 2.52.20181006, executed with
   6966           1.1  christos   CONFIG_FILES    = $CONFIG_FILES
   6967           1.1  christos   CONFIG_HEADERS  = $CONFIG_HEADERS
   6968           1.1  christos   CONFIG_LINKS    = $CONFIG_LINKS
   6969           1.1  christos   CONFIG_COMMANDS = $CONFIG_COMMANDS
   6970           1.1  christos   > $ac_cs_invocation
   6971           1.1  christos on `(hostname || uname -n) 2>/dev/null | sed 1q`
   6972           1.1  christos 
   6973           1.1  christos _ACEOF
   6974           1.1  christos EOF
   6975           1.1  christos 
   6976           1.1  christos cat >>$CONFIG_STATUS <<\EOF
   6977           1.1  christos for ac_config_target in $ac_config_targets
   6978           1.1  christos do
   6979           1.1  christos   case "$ac_config_target" in
   6980           1.1  christos   # Handling of arguments.
   6981           1.1  christos   "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;;
   6982           1.1  christos   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;;
   6983  1.1.1.7.12.2    martin   *) { { echo "$as_me:6983: error: invalid argument: $ac_config_target" >&5
   6984           1.1  christos echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   6985           1.1  christos    { (exit 1); exit 1; }; };;
   6986           1.1  christos   esac
   6987           1.1  christos done
   6988           1.1  christos 
   6989           1.1  christos # If the user did not use the arguments to specify the items to instantiate,
   6990           1.1  christos # then the envvar interface is used.  Set only those that are not.
   6991           1.1  christos # We use the long form for the default assignment because of an extremely
   6992           1.1  christos # bizarre bug on SunOS 4.1.3.
   6993           1.1  christos if $ac_need_defaults; then
   6994           1.1  christos   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   6995           1.1  christos   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   6996           1.1  christos fi
   6997           1.1  christos 
   6998           1.1  christos # Create a temporary directory, and hook for its removal unless debugging.
   6999           1.1  christos $debug ||
   7000           1.1  christos {
   7001           1.1  christos   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
   7002           1.1  christos   trap '{ (exit 1); exit 1; }' 1 2 13 15
   7003           1.1  christos }
   7004           1.1  christos 
   7005           1.1  christos # Create a (secure) tmp directory for tmp files.
   7006           1.1  christos : ${TMPDIR=/tmp}
   7007           1.1  christos {
   7008           1.1  christos   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
   7009           1.1  christos   test -n "$tmp" && test -d "$tmp"
   7010           1.1  christos }  ||
   7011           1.1  christos {
   7012           1.1  christos   tmp=$TMPDIR/cs$$-$RANDOM
   7013           1.1  christos   (umask 077 && mkdir $tmp)
   7014           1.1  christos } ||
   7015           1.1  christos {
   7016           1.1  christos    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
   7017           1.1  christos    { (exit 1); exit 1; }
   7018           1.1  christos }
   7019           1.1  christos 
   7020           1.1  christos EOF
   7021           1.1  christos 
   7022           1.1  christos cat >>$CONFIG_STATUS <<EOF
   7023           1.1  christos 
   7024           1.1  christos #
   7025           1.1  christos # CONFIG_FILES section.
   7026           1.1  christos #
   7027           1.1  christos 
   7028           1.1  christos # No need to generate the scripts if there are no CONFIG_FILES.
   7029           1.1  christos # This happens for instance when ./config.status config.h
   7030           1.1  christos if test -n "\$CONFIG_FILES"; then
   7031           1.1  christos   # Protect against being on the right side of a sed subst in config.status.
   7032           1.1  christos   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
   7033           1.1  christos    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
   7034           1.1  christos s,@SHELL@,$SHELL,;t t
   7035           1.1  christos s,@exec_prefix@,$exec_prefix,;t t
   7036           1.1  christos s,@prefix@,$prefix,;t t
   7037           1.1  christos s,@program_transform_name@,$program_transform_name,;t t
   7038           1.1  christos s,@bindir@,$bindir,;t t
   7039           1.1  christos s,@sbindir@,$sbindir,;t t
   7040           1.1  christos s,@libexecdir@,$libexecdir,;t t
   7041       1.1.1.4  christos s,@datarootdir@,$datarootdir,;t t
   7042           1.1  christos s,@datadir@,$datadir,;t t
   7043           1.1  christos s,@sysconfdir@,$sysconfdir,;t t
   7044           1.1  christos s,@sharedstatedir@,$sharedstatedir,;t t
   7045           1.1  christos s,@localstatedir@,$localstatedir,;t t
   7046  1.1.1.7.12.2    martin s,@runstatedir@,$runstatedir,;t t
   7047           1.1  christos s,@libdir@,$libdir,;t t
   7048           1.1  christos s,@includedir@,$includedir,;t t
   7049           1.1  christos s,@oldincludedir@,$oldincludedir,;t t
   7050           1.1  christos s,@infodir@,$infodir,;t t
   7051           1.1  christos s,@mandir@,$mandir,;t t
   7052           1.1  christos s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
   7053           1.1  christos s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
   7054           1.1  christos s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
   7055           1.1  christos s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
   7056           1.1  christos s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
   7057           1.1  christos s,@build_alias@,$build_alias,;t t
   7058           1.1  christos s,@host_alias@,$host_alias,;t t
   7059           1.1  christos s,@target_alias@,$target_alias,;t t
   7060           1.1  christos s,@ECHO_C@,$ECHO_C,;t t
   7061           1.1  christos s,@ECHO_N@,$ECHO_N,;t t
   7062           1.1  christos s,@ECHO_T@,$ECHO_T,;t t
   7063           1.1  christos s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
   7064           1.1  christos s,@DEFS@,$DEFS,;t t
   7065           1.1  christos s,@LIBS@,$LIBS,;t t
   7066           1.1  christos s,@build@,$build,;t t
   7067           1.1  christos s,@build_cpu@,$build_cpu,;t t
   7068           1.1  christos s,@build_vendor@,$build_vendor,;t t
   7069           1.1  christos s,@build_os@,$build_os,;t t
   7070           1.1  christos s,@host@,$host,;t t
   7071           1.1  christos s,@host_cpu@,$host_cpu,;t t
   7072           1.1  christos s,@host_vendor@,$host_vendor,;t t
   7073           1.1  christos s,@host_os@,$host_os,;t t
   7074           1.1  christos s,@target@,$target,;t t
   7075           1.1  christos s,@target_cpu@,$target_cpu,;t t
   7076           1.1  christos s,@target_vendor@,$target_vendor,;t t
   7077           1.1  christos s,@target_os@,$target_os,;t t
   7078           1.1  christos s,@CC@,$CC,;t t
   7079           1.1  christos s,@CFLAGS@,$CFLAGS,;t t
   7080           1.1  christos s,@LDFLAGS@,$LDFLAGS,;t t
   7081           1.1  christos s,@CPPFLAGS@,$CPPFLAGS,;t t
   7082           1.1  christos s,@ac_ct_CC@,$ac_ct_CC,;t t
   7083           1.1  christos s,@EXEEXT@,$EXEEXT,;t t
   7084           1.1  christos s,@OBJEXT@,$OBJEXT,;t t
   7085       1.1.1.4  christos s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
   7086           1.1  christos s,@SET_MAKE@,$SET_MAKE,;t t
   7087           1.1  christos s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
   7088           1.1  christos s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
   7089           1.1  christos s,@INSTALL_DATA@,$INSTALL_DATA,;t t
   7090       1.1.1.2  christos s,@CTAGS@,$CTAGS,;t t
   7091       1.1.1.2  christos s,@ETAGS@,$ETAGS,;t t
   7092       1.1.1.2  christos s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
   7093       1.1.1.2  christos s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
   7094       1.1.1.5  christos s,@AWK@,$AWK,;t t
   7095       1.1.1.2  christos s,@LINT@,$LINT,;t t
   7096       1.1.1.2  christos s,@LINT_OPTS@,$LINT_OPTS,;t t
   7097       1.1.1.3  christos s,@CPP@,$CPP,;t t
   7098       1.1.1.5  christos s,@SKELETON@,$SKELETON,;t t
   7099           1.1  christos s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
   7100           1.1  christos s,@ECHO_LT@,$ECHO_LT,;t t
   7101           1.1  christos s,@ECHO_LD@,$ECHO_LD,;t t
   7102           1.1  christos s,@RULE_CC@,$RULE_CC,;t t
   7103           1.1  christos s,@SHOW_CC@,$SHOW_CC,;t t
   7104           1.1  christos s,@ECHO_CC@,$ECHO_CC,;t t
   7105       1.1.1.6  christos s,@GROFF_PATH@,$GROFF_PATH,;t t
   7106       1.1.1.6  christos s,@NROFF_PATH@,$NROFF_PATH,;t t
   7107  1.1.1.7.12.1  christos s,@TBL_PATH@,$TBL_PATH,;t t
   7108       1.1.1.6  christos s,@GROFF_NOTE@,$GROFF_NOTE,;t t
   7109       1.1.1.6  christos s,@NROFF_NOTE@,$NROFF_NOTE,;t t
   7110       1.1.1.6  christos s,@cf_man2html@,$cf_man2html,;t t
   7111       1.1.1.6  christos s,@MAN2HTML_NOTE@,$MAN2HTML_NOTE,;t t
   7112       1.1.1.6  christos s,@MAN2HTML_PATH@,$MAN2HTML_PATH,;t t
   7113       1.1.1.6  christos s,@MAN2HTML_TEMP@,$MAN2HTML_TEMP,;t t
   7114           1.1  christos CEOF
   7115           1.1  christos 
   7116           1.1  christos EOF
   7117           1.1  christos 
   7118           1.1  christos   cat >>$CONFIG_STATUS <<\EOF
   7119           1.1  christos   # Split the substitutions into bite-sized pieces for seds with
   7120           1.1  christos   # small command number limits, like on Digital OSF/1 and HP-UX.
   7121           1.1  christos   ac_max_sed_lines=48
   7122           1.1  christos   ac_sed_frag=1 # Number of current file.
   7123           1.1  christos   ac_beg=1 # First line for current file.
   7124           1.1  christos   ac_end=$ac_max_sed_lines # Line after last line for current file.
   7125           1.1  christos   ac_more_lines=:
   7126           1.1  christos   ac_sed_cmds=
   7127           1.1  christos   while $ac_more_lines; do
   7128           1.1  christos     if test $ac_beg -gt 1; then
   7129           1.1  christos       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
   7130           1.1  christos     else
   7131           1.1  christos       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
   7132           1.1  christos     fi
   7133           1.1  christos     if test ! -s $tmp/subs.frag; then
   7134           1.1  christos       ac_more_lines=false
   7135           1.1  christos     else
   7136           1.1  christos       # The purpose of the label and of the branching condition is to
   7137           1.1  christos       # speed up the sed processing (if there are no `@' at all, there
   7138           1.1  christos       # is no need to browse any of the substitutions).
   7139           1.1  christos       # These are the two extra sed commands mentioned above.
   7140           1.1  christos       (echo ':t
   7141           1.1  christos   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
   7142       1.1.1.7  christos       # It is possible to make a multiline substitution using escaped newlines.
   7143       1.1.1.7  christos       # Ensure that we do not split the substitution between script fragments.
   7144       1.1.1.7  christos       ac_BEG=$ac_end
   7145       1.1.1.7  christos       ac_END=`expr $ac_end + $ac_max_sed_lines`
   7146       1.1.1.7  christos       sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
   7147       1.1.1.7  christos       if test -s $tmp/subs.next; then
   7148       1.1.1.7  christos         grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
   7149       1.1.1.7  christos         if test ! -s $tmp/subs.edit; then
   7150       1.1.1.7  christos           grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
   7151       1.1.1.7  christos           if test ! -s $tmp/subs.edit; then
   7152       1.1.1.7  christos             if test $ac_beg -gt 1; then
   7153       1.1.1.7  christos               ac_end=`expr $ac_end - 1`
   7154       1.1.1.7  christos               continue
   7155       1.1.1.7  christos             fi
   7156       1.1.1.7  christos           fi
   7157       1.1.1.7  christos         fi
   7158       1.1.1.7  christos       fi
   7159       1.1.1.7  christos 
   7160           1.1  christos       if test -z "$ac_sed_cmds"; then
   7161       1.1.1.7  christos         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
   7162           1.1  christos       else
   7163       1.1.1.7  christos         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
   7164           1.1  christos       fi
   7165           1.1  christos       ac_sed_frag=`expr $ac_sed_frag + 1`
   7166           1.1  christos       ac_beg=$ac_end
   7167           1.1  christos       ac_end=`expr $ac_end + $ac_max_sed_lines`
   7168           1.1  christos     fi
   7169           1.1  christos   done
   7170           1.1  christos   if test -z "$ac_sed_cmds"; then
   7171           1.1  christos     ac_sed_cmds=cat
   7172           1.1  christos   fi
   7173           1.1  christos fi # test -n "$CONFIG_FILES"
   7174           1.1  christos 
   7175           1.1  christos EOF
   7176           1.1  christos cat >>$CONFIG_STATUS <<\EOF
   7177           1.1  christos for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
   7178           1.1  christos   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
   7179           1.1  christos   case $ac_file in
   7180           1.1  christos   - | *:- | *:-:* ) # input from stdin
   7181           1.1  christos         cat >$tmp/stdin
   7182           1.1  christos         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   7183           1.1  christos         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   7184           1.1  christos   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   7185           1.1  christos         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   7186           1.1  christos   * )   ac_file_in=$ac_file.in ;;
   7187           1.1  christos   esac
   7188           1.1  christos 
   7189           1.1  christos   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
   7190           1.1  christos   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   7191           1.1  christos          X"$ac_file" : 'X\(//\)[^/]' \| \
   7192           1.1  christos          X"$ac_file" : 'X\(//\)$' \| \
   7193           1.1  christos          X"$ac_file" : 'X\(/\)' \| \
   7194           1.1  christos          .     : '\(.\)' 2>/dev/null ||
   7195           1.1  christos echo X"$ac_file" |
   7196           1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   7197           1.1  christos   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   7198           1.1  christos   	  /^X\(\/\/\)$/{ s//\1/; q; }
   7199           1.1  christos   	  /^X\(\/\).*/{ s//\1/; q; }
   7200           1.1  christos   	  s/.*/./; q'`
   7201           1.1  christos   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
   7202           1.1  christos     { case "$ac_dir" in
   7203           1.1  christos   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
   7204           1.1  christos   *)                      as_incr_dir=.;;
   7205           1.1  christos esac
   7206           1.1  christos as_dummy="$ac_dir"
   7207           1.1  christos for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
   7208           1.1  christos   case $as_mkdir_dir in
   7209           1.1  christos     # Skip DOS drivespec
   7210           1.1  christos     ?:) as_incr_dir=$as_mkdir_dir ;;
   7211           1.1  christos     *)
   7212           1.1  christos       as_incr_dir=$as_incr_dir/$as_mkdir_dir
   7213           1.1  christos       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
   7214           1.1  christos     ;;
   7215           1.1  christos   esac
   7216           1.1  christos done; }
   7217           1.1  christos 
   7218           1.1  christos     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
   7219           1.1  christos     # A "../" for each directory in $ac_dir_suffix.
   7220           1.1  christos     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
   7221           1.1  christos   else
   7222           1.1  christos     ac_dir_suffix= ac_dots=
   7223           1.1  christos   fi
   7224           1.1  christos 
   7225           1.1  christos   case $srcdir in
   7226           1.1  christos   .)  ac_srcdir=.
   7227           1.1  christos       if test -z "$ac_dots"; then
   7228           1.1  christos          ac_top_srcdir=.
   7229           1.1  christos       else
   7230           1.1  christos          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
   7231           1.1  christos       fi ;;
   7232           1.1  christos   [\\/]* | ?:[\\/]* )
   7233           1.1  christos       ac_srcdir=$srcdir$ac_dir_suffix;
   7234           1.1  christos       ac_top_srcdir=$srcdir ;;
   7235           1.1  christos   *) # Relative path.
   7236           1.1  christos     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
   7237           1.1  christos     ac_top_srcdir=$ac_dots$srcdir ;;
   7238           1.1  christos   esac
   7239           1.1  christos 
   7240           1.1  christos   case $INSTALL in
   7241           1.1  christos   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   7242           1.1  christos   *) ac_INSTALL=$ac_dots$INSTALL ;;
   7243           1.1  christos   esac
   7244           1.1  christos 
   7245           1.1  christos   if test x"$ac_file" != x-; then
   7246  1.1.1.7.12.2    martin     { echo "$as_me:7246: creating $ac_file" >&5
   7247           1.1  christos echo "$as_me: creating $ac_file" >&6;}
   7248           1.1  christos     rm -f "$ac_file"
   7249           1.1  christos   fi
   7250           1.1  christos   # Let's still pretend it is `configure' which instantiates (i.e., don't
   7251           1.1  christos   # use $as_me), people would be surprised to read:
   7252           1.1  christos   #    /* config.h.  Generated automatically by config.status.  */
   7253           1.1  christos   configure_input="Generated automatically from `echo $ac_file_in |
   7254           1.1  christos                                                  sed 's,.*/,,'` by configure."
   7255           1.1  christos 
   7256           1.1  christos   # First look for the input files in the build tree, otherwise in the
   7257           1.1  christos   # src tree.
   7258           1.1  christos   ac_file_inputs=`IFS=:
   7259           1.1  christos     for f in $ac_file_in; do
   7260           1.1  christos       case $f in
   7261           1.1  christos       -) echo $tmp/stdin ;;
   7262           1.1  christos       [\\/$]*)
   7263           1.1  christos          # Absolute (can't be DOS-style, as IFS=:)
   7264  1.1.1.7.12.2    martin          test -f "$f" || { { echo "$as_me:7264: error: cannot find input file: $f" >&5
   7265           1.1  christos echo "$as_me: error: cannot find input file: $f" >&2;}
   7266           1.1  christos    { (exit 1); exit 1; }; }
   7267           1.1  christos          echo $f;;
   7268           1.1  christos       *) # Relative
   7269           1.1  christos          if test -f "$f"; then
   7270           1.1  christos            # Build tree
   7271           1.1  christos            echo $f
   7272           1.1  christos          elif test -f "$srcdir/$f"; then
   7273           1.1  christos            # Source tree
   7274           1.1  christos            echo $srcdir/$f
   7275           1.1  christos          else
   7276           1.1  christos            # /dev/null tree
   7277  1.1.1.7.12.2    martin            { { echo "$as_me:7277: error: cannot find input file: $f" >&5
   7278           1.1  christos echo "$as_me: error: cannot find input file: $f" >&2;}
   7279           1.1  christos    { (exit 1); exit 1; }; }
   7280           1.1  christos          fi;;
   7281           1.1  christos       esac
   7282           1.1  christos     done` || { (exit 1); exit 1; }
   7283           1.1  christos EOF
   7284       1.1.1.4  christos cat >>$CONFIG_STATUS <<\EOF
   7285       1.1.1.4  christos   ac_warn_datarootdir=no
   7286       1.1.1.4  christos   if test x"$ac_file" != x-; then
   7287       1.1.1.4  christos     for ac_item in $ac_file_inputs
   7288       1.1.1.4  christos     do
   7289       1.1.1.4  christos       ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
   7290       1.1.1.4  christos       if test -n "$ac_seen"; then
   7291       1.1.1.4  christos         ac_used=`grep '@datarootdir@' $ac_item`
   7292       1.1.1.4  christos         if test -z "$ac_used"; then
   7293  1.1.1.7.12.2    martin           { echo "$as_me:7293: WARNING: datarootdir was used implicitly but not set:
   7294       1.1.1.4  christos $ac_seen" >&5
   7295       1.1.1.4  christos echo "$as_me: WARNING: datarootdir was used implicitly but not set:
   7296       1.1.1.4  christos $ac_seen" >&2;}
   7297       1.1.1.4  christos           ac_warn_datarootdir=yes
   7298       1.1.1.4  christos         fi
   7299       1.1.1.4  christos       fi
   7300       1.1.1.4  christos       ac_seen=`grep '${datarootdir}' $ac_item`
   7301       1.1.1.4  christos       if test -n "$ac_seen"; then
   7302  1.1.1.7.12.2    martin         { echo "$as_me:7302: WARNING: datarootdir was used explicitly but not set:
   7303       1.1.1.4  christos $ac_seen" >&5
   7304       1.1.1.4  christos echo "$as_me: WARNING: datarootdir was used explicitly but not set:
   7305       1.1.1.4  christos $ac_seen" >&2;}
   7306       1.1.1.4  christos         ac_warn_datarootdir=yes
   7307       1.1.1.4  christos       fi
   7308       1.1.1.4  christos     done
   7309       1.1.1.4  christos   fi
   7310       1.1.1.4  christos 
   7311       1.1.1.4  christos if test "x$ac_warn_datarootdir" = xyes; then
   7312       1.1.1.4  christos   ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
   7313       1.1.1.4  christos fi
   7314       1.1.1.4  christos 
   7315       1.1.1.4  christos EOF
   7316           1.1  christos cat >>$CONFIG_STATUS <<EOF
   7317           1.1  christos   sed "$ac_vpsub
   7318           1.1  christos $extrasub
   7319           1.1  christos EOF
   7320           1.1  christos cat >>$CONFIG_STATUS <<\EOF
   7321           1.1  christos :t
   7322           1.1  christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   7323           1.1  christos s,@configure_input@,$configure_input,;t t
   7324           1.1  christos s,@srcdir@,$ac_srcdir,;t t
   7325           1.1  christos s,@top_srcdir@,$ac_top_srcdir,;t t
   7326           1.1  christos s,@INSTALL@,$ac_INSTALL,;t t
   7327           1.1  christos " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
   7328           1.1  christos   rm -f $tmp/stdin
   7329           1.1  christos   if test x"$ac_file" != x-; then
   7330       1.1.1.4  christos     cp $tmp/out $ac_file
   7331       1.1.1.4  christos 
   7332       1.1.1.4  christos     for ac_name in prefix exec_prefix datarootdir
   7333       1.1.1.4  christos     do
   7334       1.1.1.4  christos         ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
   7335       1.1.1.4  christos         if test -n "$ac_seen"; then
   7336       1.1.1.4  christos             ac_init=`egrep '[ 	]*'$ac_name'[ 	]*=' $ac_file`
   7337       1.1.1.4  christos             if test -z "$ac_init"; then
   7338       1.1.1.4  christos               ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
   7339  1.1.1.7.12.2    martin               { echo "$as_me:7339: WARNING: Variable $ac_name is used but was not set:
   7340       1.1.1.4  christos $ac_seen" >&5
   7341       1.1.1.4  christos echo "$as_me: WARNING: Variable $ac_name is used but was not set:
   7342       1.1.1.4  christos $ac_seen" >&2;}
   7343       1.1.1.4  christos             fi
   7344       1.1.1.4  christos         fi
   7345       1.1.1.4  christos     done
   7346       1.1.1.4  christos     egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
   7347       1.1.1.4  christos     egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
   7348       1.1.1.4  christos     if test -s $tmp/out; then
   7349       1.1.1.4  christos       ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
   7350  1.1.1.7.12.2    martin       { echo "$as_me:7350: WARNING: Some variables may not be substituted:
   7351       1.1.1.4  christos $ac_seen" >&5
   7352       1.1.1.4  christos echo "$as_me: WARNING: Some variables may not be substituted:
   7353       1.1.1.4  christos $ac_seen" >&2;}
   7354       1.1.1.4  christos     fi
   7355           1.1  christos   else
   7356           1.1  christos     cat $tmp/out
   7357           1.1  christos   fi
   7358       1.1.1.4  christos   rm -f $tmp/out
   7359           1.1  christos 
   7360           1.1  christos done
   7361           1.1  christos EOF
   7362           1.1  christos cat >>$CONFIG_STATUS <<\EOF
   7363           1.1  christos 
   7364           1.1  christos #
   7365           1.1  christos # CONFIG_HEADER section.
   7366           1.1  christos #
   7367           1.1  christos 
   7368           1.1  christos # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
   7369           1.1  christos # NAME is the cpp macro being defined and VALUE is the value it is being given.
   7370           1.1  christos #
   7371           1.1  christos # ac_d sets the value in "#define NAME VALUE" lines.
   7372           1.1  christos ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
   7373           1.1  christos ac_dB='[ 	].*$,\1#\2'
   7374           1.1  christos ac_dC=' '
   7375           1.1  christos ac_dD=',;t'
   7376           1.1  christos # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
   7377           1.1  christos ac_iA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
   7378           1.1  christos ac_iB='\([ 	]\),\1#\2define\3'
   7379           1.1  christos ac_iC=' '
   7380           1.1  christos ac_iD='\4,;t'
   7381           1.1  christos # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
   7382           1.1  christos ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
   7383           1.1  christos ac_uB='$,\1#\2define\3'
   7384           1.1  christos ac_uC=' '
   7385           1.1  christos ac_uD=',;t'
   7386           1.1  christos 
   7387           1.1  christos for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
   7388           1.1  christos   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
   7389           1.1  christos   case $ac_file in
   7390           1.1  christos   - | *:- | *:-:* ) # input from stdin
   7391           1.1  christos         cat >$tmp/stdin
   7392           1.1  christos         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   7393           1.1  christos         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   7394           1.1  christos   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   7395           1.1  christos         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   7396           1.1  christos   * )   ac_file_in=$ac_file.in ;;
   7397           1.1  christos   esac
   7398           1.1  christos 
   7399  1.1.1.7.12.2    martin   test x"$ac_file" != x- && { echo "$as_me:7399: creating $ac_file" >&5
   7400           1.1  christos echo "$as_me: creating $ac_file" >&6;}
   7401           1.1  christos 
   7402           1.1  christos   # First look for the input files in the build tree, otherwise in the
   7403           1.1  christos   # src tree.
   7404           1.1  christos   ac_file_inputs=`IFS=:
   7405           1.1  christos     for f in $ac_file_in; do
   7406           1.1  christos       case $f in
   7407           1.1  christos       -) echo $tmp/stdin ;;
   7408           1.1  christos       [\\/$]*)
   7409           1.1  christos          # Absolute (can't be DOS-style, as IFS=:)
   7410  1.1.1.7.12.2    martin          test -f "$f" || { { echo "$as_me:7410: error: cannot find input file: $f" >&5
   7411           1.1  christos echo "$as_me: error: cannot find input file: $f" >&2;}
   7412           1.1  christos    { (exit 1); exit 1; }; }
   7413           1.1  christos          echo $f;;
   7414           1.1  christos       *) # Relative
   7415           1.1  christos          if test -f "$f"; then
   7416           1.1  christos            # Build tree
   7417           1.1  christos            echo $f
   7418           1.1  christos          elif test -f "$srcdir/$f"; then
   7419           1.1  christos            # Source tree
   7420           1.1  christos            echo $srcdir/$f
   7421           1.1  christos          else
   7422           1.1  christos            # /dev/null tree
   7423  1.1.1.7.12.2    martin            { { echo "$as_me:7423: error: cannot find input file: $f" >&5
   7424           1.1  christos echo "$as_me: error: cannot find input file: $f" >&2;}
   7425           1.1  christos    { (exit 1); exit 1; }; }
   7426           1.1  christos          fi;;
   7427           1.1  christos       esac
   7428           1.1  christos     done` || { (exit 1); exit 1; }
   7429           1.1  christos   # Remove the trailing spaces.
   7430           1.1  christos   sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
   7431           1.1  christos 
   7432           1.1  christos EOF
   7433           1.1  christos 
   7434       1.1.1.4  christos # Transform confdefs.h into two sed scripts, `conftest.defines' and
   7435       1.1.1.4  christos # `conftest.undefs', that substitutes the proper values into
   7436       1.1.1.4  christos # config.h.in to produce config.h.  The first handles `#define'
   7437       1.1.1.4  christos # templates, and the second `#undef' templates.
   7438       1.1.1.4  christos # And first: Protect against being on the right side of a sed subst in
   7439       1.1.1.4  christos # config.status.  Protect against being in an unquoted here document
   7440       1.1.1.4  christos # in config.status.
   7441       1.1.1.4  christos rm -f conftest.defines conftest.undefs
   7442       1.1.1.4  christos # Using a here document instead of a string reduces the quoting nightmare.
   7443       1.1.1.4  christos # Putting comments in sed scripts is not portable.
   7444       1.1.1.4  christos #
   7445       1.1.1.4  christos # `end' is used to avoid that the second main sed command (meant for
   7446       1.1.1.4  christos # 0-ary CPP macros) applies to n-ary macro definitions.
   7447       1.1.1.4  christos # See the Autoconf documentation for `clear'.
   7448       1.1.1.4  christos cat >confdef2sed.sed <<\EOF
   7449       1.1.1.4  christos s/[\\&,]/\\&/g
   7450       1.1.1.4  christos s,[\\$`],\\&,g
   7451       1.1.1.4  christos t clear
   7452       1.1.1.4  christos : clear
   7453       1.1.1.4  christos s,^[ 	]*#[ 	]*define[ 	][ 	]*\(\([^ 	(][^ 	(]*\)([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
   7454       1.1.1.4  christos t end
   7455       1.1.1.4  christos s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
   7456       1.1.1.4  christos : end
   7457       1.1.1.4  christos EOF
   7458       1.1.1.4  christos # If some macros were called several times there might be several times
   7459       1.1.1.4  christos # the same #defines, which is useless.  Nevertheless, we may not want to
   7460       1.1.1.4  christos # sort them, since we want the *last* AC-DEFINE to be honored.
   7461       1.1.1.4  christos uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
   7462       1.1.1.4  christos sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
   7463       1.1.1.4  christos sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs
   7464       1.1.1.4  christos rm -f confdef2sed.sed
   7465       1.1.1.4  christos 
   7466       1.1.1.4  christos # This sed command replaces #undef with comments.  This is necessary, for
   7467       1.1.1.4  christos # example, in the case of _POSIX_SOURCE, which is predefined and required
   7468       1.1.1.4  christos # on some systems where configure will not decide to define it.
   7469       1.1.1.4  christos cat >>conftest.undefs <<\EOF
   7470       1.1.1.4  christos s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
   7471       1.1.1.4  christos EOF
   7472       1.1.1.4  christos 
   7473       1.1.1.4  christos # Break up conftest.defines because some shells have a limit on the size
   7474       1.1.1.4  christos # of here documents, and old seds have small limits too (100 cmds).
   7475       1.1.1.4  christos echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
   7476       1.1.1.4  christos echo '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
   7477       1.1.1.4  christos echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
   7478       1.1.1.4  christos echo '  :' >>$CONFIG_STATUS
   7479           1.1  christos rm -f conftest.tail
   7480       1.1.1.4  christos while grep . conftest.defines >/dev/null
   7481           1.1  christos do
   7482       1.1.1.4  christos   # Write a limited-size here document to $tmp/defines.sed.
   7483       1.1.1.4  christos   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
   7484       1.1.1.4  christos   # Speed up: don't consider the non `#define' lines.
   7485       1.1.1.4  christos   echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
   7486       1.1.1.4  christos   # Work around the forget-to-reset-the-flag bug.
   7487       1.1.1.4  christos   echo 't clr' >>$CONFIG_STATUS
   7488       1.1.1.4  christos   echo ': clr' >>$CONFIG_STATUS
   7489       1.1.1.4  christos   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
   7490       1.1.1.4  christos   echo 'CEOF
   7491       1.1.1.4  christos   sed -f $tmp/defines.sed $tmp/in >$tmp/out
   7492       1.1.1.4  christos   rm -f $tmp/in
   7493       1.1.1.4  christos   mv $tmp/out $tmp/in
   7494       1.1.1.4  christos ' >>$CONFIG_STATUS
   7495       1.1.1.4  christos   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
   7496       1.1.1.4  christos   rm -f conftest.defines
   7497       1.1.1.4  christos   mv conftest.tail conftest.defines
   7498       1.1.1.4  christos done
   7499       1.1.1.4  christos rm -f conftest.defines
   7500       1.1.1.4  christos echo '  fi # egrep' >>$CONFIG_STATUS
   7501       1.1.1.4  christos echo >>$CONFIG_STATUS
   7502       1.1.1.4  christos 
   7503       1.1.1.4  christos # Break up conftest.undefs because some shells have a limit on the size
   7504       1.1.1.4  christos # of here documents, and old seds have small limits too (100 cmds).
   7505       1.1.1.4  christos echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
   7506       1.1.1.4  christos rm -f conftest.tail
   7507       1.1.1.4  christos while grep . conftest.undefs >/dev/null
   7508       1.1.1.4  christos do
   7509       1.1.1.4  christos   # Write a limited-size here document to $tmp/undefs.sed.
   7510       1.1.1.4  christos   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
   7511       1.1.1.4  christos   # Speed up: don't consider the non `#undef'
   7512       1.1.1.4  christos   echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
   7513       1.1.1.4  christos   # Work around the forget-to-reset-the-flag bug.
   7514       1.1.1.4  christos   echo 't clr' >>$CONFIG_STATUS
   7515       1.1.1.4  christos   echo ': clr' >>$CONFIG_STATUS
   7516       1.1.1.4  christos   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
   7517       1.1.1.4  christos   echo 'CEOF
   7518       1.1.1.4  christos   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
   7519       1.1.1.4  christos   rm -f $tmp/in
   7520       1.1.1.4  christos   mv $tmp/out $tmp/in
   7521       1.1.1.4  christos ' >>$CONFIG_STATUS
   7522       1.1.1.4  christos   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
   7523       1.1.1.4  christos   rm -f conftest.undefs
   7524       1.1.1.4  christos   mv conftest.tail conftest.undefs
   7525       1.1.1.4  christos done
   7526       1.1.1.4  christos rm -f conftest.undefs
   7527           1.1  christos 
   7528           1.1  christos cat >>$CONFIG_STATUS <<\EOF
   7529           1.1  christos   # Let's still pretend it is `configure' which instantiates (i.e., don't
   7530           1.1  christos   # use $as_me), people would be surprised to read:
   7531           1.1  christos   #    /* config.h.  Generated automatically by config.status.  */
   7532           1.1  christos   if test x"$ac_file" = x-; then
   7533           1.1  christos     echo "/* Generated automatically by configure.  */" >$tmp/config.h
   7534           1.1  christos   else
   7535           1.1  christos     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
   7536           1.1  christos   fi
   7537           1.1  christos   cat $tmp/in >>$tmp/config.h
   7538           1.1  christos   rm -f $tmp/in
   7539           1.1  christos   if test x"$ac_file" != x-; then
   7540           1.1  christos     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
   7541  1.1.1.7.12.2    martin       { echo "$as_me:7541: $ac_file is unchanged" >&5
   7542           1.1  christos echo "$as_me: $ac_file is unchanged" >&6;}
   7543           1.1  christos     else
   7544           1.1  christos       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   7545           1.1  christos          X"$ac_file" : 'X\(//\)[^/]' \| \
   7546           1.1  christos          X"$ac_file" : 'X\(//\)$' \| \
   7547           1.1  christos          X"$ac_file" : 'X\(/\)' \| \
   7548           1.1  christos          .     : '\(.\)' 2>/dev/null ||
   7549           1.1  christos echo X"$ac_file" |
   7550           1.1  christos     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   7551           1.1  christos   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   7552           1.1  christos   	  /^X\(\/\/\)$/{ s//\1/; q; }
   7553           1.1  christos   	  /^X\(\/\).*/{ s//\1/; q; }
   7554           1.1  christos   	  s/.*/./; q'`
   7555           1.1  christos       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
   7556           1.1  christos         { case "$ac_dir" in
   7557           1.1  christos   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
   7558           1.1  christos   *)                      as_incr_dir=.;;
   7559           1.1  christos esac
   7560           1.1  christos as_dummy="$ac_dir"
   7561           1.1  christos for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
   7562           1.1  christos   case $as_mkdir_dir in
   7563           1.1  christos     # Skip DOS drivespec
   7564           1.1  christos     ?:) as_incr_dir=$as_mkdir_dir ;;
   7565           1.1  christos     *)
   7566           1.1  christos       as_incr_dir=$as_incr_dir/$as_mkdir_dir
   7567           1.1  christos       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
   7568           1.1  christos     ;;
   7569           1.1  christos   esac
   7570           1.1  christos done; }
   7571           1.1  christos 
   7572           1.1  christos       fi
   7573           1.1  christos       rm -f $ac_file
   7574           1.1  christos       mv $tmp/config.h $ac_file
   7575           1.1  christos     fi
   7576           1.1  christos   else
   7577           1.1  christos     cat $tmp/config.h
   7578           1.1  christos     rm -f $tmp/config.h
   7579           1.1  christos   fi
   7580           1.1  christos done
   7581           1.1  christos EOF
   7582           1.1  christos 
   7583           1.1  christos cat >>$CONFIG_STATUS <<\EOF
   7584           1.1  christos 
   7585           1.1  christos { (exit 0); exit 0; }
   7586           1.1  christos EOF
   7587           1.1  christos chmod +x $CONFIG_STATUS
   7588           1.1  christos ac_clean_files=$ac_clean_files_save
   7589           1.1  christos 
   7590           1.1  christos # configure is writing to config.log, and then calls config.status.
   7591           1.1  christos # config.status does its own redirection, appending to config.log.
   7592           1.1  christos # Unfortunately, on DOS this fails, as config.log is still kept open
   7593           1.1  christos # by configure, so config.status won't be able to write to it; its
   7594           1.1  christos # output is simply discarded.  So we exec the FD to /dev/null,
   7595           1.1  christos # effectively closing config.log, so it can be properly (re)opened and
   7596           1.1  christos # appended to by config.status.  When coming back to configure, we
   7597           1.1  christos # need to make the FD available again.
   7598           1.1  christos if test "$no_create" != yes; then
   7599           1.1  christos   ac_cs_success=:
   7600           1.1  christos   exec 5>/dev/null
   7601           1.1  christos   $SHELL $CONFIG_STATUS || ac_cs_success=false
   7602           1.1  christos   exec 5>>config.log
   7603           1.1  christos   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   7604           1.1  christos   # would make configure fail if this is the last instruction.
   7605           1.1  christos   $ac_cs_success || { (exit 1); exit 1; }
   7606           1.1  christos fi
   7607           1.1  christos 
   7608       1.1.1.5  christos test -z "$cf_make_docs" && cf_make_docs=0
   7609       1.1.1.5  christos 
   7610       1.1.1.5  christos cf_output=makefile
   7611       1.1.1.5  christos test -f "$cf_output" || cf_output=Makefile
   7612       1.1.1.5  christos 
   7613       1.1.1.5  christos if test "$cf_make_docs" = 0
   7614       1.1.1.5  christos then
   7615       1.1.1.6  christos cat >>$cf_output <<CF_EOF
   7616       1.1.1.5  christos ################################################################################
   7617       1.1.1.6  christos ## generated by CF_MAKE_DOCS
   7618       1.1.1.5  christos .SUFFIXES : .html .1 .man .ps .pdf .txt
   7619       1.1.1.5  christos 
   7620       1.1.1.6  christos ${NROFF_NOTE}.1.txt :
   7621       1.1.1.6  christos ${NROFF_NOTE}	\$(SHELL) -c "tbl \$*.1 | nroff -man | col -bx" >\$@
   7622       1.1.1.5  christos 
   7623       1.1.1.6  christos ${GROFF_NOTE}.ps.pdf :
   7624       1.1.1.6  christos ${GROFF_NOTE}	ps2pdf \$*.ps
   7625       1.1.1.6  christos ${GROFF_NOTE}
   7626       1.1.1.6  christos ${GROFF_NOTE}.1.ps :
   7627       1.1.1.6  christos ${GROFF_NOTE}	\$(SHELL) -c "tbl \$*.1 | groff -man" >\$@
   7628       1.1.1.6  christos ${GROFF_NOTE}
   7629       1.1.1.6  christos ${GROFF_NOTE}.1.txt :
   7630       1.1.1.6  christos ${GROFF_NOTE}	GROFF_NO_SGR=stupid \$(SHELL) -c "tbl \$*.1 | nroff -Tascii -man | col -bx" >\$@
   7631       1.1.1.5  christos 
   7632       1.1.1.6  christos ${MAN2HTML_NOTE}.1.html :
   7633       1.1.1.6  christos ${MAN2HTML_NOTE}	./${MAN2HTML_TEMP} \$* 1 man >\$@
   7634       1.1.1.5  christos 
   7635       1.1.1.5  christos CF_EOF
   7636       1.1.1.5  christos 	cf_make_docs=1
   7637       1.1.1.5  christos fi
   7638       1.1.1.5  christos 
   7639       1.1.1.5  christos for cf_name in yacc
   7640       1.1.1.5  christos do
   7641       1.1.1.5  christos cat >>$cf_output <<CF_EOF
   7642       1.1.1.5  christos ################################################################################
   7643       1.1.1.6  christos ${NROFF_NOTE}docs docs-$cf_name :: $cf_name.txt
   7644       1.1.1.6  christos ${MAN2HTML_NOTE}docs docs-$cf_name :: $cf_name.html
   7645       1.1.1.6  christos ${GROFF_NOTE}docs docs-$cf_name :: $cf_name.pdf
   7646       1.1.1.6  christos ${GROFF_NOTE}docs docs-$cf_name :: $cf_name.ps
   7647       1.1.1.6  christos ${GROFF_NOTE}docs docs-$cf_name :: $cf_name.txt
   7648       1.1.1.5  christos 
   7649       1.1.1.5  christos clean \\
   7650       1.1.1.5  christos docs-clean ::
   7651       1.1.1.6  christos ${NROFF_NOTE}	rm -f $cf_name.txt
   7652       1.1.1.6  christos ${MAN2HTML_NOTE}	rm -f $cf_name.html
   7653       1.1.1.6  christos ${GROFF_NOTE}	rm -f $cf_name.pdf
   7654       1.1.1.6  christos ${GROFF_NOTE}	rm -f $cf_name.ps
   7655       1.1.1.6  christos ${GROFF_NOTE}	rm -f $cf_name.txt
   7656       1.1.1.6  christos 
   7657       1.1.1.6  christos ${NROFF_NOTE}$cf_name.txt  : $cf_name.1
   7658       1.1.1.6  christos ${MAN2HTML_NOTE}$cf_name.html : $cf_name.1
   7659       1.1.1.6  christos ${GROFF_NOTE}$cf_name.pdf  : $cf_name.ps
   7660       1.1.1.6  christos ${GROFF_NOTE}$cf_name.ps   : $cf_name.1
   7661       1.1.1.6  christos ${GROFF_NOTE}$cf_name.txt  : $cf_name.1
   7662       1.1.1.5  christos CF_EOF
   7663       1.1.1.5  christos done
   7664       1.1.1.5  christos 
   7665