"Fossies" - the Fresh Open Source Software Archive

Member "links-1.03/configure" (24 Nov 2011, 182077 Bytes) of archive /linux/www/links-1.03.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "configure": 2.8_vs_1.03.

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