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