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