"Fossies" - the Fresh Open Source Software Archive

Member "pidentd-3.0.19/configure" (18 Oct 2005, 241785 Bytes) of package /linux/misc/old/pidentd-3.0.19.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.

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