Home | History | Annotate | Download | only in openssh
      1 #! /bin/sh
      2 # From configure.ac Revision: 1.583 .
      3 # Guess values for system-dependent variables and create Makefiles.
      4 # Generated by GNU Autoconf 2.61 for OpenSSH Portable.
      5 #
      6 # Report bugs to <openssh-unix-dev (at] mindrot.org>.
      7 #
      8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
      9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
     10 # This configure script is free software; the Free Software Foundation
     11 # gives unlimited permission to copy, distribute and modify it.
     12 ## --------------------- ##
     13 ## M4sh Initialization.  ##
     14 ## --------------------- ##
     15 
     16 # Be more Bourne compatible
     17 DUALCASE=1; export DUALCASE # for MKS sh
     18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     19   emulate sh
     20   NULLCMD=:
     21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     22   # is contrary to our usage.  Disable this feature.
     23   alias -g '${1+"$@"}'='"$@"'
     24   setopt NO_GLOB_SUBST
     25 else
     26   case `(set -o) 2>/dev/null` in
     27   *posix*) set -o posix ;;
     28 esac
     29 
     30 fi
     31 
     32 
     33 
     34 
     35 # PATH needs CR
     36 # Avoid depending upon Character Ranges.
     37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     40 as_cr_digits='0123456789'
     41 as_cr_alnum=$as_cr_Letters$as_cr_digits
     42 
     43 # The user is always right.
     44 if test "${PATH_SEPARATOR+set}" != set; then
     45   echo "#! /bin/sh" >conf$$.sh
     46   echo  "exit 0"   >>conf$$.sh
     47   chmod +x conf$$.sh
     48   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
     49     PATH_SEPARATOR=';'
     50   else
     51     PATH_SEPARATOR=:
     52   fi
     53   rm -f conf$$.sh
     54 fi
     55 
     56 # Support unset when possible.
     57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     58   as_unset=unset
     59 else
     60   as_unset=false
     61 fi
     62 
     63 
     64 # IFS
     65 # We need space, tab and new line, in precisely that order.  Quoting is
     66 # there to prevent editors from complaining about space-tab.
     67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
     68 # splitting by setting IFS to empty value.)
     69 as_nl='
     70 '
     71 IFS=" ""	$as_nl"
     72 
     73 # Find who we are.  Look in the path if we contain no directory separator.
     74 case $0 in
     75   *[\\/]* ) as_myself=$0 ;;
     76   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     77 for as_dir in $PATH
     78 do
     79   IFS=$as_save_IFS
     80   test -z "$as_dir" && as_dir=.
     81   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     82 done
     83 IFS=$as_save_IFS
     84 
     85      ;;
     86 esac
     87 # We did not find ourselves, most probably we were run as `sh COMMAND'
     88 # in which case we are not to be found in the path.
     89 if test "x$as_myself" = x; then
     90   as_myself=$0
     91 fi
     92 if test ! -f "$as_myself"; then
     93   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
     94   { (exit 1); exit 1; }
     95 fi
     96 
     97 # Work around bugs in pre-3.0 UWIN ksh.
     98 for as_var in ENV MAIL MAILPATH
     99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    100 done
    101 PS1='$ '
    102 PS2='> '
    103 PS4='+ '
    104 
    105 # NLS nuisances.
    106 for as_var in \
    107   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    108   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    109   LC_TELEPHONE LC_TIME
    110 do
    111   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    112     eval $as_var=C; export $as_var
    113   else
    114     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    115   fi
    116 done
    117 
    118 # Required to use basename.
    119 if expr a : '\(a\)' >/dev/null 2>&1 &&
    120    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    121   as_expr=expr
    122 else
    123   as_expr=false
    124 fi
    125 
    126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    127   as_basename=basename
    128 else
    129   as_basename=false
    130 fi
    131 
    132 
    133 # Name of the executable.
    134 as_me=`$as_basename -- "$0" ||
    135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    136 	 X"$0" : 'X\(//\)$' \| \
    137 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    138 echo X/"$0" |
    139     sed '/^.*\/\([^/][^/]*\)\/*$/{
    140 	    s//\1/
    141 	    q
    142 	  }
    143 	  /^X\/\(\/\/\)$/{
    144 	    s//\1/
    145 	    q
    146 	  }
    147 	  /^X\/\(\/\).*/{
    148 	    s//\1/
    149 	    q
    150 	  }
    151 	  s/.*/./; q'`
    152 
    153 # CDPATH.
    154 $as_unset CDPATH
    155 
    156 
    157 if test "x$CONFIG_SHELL" = x; then
    158   if (eval ":") 2>/dev/null; then
    159   as_have_required=yes
    160 else
    161   as_have_required=no
    162 fi
    163 
    164   if test $as_have_required = yes && 	 (eval ":
    165 (as_func_return () {
    166   (exit \$1)
    167 }
    168 as_func_success () {
    169   as_func_return 0
    170 }
    171 as_func_failure () {
    172   as_func_return 1
    173 }
    174 as_func_ret_success () {
    175   return 0
    176 }
    177 as_func_ret_failure () {
    178   return 1
    179 }
    180 
    181 exitcode=0
    182 if as_func_success; then
    183   :
    184 else
    185   exitcode=1
    186   echo as_func_success failed.
    187 fi
    188 
    189 if as_func_failure; then
    190   exitcode=1
    191   echo as_func_failure succeeded.
    192 fi
    193 
    194 if as_func_ret_success; then
    195   :
    196 else
    197   exitcode=1
    198   echo as_func_ret_success failed.
    199 fi
    200 
    201 if as_func_ret_failure; then
    202   exitcode=1
    203   echo as_func_ret_failure succeeded.
    204 fi
    205 
    206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
    207   :
    208 else
    209   exitcode=1
    210   echo positional parameters were not saved.
    211 fi
    212 
    213 test \$exitcode = 0) || { (exit 1); exit 1; }
    214 
    215 (
    216   as_lineno_1=\$LINENO
    217   as_lineno_2=\$LINENO
    218   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
    219   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
    220 ") 2> /dev/null; then
    221   :
    222 else
    223   as_candidate_shells=
    224     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    226 do
    227   IFS=$as_save_IFS
    228   test -z "$as_dir" && as_dir=.
    229   case $as_dir in
    230 	 /*)
    231 	   for as_base in sh bash ksh sh5; do
    232 	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
    233 	   done;;
    234        esac
    235 done
    236 IFS=$as_save_IFS
    237 
    238 
    239       for as_shell in $as_candidate_shells $SHELL; do
    240 	 # Try only shells that exist, to save several forks.
    241 	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    242 		{ ("$as_shell") 2> /dev/null <<\_ASEOF
    243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    244   emulate sh
    245   NULLCMD=:
    246   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    247   # is contrary to our usage.  Disable this feature.
    248   alias -g '${1+"$@"}'='"$@"'
    249   setopt NO_GLOB_SUBST
    250 else
    251   case `(set -o) 2>/dev/null` in
    252   *posix*) set -o posix ;;
    253 esac
    254 
    255 fi
    256 
    257 
    258 :
    259 _ASEOF
    260 }; then
    261   CONFIG_SHELL=$as_shell
    262 	       as_have_required=yes
    263 	       if { "$as_shell" 2> /dev/null <<\_ASEOF
    264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    265   emulate sh
    266   NULLCMD=:
    267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    268   # is contrary to our usage.  Disable this feature.
    269   alias -g '${1+"$@"}'='"$@"'
    270   setopt NO_GLOB_SUBST
    271 else
    272   case `(set -o) 2>/dev/null` in
    273   *posix*) set -o posix ;;
    274 esac
    275 
    276 fi
    277 
    278 
    279 :
    280 (as_func_return () {
    281   (exit $1)
    282 }
    283 as_func_success () {
    284   as_func_return 0
    285 }
    286 as_func_failure () {
    287   as_func_return 1
    288 }
    289 as_func_ret_success () {
    290   return 0
    291 }
    292 as_func_ret_failure () {
    293   return 1
    294 }
    295 
    296 exitcode=0
    297 if as_func_success; then
    298   :
    299 else
    300   exitcode=1
    301   echo as_func_success failed.
    302 fi
    303 
    304 if as_func_failure; then
    305   exitcode=1
    306   echo as_func_failure succeeded.
    307 fi
    308 
    309 if as_func_ret_success; then
    310   :
    311 else
    312   exitcode=1
    313   echo as_func_ret_success failed.
    314 fi
    315 
    316 if as_func_ret_failure; then
    317   exitcode=1
    318   echo as_func_ret_failure succeeded.
    319 fi
    320 
    321 if ( set x; as_func_ret_success y && test x = "$1" ); then
    322   :
    323 else
    324   exitcode=1
    325   echo positional parameters were not saved.
    326 fi
    327 
    328 test $exitcode = 0) || { (exit 1); exit 1; }
    329 
    330 (
    331   as_lineno_1=$LINENO
    332   as_lineno_2=$LINENO
    333   test "x$as_lineno_1" != "x$as_lineno_2" &&
    334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
    335 
    336 _ASEOF
    337 }; then
    338   break
    339 fi
    340 
    341 fi
    342 
    343       done
    344 
    345       if test "x$CONFIG_SHELL" != x; then
    346   for as_var in BASH_ENV ENV
    347         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    348         done
    349         export CONFIG_SHELL
    350         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
    351 fi
    352 
    353 
    354     if test $as_have_required = no; then
    355   echo This script requires a shell more modern than all the
    356       echo shells that I found on your system.  Please install a
    357       echo modern shell, or manually run the script under such a
    358       echo shell if you do have one.
    359       { (exit 1); exit 1; }
    360 fi
    361 
    362 
    363 fi
    364 
    365 fi
    366 
    367 
    368 
    369 (eval "as_func_return () {
    370   (exit \$1)
    371 }
    372 as_func_success () {
    373   as_func_return 0
    374 }
    375 as_func_failure () {
    376   as_func_return 1
    377 }
    378 as_func_ret_success () {
    379   return 0
    380 }
    381 as_func_ret_failure () {
    382   return 1
    383 }
    384 
    385 exitcode=0
    386 if as_func_success; then
    387   :
    388 else
    389   exitcode=1
    390   echo as_func_success failed.
    391 fi
    392 
    393 if as_func_failure; then
    394   exitcode=1
    395   echo as_func_failure succeeded.
    396 fi
    397 
    398 if as_func_ret_success; then
    399   :
    400 else
    401   exitcode=1
    402   echo as_func_ret_success failed.
    403 fi
    404 
    405 if as_func_ret_failure; then
    406   exitcode=1
    407   echo as_func_ret_failure succeeded.
    408 fi
    409 
    410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
    411   :
    412 else
    413   exitcode=1
    414   echo positional parameters were not saved.
    415 fi
    416 
    417 test \$exitcode = 0") || {
    418   echo No shell found that supports shell functions.
    419   echo Please tell autoconf@gnu.org about your system,
    420   echo including any error possibly output before this
    421   echo message
    422 }
    423 
    424 
    425 
    426   as_lineno_1=$LINENO
    427   as_lineno_2=$LINENO
    428   test "x$as_lineno_1" != "x$as_lineno_2" &&
    429   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
    430 
    431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    432   # uniformly replaced by the line number.  The first 'sed' inserts a
    433   # line-number line after each line using $LINENO; the second 'sed'
    434   # does the real work.  The second script uses 'N' to pair each
    435   # line-number line with the line containing $LINENO, and appends
    436   # trailing '-' during substitution so that $LINENO is not a special
    437   # case at line end.
    438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    439   # scripts with optimization help from Paolo Bonzini.  Blame Lee
    440   # E. McMahon (1931-1989) for sed's syntax.  :-)
    441   sed -n '
    442     p
    443     /[$]LINENO/=
    444   ' <$as_myself |
    445     sed '
    446       s/[$]LINENO.*/&-/
    447       t lineno
    448       b
    449       :lineno
    450       N
    451       :loop
    452       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    453       t loop
    454       s/-\n.*//
    455     ' >$as_me.lineno &&
    456   chmod +x "$as_me.lineno" ||
    457     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
    458    { (exit 1); exit 1; }; }
    459 
    460   # Don't try to exec as it changes $[0], causing all sort of problems
    461   # (the dirname of $[0] is not the place where we might find the
    462   # original and so on.  Autoconf is especially sensitive to this).
    463   . "./$as_me.lineno"
    464   # Exit status is that of the last command.
    465   exit
    466 }
    467 
    468 
    469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    470   as_dirname=dirname
    471 else
    472   as_dirname=false
    473 fi
    474 
    475 ECHO_C= ECHO_N= ECHO_T=
    476 case `echo -n x` in
    477 -n*)
    478   case `echo 'x\c'` in
    479   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    480   *)   ECHO_C='\c';;
    481   esac;;
    482 *)
    483   ECHO_N='-n';;
    484 esac
    485 
    486 if expr a : '\(a\)' >/dev/null 2>&1 &&
    487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    488   as_expr=expr
    489 else
    490   as_expr=false
    491 fi
    492 
    493 rm -f conf$$ conf$$.exe conf$$.file
    494 if test -d conf$$.dir; then
    495   rm -f conf$$.dir/conf$$.file
    496 else
    497   rm -f conf$$.dir
    498   mkdir conf$$.dir
    499 fi
    500 echo >conf$$.file
    501 if ln -s conf$$.file conf$$ 2>/dev/null; then
    502   as_ln_s='ln -s'
    503   # ... but there are two gotchas:
    504   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    505   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    506   # In both cases, we have to default to `cp -p'.
    507   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    508     as_ln_s='cp -p'
    509 elif ln conf$$.file conf$$ 2>/dev/null; then
    510   as_ln_s=ln
    511 else
    512   as_ln_s='cp -p'
    513 fi
    514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    515 rmdir conf$$.dir 2>/dev/null
    516 
    517 if mkdir -p . 2>/dev/null; then
    518   as_mkdir_p=:
    519 else
    520   test -d ./-p && rmdir ./-p
    521   as_mkdir_p=false
    522 fi
    523 
    524 if test -x / >/dev/null 2>&1; then
    525   as_test_x='test -x'
    526 else
    527   if ls -dL / >/dev/null 2>&1; then
    528     as_ls_L_option=L
    529   else
    530     as_ls_L_option=
    531   fi
    532   as_test_x='
    533     eval sh -c '\''
    534       if test -d "$1"; then
    535         test -d "$1/.";
    536       else
    537 	case $1 in
    538         -*)set "./$1";;
    539 	esac;
    540 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
    541 	???[sx]*):;;*)false;;esac;fi
    542     '\'' sh
    543   '
    544 fi
    545 as_executable_p=$as_test_x
    546 
    547 # Sed expression to map a string onto a valid CPP name.
    548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    549 
    550 # Sed expression to map a string onto a valid variable name.
    551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    552 
    553 
    554 
    555 exec 7<&0 </dev/null 6>&1
    556 
    557 # Name of the host.
    558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    559 # so uname gets run too.
    560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    561 
    562 #
    563 # Initializations.
    564 #
    565 ac_default_prefix=/usr/local
    566 ac_clean_files=
    567 ac_config_libobj_dir=.
    568 LIBOBJS=
    569 cross_compiling=no
    570 subdirs=
    571 MFLAGS=
    572 MAKEFLAGS=
    573 SHELL=${CONFIG_SHELL-/bin/sh}
    574 
    575 # Identity of this package.
    576 PACKAGE_NAME='OpenSSH'
    577 PACKAGE_TARNAME='openssh'
    578 PACKAGE_VERSION='Portable'
    579 PACKAGE_STRING='OpenSSH Portable'
    580 PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
    581 
    582 ac_unique_file="ssh.c"
    583 # Factoring default headers for most tests.
    584 ac_includes_default="\
    585 #include <stdio.h>
    586 #ifdef HAVE_SYS_TYPES_H
    587 # include <sys/types.h>
    588 #endif
    589 #ifdef HAVE_SYS_STAT_H
    590 # include <sys/stat.h>
    591 #endif
    592 #ifdef STDC_HEADERS
    593 # include <stdlib.h>
    594 # include <stddef.h>
    595 #else
    596 # ifdef HAVE_STDLIB_H
    597 #  include <stdlib.h>
    598 # endif
    599 #endif
    600 #ifdef HAVE_STRING_H
    601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    602 #  include <memory.h>
    603 # endif
    604 # include <string.h>
    605 #endif
    606 #ifdef HAVE_STRINGS_H
    607 # include <strings.h>
    608 #endif
    609 #ifdef HAVE_INTTYPES_H
    610 # include <inttypes.h>
    611 #endif
    612 #ifdef HAVE_STDINT_H
    613 # include <stdint.h>
    614 #endif
    615 #ifdef HAVE_UNISTD_H
    616 # include <unistd.h>
    617 #endif"
    618 
    619 ac_subst_vars='SHELL
    620 PATH_SEPARATOR
    621 PACKAGE_NAME
    622 PACKAGE_TARNAME
    623 PACKAGE_VERSION
    624 PACKAGE_STRING
    625 PACKAGE_BUGREPORT
    626 exec_prefix
    627 prefix
    628 program_transform_name
    629 bindir
    630 sbindir
    631 libexecdir
    632 datarootdir
    633 datadir
    634 sysconfdir
    635 sharedstatedir
    636 localstatedir
    637 includedir
    638 oldincludedir
    639 docdir
    640 infodir
    641 htmldir
    642 dvidir
    643 pdfdir
    644 psdir
    645 libdir
    646 localedir
    647 mandir
    648 DEFS
    649 ECHO_C
    650 ECHO_N
    651 ECHO_T
    652 LIBS
    653 build_alias
    654 host_alias
    655 target_alias
    656 CC
    657 CFLAGS
    658 LDFLAGS
    659 CPPFLAGS
    660 ac_ct_CC
    661 EXEEXT
    662 OBJEXT
    663 build
    664 build_cpu
    665 build_vendor
    666 build_os
    667 host
    668 host_cpu
    669 host_vendor
    670 host_os
    671 CPP
    672 GREP
    673 EGREP
    674 AWK
    675 RANLIB
    676 INSTALL_PROGRAM
    677 INSTALL_SCRIPT
    678 INSTALL_DATA
    679 AR
    680 CAT
    681 KILL
    682 PERL
    683 SED
    684 ENT
    685 TEST_MINUS_S_SH
    686 SH
    687 GROFF
    688 NROFF
    689 MANDOC
    690 TEST_SHELL
    691 MANFMT
    692 PATH_GROUPADD_PROG
    693 PATH_USERADD_PROG
    694 MAKE_PACKAGE_SUPPORTED
    695 STARTUP_SCRIPT_SHELL
    696 LOGIN_PROGRAM_FALLBACK
    697 PATH_PASSWD_PROG
    698 LD
    699 PKGCONFIG
    700 LIBEDIT
    701 TEST_SSH_ECC
    702 COMMENT_OUT_ECC
    703 SSH_PRIVSEP_USER
    704 SSHLIBS
    705 SSHDLIBS
    706 KRB5CONF
    707 GSSLIBS
    708 K5LIBS
    709 PRIVSEP_PATH
    710 xauth_path
    711 STRIP_OPT
    712 XAUTH_PATH
    713 MANTYPE
    714 mansubdir
    715 user_path
    716 piddir
    717 TEST_SSH_IPV6
    718 TEST_MALLOC_OPTIONS
    719 UNSUPPORTED_ALGORITHMS
    720 LIBOBJS
    721 LTLIBOBJS'
    722 ac_subst_files=''
    723       ac_precious_vars='build_alias
    724 host_alias
    725 target_alias
    726 CC
    727 CFLAGS
    728 LDFLAGS
    729 LIBS
    730 CPPFLAGS
    731 CPP'
    732 
    733 
    734 # Initialize some variables set by options.
    735 ac_init_help=
    736 ac_init_version=false
    737 # The variables have the same names as the options, with
    738 # dashes changed to underlines.
    739 cache_file=/dev/null
    740 exec_prefix=NONE
    741 no_create=
    742 no_recursion=
    743 prefix=NONE
    744 program_prefix=NONE
    745 program_suffix=NONE
    746 program_transform_name=s,x,x,
    747 silent=
    748 site=
    749 srcdir=
    750 verbose=
    751 x_includes=NONE
    752 x_libraries=NONE
    753 
    754 # Installation directory options.
    755 # These are left unexpanded so users can "make install exec_prefix=/foo"
    756 # and all the variables that are supposed to be based on exec_prefix
    757 # by default will actually change.
    758 # Use braces instead of parens because sh, perl, etc. also accept them.
    759 # (The list follows the same order as the GNU Coding Standards.)
    760 bindir='${exec_prefix}/bin'
    761 sbindir='${exec_prefix}/sbin'
    762 libexecdir='${exec_prefix}/libexec'
    763 datarootdir='${prefix}/share'
    764 datadir='${datarootdir}'
    765 sysconfdir='${prefix}/etc'
    766 sharedstatedir='${prefix}/com'
    767 localstatedir='${prefix}/var'
    768 includedir='${prefix}/include'
    769 oldincludedir='/usr/include'
    770 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    771 infodir='${datarootdir}/info'
    772 htmldir='${docdir}'
    773 dvidir='${docdir}'
    774 pdfdir='${docdir}'
    775 psdir='${docdir}'
    776 libdir='${exec_prefix}/lib'
    777 localedir='${datarootdir}/locale'
    778 mandir='${datarootdir}/man'
    779 
    780 ac_prev=
    781 ac_dashdash=
    782 for ac_option
    783 do
    784   # If the previous option needs an argument, assign it.
    785   if test -n "$ac_prev"; then
    786     eval $ac_prev=\$ac_option
    787     ac_prev=
    788     continue
    789   fi
    790 
    791   case $ac_option in
    792   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    793   *)	ac_optarg=yes ;;
    794   esac
    795 
    796   # Accept the important Cygnus configure options, so we can diagnose typos.
    797 
    798   case $ac_dashdash$ac_option in
    799   --)
    800     ac_dashdash=yes ;;
    801 
    802   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    803     ac_prev=bindir ;;
    804   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    805     bindir=$ac_optarg ;;
    806 
    807   -build | --build | --buil | --bui | --bu)
    808     ac_prev=build_alias ;;
    809   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    810     build_alias=$ac_optarg ;;
    811 
    812   -cache-file | --cache-file | --cache-fil | --cache-fi \
    813   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    814     ac_prev=cache_file ;;
    815   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    816   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    817     cache_file=$ac_optarg ;;
    818 
    819   --config-cache | -C)
    820     cache_file=config.cache ;;
    821 
    822   -datadir | --datadir | --datadi | --datad)
    823     ac_prev=datadir ;;
    824   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    825     datadir=$ac_optarg ;;
    826 
    827   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    828   | --dataroo | --dataro | --datar)
    829     ac_prev=datarootdir ;;
    830   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    831   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    832     datarootdir=$ac_optarg ;;
    833 
    834   -disable-* | --disable-*)
    835     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    836     # Reject names that are not valid shell variable names.
    837     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    838       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    839    { (exit 1); exit 1; }; }
    840     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
    841     eval enable_$ac_feature=no ;;
    842 
    843   -docdir | --docdir | --docdi | --doc | --do)
    844     ac_prev=docdir ;;
    845   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    846     docdir=$ac_optarg ;;
    847 
    848   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    849     ac_prev=dvidir ;;
    850   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    851     dvidir=$ac_optarg ;;
    852 
    853   -enable-* | --enable-*)
    854     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    855     # Reject names that are not valid shell variable names.
    856     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    857       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    858    { (exit 1); exit 1; }; }
    859     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
    860     eval enable_$ac_feature=\$ac_optarg ;;
    861 
    862   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    863   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    864   | --exec | --exe | --ex)
    865     ac_prev=exec_prefix ;;
    866   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    867   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    868   | --exec=* | --exe=* | --ex=*)
    869     exec_prefix=$ac_optarg ;;
    870 
    871   -gas | --gas | --ga | --g)
    872     # Obsolete; use --with-gas.
    873     with_gas=yes ;;
    874 
    875   -help | --help | --hel | --he | -h)
    876     ac_init_help=long ;;
    877   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    878     ac_init_help=recursive ;;
    879   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    880     ac_init_help=short ;;
    881 
    882   -host | --host | --hos | --ho)
    883     ac_prev=host_alias ;;
    884   -host=* | --host=* | --hos=* | --ho=*)
    885     host_alias=$ac_optarg ;;
    886 
    887   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    888     ac_prev=htmldir ;;
    889   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
    890   | --ht=*)
    891     htmldir=$ac_optarg ;;
    892 
    893   -includedir | --includedir | --includedi | --included | --include \
    894   | --includ | --inclu | --incl | --inc)
    895     ac_prev=includedir ;;
    896   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    897   | --includ=* | --inclu=* | --incl=* | --inc=*)
    898     includedir=$ac_optarg ;;
    899 
    900   -infodir | --infodir | --infodi | --infod | --info | --inf)
    901     ac_prev=infodir ;;
    902   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    903     infodir=$ac_optarg ;;
    904 
    905   -libdir | --libdir | --libdi | --libd)
    906     ac_prev=libdir ;;
    907   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    908     libdir=$ac_optarg ;;
    909 
    910   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    911   | --libexe | --libex | --libe)
    912     ac_prev=libexecdir ;;
    913   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    914   | --libexe=* | --libex=* | --libe=*)
    915     libexecdir=$ac_optarg ;;
    916 
    917   -localedir | --localedir | --localedi | --localed | --locale)
    918     ac_prev=localedir ;;
    919   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    920     localedir=$ac_optarg ;;
    921 
    922   -localstatedir | --localstatedir | --localstatedi | --localstated \
    923   | --localstate | --localstat | --localsta | --localst | --locals)
    924     ac_prev=localstatedir ;;
    925   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    926   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    927     localstatedir=$ac_optarg ;;
    928 
    929   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    930     ac_prev=mandir ;;
    931   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    932     mandir=$ac_optarg ;;
    933 
    934   -nfp | --nfp | --nf)
    935     # Obsolete; use --without-fp.
    936     with_fp=no ;;
    937 
    938   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    939   | --no-cr | --no-c | -n)
    940     no_create=yes ;;
    941 
    942   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    943   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    944     no_recursion=yes ;;
    945 
    946   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
    947   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
    948   | --oldin | --oldi | --old | --ol | --o)
    949     ac_prev=oldincludedir ;;
    950   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
    951   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    952   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    953     oldincludedir=$ac_optarg ;;
    954 
    955   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    956     ac_prev=prefix ;;
    957   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    958     prefix=$ac_optarg ;;
    959 
    960   -program-prefix | --program-prefix | --program-prefi | --program-pref \
    961   | --program-pre | --program-pr | --program-p)
    962     ac_prev=program_prefix ;;
    963   -program-prefix=* | --program-prefix=* | --program-prefi=* \
    964   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    965     program_prefix=$ac_optarg ;;
    966 
    967   -program-suffix | --program-suffix | --program-suffi | --program-suff \
    968   | --program-suf | --program-su | --program-s)
    969     ac_prev=program_suffix ;;
    970   -program-suffix=* | --program-suffix=* | --program-suffi=* \
    971   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    972     program_suffix=$ac_optarg ;;
    973 
    974   -program-transform-name | --program-transform-name \
    975   | --program-transform-nam | --program-transform-na \
    976   | --program-transform-n | --program-transform- \
    977   | --program-transform | --program-transfor \
    978   | --program-transfo | --program-transf \
    979   | --program-trans | --program-tran \
    980   | --progr-tra | --program-tr | --program-t)
    981     ac_prev=program_transform_name ;;
    982   -program-transform-name=* | --program-transform-name=* \
    983   | --program-transform-nam=* | --program-transform-na=* \
    984   | --program-transform-n=* | --program-transform-=* \
    985   | --program-transform=* | --program-transfor=* \
    986   | --program-transfo=* | --program-transf=* \
    987   | --program-trans=* | --program-tran=* \
    988   | --progr-tra=* | --program-tr=* | --program-t=*)
    989     program_transform_name=$ac_optarg ;;
    990 
    991   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
    992     ac_prev=pdfdir ;;
    993   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
    994     pdfdir=$ac_optarg ;;
    995 
    996   -psdir | --psdir | --psdi | --psd | --ps)
    997     ac_prev=psdir ;;
    998   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
    999     psdir=$ac_optarg ;;
   1000 
   1001   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1002   | -silent | --silent | --silen | --sile | --sil)
   1003     silent=yes ;;
   1004 
   1005   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1006     ac_prev=sbindir ;;
   1007   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1008   | --sbi=* | --sb=*)
   1009     sbindir=$ac_optarg ;;
   1010 
   1011   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1012   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1013   | --sharedst | --shareds | --shared | --share | --shar \
   1014   | --sha | --sh)
   1015     ac_prev=sharedstatedir ;;
   1016   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1017   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1018   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1019   | --sha=* | --sh=*)
   1020     sharedstatedir=$ac_optarg ;;
   1021 
   1022   -site | --site | --sit)
   1023     ac_prev=site ;;
   1024   -site=* | --site=* | --sit=*)
   1025     site=$ac_optarg ;;
   1026 
   1027   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1028     ac_prev=srcdir ;;
   1029   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1030     srcdir=$ac_optarg ;;
   1031 
   1032   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1033   | --syscon | --sysco | --sysc | --sys | --sy)
   1034     ac_prev=sysconfdir ;;
   1035   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1036   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1037     sysconfdir=$ac_optarg ;;
   1038 
   1039   -target | --target | --targe | --targ | --tar | --ta | --t)
   1040     ac_prev=target_alias ;;
   1041   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1042     target_alias=$ac_optarg ;;
   1043 
   1044   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1045     verbose=yes ;;
   1046 
   1047   -version | --version | --versio | --versi | --vers | -V)
   1048     ac_init_version=: ;;
   1049 
   1050   -with-* | --with-*)
   1051     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1052     # Reject names that are not valid shell variable names.
   1053     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1054       { echo "$as_me: error: invalid package name: $ac_package" >&2
   1055    { (exit 1); exit 1; }; }
   1056     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
   1057     eval with_$ac_package=\$ac_optarg ;;
   1058 
   1059   -without-* | --without-*)
   1060     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1061     # Reject names that are not valid shell variable names.
   1062     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1063       { echo "$as_me: error: invalid package name: $ac_package" >&2
   1064    { (exit 1); exit 1; }; }
   1065     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
   1066     eval with_$ac_package=no ;;
   1067 
   1068   --x)
   1069     # Obsolete; use --with-x.
   1070     with_x=yes ;;
   1071 
   1072   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1073   | --x-incl | --x-inc | --x-in | --x-i)
   1074     ac_prev=x_includes ;;
   1075   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1076   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1077     x_includes=$ac_optarg ;;
   1078 
   1079   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1080   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1081     ac_prev=x_libraries ;;
   1082   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1083   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1084     x_libraries=$ac_optarg ;;
   1085 
   1086   -*) { echo "$as_me: error: unrecognized option: $ac_option
   1087 Try \`$0 --help' for more information." >&2
   1088    { (exit 1); exit 1; }; }
   1089     ;;
   1090 
   1091   *=*)
   1092     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1093     # Reject names that are not valid shell variable names.
   1094     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
   1095       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
   1096    { (exit 1); exit 1; }; }
   1097     eval $ac_envvar=\$ac_optarg
   1098     export $ac_envvar ;;
   1099 
   1100   *)
   1101     # FIXME: should be removed in autoconf 3.0.
   1102     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1103     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1104       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1105     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
   1106     ;;
   1107 
   1108   esac
   1109 done
   1110 
   1111 if test -n "$ac_prev"; then
   1112   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1113   { echo "$as_me: error: missing argument to $ac_option" >&2
   1114    { (exit 1); exit 1; }; }
   1115 fi
   1116 
   1117 # Be sure to have absolute directory names.
   1118 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1119 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1120 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1121 		libdir localedir mandir
   1122 do
   1123   eval ac_val=\$$ac_var
   1124   case $ac_val in
   1125     [\\/$]* | ?:[\\/]* )  continue;;
   1126     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1127   esac
   1128   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
   1129    { (exit 1); exit 1; }; }
   1130 done
   1131 
   1132 # There might be people who depend on the old broken behavior: `$host'
   1133 # used to hold the argument of --host etc.
   1134 # FIXME: To remove some day.
   1135 build=$build_alias
   1136 host=$host_alias
   1137 target=$target_alias
   1138 
   1139 # FIXME: To remove some day.
   1140 if test "x$host_alias" != x; then
   1141   if test "x$build_alias" = x; then
   1142     cross_compiling=maybe
   1143     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
   1144     If a cross compiler is detected then cross compile mode will be used." >&2
   1145   elif test "x$build_alias" != "x$host_alias"; then
   1146     cross_compiling=yes
   1147   fi
   1148 fi
   1149 
   1150 ac_tool_prefix=
   1151 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1152 
   1153 test "$silent" = yes && exec 6>/dev/null
   1154 
   1155 
   1156 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1157 ac_ls_di=`ls -di .` &&
   1158 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1159   { echo "$as_me: error: Working directory cannot be determined" >&2
   1160    { (exit 1); exit 1; }; }
   1161 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1162   { echo "$as_me: error: pwd does not report name of working directory" >&2
   1163    { (exit 1); exit 1; }; }
   1164 
   1165 
   1166 # Find the source files, if location was not specified.
   1167 if test -z "$srcdir"; then
   1168   ac_srcdir_defaulted=yes
   1169   # Try the directory containing this script, then the parent directory.
   1170   ac_confdir=`$as_dirname -- "$0" ||
   1171 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1172 	 X"$0" : 'X\(//\)[^/]' \| \
   1173 	 X"$0" : 'X\(//\)$' \| \
   1174 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   1175 echo X"$0" |
   1176     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1177 	    s//\1/
   1178 	    q
   1179 	  }
   1180 	  /^X\(\/\/\)[^/].*/{
   1181 	    s//\1/
   1182 	    q
   1183 	  }
   1184 	  /^X\(\/\/\)$/{
   1185 	    s//\1/
   1186 	    q
   1187 	  }
   1188 	  /^X\(\/\).*/{
   1189 	    s//\1/
   1190 	    q
   1191 	  }
   1192 	  s/.*/./; q'`
   1193   srcdir=$ac_confdir
   1194   if test ! -r "$srcdir/$ac_unique_file"; then
   1195     srcdir=..
   1196   fi
   1197 else
   1198   ac_srcdir_defaulted=no
   1199 fi
   1200 if test ! -r "$srcdir/$ac_unique_file"; then
   1201   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1202   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
   1203    { (exit 1); exit 1; }; }
   1204 fi
   1205 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1206 ac_abs_confdir=`(
   1207 	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
   1208    { (exit 1); exit 1; }; }
   1209 	pwd)`
   1210 # When building in place, set srcdir=.
   1211 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1212   srcdir=.
   1213 fi
   1214 # Remove unnecessary trailing slashes from srcdir.
   1215 # Double slashes in file names in object file debugging info
   1216 # mess up M-x gdb in Emacs.
   1217 case $srcdir in
   1218 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1219 esac
   1220 for ac_var in $ac_precious_vars; do
   1221   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1222   eval ac_env_${ac_var}_value=\$${ac_var}
   1223   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1224   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1225 done
   1226 
   1227 #
   1228 # Report the --help message.
   1229 #
   1230 if test "$ac_init_help" = "long"; then
   1231   # Omit some internal or obsolete options to make the list less imposing.
   1232   # This message is too long to be a string in the A/UX 3.1 sh.
   1233   cat <<_ACEOF
   1234 \`configure' configures OpenSSH Portable to adapt to many kinds of systems.
   1235 
   1236 Usage: $0 [OPTION]... [VAR=VALUE]...
   1237 
   1238 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1239 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1240 
   1241 Defaults for the options are specified in brackets.
   1242 
   1243 Configuration:
   1244   -h, --help              display this help and exit
   1245       --help=short        display options specific to this package
   1246       --help=recursive    display the short help of all the included packages
   1247   -V, --version           display version information and exit
   1248   -q, --quiet, --silent   do not print \`checking...' messages
   1249       --cache-file=FILE   cache test results in FILE [disabled]
   1250   -C, --config-cache      alias for \`--cache-file=config.cache'
   1251   -n, --no-create         do not create output files
   1252       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1253 
   1254 Installation directories:
   1255   --prefix=PREFIX         install architecture-independent files in PREFIX
   1256 			  [$ac_default_prefix]
   1257   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1258 			  [PREFIX]
   1259 
   1260 By default, \`make install' will install all the files in
   1261 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1262 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1263 for instance \`--prefix=\$HOME'.
   1264 
   1265 For better control, use the options below.
   1266 
   1267 Fine tuning of the installation directories:
   1268   --bindir=DIR           user executables [EPREFIX/bin]
   1269   --sbindir=DIR          system admin executables [EPREFIX/sbin]
   1270   --libexecdir=DIR       program executables [EPREFIX/libexec]
   1271   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
   1272   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
   1273   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
   1274   --libdir=DIR           object code libraries [EPREFIX/lib]
   1275   --includedir=DIR       C header files [PREFIX/include]
   1276   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
   1277   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
   1278   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
   1279   --infodir=DIR          info documentation [DATAROOTDIR/info]
   1280   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
   1281   --mandir=DIR           man documentation [DATAROOTDIR/man]
   1282   --docdir=DIR           documentation root [DATAROOTDIR/doc/openssh]
   1283   --htmldir=DIR          html documentation [DOCDIR]
   1284   --dvidir=DIR           dvi documentation [DOCDIR]
   1285   --pdfdir=DIR           pdf documentation [DOCDIR]
   1286   --psdir=DIR            ps documentation [DOCDIR]
   1287 _ACEOF
   1288 
   1289   cat <<\_ACEOF
   1290 
   1291 System types:
   1292   --build=BUILD     configure for building on BUILD [guessed]
   1293   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1294 _ACEOF
   1295 fi
   1296 
   1297 if test -n "$ac_init_help"; then
   1298   case $ac_init_help in
   1299      short | recursive ) echo "Configuration of OpenSSH Portable:";;
   1300    esac
   1301   cat <<\_ACEOF
   1302 
   1303 Optional Features:
   1304   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1305   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1306   --disable-largefile     omit support for large files
   1307   --disable-strip         Disable calling strip(1) on install
   1308   --disable-etc-default-login Disable using PATH from /etc/default/login no
   1309   --disable-lastlog       disable use of lastlog even if detected no
   1310   --disable-utmp          disable use of utmp even if detected no
   1311   --disable-utmpx         disable use of utmpx even if detected no
   1312   --disable-wtmp          disable use of wtmp even if detected no
   1313   --disable-wtmpx         disable use of wtmpx even if detected no
   1314   --disable-libutil       disable use of libutil (login() etc.) no
   1315   --disable-pututline     disable use of pututline() etc. (uwtmp) no
   1316   --disable-pututxline    disable use of pututxline() etc. (uwtmpx) no
   1317 
   1318 Optional Packages:
   1319   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1320   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1321   --without-openssl       Disable use of OpenSSL; use only limited internal crypto **EXPERIMENTAL**
   1322   --without-ssh1          Disable support for SSH protocol 1
   1323   --without-stackprotect  Don't use compiler's stack protection
   1324   --without-hardening     Don't use toolchain hardening flags
   1325   --without-rpath         Disable auto-added -R linker paths
   1326   --with-cflags           Specify additional flags to pass to compiler
   1327   --with-cppflags         Specify additional flags to pass to preprocessor
   1328   --with-ldflags          Specify additional flags to pass to linker
   1329   --with-libs             Specify additional libraries to link with
   1330   --with-Werror           Build main code with -Werror
   1331   --with-solaris-contracts Enable Solaris process contracts (experimental)
   1332   --with-solaris-projects Enable Solaris projects (experimental)
   1333   --with-osfsia           Enable Digital Unix SIA
   1334   --with-zlib=PATH        Use zlib in PATH
   1335   --without-zlib-version-check Disable zlib version check
   1336   --with-skey[=PATH]      Enable S/Key support (optionally in PATH)
   1337   --with-ldns[=PATH]      Use ldns for DNSSEC support (optionally in PATH)
   1338   --with-libedit[=PATH]   Enable libedit support for sftp
   1339   --with-audit=module     Enable audit support (modules=debug,bsm,linux)
   1340   --with-pie              Build Position Independent Executables if possible
   1341   --with-ssl-dir=PATH     Specify path to OpenSSL installation
   1342   --without-openssl-header-check Disable OpenSSL version consistency check
   1343   --with-ssl-engine       Enable OpenSSL (hardware) ENGINE support
   1344   --with-prngd-port=PORT  read entropy from PRNGD/EGD TCP localhost:PORT
   1345   --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
   1346   --with-pam              Enable PAM support
   1347   --with-privsep-user=user Specify non-privileged user for privilege separation
   1348   --with-sandbox=style    Specify privilege separation sandbox (no, darwin, rlimit, systrace, seccomp_filter, capsicum)
   1349   --with-selinux          Enable SELinux support
   1350   --with-kerberos5=PATH   Enable Kerberos 5 support
   1351   --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
   1352   --with-xauth=PATH       Specify path to xauth program
   1353   --with-maildir=/path/to/mail    Specify your system mail directory
   1354   --with-mantype=man|cat|doc  Set man page type
   1355   --with-md5-passwords    Enable use of MD5 passwords
   1356   --without-shadow        Disable shadow password support
   1357   --with-ipaddr-display   Use ip address instead of hostname in \$DISPLAY
   1358   --with-default-path=    Specify default \$PATH environment for server
   1359   --with-superuser-path=  Specify different path for super-user
   1360   --with-4in6             Check for and convert IPv4 in IPv6 mapped addresses
   1361   --with-bsd-auth         Enable BSD auth support
   1362   --with-pid-dir=PATH     Specify location of ssh.pid file
   1363   --with-lastlog=FILE|DIR specify lastlog location common locations
   1364 
   1365 Some influential environment variables:
   1366   CC          C compiler command
   1367   CFLAGS      C compiler flags
   1368   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1369               nonstandard directory <lib dir>
   1370   LIBS        libraries to pass to the linker, e.g. -l<library>
   1371   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
   1372               you have headers in a nonstandard directory <include dir>
   1373   CPP         C preprocessor
   1374 
   1375 Use these variables to override the choices made by `configure' or to help
   1376 it to find libraries and programs with nonstandard names/locations.
   1377 
   1378 Report bugs to <openssh-unix-dev (at] mindrot.org>.
   1379 _ACEOF
   1380 ac_status=$?
   1381 fi
   1382 
   1383 if test "$ac_init_help" = "recursive"; then
   1384   # If there are subdirs, report their specific --help.
   1385   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1386     test -d "$ac_dir" || continue
   1387     ac_builddir=.
   1388 
   1389 case "$ac_dir" in
   1390 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1391 *)
   1392   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   1393   # A ".." for each directory in $ac_dir_suffix.
   1394   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
   1395   case $ac_top_builddir_sub in
   1396   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1397   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1398   esac ;;
   1399 esac
   1400 ac_abs_top_builddir=$ac_pwd
   1401 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1402 # for backward compatibility:
   1403 ac_top_builddir=$ac_top_build_prefix
   1404 
   1405 case $srcdir in
   1406   .)  # We are building in place.
   1407     ac_srcdir=.
   1408     ac_top_srcdir=$ac_top_builddir_sub
   1409     ac_abs_top_srcdir=$ac_pwd ;;
   1410   [\\/]* | ?:[\\/]* )  # Absolute name.
   1411     ac_srcdir=$srcdir$ac_dir_suffix;
   1412     ac_top_srcdir=$srcdir
   1413     ac_abs_top_srcdir=$srcdir ;;
   1414   *) # Relative name.
   1415     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1416     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1417     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1418 esac
   1419 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1420 
   1421     cd "$ac_dir" || { ac_status=$?; continue; }
   1422     # Check for guested configure.
   1423     if test -f "$ac_srcdir/configure.gnu"; then
   1424       echo &&
   1425       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1426     elif test -f "$ac_srcdir/configure"; then
   1427       echo &&
   1428       $SHELL "$ac_srcdir/configure" --help=recursive
   1429     else
   1430       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1431     fi || ac_status=$?
   1432     cd "$ac_pwd" || { ac_status=$?; break; }
   1433   done
   1434 fi
   1435 
   1436 test -n "$ac_init_help" && exit $ac_status
   1437 if $ac_init_version; then
   1438   cat <<\_ACEOF
   1439 OpenSSH configure Portable
   1440 generated by GNU Autoconf 2.61
   1441 
   1442 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
   1443 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
   1444 This configure script is free software; the Free Software Foundation
   1445 gives unlimited permission to copy, distribute and modify it.
   1446 _ACEOF
   1447   exit
   1448 fi
   1449 cat >config.log <<_ACEOF
   1450 This file contains any messages produced by compilers while
   1451 running configure, to aid debugging if configure makes a mistake.
   1452 
   1453 It was created by OpenSSH $as_me Portable, which was
   1454 generated by GNU Autoconf 2.61.  Invocation command line was
   1455 
   1456   $ $0 $@
   1457 
   1458 _ACEOF
   1459 exec 5>>config.log
   1460 {
   1461 cat <<_ASUNAME
   1462 ## --------- ##
   1463 ## Platform. ##
   1464 ## --------- ##
   1465 
   1466 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   1467 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   1468 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   1469 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   1470 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   1471 
   1472 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   1473 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   1474 
   1475 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   1476 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   1477 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   1478 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   1479 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   1480 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   1481 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   1482 
   1483 _ASUNAME
   1484 
   1485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1486 for as_dir in $PATH
   1487 do
   1488   IFS=$as_save_IFS
   1489   test -z "$as_dir" && as_dir=.
   1490   echo "PATH: $as_dir"
   1491 done
   1492 IFS=$as_save_IFS
   1493 
   1494 } >&5
   1495 
   1496 cat >&5 <<_ACEOF
   1497 
   1498 
   1499 ## ----------- ##
   1500 ## Core tests. ##
   1501 ## ----------- ##
   1502 
   1503 _ACEOF
   1504 
   1505 
   1506 # Keep a trace of the command line.
   1507 # Strip out --no-create and --no-recursion so they do not pile up.
   1508 # Strip out --silent because we don't want to record it for future runs.
   1509 # Also quote any args containing shell meta-characters.
   1510 # Make two passes to allow for proper duplicate-argument suppression.
   1511 ac_configure_args=
   1512 ac_configure_args0=
   1513 ac_configure_args1=
   1514 ac_must_keep_next=false
   1515 for ac_pass in 1 2
   1516 do
   1517   for ac_arg
   1518   do
   1519     case $ac_arg in
   1520     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   1521     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1522     | -silent | --silent | --silen | --sile | --sil)
   1523       continue ;;
   1524     *\'*)
   1525       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   1526     esac
   1527     case $ac_pass in
   1528     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
   1529     2)
   1530       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
   1531       if test $ac_must_keep_next = true; then
   1532 	ac_must_keep_next=false # Got value, back to normal.
   1533       else
   1534 	case $ac_arg in
   1535 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   1536 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   1537 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   1538 	  | -with-* | --with-* | -without-* | --without-* | --x)
   1539 	    case "$ac_configure_args0 " in
   1540 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   1541 	    esac
   1542 	    ;;
   1543 	  -* ) ac_must_keep_next=true ;;
   1544 	esac
   1545       fi
   1546       ac_configure_args="$ac_configure_args '$ac_arg'"
   1547       ;;
   1548     esac
   1549   done
   1550 done
   1551 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
   1552 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
   1553 
   1554 # When interrupted or exit'd, cleanup temporary files, and complete
   1555 # config.log.  We remove comments because anyway the quotes in there
   1556 # would cause problems or look ugly.
   1557 # WARNING: Use '\'' to represent an apostrophe within the trap.
   1558 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   1559 trap 'exit_status=$?
   1560   # Save into config.log some information that might help in debugging.
   1561   {
   1562     echo
   1563 
   1564     cat <<\_ASBOX
   1565 ## ---------------- ##
   1566 ## Cache variables. ##
   1567 ## ---------------- ##
   1568 _ASBOX
   1569     echo
   1570     # The following way of writing the cache mishandles newlines in values,
   1571 (
   1572   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   1573     eval ac_val=\$$ac_var
   1574     case $ac_val in #(
   1575     *${as_nl}*)
   1576       case $ac_var in #(
   1577       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
   1578 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
   1579       esac
   1580       case $ac_var in #(
   1581       _ | IFS | as_nl) ;; #(
   1582       *) $as_unset $ac_var ;;
   1583       esac ;;
   1584     esac
   1585   done
   1586   (set) 2>&1 |
   1587     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   1588     *${as_nl}ac_space=\ *)
   1589       sed -n \
   1590 	"s/'\''/'\''\\\\'\'''\''/g;
   1591 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   1592       ;; #(
   1593     *)
   1594       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   1595       ;;
   1596     esac |
   1597     sort
   1598 )
   1599     echo
   1600 
   1601     cat <<\_ASBOX
   1602 ## ----------------- ##
   1603 ## Output variables. ##
   1604 ## ----------------- ##
   1605 _ASBOX
   1606     echo
   1607     for ac_var in $ac_subst_vars
   1608     do
   1609       eval ac_val=\$$ac_var
   1610       case $ac_val in
   1611       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   1612       esac
   1613       echo "$ac_var='\''$ac_val'\''"
   1614     done | sort
   1615     echo
   1616 
   1617     if test -n "$ac_subst_files"; then
   1618       cat <<\_ASBOX
   1619 ## ------------------- ##
   1620 ## File substitutions. ##
   1621 ## ------------------- ##
   1622 _ASBOX
   1623       echo
   1624       for ac_var in $ac_subst_files
   1625       do
   1626 	eval ac_val=\$$ac_var
   1627 	case $ac_val in
   1628 	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   1629 	esac
   1630 	echo "$ac_var='\''$ac_val'\''"
   1631       done | sort
   1632       echo
   1633     fi
   1634 
   1635     if test -s confdefs.h; then
   1636       cat <<\_ASBOX
   1637 ## ----------- ##
   1638 ## confdefs.h. ##
   1639 ## ----------- ##
   1640 _ASBOX
   1641       echo
   1642       cat confdefs.h
   1643       echo
   1644     fi
   1645     test "$ac_signal" != 0 &&
   1646       echo "$as_me: caught signal $ac_signal"
   1647     echo "$as_me: exit $exit_status"
   1648   } >&5
   1649   rm -f core *.core core.conftest.* &&
   1650     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   1651     exit $exit_status
   1652 ' 0
   1653 for ac_signal in 1 2 13 15; do
   1654   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
   1655 done
   1656 ac_signal=0
   1657 
   1658 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   1659 rm -f -r conftest* confdefs.h
   1660 
   1661 # Predefined preprocessor variables.
   1662 
   1663 cat >>confdefs.h <<_ACEOF
   1664 #define PACKAGE_NAME "$PACKAGE_NAME"
   1665 _ACEOF
   1666 
   1667 
   1668 cat >>confdefs.h <<_ACEOF
   1669 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   1670 _ACEOF
   1671 
   1672 
   1673 cat >>confdefs.h <<_ACEOF
   1674 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   1675 _ACEOF
   1676 
   1677 
   1678 cat >>confdefs.h <<_ACEOF
   1679 #define PACKAGE_STRING "$PACKAGE_STRING"
   1680 _ACEOF
   1681 
   1682 
   1683 cat >>confdefs.h <<_ACEOF
   1684 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   1685 _ACEOF
   1686 
   1687 
   1688 # Let the site file select an alternate cache file if it wants to.
   1689 # Prefer explicitly selected file to automatically selected ones.
   1690 if test -n "$CONFIG_SITE"; then
   1691   set x "$CONFIG_SITE"
   1692 elif test "x$prefix" != xNONE; then
   1693   set x "$prefix/share/config.site" "$prefix/etc/config.site"
   1694 else
   1695   set x "$ac_default_prefix/share/config.site" \
   1696 	"$ac_default_prefix/etc/config.site"
   1697 fi
   1698 shift
   1699 for ac_site_file
   1700 do
   1701   if test -r "$ac_site_file"; then
   1702     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
   1703 echo "$as_me: loading site script $ac_site_file" >&6;}
   1704     sed 's/^/| /' "$ac_site_file" >&5
   1705     . "$ac_site_file"
   1706   fi
   1707 done
   1708 
   1709 if test -r "$cache_file"; then
   1710   # Some versions of bash will fail to source /dev/null (special
   1711   # files actually), so we avoid doing that.
   1712   if test -f "$cache_file"; then
   1713     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
   1714 echo "$as_me: loading cache $cache_file" >&6;}
   1715     case $cache_file in
   1716       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   1717       *)                      . "./$cache_file";;
   1718     esac
   1719   fi
   1720 else
   1721   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
   1722 echo "$as_me: creating cache $cache_file" >&6;}
   1723   >$cache_file
   1724 fi
   1725 
   1726 # Check that the precious variables saved in the cache have kept the same
   1727 # value.
   1728 ac_cache_corrupted=false
   1729 for ac_var in $ac_precious_vars; do
   1730   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   1731   eval ac_new_set=\$ac_env_${ac_var}_set
   1732   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   1733   eval ac_new_val=\$ac_env_${ac_var}_value
   1734   case $ac_old_set,$ac_new_set in
   1735     set,)
   1736       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   1737 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   1738       ac_cache_corrupted=: ;;
   1739     ,set)
   1740       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
   1741 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   1742       ac_cache_corrupted=: ;;
   1743     ,);;
   1744     *)
   1745       if test "x$ac_old_val" != "x$ac_new_val"; then
   1746 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
   1747 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   1748 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
   1749 echo "$as_me:   former value:  $ac_old_val" >&2;}
   1750 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
   1751 echo "$as_me:   current value: $ac_new_val" >&2;}
   1752 	ac_cache_corrupted=:
   1753       fi;;
   1754   esac
   1755   # Pass precious variables to config.status.
   1756   if test "$ac_new_set" = set; then
   1757     case $ac_new_val in
   1758     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   1759     *) ac_arg=$ac_var=$ac_new_val ;;
   1760     esac
   1761     case " $ac_configure_args " in
   1762       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   1763       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
   1764     esac
   1765   fi
   1766 done
   1767 if $ac_cache_corrupted; then
   1768   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
   1769 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   1770   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
   1771 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   1772    { (exit 1); exit 1; }; }
   1773 fi
   1774 
   1775 
   1776 
   1777 
   1778 
   1779 
   1780 
   1781 
   1782 
   1783 
   1784 
   1785 
   1786 
   1787 
   1788 
   1789 
   1790 
   1791 
   1792 
   1793 
   1794 
   1795 
   1796 
   1797 
   1798 
   1799 ac_ext=c
   1800 ac_cpp='$CPP $CPPFLAGS'
   1801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1804 
   1805 
   1806 
   1807 
   1808 ac_ext=c
   1809 ac_cpp='$CPP $CPPFLAGS'
   1810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1813 
   1814 
   1815 ac_config_headers="$ac_config_headers config.h"
   1816 
   1817 ac_ext=c
   1818 ac_cpp='$CPP $CPPFLAGS'
   1819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1822 if test -n "$ac_tool_prefix"; then
   1823   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   1824 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   1825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   1826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   1827 if test "${ac_cv_prog_CC+set}" = set; then
   1828   echo $ECHO_N "(cached) $ECHO_C" >&6
   1829 else
   1830   if test -n "$CC"; then
   1831   ac_cv_prog_CC="$CC" # Let the user override the test.
   1832 else
   1833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1834 for as_dir in $PATH
   1835 do
   1836   IFS=$as_save_IFS
   1837   test -z "$as_dir" && as_dir=.
   1838   for ac_exec_ext in '' $ac_executable_extensions; do
   1839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   1840     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   1841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1842     break 2
   1843   fi
   1844 done
   1845 done
   1846 IFS=$as_save_IFS
   1847 
   1848 fi
   1849 fi
   1850 CC=$ac_cv_prog_CC
   1851 if test -n "$CC"; then
   1852   { echo "$as_me:$LINENO: result: $CC" >&5
   1853 echo "${ECHO_T}$CC" >&6; }
   1854 else
   1855   { echo "$as_me:$LINENO: result: no" >&5
   1856 echo "${ECHO_T}no" >&6; }
   1857 fi
   1858 
   1859 
   1860 fi
   1861 if test -z "$ac_cv_prog_CC"; then
   1862   ac_ct_CC=$CC
   1863   # Extract the first word of "gcc", so it can be a program name with args.
   1864 set dummy gcc; ac_word=$2
   1865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   1866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   1867 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1868   echo $ECHO_N "(cached) $ECHO_C" >&6
   1869 else
   1870   if test -n "$ac_ct_CC"; then
   1871   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1872 else
   1873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1874 for as_dir in $PATH
   1875 do
   1876   IFS=$as_save_IFS
   1877   test -z "$as_dir" && as_dir=.
   1878   for ac_exec_ext in '' $ac_executable_extensions; do
   1879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   1880     ac_cv_prog_ac_ct_CC="gcc"
   1881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1882     break 2
   1883   fi
   1884 done
   1885 done
   1886 IFS=$as_save_IFS
   1887 
   1888 fi
   1889 fi
   1890 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1891 if test -n "$ac_ct_CC"; then
   1892   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
   1893 echo "${ECHO_T}$ac_ct_CC" >&6; }
   1894 else
   1895   { echo "$as_me:$LINENO: result: no" >&5
   1896 echo "${ECHO_T}no" >&6; }
   1897 fi
   1898 
   1899   if test "x$ac_ct_CC" = x; then
   1900     CC=""
   1901   else
   1902     case $cross_compiling:$ac_tool_warned in
   1903 yes:)
   1904 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   1905 whose name does not start with the host triplet.  If you think this
   1906 configuration is useful to you, please write to autoconf@gnu.org." >&5
   1907 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   1908 whose name does not start with the host triplet.  If you think this
   1909 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
   1910 ac_tool_warned=yes ;;
   1911 esac
   1912     CC=$ac_ct_CC
   1913   fi
   1914 else
   1915   CC="$ac_cv_prog_CC"
   1916 fi
   1917 
   1918 if test -z "$CC"; then
   1919           if test -n "$ac_tool_prefix"; then
   1920     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   1921 set dummy ${ac_tool_prefix}cc; ac_word=$2
   1922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   1923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   1924 if test "${ac_cv_prog_CC+set}" = set; then
   1925   echo $ECHO_N "(cached) $ECHO_C" >&6
   1926 else
   1927   if test -n "$CC"; then
   1928   ac_cv_prog_CC="$CC" # Let the user override the test.
   1929 else
   1930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1931 for as_dir in $PATH
   1932 do
   1933   IFS=$as_save_IFS
   1934   test -z "$as_dir" && as_dir=.
   1935   for ac_exec_ext in '' $ac_executable_extensions; do
   1936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   1937     ac_cv_prog_CC="${ac_tool_prefix}cc"
   1938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1939     break 2
   1940   fi
   1941 done
   1942 done
   1943 IFS=$as_save_IFS
   1944 
   1945 fi
   1946 fi
   1947 CC=$ac_cv_prog_CC
   1948 if test -n "$CC"; then
   1949   { echo "$as_me:$LINENO: result: $CC" >&5
   1950 echo "${ECHO_T}$CC" >&6; }
   1951 else
   1952   { echo "$as_me:$LINENO: result: no" >&5
   1953 echo "${ECHO_T}no" >&6; }
   1954 fi
   1955 
   1956 
   1957   fi
   1958 fi
   1959 if test -z "$CC"; then
   1960   # Extract the first word of "cc", so it can be a program name with args.
   1961 set dummy cc; ac_word=$2
   1962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   1963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   1964 if test "${ac_cv_prog_CC+set}" = set; then
   1965   echo $ECHO_N "(cached) $ECHO_C" >&6
   1966 else
   1967   if test -n "$CC"; then
   1968   ac_cv_prog_CC="$CC" # Let the user override the test.
   1969 else
   1970   ac_prog_rejected=no
   1971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1972 for as_dir in $PATH
   1973 do
   1974   IFS=$as_save_IFS
   1975   test -z "$as_dir" && as_dir=.
   1976   for ac_exec_ext in '' $ac_executable_extensions; do
   1977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   1978     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   1979        ac_prog_rejected=yes
   1980        continue
   1981      fi
   1982     ac_cv_prog_CC="cc"
   1983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1984     break 2
   1985   fi
   1986 done
   1987 done
   1988 IFS=$as_save_IFS
   1989 
   1990 if test $ac_prog_rejected = yes; then
   1991   # We found a bogon in the path, so make sure we never use it.
   1992   set dummy $ac_cv_prog_CC
   1993   shift
   1994   if test $# != 0; then
   1995     # We chose a different compiler from the bogus one.
   1996     # However, it has the same basename, so the bogon will be chosen
   1997     # first if we set CC to just the basename; use the full file name.
   1998     shift
   1999     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   2000   fi
   2001 fi
   2002 fi
   2003 fi
   2004 CC=$ac_cv_prog_CC
   2005 if test -n "$CC"; then
   2006   { echo "$as_me:$LINENO: result: $CC" >&5
   2007 echo "${ECHO_T}$CC" >&6; }
   2008 else
   2009   { echo "$as_me:$LINENO: result: no" >&5
   2010 echo "${ECHO_T}no" >&6; }
   2011 fi
   2012 
   2013 
   2014 fi
   2015 if test -z "$CC"; then
   2016   if test -n "$ac_tool_prefix"; then
   2017   for ac_prog in cl.exe
   2018   do
   2019     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2020 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2023 if test "${ac_cv_prog_CC+set}" = set; then
   2024   echo $ECHO_N "(cached) $ECHO_C" >&6
   2025 else
   2026   if test -n "$CC"; then
   2027   ac_cv_prog_CC="$CC" # Let the user override the test.
   2028 else
   2029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2030 for as_dir in $PATH
   2031 do
   2032   IFS=$as_save_IFS
   2033   test -z "$as_dir" && as_dir=.
   2034   for ac_exec_ext in '' $ac_executable_extensions; do
   2035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2036     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   2037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2038     break 2
   2039   fi
   2040 done
   2041 done
   2042 IFS=$as_save_IFS
   2043 
   2044 fi
   2045 fi
   2046 CC=$ac_cv_prog_CC
   2047 if test -n "$CC"; then
   2048   { echo "$as_me:$LINENO: result: $CC" >&5
   2049 echo "${ECHO_T}$CC" >&6; }
   2050 else
   2051   { echo "$as_me:$LINENO: result: no" >&5
   2052 echo "${ECHO_T}no" >&6; }
   2053 fi
   2054 
   2055 
   2056     test -n "$CC" && break
   2057   done
   2058 fi
   2059 if test -z "$CC"; then
   2060   ac_ct_CC=$CC
   2061   for ac_prog in cl.exe
   2062 do
   2063   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2064 set dummy $ac_prog; ac_word=$2
   2065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2067 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   2068   echo $ECHO_N "(cached) $ECHO_C" >&6
   2069 else
   2070   if test -n "$ac_ct_CC"; then
   2071   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2072 else
   2073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2074 for as_dir in $PATH
   2075 do
   2076   IFS=$as_save_IFS
   2077   test -z "$as_dir" && as_dir=.
   2078   for ac_exec_ext in '' $ac_executable_extensions; do
   2079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2080     ac_cv_prog_ac_ct_CC="$ac_prog"
   2081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2082     break 2
   2083   fi
   2084 done
   2085 done
   2086 IFS=$as_save_IFS
   2087 
   2088 fi
   2089 fi
   2090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2091 if test -n "$ac_ct_CC"; then
   2092   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
   2093 echo "${ECHO_T}$ac_ct_CC" >&6; }
   2094 else
   2095   { echo "$as_me:$LINENO: result: no" >&5
   2096 echo "${ECHO_T}no" >&6; }
   2097 fi
   2098 
   2099 
   2100   test -n "$ac_ct_CC" && break
   2101 done
   2102 
   2103   if test "x$ac_ct_CC" = x; then
   2104     CC=""
   2105   else
   2106     case $cross_compiling:$ac_tool_warned in
   2107 yes:)
   2108 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   2109 whose name does not start with the host triplet.  If you think this
   2110 configuration is useful to you, please write to autoconf@gnu.org." >&5
   2111 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   2112 whose name does not start with the host triplet.  If you think this
   2113 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
   2114 ac_tool_warned=yes ;;
   2115 esac
   2116     CC=$ac_ct_CC
   2117   fi
   2118 fi
   2119 
   2120 fi
   2121 
   2122 
   2123 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
   2124 See \`config.log' for more details." >&5
   2125 echo "$as_me: error: no acceptable C compiler found in \$PATH
   2126 See \`config.log' for more details." >&2;}
   2127    { (exit 1); exit 1; }; }
   2128 
   2129 # Provide some information about the compiler.
   2130 echo "$as_me:$LINENO: checking for C compiler version" >&5
   2131 ac_compiler=`set X $ac_compile; echo $2`
   2132 { (ac_try="$ac_compiler --version >&5"
   2133 case "(($ac_try" in
   2134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2135   *) ac_try_echo=$ac_try;;
   2136 esac
   2137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2138   (eval "$ac_compiler --version >&5") 2>&5
   2139   ac_status=$?
   2140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2141   (exit $ac_status); }
   2142 { (ac_try="$ac_compiler -v >&5"
   2143 case "(($ac_try" in
   2144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2145   *) ac_try_echo=$ac_try;;
   2146 esac
   2147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2148   (eval "$ac_compiler -v >&5") 2>&5
   2149   ac_status=$?
   2150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2151   (exit $ac_status); }
   2152 { (ac_try="$ac_compiler -V >&5"
   2153 case "(($ac_try" in
   2154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2155   *) ac_try_echo=$ac_try;;
   2156 esac
   2157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2158   (eval "$ac_compiler -V >&5") 2>&5
   2159   ac_status=$?
   2160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2161   (exit $ac_status); }
   2162 
   2163 cat >conftest.$ac_ext <<_ACEOF
   2164 /* confdefs.h.  */
   2165 _ACEOF
   2166 cat confdefs.h >>conftest.$ac_ext
   2167 cat >>conftest.$ac_ext <<_ACEOF
   2168 /* end confdefs.h.  */
   2169 
   2170 int
   2171 main ()
   2172 {
   2173 
   2174   ;
   2175   return 0;
   2176 }
   2177 _ACEOF
   2178 ac_clean_files_save=$ac_clean_files
   2179 ac_clean_files="$ac_clean_files a.out a.exe b.out"
   2180 # Try to create an executable without -o first, disregard a.out.
   2181 # It will help us diagnose broken compilers, and finding out an intuition
   2182 # of exeext.
   2183 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
   2184 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
   2185 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   2186 #
   2187 # List of possible output files, starting from the most likely.
   2188 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
   2189 # only as a last resort.  b.out is created by i960 compilers.
   2190 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
   2191 #
   2192 # The IRIX 6 linker writes into existing files which may not be
   2193 # executable, retaining their permissions.  Remove them first so a
   2194 # subsequent execution test works.
   2195 ac_rmfiles=
   2196 for ac_file in $ac_files
   2197 do
   2198   case $ac_file in
   2199     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   2200     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   2201   esac
   2202 done
   2203 rm -f $ac_rmfiles
   2204 
   2205 if { (ac_try="$ac_link_default"
   2206 case "(($ac_try" in
   2207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2208   *) ac_try_echo=$ac_try;;
   2209 esac
   2210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2211   (eval "$ac_link_default") 2>&5
   2212   ac_status=$?
   2213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2214   (exit $ac_status); }; then
   2215   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   2216 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   2217 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   2218 # so that the user can short-circuit this test for compilers unknown to
   2219 # Autoconf.
   2220 for ac_file in $ac_files ''
   2221 do
   2222   test -f "$ac_file" || continue
   2223   case $ac_file in
   2224     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
   2225 	;;
   2226     [ab].out )
   2227 	# We found the default executable, but exeext='' is most
   2228 	# certainly right.
   2229 	break;;
   2230     *.* )
   2231         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   2232 	then :; else
   2233 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   2234 	fi
   2235 	# We set ac_cv_exeext here because the later test for it is not
   2236 	# safe: cross compilers may not add the suffix if given an `-o'
   2237 	# argument, so we may need to know it at that point already.
   2238 	# Even if this section looks crufty: it has the advantage of
   2239 	# actually working.
   2240 	break;;
   2241     * )
   2242 	break;;
   2243   esac
   2244 done
   2245 test "$ac_cv_exeext" = no && ac_cv_exeext=
   2246 
   2247 else
   2248   ac_file=''
   2249 fi
   2250 
   2251 { echo "$as_me:$LINENO: result: $ac_file" >&5
   2252 echo "${ECHO_T}$ac_file" >&6; }
   2253 if test -z "$ac_file"; then
   2254   echo "$as_me: failed program was:" >&5
   2255 sed 's/^/| /' conftest.$ac_ext >&5
   2256 
   2257 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
   2258 See \`config.log' for more details." >&5
   2259 echo "$as_me: error: C compiler cannot create executables
   2260 See \`config.log' for more details." >&2;}
   2261    { (exit 77); exit 77; }; }
   2262 fi
   2263 
   2264 ac_exeext=$ac_cv_exeext
   2265 
   2266 # Check that the compiler produces executables we can run.  If not, either
   2267 # the compiler is broken, or we cross compile.
   2268 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
   2269 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
   2270 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
   2271 # If not cross compiling, check that we can run a simple program.
   2272 if test "$cross_compiling" != yes; then
   2273   if { ac_try='./$ac_file'
   2274   { (case "(($ac_try" in
   2275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2276   *) ac_try_echo=$ac_try;;
   2277 esac
   2278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2279   (eval "$ac_try") 2>&5
   2280   ac_status=$?
   2281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2282   (exit $ac_status); }; }; then
   2283     cross_compiling=no
   2284   else
   2285     if test "$cross_compiling" = maybe; then
   2286 	cross_compiling=yes
   2287     else
   2288 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
   2289 If you meant to cross compile, use \`--host'.
   2290 See \`config.log' for more details." >&5
   2291 echo "$as_me: error: cannot run C compiled programs.
   2292 If you meant to cross compile, use \`--host'.
   2293 See \`config.log' for more details." >&2;}
   2294    { (exit 1); exit 1; }; }
   2295     fi
   2296   fi
   2297 fi
   2298 { echo "$as_me:$LINENO: result: yes" >&5
   2299 echo "${ECHO_T}yes" >&6; }
   2300 
   2301 rm -f a.out a.exe conftest$ac_cv_exeext b.out
   2302 ac_clean_files=$ac_clean_files_save
   2303 # Check that the compiler produces executables we can run.  If not, either
   2304 # the compiler is broken, or we cross compile.
   2305 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
   2306 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
   2307 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
   2308 echo "${ECHO_T}$cross_compiling" >&6; }
   2309 
   2310 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
   2311 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
   2312 if { (ac_try="$ac_link"
   2313 case "(($ac_try" in
   2314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2315   *) ac_try_echo=$ac_try;;
   2316 esac
   2317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2318   (eval "$ac_link") 2>&5
   2319   ac_status=$?
   2320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2321   (exit $ac_status); }; then
   2322   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   2323 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   2324 # work properly (i.e., refer to `conftest.exe'), while it won't with
   2325 # `rm'.
   2326 for ac_file in conftest.exe conftest conftest.*; do
   2327   test -f "$ac_file" || continue
   2328   case $ac_file in
   2329     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   2330     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   2331 	  break;;
   2332     * ) break;;
   2333   esac
   2334 done
   2335 else
   2336   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
   2337 See \`config.log' for more details." >&5
   2338 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
   2339 See \`config.log' for more details." >&2;}
   2340    { (exit 1); exit 1; }; }
   2341 fi
   2342 
   2343 rm -f conftest$ac_cv_exeext
   2344 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
   2345 echo "${ECHO_T}$ac_cv_exeext" >&6; }
   2346 
   2347 rm -f conftest.$ac_ext
   2348 EXEEXT=$ac_cv_exeext
   2349 ac_exeext=$EXEEXT
   2350 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
   2351 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
   2352 if test "${ac_cv_objext+set}" = set; then
   2353   echo $ECHO_N "(cached) $ECHO_C" >&6
   2354 else
   2355   cat >conftest.$ac_ext <<_ACEOF
   2356 /* confdefs.h.  */
   2357 _ACEOF
   2358 cat confdefs.h >>conftest.$ac_ext
   2359 cat >>conftest.$ac_ext <<_ACEOF
   2360 /* end confdefs.h.  */
   2361 
   2362 int
   2363 main ()
   2364 {
   2365 
   2366   ;
   2367   return 0;
   2368 }
   2369 _ACEOF
   2370 rm -f conftest.o conftest.obj
   2371 if { (ac_try="$ac_compile"
   2372 case "(($ac_try" in
   2373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2374   *) ac_try_echo=$ac_try;;
   2375 esac
   2376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2377   (eval "$ac_compile") 2>&5
   2378   ac_status=$?
   2379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2380   (exit $ac_status); }; then
   2381   for ac_file in conftest.o conftest.obj conftest.*; do
   2382   test -f "$ac_file" || continue;
   2383   case $ac_file in
   2384     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
   2385     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   2386        break;;
   2387   esac
   2388 done
   2389 else
   2390   echo "$as_me: failed program was:" >&5
   2391 sed 's/^/| /' conftest.$ac_ext >&5
   2392 
   2393 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
   2394 See \`config.log' for more details." >&5
   2395 echo "$as_me: error: cannot compute suffix of object files: cannot compile
   2396 See \`config.log' for more details." >&2;}
   2397    { (exit 1); exit 1; }; }
   2398 fi
   2399 
   2400 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   2401 fi
   2402 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
   2403 echo "${ECHO_T}$ac_cv_objext" >&6; }
   2404 OBJEXT=$ac_cv_objext
   2405 ac_objext=$OBJEXT
   2406 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
   2407 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
   2408 if test "${ac_cv_c_compiler_gnu+set}" = set; then
   2409   echo $ECHO_N "(cached) $ECHO_C" >&6
   2410 else
   2411   cat >conftest.$ac_ext <<_ACEOF
   2412 /* confdefs.h.  */
   2413 _ACEOF
   2414 cat confdefs.h >>conftest.$ac_ext
   2415 cat >>conftest.$ac_ext <<_ACEOF
   2416 /* end confdefs.h.  */
   2417 
   2418 int
   2419 main ()
   2420 {
   2421 #ifndef __GNUC__
   2422        choke me
   2423 #endif
   2424 
   2425   ;
   2426   return 0;
   2427 }
   2428 _ACEOF
   2429 rm -f conftest.$ac_objext
   2430 if { (ac_try="$ac_compile"
   2431 case "(($ac_try" in
   2432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2433   *) ac_try_echo=$ac_try;;
   2434 esac
   2435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2436   (eval "$ac_compile") 2>conftest.er1
   2437   ac_status=$?
   2438   grep -v '^ *+' conftest.er1 >conftest.err
   2439   rm -f conftest.er1
   2440   cat conftest.err >&5
   2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2442   (exit $ac_status); } && {
   2443 	 test -z "$ac_c_werror_flag" ||
   2444 	 test ! -s conftest.err
   2445        } && test -s conftest.$ac_objext; then
   2446   ac_compiler_gnu=yes
   2447 else
   2448   echo "$as_me: failed program was:" >&5
   2449 sed 's/^/| /' conftest.$ac_ext >&5
   2450 
   2451 	ac_compiler_gnu=no
   2452 fi
   2453 
   2454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2455 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   2456 
   2457 fi
   2458 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
   2459 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
   2460 GCC=`test $ac_compiler_gnu = yes && echo yes`
   2461 ac_test_CFLAGS=${CFLAGS+set}
   2462 ac_save_CFLAGS=$CFLAGS
   2463 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
   2464 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
   2465 if test "${ac_cv_prog_cc_g+set}" = set; then
   2466   echo $ECHO_N "(cached) $ECHO_C" >&6
   2467 else
   2468   ac_save_c_werror_flag=$ac_c_werror_flag
   2469    ac_c_werror_flag=yes
   2470    ac_cv_prog_cc_g=no
   2471    CFLAGS="-g"
   2472    cat >conftest.$ac_ext <<_ACEOF
   2473 /* confdefs.h.  */
   2474 _ACEOF
   2475 cat confdefs.h >>conftest.$ac_ext
   2476 cat >>conftest.$ac_ext <<_ACEOF
   2477 /* end confdefs.h.  */
   2478 
   2479 int
   2480 main ()
   2481 {
   2482 
   2483   ;
   2484   return 0;
   2485 }
   2486 _ACEOF
   2487 rm -f conftest.$ac_objext
   2488 if { (ac_try="$ac_compile"
   2489 case "(($ac_try" in
   2490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2491   *) ac_try_echo=$ac_try;;
   2492 esac
   2493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2494   (eval "$ac_compile") 2>conftest.er1
   2495   ac_status=$?
   2496   grep -v '^ *+' conftest.er1 >conftest.err
   2497   rm -f conftest.er1
   2498   cat conftest.err >&5
   2499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2500   (exit $ac_status); } && {
   2501 	 test -z "$ac_c_werror_flag" ||
   2502 	 test ! -s conftest.err
   2503        } && test -s conftest.$ac_objext; then
   2504   ac_cv_prog_cc_g=yes
   2505 else
   2506   echo "$as_me: failed program was:" >&5
   2507 sed 's/^/| /' conftest.$ac_ext >&5
   2508 
   2509 	CFLAGS=""
   2510       cat >conftest.$ac_ext <<_ACEOF
   2511 /* confdefs.h.  */
   2512 _ACEOF
   2513 cat confdefs.h >>conftest.$ac_ext
   2514 cat >>conftest.$ac_ext <<_ACEOF
   2515 /* end confdefs.h.  */
   2516 
   2517 int
   2518 main ()
   2519 {
   2520 
   2521   ;
   2522   return 0;
   2523 }
   2524 _ACEOF
   2525 rm -f conftest.$ac_objext
   2526 if { (ac_try="$ac_compile"
   2527 case "(($ac_try" in
   2528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2529   *) ac_try_echo=$ac_try;;
   2530 esac
   2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2532   (eval "$ac_compile") 2>conftest.er1
   2533   ac_status=$?
   2534   grep -v '^ *+' conftest.er1 >conftest.err
   2535   rm -f conftest.er1
   2536   cat conftest.err >&5
   2537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2538   (exit $ac_status); } && {
   2539 	 test -z "$ac_c_werror_flag" ||
   2540 	 test ! -s conftest.err
   2541        } && test -s conftest.$ac_objext; then
   2542   :
   2543 else
   2544   echo "$as_me: failed program was:" >&5
   2545 sed 's/^/| /' conftest.$ac_ext >&5
   2546 
   2547 	ac_c_werror_flag=$ac_save_c_werror_flag
   2548 	 CFLAGS="-g"
   2549 	 cat >conftest.$ac_ext <<_ACEOF
   2550 /* confdefs.h.  */
   2551 _ACEOF
   2552 cat confdefs.h >>conftest.$ac_ext
   2553 cat >>conftest.$ac_ext <<_ACEOF
   2554 /* end confdefs.h.  */
   2555 
   2556 int
   2557 main ()
   2558 {
   2559 
   2560   ;
   2561   return 0;
   2562 }
   2563 _ACEOF
   2564 rm -f conftest.$ac_objext
   2565 if { (ac_try="$ac_compile"
   2566 case "(($ac_try" in
   2567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2568   *) ac_try_echo=$ac_try;;
   2569 esac
   2570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2571   (eval "$ac_compile") 2>conftest.er1
   2572   ac_status=$?
   2573   grep -v '^ *+' conftest.er1 >conftest.err
   2574   rm -f conftest.er1
   2575   cat conftest.err >&5
   2576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2577   (exit $ac_status); } && {
   2578 	 test -z "$ac_c_werror_flag" ||
   2579 	 test ! -s conftest.err
   2580        } && test -s conftest.$ac_objext; then
   2581   ac_cv_prog_cc_g=yes
   2582 else
   2583   echo "$as_me: failed program was:" >&5
   2584 sed 's/^/| /' conftest.$ac_ext >&5
   2585 
   2586 
   2587 fi
   2588 
   2589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2590 fi
   2591 
   2592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2593 fi
   2594 
   2595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2596    ac_c_werror_flag=$ac_save_c_werror_flag
   2597 fi
   2598 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
   2599 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
   2600 if test "$ac_test_CFLAGS" = set; then
   2601   CFLAGS=$ac_save_CFLAGS
   2602 elif test $ac_cv_prog_cc_g = yes; then
   2603   if test "$GCC" = yes; then
   2604     CFLAGS="-g -O2"
   2605   else
   2606     CFLAGS="-g"
   2607   fi
   2608 else
   2609   if test "$GCC" = yes; then
   2610     CFLAGS="-O2"
   2611   else
   2612     CFLAGS=
   2613   fi
   2614 fi
   2615 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
   2616 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
   2617 if test "${ac_cv_prog_cc_c89+set}" = set; then
   2618   echo $ECHO_N "(cached) $ECHO_C" >&6
   2619 else
   2620   ac_cv_prog_cc_c89=no
   2621 ac_save_CC=$CC
   2622 cat >conftest.$ac_ext <<_ACEOF
   2623 /* confdefs.h.  */
   2624 _ACEOF
   2625 cat confdefs.h >>conftest.$ac_ext
   2626 cat >>conftest.$ac_ext <<_ACEOF
   2627 /* end confdefs.h.  */
   2628 #include <stdarg.h>
   2629 #include <stdio.h>
   2630 #include <sys/types.h>
   2631 #include <sys/stat.h>
   2632 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   2633 struct buf { int x; };
   2634 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   2635 static char *e (p, i)
   2636      char **p;
   2637      int i;
   2638 {
   2639   return p[i];
   2640 }
   2641 static char *f (char * (*g) (char **, int), char **p, ...)
   2642 {
   2643   char *s;
   2644   va_list v;
   2645   va_start (v,p);
   2646   s = g (p, va_arg (v,int));
   2647   va_end (v);
   2648   return s;
   2649 }
   2650 
   2651 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   2652    function prototypes and stuff, but not '\xHH' hex character constants.
   2653    These don't provoke an error unfortunately, instead are silently treated
   2654    as 'x'.  The following induces an error, until -std is added to get
   2655    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   2656    array size at least.  It's necessary to write '\x00'==0 to get something
   2657    that's true only with -std.  */
   2658 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   2659 
   2660 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   2661    inside strings and character constants.  */
   2662 #define FOO(x) 'x'
   2663 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   2664 
   2665 int test (int i, double x);
   2666 struct s1 {int (*f) (int a);};
   2667 struct s2 {int (*f) (double a);};
   2668 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   2669 int argc;
   2670 char **argv;
   2671 int
   2672 main ()
   2673 {
   2674 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   2675   ;
   2676   return 0;
   2677 }
   2678 _ACEOF
   2679 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   2680 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   2681 do
   2682   CC="$ac_save_CC $ac_arg"
   2683   rm -f conftest.$ac_objext
   2684 if { (ac_try="$ac_compile"
   2685 case "(($ac_try" in
   2686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2687   *) ac_try_echo=$ac_try;;
   2688 esac
   2689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2690   (eval "$ac_compile") 2>conftest.er1
   2691   ac_status=$?
   2692   grep -v '^ *+' conftest.er1 >conftest.err
   2693   rm -f conftest.er1
   2694   cat conftest.err >&5
   2695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2696   (exit $ac_status); } && {
   2697 	 test -z "$ac_c_werror_flag" ||
   2698 	 test ! -s conftest.err
   2699        } && test -s conftest.$ac_objext; then
   2700   ac_cv_prog_cc_c89=$ac_arg
   2701 else
   2702   echo "$as_me: failed program was:" >&5
   2703 sed 's/^/| /' conftest.$ac_ext >&5
   2704 
   2705 
   2706 fi
   2707 
   2708 rm -f core conftest.err conftest.$ac_objext
   2709   test "x$ac_cv_prog_cc_c89" != "xno" && break
   2710 done
   2711 rm -f conftest.$ac_ext
   2712 CC=$ac_save_CC
   2713 
   2714 fi
   2715 # AC_CACHE_VAL
   2716 case "x$ac_cv_prog_cc_c89" in
   2717   x)
   2718     { echo "$as_me:$LINENO: result: none needed" >&5
   2719 echo "${ECHO_T}none needed" >&6; } ;;
   2720   xno)
   2721     { echo "$as_me:$LINENO: result: unsupported" >&5
   2722 echo "${ECHO_T}unsupported" >&6; } ;;
   2723   *)
   2724     CC="$CC $ac_cv_prog_cc_c89"
   2725     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
   2726 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
   2727 esac
   2728 
   2729 
   2730 ac_ext=c
   2731 ac_cpp='$CPP $CPPFLAGS'
   2732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2735 
   2736 ac_aux_dir=
   2737 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   2738   if test -f "$ac_dir/install-sh"; then
   2739     ac_aux_dir=$ac_dir
   2740     ac_install_sh="$ac_aux_dir/install-sh -c"
   2741     break
   2742   elif test -f "$ac_dir/install.sh"; then
   2743     ac_aux_dir=$ac_dir
   2744     ac_install_sh="$ac_aux_dir/install.sh -c"
   2745     break
   2746   elif test -f "$ac_dir/shtool"; then
   2747     ac_aux_dir=$ac_dir
   2748     ac_install_sh="$ac_aux_dir/shtool install -c"
   2749     break
   2750   fi
   2751 done
   2752 if test -z "$ac_aux_dir"; then
   2753   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
   2754 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
   2755    { (exit 1); exit 1; }; }
   2756 fi
   2757 
   2758 # These three variables are undocumented and unsupported,
   2759 # and are intended to be withdrawn in a future Autoconf release.
   2760 # They can cause serious problems if a builder's source tree is in a directory
   2761 # whose full name contains unusual characters.
   2762 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2763 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2764 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2765 
   2766 
   2767 # Make sure we can run config.sub.
   2768 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   2769   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
   2770 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
   2771    { (exit 1); exit 1; }; }
   2772 
   2773 { echo "$as_me:$LINENO: checking build system type" >&5
   2774 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
   2775 if test "${ac_cv_build+set}" = set; then
   2776   echo $ECHO_N "(cached) $ECHO_C" >&6
   2777 else
   2778   ac_build_alias=$build_alias
   2779 test "x$ac_build_alias" = x &&
   2780   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   2781 test "x$ac_build_alias" = x &&
   2782   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
   2783 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   2784    { (exit 1); exit 1; }; }
   2785 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   2786   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
   2787 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
   2788    { (exit 1); exit 1; }; }
   2789 
   2790 fi
   2791 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
   2792 echo "${ECHO_T}$ac_cv_build" >&6; }
   2793 case $ac_cv_build in
   2794 *-*-*) ;;
   2795 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
   2796 echo "$as_me: error: invalid value of canonical build" >&2;}
   2797    { (exit 1); exit 1; }; };;
   2798 esac
   2799 build=$ac_cv_build
   2800 ac_save_IFS=$IFS; IFS='-'
   2801 set x $ac_cv_build
   2802 shift
   2803 build_cpu=$1
   2804 build_vendor=$2
   2805 shift; shift
   2806 # Remember, the first character of IFS is used to create $*,
   2807 # except with old shells:
   2808 build_os=$*
   2809 IFS=$ac_save_IFS
   2810 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   2811 
   2812 
   2813 { echo "$as_me:$LINENO: checking host system type" >&5
   2814 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
   2815 if test "${ac_cv_host+set}" = set; then
   2816   echo $ECHO_N "(cached) $ECHO_C" >&6
   2817 else
   2818   if test "x$host_alias" = x; then
   2819   ac_cv_host=$ac_cv_build
   2820 else
   2821   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   2822     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
   2823 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
   2824    { (exit 1); exit 1; }; }
   2825 fi
   2826 
   2827 fi
   2828 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
   2829 echo "${ECHO_T}$ac_cv_host" >&6; }
   2830 case $ac_cv_host in
   2831 *-*-*) ;;
   2832 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
   2833 echo "$as_me: error: invalid value of canonical host" >&2;}
   2834    { (exit 1); exit 1; }; };;
   2835 esac
   2836 host=$ac_cv_host
   2837 ac_save_IFS=$IFS; IFS='-'
   2838 set x $ac_cv_host
   2839 shift
   2840 host_cpu=$1
   2841 host_vendor=$2
   2842 shift; shift
   2843 # Remember, the first character of IFS is used to create $*,
   2844 # except with old shells:
   2845 host_os=$*
   2846 IFS=$ac_save_IFS
   2847 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   2848 
   2849 
   2850 
   2851 ac_ext=c
   2852 ac_cpp='$CPP $CPPFLAGS'
   2853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2856 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
   2857 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
   2858 # On Suns, sometimes $CPP names a directory.
   2859 if test -n "$CPP" && test -d "$CPP"; then
   2860   CPP=
   2861 fi
   2862 if test -z "$CPP"; then
   2863   if test "${ac_cv_prog_CPP+set}" = set; then
   2864   echo $ECHO_N "(cached) $ECHO_C" >&6
   2865 else
   2866       # Double quotes because CPP needs to be expanded
   2867     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   2868     do
   2869       ac_preproc_ok=false
   2870 for ac_c_preproc_warn_flag in '' yes
   2871 do
   2872   # Use a header file that comes with gcc, so configuring glibc
   2873   # with a fresh cross-compiler works.
   2874   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   2875   # <limits.h> exists even on freestanding compilers.
   2876   # On the NeXT, cc -E runs the code through the compiler's parser,
   2877   # not just through cpp. "Syntax error" is here to catch this case.
   2878   cat >conftest.$ac_ext <<_ACEOF
   2879 /* confdefs.h.  */
   2880 _ACEOF
   2881 cat confdefs.h >>conftest.$ac_ext
   2882 cat >>conftest.$ac_ext <<_ACEOF
   2883 /* end confdefs.h.  */
   2884 #ifdef __STDC__
   2885 # include <limits.h>
   2886 #else
   2887 # include <assert.h>
   2888 #endif
   2889 		     Syntax error
   2890 _ACEOF
   2891 if { (ac_try="$ac_cpp conftest.$ac_ext"
   2892 case "(($ac_try" in
   2893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2894   *) ac_try_echo=$ac_try;;
   2895 esac
   2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2897   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   2898   ac_status=$?
   2899   grep -v '^ *+' conftest.er1 >conftest.err
   2900   rm -f conftest.er1
   2901   cat conftest.err >&5
   2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2903   (exit $ac_status); } >/dev/null && {
   2904 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   2905 	 test ! -s conftest.err
   2906        }; then
   2907   :
   2908 else
   2909   echo "$as_me: failed program was:" >&5
   2910 sed 's/^/| /' conftest.$ac_ext >&5
   2911 
   2912   # Broken: fails on valid input.
   2913 continue
   2914 fi
   2915 
   2916 rm -f conftest.err conftest.$ac_ext
   2917 
   2918   # OK, works on sane cases.  Now check whether nonexistent headers
   2919   # can be detected and how.
   2920   cat >conftest.$ac_ext <<_ACEOF
   2921 /* confdefs.h.  */
   2922 _ACEOF
   2923 cat confdefs.h >>conftest.$ac_ext
   2924 cat >>conftest.$ac_ext <<_ACEOF
   2925 /* end confdefs.h.  */
   2926 #include <ac_nonexistent.h>
   2927 _ACEOF
   2928 if { (ac_try="$ac_cpp conftest.$ac_ext"
   2929 case "(($ac_try" in
   2930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2931   *) ac_try_echo=$ac_try;;
   2932 esac
   2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2934   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   2935   ac_status=$?
   2936   grep -v '^ *+' conftest.er1 >conftest.err
   2937   rm -f conftest.er1
   2938   cat conftest.err >&5
   2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2940   (exit $ac_status); } >/dev/null && {
   2941 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   2942 	 test ! -s conftest.err
   2943        }; then
   2944   # Broken: success on invalid input.
   2945 continue
   2946 else
   2947   echo "$as_me: failed program was:" >&5
   2948 sed 's/^/| /' conftest.$ac_ext >&5
   2949 
   2950   # Passes both tests.
   2951 ac_preproc_ok=:
   2952 break
   2953 fi
   2954 
   2955 rm -f conftest.err conftest.$ac_ext
   2956 
   2957 done
   2958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   2959 rm -f conftest.err conftest.$ac_ext
   2960 if $ac_preproc_ok; then
   2961   break
   2962 fi
   2963 
   2964     done
   2965     ac_cv_prog_CPP=$CPP
   2966 
   2967 fi
   2968   CPP=$ac_cv_prog_CPP
   2969 else
   2970   ac_cv_prog_CPP=$CPP
   2971 fi
   2972 { echo "$as_me:$LINENO: result: $CPP" >&5
   2973 echo "${ECHO_T}$CPP" >&6; }
   2974 ac_preproc_ok=false
   2975 for ac_c_preproc_warn_flag in '' yes
   2976 do
   2977   # Use a header file that comes with gcc, so configuring glibc
   2978   # with a fresh cross-compiler works.
   2979   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   2980   # <limits.h> exists even on freestanding compilers.
   2981   # On the NeXT, cc -E runs the code through the compiler's parser,
   2982   # not just through cpp. "Syntax error" is here to catch this case.
   2983   cat >conftest.$ac_ext <<_ACEOF
   2984 /* confdefs.h.  */
   2985 _ACEOF
   2986 cat confdefs.h >>conftest.$ac_ext
   2987 cat >>conftest.$ac_ext <<_ACEOF
   2988 /* end confdefs.h.  */
   2989 #ifdef __STDC__
   2990 # include <limits.h>
   2991 #else
   2992 # include <assert.h>
   2993 #endif
   2994 		     Syntax error
   2995 _ACEOF
   2996 if { (ac_try="$ac_cpp conftest.$ac_ext"
   2997 case "(($ac_try" in
   2998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2999   *) ac_try_echo=$ac_try;;
   3000 esac
   3001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3002   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3003   ac_status=$?
   3004   grep -v '^ *+' conftest.er1 >conftest.err
   3005   rm -f conftest.er1
   3006   cat conftest.err >&5
   3007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3008   (exit $ac_status); } >/dev/null && {
   3009 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   3010 	 test ! -s conftest.err
   3011        }; then
   3012   :
   3013 else
   3014   echo "$as_me: failed program was:" >&5
   3015 sed 's/^/| /' conftest.$ac_ext >&5
   3016 
   3017   # Broken: fails on valid input.
   3018 continue
   3019 fi
   3020 
   3021 rm -f conftest.err conftest.$ac_ext
   3022 
   3023   # OK, works on sane cases.  Now check whether nonexistent headers
   3024   # can be detected and how.
   3025   cat >conftest.$ac_ext <<_ACEOF
   3026 /* confdefs.h.  */
   3027 _ACEOF
   3028 cat confdefs.h >>conftest.$ac_ext
   3029 cat >>conftest.$ac_ext <<_ACEOF
   3030 /* end confdefs.h.  */
   3031 #include <ac_nonexistent.h>
   3032 _ACEOF
   3033 if { (ac_try="$ac_cpp conftest.$ac_ext"
   3034 case "(($ac_try" in
   3035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3036   *) ac_try_echo=$ac_try;;
   3037 esac
   3038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3039   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3040   ac_status=$?
   3041   grep -v '^ *+' conftest.er1 >conftest.err
   3042   rm -f conftest.er1
   3043   cat conftest.err >&5
   3044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3045   (exit $ac_status); } >/dev/null && {
   3046 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   3047 	 test ! -s conftest.err
   3048        }; then
   3049   # Broken: success on invalid input.
   3050 continue
   3051 else
   3052   echo "$as_me: failed program was:" >&5
   3053 sed 's/^/| /' conftest.$ac_ext >&5
   3054 
   3055   # Passes both tests.
   3056 ac_preproc_ok=:
   3057 break
   3058 fi
   3059 
   3060 rm -f conftest.err conftest.$ac_ext
   3061 
   3062 done
   3063 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3064 rm -f conftest.err conftest.$ac_ext
   3065 if $ac_preproc_ok; then
   3066   :
   3067 else
   3068   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
   3069 See \`config.log' for more details." >&5
   3070 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
   3071 See \`config.log' for more details." >&2;}
   3072    { (exit 1); exit 1; }; }
   3073 fi
   3074 
   3075 ac_ext=c
   3076 ac_cpp='$CPP $CPPFLAGS'
   3077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3080 
   3081 
   3082 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
   3083 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
   3084 if test "${ac_cv_path_GREP+set}" = set; then
   3085   echo $ECHO_N "(cached) $ECHO_C" >&6
   3086 else
   3087   # Extract the first word of "grep ggrep" to use in msg output
   3088 if test -z "$GREP"; then
   3089 set dummy grep ggrep; ac_prog_name=$2
   3090 if test "${ac_cv_path_GREP+set}" = set; then
   3091   echo $ECHO_N "(cached) $ECHO_C" >&6
   3092 else
   3093   ac_path_GREP_found=false
   3094 # Loop through the user's path and test for each of PROGNAME-LIST
   3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3096 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3097 do
   3098   IFS=$as_save_IFS
   3099   test -z "$as_dir" && as_dir=.
   3100   for ac_prog in grep ggrep; do
   3101   for ac_exec_ext in '' $ac_executable_extensions; do
   3102     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   3103     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
   3104     # Check for GNU ac_path_GREP and select it if it is found.
   3105   # Check for GNU $ac_path_GREP
   3106 case `"$ac_path_GREP" --version 2>&1` in
   3107 *GNU*)
   3108   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   3109 *)
   3110   ac_count=0
   3111   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
   3112   while :
   3113   do
   3114     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3115     mv "conftest.tmp" "conftest.in"
   3116     cp "conftest.in" "conftest.nl"
   3117     echo 'GREP' >> "conftest.nl"
   3118     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3119     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3120     ac_count=`expr $ac_count + 1`
   3121     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   3122       # Best one so far, save it but keep looking for a better one
   3123       ac_cv_path_GREP="$ac_path_GREP"
   3124       ac_path_GREP_max=$ac_count
   3125     fi
   3126     # 10*(2^10) chars as input seems more than enough
   3127     test $ac_count -gt 10 && break
   3128   done
   3129   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3130 esac
   3131 
   3132 
   3133     $ac_path_GREP_found && break 3
   3134   done
   3135 done
   3136 
   3137 done
   3138 IFS=$as_save_IFS
   3139 
   3140 
   3141 fi
   3142 
   3143 GREP="$ac_cv_path_GREP"
   3144 if test -z "$GREP"; then
   3145   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
   3146 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   3147    { (exit 1); exit 1; }; }
   3148 fi
   3149 
   3150 else
   3151   ac_cv_path_GREP=$GREP
   3152 fi
   3153 
   3154 
   3155 fi
   3156 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
   3157 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
   3158  GREP="$ac_cv_path_GREP"
   3159 
   3160 
   3161 { echo "$as_me:$LINENO: checking for egrep" >&5
   3162 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
   3163 if test "${ac_cv_path_EGREP+set}" = set; then
   3164   echo $ECHO_N "(cached) $ECHO_C" >&6
   3165 else
   3166   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   3167    then ac_cv_path_EGREP="$GREP -E"
   3168    else
   3169      # Extract the first word of "egrep" to use in msg output
   3170 if test -z "$EGREP"; then
   3171 set dummy egrep; ac_prog_name=$2
   3172 if test "${ac_cv_path_EGREP+set}" = set; then
   3173   echo $ECHO_N "(cached) $ECHO_C" >&6
   3174 else
   3175   ac_path_EGREP_found=false
   3176 # Loop through the user's path and test for each of PROGNAME-LIST
   3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3178 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3179 do
   3180   IFS=$as_save_IFS
   3181   test -z "$as_dir" && as_dir=.
   3182   for ac_prog in egrep; do
   3183   for ac_exec_ext in '' $ac_executable_extensions; do
   3184     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   3185     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
   3186     # Check for GNU ac_path_EGREP and select it if it is found.
   3187   # Check for GNU $ac_path_EGREP
   3188 case `"$ac_path_EGREP" --version 2>&1` in
   3189 *GNU*)
   3190   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   3191 *)
   3192   ac_count=0
   3193   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
   3194   while :
   3195   do
   3196     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3197     mv "conftest.tmp" "conftest.in"
   3198     cp "conftest.in" "conftest.nl"
   3199     echo 'EGREP' >> "conftest.nl"
   3200     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3201     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3202     ac_count=`expr $ac_count + 1`
   3203     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   3204       # Best one so far, save it but keep looking for a better one
   3205       ac_cv_path_EGREP="$ac_path_EGREP"
   3206       ac_path_EGREP_max=$ac_count
   3207     fi
   3208     # 10*(2^10) chars as input seems more than enough
   3209     test $ac_count -gt 10 && break
   3210   done
   3211   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3212 esac
   3213 
   3214 
   3215     $ac_path_EGREP_found && break 3
   3216   done
   3217 done
   3218 
   3219 done
   3220 IFS=$as_save_IFS
   3221 
   3222 
   3223 fi
   3224 
   3225 EGREP="$ac_cv_path_EGREP"
   3226 if test -z "$EGREP"; then
   3227   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
   3228 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   3229    { (exit 1); exit 1; }; }
   3230 fi
   3231 
   3232 else
   3233   ac_cv_path_EGREP=$EGREP
   3234 fi
   3235 
   3236 
   3237    fi
   3238 fi
   3239 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
   3240 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
   3241  EGREP="$ac_cv_path_EGREP"
   3242 
   3243 
   3244 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
   3245 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
   3246 if test "${ac_cv_header_stdc+set}" = set; then
   3247   echo $ECHO_N "(cached) $ECHO_C" >&6
   3248 else
   3249   cat >conftest.$ac_ext <<_ACEOF
   3250 /* confdefs.h.  */
   3251 _ACEOF
   3252 cat confdefs.h >>conftest.$ac_ext
   3253 cat >>conftest.$ac_ext <<_ACEOF
   3254 /* end confdefs.h.  */
   3255 #include <stdlib.h>
   3256 #include <stdarg.h>
   3257 #include <string.h>
   3258 #include <float.h>
   3259 
   3260 int
   3261 main ()
   3262 {
   3263 
   3264   ;
   3265   return 0;
   3266 }
   3267 _ACEOF
   3268 rm -f conftest.$ac_objext
   3269 if { (ac_try="$ac_compile"
   3270 case "(($ac_try" in
   3271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3272   *) ac_try_echo=$ac_try;;
   3273 esac
   3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3275   (eval "$ac_compile") 2>conftest.er1
   3276   ac_status=$?
   3277   grep -v '^ *+' conftest.er1 >conftest.err
   3278   rm -f conftest.er1
   3279   cat conftest.err >&5
   3280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3281   (exit $ac_status); } && {
   3282 	 test -z "$ac_c_werror_flag" ||
   3283 	 test ! -s conftest.err
   3284        } && test -s conftest.$ac_objext; then
   3285   ac_cv_header_stdc=yes
   3286 else
   3287   echo "$as_me: failed program was:" >&5
   3288 sed 's/^/| /' conftest.$ac_ext >&5
   3289 
   3290 	ac_cv_header_stdc=no
   3291 fi
   3292 
   3293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3294 
   3295 if test $ac_cv_header_stdc = yes; then
   3296   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   3297   cat >conftest.$ac_ext <<_ACEOF
   3298 /* confdefs.h.  */
   3299 _ACEOF
   3300 cat confdefs.h >>conftest.$ac_ext
   3301 cat >>conftest.$ac_ext <<_ACEOF
   3302 /* end confdefs.h.  */
   3303 #include <string.h>
   3304 
   3305 _ACEOF
   3306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3307   $EGREP "memchr" >/dev/null 2>&1; then
   3308   :
   3309 else
   3310   ac_cv_header_stdc=no
   3311 fi
   3312 rm -f conftest*
   3313 
   3314 fi
   3315 
   3316 if test $ac_cv_header_stdc = yes; then
   3317   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   3318   cat >conftest.$ac_ext <<_ACEOF
   3319 /* confdefs.h.  */
   3320 _ACEOF
   3321 cat confdefs.h >>conftest.$ac_ext
   3322 cat >>conftest.$ac_ext <<_ACEOF
   3323 /* end confdefs.h.  */
   3324 #include <stdlib.h>
   3325 
   3326 _ACEOF
   3327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3328   $EGREP "free" >/dev/null 2>&1; then
   3329   :
   3330 else
   3331   ac_cv_header_stdc=no
   3332 fi
   3333 rm -f conftest*
   3334 
   3335 fi
   3336 
   3337 if test $ac_cv_header_stdc = yes; then
   3338   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   3339   if test "$cross_compiling" = yes; then
   3340   :
   3341 else
   3342   cat >conftest.$ac_ext <<_ACEOF
   3343 /* confdefs.h.  */
   3344 _ACEOF
   3345 cat confdefs.h >>conftest.$ac_ext
   3346 cat >>conftest.$ac_ext <<_ACEOF
   3347 /* end confdefs.h.  */
   3348 #include <ctype.h>
   3349 #include <stdlib.h>
   3350 #if ((' ' & 0x0FF) == 0x020)
   3351 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   3352 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   3353 #else
   3354 # define ISLOWER(c) \
   3355 		   (('a' <= (c) && (c) <= 'i') \
   3356 		     || ('j' <= (c) && (c) <= 'r') \
   3357 		     || ('s' <= (c) && (c) <= 'z'))
   3358 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   3359 #endif
   3360 
   3361 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   3362 int
   3363 main ()
   3364 {
   3365   int i;
   3366   for (i = 0; i < 256; i++)
   3367     if (XOR (islower (i), ISLOWER (i))
   3368 	|| toupper (i) != TOUPPER (i))
   3369       return 2;
   3370   return 0;
   3371 }
   3372 _ACEOF
   3373 rm -f conftest$ac_exeext
   3374 if { (ac_try="$ac_link"
   3375 case "(($ac_try" in
   3376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3377   *) ac_try_echo=$ac_try;;
   3378 esac
   3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3380   (eval "$ac_link") 2>&5
   3381   ac_status=$?
   3382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3383   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   3384   { (case "(($ac_try" in
   3385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3386   *) ac_try_echo=$ac_try;;
   3387 esac
   3388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3389   (eval "$ac_try") 2>&5
   3390   ac_status=$?
   3391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3392   (exit $ac_status); }; }; then
   3393   :
   3394 else
   3395   echo "$as_me: program exited with status $ac_status" >&5
   3396 echo "$as_me: failed program was:" >&5
   3397 sed 's/^/| /' conftest.$ac_ext >&5
   3398 
   3399 ( exit $ac_status )
   3400 ac_cv_header_stdc=no
   3401 fi
   3402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   3403 fi
   3404 
   3405 
   3406 fi
   3407 fi
   3408 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
   3409 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
   3410 if test $ac_cv_header_stdc = yes; then
   3411 
   3412 cat >>confdefs.h <<\_ACEOF
   3413 #define STDC_HEADERS 1
   3414 _ACEOF
   3415 
   3416 fi
   3417 
   3418 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   3419 
   3420 
   3421 
   3422 
   3423 
   3424 
   3425 
   3426 
   3427 
   3428 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   3429 		  inttypes.h stdint.h unistd.h
   3430 do
   3431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   3432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   3433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   3434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   3435   echo $ECHO_N "(cached) $ECHO_C" >&6
   3436 else
   3437   cat >conftest.$ac_ext <<_ACEOF
   3438 /* confdefs.h.  */
   3439 _ACEOF
   3440 cat confdefs.h >>conftest.$ac_ext
   3441 cat >>conftest.$ac_ext <<_ACEOF
   3442 /* end confdefs.h.  */
   3443 $ac_includes_default
   3444 
   3445 #include <$ac_header>
   3446 _ACEOF
   3447 rm -f conftest.$ac_objext
   3448 if { (ac_try="$ac_compile"
   3449 case "(($ac_try" in
   3450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3451   *) ac_try_echo=$ac_try;;
   3452 esac
   3453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3454   (eval "$ac_compile") 2>conftest.er1
   3455   ac_status=$?
   3456   grep -v '^ *+' conftest.er1 >conftest.err
   3457   rm -f conftest.er1
   3458   cat conftest.err >&5
   3459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3460   (exit $ac_status); } && {
   3461 	 test -z "$ac_c_werror_flag" ||
   3462 	 test ! -s conftest.err
   3463        } && test -s conftest.$ac_objext; then
   3464   eval "$as_ac_Header=yes"
   3465 else
   3466   echo "$as_me: failed program was:" >&5
   3467 sed 's/^/| /' conftest.$ac_ext >&5
   3468 
   3469 	eval "$as_ac_Header=no"
   3470 fi
   3471 
   3472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3473 fi
   3474 ac_res=`eval echo '${'$as_ac_Header'}'`
   3475 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   3476 echo "${ECHO_T}$ac_res" >&6; }
   3477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   3478   cat >>confdefs.h <<_ACEOF
   3479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   3480 _ACEOF
   3481 
   3482 fi
   3483 
   3484 done
   3485 
   3486 
   3487 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
   3488 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
   3489 if test "${ac_cv_c_bigendian+set}" = set; then
   3490   echo $ECHO_N "(cached) $ECHO_C" >&6
   3491 else
   3492   # See if sys/param.h defines the BYTE_ORDER macro.
   3493 cat >conftest.$ac_ext <<_ACEOF
   3494 /* confdefs.h.  */
   3495 _ACEOF
   3496 cat confdefs.h >>conftest.$ac_ext
   3497 cat >>conftest.$ac_ext <<_ACEOF
   3498 /* end confdefs.h.  */
   3499 #include <sys/types.h>
   3500 #include <sys/param.h>
   3501 
   3502 int
   3503 main ()
   3504 {
   3505 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
   3506 	&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
   3507  bogus endian macros
   3508 #endif
   3509 
   3510   ;
   3511   return 0;
   3512 }
   3513 _ACEOF
   3514 rm -f conftest.$ac_objext
   3515 if { (ac_try="$ac_compile"
   3516 case "(($ac_try" in
   3517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3518   *) ac_try_echo=$ac_try;;
   3519 esac
   3520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3521   (eval "$ac_compile") 2>conftest.er1
   3522   ac_status=$?
   3523   grep -v '^ *+' conftest.er1 >conftest.err
   3524   rm -f conftest.er1
   3525   cat conftest.err >&5
   3526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3527   (exit $ac_status); } && {
   3528 	 test -z "$ac_c_werror_flag" ||
   3529 	 test ! -s conftest.err
   3530        } && test -s conftest.$ac_objext; then
   3531   # It does; now see whether it defined to BIG_ENDIAN or not.
   3532 cat >conftest.$ac_ext <<_ACEOF
   3533 /* confdefs.h.  */
   3534 _ACEOF
   3535 cat confdefs.h >>conftest.$ac_ext
   3536 cat >>conftest.$ac_ext <<_ACEOF
   3537 /* end confdefs.h.  */
   3538 #include <sys/types.h>
   3539 #include <sys/param.h>
   3540 
   3541 int
   3542 main ()
   3543 {
   3544 #if BYTE_ORDER != BIG_ENDIAN
   3545  not big endian
   3546 #endif
   3547 
   3548   ;
   3549   return 0;
   3550 }
   3551 _ACEOF
   3552 rm -f conftest.$ac_objext
   3553 if { (ac_try="$ac_compile"
   3554 case "(($ac_try" in
   3555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3556   *) ac_try_echo=$ac_try;;
   3557 esac
   3558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3559   (eval "$ac_compile") 2>conftest.er1
   3560   ac_status=$?
   3561   grep -v '^ *+' conftest.er1 >conftest.err
   3562   rm -f conftest.er1
   3563   cat conftest.err >&5
   3564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3565   (exit $ac_status); } && {
   3566 	 test -z "$ac_c_werror_flag" ||
   3567 	 test ! -s conftest.err
   3568        } && test -s conftest.$ac_objext; then
   3569   ac_cv_c_bigendian=yes
   3570 else
   3571   echo "$as_me: failed program was:" >&5
   3572 sed 's/^/| /' conftest.$ac_ext >&5
   3573 
   3574 	ac_cv_c_bigendian=no
   3575 fi
   3576 
   3577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3578 else
   3579   echo "$as_me: failed program was:" >&5
   3580 sed 's/^/| /' conftest.$ac_ext >&5
   3581 
   3582 	# It does not; compile a test program.
   3583 if test "$cross_compiling" = yes; then
   3584   # try to guess the endianness by grepping values into an object file
   3585   ac_cv_c_bigendian=unknown
   3586   cat >conftest.$ac_ext <<_ACEOF
   3587 /* confdefs.h.  */
   3588 _ACEOF
   3589 cat confdefs.h >>conftest.$ac_ext
   3590 cat >>conftest.$ac_ext <<_ACEOF
   3591 /* end confdefs.h.  */
   3592 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   3593 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   3594 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
   3595 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   3596 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   3597 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
   3598 int
   3599 main ()
   3600 {
   3601  _ascii (); _ebcdic ();
   3602   ;
   3603   return 0;
   3604 }
   3605 _ACEOF
   3606 rm -f conftest.$ac_objext
   3607 if { (ac_try="$ac_compile"
   3608 case "(($ac_try" in
   3609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3610   *) ac_try_echo=$ac_try;;
   3611 esac
   3612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3613   (eval "$ac_compile") 2>conftest.er1
   3614   ac_status=$?
   3615   grep -v '^ *+' conftest.er1 >conftest.err
   3616   rm -f conftest.er1
   3617   cat conftest.err >&5
   3618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3619   (exit $ac_status); } && {
   3620 	 test -z "$ac_c_werror_flag" ||
   3621 	 test ! -s conftest.err
   3622        } && test -s conftest.$ac_objext; then
   3623   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
   3624   ac_cv_c_bigendian=yes
   3625 fi
   3626 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   3627   if test "$ac_cv_c_bigendian" = unknown; then
   3628     ac_cv_c_bigendian=no
   3629   else
   3630     # finding both strings is unlikely to happen, but who knows?
   3631     ac_cv_c_bigendian=unknown
   3632   fi
   3633 fi
   3634 else
   3635   echo "$as_me: failed program was:" >&5
   3636 sed 's/^/| /' conftest.$ac_ext >&5
   3637 
   3638 
   3639 fi
   3640 
   3641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3642 else
   3643   cat >conftest.$ac_ext <<_ACEOF
   3644 /* confdefs.h.  */
   3645 _ACEOF
   3646 cat confdefs.h >>conftest.$ac_ext
   3647 cat >>conftest.$ac_ext <<_ACEOF
   3648 /* end confdefs.h.  */
   3649 $ac_includes_default
   3650 int
   3651 main ()
   3652 {
   3653 
   3654   /* Are we little or big endian?  From Harbison&Steele.  */
   3655   union
   3656   {
   3657     long int l;
   3658     char c[sizeof (long int)];
   3659   } u;
   3660   u.l = 1;
   3661   return u.c[sizeof (long int) - 1] == 1;
   3662 
   3663   ;
   3664   return 0;
   3665 }
   3666 _ACEOF
   3667 rm -f conftest$ac_exeext
   3668 if { (ac_try="$ac_link"
   3669 case "(($ac_try" in
   3670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3671   *) ac_try_echo=$ac_try;;
   3672 esac
   3673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3674   (eval "$ac_link") 2>&5
   3675   ac_status=$?
   3676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3677   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   3678   { (case "(($ac_try" in
   3679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3680   *) ac_try_echo=$ac_try;;
   3681 esac
   3682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3683   (eval "$ac_try") 2>&5
   3684   ac_status=$?
   3685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3686   (exit $ac_status); }; }; then
   3687   ac_cv_c_bigendian=no
   3688 else
   3689   echo "$as_me: program exited with status $ac_status" >&5
   3690 echo "$as_me: failed program was:" >&5
   3691 sed 's/^/| /' conftest.$ac_ext >&5
   3692 
   3693 ( exit $ac_status )
   3694 ac_cv_c_bigendian=yes
   3695 fi
   3696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   3697 fi
   3698 
   3699 
   3700 fi
   3701 
   3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3703 fi
   3704 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
   3705 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
   3706 case $ac_cv_c_bigendian in
   3707   yes)
   3708 
   3709 cat >>confdefs.h <<\_ACEOF
   3710 #define WORDS_BIGENDIAN 1
   3711 _ACEOF
   3712  ;;
   3713   no)
   3714      ;;
   3715   *)
   3716     { { echo "$as_me:$LINENO: error: unknown endianness
   3717 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
   3718 echo "$as_me: error: unknown endianness
   3719 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
   3720    { (exit 1); exit 1; }; } ;;
   3721 esac
   3722 
   3723 
   3724 # Checks for programs.
   3725 for ac_prog in gawk mawk nawk awk
   3726 do
   3727   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3728 set dummy $ac_prog; ac_word=$2
   3729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   3730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   3731 if test "${ac_cv_prog_AWK+set}" = set; then
   3732   echo $ECHO_N "(cached) $ECHO_C" >&6
   3733 else
   3734   if test -n "$AWK"; then
   3735   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   3736 else
   3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3738 for as_dir in $PATH
   3739 do
   3740   IFS=$as_save_IFS
   3741   test -z "$as_dir" && as_dir=.
   3742   for ac_exec_ext in '' $ac_executable_extensions; do
   3743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3744     ac_cv_prog_AWK="$ac_prog"
   3745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   3746     break 2
   3747   fi
   3748 done
   3749 done
   3750 IFS=$as_save_IFS
   3751 
   3752 fi
   3753 fi
   3754 AWK=$ac_cv_prog_AWK
   3755 if test -n "$AWK"; then
   3756   { echo "$as_me:$LINENO: result: $AWK" >&5
   3757 echo "${ECHO_T}$AWK" >&6; }
   3758 else
   3759   { echo "$as_me:$LINENO: result: no" >&5
   3760 echo "${ECHO_T}no" >&6; }
   3761 fi
   3762 
   3763 
   3764   test -n "$AWK" && break
   3765 done
   3766 
   3767 ac_ext=c
   3768 ac_cpp='$CPP $CPPFLAGS'
   3769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3772 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
   3773 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
   3774 # On Suns, sometimes $CPP names a directory.
   3775 if test -n "$CPP" && test -d "$CPP"; then
   3776   CPP=
   3777 fi
   3778 if test -z "$CPP"; then
   3779   if test "${ac_cv_prog_CPP+set}" = set; then
   3780   echo $ECHO_N "(cached) $ECHO_C" >&6
   3781 else
   3782       # Double quotes because CPP needs to be expanded
   3783     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   3784     do
   3785       ac_preproc_ok=false
   3786 for ac_c_preproc_warn_flag in '' yes
   3787 do
   3788   # Use a header file that comes with gcc, so configuring glibc
   3789   # with a fresh cross-compiler works.
   3790   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3791   # <limits.h> exists even on freestanding compilers.
   3792   # On the NeXT, cc -E runs the code through the compiler's parser,
   3793   # not just through cpp. "Syntax error" is here to catch this case.
   3794   cat >conftest.$ac_ext <<_ACEOF
   3795 /* confdefs.h.  */
   3796 _ACEOF
   3797 cat confdefs.h >>conftest.$ac_ext
   3798 cat >>conftest.$ac_ext <<_ACEOF
   3799 /* end confdefs.h.  */
   3800 #ifdef __STDC__
   3801 # include <limits.h>
   3802 #else
   3803 # include <assert.h>
   3804 #endif
   3805 		     Syntax error
   3806 _ACEOF
   3807 if { (ac_try="$ac_cpp conftest.$ac_ext"
   3808 case "(($ac_try" in
   3809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3810   *) ac_try_echo=$ac_try;;
   3811 esac
   3812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3813   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3814   ac_status=$?
   3815   grep -v '^ *+' conftest.er1 >conftest.err
   3816   rm -f conftest.er1
   3817   cat conftest.err >&5
   3818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3819   (exit $ac_status); } >/dev/null && {
   3820 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   3821 	 test ! -s conftest.err
   3822        }; then
   3823   :
   3824 else
   3825   echo "$as_me: failed program was:" >&5
   3826 sed 's/^/| /' conftest.$ac_ext >&5
   3827 
   3828   # Broken: fails on valid input.
   3829 continue
   3830 fi
   3831 
   3832 rm -f conftest.err conftest.$ac_ext
   3833 
   3834   # OK, works on sane cases.  Now check whether nonexistent headers
   3835   # can be detected and how.
   3836   cat >conftest.$ac_ext <<_ACEOF
   3837 /* confdefs.h.  */
   3838 _ACEOF
   3839 cat confdefs.h >>conftest.$ac_ext
   3840 cat >>conftest.$ac_ext <<_ACEOF
   3841 /* end confdefs.h.  */
   3842 #include <ac_nonexistent.h>
   3843 _ACEOF
   3844 if { (ac_try="$ac_cpp conftest.$ac_ext"
   3845 case "(($ac_try" in
   3846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3847   *) ac_try_echo=$ac_try;;
   3848 esac
   3849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3850   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3851   ac_status=$?
   3852   grep -v '^ *+' conftest.er1 >conftest.err
   3853   rm -f conftest.er1
   3854   cat conftest.err >&5
   3855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3856   (exit $ac_status); } >/dev/null && {
   3857 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   3858 	 test ! -s conftest.err
   3859        }; then
   3860   # Broken: success on invalid input.
   3861 continue
   3862 else
   3863   echo "$as_me: failed program was:" >&5
   3864 sed 's/^/| /' conftest.$ac_ext >&5
   3865 
   3866   # Passes both tests.
   3867 ac_preproc_ok=:
   3868 break
   3869 fi
   3870 
   3871 rm -f conftest.err conftest.$ac_ext
   3872 
   3873 done
   3874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3875 rm -f conftest.err conftest.$ac_ext
   3876 if $ac_preproc_ok; then
   3877   break
   3878 fi
   3879 
   3880     done
   3881     ac_cv_prog_CPP=$CPP
   3882 
   3883 fi
   3884   CPP=$ac_cv_prog_CPP
   3885 else
   3886   ac_cv_prog_CPP=$CPP
   3887 fi
   3888 { echo "$as_me:$LINENO: result: $CPP" >&5
   3889 echo "${ECHO_T}$CPP" >&6; }
   3890 ac_preproc_ok=false
   3891 for ac_c_preproc_warn_flag in '' yes
   3892 do
   3893   # Use a header file that comes with gcc, so configuring glibc
   3894   # with a fresh cross-compiler works.
   3895   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3896   # <limits.h> exists even on freestanding compilers.
   3897   # On the NeXT, cc -E runs the code through the compiler's parser,
   3898   # not just through cpp. "Syntax error" is here to catch this case.
   3899   cat >conftest.$ac_ext <<_ACEOF
   3900 /* confdefs.h.  */
   3901 _ACEOF
   3902 cat confdefs.h >>conftest.$ac_ext
   3903 cat >>conftest.$ac_ext <<_ACEOF
   3904 /* end confdefs.h.  */
   3905 #ifdef __STDC__
   3906 # include <limits.h>
   3907 #else
   3908 # include <assert.h>
   3909 #endif
   3910 		     Syntax error
   3911 _ACEOF
   3912 if { (ac_try="$ac_cpp conftest.$ac_ext"
   3913 case "(($ac_try" in
   3914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3915   *) ac_try_echo=$ac_try;;
   3916 esac
   3917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3918   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3919   ac_status=$?
   3920   grep -v '^ *+' conftest.er1 >conftest.err
   3921   rm -f conftest.er1
   3922   cat conftest.err >&5
   3923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3924   (exit $ac_status); } >/dev/null && {
   3925 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   3926 	 test ! -s conftest.err
   3927        }; then
   3928   :
   3929 else
   3930   echo "$as_me: failed program was:" >&5
   3931 sed 's/^/| /' conftest.$ac_ext >&5
   3932 
   3933   # Broken: fails on valid input.
   3934 continue
   3935 fi
   3936 
   3937 rm -f conftest.err conftest.$ac_ext
   3938 
   3939   # OK, works on sane cases.  Now check whether nonexistent headers
   3940   # can be detected and how.
   3941   cat >conftest.$ac_ext <<_ACEOF
   3942 /* confdefs.h.  */
   3943 _ACEOF
   3944 cat confdefs.h >>conftest.$ac_ext
   3945 cat >>conftest.$ac_ext <<_ACEOF
   3946 /* end confdefs.h.  */
   3947 #include <ac_nonexistent.h>
   3948 _ACEOF
   3949 if { (ac_try="$ac_cpp conftest.$ac_ext"
   3950 case "(($ac_try" in
   3951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3952   *) ac_try_echo=$ac_try;;
   3953 esac
   3954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3955   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   3956   ac_status=$?
   3957   grep -v '^ *+' conftest.er1 >conftest.err
   3958   rm -f conftest.er1
   3959   cat conftest.err >&5
   3960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3961   (exit $ac_status); } >/dev/null && {
   3962 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   3963 	 test ! -s conftest.err
   3964        }; then
   3965   # Broken: success on invalid input.
   3966 continue
   3967 else
   3968   echo "$as_me: failed program was:" >&5
   3969 sed 's/^/| /' conftest.$ac_ext >&5
   3970 
   3971   # Passes both tests.
   3972 ac_preproc_ok=:
   3973 break
   3974 fi
   3975 
   3976 rm -f conftest.err conftest.$ac_ext
   3977 
   3978 done
   3979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3980 rm -f conftest.err conftest.$ac_ext
   3981 if $ac_preproc_ok; then
   3982   :
   3983 else
   3984   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
   3985 See \`config.log' for more details." >&5
   3986 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
   3987 See \`config.log' for more details." >&2;}
   3988    { (exit 1); exit 1; }; }
   3989 fi
   3990 
   3991 ac_ext=c
   3992 ac_cpp='$CPP $CPPFLAGS'
   3993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3996 
   3997 if test -n "$ac_tool_prefix"; then
   3998   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   3999 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   4000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4002 if test "${ac_cv_prog_RANLIB+set}" = set; then
   4003   echo $ECHO_N "(cached) $ECHO_C" >&6
   4004 else
   4005   if test -n "$RANLIB"; then
   4006   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   4007 else
   4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4009 for as_dir in $PATH
   4010 do
   4011   IFS=$as_save_IFS
   4012   test -z "$as_dir" && as_dir=.
   4013   for ac_exec_ext in '' $ac_executable_extensions; do
   4014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4015     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   4016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4017     break 2
   4018   fi
   4019 done
   4020 done
   4021 IFS=$as_save_IFS
   4022 
   4023 fi
   4024 fi
   4025 RANLIB=$ac_cv_prog_RANLIB
   4026 if test -n "$RANLIB"; then
   4027   { echo "$as_me:$LINENO: result: $RANLIB" >&5
   4028 echo "${ECHO_T}$RANLIB" >&6; }
   4029 else
   4030   { echo "$as_me:$LINENO: result: no" >&5
   4031 echo "${ECHO_T}no" >&6; }
   4032 fi
   4033 
   4034 
   4035 fi
   4036 if test -z "$ac_cv_prog_RANLIB"; then
   4037   ac_ct_RANLIB=$RANLIB
   4038   # Extract the first word of "ranlib", so it can be a program name with args.
   4039 set dummy ranlib; ac_word=$2
   4040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4042 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
   4043   echo $ECHO_N "(cached) $ECHO_C" >&6
   4044 else
   4045   if test -n "$ac_ct_RANLIB"; then
   4046   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   4047 else
   4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4049 for as_dir in $PATH
   4050 do
   4051   IFS=$as_save_IFS
   4052   test -z "$as_dir" && as_dir=.
   4053   for ac_exec_ext in '' $ac_executable_extensions; do
   4054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4055     ac_cv_prog_ac_ct_RANLIB="ranlib"
   4056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4057     break 2
   4058   fi
   4059 done
   4060 done
   4061 IFS=$as_save_IFS
   4062 
   4063 fi
   4064 fi
   4065 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   4066 if test -n "$ac_ct_RANLIB"; then
   4067   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
   4068 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
   4069 else
   4070   { echo "$as_me:$LINENO: result: no" >&5
   4071 echo "${ECHO_T}no" >&6; }
   4072 fi
   4073 
   4074   if test "x$ac_ct_RANLIB" = x; then
   4075     RANLIB=":"
   4076   else
   4077     case $cross_compiling:$ac_tool_warned in
   4078 yes:)
   4079 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   4080 whose name does not start with the host triplet.  If you think this
   4081 configuration is useful to you, please write to autoconf@gnu.org." >&5
   4082 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   4083 whose name does not start with the host triplet.  If you think this
   4084 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
   4085 ac_tool_warned=yes ;;
   4086 esac
   4087     RANLIB=$ac_ct_RANLIB
   4088   fi
   4089 else
   4090   RANLIB="$ac_cv_prog_RANLIB"
   4091 fi
   4092 
   4093 # Find a good install program.  We prefer a C program (faster),
   4094 # so one script is as good as another.  But avoid the broken or
   4095 # incompatible versions:
   4096 # SysV /etc/install, /usr/sbin/install
   4097 # SunOS /usr/etc/install
   4098 # IRIX /sbin/install
   4099 # AIX /bin/install
   4100 # AmigaOS /C/install, which installs bootblocks on floppy discs
   4101 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   4102 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   4103 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   4104 # OS/2's system install, which has a completely different semantic
   4105 # ./install, which can be erroneously created by make from ./install.sh.
   4106 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
   4107 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
   4108 if test -z "$INSTALL"; then
   4109 if test "${ac_cv_path_install+set}" = set; then
   4110   echo $ECHO_N "(cached) $ECHO_C" >&6
   4111 else
   4112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4113 for as_dir in $PATH
   4114 do
   4115   IFS=$as_save_IFS
   4116   test -z "$as_dir" && as_dir=.
   4117   # Account for people who put trailing slashes in PATH elements.
   4118 case $as_dir/ in
   4119   ./ | .// | /cC/* | \
   4120   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   4121   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
   4122   /usr/ucb/* ) ;;
   4123   *)
   4124     # OSF1 and SCO ODT 3.0 have their own names for install.
   4125     # Don't use installbsd from OSF since it installs stuff as root
   4126     # by default.
   4127     for ac_prog in ginstall scoinst install; do
   4128       for ac_exec_ext in '' $ac_executable_extensions; do
   4129 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
   4130 	  if test $ac_prog = install &&
   4131 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   4132 	    # AIX install.  It has an incompatible calling convention.
   4133 	    :
   4134 	  elif test $ac_prog = install &&
   4135 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   4136 	    # program-specific install script used by HP pwplus--don't use.
   4137 	    :
   4138 	  else
   4139 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   4140 	    break 3
   4141 	  fi
   4142 	fi
   4143       done
   4144     done
   4145     ;;
   4146 esac
   4147 done
   4148 IFS=$as_save_IFS
   4149 
   4150 
   4151 fi
   4152   if test "${ac_cv_path_install+set}" = set; then
   4153     INSTALL=$ac_cv_path_install
   4154   else
   4155     # As a last resort, use the slow shell script.  Don't cache a
   4156     # value for INSTALL within a source directory, because that will
   4157     # break other packages using the cache if that directory is
   4158     # removed, or if the value is a relative name.
   4159     INSTALL=$ac_install_sh
   4160   fi
   4161 fi
   4162 { echo "$as_me:$LINENO: result: $INSTALL" >&5
   4163 echo "${ECHO_T}$INSTALL" >&6; }
   4164 
   4165 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   4166 # It thinks the first close brace ends the variable substitution.
   4167 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   4168 
   4169 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   4170 
   4171 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   4172 
   4173 { echo "$as_me:$LINENO: checking for egrep" >&5
   4174 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
   4175 if test "${ac_cv_path_EGREP+set}" = set; then
   4176   echo $ECHO_N "(cached) $ECHO_C" >&6
   4177 else
   4178   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   4179    then ac_cv_path_EGREP="$GREP -E"
   4180    else
   4181      # Extract the first word of "egrep" to use in msg output
   4182 if test -z "$EGREP"; then
   4183 set dummy egrep; ac_prog_name=$2
   4184 if test "${ac_cv_path_EGREP+set}" = set; then
   4185   echo $ECHO_N "(cached) $ECHO_C" >&6
   4186 else
   4187   ac_path_EGREP_found=false
   4188 # Loop through the user's path and test for each of PROGNAME-LIST
   4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4190 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4191 do
   4192   IFS=$as_save_IFS
   4193   test -z "$as_dir" && as_dir=.
   4194   for ac_prog in egrep; do
   4195   for ac_exec_ext in '' $ac_executable_extensions; do
   4196     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   4197     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
   4198     # Check for GNU ac_path_EGREP and select it if it is found.
   4199   # Check for GNU $ac_path_EGREP
   4200 case `"$ac_path_EGREP" --version 2>&1` in
   4201 *GNU*)
   4202   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   4203 *)
   4204   ac_count=0
   4205   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
   4206   while :
   4207   do
   4208     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4209     mv "conftest.tmp" "conftest.in"
   4210     cp "conftest.in" "conftest.nl"
   4211     echo 'EGREP' >> "conftest.nl"
   4212     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4213     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4214     ac_count=`expr $ac_count + 1`
   4215     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   4216       # Best one so far, save it but keep looking for a better one
   4217       ac_cv_path_EGREP="$ac_path_EGREP"
   4218       ac_path_EGREP_max=$ac_count
   4219     fi
   4220     # 10*(2^10) chars as input seems more than enough
   4221     test $ac_count -gt 10 && break
   4222   done
   4223   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4224 esac
   4225 
   4226 
   4227     $ac_path_EGREP_found && break 3
   4228   done
   4229 done
   4230 
   4231 done
   4232 IFS=$as_save_IFS
   4233 
   4234 
   4235 fi
   4236 
   4237 EGREP="$ac_cv_path_EGREP"
   4238 if test -z "$EGREP"; then
   4239   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
   4240 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   4241    { (exit 1); exit 1; }; }
   4242 fi
   4243 
   4244 else
   4245   ac_cv_path_EGREP=$EGREP
   4246 fi
   4247 
   4248 
   4249    fi
   4250 fi
   4251 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
   4252 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
   4253  EGREP="$ac_cv_path_EGREP"
   4254 
   4255 
   4256 # Extract the first word of "ar", so it can be a program name with args.
   4257 set dummy ar; ac_word=$2
   4258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4260 if test "${ac_cv_path_AR+set}" = set; then
   4261   echo $ECHO_N "(cached) $ECHO_C" >&6
   4262 else
   4263   case $AR in
   4264   [\\/]* | ?:[\\/]*)
   4265   ac_cv_path_AR="$AR" # Let the user override the test with a path.
   4266   ;;
   4267   *)
   4268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4269 for as_dir in $PATH
   4270 do
   4271   IFS=$as_save_IFS
   4272   test -z "$as_dir" && as_dir=.
   4273   for ac_exec_ext in '' $ac_executable_extensions; do
   4274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4275     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
   4276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4277     break 2
   4278   fi
   4279 done
   4280 done
   4281 IFS=$as_save_IFS
   4282 
   4283   ;;
   4284 esac
   4285 fi
   4286 AR=$ac_cv_path_AR
   4287 if test -n "$AR"; then
   4288   { echo "$as_me:$LINENO: result: $AR" >&5
   4289 echo "${ECHO_T}$AR" >&6; }
   4290 else
   4291   { echo "$as_me:$LINENO: result: no" >&5
   4292 echo "${ECHO_T}no" >&6; }
   4293 fi
   4294 
   4295 
   4296 # Extract the first word of "cat", so it can be a program name with args.
   4297 set dummy cat; ac_word=$2
   4298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4300 if test "${ac_cv_path_CAT+set}" = set; then
   4301   echo $ECHO_N "(cached) $ECHO_C" >&6
   4302 else
   4303   case $CAT in
   4304   [\\/]* | ?:[\\/]*)
   4305   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
   4306   ;;
   4307   *)
   4308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4309 for as_dir in $PATH
   4310 do
   4311   IFS=$as_save_IFS
   4312   test -z "$as_dir" && as_dir=.
   4313   for ac_exec_ext in '' $ac_executable_extensions; do
   4314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4315     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
   4316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4317     break 2
   4318   fi
   4319 done
   4320 done
   4321 IFS=$as_save_IFS
   4322 
   4323   ;;
   4324 esac
   4325 fi
   4326 CAT=$ac_cv_path_CAT
   4327 if test -n "$CAT"; then
   4328   { echo "$as_me:$LINENO: result: $CAT" >&5
   4329 echo "${ECHO_T}$CAT" >&6; }
   4330 else
   4331   { echo "$as_me:$LINENO: result: no" >&5
   4332 echo "${ECHO_T}no" >&6; }
   4333 fi
   4334 
   4335 
   4336 # Extract the first word of "kill", so it can be a program name with args.
   4337 set dummy kill; ac_word=$2
   4338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4340 if test "${ac_cv_path_KILL+set}" = set; then
   4341   echo $ECHO_N "(cached) $ECHO_C" >&6
   4342 else
   4343   case $KILL in
   4344   [\\/]* | ?:[\\/]*)
   4345   ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
   4346   ;;
   4347   *)
   4348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4349 for as_dir in $PATH
   4350 do
   4351   IFS=$as_save_IFS
   4352   test -z "$as_dir" && as_dir=.
   4353   for ac_exec_ext in '' $ac_executable_extensions; do
   4354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4355     ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
   4356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4357     break 2
   4358   fi
   4359 done
   4360 done
   4361 IFS=$as_save_IFS
   4362 
   4363   ;;
   4364 esac
   4365 fi
   4366 KILL=$ac_cv_path_KILL
   4367 if test -n "$KILL"; then
   4368   { echo "$as_me:$LINENO: result: $KILL" >&5
   4369 echo "${ECHO_T}$KILL" >&6; }
   4370 else
   4371   { echo "$as_me:$LINENO: result: no" >&5
   4372 echo "${ECHO_T}no" >&6; }
   4373 fi
   4374 
   4375 
   4376 for ac_prog in perl5 perl
   4377 do
   4378   # Extract the first word of "$ac_prog", so it can be a program name with args.
   4379 set dummy $ac_prog; ac_word=$2
   4380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4382 if test "${ac_cv_path_PERL+set}" = set; then
   4383   echo $ECHO_N "(cached) $ECHO_C" >&6
   4384 else
   4385   case $PERL in
   4386   [\\/]* | ?:[\\/]*)
   4387   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
   4388   ;;
   4389   *)
   4390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4391 for as_dir in $PATH
   4392 do
   4393   IFS=$as_save_IFS
   4394   test -z "$as_dir" && as_dir=.
   4395   for ac_exec_ext in '' $ac_executable_extensions; do
   4396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4397     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
   4398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4399     break 2
   4400   fi
   4401 done
   4402 done
   4403 IFS=$as_save_IFS
   4404 
   4405   ;;
   4406 esac
   4407 fi
   4408 PERL=$ac_cv_path_PERL
   4409 if test -n "$PERL"; then
   4410   { echo "$as_me:$LINENO: result: $PERL" >&5
   4411 echo "${ECHO_T}$PERL" >&6; }
   4412 else
   4413   { echo "$as_me:$LINENO: result: no" >&5
   4414 echo "${ECHO_T}no" >&6; }
   4415 fi
   4416 
   4417 
   4418   test -n "$PERL" && break
   4419 done
   4420 
   4421 # Extract the first word of "sed", so it can be a program name with args.
   4422 set dummy sed; ac_word=$2
   4423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4425 if test "${ac_cv_path_SED+set}" = set; then
   4426   echo $ECHO_N "(cached) $ECHO_C" >&6
   4427 else
   4428   case $SED in
   4429   [\\/]* | ?:[\\/]*)
   4430   ac_cv_path_SED="$SED" # Let the user override the test with a path.
   4431   ;;
   4432   *)
   4433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4434 for as_dir in $PATH
   4435 do
   4436   IFS=$as_save_IFS
   4437   test -z "$as_dir" && as_dir=.
   4438   for ac_exec_ext in '' $ac_executable_extensions; do
   4439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4440     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
   4441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4442     break 2
   4443   fi
   4444 done
   4445 done
   4446 IFS=$as_save_IFS
   4447 
   4448   ;;
   4449 esac
   4450 fi
   4451 SED=$ac_cv_path_SED
   4452 if test -n "$SED"; then
   4453   { echo "$as_me:$LINENO: result: $SED" >&5
   4454 echo "${ECHO_T}$SED" >&6; }
   4455 else
   4456   { echo "$as_me:$LINENO: result: no" >&5
   4457 echo "${ECHO_T}no" >&6; }
   4458 fi
   4459 
   4460 
   4461 
   4462 # Extract the first word of "ent", so it can be a program name with args.
   4463 set dummy ent; ac_word=$2
   4464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4466 if test "${ac_cv_path_ENT+set}" = set; then
   4467   echo $ECHO_N "(cached) $ECHO_C" >&6
   4468 else
   4469   case $ENT in
   4470   [\\/]* | ?:[\\/]*)
   4471   ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
   4472   ;;
   4473   *)
   4474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4475 for as_dir in $PATH
   4476 do
   4477   IFS=$as_save_IFS
   4478   test -z "$as_dir" && as_dir=.
   4479   for ac_exec_ext in '' $ac_executable_extensions; do
   4480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4481     ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
   4482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4483     break 2
   4484   fi
   4485 done
   4486 done
   4487 IFS=$as_save_IFS
   4488 
   4489   ;;
   4490 esac
   4491 fi
   4492 ENT=$ac_cv_path_ENT
   4493 if test -n "$ENT"; then
   4494   { echo "$as_me:$LINENO: result: $ENT" >&5
   4495 echo "${ECHO_T}$ENT" >&6; }
   4496 else
   4497   { echo "$as_me:$LINENO: result: no" >&5
   4498 echo "${ECHO_T}no" >&6; }
   4499 fi
   4500 
   4501 
   4502 
   4503 # Extract the first word of "bash", so it can be a program name with args.
   4504 set dummy bash; ac_word=$2
   4505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4507 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
   4508   echo $ECHO_N "(cached) $ECHO_C" >&6
   4509 else
   4510   case $TEST_MINUS_S_SH in
   4511   [\\/]* | ?:[\\/]*)
   4512   ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
   4513   ;;
   4514   *)
   4515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4516 for as_dir in $PATH
   4517 do
   4518   IFS=$as_save_IFS
   4519   test -z "$as_dir" && as_dir=.
   4520   for ac_exec_ext in '' $ac_executable_extensions; do
   4521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4522     ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
   4523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4524     break 2
   4525   fi
   4526 done
   4527 done
   4528 IFS=$as_save_IFS
   4529 
   4530   ;;
   4531 esac
   4532 fi
   4533 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
   4534 if test -n "$TEST_MINUS_S_SH"; then
   4535   { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
   4536 echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
   4537 else
   4538   { echo "$as_me:$LINENO: result: no" >&5
   4539 echo "${ECHO_T}no" >&6; }
   4540 fi
   4541 
   4542 
   4543 # Extract the first word of "ksh", so it can be a program name with args.
   4544 set dummy ksh; ac_word=$2
   4545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4547 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
   4548   echo $ECHO_N "(cached) $ECHO_C" >&6
   4549 else
   4550   case $TEST_MINUS_S_SH in
   4551   [\\/]* | ?:[\\/]*)
   4552   ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
   4553   ;;
   4554   *)
   4555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4556 for as_dir in $PATH
   4557 do
   4558   IFS=$as_save_IFS
   4559   test -z "$as_dir" && as_dir=.
   4560   for ac_exec_ext in '' $ac_executable_extensions; do
   4561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4562     ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
   4563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4564     break 2
   4565   fi
   4566 done
   4567 done
   4568 IFS=$as_save_IFS
   4569 
   4570   ;;
   4571 esac
   4572 fi
   4573 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
   4574 if test -n "$TEST_MINUS_S_SH"; then
   4575   { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
   4576 echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
   4577 else
   4578   { echo "$as_me:$LINENO: result: no" >&5
   4579 echo "${ECHO_T}no" >&6; }
   4580 fi
   4581 
   4582 
   4583 # Extract the first word of "sh", so it can be a program name with args.
   4584 set dummy sh; ac_word=$2
   4585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4587 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
   4588   echo $ECHO_N "(cached) $ECHO_C" >&6
   4589 else
   4590   case $TEST_MINUS_S_SH in
   4591   [\\/]* | ?:[\\/]*)
   4592   ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
   4593   ;;
   4594   *)
   4595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4596 for as_dir in $PATH
   4597 do
   4598   IFS=$as_save_IFS
   4599   test -z "$as_dir" && as_dir=.
   4600   for ac_exec_ext in '' $ac_executable_extensions; do
   4601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4602     ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
   4603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4604     break 2
   4605   fi
   4606 done
   4607 done
   4608 IFS=$as_save_IFS
   4609 
   4610   ;;
   4611 esac
   4612 fi
   4613 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
   4614 if test -n "$TEST_MINUS_S_SH"; then
   4615   { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
   4616 echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
   4617 else
   4618   { echo "$as_me:$LINENO: result: no" >&5
   4619 echo "${ECHO_T}no" >&6; }
   4620 fi
   4621 
   4622 
   4623 # Extract the first word of "sh", so it can be a program name with args.
   4624 set dummy sh; ac_word=$2
   4625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4627 if test "${ac_cv_path_SH+set}" = set; then
   4628   echo $ECHO_N "(cached) $ECHO_C" >&6
   4629 else
   4630   case $SH in
   4631   [\\/]* | ?:[\\/]*)
   4632   ac_cv_path_SH="$SH" # Let the user override the test with a path.
   4633   ;;
   4634   *)
   4635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4636 for as_dir in $PATH
   4637 do
   4638   IFS=$as_save_IFS
   4639   test -z "$as_dir" && as_dir=.
   4640   for ac_exec_ext in '' $ac_executable_extensions; do
   4641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4642     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
   4643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4644     break 2
   4645   fi
   4646 done
   4647 done
   4648 IFS=$as_save_IFS
   4649 
   4650   ;;
   4651 esac
   4652 fi
   4653 SH=$ac_cv_path_SH
   4654 if test -n "$SH"; then
   4655   { echo "$as_me:$LINENO: result: $SH" >&5
   4656 echo "${ECHO_T}$SH" >&6; }
   4657 else
   4658   { echo "$as_me:$LINENO: result: no" >&5
   4659 echo "${ECHO_T}no" >&6; }
   4660 fi
   4661 
   4662 
   4663 # Extract the first word of "groff", so it can be a program name with args.
   4664 set dummy groff; ac_word=$2
   4665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4667 if test "${ac_cv_path_GROFF+set}" = set; then
   4668   echo $ECHO_N "(cached) $ECHO_C" >&6
   4669 else
   4670   case $GROFF in
   4671   [\\/]* | ?:[\\/]*)
   4672   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
   4673   ;;
   4674   *)
   4675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4676 for as_dir in $PATH
   4677 do
   4678   IFS=$as_save_IFS
   4679   test -z "$as_dir" && as_dir=.
   4680   for ac_exec_ext in '' $ac_executable_extensions; do
   4681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4682     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
   4683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4684     break 2
   4685   fi
   4686 done
   4687 done
   4688 IFS=$as_save_IFS
   4689 
   4690   ;;
   4691 esac
   4692 fi
   4693 GROFF=$ac_cv_path_GROFF
   4694 if test -n "$GROFF"; then
   4695   { echo "$as_me:$LINENO: result: $GROFF" >&5
   4696 echo "${ECHO_T}$GROFF" >&6; }
   4697 else
   4698   { echo "$as_me:$LINENO: result: no" >&5
   4699 echo "${ECHO_T}no" >&6; }
   4700 fi
   4701 
   4702 
   4703 # Extract the first word of "nroff", so it can be a program name with args.
   4704 set dummy nroff; ac_word=$2
   4705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4707 if test "${ac_cv_path_NROFF+set}" = set; then
   4708   echo $ECHO_N "(cached) $ECHO_C" >&6
   4709 else
   4710   case $NROFF in
   4711   [\\/]* | ?:[\\/]*)
   4712   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
   4713   ;;
   4714   *)
   4715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4716 for as_dir in $PATH
   4717 do
   4718   IFS=$as_save_IFS
   4719   test -z "$as_dir" && as_dir=.
   4720   for ac_exec_ext in '' $ac_executable_extensions; do
   4721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4722     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
   4723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4724     break 2
   4725   fi
   4726 done
   4727 done
   4728 IFS=$as_save_IFS
   4729 
   4730   ;;
   4731 esac
   4732 fi
   4733 NROFF=$ac_cv_path_NROFF
   4734 if test -n "$NROFF"; then
   4735   { echo "$as_me:$LINENO: result: $NROFF" >&5
   4736 echo "${ECHO_T}$NROFF" >&6; }
   4737 else
   4738   { echo "$as_me:$LINENO: result: no" >&5
   4739 echo "${ECHO_T}no" >&6; }
   4740 fi
   4741 
   4742 
   4743 # Extract the first word of "mandoc", so it can be a program name with args.
   4744 set dummy mandoc; ac_word=$2
   4745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4747 if test "${ac_cv_path_MANDOC+set}" = set; then
   4748   echo $ECHO_N "(cached) $ECHO_C" >&6
   4749 else
   4750   case $MANDOC in
   4751   [\\/]* | ?:[\\/]*)
   4752   ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path.
   4753   ;;
   4754   *)
   4755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4756 for as_dir in $PATH
   4757 do
   4758   IFS=$as_save_IFS
   4759   test -z "$as_dir" && as_dir=.
   4760   for ac_exec_ext in '' $ac_executable_extensions; do
   4761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4762     ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext"
   4763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4764     break 2
   4765   fi
   4766 done
   4767 done
   4768 IFS=$as_save_IFS
   4769 
   4770   ;;
   4771 esac
   4772 fi
   4773 MANDOC=$ac_cv_path_MANDOC
   4774 if test -n "$MANDOC"; then
   4775   { echo "$as_me:$LINENO: result: $MANDOC" >&5
   4776 echo "${ECHO_T}$MANDOC" >&6; }
   4777 else
   4778   { echo "$as_me:$LINENO: result: no" >&5
   4779 echo "${ECHO_T}no" >&6; }
   4780 fi
   4781 
   4782 
   4783 TEST_SHELL=sh
   4784 
   4785 
   4786 if test "x$MANDOC" != "x" ; then
   4787 	MANFMT="$MANDOC"
   4788 elif test "x$NROFF" != "x" ; then
   4789 	MANFMT="$NROFF -mandoc"
   4790 elif test "x$GROFF" != "x" ; then
   4791 	MANFMT="$GROFF -mandoc -Tascii"
   4792 else
   4793 	{ echo "$as_me:$LINENO: WARNING: no manpage formatted found" >&5
   4794 echo "$as_me: WARNING: no manpage formatted found" >&2;}
   4795 	MANFMT="false"
   4796 fi
   4797 
   4798 
   4799 # Extract the first word of "groupadd", so it can be a program name with args.
   4800 set dummy groupadd; ac_word=$2
   4801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4803 if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then
   4804   echo $ECHO_N "(cached) $ECHO_C" >&6
   4805 else
   4806   case $PATH_GROUPADD_PROG in
   4807   [\\/]* | ?:[\\/]*)
   4808   ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
   4809   ;;
   4810   *)
   4811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4812 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
   4813 do
   4814   IFS=$as_save_IFS
   4815   test -z "$as_dir" && as_dir=.
   4816   for ac_exec_ext in '' $ac_executable_extensions; do
   4817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4818     ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
   4819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4820     break 2
   4821   fi
   4822 done
   4823 done
   4824 IFS=$as_save_IFS
   4825 
   4826   test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
   4827   ;;
   4828 esac
   4829 fi
   4830 PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
   4831 if test -n "$PATH_GROUPADD_PROG"; then
   4832   { echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5
   4833 echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6; }
   4834 else
   4835   { echo "$as_me:$LINENO: result: no" >&5
   4836 echo "${ECHO_T}no" >&6; }
   4837 fi
   4838 
   4839 
   4840 # Extract the first word of "useradd", so it can be a program name with args.
   4841 set dummy useradd; ac_word=$2
   4842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4844 if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then
   4845   echo $ECHO_N "(cached) $ECHO_C" >&6
   4846 else
   4847   case $PATH_USERADD_PROG in
   4848   [\\/]* | ?:[\\/]*)
   4849   ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
   4850   ;;
   4851   *)
   4852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4853 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
   4854 do
   4855   IFS=$as_save_IFS
   4856   test -z "$as_dir" && as_dir=.
   4857   for ac_exec_ext in '' $ac_executable_extensions; do
   4858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4859     ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
   4860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4861     break 2
   4862   fi
   4863 done
   4864 done
   4865 IFS=$as_save_IFS
   4866 
   4867   test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
   4868   ;;
   4869 esac
   4870 fi
   4871 PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
   4872 if test -n "$PATH_USERADD_PROG"; then
   4873   { echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5
   4874 echo "${ECHO_T}$PATH_USERADD_PROG" >&6; }
   4875 else
   4876   { echo "$as_me:$LINENO: result: no" >&5
   4877 echo "${ECHO_T}no" >&6; }
   4878 fi
   4879 
   4880 
   4881 # Extract the first word of "pkgmk", so it can be a program name with args.
   4882 set dummy pkgmk; ac_word=$2
   4883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4885 if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then
   4886   echo $ECHO_N "(cached) $ECHO_C" >&6
   4887 else
   4888   if test -n "$MAKE_PACKAGE_SUPPORTED"; then
   4889   ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
   4890 else
   4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4892 for as_dir in $PATH
   4893 do
   4894   IFS=$as_save_IFS
   4895   test -z "$as_dir" && as_dir=.
   4896   for ac_exec_ext in '' $ac_executable_extensions; do
   4897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4898     ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
   4899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4900     break 2
   4901   fi
   4902 done
   4903 done
   4904 IFS=$as_save_IFS
   4905 
   4906   test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
   4907 fi
   4908 fi
   4909 MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
   4910 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
   4911   { echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5
   4912 echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6; }
   4913 else
   4914   { echo "$as_me:$LINENO: result: no" >&5
   4915 echo "${ECHO_T}no" >&6; }
   4916 fi
   4917 
   4918 
   4919 if test -x /sbin/sh; then
   4920 	STARTUP_SCRIPT_SHELL=/sbin/sh
   4921 
   4922 else
   4923 	STARTUP_SCRIPT_SHELL=/bin/sh
   4924 
   4925 fi
   4926 
   4927 # System features
   4928 # Check whether --enable-largefile was given.
   4929 if test "${enable_largefile+set}" = set; then
   4930   enableval=$enable_largefile;
   4931 fi
   4932 
   4933 if test "$enable_largefile" != no; then
   4934 
   4935   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
   4936 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
   4937 if test "${ac_cv_sys_largefile_CC+set}" = set; then
   4938   echo $ECHO_N "(cached) $ECHO_C" >&6
   4939 else
   4940   ac_cv_sys_largefile_CC=no
   4941      if test "$GCC" != yes; then
   4942        ac_save_CC=$CC
   4943        while :; do
   4944 	 # IRIX 6.2 and later do not support large files by default,
   4945 	 # so use the C compiler's -n32 option if that helps.
   4946 	 cat >conftest.$ac_ext <<_ACEOF
   4947 /* confdefs.h.  */
   4948 _ACEOF
   4949 cat confdefs.h >>conftest.$ac_ext
   4950 cat >>conftest.$ac_ext <<_ACEOF
   4951 /* end confdefs.h.  */
   4952 #include <sys/types.h>
   4953  /* Check that off_t can represent 2**63 - 1 correctly.
   4954     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4955     since some C++ compilers masquerading as C compilers
   4956     incorrectly reject 9223372036854775807.  */
   4957 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4958   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4959 		       && LARGE_OFF_T % 2147483647 == 1)
   4960 		      ? 1 : -1];
   4961 int
   4962 main ()
   4963 {
   4964 
   4965   ;
   4966   return 0;
   4967 }
   4968 _ACEOF
   4969 	 rm -f conftest.$ac_objext
   4970 if { (ac_try="$ac_compile"
   4971 case "(($ac_try" in
   4972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4973   *) ac_try_echo=$ac_try;;
   4974 esac
   4975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4976   (eval "$ac_compile") 2>conftest.er1
   4977   ac_status=$?
   4978   grep -v '^ *+' conftest.er1 >conftest.err
   4979   rm -f conftest.er1
   4980   cat conftest.err >&5
   4981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4982   (exit $ac_status); } && {
   4983 	 test -z "$ac_c_werror_flag" ||
   4984 	 test ! -s conftest.err
   4985        } && test -s conftest.$ac_objext; then
   4986   break
   4987 else
   4988   echo "$as_me: failed program was:" >&5
   4989 sed 's/^/| /' conftest.$ac_ext >&5
   4990 
   4991 
   4992 fi
   4993 
   4994 rm -f core conftest.err conftest.$ac_objext
   4995 	 CC="$CC -n32"
   4996 	 rm -f conftest.$ac_objext
   4997 if { (ac_try="$ac_compile"
   4998 case "(($ac_try" in
   4999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5000   *) ac_try_echo=$ac_try;;
   5001 esac
   5002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5003   (eval "$ac_compile") 2>conftest.er1
   5004   ac_status=$?
   5005   grep -v '^ *+' conftest.er1 >conftest.err
   5006   rm -f conftest.er1
   5007   cat conftest.err >&5
   5008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5009   (exit $ac_status); } && {
   5010 	 test -z "$ac_c_werror_flag" ||
   5011 	 test ! -s conftest.err
   5012        } && test -s conftest.$ac_objext; then
   5013   ac_cv_sys_largefile_CC=' -n32'; break
   5014 else
   5015   echo "$as_me: failed program was:" >&5
   5016 sed 's/^/| /' conftest.$ac_ext >&5
   5017 
   5018 
   5019 fi
   5020 
   5021 rm -f core conftest.err conftest.$ac_objext
   5022 	 break
   5023        done
   5024        CC=$ac_save_CC
   5025        rm -f conftest.$ac_ext
   5026     fi
   5027 fi
   5028 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
   5029 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
   5030   if test "$ac_cv_sys_largefile_CC" != no; then
   5031     CC=$CC$ac_cv_sys_largefile_CC
   5032   fi
   5033 
   5034   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
   5035 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
   5036 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
   5037   echo $ECHO_N "(cached) $ECHO_C" >&6
   5038 else
   5039   while :; do
   5040   cat >conftest.$ac_ext <<_ACEOF
   5041 /* confdefs.h.  */
   5042 _ACEOF
   5043 cat confdefs.h >>conftest.$ac_ext
   5044 cat >>conftest.$ac_ext <<_ACEOF
   5045 /* end confdefs.h.  */
   5046 #include <sys/types.h>
   5047  /* Check that off_t can represent 2**63 - 1 correctly.
   5048     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   5049     since some C++ compilers masquerading as C compilers
   5050     incorrectly reject 9223372036854775807.  */
   5051 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   5052   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   5053 		       && LARGE_OFF_T % 2147483647 == 1)
   5054 		      ? 1 : -1];
   5055 int
   5056 main ()
   5057 {
   5058 
   5059   ;
   5060   return 0;
   5061 }
   5062 _ACEOF
   5063 rm -f conftest.$ac_objext
   5064 if { (ac_try="$ac_compile"
   5065 case "(($ac_try" in
   5066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5067   *) ac_try_echo=$ac_try;;
   5068 esac
   5069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5070   (eval "$ac_compile") 2>conftest.er1
   5071   ac_status=$?
   5072   grep -v '^ *+' conftest.er1 >conftest.err
   5073   rm -f conftest.er1
   5074   cat conftest.err >&5
   5075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5076   (exit $ac_status); } && {
   5077 	 test -z "$ac_c_werror_flag" ||
   5078 	 test ! -s conftest.err
   5079        } && test -s conftest.$ac_objext; then
   5080   ac_cv_sys_file_offset_bits=no; break
   5081 else
   5082   echo "$as_me: failed program was:" >&5
   5083 sed 's/^/| /' conftest.$ac_ext >&5
   5084 
   5085 
   5086 fi
   5087 
   5088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5089   cat >conftest.$ac_ext <<_ACEOF
   5090 /* confdefs.h.  */
   5091 _ACEOF
   5092 cat confdefs.h >>conftest.$ac_ext
   5093 cat >>conftest.$ac_ext <<_ACEOF
   5094 /* end confdefs.h.  */
   5095 #define _FILE_OFFSET_BITS 64
   5096 #include <sys/types.h>
   5097  /* Check that off_t can represent 2**63 - 1 correctly.
   5098     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   5099     since some C++ compilers masquerading as C compilers
   5100     incorrectly reject 9223372036854775807.  */
   5101 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   5102   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   5103 		       && LARGE_OFF_T % 2147483647 == 1)
   5104 		      ? 1 : -1];
   5105 int
   5106 main ()
   5107 {
   5108 
   5109   ;
   5110   return 0;
   5111 }
   5112 _ACEOF
   5113 rm -f conftest.$ac_objext
   5114 if { (ac_try="$ac_compile"
   5115 case "(($ac_try" in
   5116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5117   *) ac_try_echo=$ac_try;;
   5118 esac
   5119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5120   (eval "$ac_compile") 2>conftest.er1
   5121   ac_status=$?
   5122   grep -v '^ *+' conftest.er1 >conftest.err
   5123   rm -f conftest.er1
   5124   cat conftest.err >&5
   5125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5126   (exit $ac_status); } && {
   5127 	 test -z "$ac_c_werror_flag" ||
   5128 	 test ! -s conftest.err
   5129        } && test -s conftest.$ac_objext; then
   5130   ac_cv_sys_file_offset_bits=64; break
   5131 else
   5132   echo "$as_me: failed program was:" >&5
   5133 sed 's/^/| /' conftest.$ac_ext >&5
   5134 
   5135 
   5136 fi
   5137 
   5138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5139   ac_cv_sys_file_offset_bits=unknown
   5140   break
   5141 done
   5142 fi
   5143 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
   5144 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
   5145 case $ac_cv_sys_file_offset_bits in #(
   5146   no | unknown) ;;
   5147   *)
   5148 cat >>confdefs.h <<_ACEOF
   5149 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
   5150 _ACEOF
   5151 ;;
   5152 esac
   5153 rm -f conftest*
   5154   if test $ac_cv_sys_file_offset_bits = unknown; then
   5155     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
   5156 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
   5157 if test "${ac_cv_sys_large_files+set}" = set; then
   5158   echo $ECHO_N "(cached) $ECHO_C" >&6
   5159 else
   5160   while :; do
   5161   cat >conftest.$ac_ext <<_ACEOF
   5162 /* confdefs.h.  */
   5163 _ACEOF
   5164 cat confdefs.h >>conftest.$ac_ext
   5165 cat >>conftest.$ac_ext <<_ACEOF
   5166 /* end confdefs.h.  */
   5167 #include <sys/types.h>
   5168  /* Check that off_t can represent 2**63 - 1 correctly.
   5169     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   5170     since some C++ compilers masquerading as C compilers
   5171     incorrectly reject 9223372036854775807.  */
   5172 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   5173   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   5174 		       && LARGE_OFF_T % 2147483647 == 1)
   5175 		      ? 1 : -1];
   5176 int
   5177 main ()
   5178 {
   5179 
   5180   ;
   5181   return 0;
   5182 }
   5183 _ACEOF
   5184 rm -f conftest.$ac_objext
   5185 if { (ac_try="$ac_compile"
   5186 case "(($ac_try" in
   5187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5188   *) ac_try_echo=$ac_try;;
   5189 esac
   5190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5191   (eval "$ac_compile") 2>conftest.er1
   5192   ac_status=$?
   5193   grep -v '^ *+' conftest.er1 >conftest.err
   5194   rm -f conftest.er1
   5195   cat conftest.err >&5
   5196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5197   (exit $ac_status); } && {
   5198 	 test -z "$ac_c_werror_flag" ||
   5199 	 test ! -s conftest.err
   5200        } && test -s conftest.$ac_objext; then
   5201   ac_cv_sys_large_files=no; break
   5202 else
   5203   echo "$as_me: failed program was:" >&5
   5204 sed 's/^/| /' conftest.$ac_ext >&5
   5205 
   5206 
   5207 fi
   5208 
   5209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5210   cat >conftest.$ac_ext <<_ACEOF
   5211 /* confdefs.h.  */
   5212 _ACEOF
   5213 cat confdefs.h >>conftest.$ac_ext
   5214 cat >>conftest.$ac_ext <<_ACEOF
   5215 /* end confdefs.h.  */
   5216 #define _LARGE_FILES 1
   5217 #include <sys/types.h>
   5218  /* Check that off_t can represent 2**63 - 1 correctly.
   5219     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   5220     since some C++ compilers masquerading as C compilers
   5221     incorrectly reject 9223372036854775807.  */
   5222 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   5223   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   5224 		       && LARGE_OFF_T % 2147483647 == 1)
   5225 		      ? 1 : -1];
   5226 int
   5227 main ()
   5228 {
   5229 
   5230   ;
   5231   return 0;
   5232 }
   5233 _ACEOF
   5234 rm -f conftest.$ac_objext
   5235 if { (ac_try="$ac_compile"
   5236 case "(($ac_try" in
   5237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5238   *) ac_try_echo=$ac_try;;
   5239 esac
   5240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5241   (eval "$ac_compile") 2>conftest.er1
   5242   ac_status=$?
   5243   grep -v '^ *+' conftest.er1 >conftest.err
   5244   rm -f conftest.er1
   5245   cat conftest.err >&5
   5246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5247   (exit $ac_status); } && {
   5248 	 test -z "$ac_c_werror_flag" ||
   5249 	 test ! -s conftest.err
   5250        } && test -s conftest.$ac_objext; then
   5251   ac_cv_sys_large_files=1; break
   5252 else
   5253   echo "$as_me: failed program was:" >&5
   5254 sed 's/^/| /' conftest.$ac_ext >&5
   5255 
   5256 
   5257 fi
   5258 
   5259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5260   ac_cv_sys_large_files=unknown
   5261   break
   5262 done
   5263 fi
   5264 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
   5265 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
   5266 case $ac_cv_sys_large_files in #(
   5267   no | unknown) ;;
   5268   *)
   5269 cat >>confdefs.h <<_ACEOF
   5270 #define _LARGE_FILES $ac_cv_sys_large_files
   5271 _ACEOF
   5272 ;;
   5273 esac
   5274 rm -f conftest*
   5275   fi
   5276 fi
   5277 
   5278 
   5279 if test -z "$AR" ; then
   5280 	{ { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
   5281 echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
   5282    { (exit 1); exit 1; }; }
   5283 fi
   5284 
   5285 # Use LOGIN_PROGRAM from environment if possible
   5286 if test ! -z "$LOGIN_PROGRAM" ; then
   5287 
   5288 cat >>confdefs.h <<_ACEOF
   5289 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
   5290 _ACEOF
   5291 
   5292 else
   5293 	# Search for login
   5294 	# Extract the first word of "login", so it can be a program name with args.
   5295 set dummy login; ac_word=$2
   5296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5298 if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
   5299   echo $ECHO_N "(cached) $ECHO_C" >&6
   5300 else
   5301   case $LOGIN_PROGRAM_FALLBACK in
   5302   [\\/]* | ?:[\\/]*)
   5303   ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
   5304   ;;
   5305   *)
   5306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5307 for as_dir in $PATH
   5308 do
   5309   IFS=$as_save_IFS
   5310   test -z "$as_dir" && as_dir=.
   5311   for ac_exec_ext in '' $ac_executable_extensions; do
   5312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5313     ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
   5314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5315     break 2
   5316   fi
   5317 done
   5318 done
   5319 IFS=$as_save_IFS
   5320 
   5321   ;;
   5322 esac
   5323 fi
   5324 LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
   5325 if test -n "$LOGIN_PROGRAM_FALLBACK"; then
   5326   { echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
   5327 echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6; }
   5328 else
   5329   { echo "$as_me:$LINENO: result: no" >&5
   5330 echo "${ECHO_T}no" >&6; }
   5331 fi
   5332 
   5333 
   5334 	if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
   5335 		cat >>confdefs.h <<_ACEOF
   5336 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
   5337 _ACEOF
   5338 
   5339 	fi
   5340 fi
   5341 
   5342 # Extract the first word of "passwd", so it can be a program name with args.
   5343 set dummy passwd; ac_word=$2
   5344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5346 if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then
   5347   echo $ECHO_N "(cached) $ECHO_C" >&6
   5348 else
   5349   case $PATH_PASSWD_PROG in
   5350   [\\/]* | ?:[\\/]*)
   5351   ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
   5352   ;;
   5353   *)
   5354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5355 for as_dir in $PATH
   5356 do
   5357   IFS=$as_save_IFS
   5358   test -z "$as_dir" && as_dir=.
   5359   for ac_exec_ext in '' $ac_executable_extensions; do
   5360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5361     ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
   5362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5363     break 2
   5364   fi
   5365 done
   5366 done
   5367 IFS=$as_save_IFS
   5368 
   5369   ;;
   5370 esac
   5371 fi
   5372 PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
   5373 if test -n "$PATH_PASSWD_PROG"; then
   5374   { echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5
   5375 echo "${ECHO_T}$PATH_PASSWD_PROG" >&6; }
   5376 else
   5377   { echo "$as_me:$LINENO: result: no" >&5
   5378 echo "${ECHO_T}no" >&6; }
   5379 fi
   5380 
   5381 
   5382 if test ! -z "$PATH_PASSWD_PROG" ; then
   5383 
   5384 cat >>confdefs.h <<_ACEOF
   5385 #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
   5386 _ACEOF
   5387 
   5388 fi
   5389 
   5390 if test -z "$LD" ; then
   5391 	LD=$CC
   5392 fi
   5393 
   5394 
   5395 { echo "$as_me:$LINENO: checking for inline" >&5
   5396 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
   5397 if test "${ac_cv_c_inline+set}" = set; then
   5398   echo $ECHO_N "(cached) $ECHO_C" >&6
   5399 else
   5400   ac_cv_c_inline=no
   5401 for ac_kw in inline __inline__ __inline; do
   5402   cat >conftest.$ac_ext <<_ACEOF
   5403 /* confdefs.h.  */
   5404 _ACEOF
   5405 cat confdefs.h >>conftest.$ac_ext
   5406 cat >>conftest.$ac_ext <<_ACEOF
   5407 /* end confdefs.h.  */
   5408 #ifndef __cplusplus
   5409 typedef int foo_t;
   5410 static $ac_kw foo_t static_foo () {return 0; }
   5411 $ac_kw foo_t foo () {return 0; }
   5412 #endif
   5413 
   5414 _ACEOF
   5415 rm -f conftest.$ac_objext
   5416 if { (ac_try="$ac_compile"
   5417 case "(($ac_try" in
   5418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5419   *) ac_try_echo=$ac_try;;
   5420 esac
   5421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5422   (eval "$ac_compile") 2>conftest.er1
   5423   ac_status=$?
   5424   grep -v '^ *+' conftest.er1 >conftest.err
   5425   rm -f conftest.er1
   5426   cat conftest.err >&5
   5427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5428   (exit $ac_status); } && {
   5429 	 test -z "$ac_c_werror_flag" ||
   5430 	 test ! -s conftest.err
   5431        } && test -s conftest.$ac_objext; then
   5432   ac_cv_c_inline=$ac_kw
   5433 else
   5434   echo "$as_me: failed program was:" >&5
   5435 sed 's/^/| /' conftest.$ac_ext >&5
   5436 
   5437 
   5438 fi
   5439 
   5440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5441   test "$ac_cv_c_inline" != no && break
   5442 done
   5443 
   5444 fi
   5445 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
   5446 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
   5447 
   5448 
   5449 case $ac_cv_c_inline in
   5450   inline | yes) ;;
   5451   *)
   5452     case $ac_cv_c_inline in
   5453       no) ac_val=;;
   5454       *) ac_val=$ac_cv_c_inline;;
   5455     esac
   5456     cat >>confdefs.h <<_ACEOF
   5457 #ifndef __cplusplus
   5458 #define inline $ac_val
   5459 #endif
   5460 _ACEOF
   5461     ;;
   5462 esac
   5463 
   5464 
   5465 { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
   5466 echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
   5467 if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
   5468   echo $ECHO_N "(cached) $ECHO_C" >&6
   5469 else
   5470   cat >conftest.$ac_ext <<_ACEOF
   5471 /* confdefs.h.  */
   5472 _ACEOF
   5473 cat confdefs.h >>conftest.$ac_ext
   5474 cat >>conftest.$ac_ext <<_ACEOF
   5475 /* end confdefs.h.  */
   5476 #include <limits.h>
   5477 
   5478 int
   5479 main ()
   5480 {
   5481 #ifndef LLONG_MAX
   5482   (void) LLONG_MAX;
   5483 #endif
   5484 
   5485   ;
   5486   return 0;
   5487 }
   5488 _ACEOF
   5489 rm -f conftest.$ac_objext
   5490 if { (ac_try="$ac_compile"
   5491 case "(($ac_try" in
   5492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5493   *) ac_try_echo=$ac_try;;
   5494 esac
   5495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5496   (eval "$ac_compile") 2>conftest.er1
   5497   ac_status=$?
   5498   grep -v '^ *+' conftest.er1 >conftest.err
   5499   rm -f conftest.er1
   5500   cat conftest.err >&5
   5501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5502   (exit $ac_status); } && {
   5503 	 test -z "$ac_c_werror_flag" ||
   5504 	 test ! -s conftest.err
   5505        } && test -s conftest.$ac_objext; then
   5506   ac_cv_have_decl_LLONG_MAX=yes
   5507 else
   5508   echo "$as_me: failed program was:" >&5
   5509 sed 's/^/| /' conftest.$ac_ext >&5
   5510 
   5511 	ac_cv_have_decl_LLONG_MAX=no
   5512 fi
   5513 
   5514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5515 fi
   5516 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
   5517 echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
   5518 if test $ac_cv_have_decl_LLONG_MAX = yes; then
   5519   have_llong_max=1
   5520 fi
   5521 
   5522 { echo "$as_me:$LINENO: checking whether SYSTR_POLICY_KILL is declared" >&5
   5523 echo $ECHO_N "checking whether SYSTR_POLICY_KILL is declared... $ECHO_C" >&6; }
   5524 if test "${ac_cv_have_decl_SYSTR_POLICY_KILL+set}" = set; then
   5525   echo $ECHO_N "(cached) $ECHO_C" >&6
   5526 else
   5527   cat >conftest.$ac_ext <<_ACEOF
   5528 /* confdefs.h.  */
   5529 _ACEOF
   5530 cat confdefs.h >>conftest.$ac_ext
   5531 cat >>conftest.$ac_ext <<_ACEOF
   5532 /* end confdefs.h.  */
   5533 
   5534 	#include <sys/types.h>
   5535 	#include <sys/param.h>
   5536 	#include <dev/systrace.h>
   5537 
   5538 
   5539 int
   5540 main ()
   5541 {
   5542 #ifndef SYSTR_POLICY_KILL
   5543   (void) SYSTR_POLICY_KILL;
   5544 #endif
   5545 
   5546   ;
   5547   return 0;
   5548 }
   5549 _ACEOF
   5550 rm -f conftest.$ac_objext
   5551 if { (ac_try="$ac_compile"
   5552 case "(($ac_try" in
   5553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5554   *) ac_try_echo=$ac_try;;
   5555 esac
   5556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5557   (eval "$ac_compile") 2>conftest.er1
   5558   ac_status=$?
   5559   grep -v '^ *+' conftest.er1 >conftest.err
   5560   rm -f conftest.er1
   5561   cat conftest.err >&5
   5562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5563   (exit $ac_status); } && {
   5564 	 test -z "$ac_c_werror_flag" ||
   5565 	 test ! -s conftest.err
   5566        } && test -s conftest.$ac_objext; then
   5567   ac_cv_have_decl_SYSTR_POLICY_KILL=yes
   5568 else
   5569   echo "$as_me: failed program was:" >&5
   5570 sed 's/^/| /' conftest.$ac_ext >&5
   5571 
   5572 	ac_cv_have_decl_SYSTR_POLICY_KILL=no
   5573 fi
   5574 
   5575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5576 fi
   5577 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_SYSTR_POLICY_KILL" >&5
   5578 echo "${ECHO_T}$ac_cv_have_decl_SYSTR_POLICY_KILL" >&6; }
   5579 if test $ac_cv_have_decl_SYSTR_POLICY_KILL = yes; then
   5580   have_systr_policy_kill=1
   5581 fi
   5582 
   5583 { echo "$as_me:$LINENO: checking whether RLIMIT_NPROC is declared" >&5
   5584 echo $ECHO_N "checking whether RLIMIT_NPROC is declared... $ECHO_C" >&6; }
   5585 if test "${ac_cv_have_decl_RLIMIT_NPROC+set}" = set; then
   5586   echo $ECHO_N "(cached) $ECHO_C" >&6
   5587 else
   5588   cat >conftest.$ac_ext <<_ACEOF
   5589 /* confdefs.h.  */
   5590 _ACEOF
   5591 cat confdefs.h >>conftest.$ac_ext
   5592 cat >>conftest.$ac_ext <<_ACEOF
   5593 /* end confdefs.h.  */
   5594 
   5595 	#include <sys/types.h>
   5596 	#include <sys/resource.h>
   5597 
   5598 
   5599 int
   5600 main ()
   5601 {
   5602 #ifndef RLIMIT_NPROC
   5603   (void) RLIMIT_NPROC;
   5604 #endif
   5605 
   5606   ;
   5607   return 0;
   5608 }
   5609 _ACEOF
   5610 rm -f conftest.$ac_objext
   5611 if { (ac_try="$ac_compile"
   5612 case "(($ac_try" in
   5613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5614   *) ac_try_echo=$ac_try;;
   5615 esac
   5616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5617   (eval "$ac_compile") 2>conftest.er1
   5618   ac_status=$?
   5619   grep -v '^ *+' conftest.er1 >conftest.err
   5620   rm -f conftest.er1
   5621   cat conftest.err >&5
   5622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5623   (exit $ac_status); } && {
   5624 	 test -z "$ac_c_werror_flag" ||
   5625 	 test ! -s conftest.err
   5626        } && test -s conftest.$ac_objext; then
   5627   ac_cv_have_decl_RLIMIT_NPROC=yes
   5628 else
   5629   echo "$as_me: failed program was:" >&5
   5630 sed 's/^/| /' conftest.$ac_ext >&5
   5631 
   5632 	ac_cv_have_decl_RLIMIT_NPROC=no
   5633 fi
   5634 
   5635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5636 fi
   5637 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_RLIMIT_NPROC" >&5
   5638 echo "${ECHO_T}$ac_cv_have_decl_RLIMIT_NPROC" >&6; }
   5639 if test $ac_cv_have_decl_RLIMIT_NPROC = yes; then
   5640 
   5641 cat >>confdefs.h <<\_ACEOF
   5642 #define HAVE_RLIMIT_NPROC
   5643 _ACEOF
   5644 
   5645 fi
   5646 
   5647 { echo "$as_me:$LINENO: checking whether PR_SET_NO_NEW_PRIVS is declared" >&5
   5648 echo $ECHO_N "checking whether PR_SET_NO_NEW_PRIVS is declared... $ECHO_C" >&6; }
   5649 if test "${ac_cv_have_decl_PR_SET_NO_NEW_PRIVS+set}" = set; then
   5650   echo $ECHO_N "(cached) $ECHO_C" >&6
   5651 else
   5652   cat >conftest.$ac_ext <<_ACEOF
   5653 /* confdefs.h.  */
   5654 _ACEOF
   5655 cat confdefs.h >>conftest.$ac_ext
   5656 cat >>conftest.$ac_ext <<_ACEOF
   5657 /* end confdefs.h.  */
   5658 
   5659 	#include <sys/types.h>
   5660 	#include <linux/prctl.h>
   5661 
   5662 
   5663 int
   5664 main ()
   5665 {
   5666 #ifndef PR_SET_NO_NEW_PRIVS
   5667   (void) PR_SET_NO_NEW_PRIVS;
   5668 #endif
   5669 
   5670   ;
   5671   return 0;
   5672 }
   5673 _ACEOF
   5674 rm -f conftest.$ac_objext
   5675 if { (ac_try="$ac_compile"
   5676 case "(($ac_try" in
   5677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5678   *) ac_try_echo=$ac_try;;
   5679 esac
   5680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5681   (eval "$ac_compile") 2>conftest.er1
   5682   ac_status=$?
   5683   grep -v '^ *+' conftest.er1 >conftest.err
   5684   rm -f conftest.er1
   5685   cat conftest.err >&5
   5686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5687   (exit $ac_status); } && {
   5688 	 test -z "$ac_c_werror_flag" ||
   5689 	 test ! -s conftest.err
   5690        } && test -s conftest.$ac_objext; then
   5691   ac_cv_have_decl_PR_SET_NO_NEW_PRIVS=yes
   5692 else
   5693   echo "$as_me: failed program was:" >&5
   5694 sed 's/^/| /' conftest.$ac_ext >&5
   5695 
   5696 	ac_cv_have_decl_PR_SET_NO_NEW_PRIVS=no
   5697 fi
   5698 
   5699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5700 fi
   5701 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" >&5
   5702 echo "${ECHO_T}$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" >&6; }
   5703 if test $ac_cv_have_decl_PR_SET_NO_NEW_PRIVS = yes; then
   5704   have_linux_no_new_privs=1
   5705 fi
   5706 
   5707 
   5708 openssl=yes
   5709 ssh1=yes
   5710 
   5711 # Check whether --with-openssl was given.
   5712 if test "${with_openssl+set}" = set; then
   5713   withval=$with_openssl;   if test "x$withval" = "xno" ; then
   5714 		openssl=no
   5715 		ssh1=no
   5716 	   fi
   5717 
   5718 
   5719 fi
   5720 
   5721 { echo "$as_me:$LINENO: checking whether OpenSSL will be used for cryptography" >&5
   5722 echo $ECHO_N "checking whether OpenSSL will be used for cryptography... $ECHO_C" >&6; }
   5723 if test "x$openssl" = "xyes" ; then
   5724 	{ echo "$as_me:$LINENO: result: yes" >&5
   5725 echo "${ECHO_T}yes" >&6; }
   5726 
   5727 cat >>confdefs.h <<_ACEOF
   5728 #define WITH_OPENSSL 1
   5729 _ACEOF
   5730 
   5731 else
   5732 	{ echo "$as_me:$LINENO: result: no" >&5
   5733 echo "${ECHO_T}no" >&6; }
   5734 fi
   5735 
   5736 
   5737 # Check whether --with-ssh1 was given.
   5738 if test "${with_ssh1+set}" = set; then
   5739   withval=$with_ssh1;
   5740 		if test "x$withval" = "xno" ; then
   5741 			ssh1=no
   5742 		elif test "x$openssl" = "xno" ; then
   5743 			{ { echo "$as_me:$LINENO: error: Cannot enable SSH protocol 1 with OpenSSL disabled" >&5
   5744 echo "$as_me: error: Cannot enable SSH protocol 1 with OpenSSL disabled" >&2;}
   5745    { (exit 1); exit 1; }; }
   5746 		fi
   5747 
   5748 
   5749 fi
   5750 
   5751 { echo "$as_me:$LINENO: checking whether SSH protocol 1 support is enabled" >&5
   5752 echo $ECHO_N "checking whether SSH protocol 1 support is enabled... $ECHO_C" >&6; }
   5753 if test "x$ssh1" = "xyes" ; then
   5754 	{ echo "$as_me:$LINENO: result: yes" >&5
   5755 echo "${ECHO_T}yes" >&6; }
   5756 
   5757 cat >>confdefs.h <<_ACEOF
   5758 #define WITH_SSH1 1
   5759 _ACEOF
   5760 
   5761 else
   5762 	{ echo "$as_me:$LINENO: result: no" >&5
   5763 echo "${ECHO_T}no" >&6; }
   5764 fi
   5765 
   5766 use_stack_protector=1
   5767 use_toolchain_hardening=1
   5768 
   5769 # Check whether --with-stackprotect was given.
   5770 if test "${with_stackprotect+set}" = set; then
   5771   withval=$with_stackprotect;
   5772     if test "x$withval" = "xno"; then
   5773 	use_stack_protector=0
   5774     fi
   5775 fi
   5776 
   5777 
   5778 # Check whether --with-hardening was given.
   5779 if test "${with_hardening+set}" = set; then
   5780   withval=$with_hardening;
   5781     if test "x$withval" = "xno"; then
   5782 	use_toolchain_hardening=0
   5783     fi
   5784 fi
   5785 
   5786 
   5787 # We use -Werror for the tests only so that we catch warnings like "this is
   5788 # on by default" for things like -fPIE.
   5789 { echo "$as_me:$LINENO: checking if $CC supports -Werror" >&5
   5790 echo $ECHO_N "checking if $CC supports -Werror... $ECHO_C" >&6; }
   5791 saved_CFLAGS="$CFLAGS"
   5792 CFLAGS="$CFLAGS -Werror"
   5793 cat >conftest.$ac_ext <<_ACEOF
   5794 /* confdefs.h.  */
   5795 _ACEOF
   5796 cat confdefs.h >>conftest.$ac_ext
   5797 cat >>conftest.$ac_ext <<_ACEOF
   5798 /* end confdefs.h.  */
   5799 int main(void) { return 0; }
   5800 _ACEOF
   5801 rm -f conftest.$ac_objext
   5802 if { (ac_try="$ac_compile"
   5803 case "(($ac_try" in
   5804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5805   *) ac_try_echo=$ac_try;;
   5806 esac
   5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5808   (eval "$ac_compile") 2>conftest.er1
   5809   ac_status=$?
   5810   grep -v '^ *+' conftest.er1 >conftest.err
   5811   rm -f conftest.er1
   5812   cat conftest.err >&5
   5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5814   (exit $ac_status); } && {
   5815 	 test -z "$ac_c_werror_flag" ||
   5816 	 test ! -s conftest.err
   5817        } && test -s conftest.$ac_objext; then
   5818    { echo "$as_me:$LINENO: result: yes" >&5
   5819 echo "${ECHO_T}yes" >&6; }
   5820 	  WERROR="-Werror"
   5821 else
   5822   echo "$as_me: failed program was:" >&5
   5823 sed 's/^/| /' conftest.$ac_ext >&5
   5824 
   5825 	 { echo "$as_me:$LINENO: result: no" >&5
   5826 echo "${ECHO_T}no" >&6; }
   5827 	  WERROR=""
   5828 
   5829 fi
   5830 
   5831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5832 CFLAGS="$saved_CFLAGS"
   5833 
   5834 if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
   5835 	{
   5836 	{ echo "$as_me:$LINENO: checking if $CC supports compile flag -Qunused-arguments" >&5
   5837 echo $ECHO_N "checking if $CC supports compile flag -Qunused-arguments... $ECHO_C" >&6; }
   5838 	saved_CFLAGS="$CFLAGS"
   5839 	CFLAGS="$CFLAGS $WERROR -Qunused-arguments"
   5840 	_define_flag=""
   5841 	test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments"
   5842 	cat >conftest.$ac_ext <<_ACEOF
   5843 /* confdefs.h.  */
   5844 _ACEOF
   5845 cat confdefs.h >>conftest.$ac_ext
   5846 cat >>conftest.$ac_ext <<_ACEOF
   5847 /* end confdefs.h.  */
   5848 
   5849 #include <stdlib.h>
   5850 #include <stdio.h>
   5851 int main(int argc, char **argv) {
   5852 	/* Some math to catch -ftrapv problems in the toolchain */
   5853 	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
   5854 	float l = i * 2.1;
   5855 	double m = l / 0.5;
   5856 	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
   5857 	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
   5858 	exit(0);
   5859 }
   5860 
   5861 _ACEOF
   5862 rm -f conftest.$ac_objext
   5863 if { (ac_try="$ac_compile"
   5864 case "(($ac_try" in
   5865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5866   *) ac_try_echo=$ac_try;;
   5867 esac
   5868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5869   (eval "$ac_compile") 2>conftest.er1
   5870   ac_status=$?
   5871   grep -v '^ *+' conftest.er1 >conftest.err
   5872   rm -f conftest.er1
   5873   cat conftest.err >&5
   5874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5875   (exit $ac_status); } && {
   5876 	 test -z "$ac_c_werror_flag" ||
   5877 	 test ! -s conftest.err
   5878        } && test -s conftest.$ac_objext; then
   5879 
   5880 if `grep -i "unrecognized option" conftest.err >/dev/null`
   5881 then
   5882 		{ echo "$as_me:$LINENO: result: no" >&5
   5883 echo "${ECHO_T}no" >&6; }
   5884 		CFLAGS="$saved_CFLAGS"
   5885 else
   5886 		{ echo "$as_me:$LINENO: result: yes" >&5
   5887 echo "${ECHO_T}yes" >&6; }
   5888 		 CFLAGS="$saved_CFLAGS $_define_flag"
   5889 fi
   5890 else
   5891   echo "$as_me: failed program was:" >&5
   5892 sed 's/^/| /' conftest.$ac_ext >&5
   5893 
   5894 	 { echo "$as_me:$LINENO: result: no" >&5
   5895 echo "${ECHO_T}no" >&6; }
   5896 		  CFLAGS="$saved_CFLAGS"
   5897 
   5898 fi
   5899 
   5900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5901 }
   5902 	{
   5903 	{ echo "$as_me:$LINENO: checking if $CC supports compile flag -Wunknown-warning-option" >&5
   5904 echo $ECHO_N "checking if $CC supports compile flag -Wunknown-warning-option... $ECHO_C" >&6; }
   5905 	saved_CFLAGS="$CFLAGS"
   5906 	CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option"
   5907 	_define_flag=""
   5908 	test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option"
   5909 	cat >conftest.$ac_ext <<_ACEOF
   5910 /* confdefs.h.  */
   5911 _ACEOF
   5912 cat confdefs.h >>conftest.$ac_ext
   5913 cat >>conftest.$ac_ext <<_ACEOF
   5914 /* end confdefs.h.  */
   5915 
   5916 #include <stdlib.h>
   5917 #include <stdio.h>
   5918 int main(int argc, char **argv) {
   5919 	/* Some math to catch -ftrapv problems in the toolchain */
   5920 	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
   5921 	float l = i * 2.1;
   5922 	double m = l / 0.5;
   5923 	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
   5924 	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
   5925 	exit(0);
   5926 }
   5927 
   5928 _ACEOF
   5929 rm -f conftest.$ac_objext
   5930 if { (ac_try="$ac_compile"
   5931 case "(($ac_try" in
   5932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5933   *) ac_try_echo=$ac_try;;
   5934 esac
   5935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5936   (eval "$ac_compile") 2>conftest.er1
   5937   ac_status=$?
   5938   grep -v '^ *+' conftest.er1 >conftest.err
   5939   rm -f conftest.er1
   5940   cat conftest.err >&5
   5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5942   (exit $ac_status); } && {
   5943 	 test -z "$ac_c_werror_flag" ||
   5944 	 test ! -s conftest.err
   5945        } && test -s conftest.$ac_objext; then
   5946 
   5947 if `grep -i "unrecognized option" conftest.err >/dev/null`
   5948 then
   5949 		{ echo "$as_me:$LINENO: result: no" >&5
   5950 echo "${ECHO_T}no" >&6; }
   5951 		CFLAGS="$saved_CFLAGS"
   5952 else
   5953 		{ echo "$as_me:$LINENO: result: yes" >&5
   5954 echo "${ECHO_T}yes" >&6; }
   5955 		 CFLAGS="$saved_CFLAGS $_define_flag"
   5956 fi
   5957 else
   5958   echo "$as_me: failed program was:" >&5
   5959 sed 's/^/| /' conftest.$ac_ext >&5
   5960 
   5961 	 { echo "$as_me:$LINENO: result: no" >&5
   5962 echo "${ECHO_T}no" >&6; }
   5963 		  CFLAGS="$saved_CFLAGS"
   5964 
   5965 fi
   5966 
   5967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5968 }
   5969 	{
   5970 	{ echo "$as_me:$LINENO: checking if $CC supports compile flag -Wall" >&5
   5971 echo $ECHO_N "checking if $CC supports compile flag -Wall... $ECHO_C" >&6; }
   5972 	saved_CFLAGS="$CFLAGS"
   5973 	CFLAGS="$CFLAGS $WERROR -Wall"
   5974 	_define_flag=""
   5975 	test "x$_define_flag" = "x" && _define_flag="-Wall"
   5976 	cat >conftest.$ac_ext <<_ACEOF
   5977 /* confdefs.h.  */
   5978 _ACEOF
   5979 cat confdefs.h >>conftest.$ac_ext
   5980 cat >>conftest.$ac_ext <<_ACEOF
   5981 /* end confdefs.h.  */
   5982 
   5983 #include <stdlib.h>
   5984 #include <stdio.h>
   5985 int main(int argc, char **argv) {
   5986 	/* Some math to catch -ftrapv problems in the toolchain */
   5987 	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
   5988 	float l = i * 2.1;
   5989 	double m = l / 0.5;
   5990 	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
   5991 	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
   5992 	exit(0);
   5993 }
   5994 
   5995 _ACEOF
   5996 rm -f conftest.$ac_objext
   5997 if { (ac_try="$ac_compile"
   5998 case "(($ac_try" in
   5999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6000   *) ac_try_echo=$ac_try;;
   6001 esac
   6002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6003   (eval "$ac_compile") 2>conftest.er1
   6004   ac_status=$?
   6005   grep -v '^ *+' conftest.er1 >conftest.err
   6006   rm -f conftest.er1
   6007   cat conftest.err >&5
   6008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6009   (exit $ac_status); } && {
   6010 	 test -z "$ac_c_werror_flag" ||
   6011 	 test ! -s conftest.err
   6012        } && test -s conftest.$ac_objext; then
   6013 
   6014 if `grep -i "unrecognized option" conftest.err >/dev/null`
   6015 then
   6016 		{ echo "$as_me:$LINENO: result: no" >&5
   6017 echo "${ECHO_T}no" >&6; }
   6018 		CFLAGS="$saved_CFLAGS"
   6019 else
   6020 		{ echo "$as_me:$LINENO: result: yes" >&5
   6021 echo "${ECHO_T}yes" >&6; }
   6022 		 CFLAGS="$saved_CFLAGS $_define_flag"
   6023 fi
   6024 else
   6025   echo "$as_me: failed program was:" >&5
   6026 sed 's/^/| /' conftest.$ac_ext >&5
   6027 
   6028 	 { echo "$as_me:$LINENO: result: no" >&5
   6029 echo "${ECHO_T}no" >&6; }
   6030 		  CFLAGS="$saved_CFLAGS"
   6031 
   6032 fi
   6033 
   6034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6035 }
   6036 	{
   6037 	{ echo "$as_me:$LINENO: checking if $CC supports compile flag -Wpointer-arith" >&5
   6038 echo $ECHO_N "checking if $CC supports compile flag -Wpointer-arith... $ECHO_C" >&6; }
   6039 	saved_CFLAGS="$CFLAGS"
   6040 	CFLAGS="$CFLAGS $WERROR -Wpointer-arith"
   6041 	_define_flag=""
   6042 	test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith"
   6043 	cat >conftest.$ac_ext <<_ACEOF
   6044 /* confdefs.h.  */
   6045 _ACEOF
   6046 cat confdefs.h >>conftest.$ac_ext
   6047 cat >>conftest.$ac_ext <<_ACEOF
   6048 /* end confdefs.h.  */
   6049 
   6050 #include <stdlib.h>
   6051 #include <stdio.h>
   6052 int main(int argc, char **argv) {
   6053 	/* Some math to catch -ftrapv problems in the toolchain */
   6054 	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
   6055 	float l = i * 2.1;
   6056 	double m = l / 0.5;
   6057 	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
   6058 	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
   6059 	exit(0);
   6060 }
   6061 
   6062 _ACEOF
   6063 rm -f conftest.$ac_objext
   6064 if { (ac_try="$ac_compile"
   6065 case "(($ac_try" in
   6066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6067   *) ac_try_echo=$ac_try;;
   6068 esac
   6069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6070   (eval "$ac_compile") 2>conftest.er1
   6071   ac_status=$?
   6072   grep -v '^ *+' conftest.er1 >conftest.err
   6073   rm -f conftest.er1
   6074   cat conftest.err >&5
   6075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6076   (exit $ac_status); } && {
   6077 	 test -z "$ac_c_werror_flag" ||
   6078 	 test ! -s conftest.err
   6079        } && test -s conftest.$ac_objext; then
   6080 
   6081 if `grep -i "unrecognized option" conftest.err >/dev/null`
   6082 then
   6083 		{ echo "$as_me:$LINENO: result: no" >&5
   6084 echo "${ECHO_T}no" >&6; }
   6085 		CFLAGS="$saved_CFLAGS"
   6086 else
   6087 		{ echo "$as_me:$LINENO: result: yes" >&5
   6088 echo "${ECHO_T}yes" >&6; }
   6089 		 CFLAGS="$saved_CFLAGS $_define_flag"
   6090 fi
   6091 else
   6092   echo "$as_me: failed program was:" >&5
   6093 sed 's/^/| /' conftest.$ac_ext >&5
   6094 
   6095 	 { echo "$as_me:$LINENO: result: no" >&5
   6096 echo "${ECHO_T}no" >&6; }
   6097 		  CFLAGS="$saved_CFLAGS"
   6098 
   6099 fi
   6100 
   6101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6102 }
   6103 	{
   6104 	{ echo "$as_me:$LINENO: checking if $CC supports compile flag -Wuninitialized" >&5
   6105 echo $ECHO_N "checking if $CC supports compile flag -Wuninitialized... $ECHO_C" >&6; }
   6106 	saved_CFLAGS="$CFLAGS"
   6107 	CFLAGS="$CFLAGS $WERROR -Wuninitialized"
   6108 	_define_flag=""
   6109 	test "x$_define_flag" = "x" && _define_flag="-Wuninitialized"
   6110 	cat >conftest.$ac_ext <<_ACEOF
   6111 /* confdefs.h.  */
   6112 _ACEOF
   6113 cat confdefs.h >>conftest.$ac_ext
   6114 cat >>conftest.$ac_ext <<_ACEOF
   6115 /* end confdefs.h.  */
   6116 
   6117 #include <stdlib.h>
   6118 #include <stdio.h>
   6119 int main(int argc, char **argv) {
   6120 	/* Some math to catch -ftrapv problems in the toolchain */
   6121 	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
   6122 	float l = i * 2.1;
   6123 	double m = l / 0.5;
   6124 	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
   6125 	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
   6126 	exit(0);
   6127 }
   6128 
   6129 _ACEOF
   6130 rm -f conftest.$ac_objext
   6131 if { (ac_try="$ac_compile"
   6132 case "(($ac_try" in
   6133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6134   *) ac_try_echo=$ac_try;;
   6135 esac
   6136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6137   (eval "$ac_compile") 2>conftest.er1
   6138   ac_status=$?
   6139   grep -v '^ *+' conftest.er1 >conftest.err
   6140   rm -f conftest.er1
   6141   cat conftest.err >&5
   6142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6143   (exit $ac_status); } && {
   6144 	 test -z "$ac_c_werror_flag" ||
   6145 	 test ! -s conftest.err
   6146        } && test -s conftest.$ac_objext; then
   6147 
   6148 if `grep -i "unrecognized option" conftest.err >/dev/null`
   6149 then
   6150 		{ echo "$as_me:$LINENO: result: no" >&5
   6151 echo "${ECHO_T}no" >&6; }
   6152 		CFLAGS="$saved_CFLAGS"
   6153 else
   6154 		{ echo "$as_me:$LINENO: result: yes" >&5
   6155 echo "${ECHO_T}yes" >&6; }
   6156 		 CFLAGS="$saved_CFLAGS $_define_flag"
   6157 fi
   6158 else
   6159   echo "$as_me: failed program was:" >&5
   6160 sed 's/^/| /' conftest.$ac_ext >&5
   6161 
   6162 	 { echo "$as_me:$LINENO: result: no" >&5
   6163 echo "${ECHO_T}no" >&6; }
   6164 		  CFLAGS="$saved_CFLAGS"
   6165 
   6166 fi
   6167 
   6168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6169 }
   6170 	{
   6171 	{ echo "$as_me:$LINENO: checking if $CC supports compile flag -Wsign-compare" >&5
   6172 echo $ECHO_N "checking if $CC supports compile flag -Wsign-compare... $ECHO_C" >&6; }
   6173 	saved_CFLAGS="$CFLAGS"
   6174 	CFLAGS="$CFLAGS $WERROR -Wsign-compare"
   6175 	_define_flag=""
   6176 	test "x$_define_flag" = "x" && _define_flag="-Wsign-compare"
   6177 	cat >conftest.$ac_ext <<_ACEOF
   6178 /* confdefs.h.  */
   6179 _ACEOF
   6180 cat confdefs.h >>conftest.$ac_ext
   6181 cat >>conftest.$ac_ext <<_ACEOF
   6182 /* end confdefs.h.  */
   6183 
   6184 #include <stdlib.h>
   6185 #include <stdio.h>
   6186 int main(int argc, char **argv) {
   6187 	/* Some math to catch -ftrapv problems in the toolchain */
   6188 	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
   6189 	float l = i * 2.1;
   6190 	double m = l / 0.5;
   6191 	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
   6192 	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
   6193 	exit(0);
   6194 }
   6195 
   6196 _ACEOF
   6197 rm -f conftest.$ac_objext
   6198 if { (ac_try="$ac_compile"
   6199 case "(($ac_try" in
   6200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6201   *) ac_try_echo=$ac_try;;
   6202 esac
   6203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6204   (eval "$ac_compile") 2>conftest.er1
   6205   ac_status=$?
   6206   grep -v '^ *+' conftest.er1 >conftest.err
   6207   rm -f conftest.er1
   6208   cat conftest.err >&5
   6209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6210   (exit $ac_status); } && {
   6211 	 test -z "$ac_c_werror_flag" ||
   6212 	 test ! -s conftest.err
   6213        } && test -s conftest.$ac_objext; then
   6214 
   6215 if `grep -i "unrecognized option" conftest.err >/dev/null`
   6216 then
   6217 		{ echo "$as_me:$LINENO: result: no" >&5
   6218 echo "${ECHO_T}no" >&6; }
   6219 		CFLAGS="$saved_CFLAGS"
   6220 else
   6221 		{ echo "$as_me:$LINENO: result: yes" >&5
   6222 echo "${ECHO_T}yes" >&6; }
   6223 		 CFLAGS="$saved_CFLAGS $_define_flag"
   6224 fi
   6225 else
   6226   echo "$as_me: failed program was:" >&5
   6227 sed 's/^/| /' conftest.$ac_ext >&5
   6228 
   6229 	 { echo "$as_me:$LINENO: result: no" >&5
   6230 echo "${ECHO_T}no" >&6; }
   6231 		  CFLAGS="$saved_CFLAGS"
   6232 
   6233 fi
   6234 
   6235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6236 }
   6237 	{
   6238 	{ echo "$as_me:$LINENO: checking if $CC supports compile flag -Wformat-security" >&5
   6239 echo $ECHO_N "checking if $CC supports compile flag -Wformat-security... $ECHO_C" >&6; }
   6240 	saved_CFLAGS="$CFLAGS"
   6241 	CFLAGS="$CFLAGS $WERROR -Wformat-security"
   6242 	_define_flag=""
   6243 	test "x$_define_flag" = "x" && _define_flag="-Wformat-security"
   6244 	cat >conftest.$ac_ext <<_ACEOF
   6245 /* confdefs.h.  */
   6246 _ACEOF
   6247 cat confdefs.h >>conftest.$ac_ext
   6248 cat >>conftest.$ac_ext <<_ACEOF
   6249 /* end confdefs.h.  */
   6250 
   6251 #include <stdlib.h>
   6252 #include <stdio.h>
   6253 int main(int argc, char **argv) {
   6254 	/* Some math to catch -ftrapv problems in the toolchain */
   6255 	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
   6256 	float l = i * 2.1;
   6257 	double m = l / 0.5;
   6258 	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
   6259 	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
   6260 	exit(0);
   6261 }
   6262 
   6263 _ACEOF
   6264 rm -f conftest.$ac_objext
   6265 if { (ac_try="$ac_compile"
   6266 case "(($ac_try" in
   6267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6268   *) ac_try_echo=$ac_try;;
   6269 esac
   6270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6271   (eval "$ac_compile") 2>conftest.er1
   6272   ac_status=$?
   6273   grep -v '^ *+' conftest.er1 >conftest.err
   6274   rm -f conftest.er1
   6275   cat conftest.err >&5
   6276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6277   (exit $ac_status); } && {
   6278 	 test -z "$ac_c_werror_flag" ||
   6279 	 test ! -s conftest.err
   6280        } && test -s conftest.$ac_objext; then
   6281 
   6282 if `grep -i "unrecognized option" conftest.err >/dev/null`
   6283 then
   6284 		{ echo "$as_me:$LINENO: result: no" >&5
   6285 echo "${ECHO_T}no" >&6; }
   6286 		CFLAGS="$saved_CFLAGS"
   6287 else
   6288 		{ echo "$as_me:$LINENO: result: yes" >&5
   6289 echo "${ECHO_T}yes" >&6; }
   6290 		 CFLAGS="$saved_CFLAGS $_define_flag"
   6291 fi
   6292 else
   6293   echo "$as_me: failed program was:" >&5
   6294 sed 's/^/| /' conftest.$ac_ext >&5
   6295 
   6296 	 { echo "$as_me:$LINENO: result: no" >&5
   6297 echo "${ECHO_T}no" >&6; }
   6298 		  CFLAGS="$saved_CFLAGS"
   6299 
   6300 fi
   6301 
   6302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6303 }
   6304 	{
   6305 	{ echo "$as_me:$LINENO: checking if $CC supports compile flag -Wsizeof-pointer-memaccess" >&5
   6306 echo $ECHO_N "checking if $CC supports compile flag -Wsizeof-pointer-memaccess... $ECHO_C" >&6; }
   6307 	saved_CFLAGS="$CFLAGS"
   6308 	CFLAGS="$CFLAGS $WERROR -Wsizeof-pointer-memaccess"
   6309 	_define_flag=""
   6310 	test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess"
   6311 	cat >conftest.$ac_ext <<_ACEOF
   6312 /* confdefs.h.  */
   6313 _ACEOF
   6314 cat confdefs.h >>conftest.$ac_ext
   6315 cat >>conftest.$ac_ext <<_ACEOF
   6316 /* end confdefs.h.  */
   6317 
   6318 #include <stdlib.h>
   6319 #include <stdio.h>
   6320 int main(int argc, char **argv) {
   6321 	/* Some math to catch -ftrapv problems in the toolchain */
   6322 	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
   6323 	float l = i * 2.1;
   6324 	double m = l / 0.5;
   6325 	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
   6326 	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
   6327 	exit(0);
   6328 }
   6329 
   6330 _ACEOF
   6331 rm -f conftest.$ac_objext
   6332 if { (ac_try="$ac_compile"
   6333 case "(($ac_try" in
   6334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6335   *) ac_try_echo=$ac_try;;
   6336 esac
   6337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6338   (eval "$ac_compile") 2>conftest.er1
   6339   ac_status=$?
   6340   grep -v '^ *+' conftest.er1 >conftest.err
   6341   rm -f conftest.er1
   6342   cat conftest.err >&5
   6343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6344   (exit $ac_status); } && {
   6345 	 test -z "$ac_c_werror_flag" ||
   6346 	 test ! -s conftest.err
   6347        } && test -s conftest.$ac_objext; then
   6348 
   6349 if `grep -i "unrecognized option" conftest.err >/dev/null`
   6350 then
   6351 		{ echo "$as_me:$LINENO: result: no" >&5
   6352 echo "${ECHO_T}no" >&6; }
   6353 		CFLAGS="$saved_CFLAGS"
   6354 else
   6355 		{ echo "$as_me:$LINENO: result: yes" >&5
   6356 echo "${ECHO_T}yes" >&6; }
   6357 		 CFLAGS="$saved_CFLAGS $_define_flag"
   6358 fi
   6359 else
   6360   echo "$as_me: failed program was:" >&5
   6361 sed 's/^/| /' conftest.$ac_ext >&5
   6362 
   6363 	 { echo "$as_me:$LINENO: result: no" >&5
   6364 echo "${ECHO_T}no" >&6; }
   6365 		  CFLAGS="$saved_CFLAGS"
   6366 
   6367 fi
   6368 
   6369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6370 }
   6371 	{
   6372 	{ echo "$as_me:$LINENO: checking if $CC supports compile flag -Wpointer-sign" >&5
   6373 echo $ECHO_N "checking if $CC supports compile flag -Wpointer-sign... $ECHO_C" >&6; }
   6374 	saved_CFLAGS="$CFLAGS"
   6375 	CFLAGS="$CFLAGS $WERROR -Wpointer-sign"
   6376 	_define_flag="-Wno-pointer-sign"
   6377 	test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign"
   6378 	cat >conftest.$ac_ext <<_ACEOF
   6379 /* confdefs.h.  */
   6380 _ACEOF
   6381 cat confdefs.h >>conftest.$ac_ext
   6382 cat >>conftest.$ac_ext <<_ACEOF
   6383 /* end confdefs.h.  */
   6384 
   6385 #include <stdlib.h>
   6386 #include <stdio.h>
   6387 int main(int argc, char **argv) {
   6388 	/* Some math to catch -ftrapv problems in the toolchain */
   6389 	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
   6390 	float l = i * 2.1;
   6391 	double m = l / 0.5;
   6392 	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
   6393 	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
   6394 	exit(0);
   6395 }
   6396 
   6397 _ACEOF
   6398 rm -f conftest.$ac_objext
   6399 if { (ac_try="$ac_compile"
   6400 case "(($ac_try" in
   6401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6402   *) ac_try_echo=$ac_try;;
   6403 esac
   6404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6405   (eval "$ac_compile") 2>conftest.er1
   6406   ac_status=$?
   6407   grep -v '^ *+' conftest.er1 >conftest.err
   6408   rm -f conftest.er1
   6409   cat conftest.err >&5
   6410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6411   (exit $ac_status); } && {
   6412 	 test -z "$ac_c_werror_flag" ||
   6413 	 test ! -s conftest.err
   6414        } && test -s conftest.$ac_objext; then
   6415 
   6416 if `grep -i "unrecognized option" conftest.err >/dev/null`
   6417 then
   6418 		{ echo "$as_me:$LINENO: result: no" >&5
   6419 echo "${ECHO_T}no" >&6; }
   6420 		CFLAGS="$saved_CFLAGS"
   6421 else
   6422 		{ echo "$as_me:$LINENO: result: yes" >&5
   6423 echo "${ECHO_T}yes" >&6; }
   6424 		 CFLAGS="$saved_CFLAGS $_define_flag"
   6425 fi
   6426 else
   6427   echo "$as_me: failed program was:" >&5
   6428 sed 's/^/| /' conftest.$ac_ext >&5
   6429 
   6430 	 { echo "$as_me:$LINENO: result: no" >&5
   6431 echo "${ECHO_T}no" >&6; }
   6432 		  CFLAGS="$saved_CFLAGS"
   6433 
   6434 fi
   6435 
   6436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6437 }
   6438 	{
   6439 	{ echo "$as_me:$LINENO: checking if $CC supports compile flag -Wunused-result" >&5
   6440 echo $ECHO_N "checking if $CC supports compile flag -Wunused-result... $ECHO_C" >&6; }
   6441 	saved_CFLAGS="$CFLAGS"
   6442 	CFLAGS="$CFLAGS $WERROR -Wunused-result"
   6443 	_define_flag="-Wno-unused-result"
   6444 	test "x$_define_flag" = "x" && _define_flag="-Wunused-result"
   6445 	cat >conftest.$ac_ext <<_ACEOF
   6446 /* confdefs.h.  */
   6447 _ACEOF
   6448 cat confdefs.h >>conftest.$ac_ext
   6449 cat >>conftest.$ac_ext <<_ACEOF
   6450 /* end confdefs.h.  */
   6451 
   6452 #include <stdlib.h>
   6453 #include <stdio.h>
   6454 int main(int argc, char **argv) {
   6455 	/* Some math to catch -ftrapv problems in the toolchain */
   6456 	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
   6457 	float l = i * 2.1;
   6458 	double m = l / 0.5;
   6459 	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
   6460 	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
   6461 	exit(0);
   6462 }
   6463 
   6464 _ACEOF
   6465 rm -f conftest.$ac_objext
   6466 if { (ac_try="$ac_compile"
   6467 case "(($ac_try" in
   6468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6469   *) ac_try_echo=$ac_try;;
   6470 esac
   6471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6472   (eval "$ac_compile") 2>conftest.er1
   6473   ac_status=$?
   6474   grep -v '^ *+' conftest.er1 >conftest.err
   6475   rm -f conftest.er1
   6476   cat conftest.err >&5
   6477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6478   (exit $ac_status); } && {
   6479 	 test -z "$ac_c_werror_flag" ||
   6480 	 test ! -s conftest.err
   6481        } && test -s conftest.$ac_objext; then
   6482 
   6483 if `grep -i "unrecognized option" conftest.err >/dev/null`
   6484 then
   6485 		{ echo "$as_me:$LINENO: result: no" >&5
   6486 echo "${ECHO_T}no" >&6; }
   6487 		CFLAGS="$saved_CFLAGS"
   6488 else
   6489 		{ echo "$as_me:$LINENO: result: yes" >&5
   6490 echo "${ECHO_T}yes" >&6; }
   6491 		 CFLAGS="$saved_CFLAGS $_define_flag"
   6492 fi
   6493 else
   6494   echo "$as_me: failed program was:" >&5
   6495 sed 's/^/| /' conftest.$ac_ext >&5
   6496 
   6497 	 { echo "$as_me:$LINENO: result: no" >&5
   6498 echo "${ECHO_T}no" >&6; }
   6499 		  CFLAGS="$saved_CFLAGS"
   6500 
   6501 fi
   6502 
   6503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6504 }
   6505 	{
   6506 	{ echo "$as_me:$LINENO: checking if $CC supports compile flag -fno-strict-aliasing" >&5
   6507 echo $ECHO_N "checking if $CC supports compile flag -fno-strict-aliasing... $ECHO_C" >&6; }
   6508 	saved_CFLAGS="$CFLAGS"
   6509 	CFLAGS="$CFLAGS $WERROR -fno-strict-aliasing"
   6510 	_define_flag=""
   6511 	test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing"
   6512 	cat >conftest.$ac_ext <<_ACEOF
   6513 /* confdefs.h.  */
   6514 _ACEOF
   6515 cat confdefs.h >>conftest.$ac_ext
   6516 cat >>conftest.$ac_ext <<_ACEOF
   6517 /* end confdefs.h.  */
   6518 
   6519 #include <stdlib.h>
   6520 #include <stdio.h>
   6521 int main(int argc, char **argv) {
   6522 	/* Some math to catch -ftrapv problems in the toolchain */
   6523 	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
   6524 	float l = i * 2.1;
   6525 	double m = l / 0.5;
   6526 	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
   6527 	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
   6528 	exit(0);
   6529 }
   6530 
   6531 _ACEOF
   6532 rm -f conftest.$ac_objext
   6533 if { (ac_try="$ac_compile"
   6534 case "(($ac_try" in
   6535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6536   *) ac_try_echo=$ac_try;;
   6537 esac
   6538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6539   (eval "$ac_compile") 2>conftest.er1
   6540   ac_status=$?
   6541   grep -v '^ *+' conftest.er1 >conftest.err
   6542   rm -f conftest.er1
   6543   cat conftest.err >&5
   6544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6545   (exit $ac_status); } && {
   6546 	 test -z "$ac_c_werror_flag" ||
   6547 	 test ! -s conftest.err
   6548        } && test -s conftest.$ac_objext; then
   6549 
   6550 if `grep -i "unrecognized option" conftest.err >/dev/null`
   6551 then
   6552 		{ echo "$as_me:$LINENO: result: no" >&5
   6553 echo "${ECHO_T}no" >&6; }
   6554 		CFLAGS="$saved_CFLAGS"
   6555 else
   6556 		{ echo "$as_me:$LINENO: result: yes" >&5
   6557 echo "${ECHO_T}yes" >&6; }
   6558 		 CFLAGS="$saved_CFLAGS $_define_flag"
   6559 fi
   6560 else
   6561   echo "$as_me: failed program was:" >&5
   6562 sed 's/^/| /' conftest.$ac_ext >&5
   6563 
   6564 	 { echo "$as_me:$LINENO: result: no" >&5
   6565 echo "${ECHO_T}no" >&6; }
   6566 		  CFLAGS="$saved_CFLAGS"
   6567 
   6568 fi
   6569 
   6570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6571 }
   6572 	{
   6573 	{ echo "$as_me:$LINENO: checking if $CC supports compile flag -D_FORTIFY_SOURCE=2" >&5
   6574 echo $ECHO_N "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... $ECHO_C" >&6; }
   6575 	saved_CFLAGS="$CFLAGS"
   6576 	CFLAGS="$CFLAGS $WERROR -D_FORTIFY_SOURCE=2"
   6577 	_define_flag=""
   6578 	test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2"
   6579 	cat >conftest.$ac_ext <<_ACEOF
   6580 /* confdefs.h.  */
   6581 _ACEOF
   6582 cat confdefs.h >>conftest.$ac_ext
   6583 cat >>conftest.$ac_ext <<_ACEOF
   6584 /* end confdefs.h.  */
   6585 
   6586 #include <stdlib.h>
   6587 #include <stdio.h>
   6588 int main(int argc, char **argv) {
   6589 	/* Some math to catch -ftrapv problems in the toolchain */
   6590 	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
   6591 	float l = i * 2.1;
   6592 	double m = l / 0.5;
   6593 	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
   6594 	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
   6595 	exit(0);
   6596 }
   6597 
   6598 _ACEOF
   6599 rm -f conftest.$ac_objext
   6600 if { (ac_try="$ac_compile"
   6601 case "(($ac_try" in
   6602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6603   *) ac_try_echo=$ac_try;;
   6604 esac
   6605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6606   (eval "$ac_compile") 2>conftest.er1
   6607   ac_status=$?
   6608   grep -v '^ *+' conftest.er1 >conftest.err
   6609   rm -f conftest.er1
   6610   cat conftest.err >&5
   6611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6612   (exit $ac_status); } && {
   6613 	 test -z "$ac_c_werror_flag" ||
   6614 	 test ! -s conftest.err
   6615        } && test -s conftest.$ac_objext; then
   6616 
   6617 if `grep -i "unrecognized option" conftest.err >/dev/null`
   6618 then
   6619 		{ echo "$as_me:$LINENO: result: no" >&5
   6620 echo "${ECHO_T}no" >&6; }
   6621 		CFLAGS="$saved_CFLAGS"
   6622 else
   6623 		{ echo "$as_me:$LINENO: result: yes" >&5
   6624 echo "${ECHO_T}yes" >&6; }
   6625 		 CFLAGS="$saved_CFLAGS $_define_flag"
   6626 fi
   6627 else
   6628   echo "$as_me: failed program was:" >&5
   6629 sed 's/^/| /' conftest.$ac_ext >&5
   6630 
   6631 	 { echo "$as_me:$LINENO: result: no" >&5
   6632 echo "${ECHO_T}no" >&6; }
   6633 		  CFLAGS="$saved_CFLAGS"
   6634 
   6635 fi
   6636 
   6637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6638 }
   6639     if test "x$use_toolchain_hardening" = "x1"; then
   6640 	{
   6641 	{ echo "$as_me:$LINENO: checking if $LD supports link flag -Wl,-z,relro" >&5
   6642 echo $ECHO_N "checking if $LD supports link flag -Wl,-z,relro... $ECHO_C" >&6; }
   6643 	saved_LDFLAGS="$LDFLAGS"
   6644 	LDFLAGS="$LDFLAGS $WERROR -Wl,-z,relro"
   6645 	_define_flag=""
   6646 	test "x$_define_flag" = "x" && _define_flag="-Wl,-z,relro"
   6647 	cat >conftest.$ac_ext <<_ACEOF
   6648 /* confdefs.h.  */
   6649 _ACEOF
   6650 cat confdefs.h >>conftest.$ac_ext
   6651 cat >>conftest.$ac_ext <<_ACEOF
   6652 /* end confdefs.h.  */
   6653 
   6654 #include <stdlib.h>
   6655 #include <stdio.h>
   6656 int main(int argc, char **argv) {
   6657 	/* Some math to catch -ftrapv problems in the toolchain */
   6658 	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
   6659 	float l = i * 2.1;
   6660 	double m = l / 0.5;
   6661 	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
   6662 	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
   6663 	exit(0);
   6664 }
   6665 
   6666 _ACEOF
   6667 rm -f conftest.$ac_objext conftest$ac_exeext
   6668 if { (ac_try="$ac_link"
   6669 case "(($ac_try" in
   6670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6671   *) ac_try_echo=$ac_try;;
   6672 esac
   6673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6674   (eval "$ac_link") 2>conftest.er1
   6675   ac_status=$?
   6676   grep -v '^ *+' conftest.er1 >conftest.err
   6677   rm -f conftest.er1
   6678   cat conftest.err >&5
   6679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6680   (exit $ac_status); } && {
   6681 	 test -z "$ac_c_werror_flag" ||
   6682 	 test ! -s conftest.err
   6683        } && test -s conftest$ac_exeext &&
   6684        $as_test_x conftest$ac_exeext; then
   6685    { echo "$as_me:$LINENO: result: yes" >&5
   6686 echo "${ECHO_T}yes" >&6; }
   6687 		  LDFLAGS="$saved_LDFLAGS $_define_flag"
   6688 else
   6689   echo "$as_me: failed program was:" >&5
   6690 sed 's/^/| /' conftest.$ac_ext >&5
   6691 
   6692 	 { echo "$as_me:$LINENO: result: no" >&5
   6693 echo "${ECHO_T}no" >&6; }
   6694 		  LDFLAGS="$saved_LDFLAGS"
   6695 
   6696 fi
   6697 
   6698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   6699       conftest$ac_exeext conftest.$ac_ext
   6700 }
   6701 	{
   6702 	{ echo "$as_me:$LINENO: checking if $LD supports link flag -Wl,-z,now" >&5
   6703 echo $ECHO_N "checking if $LD supports link flag -Wl,-z,now... $ECHO_C" >&6; }
   6704 	saved_LDFLAGS="$LDFLAGS"
   6705 	LDFLAGS="$LDFLAGS $WERROR -Wl,-z,now"
   6706 	_define_flag=""
   6707 	test "x$_define_flag" = "x" && _define_flag="-Wl,-z,now"
   6708 	cat >conftest.$ac_ext <<_ACEOF
   6709 /* confdefs.h.  */
   6710 _ACEOF
   6711 cat confdefs.h >>conftest.$ac_ext
   6712 cat >>conftest.$ac_ext <<_ACEOF
   6713 /* end confdefs.h.  */
   6714 
   6715 #include <stdlib.h>
   6716 #include <stdio.h>
   6717 int main(int argc, char **argv) {
   6718 	/* Some math to catch -ftrapv problems in the toolchain */
   6719 	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
   6720 	float l = i * 2.1;
   6721 	double m = l / 0.5;
   6722 	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
   6723 	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
   6724 	exit(0);
   6725 }
   6726 
   6727 _ACEOF
   6728 rm -f conftest.$ac_objext conftest$ac_exeext
   6729 if { (ac_try="$ac_link"
   6730 case "(($ac_try" in
   6731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6732   *) ac_try_echo=$ac_try;;
   6733 esac
   6734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6735   (eval "$ac_link") 2>conftest.er1
   6736   ac_status=$?
   6737   grep -v '^ *+' conftest.er1 >conftest.err
   6738   rm -f conftest.er1
   6739   cat conftest.err >&5
   6740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6741   (exit $ac_status); } && {
   6742 	 test -z "$ac_c_werror_flag" ||
   6743 	 test ! -s conftest.err
   6744        } && test -s conftest$ac_exeext &&
   6745        $as_test_x conftest$ac_exeext; then
   6746    { echo "$as_me:$LINENO: result: yes" >&5
   6747 echo "${ECHO_T}yes" >&6; }
   6748 		  LDFLAGS="$saved_LDFLAGS $_define_flag"
   6749 else
   6750   echo "$as_me: failed program was:" >&5
   6751 sed 's/^/| /' conftest.$ac_ext >&5
   6752 
   6753 	 { echo "$as_me:$LINENO: result: no" >&5
   6754 echo "${ECHO_T}no" >&6; }
   6755 		  LDFLAGS="$saved_LDFLAGS"
   6756 
   6757 fi
   6758 
   6759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   6760       conftest$ac_exeext conftest.$ac_ext
   6761 }
   6762 	{
   6763 	{ echo "$as_me:$LINENO: checking if $LD supports link flag -Wl,-z,noexecstack" >&5
   6764 echo $ECHO_N "checking if $LD supports link flag -Wl,-z,noexecstack... $ECHO_C" >&6; }
   6765 	saved_LDFLAGS="$LDFLAGS"
   6766 	LDFLAGS="$LDFLAGS $WERROR -Wl,-z,noexecstack"
   6767 	_define_flag=""
   6768 	test "x$_define_flag" = "x" && _define_flag="-Wl,-z,noexecstack"
   6769 	cat >conftest.$ac_ext <<_ACEOF
   6770 /* confdefs.h.  */
   6771 _ACEOF
   6772 cat confdefs.h >>conftest.$ac_ext
   6773 cat >>conftest.$ac_ext <<_ACEOF
   6774 /* end confdefs.h.  */
   6775 
   6776 #include <stdlib.h>
   6777 #include <stdio.h>
   6778 int main(int argc, char **argv) {
   6779 	/* Some math to catch -ftrapv problems in the toolchain */
   6780 	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
   6781 	float l = i * 2.1;
   6782 	double m = l / 0.5;
   6783 	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
   6784 	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
   6785 	exit(0);
   6786 }
   6787 
   6788 _ACEOF
   6789 rm -f conftest.$ac_objext conftest$ac_exeext
   6790 if { (ac_try="$ac_link"
   6791 case "(($ac_try" in
   6792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6793   *) ac_try_echo=$ac_try;;
   6794 esac
   6795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6796   (eval "$ac_link") 2>conftest.er1
   6797   ac_status=$?
   6798   grep -v '^ *+' conftest.er1 >conftest.err
   6799   rm -f conftest.er1
   6800   cat conftest.err >&5
   6801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6802   (exit $ac_status); } && {
   6803 	 test -z "$ac_c_werror_flag" ||
   6804 	 test ! -s conftest.err
   6805        } && test -s conftest$ac_exeext &&
   6806        $as_test_x conftest$ac_exeext; then
   6807    { echo "$as_me:$LINENO: result: yes" >&5
   6808 echo "${ECHO_T}yes" >&6; }
   6809 		  LDFLAGS="$saved_LDFLAGS $_define_flag"
   6810 else
   6811   echo "$as_me: failed program was:" >&5
   6812 sed 's/^/| /' conftest.$ac_ext >&5
   6813 
   6814 	 { echo "$as_me:$LINENO: result: no" >&5
   6815 echo "${ECHO_T}no" >&6; }
   6816 		  LDFLAGS="$saved_LDFLAGS"
   6817 
   6818 fi
   6819 
   6820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   6821       conftest$ac_exeext conftest.$ac_ext
   6822 }
   6823 	# NB. -ftrapv expects certain support functions to be present in
   6824 	# the compiler library (libgcc or similar) to detect integer operations
   6825 	# that can overflow. We must check that the result of enabling it
   6826 	# actually links. The test program compiled/linked includes a number
   6827 	# of integer operations that should exercise this.
   6828 	{
   6829 	{ echo "$as_me:$LINENO: checking if $CC supports compile flag -ftrapv and linking succeeds" >&5
   6830 echo $ECHO_N "checking if $CC supports compile flag -ftrapv and linking succeeds... $ECHO_C" >&6; }
   6831 	saved_CFLAGS="$CFLAGS"
   6832 	CFLAGS="$CFLAGS $WERROR -ftrapv"
   6833 	_define_flag=""
   6834 	test "x$_define_flag" = "x" && _define_flag="-ftrapv"
   6835 	cat >conftest.$ac_ext <<_ACEOF
   6836 /* confdefs.h.  */
   6837 _ACEOF
   6838 cat confdefs.h >>conftest.$ac_ext
   6839 cat >>conftest.$ac_ext <<_ACEOF
   6840 /* end confdefs.h.  */
   6841 
   6842 #include <stdlib.h>
   6843 #include <stdio.h>
   6844 int main(int argc, char **argv) {
   6845 	/* Some math to catch -ftrapv problems in the toolchain */
   6846 	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
   6847 	float l = i * 2.1;
   6848 	double m = l / 0.5;
   6849 	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
   6850 	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
   6851 	exit(0);
   6852 }
   6853 
   6854 _ACEOF
   6855 rm -f conftest.$ac_objext conftest$ac_exeext
   6856 if { (ac_try="$ac_link"
   6857 case "(($ac_try" in
   6858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6859   *) ac_try_echo=$ac_try;;
   6860 esac
   6861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6862   (eval "$ac_link") 2>conftest.er1
   6863   ac_status=$?
   6864   grep -v '^ *+' conftest.er1 >conftest.err
   6865   rm -f conftest.er1
   6866   cat conftest.err >&5
   6867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6868   (exit $ac_status); } && {
   6869 	 test -z "$ac_c_werror_flag" ||
   6870 	 test ! -s conftest.err
   6871        } && test -s conftest$ac_exeext &&
   6872        $as_test_x conftest$ac_exeext; then
   6873 
   6874 if `grep -i "unrecognized option" conftest.err >/dev/null`
   6875 then
   6876 		{ echo "$as_me:$LINENO: result: no" >&5
   6877 echo "${ECHO_T}no" >&6; }
   6878 		CFLAGS="$saved_CFLAGS"
   6879 else
   6880 		{ echo "$as_me:$LINENO: result: yes" >&5
   6881 echo "${ECHO_T}yes" >&6; }
   6882 		 CFLAGS="$saved_CFLAGS $_define_flag"
   6883 fi
   6884 else
   6885   echo "$as_me: failed program was:" >&5
   6886 sed 's/^/| /' conftest.$ac_ext >&5
   6887 
   6888 	 { echo "$as_me:$LINENO: result: no" >&5
   6889 echo "${ECHO_T}no" >&6; }
   6890 		  CFLAGS="$saved_CFLAGS"
   6891 
   6892 fi
   6893 
   6894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   6895       conftest$ac_exeext conftest.$ac_ext
   6896 }
   6897     fi
   6898 	{ echo "$as_me:$LINENO: checking gcc version" >&5
   6899 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
   6900 	GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
   6901 	case $GCC_VER in
   6902 		1.*) no_attrib_nonnull=1 ;;
   6903 		2.8* | 2.9*)
   6904 		     no_attrib_nonnull=1
   6905 		     ;;
   6906 		2.*) no_attrib_nonnull=1 ;;
   6907 		*) ;;
   6908 	esac
   6909 	{ echo "$as_me:$LINENO: result: $GCC_VER" >&5
   6910 echo "${ECHO_T}$GCC_VER" >&6; }
   6911 
   6912 	{ echo "$as_me:$LINENO: checking if $CC accepts -fno-builtin-memset" >&5
   6913 echo $ECHO_N "checking if $CC accepts -fno-builtin-memset... $ECHO_C" >&6; }
   6914 	saved_CFLAGS="$CFLAGS"
   6915 	CFLAGS="$CFLAGS -fno-builtin-memset"
   6916 	cat >conftest.$ac_ext <<_ACEOF
   6917 /* confdefs.h.  */
   6918 _ACEOF
   6919 cat confdefs.h >>conftest.$ac_ext
   6920 cat >>conftest.$ac_ext <<_ACEOF
   6921 /* end confdefs.h.  */
   6922  #include <string.h>
   6923 int
   6924 main ()
   6925 {
   6926  char b[10]; memset(b, 0, sizeof(b));
   6927   ;
   6928   return 0;
   6929 }
   6930 _ACEOF
   6931 rm -f conftest.$ac_objext conftest$ac_exeext
   6932 if { (ac_try="$ac_link"
   6933 case "(($ac_try" in
   6934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6935   *) ac_try_echo=$ac_try;;
   6936 esac
   6937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6938   (eval "$ac_link") 2>conftest.er1
   6939   ac_status=$?
   6940   grep -v '^ *+' conftest.er1 >conftest.err
   6941   rm -f conftest.er1
   6942   cat conftest.err >&5
   6943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6944   (exit $ac_status); } && {
   6945 	 test -z "$ac_c_werror_flag" ||
   6946 	 test ! -s conftest.err
   6947        } && test -s conftest$ac_exeext &&
   6948        $as_test_x conftest$ac_exeext; then
   6949    { echo "$as_me:$LINENO: result: yes" >&5
   6950 echo "${ECHO_T}yes" >&6; }
   6951 else
   6952   echo "$as_me: failed program was:" >&5
   6953 sed 's/^/| /' conftest.$ac_ext >&5
   6954 
   6955 	 { echo "$as_me:$LINENO: result: no" >&5
   6956 echo "${ECHO_T}no" >&6; }
   6957 		  CFLAGS="$saved_CFLAGS"
   6958 
   6959 fi
   6960 
   6961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   6962       conftest$ac_exeext conftest.$ac_ext
   6963 
   6964 	# -fstack-protector-all doesn't always work for some GCC versions
   6965 	# and/or platforms, so we test if we can.  If it's not supported
   6966 	# on a given platform gcc will emit a warning so we use -Werror.
   6967 	if test "x$use_stack_protector" = "x1"; then
   6968 	    for t in -fstack-protector-strong -fstack-protector-all \
   6969 		    -fstack-protector; do
   6970 		{ echo "$as_me:$LINENO: checking if $CC supports $t" >&5
   6971 echo $ECHO_N "checking if $CC supports $t... $ECHO_C" >&6; }
   6972 		saved_CFLAGS="$CFLAGS"
   6973 		saved_LDFLAGS="$LDFLAGS"
   6974 		CFLAGS="$CFLAGS $t -Werror"
   6975 		LDFLAGS="$LDFLAGS $t -Werror"
   6976 		cat >conftest.$ac_ext <<_ACEOF
   6977 /* confdefs.h.  */
   6978 _ACEOF
   6979 cat confdefs.h >>conftest.$ac_ext
   6980 cat >>conftest.$ac_ext <<_ACEOF
   6981 /* end confdefs.h.  */
   6982  #include <stdio.h>
   6983 int
   6984 main ()
   6985 {
   6986 
   6987 	char x[256];
   6988 	snprintf(x, sizeof(x), "XXX");
   6989 
   6990   ;
   6991   return 0;
   6992 }
   6993 _ACEOF
   6994 rm -f conftest.$ac_objext conftest$ac_exeext
   6995 if { (ac_try="$ac_link"
   6996 case "(($ac_try" in
   6997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6998   *) ac_try_echo=$ac_try;;
   6999 esac
   7000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7001   (eval "$ac_link") 2>conftest.er1
   7002   ac_status=$?
   7003   grep -v '^ *+' conftest.er1 >conftest.err
   7004   rm -f conftest.er1
   7005   cat conftest.err >&5
   7006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7007   (exit $ac_status); } && {
   7008 	 test -z "$ac_c_werror_flag" ||
   7009 	 test ! -s conftest.err
   7010        } && test -s conftest$ac_exeext &&
   7011        $as_test_x conftest$ac_exeext; then
   7012    { echo "$as_me:$LINENO: result: yes" >&5
   7013 echo "${ECHO_T}yes" >&6; }
   7014 		      CFLAGS="$saved_CFLAGS $t"
   7015 		      LDFLAGS="$saved_LDFLAGS $t"
   7016 		      { echo "$as_me:$LINENO: checking if $t works" >&5
   7017 echo $ECHO_N "checking if $t works... $ECHO_C" >&6; }
   7018 		      if test "$cross_compiling" = yes; then
   7019    { echo "$as_me:$LINENO: WARNING: cross compiling: cannot test" >&5
   7020 echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
   7021 			  break
   7022 
   7023 else
   7024   cat >conftest.$ac_ext <<_ACEOF
   7025 /* confdefs.h.  */
   7026 _ACEOF
   7027 cat confdefs.h >>conftest.$ac_ext
   7028 cat >>conftest.$ac_ext <<_ACEOF
   7029 /* end confdefs.h.  */
   7030  #include <stdio.h>
   7031 int
   7032 main ()
   7033 {
   7034 
   7035 	char x[256];
   7036 	snprintf(x, sizeof(x), "XXX");
   7037 
   7038   ;
   7039   return 0;
   7040 }
   7041 _ACEOF
   7042 rm -f conftest$ac_exeext
   7043 if { (ac_try="$ac_link"
   7044 case "(($ac_try" in
   7045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7046   *) ac_try_echo=$ac_try;;
   7047 esac
   7048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7049   (eval "$ac_link") 2>&5
   7050   ac_status=$?
   7051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7052   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   7053   { (case "(($ac_try" in
   7054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7055   *) ac_try_echo=$ac_try;;
   7056 esac
   7057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7058   (eval "$ac_try") 2>&5
   7059   ac_status=$?
   7060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7061   (exit $ac_status); }; }; then
   7062    { echo "$as_me:$LINENO: result: yes" >&5
   7063 echo "${ECHO_T}yes" >&6; }
   7064 			  break
   7065 else
   7066   echo "$as_me: program exited with status $ac_status" >&5
   7067 echo "$as_me: failed program was:" >&5
   7068 sed 's/^/| /' conftest.$ac_ext >&5
   7069 
   7070 ( exit $ac_status )
   7071  { echo "$as_me:$LINENO: result: no" >&5
   7072 echo "${ECHO_T}no" >&6; }
   7073 fi
   7074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   7075 fi
   7076 
   7077 
   7078 
   7079 else
   7080   echo "$as_me: failed program was:" >&5
   7081 sed 's/^/| /' conftest.$ac_ext >&5
   7082 
   7083 	 { echo "$as_me:$LINENO: result: no" >&5
   7084 echo "${ECHO_T}no" >&6; }
   7085 
   7086 fi
   7087 
   7088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   7089       conftest$ac_exeext conftest.$ac_ext
   7090 		CFLAGS="$saved_CFLAGS"
   7091 		LDFLAGS="$saved_LDFLAGS"
   7092 	    done
   7093 	fi
   7094 
   7095 	if test -z "$have_llong_max"; then
   7096 		# retry LLONG_MAX with -std=gnu99, needed on some Linuxes
   7097 		unset ac_cv_have_decl_LLONG_MAX
   7098 		saved_CFLAGS="$CFLAGS"
   7099 		CFLAGS="$CFLAGS -std=gnu99"
   7100 		{ echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
   7101 echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
   7102 if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
   7103   echo $ECHO_N "(cached) $ECHO_C" >&6
   7104 else
   7105   cat >conftest.$ac_ext <<_ACEOF
   7106 /* confdefs.h.  */
   7107 _ACEOF
   7108 cat confdefs.h >>conftest.$ac_ext
   7109 cat >>conftest.$ac_ext <<_ACEOF
   7110 /* end confdefs.h.  */
   7111 #include <limits.h>
   7112 
   7113 
   7114 int
   7115 main ()
   7116 {
   7117 #ifndef LLONG_MAX
   7118   (void) LLONG_MAX;
   7119 #endif
   7120 
   7121   ;
   7122   return 0;
   7123 }
   7124 _ACEOF
   7125 rm -f conftest.$ac_objext
   7126 if { (ac_try="$ac_compile"
   7127 case "(($ac_try" in
   7128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7129   *) ac_try_echo=$ac_try;;
   7130 esac
   7131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7132   (eval "$ac_compile") 2>conftest.er1
   7133   ac_status=$?
   7134   grep -v '^ *+' conftest.er1 >conftest.err
   7135   rm -f conftest.er1
   7136   cat conftest.err >&5
   7137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7138   (exit $ac_status); } && {
   7139 	 test -z "$ac_c_werror_flag" ||
   7140 	 test ! -s conftest.err
   7141        } && test -s conftest.$ac_objext; then
   7142   ac_cv_have_decl_LLONG_MAX=yes
   7143 else
   7144   echo "$as_me: failed program was:" >&5
   7145 sed 's/^/| /' conftest.$ac_ext >&5
   7146 
   7147 	ac_cv_have_decl_LLONG_MAX=no
   7148 fi
   7149 
   7150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7151 fi
   7152 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
   7153 echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
   7154 if test $ac_cv_have_decl_LLONG_MAX = yes; then
   7155   have_llong_max=1
   7156 else
   7157   CFLAGS="$saved_CFLAGS"
   7158 fi
   7159 
   7160 	fi
   7161 fi
   7162 
   7163 { echo "$as_me:$LINENO: checking if compiler allows __attribute__ on return types" >&5
   7164 echo $ECHO_N "checking if compiler allows __attribute__ on return types... $ECHO_C" >&6; }
   7165 cat >conftest.$ac_ext <<_ACEOF
   7166 /* confdefs.h.  */
   7167 _ACEOF
   7168 cat confdefs.h >>conftest.$ac_ext
   7169 cat >>conftest.$ac_ext <<_ACEOF
   7170 /* end confdefs.h.  */
   7171 
   7172 #include <stdlib.h>
   7173 __attribute__((__unused__)) static void foo(void){return;}
   7174 int
   7175 main ()
   7176 {
   7177  exit(0);
   7178   ;
   7179   return 0;
   7180 }
   7181 _ACEOF
   7182 rm -f conftest.$ac_objext
   7183 if { (ac_try="$ac_compile"
   7184 case "(($ac_try" in
   7185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7186   *) ac_try_echo=$ac_try;;
   7187 esac
   7188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7189   (eval "$ac_compile") 2>conftest.er1
   7190   ac_status=$?
   7191   grep -v '^ *+' conftest.er1 >conftest.err
   7192   rm -f conftest.er1
   7193   cat conftest.err >&5
   7194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7195   (exit $ac_status); } && {
   7196 	 test -z "$ac_c_werror_flag" ||
   7197 	 test ! -s conftest.err
   7198        } && test -s conftest.$ac_objext; then
   7199    { echo "$as_me:$LINENO: result: yes" >&5
   7200 echo "${ECHO_T}yes" >&6; }
   7201 else
   7202   echo "$as_me: failed program was:" >&5
   7203 sed 's/^/| /' conftest.$ac_ext >&5
   7204 
   7205 	 { echo "$as_me:$LINENO: result: no" >&5
   7206 echo "${ECHO_T}no" >&6; }
   7207 
   7208 cat >>confdefs.h <<\_ACEOF
   7209 #define NO_ATTRIBUTE_ON_RETURN_TYPE 1
   7210 _ACEOF
   7211 
   7212 
   7213 fi
   7214 
   7215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7216 
   7217 if test "x$no_attrib_nonnull" != "x1" ; then
   7218 
   7219 cat >>confdefs.h <<\_ACEOF
   7220 #define HAVE_ATTRIBUTE__NONNULL__ 1
   7221 _ACEOF
   7222 
   7223 fi
   7224 
   7225 
   7226 # Check whether --with-rpath was given.
   7227 if test "${with_rpath+set}" = set; then
   7228   withval=$with_rpath;
   7229 		if test "x$withval" = "xno" ; then
   7230 			need_dash_r=""
   7231 		fi
   7232 		if test "x$withval" = "xyes" ; then
   7233 			need_dash_r=1
   7234 		fi
   7235 
   7236 
   7237 fi
   7238 
   7239 
   7240 # Allow user to specify flags
   7241 
   7242 # Check whether --with-cflags was given.
   7243 if test "${with_cflags+set}" = set; then
   7244   withval=$with_cflags;
   7245 		if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
   7246 		    test "x${withval}" != "xyes"; then
   7247 			CFLAGS="$CFLAGS $withval"
   7248 		fi
   7249 
   7250 
   7251 fi
   7252 
   7253 
   7254 # Check whether --with-cppflags was given.
   7255 if test "${with_cppflags+set}" = set; then
   7256   withval=$with_cppflags;
   7257 		if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
   7258 		    test "x${withval}" != "xyes"; then
   7259 			CPPFLAGS="$CPPFLAGS $withval"
   7260 		fi
   7261 
   7262 
   7263 fi
   7264 
   7265 
   7266 # Check whether --with-ldflags was given.
   7267 if test "${with_ldflags+set}" = set; then
   7268   withval=$with_ldflags;
   7269 		if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
   7270 		    test "x${withval}" != "xyes"; then
   7271 			LDFLAGS="$LDFLAGS $withval"
   7272 		fi
   7273 
   7274 
   7275 fi
   7276 
   7277 
   7278 # Check whether --with-libs was given.
   7279 if test "${with_libs+set}" = set; then
   7280   withval=$with_libs;
   7281 		if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
   7282 		    test "x${withval}" != "xyes"; then
   7283 			LIBS="$LIBS $withval"
   7284 		fi
   7285 
   7286 
   7287 fi
   7288 
   7289 
   7290 # Check whether --with-Werror was given.
   7291 if test "${with_Werror+set}" = set; then
   7292   withval=$with_Werror;
   7293 		if test -n "$withval"  &&  test "x$withval" != "xno"; then
   7294 			werror_flags="-Werror"
   7295 			if test "x${withval}" != "xyes"; then
   7296 				werror_flags="$withval"
   7297 			fi
   7298 		fi
   7299 
   7300 
   7301 fi
   7302 
   7303 
   7304 
   7305 
   7306 
   7307 
   7308 
   7309 
   7310 
   7311 
   7312 
   7313 
   7314 
   7315 
   7316 
   7317 
   7318 
   7319 
   7320 
   7321 
   7322 
   7323 
   7324 
   7325 
   7326 
   7327 
   7328 
   7329 
   7330 
   7331 
   7332 
   7333 
   7334 
   7335 
   7336 
   7337 
   7338 
   7339 
   7340 
   7341 
   7342 
   7343 
   7344 
   7345 
   7346 
   7347 
   7348 
   7349 
   7350 
   7351 
   7352 
   7353 
   7354 
   7355 
   7356 
   7357 
   7358 
   7359 
   7360 
   7361 
   7362 
   7363 
   7364 
   7365 
   7366 
   7367 
   7368 
   7369 
   7370 
   7371 for ac_header in  \
   7372 	blf.h \
   7373 	bstring.h \
   7374 	crypt.h \
   7375 	crypto/sha2.h \
   7376 	dirent.h \
   7377 	endian.h \
   7378 	elf.h \
   7379 	features.h \
   7380 	fcntl.h \
   7381 	floatingpoint.h \
   7382 	getopt.h \
   7383 	glob.h \
   7384 	ia.h \
   7385 	iaf.h \
   7386 	inttypes.h \
   7387 	limits.h \
   7388 	locale.h \
   7389 	login.h \
   7390 	maillock.h \
   7391 	ndir.h \
   7392 	net/if_tun.h \
   7393 	netdb.h \
   7394 	netgroup.h \
   7395 	pam/pam_appl.h \
   7396 	paths.h \
   7397 	poll.h \
   7398 	pty.h \
   7399 	readpassphrase.h \
   7400 	rpc/types.h \
   7401 	security/pam_appl.h \
   7402 	sha2.h \
   7403 	shadow.h \
   7404 	stddef.h \
   7405 	stdint.h \
   7406 	string.h \
   7407 	strings.h \
   7408 	sys/audit.h \
   7409 	sys/bitypes.h \
   7410 	sys/bsdtty.h \
   7411 	sys/capability.h \
   7412 	sys/cdefs.h \
   7413 	sys/dir.h \
   7414 	sys/mman.h \
   7415 	sys/ndir.h \
   7416 	sys/poll.h \
   7417 	sys/prctl.h \
   7418 	sys/pstat.h \
   7419 	sys/select.h \
   7420 	sys/stat.h \
   7421 	sys/stream.h \
   7422 	sys/stropts.h \
   7423 	sys/strtio.h \
   7424 	sys/statvfs.h \
   7425 	sys/sysmacros.h \
   7426 	sys/time.h \
   7427 	sys/timers.h \
   7428 	time.h \
   7429 	tmpdir.h \
   7430 	ttyent.h \
   7431 	ucred.h \
   7432 	unistd.h \
   7433 	usersec.h \
   7434 	util.h \
   7435 	utime.h \
   7436 	utmp.h \
   7437 	utmpx.h \
   7438 	vis.h \
   7439 
   7440 do
   7441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   7442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   7443   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   7444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   7445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   7446   echo $ECHO_N "(cached) $ECHO_C" >&6
   7447 fi
   7448 ac_res=`eval echo '${'$as_ac_Header'}'`
   7449 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   7450 echo "${ECHO_T}$ac_res" >&6; }
   7451 else
   7452   # Is the header compilable?
   7453 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   7454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   7455 cat >conftest.$ac_ext <<_ACEOF
   7456 /* confdefs.h.  */
   7457 _ACEOF
   7458 cat confdefs.h >>conftest.$ac_ext
   7459 cat >>conftest.$ac_ext <<_ACEOF
   7460 /* end confdefs.h.  */
   7461 $ac_includes_default
   7462 #include <$ac_header>
   7463 _ACEOF
   7464 rm -f conftest.$ac_objext
   7465 if { (ac_try="$ac_compile"
   7466 case "(($ac_try" in
   7467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7468   *) ac_try_echo=$ac_try;;
   7469 esac
   7470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7471   (eval "$ac_compile") 2>conftest.er1
   7472   ac_status=$?
   7473   grep -v '^ *+' conftest.er1 >conftest.err
   7474   rm -f conftest.er1
   7475   cat conftest.err >&5
   7476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7477   (exit $ac_status); } && {
   7478 	 test -z "$ac_c_werror_flag" ||
   7479 	 test ! -s conftest.err
   7480        } && test -s conftest.$ac_objext; then
   7481   ac_header_compiler=yes
   7482 else
   7483   echo "$as_me: failed program was:" >&5
   7484 sed 's/^/| /' conftest.$ac_ext >&5
   7485 
   7486 	ac_header_compiler=no
   7487 fi
   7488 
   7489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7490 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   7491 echo "${ECHO_T}$ac_header_compiler" >&6; }
   7492 
   7493 # Is the header present?
   7494 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   7495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   7496 cat >conftest.$ac_ext <<_ACEOF
   7497 /* confdefs.h.  */
   7498 _ACEOF
   7499 cat confdefs.h >>conftest.$ac_ext
   7500 cat >>conftest.$ac_ext <<_ACEOF
   7501 /* end confdefs.h.  */
   7502 #include <$ac_header>
   7503 _ACEOF
   7504 if { (ac_try="$ac_cpp conftest.$ac_ext"
   7505 case "(($ac_try" in
   7506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7507   *) ac_try_echo=$ac_try;;
   7508 esac
   7509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7510   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   7511   ac_status=$?
   7512   grep -v '^ *+' conftest.er1 >conftest.err
   7513   rm -f conftest.er1
   7514   cat conftest.err >&5
   7515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7516   (exit $ac_status); } >/dev/null && {
   7517 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   7518 	 test ! -s conftest.err
   7519        }; then
   7520   ac_header_preproc=yes
   7521 else
   7522   echo "$as_me: failed program was:" >&5
   7523 sed 's/^/| /' conftest.$ac_ext >&5
   7524 
   7525   ac_header_preproc=no
   7526 fi
   7527 
   7528 rm -f conftest.err conftest.$ac_ext
   7529 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   7530 echo "${ECHO_T}$ac_header_preproc" >&6; }
   7531 
   7532 # So?  What about this header?
   7533 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   7534   yes:no: )
   7535     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   7536 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   7537     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   7538 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   7539     ac_header_preproc=yes
   7540     ;;
   7541   no:yes:* )
   7542     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   7543 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   7544     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   7545 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   7546     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   7547 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   7548     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   7549 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   7550     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   7551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   7552     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   7553 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   7554     ( cat <<\_ASBOX
   7555 ## ------------------------------------------- ##
   7556 ## Report this to openssh-unix-dev (at] mindrot.org ##
   7557 ## ------------------------------------------- ##
   7558 _ASBOX
   7559      ) | sed "s/^/$as_me: WARNING:     /" >&2
   7560     ;;
   7561 esac
   7562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   7563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   7564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   7565   echo $ECHO_N "(cached) $ECHO_C" >&6
   7566 else
   7567   eval "$as_ac_Header=\$ac_header_preproc"
   7568 fi
   7569 ac_res=`eval echo '${'$as_ac_Header'}'`
   7570 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   7571 echo "${ECHO_T}$ac_res" >&6; }
   7572 
   7573 fi
   7574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   7575   cat >>confdefs.h <<_ACEOF
   7576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   7577 _ACEOF
   7578 
   7579 fi
   7580 
   7581 done
   7582 
   7583 
   7584 # lastlog.h requires sys/time.h to be included first on Solaris
   7585 
   7586 for ac_header in lastlog.h
   7587 do
   7588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   7589 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   7590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   7591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   7592   echo $ECHO_N "(cached) $ECHO_C" >&6
   7593 else
   7594   cat >conftest.$ac_ext <<_ACEOF
   7595 /* confdefs.h.  */
   7596 _ACEOF
   7597 cat confdefs.h >>conftest.$ac_ext
   7598 cat >>conftest.$ac_ext <<_ACEOF
   7599 /* end confdefs.h.  */
   7600 
   7601 #ifdef HAVE_SYS_TIME_H
   7602 # include <sys/time.h>
   7603 #endif
   7604 
   7605 
   7606 #include <$ac_header>
   7607 _ACEOF
   7608 rm -f conftest.$ac_objext
   7609 if { (ac_try="$ac_compile"
   7610 case "(($ac_try" in
   7611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7612   *) ac_try_echo=$ac_try;;
   7613 esac
   7614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7615   (eval "$ac_compile") 2>conftest.er1
   7616   ac_status=$?
   7617   grep -v '^ *+' conftest.er1 >conftest.err
   7618   rm -f conftest.er1
   7619   cat conftest.err >&5
   7620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7621   (exit $ac_status); } && {
   7622 	 test -z "$ac_c_werror_flag" ||
   7623 	 test ! -s conftest.err
   7624        } && test -s conftest.$ac_objext; then
   7625   eval "$as_ac_Header=yes"
   7626 else
   7627   echo "$as_me: failed program was:" >&5
   7628 sed 's/^/| /' conftest.$ac_ext >&5
   7629 
   7630 	eval "$as_ac_Header=no"
   7631 fi
   7632 
   7633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7634 fi
   7635 ac_res=`eval echo '${'$as_ac_Header'}'`
   7636 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   7637 echo "${ECHO_T}$ac_res" >&6; }
   7638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   7639   cat >>confdefs.h <<_ACEOF
   7640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   7641 _ACEOF
   7642 
   7643 fi
   7644 
   7645 done
   7646 
   7647 
   7648 # sys/ptms.h requires sys/stream.h to be included first on Solaris
   7649 
   7650 for ac_header in sys/ptms.h
   7651 do
   7652 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   7653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   7654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   7655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   7656   echo $ECHO_N "(cached) $ECHO_C" >&6
   7657 else
   7658   cat >conftest.$ac_ext <<_ACEOF
   7659 /* confdefs.h.  */
   7660 _ACEOF
   7661 cat confdefs.h >>conftest.$ac_ext
   7662 cat >>conftest.$ac_ext <<_ACEOF
   7663 /* end confdefs.h.  */
   7664 
   7665 #ifdef HAVE_SYS_STREAM_H
   7666 # include <sys/stream.h>
   7667 #endif
   7668 
   7669 
   7670 #include <$ac_header>
   7671 _ACEOF
   7672 rm -f conftest.$ac_objext
   7673 if { (ac_try="$ac_compile"
   7674 case "(($ac_try" in
   7675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7676   *) ac_try_echo=$ac_try;;
   7677 esac
   7678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7679   (eval "$ac_compile") 2>conftest.er1
   7680   ac_status=$?
   7681   grep -v '^ *+' conftest.er1 >conftest.err
   7682   rm -f conftest.er1
   7683   cat conftest.err >&5
   7684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7685   (exit $ac_status); } && {
   7686 	 test -z "$ac_c_werror_flag" ||
   7687 	 test ! -s conftest.err
   7688        } && test -s conftest.$ac_objext; then
   7689   eval "$as_ac_Header=yes"
   7690 else
   7691   echo "$as_me: failed program was:" >&5
   7692 sed 's/^/| /' conftest.$ac_ext >&5
   7693 
   7694 	eval "$as_ac_Header=no"
   7695 fi
   7696 
   7697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7698 fi
   7699 ac_res=`eval echo '${'$as_ac_Header'}'`
   7700 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   7701 echo "${ECHO_T}$ac_res" >&6; }
   7702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   7703   cat >>confdefs.h <<_ACEOF
   7704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   7705 _ACEOF
   7706 
   7707 fi
   7708 
   7709 done
   7710 
   7711 
   7712 # login_cap.h requires sys/types.h on NetBSD
   7713 
   7714 for ac_header in login_cap.h
   7715 do
   7716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   7717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   7718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   7719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   7720   echo $ECHO_N "(cached) $ECHO_C" >&6
   7721 else
   7722   cat >conftest.$ac_ext <<_ACEOF
   7723 /* confdefs.h.  */
   7724 _ACEOF
   7725 cat confdefs.h >>conftest.$ac_ext
   7726 cat >>conftest.$ac_ext <<_ACEOF
   7727 /* end confdefs.h.  */
   7728 
   7729 #include <sys/types.h>
   7730 
   7731 
   7732 #include <$ac_header>
   7733 _ACEOF
   7734 rm -f conftest.$ac_objext
   7735 if { (ac_try="$ac_compile"
   7736 case "(($ac_try" in
   7737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7738   *) ac_try_echo=$ac_try;;
   7739 esac
   7740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7741   (eval "$ac_compile") 2>conftest.er1
   7742   ac_status=$?
   7743   grep -v '^ *+' conftest.er1 >conftest.err
   7744   rm -f conftest.er1
   7745   cat conftest.err >&5
   7746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7747   (exit $ac_status); } && {
   7748 	 test -z "$ac_c_werror_flag" ||
   7749 	 test ! -s conftest.err
   7750        } && test -s conftest.$ac_objext; then
   7751   eval "$as_ac_Header=yes"
   7752 else
   7753   echo "$as_me: failed program was:" >&5
   7754 sed 's/^/| /' conftest.$ac_ext >&5
   7755 
   7756 	eval "$as_ac_Header=no"
   7757 fi
   7758 
   7759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7760 fi
   7761 ac_res=`eval echo '${'$as_ac_Header'}'`
   7762 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   7763 echo "${ECHO_T}$ac_res" >&6; }
   7764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   7765   cat >>confdefs.h <<_ACEOF
   7766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   7767 _ACEOF
   7768 
   7769 fi
   7770 
   7771 done
   7772 
   7773 
   7774 # older BSDs need sys/param.h before sys/mount.h
   7775 
   7776 for ac_header in sys/mount.h
   7777 do
   7778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   7779 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   7780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   7781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   7782   echo $ECHO_N "(cached) $ECHO_C" >&6
   7783 else
   7784   cat >conftest.$ac_ext <<_ACEOF
   7785 /* confdefs.h.  */
   7786 _ACEOF
   7787 cat confdefs.h >>conftest.$ac_ext
   7788 cat >>conftest.$ac_ext <<_ACEOF
   7789 /* end confdefs.h.  */
   7790 
   7791 #include <sys/param.h>
   7792 
   7793 
   7794 #include <$ac_header>
   7795 _ACEOF
   7796 rm -f conftest.$ac_objext
   7797 if { (ac_try="$ac_compile"
   7798 case "(($ac_try" in
   7799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7800   *) ac_try_echo=$ac_try;;
   7801 esac
   7802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7803   (eval "$ac_compile") 2>conftest.er1
   7804   ac_status=$?
   7805   grep -v '^ *+' conftest.er1 >conftest.err
   7806   rm -f conftest.er1
   7807   cat conftest.err >&5
   7808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7809   (exit $ac_status); } && {
   7810 	 test -z "$ac_c_werror_flag" ||
   7811 	 test ! -s conftest.err
   7812        } && test -s conftest.$ac_objext; then
   7813   eval "$as_ac_Header=yes"
   7814 else
   7815   echo "$as_me: failed program was:" >&5
   7816 sed 's/^/| /' conftest.$ac_ext >&5
   7817 
   7818 	eval "$as_ac_Header=no"
   7819 fi
   7820 
   7821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7822 fi
   7823 ac_res=`eval echo '${'$as_ac_Header'}'`
   7824 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   7825 echo "${ECHO_T}$ac_res" >&6; }
   7826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   7827   cat >>confdefs.h <<_ACEOF
   7828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   7829 _ACEOF
   7830 
   7831 fi
   7832 
   7833 done
   7834 
   7835 
   7836 # Android requires sys/socket.h to be included before sys/un.h
   7837 
   7838 for ac_header in sys/un.h
   7839 do
   7840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   7841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   7842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   7843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   7844   echo $ECHO_N "(cached) $ECHO_C" >&6
   7845 else
   7846   cat >conftest.$ac_ext <<_ACEOF
   7847 /* confdefs.h.  */
   7848 _ACEOF
   7849 cat confdefs.h >>conftest.$ac_ext
   7850 cat >>conftest.$ac_ext <<_ACEOF
   7851 /* end confdefs.h.  */
   7852 
   7853 #include <sys/types.h>
   7854 #include <sys/socket.h>
   7855 
   7856 
   7857 #include <$ac_header>
   7858 _ACEOF
   7859 rm -f conftest.$ac_objext
   7860 if { (ac_try="$ac_compile"
   7861 case "(($ac_try" in
   7862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7863   *) ac_try_echo=$ac_try;;
   7864 esac
   7865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7866   (eval "$ac_compile") 2>conftest.er1
   7867   ac_status=$?
   7868   grep -v '^ *+' conftest.er1 >conftest.err
   7869   rm -f conftest.er1
   7870   cat conftest.err >&5
   7871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7872   (exit $ac_status); } && {
   7873 	 test -z "$ac_c_werror_flag" ||
   7874 	 test ! -s conftest.err
   7875        } && test -s conftest.$ac_objext; then
   7876   eval "$as_ac_Header=yes"
   7877 else
   7878   echo "$as_me: failed program was:" >&5
   7879 sed 's/^/| /' conftest.$ac_ext >&5
   7880 
   7881 	eval "$as_ac_Header=no"
   7882 fi
   7883 
   7884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7885 fi
   7886 ac_res=`eval echo '${'$as_ac_Header'}'`
   7887 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   7888 echo "${ECHO_T}$ac_res" >&6; }
   7889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   7890   cat >>confdefs.h <<_ACEOF
   7891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   7892 _ACEOF
   7893 
   7894 fi
   7895 
   7896 done
   7897 
   7898 
   7899 # Messages for features tested for in target-specific section
   7900 SIA_MSG="no"
   7901 SPC_MSG="no"
   7902 SP_MSG="no"
   7903 
   7904 # Check for some target-specific stuff
   7905 case "$host" in
   7906 *-*-aix*)
   7907 	# Some versions of VAC won't allow macro redefinitions at
   7908 	# -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
   7909 	# particularly with older versions of vac or xlc.
   7910 	# It also throws errors about null macro argments, but these are
   7911 	# not fatal.
   7912 	{ echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5
   7913 echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; }
   7914 	cat >conftest.$ac_ext <<_ACEOF
   7915 /* confdefs.h.  */
   7916 _ACEOF
   7917 cat confdefs.h >>conftest.$ac_ext
   7918 cat >>conftest.$ac_ext <<_ACEOF
   7919 /* end confdefs.h.  */
   7920 
   7921 #define testmacro foo
   7922 #define testmacro bar
   7923 int
   7924 main ()
   7925 {
   7926  exit(0);
   7927   ;
   7928   return 0;
   7929 }
   7930 _ACEOF
   7931 rm -f conftest.$ac_objext
   7932 if { (ac_try="$ac_compile"
   7933 case "(($ac_try" in
   7934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7935   *) ac_try_echo=$ac_try;;
   7936 esac
   7937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7938   (eval "$ac_compile") 2>conftest.er1
   7939   ac_status=$?
   7940   grep -v '^ *+' conftest.er1 >conftest.err
   7941   rm -f conftest.er1
   7942   cat conftest.err >&5
   7943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7944   (exit $ac_status); } && {
   7945 	 test -z "$ac_c_werror_flag" ||
   7946 	 test ! -s conftest.err
   7947        } && test -s conftest.$ac_objext; then
   7948    { echo "$as_me:$LINENO: result: yes" >&5
   7949 echo "${ECHO_T}yes" >&6; }
   7950 else
   7951   echo "$as_me: failed program was:" >&5
   7952 sed 's/^/| /' conftest.$ac_ext >&5
   7953 
   7954 	 { echo "$as_me:$LINENO: result: no" >&5
   7955 echo "${ECHO_T}no" >&6; }
   7956 	      CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
   7957 	      LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
   7958 	      CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
   7959 	      CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
   7960 
   7961 
   7962 fi
   7963 
   7964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7965 
   7966 	{ echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5
   7967 echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; }
   7968 	if (test -z "$blibpath"); then
   7969 		blibpath="/usr/lib:/lib"
   7970 	fi
   7971 	saved_LDFLAGS="$LDFLAGS"
   7972 	if test "$GCC" = "yes"; then
   7973 		flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
   7974 	else
   7975 		flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
   7976 	fi
   7977 	for tryflags in $flags ;do
   7978 		if (test -z "$blibflags"); then
   7979 			LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
   7980 			cat >conftest.$ac_ext <<_ACEOF
   7981 /* confdefs.h.  */
   7982 _ACEOF
   7983 cat confdefs.h >>conftest.$ac_ext
   7984 cat >>conftest.$ac_ext <<_ACEOF
   7985 /* end confdefs.h.  */
   7986 
   7987 int
   7988 main ()
   7989 {
   7990 
   7991   ;
   7992   return 0;
   7993 }
   7994 _ACEOF
   7995 rm -f conftest.$ac_objext conftest$ac_exeext
   7996 if { (ac_try="$ac_link"
   7997 case "(($ac_try" in
   7998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7999   *) ac_try_echo=$ac_try;;
   8000 esac
   8001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8002   (eval "$ac_link") 2>conftest.er1
   8003   ac_status=$?
   8004   grep -v '^ *+' conftest.er1 >conftest.err
   8005   rm -f conftest.er1
   8006   cat conftest.err >&5
   8007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8008   (exit $ac_status); } && {
   8009 	 test -z "$ac_c_werror_flag" ||
   8010 	 test ! -s conftest.err
   8011        } && test -s conftest$ac_exeext &&
   8012        $as_test_x conftest$ac_exeext; then
   8013   blibflags=$tryflags
   8014 else
   8015   echo "$as_me: failed program was:" >&5
   8016 sed 's/^/| /' conftest.$ac_ext >&5
   8017 
   8018 
   8019 fi
   8020 
   8021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8022       conftest$ac_exeext conftest.$ac_ext
   8023 		fi
   8024 	done
   8025 	if (test -z "$blibflags"); then
   8026 		{ echo "$as_me:$LINENO: result: not found" >&5
   8027 echo "${ECHO_T}not found" >&6; }
   8028 		{ { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5
   8029 echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;}
   8030    { (exit 1); exit 1; }; }
   8031 	else
   8032 		{ echo "$as_me:$LINENO: result: $blibflags" >&5
   8033 echo "${ECHO_T}$blibflags" >&6; }
   8034 	fi
   8035 	LDFLAGS="$saved_LDFLAGS"
   8036 		{ echo "$as_me:$LINENO: checking for authenticate" >&5
   8037 echo $ECHO_N "checking for authenticate... $ECHO_C" >&6; }
   8038 if test "${ac_cv_func_authenticate+set}" = set; then
   8039   echo $ECHO_N "(cached) $ECHO_C" >&6
   8040 else
   8041   cat >conftest.$ac_ext <<_ACEOF
   8042 /* confdefs.h.  */
   8043 _ACEOF
   8044 cat confdefs.h >>conftest.$ac_ext
   8045 cat >>conftest.$ac_ext <<_ACEOF
   8046 /* end confdefs.h.  */
   8047 /* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate.
   8048    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   8049 #define authenticate innocuous_authenticate
   8050 
   8051 /* System header to define __stub macros and hopefully few prototypes,
   8052     which can conflict with char authenticate (); below.
   8053     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   8054     <limits.h> exists even on freestanding compilers.  */
   8055 
   8056 #ifdef __STDC__
   8057 # include <limits.h>
   8058 #else
   8059 # include <assert.h>
   8060 #endif
   8061 
   8062 #undef authenticate
   8063 
   8064 /* Override any GCC internal prototype to avoid an error.
   8065    Use char because int might match the return type of a GCC
   8066    builtin and then its argument prototype would still apply.  */
   8067 #ifdef __cplusplus
   8068 extern "C"
   8069 #endif
   8070 char authenticate ();
   8071 /* The GNU C library defines this for functions which it implements
   8072     to always fail with ENOSYS.  Some functions are actually named
   8073     something starting with __ and the normal name is an alias.  */
   8074 #if defined __stub_authenticate || defined __stub___authenticate
   8075 choke me
   8076 #endif
   8077 
   8078 int
   8079 main ()
   8080 {
   8081 return authenticate ();
   8082   ;
   8083   return 0;
   8084 }
   8085 _ACEOF
   8086 rm -f conftest.$ac_objext conftest$ac_exeext
   8087 if { (ac_try="$ac_link"
   8088 case "(($ac_try" in
   8089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8090   *) ac_try_echo=$ac_try;;
   8091 esac
   8092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8093   (eval "$ac_link") 2>conftest.er1
   8094   ac_status=$?
   8095   grep -v '^ *+' conftest.er1 >conftest.err
   8096   rm -f conftest.er1
   8097   cat conftest.err >&5
   8098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8099   (exit $ac_status); } && {
   8100 	 test -z "$ac_c_werror_flag" ||
   8101 	 test ! -s conftest.err
   8102        } && test -s conftest$ac_exeext &&
   8103        $as_test_x conftest$ac_exeext; then
   8104   ac_cv_func_authenticate=yes
   8105 else
   8106   echo "$as_me: failed program was:" >&5
   8107 sed 's/^/| /' conftest.$ac_ext >&5
   8108 
   8109 	ac_cv_func_authenticate=no
   8110 fi
   8111 
   8112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8113       conftest$ac_exeext conftest.$ac_ext
   8114 fi
   8115 { echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
   8116 echo "${ECHO_T}$ac_cv_func_authenticate" >&6; }
   8117 if test $ac_cv_func_authenticate = yes; then
   8118 
   8119 cat >>confdefs.h <<\_ACEOF
   8120 #define WITH_AIXAUTHENTICATE 1
   8121 _ACEOF
   8122 
   8123 else
   8124   { echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
   8125 echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6; }
   8126 if test "${ac_cv_lib_s_authenticate+set}" = set; then
   8127   echo $ECHO_N "(cached) $ECHO_C" >&6
   8128 else
   8129   ac_check_lib_save_LIBS=$LIBS
   8130 LIBS="-ls  $LIBS"
   8131 cat >conftest.$ac_ext <<_ACEOF
   8132 /* confdefs.h.  */
   8133 _ACEOF
   8134 cat confdefs.h >>conftest.$ac_ext
   8135 cat >>conftest.$ac_ext <<_ACEOF
   8136 /* end confdefs.h.  */
   8137 
   8138 /* Override any GCC internal prototype to avoid an error.
   8139    Use char because int might match the return type of a GCC
   8140    builtin and then its argument prototype would still apply.  */
   8141 #ifdef __cplusplus
   8142 extern "C"
   8143 #endif
   8144 char authenticate ();
   8145 int
   8146 main ()
   8147 {
   8148 return authenticate ();
   8149   ;
   8150   return 0;
   8151 }
   8152 _ACEOF
   8153 rm -f conftest.$ac_objext conftest$ac_exeext
   8154 if { (ac_try="$ac_link"
   8155 case "(($ac_try" in
   8156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8157   *) ac_try_echo=$ac_try;;
   8158 esac
   8159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8160   (eval "$ac_link") 2>conftest.er1
   8161   ac_status=$?
   8162   grep -v '^ *+' conftest.er1 >conftest.err
   8163   rm -f conftest.er1
   8164   cat conftest.err >&5
   8165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8166   (exit $ac_status); } && {
   8167 	 test -z "$ac_c_werror_flag" ||
   8168 	 test ! -s conftest.err
   8169        } && test -s conftest$ac_exeext &&
   8170        $as_test_x conftest$ac_exeext; then
   8171   ac_cv_lib_s_authenticate=yes
   8172 else
   8173   echo "$as_me: failed program was:" >&5
   8174 sed 's/^/| /' conftest.$ac_ext >&5
   8175 
   8176 	ac_cv_lib_s_authenticate=no
   8177 fi
   8178 
   8179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8180       conftest$ac_exeext conftest.$ac_ext
   8181 LIBS=$ac_check_lib_save_LIBS
   8182 fi
   8183 { echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
   8184 echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6; }
   8185 if test $ac_cv_lib_s_authenticate = yes; then
   8186    cat >>confdefs.h <<\_ACEOF
   8187 #define WITH_AIXAUTHENTICATE 1
   8188 _ACEOF
   8189 
   8190 				LIBS="$LIBS -ls"
   8191 
   8192 fi
   8193 
   8194 
   8195 fi
   8196 
   8197 		{ echo "$as_me:$LINENO: checking whether authenticate is declared" >&5
   8198 echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6; }
   8199 if test "${ac_cv_have_decl_authenticate+set}" = set; then
   8200   echo $ECHO_N "(cached) $ECHO_C" >&6
   8201 else
   8202   cat >conftest.$ac_ext <<_ACEOF
   8203 /* confdefs.h.  */
   8204 _ACEOF
   8205 cat confdefs.h >>conftest.$ac_ext
   8206 cat >>conftest.$ac_ext <<_ACEOF
   8207 /* end confdefs.h.  */
   8208 #include <usersec.h>
   8209 
   8210 int
   8211 main ()
   8212 {
   8213 #ifndef authenticate
   8214   (void) authenticate;
   8215 #endif
   8216 
   8217   ;
   8218   return 0;
   8219 }
   8220 _ACEOF
   8221 rm -f conftest.$ac_objext
   8222 if { (ac_try="$ac_compile"
   8223 case "(($ac_try" in
   8224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8225   *) ac_try_echo=$ac_try;;
   8226 esac
   8227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8228   (eval "$ac_compile") 2>conftest.er1
   8229   ac_status=$?
   8230   grep -v '^ *+' conftest.er1 >conftest.err
   8231   rm -f conftest.er1
   8232   cat conftest.err >&5
   8233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8234   (exit $ac_status); } && {
   8235 	 test -z "$ac_c_werror_flag" ||
   8236 	 test ! -s conftest.err
   8237        } && test -s conftest.$ac_objext; then
   8238   ac_cv_have_decl_authenticate=yes
   8239 else
   8240   echo "$as_me: failed program was:" >&5
   8241 sed 's/^/| /' conftest.$ac_ext >&5
   8242 
   8243 	ac_cv_have_decl_authenticate=no
   8244 fi
   8245 
   8246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8247 fi
   8248 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5
   8249 echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6; }
   8250 if test $ac_cv_have_decl_authenticate = yes; then
   8251 
   8252 cat >>confdefs.h <<_ACEOF
   8253 #define HAVE_DECL_AUTHENTICATE 1
   8254 _ACEOF
   8255 
   8256 
   8257 else
   8258   cat >>confdefs.h <<_ACEOF
   8259 #define HAVE_DECL_AUTHENTICATE 0
   8260 _ACEOF
   8261 
   8262 
   8263 fi
   8264 { echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5
   8265 echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6; }
   8266 if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then
   8267   echo $ECHO_N "(cached) $ECHO_C" >&6
   8268 else
   8269   cat >conftest.$ac_ext <<_ACEOF
   8270 /* confdefs.h.  */
   8271 _ACEOF
   8272 cat confdefs.h >>conftest.$ac_ext
   8273 cat >>conftest.$ac_ext <<_ACEOF
   8274 /* end confdefs.h.  */
   8275 #include <usersec.h>
   8276 
   8277 int
   8278 main ()
   8279 {
   8280 #ifndef loginrestrictions
   8281   (void) loginrestrictions;
   8282 #endif
   8283 
   8284   ;
   8285   return 0;
   8286 }
   8287 _ACEOF
   8288 rm -f conftest.$ac_objext
   8289 if { (ac_try="$ac_compile"
   8290 case "(($ac_try" in
   8291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8292   *) ac_try_echo=$ac_try;;
   8293 esac
   8294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8295   (eval "$ac_compile") 2>conftest.er1
   8296   ac_status=$?
   8297   grep -v '^ *+' conftest.er1 >conftest.err
   8298   rm -f conftest.er1
   8299   cat conftest.err >&5
   8300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8301   (exit $ac_status); } && {
   8302 	 test -z "$ac_c_werror_flag" ||
   8303 	 test ! -s conftest.err
   8304        } && test -s conftest.$ac_objext; then
   8305   ac_cv_have_decl_loginrestrictions=yes
   8306 else
   8307   echo "$as_me: failed program was:" >&5
   8308 sed 's/^/| /' conftest.$ac_ext >&5
   8309 
   8310 	ac_cv_have_decl_loginrestrictions=no
   8311 fi
   8312 
   8313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8314 fi
   8315 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5
   8316 echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6; }
   8317 if test $ac_cv_have_decl_loginrestrictions = yes; then
   8318 
   8319 cat >>confdefs.h <<_ACEOF
   8320 #define HAVE_DECL_LOGINRESTRICTIONS 1
   8321 _ACEOF
   8322 
   8323 
   8324 else
   8325   cat >>confdefs.h <<_ACEOF
   8326 #define HAVE_DECL_LOGINRESTRICTIONS 0
   8327 _ACEOF
   8328 
   8329 
   8330 fi
   8331 { echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5
   8332 echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6; }
   8333 if test "${ac_cv_have_decl_loginsuccess+set}" = set; then
   8334   echo $ECHO_N "(cached) $ECHO_C" >&6
   8335 else
   8336   cat >conftest.$ac_ext <<_ACEOF
   8337 /* confdefs.h.  */
   8338 _ACEOF
   8339 cat confdefs.h >>conftest.$ac_ext
   8340 cat >>conftest.$ac_ext <<_ACEOF
   8341 /* end confdefs.h.  */
   8342 #include <usersec.h>
   8343 
   8344 int
   8345 main ()
   8346 {
   8347 #ifndef loginsuccess
   8348   (void) loginsuccess;
   8349 #endif
   8350 
   8351   ;
   8352   return 0;
   8353 }
   8354 _ACEOF
   8355 rm -f conftest.$ac_objext
   8356 if { (ac_try="$ac_compile"
   8357 case "(($ac_try" in
   8358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8359   *) ac_try_echo=$ac_try;;
   8360 esac
   8361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8362   (eval "$ac_compile") 2>conftest.er1
   8363   ac_status=$?
   8364   grep -v '^ *+' conftest.er1 >conftest.err
   8365   rm -f conftest.er1
   8366   cat conftest.err >&5
   8367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8368   (exit $ac_status); } && {
   8369 	 test -z "$ac_c_werror_flag" ||
   8370 	 test ! -s conftest.err
   8371        } && test -s conftest.$ac_objext; then
   8372   ac_cv_have_decl_loginsuccess=yes
   8373 else
   8374   echo "$as_me: failed program was:" >&5
   8375 sed 's/^/| /' conftest.$ac_ext >&5
   8376 
   8377 	ac_cv_have_decl_loginsuccess=no
   8378 fi
   8379 
   8380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8381 fi
   8382 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5
   8383 echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6; }
   8384 if test $ac_cv_have_decl_loginsuccess = yes; then
   8385 
   8386 cat >>confdefs.h <<_ACEOF
   8387 #define HAVE_DECL_LOGINSUCCESS 1
   8388 _ACEOF
   8389 
   8390 
   8391 else
   8392   cat >>confdefs.h <<_ACEOF
   8393 #define HAVE_DECL_LOGINSUCCESS 0
   8394 _ACEOF
   8395 
   8396 
   8397 fi
   8398 { echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5
   8399 echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6; }
   8400 if test "${ac_cv_have_decl_passwdexpired+set}" = set; then
   8401   echo $ECHO_N "(cached) $ECHO_C" >&6
   8402 else
   8403   cat >conftest.$ac_ext <<_ACEOF
   8404 /* confdefs.h.  */
   8405 _ACEOF
   8406 cat confdefs.h >>conftest.$ac_ext
   8407 cat >>conftest.$ac_ext <<_ACEOF
   8408 /* end confdefs.h.  */
   8409 #include <usersec.h>
   8410 
   8411 int
   8412 main ()
   8413 {
   8414 #ifndef passwdexpired
   8415   (void) passwdexpired;
   8416 #endif
   8417 
   8418   ;
   8419   return 0;
   8420 }
   8421 _ACEOF
   8422 rm -f conftest.$ac_objext
   8423 if { (ac_try="$ac_compile"
   8424 case "(($ac_try" in
   8425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8426   *) ac_try_echo=$ac_try;;
   8427 esac
   8428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8429   (eval "$ac_compile") 2>conftest.er1
   8430   ac_status=$?
   8431   grep -v '^ *+' conftest.er1 >conftest.err
   8432   rm -f conftest.er1
   8433   cat conftest.err >&5
   8434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8435   (exit $ac_status); } && {
   8436 	 test -z "$ac_c_werror_flag" ||
   8437 	 test ! -s conftest.err
   8438        } && test -s conftest.$ac_objext; then
   8439   ac_cv_have_decl_passwdexpired=yes
   8440 else
   8441   echo "$as_me: failed program was:" >&5
   8442 sed 's/^/| /' conftest.$ac_ext >&5
   8443 
   8444 	ac_cv_have_decl_passwdexpired=no
   8445 fi
   8446 
   8447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8448 fi
   8449 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5
   8450 echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6; }
   8451 if test $ac_cv_have_decl_passwdexpired = yes; then
   8452 
   8453 cat >>confdefs.h <<_ACEOF
   8454 #define HAVE_DECL_PASSWDEXPIRED 1
   8455 _ACEOF
   8456 
   8457 
   8458 else
   8459   cat >>confdefs.h <<_ACEOF
   8460 #define HAVE_DECL_PASSWDEXPIRED 0
   8461 _ACEOF
   8462 
   8463 
   8464 fi
   8465 { echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5
   8466 echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6; }
   8467 if test "${ac_cv_have_decl_setauthdb+set}" = set; then
   8468   echo $ECHO_N "(cached) $ECHO_C" >&6
   8469 else
   8470   cat >conftest.$ac_ext <<_ACEOF
   8471 /* confdefs.h.  */
   8472 _ACEOF
   8473 cat confdefs.h >>conftest.$ac_ext
   8474 cat >>conftest.$ac_ext <<_ACEOF
   8475 /* end confdefs.h.  */
   8476 #include <usersec.h>
   8477 
   8478 int
   8479 main ()
   8480 {
   8481 #ifndef setauthdb
   8482   (void) setauthdb;
   8483 #endif
   8484 
   8485   ;
   8486   return 0;
   8487 }
   8488 _ACEOF
   8489 rm -f conftest.$ac_objext
   8490 if { (ac_try="$ac_compile"
   8491 case "(($ac_try" in
   8492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8493   *) ac_try_echo=$ac_try;;
   8494 esac
   8495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8496   (eval "$ac_compile") 2>conftest.er1
   8497   ac_status=$?
   8498   grep -v '^ *+' conftest.er1 >conftest.err
   8499   rm -f conftest.er1
   8500   cat conftest.err >&5
   8501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8502   (exit $ac_status); } && {
   8503 	 test -z "$ac_c_werror_flag" ||
   8504 	 test ! -s conftest.err
   8505        } && test -s conftest.$ac_objext; then
   8506   ac_cv_have_decl_setauthdb=yes
   8507 else
   8508   echo "$as_me: failed program was:" >&5
   8509 sed 's/^/| /' conftest.$ac_ext >&5
   8510 
   8511 	ac_cv_have_decl_setauthdb=no
   8512 fi
   8513 
   8514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8515 fi
   8516 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5
   8517 echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6; }
   8518 if test $ac_cv_have_decl_setauthdb = yes; then
   8519 
   8520 cat >>confdefs.h <<_ACEOF
   8521 #define HAVE_DECL_SETAUTHDB 1
   8522 _ACEOF
   8523 
   8524 
   8525 else
   8526   cat >>confdefs.h <<_ACEOF
   8527 #define HAVE_DECL_SETAUTHDB 0
   8528 _ACEOF
   8529 
   8530 
   8531 fi
   8532 
   8533 
   8534 		{ echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5
   8535 echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6; }
   8536 if test "${ac_cv_have_decl_loginfailed+set}" = set; then
   8537   echo $ECHO_N "(cached) $ECHO_C" >&6
   8538 else
   8539   cat >conftest.$ac_ext <<_ACEOF
   8540 /* confdefs.h.  */
   8541 _ACEOF
   8542 cat confdefs.h >>conftest.$ac_ext
   8543 cat >>conftest.$ac_ext <<_ACEOF
   8544 /* end confdefs.h.  */
   8545 #include <usersec.h>
   8546 
   8547 
   8548 int
   8549 main ()
   8550 {
   8551 #ifndef loginfailed
   8552   (void) loginfailed;
   8553 #endif
   8554 
   8555   ;
   8556   return 0;
   8557 }
   8558 _ACEOF
   8559 rm -f conftest.$ac_objext
   8560 if { (ac_try="$ac_compile"
   8561 case "(($ac_try" in
   8562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8563   *) ac_try_echo=$ac_try;;
   8564 esac
   8565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8566   (eval "$ac_compile") 2>conftest.er1
   8567   ac_status=$?
   8568   grep -v '^ *+' conftest.er1 >conftest.err
   8569   rm -f conftest.er1
   8570   cat conftest.err >&5
   8571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8572   (exit $ac_status); } && {
   8573 	 test -z "$ac_c_werror_flag" ||
   8574 	 test ! -s conftest.err
   8575        } && test -s conftest.$ac_objext; then
   8576   ac_cv_have_decl_loginfailed=yes
   8577 else
   8578   echo "$as_me: failed program was:" >&5
   8579 sed 's/^/| /' conftest.$ac_ext >&5
   8580 
   8581 	ac_cv_have_decl_loginfailed=no
   8582 fi
   8583 
   8584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8585 fi
   8586 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5
   8587 echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6; }
   8588 if test $ac_cv_have_decl_loginfailed = yes; then
   8589 
   8590 cat >>confdefs.h <<_ACEOF
   8591 #define HAVE_DECL_LOGINFAILED 1
   8592 _ACEOF
   8593 
   8594 { echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5
   8595 echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6; }
   8596 	    cat >conftest.$ac_ext <<_ACEOF
   8597 /* confdefs.h.  */
   8598 _ACEOF
   8599 cat confdefs.h >>conftest.$ac_ext
   8600 cat >>conftest.$ac_ext <<_ACEOF
   8601 /* end confdefs.h.  */
   8602  #include <usersec.h>
   8603 int
   8604 main ()
   8605 {
   8606  (void)loginfailed("user","host","tty",0);
   8607   ;
   8608   return 0;
   8609 }
   8610 _ACEOF
   8611 rm -f conftest.$ac_objext
   8612 if { (ac_try="$ac_compile"
   8613 case "(($ac_try" in
   8614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8615   *) ac_try_echo=$ac_try;;
   8616 esac
   8617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8618   (eval "$ac_compile") 2>conftest.er1
   8619   ac_status=$?
   8620   grep -v '^ *+' conftest.er1 >conftest.err
   8621   rm -f conftest.er1
   8622   cat conftest.err >&5
   8623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8624   (exit $ac_status); } && {
   8625 	 test -z "$ac_c_werror_flag" ||
   8626 	 test ! -s conftest.err
   8627        } && test -s conftest.$ac_objext; then
   8628   { echo "$as_me:$LINENO: result: yes" >&5
   8629 echo "${ECHO_T}yes" >&6; }
   8630 
   8631 cat >>confdefs.h <<\_ACEOF
   8632 #define AIX_LOGINFAILED_4ARG 1
   8633 _ACEOF
   8634 
   8635 else
   8636   echo "$as_me: failed program was:" >&5
   8637 sed 's/^/| /' conftest.$ac_ext >&5
   8638 
   8639 	{ echo "$as_me:$LINENO: result: no" >&5
   8640 echo "${ECHO_T}no" >&6; }
   8641 
   8642 fi
   8643 
   8644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8645 else
   8646   cat >>confdefs.h <<_ACEOF
   8647 #define HAVE_DECL_LOGINFAILED 0
   8648 _ACEOF
   8649 
   8650 
   8651 fi
   8652 
   8653 
   8654 
   8655 
   8656 for ac_func in getgrset setauthdb
   8657 do
   8658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   8659 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   8660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   8661 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   8662   echo $ECHO_N "(cached) $ECHO_C" >&6
   8663 else
   8664   cat >conftest.$ac_ext <<_ACEOF
   8665 /* confdefs.h.  */
   8666 _ACEOF
   8667 cat confdefs.h >>conftest.$ac_ext
   8668 cat >>conftest.$ac_ext <<_ACEOF
   8669 /* end confdefs.h.  */
   8670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   8671    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   8672 #define $ac_func innocuous_$ac_func
   8673 
   8674 /* System header to define __stub macros and hopefully few prototypes,
   8675     which can conflict with char $ac_func (); below.
   8676     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   8677     <limits.h> exists even on freestanding compilers.  */
   8678 
   8679 #ifdef __STDC__
   8680 # include <limits.h>
   8681 #else
   8682 # include <assert.h>
   8683 #endif
   8684 
   8685 #undef $ac_func
   8686 
   8687 /* Override any GCC internal prototype to avoid an error.
   8688    Use char because int might match the return type of a GCC
   8689    builtin and then its argument prototype would still apply.  */
   8690 #ifdef __cplusplus
   8691 extern "C"
   8692 #endif
   8693 char $ac_func ();
   8694 /* The GNU C library defines this for functions which it implements
   8695     to always fail with ENOSYS.  Some functions are actually named
   8696     something starting with __ and the normal name is an alias.  */
   8697 #if defined __stub_$ac_func || defined __stub___$ac_func
   8698 choke me
   8699 #endif
   8700 
   8701 int
   8702 main ()
   8703 {
   8704 return $ac_func ();
   8705   ;
   8706   return 0;
   8707 }
   8708 _ACEOF
   8709 rm -f conftest.$ac_objext conftest$ac_exeext
   8710 if { (ac_try="$ac_link"
   8711 case "(($ac_try" in
   8712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8713   *) ac_try_echo=$ac_try;;
   8714 esac
   8715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8716   (eval "$ac_link") 2>conftest.er1
   8717   ac_status=$?
   8718   grep -v '^ *+' conftest.er1 >conftest.err
   8719   rm -f conftest.er1
   8720   cat conftest.err >&5
   8721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8722   (exit $ac_status); } && {
   8723 	 test -z "$ac_c_werror_flag" ||
   8724 	 test ! -s conftest.err
   8725        } && test -s conftest$ac_exeext &&
   8726        $as_test_x conftest$ac_exeext; then
   8727   eval "$as_ac_var=yes"
   8728 else
   8729   echo "$as_me: failed program was:" >&5
   8730 sed 's/^/| /' conftest.$ac_ext >&5
   8731 
   8732 	eval "$as_ac_var=no"
   8733 fi
   8734 
   8735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8736       conftest$ac_exeext conftest.$ac_ext
   8737 fi
   8738 ac_res=`eval echo '${'$as_ac_var'}'`
   8739 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   8740 echo "${ECHO_T}$ac_res" >&6; }
   8741 if test `eval echo '${'$as_ac_var'}'` = yes; then
   8742   cat >>confdefs.h <<_ACEOF
   8743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   8744 _ACEOF
   8745 
   8746 fi
   8747 done
   8748 
   8749 	{ echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
   8750 echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
   8751 if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
   8752   echo $ECHO_N "(cached) $ECHO_C" >&6
   8753 else
   8754   cat >conftest.$ac_ext <<_ACEOF
   8755 /* confdefs.h.  */
   8756 _ACEOF
   8757 cat confdefs.h >>conftest.$ac_ext
   8758 cat >>conftest.$ac_ext <<_ACEOF
   8759 /* end confdefs.h.  */
   8760  #include <limits.h>
   8761 	      #include <fcntl.h>
   8762 
   8763 
   8764 int
   8765 main ()
   8766 {
   8767 #ifndef F_CLOSEM
   8768   (void) F_CLOSEM;
   8769 #endif
   8770 
   8771   ;
   8772   return 0;
   8773 }
   8774 _ACEOF
   8775 rm -f conftest.$ac_objext
   8776 if { (ac_try="$ac_compile"
   8777 case "(($ac_try" in
   8778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8779   *) ac_try_echo=$ac_try;;
   8780 esac
   8781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8782   (eval "$ac_compile") 2>conftest.er1
   8783   ac_status=$?
   8784   grep -v '^ *+' conftest.er1 >conftest.err
   8785   rm -f conftest.er1
   8786   cat conftest.err >&5
   8787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8788   (exit $ac_status); } && {
   8789 	 test -z "$ac_c_werror_flag" ||
   8790 	 test ! -s conftest.err
   8791        } && test -s conftest.$ac_objext; then
   8792   ac_cv_have_decl_F_CLOSEM=yes
   8793 else
   8794   echo "$as_me: failed program was:" >&5
   8795 sed 's/^/| /' conftest.$ac_ext >&5
   8796 
   8797 	ac_cv_have_decl_F_CLOSEM=no
   8798 fi
   8799 
   8800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8801 fi
   8802 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
   8803 echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
   8804 if test $ac_cv_have_decl_F_CLOSEM = yes; then
   8805 
   8806 cat >>confdefs.h <<\_ACEOF
   8807 #define HAVE_FCNTL_CLOSEM 1
   8808 _ACEOF
   8809 
   8810 fi
   8811 
   8812 	check_for_aix_broken_getaddrinfo=1
   8813 
   8814 cat >>confdefs.h <<\_ACEOF
   8815 #define BROKEN_REALPATH 1
   8816 _ACEOF
   8817 
   8818 
   8819 cat >>confdefs.h <<\_ACEOF
   8820 #define SETEUID_BREAKS_SETUID 1
   8821 _ACEOF
   8822 
   8823 
   8824 cat >>confdefs.h <<\_ACEOF
   8825 #define BROKEN_SETREUID 1
   8826 _ACEOF
   8827 
   8828 
   8829 cat >>confdefs.h <<\_ACEOF
   8830 #define BROKEN_SETREGID 1
   8831 _ACEOF
   8832 
   8833 
   8834 cat >>confdefs.h <<\_ACEOF
   8835 #define DISABLE_LASTLOG 1
   8836 _ACEOF
   8837 
   8838 
   8839 cat >>confdefs.h <<\_ACEOF
   8840 #define LOGIN_NEEDS_UTMPX 1
   8841 _ACEOF
   8842 
   8843 
   8844 cat >>confdefs.h <<\_ACEOF
   8845 #define SPT_TYPE SPT_REUSEARGV
   8846 _ACEOF
   8847 
   8848 
   8849 cat >>confdefs.h <<\_ACEOF
   8850 #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
   8851 _ACEOF
   8852 
   8853 
   8854 cat >>confdefs.h <<\_ACEOF
   8855 #define PTY_ZEROREAD 1
   8856 _ACEOF
   8857 
   8858 
   8859 cat >>confdefs.h <<\_ACEOF
   8860 #define PLATFORM_SYS_DIR_UID 2
   8861 _ACEOF
   8862 
   8863 	;;
   8864 *-*-android*)
   8865 
   8866 cat >>confdefs.h <<\_ACEOF
   8867 #define DISABLE_UTMP 1
   8868 _ACEOF
   8869 
   8870 
   8871 cat >>confdefs.h <<\_ACEOF
   8872 #define DISABLE_WTMP 1
   8873 _ACEOF
   8874 
   8875 	;;
   8876 *-*-cygwin*)
   8877 	check_for_libcrypt_later=1
   8878 	LIBS="$LIBS /usr/lib/textreadmode.o"
   8879 
   8880 cat >>confdefs.h <<\_ACEOF
   8881 #define HAVE_CYGWIN 1
   8882 _ACEOF
   8883 
   8884 
   8885 cat >>confdefs.h <<\_ACEOF
   8886 #define USE_PIPES 1
   8887 _ACEOF
   8888 
   8889 
   8890 cat >>confdefs.h <<\_ACEOF
   8891 #define DISABLE_SHADOW 1
   8892 _ACEOF
   8893 
   8894 
   8895 cat >>confdefs.h <<\_ACEOF
   8896 #define NO_X11_UNIX_SOCKETS 1
   8897 _ACEOF
   8898 
   8899 
   8900 cat >>confdefs.h <<\_ACEOF
   8901 #define NO_IPPORT_RESERVED_CONCEPT 1
   8902 _ACEOF
   8903 
   8904 
   8905 cat >>confdefs.h <<\_ACEOF
   8906 #define DISABLE_FD_PASSING 1
   8907 _ACEOF
   8908 
   8909 
   8910 cat >>confdefs.h <<\_ACEOF
   8911 #define SSH_IOBUFSZ 65535
   8912 _ACEOF
   8913 
   8914 
   8915 cat >>confdefs.h <<\_ACEOF
   8916 #define FILESYSTEM_NO_BACKSLASH 1
   8917 _ACEOF
   8918 
   8919 	# Cygwin defines optargs, optargs as declspec(dllimport) for historical
   8920 	# reasons which cause compile warnings, so we disable those warnings.
   8921 	{
   8922 	{ echo "$as_me:$LINENO: checking if $CC supports compile flag -Wno-attributes" >&5
   8923 echo $ECHO_N "checking if $CC supports compile flag -Wno-attributes... $ECHO_C" >&6; }
   8924 	saved_CFLAGS="$CFLAGS"
   8925 	CFLAGS="$CFLAGS $WERROR -Wno-attributes"
   8926 	_define_flag=""
   8927 	test "x$_define_flag" = "x" && _define_flag="-Wno-attributes"
   8928 	cat >conftest.$ac_ext <<_ACEOF
   8929 /* confdefs.h.  */
   8930 _ACEOF
   8931 cat confdefs.h >>conftest.$ac_ext
   8932 cat >>conftest.$ac_ext <<_ACEOF
   8933 /* end confdefs.h.  */
   8934 
   8935 #include <stdlib.h>
   8936 #include <stdio.h>
   8937 int main(int argc, char **argv) {
   8938 	/* Some math to catch -ftrapv problems in the toolchain */
   8939 	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
   8940 	float l = i * 2.1;
   8941 	double m = l / 0.5;
   8942 	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
   8943 	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
   8944 	exit(0);
   8945 }
   8946 
   8947 _ACEOF
   8948 rm -f conftest.$ac_objext
   8949 if { (ac_try="$ac_compile"
   8950 case "(($ac_try" in
   8951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8952   *) ac_try_echo=$ac_try;;
   8953 esac
   8954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8955   (eval "$ac_compile") 2>conftest.er1
   8956   ac_status=$?
   8957   grep -v '^ *+' conftest.er1 >conftest.err
   8958   rm -f conftest.er1
   8959   cat conftest.err >&5
   8960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8961   (exit $ac_status); } && {
   8962 	 test -z "$ac_c_werror_flag" ||
   8963 	 test ! -s conftest.err
   8964        } && test -s conftest.$ac_objext; then
   8965 
   8966 if `grep -i "unrecognized option" conftest.err >/dev/null`
   8967 then
   8968 		{ echo "$as_me:$LINENO: result: no" >&5
   8969 echo "${ECHO_T}no" >&6; }
   8970 		CFLAGS="$saved_CFLAGS"
   8971 else
   8972 		{ echo "$as_me:$LINENO: result: yes" >&5
   8973 echo "${ECHO_T}yes" >&6; }
   8974 		 CFLAGS="$saved_CFLAGS $_define_flag"
   8975 fi
   8976 else
   8977   echo "$as_me: failed program was:" >&5
   8978 sed 's/^/| /' conftest.$ac_ext >&5
   8979 
   8980 	 { echo "$as_me:$LINENO: result: no" >&5
   8981 echo "${ECHO_T}no" >&6; }
   8982 		  CFLAGS="$saved_CFLAGS"
   8983 
   8984 fi
   8985 
   8986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8987 }
   8988 	;;
   8989 *-*-dgux*)
   8990 
   8991 cat >>confdefs.h <<\_ACEOF
   8992 #define IP_TOS_IS_BROKEN 1
   8993 _ACEOF
   8994 
   8995 	cat >>confdefs.h <<\_ACEOF
   8996 #define SETEUID_BREAKS_SETUID 1
   8997 _ACEOF
   8998 
   8999 	cat >>confdefs.h <<\_ACEOF
   9000 #define BROKEN_SETREUID 1
   9001 _ACEOF
   9002 
   9003 	cat >>confdefs.h <<\_ACEOF
   9004 #define BROKEN_SETREGID 1
   9005 _ACEOF
   9006 
   9007 	;;
   9008 *-*-darwin*)
   9009 	use_pie=auto
   9010 	{ echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
   9011 echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6; }
   9012 	if test "$cross_compiling" = yes; then
   9013   { echo "$as_me:$LINENO: result: assume it is working" >&5
   9014 echo "${ECHO_T}assume it is working" >&6; }
   9015 else
   9016   cat >conftest.$ac_ext <<_ACEOF
   9017 /* confdefs.h.  */
   9018 _ACEOF
   9019 cat confdefs.h >>conftest.$ac_ext
   9020 cat >>conftest.$ac_ext <<_ACEOF
   9021 /* end confdefs.h.  */
   9022  #include <mach-o/dyld.h>
   9023 main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
   9024 		exit(0);
   9025 	else
   9026 		exit(1);
   9027 }
   9028 
   9029 _ACEOF
   9030 rm -f conftest$ac_exeext
   9031 if { (ac_try="$ac_link"
   9032 case "(($ac_try" in
   9033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9034   *) ac_try_echo=$ac_try;;
   9035 esac
   9036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9037   (eval "$ac_link") 2>&5
   9038   ac_status=$?
   9039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9040   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   9041   { (case "(($ac_try" in
   9042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9043   *) ac_try_echo=$ac_try;;
   9044 esac
   9045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9046   (eval "$ac_try") 2>&5
   9047   ac_status=$?
   9048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9049   (exit $ac_status); }; }; then
   9050   { echo "$as_me:$LINENO: result: working" >&5
   9051 echo "${ECHO_T}working" >&6; }
   9052 else
   9053   echo "$as_me: program exited with status $ac_status" >&5
   9054 echo "$as_me: failed program was:" >&5
   9055 sed 's/^/| /' conftest.$ac_ext >&5
   9056 
   9057 ( exit $ac_status )
   9058 { echo "$as_me:$LINENO: result: buggy" >&5
   9059 echo "${ECHO_T}buggy" >&6; }
   9060 
   9061 cat >>confdefs.h <<\_ACEOF
   9062 #define BROKEN_GETADDRINFO 1
   9063 _ACEOF
   9064 
   9065 
   9066 fi
   9067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   9068 fi
   9069 
   9070 
   9071 	cat >>confdefs.h <<\_ACEOF
   9072 #define SETEUID_BREAKS_SETUID 1
   9073 _ACEOF
   9074 
   9075 	cat >>confdefs.h <<\_ACEOF
   9076 #define BROKEN_SETREUID 1
   9077 _ACEOF
   9078 
   9079 	cat >>confdefs.h <<\_ACEOF
   9080 #define BROKEN_SETREGID 1
   9081 _ACEOF
   9082 
   9083 
   9084 cat >>confdefs.h <<\_ACEOF
   9085 #define BROKEN_GLOB 1
   9086 _ACEOF
   9087 
   9088 
   9089 cat >>confdefs.h <<_ACEOF
   9090 #define BIND_8_COMPAT 1
   9091 _ACEOF
   9092 
   9093 
   9094 cat >>confdefs.h <<\_ACEOF
   9095 #define SSH_TUN_FREEBSD 1
   9096 _ACEOF
   9097 
   9098 
   9099 cat >>confdefs.h <<\_ACEOF
   9100 #define SSH_TUN_COMPAT_AF 1
   9101 _ACEOF
   9102 
   9103 
   9104 cat >>confdefs.h <<\_ACEOF
   9105 #define SSH_TUN_PREPEND_AF 1
   9106 _ACEOF
   9107 
   9108 
   9109 	{ echo "$as_me:$LINENO: checking whether AU_IPv4 is declared" >&5
   9110 echo $ECHO_N "checking whether AU_IPv4 is declared... $ECHO_C" >&6; }
   9111 if test "${ac_cv_have_decl_AU_IPv4+set}" = set; then
   9112   echo $ECHO_N "(cached) $ECHO_C" >&6
   9113 else
   9114   cat >conftest.$ac_ext <<_ACEOF
   9115 /* confdefs.h.  */
   9116 _ACEOF
   9117 cat confdefs.h >>conftest.$ac_ext
   9118 cat >>conftest.$ac_ext <<_ACEOF
   9119 /* end confdefs.h.  */
   9120 $ac_includes_default
   9121 int
   9122 main ()
   9123 {
   9124 #ifndef AU_IPv4
   9125   (void) AU_IPv4;
   9126 #endif
   9127 
   9128   ;
   9129   return 0;
   9130 }
   9131 _ACEOF
   9132 rm -f conftest.$ac_objext
   9133 if { (ac_try="$ac_compile"
   9134 case "(($ac_try" in
   9135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9136   *) ac_try_echo=$ac_try;;
   9137 esac
   9138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9139   (eval "$ac_compile") 2>conftest.er1
   9140   ac_status=$?
   9141   grep -v '^ *+' conftest.er1 >conftest.err
   9142   rm -f conftest.er1
   9143   cat conftest.err >&5
   9144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9145   (exit $ac_status); } && {
   9146 	 test -z "$ac_c_werror_flag" ||
   9147 	 test ! -s conftest.err
   9148        } && test -s conftest.$ac_objext; then
   9149   ac_cv_have_decl_AU_IPv4=yes
   9150 else
   9151   echo "$as_me: failed program was:" >&5
   9152 sed 's/^/| /' conftest.$ac_ext >&5
   9153 
   9154 	ac_cv_have_decl_AU_IPv4=no
   9155 fi
   9156 
   9157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9158 fi
   9159 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_AU_IPv4" >&5
   9160 echo "${ECHO_T}$ac_cv_have_decl_AU_IPv4" >&6; }
   9161 if test $ac_cv_have_decl_AU_IPv4 = yes; then
   9162   :
   9163 else
   9164 
   9165 cat >>confdefs.h <<\_ACEOF
   9166 #define AU_IPv4 0
   9167 _ACEOF
   9168 
   9169 	    #include <bsm/audit.h>
   9170 
   9171 cat >>confdefs.h <<\_ACEOF
   9172 #define LASTLOG_WRITE_PUTUTXLINE 1
   9173 _ACEOF
   9174 
   9175 
   9176 fi
   9177 
   9178 
   9179 cat >>confdefs.h <<\_ACEOF
   9180 #define SPT_TYPE SPT_REUSEARGV
   9181 _ACEOF
   9182 
   9183 
   9184 for ac_func in sandbox_init
   9185 do
   9186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   9187 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   9188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   9189 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   9190   echo $ECHO_N "(cached) $ECHO_C" >&6
   9191 else
   9192   cat >conftest.$ac_ext <<_ACEOF
   9193 /* confdefs.h.  */
   9194 _ACEOF
   9195 cat confdefs.h >>conftest.$ac_ext
   9196 cat >>conftest.$ac_ext <<_ACEOF
   9197 /* end confdefs.h.  */
   9198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   9199    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   9200 #define $ac_func innocuous_$ac_func
   9201 
   9202 /* System header to define __stub macros and hopefully few prototypes,
   9203     which can conflict with char $ac_func (); below.
   9204     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   9205     <limits.h> exists even on freestanding compilers.  */
   9206 
   9207 #ifdef __STDC__
   9208 # include <limits.h>
   9209 #else
   9210 # include <assert.h>
   9211 #endif
   9212 
   9213 #undef $ac_func
   9214 
   9215 /* Override any GCC internal prototype to avoid an error.
   9216    Use char because int might match the return type of a GCC
   9217    builtin and then its argument prototype would still apply.  */
   9218 #ifdef __cplusplus
   9219 extern "C"
   9220 #endif
   9221 char $ac_func ();
   9222 /* The GNU C library defines this for functions which it implements
   9223     to always fail with ENOSYS.  Some functions are actually named
   9224     something starting with __ and the normal name is an alias.  */
   9225 #if defined __stub_$ac_func || defined __stub___$ac_func
   9226 choke me
   9227 #endif
   9228 
   9229 int
   9230 main ()
   9231 {
   9232 return $ac_func ();
   9233   ;
   9234   return 0;
   9235 }
   9236 _ACEOF
   9237 rm -f conftest.$ac_objext conftest$ac_exeext
   9238 if { (ac_try="$ac_link"
   9239 case "(($ac_try" in
   9240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9241   *) ac_try_echo=$ac_try;;
   9242 esac
   9243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9244   (eval "$ac_link") 2>conftest.er1
   9245   ac_status=$?
   9246   grep -v '^ *+' conftest.er1 >conftest.err
   9247   rm -f conftest.er1
   9248   cat conftest.err >&5
   9249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9250   (exit $ac_status); } && {
   9251 	 test -z "$ac_c_werror_flag" ||
   9252 	 test ! -s conftest.err
   9253        } && test -s conftest$ac_exeext &&
   9254        $as_test_x conftest$ac_exeext; then
   9255   eval "$as_ac_var=yes"
   9256 else
   9257   echo "$as_me: failed program was:" >&5
   9258 sed 's/^/| /' conftest.$ac_ext >&5
   9259 
   9260 	eval "$as_ac_var=no"
   9261 fi
   9262 
   9263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   9264       conftest$ac_exeext conftest.$ac_ext
   9265 fi
   9266 ac_res=`eval echo '${'$as_ac_var'}'`
   9267 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   9268 echo "${ECHO_T}$ac_res" >&6; }
   9269 if test `eval echo '${'$as_ac_var'}'` = yes; then
   9270   cat >>confdefs.h <<_ACEOF
   9271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   9272 _ACEOF
   9273 
   9274 fi
   9275 done
   9276 
   9277 
   9278 for ac_header in sandbox.h
   9279 do
   9280 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   9281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   9282   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   9283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   9284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   9285   echo $ECHO_N "(cached) $ECHO_C" >&6
   9286 fi
   9287 ac_res=`eval echo '${'$as_ac_Header'}'`
   9288 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   9289 echo "${ECHO_T}$ac_res" >&6; }
   9290 else
   9291   # Is the header compilable?
   9292 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   9293 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   9294 cat >conftest.$ac_ext <<_ACEOF
   9295 /* confdefs.h.  */
   9296 _ACEOF
   9297 cat confdefs.h >>conftest.$ac_ext
   9298 cat >>conftest.$ac_ext <<_ACEOF
   9299 /* end confdefs.h.  */
   9300 $ac_includes_default
   9301 #include <$ac_header>
   9302 _ACEOF
   9303 rm -f conftest.$ac_objext
   9304 if { (ac_try="$ac_compile"
   9305 case "(($ac_try" in
   9306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9307   *) ac_try_echo=$ac_try;;
   9308 esac
   9309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9310   (eval "$ac_compile") 2>conftest.er1
   9311   ac_status=$?
   9312   grep -v '^ *+' conftest.er1 >conftest.err
   9313   rm -f conftest.er1
   9314   cat conftest.err >&5
   9315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9316   (exit $ac_status); } && {
   9317 	 test -z "$ac_c_werror_flag" ||
   9318 	 test ! -s conftest.err
   9319        } && test -s conftest.$ac_objext; then
   9320   ac_header_compiler=yes
   9321 else
   9322   echo "$as_me: failed program was:" >&5
   9323 sed 's/^/| /' conftest.$ac_ext >&5
   9324 
   9325 	ac_header_compiler=no
   9326 fi
   9327 
   9328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9329 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   9330 echo "${ECHO_T}$ac_header_compiler" >&6; }
   9331 
   9332 # Is the header present?
   9333 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   9334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   9335 cat >conftest.$ac_ext <<_ACEOF
   9336 /* confdefs.h.  */
   9337 _ACEOF
   9338 cat confdefs.h >>conftest.$ac_ext
   9339 cat >>conftest.$ac_ext <<_ACEOF
   9340 /* end confdefs.h.  */
   9341 #include <$ac_header>
   9342 _ACEOF
   9343 if { (ac_try="$ac_cpp conftest.$ac_ext"
   9344 case "(($ac_try" in
   9345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9346   *) ac_try_echo=$ac_try;;
   9347 esac
   9348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9349   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   9350   ac_status=$?
   9351   grep -v '^ *+' conftest.er1 >conftest.err
   9352   rm -f conftest.er1
   9353   cat conftest.err >&5
   9354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9355   (exit $ac_status); } >/dev/null && {
   9356 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   9357 	 test ! -s conftest.err
   9358        }; then
   9359   ac_header_preproc=yes
   9360 else
   9361   echo "$as_me: failed program was:" >&5
   9362 sed 's/^/| /' conftest.$ac_ext >&5
   9363 
   9364   ac_header_preproc=no
   9365 fi
   9366 
   9367 rm -f conftest.err conftest.$ac_ext
   9368 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   9369 echo "${ECHO_T}$ac_header_preproc" >&6; }
   9370 
   9371 # So?  What about this header?
   9372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   9373   yes:no: )
   9374     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   9375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   9376     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   9377 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   9378     ac_header_preproc=yes
   9379     ;;
   9380   no:yes:* )
   9381     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   9382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   9383     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   9384 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   9385     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   9386 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   9387     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   9388 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   9389     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   9390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   9391     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   9392 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   9393     ( cat <<\_ASBOX
   9394 ## ------------------------------------------- ##
   9395 ## Report this to openssh-unix-dev (at] mindrot.org ##
   9396 ## ------------------------------------------- ##
   9397 _ASBOX
   9398      ) | sed "s/^/$as_me: WARNING:     /" >&2
   9399     ;;
   9400 esac
   9401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   9402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   9403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   9404   echo $ECHO_N "(cached) $ECHO_C" >&6
   9405 else
   9406   eval "$as_ac_Header=\$ac_header_preproc"
   9407 fi
   9408 ac_res=`eval echo '${'$as_ac_Header'}'`
   9409 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   9410 echo "${ECHO_T}$ac_res" >&6; }
   9411 
   9412 fi
   9413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   9414   cat >>confdefs.h <<_ACEOF
   9415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   9416 _ACEOF
   9417 
   9418 fi
   9419 
   9420 done
   9421 
   9422 	;;
   9423 *-*-dragonfly*)
   9424 	SSHDLIBS="$SSHDLIBS -lcrypt"
   9425 	TEST_MALLOC_OPTIONS="AFGJPRX"
   9426 	;;
   9427 *-*-haiku*)
   9428     LIBS="$LIBS -lbsd "
   9429 
   9430 { echo "$as_me:$LINENO: checking for socket in -lnetwork" >&5
   9431 echo $ECHO_N "checking for socket in -lnetwork... $ECHO_C" >&6; }
   9432 if test "${ac_cv_lib_network_socket+set}" = set; then
   9433   echo $ECHO_N "(cached) $ECHO_C" >&6
   9434 else
   9435   ac_check_lib_save_LIBS=$LIBS
   9436 LIBS="-lnetwork  $LIBS"
   9437 cat >conftest.$ac_ext <<_ACEOF
   9438 /* confdefs.h.  */
   9439 _ACEOF
   9440 cat confdefs.h >>conftest.$ac_ext
   9441 cat >>conftest.$ac_ext <<_ACEOF
   9442 /* end confdefs.h.  */
   9443 
   9444 /* Override any GCC internal prototype to avoid an error.
   9445    Use char because int might match the return type of a GCC
   9446    builtin and then its argument prototype would still apply.  */
   9447 #ifdef __cplusplus
   9448 extern "C"
   9449 #endif
   9450 char socket ();
   9451 int
   9452 main ()
   9453 {
   9454 return socket ();
   9455   ;
   9456   return 0;
   9457 }
   9458 _ACEOF
   9459 rm -f conftest.$ac_objext conftest$ac_exeext
   9460 if { (ac_try="$ac_link"
   9461 case "(($ac_try" in
   9462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9463   *) ac_try_echo=$ac_try;;
   9464 esac
   9465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9466   (eval "$ac_link") 2>conftest.er1
   9467   ac_status=$?
   9468   grep -v '^ *+' conftest.er1 >conftest.err
   9469   rm -f conftest.er1
   9470   cat conftest.err >&5
   9471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9472   (exit $ac_status); } && {
   9473 	 test -z "$ac_c_werror_flag" ||
   9474 	 test ! -s conftest.err
   9475        } && test -s conftest$ac_exeext &&
   9476        $as_test_x conftest$ac_exeext; then
   9477   ac_cv_lib_network_socket=yes
   9478 else
   9479   echo "$as_me: failed program was:" >&5
   9480 sed 's/^/| /' conftest.$ac_ext >&5
   9481 
   9482 	ac_cv_lib_network_socket=no
   9483 fi
   9484 
   9485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   9486       conftest$ac_exeext conftest.$ac_ext
   9487 LIBS=$ac_check_lib_save_LIBS
   9488 fi
   9489 { echo "$as_me:$LINENO: result: $ac_cv_lib_network_socket" >&5
   9490 echo "${ECHO_T}$ac_cv_lib_network_socket" >&6; }
   9491 if test $ac_cv_lib_network_socket = yes; then
   9492   cat >>confdefs.h <<_ACEOF
   9493 #define HAVE_LIBNETWORK 1
   9494 _ACEOF
   9495 
   9496   LIBS="-lnetwork $LIBS"
   9497 
   9498 fi
   9499 
   9500     cat >>confdefs.h <<\_ACEOF
   9501 #define HAVE_U_INT64_T 1
   9502 _ACEOF
   9503 
   9504     MANTYPE=man
   9505     ;;
   9506 *-*-hpux*)
   9507 	# first we define all of the options common to all HP-UX releases
   9508 	CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
   9509 	IPADDR_IN_DISPLAY=yes
   9510 	cat >>confdefs.h <<\_ACEOF
   9511 #define USE_PIPES 1
   9512 _ACEOF
   9513 
   9514 
   9515 cat >>confdefs.h <<\_ACEOF
   9516 #define LOGIN_NO_ENDOPT 1
   9517 _ACEOF
   9518 
   9519 	cat >>confdefs.h <<\_ACEOF
   9520 #define LOGIN_NEEDS_UTMPX 1
   9521 _ACEOF
   9522 
   9523 
   9524 cat >>confdefs.h <<\_ACEOF
   9525 #define LOCKED_PASSWD_STRING "*"
   9526 _ACEOF
   9527 
   9528 	cat >>confdefs.h <<\_ACEOF
   9529 #define SPT_TYPE SPT_PSTAT
   9530 _ACEOF
   9531 
   9532 
   9533 cat >>confdefs.h <<\_ACEOF
   9534 #define PLATFORM_SYS_DIR_UID 2
   9535 _ACEOF
   9536 
   9537 	maildir="/var/mail"
   9538 	LIBS="$LIBS -lsec"
   9539 
   9540 { echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
   9541 echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6; }
   9542 if test "${ac_cv_lib_xnet_t_error+set}" = set; then
   9543   echo $ECHO_N "(cached) $ECHO_C" >&6
   9544 else
   9545   ac_check_lib_save_LIBS=$LIBS
   9546 LIBS="-lxnet  $LIBS"
   9547 cat >conftest.$ac_ext <<_ACEOF
   9548 /* confdefs.h.  */
   9549 _ACEOF
   9550 cat confdefs.h >>conftest.$ac_ext
   9551 cat >>conftest.$ac_ext <<_ACEOF
   9552 /* end confdefs.h.  */
   9553 
   9554 /* Override any GCC internal prototype to avoid an error.
   9555    Use char because int might match the return type of a GCC
   9556    builtin and then its argument prototype would still apply.  */
   9557 #ifdef __cplusplus
   9558 extern "C"
   9559 #endif
   9560 char t_error ();
   9561 int
   9562 main ()
   9563 {
   9564 return t_error ();
   9565   ;
   9566   return 0;
   9567 }
   9568 _ACEOF
   9569 rm -f conftest.$ac_objext conftest$ac_exeext
   9570 if { (ac_try="$ac_link"
   9571 case "(($ac_try" in
   9572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9573   *) ac_try_echo=$ac_try;;
   9574 esac
   9575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9576   (eval "$ac_link") 2>conftest.er1
   9577   ac_status=$?
   9578   grep -v '^ *+' conftest.er1 >conftest.err
   9579   rm -f conftest.er1
   9580   cat conftest.err >&5
   9581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9582   (exit $ac_status); } && {
   9583 	 test -z "$ac_c_werror_flag" ||
   9584 	 test ! -s conftest.err
   9585        } && test -s conftest$ac_exeext &&
   9586        $as_test_x conftest$ac_exeext; then
   9587   ac_cv_lib_xnet_t_error=yes
   9588 else
   9589   echo "$as_me: failed program was:" >&5
   9590 sed 's/^/| /' conftest.$ac_ext >&5
   9591 
   9592 	ac_cv_lib_xnet_t_error=no
   9593 fi
   9594 
   9595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   9596       conftest$ac_exeext conftest.$ac_ext
   9597 LIBS=$ac_check_lib_save_LIBS
   9598 fi
   9599 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
   9600 echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6; }
   9601 if test $ac_cv_lib_xnet_t_error = yes; then
   9602   cat >>confdefs.h <<_ACEOF
   9603 #define HAVE_LIBXNET 1
   9604 _ACEOF
   9605 
   9606   LIBS="-lxnet $LIBS"
   9607 
   9608 else
   9609   { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
   9610 echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
   9611    { (exit 1); exit 1; }; }
   9612 fi
   9613 
   9614 
   9615 	# next, we define all of the options specific to major releases
   9616 	case "$host" in
   9617 	*-*-hpux10*)
   9618 		if test -z "$GCC"; then
   9619 			CFLAGS="$CFLAGS -Ae"
   9620 		fi
   9621 		;;
   9622 	*-*-hpux11*)
   9623 
   9624 cat >>confdefs.h <<\_ACEOF
   9625 #define PAM_SUN_CODEBASE 1
   9626 _ACEOF
   9627 
   9628 
   9629 cat >>confdefs.h <<\_ACEOF
   9630 #define DISABLE_UTMP 1
   9631 _ACEOF
   9632 
   9633 
   9634 cat >>confdefs.h <<\_ACEOF
   9635 #define USE_BTMP 1
   9636 _ACEOF
   9637 
   9638 		check_for_hpux_broken_getaddrinfo=1
   9639 		check_for_conflicting_getspnam=1
   9640 		;;
   9641 	esac
   9642 
   9643 	# lastly, we define options specific to minor releases
   9644 	case "$host" in
   9645 	*-*-hpux10.26)
   9646 
   9647 cat >>confdefs.h <<\_ACEOF
   9648 #define HAVE_SECUREWARE 1
   9649 _ACEOF
   9650 
   9651 		disable_ptmx_check=yes
   9652 		LIBS="$LIBS -lsecpw"
   9653 		;;
   9654 	esac
   9655 	;;
   9656 *-*-irix5*)
   9657 	PATH="$PATH:/usr/etc"
   9658 
   9659 cat >>confdefs.h <<\_ACEOF
   9660 #define BROKEN_INET_NTOA 1
   9661 _ACEOF
   9662 
   9663 	cat >>confdefs.h <<\_ACEOF
   9664 #define SETEUID_BREAKS_SETUID 1
   9665 _ACEOF
   9666 
   9667 	cat >>confdefs.h <<\_ACEOF
   9668 #define BROKEN_SETREUID 1
   9669 _ACEOF
   9670 
   9671 	cat >>confdefs.h <<\_ACEOF
   9672 #define BROKEN_SETREGID 1
   9673 _ACEOF
   9674 
   9675 
   9676 cat >>confdefs.h <<\_ACEOF
   9677 #define WITH_ABBREV_NO_TTY 1
   9678 _ACEOF
   9679 
   9680 	cat >>confdefs.h <<\_ACEOF
   9681 #define LOCKED_PASSWD_STRING "*LK*"
   9682 _ACEOF
   9683 
   9684 	;;
   9685 *-*-irix6*)
   9686 	PATH="$PATH:/usr/etc"
   9687 
   9688 cat >>confdefs.h <<\_ACEOF
   9689 #define WITH_IRIX_ARRAY 1
   9690 _ACEOF
   9691 
   9692 
   9693 cat >>confdefs.h <<\_ACEOF
   9694 #define WITH_IRIX_PROJECT 1
   9695 _ACEOF
   9696 
   9697 
   9698 cat >>confdefs.h <<\_ACEOF
   9699 #define WITH_IRIX_AUDIT 1
   9700 _ACEOF
   9701 
   9702 	{ echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
   9703 echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6; }
   9704 if test "${ac_cv_func_jlimit_startjob+set}" = set; then
   9705   echo $ECHO_N "(cached) $ECHO_C" >&6
   9706 else
   9707   cat >conftest.$ac_ext <<_ACEOF
   9708 /* confdefs.h.  */
   9709 _ACEOF
   9710 cat confdefs.h >>conftest.$ac_ext
   9711 cat >>conftest.$ac_ext <<_ACEOF
   9712 /* end confdefs.h.  */
   9713 /* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob.
   9714    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   9715 #define jlimit_startjob innocuous_jlimit_startjob
   9716 
   9717 /* System header to define __stub macros and hopefully few prototypes,
   9718     which can conflict with char jlimit_startjob (); below.
   9719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   9720     <limits.h> exists even on freestanding compilers.  */
   9721 
   9722 #ifdef __STDC__
   9723 # include <limits.h>
   9724 #else
   9725 # include <assert.h>
   9726 #endif
   9727 
   9728 #undef jlimit_startjob
   9729 
   9730 /* Override any GCC internal prototype to avoid an error.
   9731    Use char because int might match the return type of a GCC
   9732    builtin and then its argument prototype would still apply.  */
   9733 #ifdef __cplusplus
   9734 extern "C"
   9735 #endif
   9736 char jlimit_startjob ();
   9737 /* The GNU C library defines this for functions which it implements
   9738     to always fail with ENOSYS.  Some functions are actually named
   9739     something starting with __ and the normal name is an alias.  */
   9740 #if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob
   9741 choke me
   9742 #endif
   9743 
   9744 int
   9745 main ()
   9746 {
   9747 return jlimit_startjob ();
   9748   ;
   9749   return 0;
   9750 }
   9751 _ACEOF
   9752 rm -f conftest.$ac_objext conftest$ac_exeext
   9753 if { (ac_try="$ac_link"
   9754 case "(($ac_try" in
   9755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9756   *) ac_try_echo=$ac_try;;
   9757 esac
   9758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9759   (eval "$ac_link") 2>conftest.er1
   9760   ac_status=$?
   9761   grep -v '^ *+' conftest.er1 >conftest.err
   9762   rm -f conftest.er1
   9763   cat conftest.err >&5
   9764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9765   (exit $ac_status); } && {
   9766 	 test -z "$ac_c_werror_flag" ||
   9767 	 test ! -s conftest.err
   9768        } && test -s conftest$ac_exeext &&
   9769        $as_test_x conftest$ac_exeext; then
   9770   ac_cv_func_jlimit_startjob=yes
   9771 else
   9772   echo "$as_me: failed program was:" >&5
   9773 sed 's/^/| /' conftest.$ac_ext >&5
   9774 
   9775 	ac_cv_func_jlimit_startjob=no
   9776 fi
   9777 
   9778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   9779       conftest$ac_exeext conftest.$ac_ext
   9780 fi
   9781 { echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
   9782 echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6; }
   9783 if test $ac_cv_func_jlimit_startjob = yes; then
   9784 
   9785 cat >>confdefs.h <<\_ACEOF
   9786 #define WITH_IRIX_JOBS 1
   9787 _ACEOF
   9788 
   9789 fi
   9790 
   9791 	cat >>confdefs.h <<\_ACEOF
   9792 #define BROKEN_INET_NTOA 1
   9793 _ACEOF
   9794 
   9795 	cat >>confdefs.h <<\_ACEOF
   9796 #define SETEUID_BREAKS_SETUID 1
   9797 _ACEOF
   9798 
   9799 	cat >>confdefs.h <<\_ACEOF
   9800 #define BROKEN_SETREUID 1
   9801 _ACEOF
   9802 
   9803 	cat >>confdefs.h <<\_ACEOF
   9804 #define BROKEN_SETREGID 1
   9805 _ACEOF
   9806 
   9807 
   9808 cat >>confdefs.h <<\_ACEOF
   9809 #define BROKEN_UPDWTMPX 1
   9810 _ACEOF
   9811 
   9812 	cat >>confdefs.h <<\_ACEOF
   9813 #define WITH_ABBREV_NO_TTY 1
   9814 _ACEOF
   9815 
   9816 	cat >>confdefs.h <<\_ACEOF
   9817 #define LOCKED_PASSWD_STRING "*LK*"
   9818 _ACEOF
   9819 
   9820 	;;
   9821 *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
   9822 	check_for_libcrypt_later=1
   9823 	cat >>confdefs.h <<\_ACEOF
   9824 #define PAM_TTY_KLUDGE 1
   9825 _ACEOF
   9826 
   9827 	cat >>confdefs.h <<\_ACEOF
   9828 #define LOCKED_PASSWD_PREFIX "!"
   9829 _ACEOF
   9830 
   9831 	cat >>confdefs.h <<\_ACEOF
   9832 #define SPT_TYPE SPT_REUSEARGV
   9833 _ACEOF
   9834 
   9835 
   9836 cat >>confdefs.h <<\_ACEOF
   9837 #define _PATH_BTMP "/var/log/btmp"
   9838 _ACEOF
   9839 
   9840 
   9841 cat >>confdefs.h <<\_ACEOF
   9842 #define USE_BTMP 1
   9843 _ACEOF
   9844 
   9845 	;;
   9846 *-*-linux*)
   9847 	no_dev_ptmx=1
   9848 	use_pie=auto
   9849 	check_for_libcrypt_later=1
   9850 	check_for_openpty_ctty_bug=1
   9851 
   9852 cat >>confdefs.h <<\_ACEOF
   9853 #define PAM_TTY_KLUDGE 1
   9854 _ACEOF
   9855 
   9856 
   9857 cat >>confdefs.h <<\_ACEOF
   9858 #define LOCKED_PASSWD_PREFIX "!"
   9859 _ACEOF
   9860 
   9861 	cat >>confdefs.h <<\_ACEOF
   9862 #define SPT_TYPE SPT_REUSEARGV
   9863 _ACEOF
   9864 
   9865 
   9866 cat >>confdefs.h <<\_ACEOF
   9867 #define LINK_OPNOTSUPP_ERRNO EPERM
   9868 _ACEOF
   9869 
   9870 
   9871 cat >>confdefs.h <<\_ACEOF
   9872 #define _PATH_BTMP "/var/log/btmp"
   9873 _ACEOF
   9874 
   9875 	cat >>confdefs.h <<\_ACEOF
   9876 #define USE_BTMP 1
   9877 _ACEOF
   9878 
   9879 
   9880 cat >>confdefs.h <<\_ACEOF
   9881 #define LINUX_OOM_ADJUST 1
   9882 _ACEOF
   9883 
   9884 	inet6_default_4in6=yes
   9885 	case `uname -r` in
   9886 	1.*|2.0.*)
   9887 
   9888 cat >>confdefs.h <<\_ACEOF
   9889 #define BROKEN_CMSG_TYPE 1
   9890 _ACEOF
   9891 
   9892 		;;
   9893 	esac
   9894 	# tun(4) forwarding compat code
   9895 
   9896 for ac_header in linux/if_tun.h
   9897 do
   9898 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   9899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   9900   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   9901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   9902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   9903   echo $ECHO_N "(cached) $ECHO_C" >&6
   9904 fi
   9905 ac_res=`eval echo '${'$as_ac_Header'}'`
   9906 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   9907 echo "${ECHO_T}$ac_res" >&6; }
   9908 else
   9909   # Is the header compilable?
   9910 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   9911 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   9912 cat >conftest.$ac_ext <<_ACEOF
   9913 /* confdefs.h.  */
   9914 _ACEOF
   9915 cat confdefs.h >>conftest.$ac_ext
   9916 cat >>conftest.$ac_ext <<_ACEOF
   9917 /* end confdefs.h.  */
   9918 $ac_includes_default
   9919 #include <$ac_header>
   9920 _ACEOF
   9921 rm -f conftest.$ac_objext
   9922 if { (ac_try="$ac_compile"
   9923 case "(($ac_try" in
   9924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9925   *) ac_try_echo=$ac_try;;
   9926 esac
   9927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9928   (eval "$ac_compile") 2>conftest.er1
   9929   ac_status=$?
   9930   grep -v '^ *+' conftest.er1 >conftest.err
   9931   rm -f conftest.er1
   9932   cat conftest.err >&5
   9933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9934   (exit $ac_status); } && {
   9935 	 test -z "$ac_c_werror_flag" ||
   9936 	 test ! -s conftest.err
   9937        } && test -s conftest.$ac_objext; then
   9938   ac_header_compiler=yes
   9939 else
   9940   echo "$as_me: failed program was:" >&5
   9941 sed 's/^/| /' conftest.$ac_ext >&5
   9942 
   9943 	ac_header_compiler=no
   9944 fi
   9945 
   9946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9947 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   9948 echo "${ECHO_T}$ac_header_compiler" >&6; }
   9949 
   9950 # Is the header present?
   9951 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   9952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   9953 cat >conftest.$ac_ext <<_ACEOF
   9954 /* confdefs.h.  */
   9955 _ACEOF
   9956 cat confdefs.h >>conftest.$ac_ext
   9957 cat >>conftest.$ac_ext <<_ACEOF
   9958 /* end confdefs.h.  */
   9959 #include <$ac_header>
   9960 _ACEOF
   9961 if { (ac_try="$ac_cpp conftest.$ac_ext"
   9962 case "(($ac_try" in
   9963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9964   *) ac_try_echo=$ac_try;;
   9965 esac
   9966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9967   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   9968   ac_status=$?
   9969   grep -v '^ *+' conftest.er1 >conftest.err
   9970   rm -f conftest.er1
   9971   cat conftest.err >&5
   9972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9973   (exit $ac_status); } >/dev/null && {
   9974 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   9975 	 test ! -s conftest.err
   9976        }; then
   9977   ac_header_preproc=yes
   9978 else
   9979   echo "$as_me: failed program was:" >&5
   9980 sed 's/^/| /' conftest.$ac_ext >&5
   9981 
   9982   ac_header_preproc=no
   9983 fi
   9984 
   9985 rm -f conftest.err conftest.$ac_ext
   9986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   9987 echo "${ECHO_T}$ac_header_preproc" >&6; }
   9988 
   9989 # So?  What about this header?
   9990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   9991   yes:no: )
   9992     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   9993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   9994     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   9995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   9996     ac_header_preproc=yes
   9997     ;;
   9998   no:yes:* )
   9999     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   10000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   10001     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   10002 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   10003     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   10004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   10005     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   10006 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   10007     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   10008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   10009     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   10010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   10011     ( cat <<\_ASBOX
   10012 ## ------------------------------------------- ##
   10013 ## Report this to openssh-unix-dev (at] mindrot.org ##
   10014 ## ------------------------------------------- ##
   10015 _ASBOX
   10016      ) | sed "s/^/$as_me: WARNING:     /" >&2
   10017     ;;
   10018 esac
   10019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   10020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   10021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10022   echo $ECHO_N "(cached) $ECHO_C" >&6
   10023 else
   10024   eval "$as_ac_Header=\$ac_header_preproc"
   10025 fi
   10026 ac_res=`eval echo '${'$as_ac_Header'}'`
   10027 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10028 echo "${ECHO_T}$ac_res" >&6; }
   10029 
   10030 fi
   10031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   10032   cat >>confdefs.h <<_ACEOF
   10033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   10034 _ACEOF
   10035 
   10036 fi
   10037 
   10038 done
   10039 
   10040 	if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
   10041 
   10042 cat >>confdefs.h <<\_ACEOF
   10043 #define SSH_TUN_LINUX 1
   10044 _ACEOF
   10045 
   10046 
   10047 cat >>confdefs.h <<\_ACEOF
   10048 #define SSH_TUN_COMPAT_AF 1
   10049 _ACEOF
   10050 
   10051 
   10052 cat >>confdefs.h <<\_ACEOF
   10053 #define SSH_TUN_PREPEND_AF 1
   10054 _ACEOF
   10055 
   10056 	fi
   10057 
   10058 
   10059 
   10060 for ac_header in linux/seccomp.h linux/filter.h linux/audit.h
   10061 do
   10062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   10063 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   10064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   10065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   10066   echo $ECHO_N "(cached) $ECHO_C" >&6
   10067 else
   10068   cat >conftest.$ac_ext <<_ACEOF
   10069 /* confdefs.h.  */
   10070 _ACEOF
   10071 cat confdefs.h >>conftest.$ac_ext
   10072 cat >>conftest.$ac_ext <<_ACEOF
   10073 /* end confdefs.h.  */
   10074 #include <linux/types.h>
   10075 
   10076 #include <$ac_header>
   10077 _ACEOF
   10078 rm -f conftest.$ac_objext
   10079 if { (ac_try="$ac_compile"
   10080 case "(($ac_try" in
   10081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10082   *) ac_try_echo=$ac_try;;
   10083 esac
   10084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10085   (eval "$ac_compile") 2>conftest.er1
   10086   ac_status=$?
   10087   grep -v '^ *+' conftest.er1 >conftest.err
   10088   rm -f conftest.er1
   10089   cat conftest.err >&5
   10090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10091   (exit $ac_status); } && {
   10092 	 test -z "$ac_c_werror_flag" ||
   10093 	 test ! -s conftest.err
   10094        } && test -s conftest.$ac_objext; then
   10095   eval "$as_ac_Header=yes"
   10096 else
   10097   echo "$as_me: failed program was:" >&5
   10098 sed 's/^/| /' conftest.$ac_ext >&5
   10099 
   10100 	eval "$as_ac_Header=no"
   10101 fi
   10102 
   10103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10104 fi
   10105 ac_res=`eval echo '${'$as_ac_Header'}'`
   10106 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10107 echo "${ECHO_T}$ac_res" >&6; }
   10108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   10109   cat >>confdefs.h <<_ACEOF
   10110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   10111 _ACEOF
   10112 
   10113 fi
   10114 
   10115 done
   10116 
   10117 
   10118 for ac_func in prctl
   10119 do
   10120 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   10121 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   10122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   10123 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   10124   echo $ECHO_N "(cached) $ECHO_C" >&6
   10125 else
   10126   cat >conftest.$ac_ext <<_ACEOF
   10127 /* confdefs.h.  */
   10128 _ACEOF
   10129 cat confdefs.h >>conftest.$ac_ext
   10130 cat >>conftest.$ac_ext <<_ACEOF
   10131 /* end confdefs.h.  */
   10132 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   10133    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   10134 #define $ac_func innocuous_$ac_func
   10135 
   10136 /* System header to define __stub macros and hopefully few prototypes,
   10137     which can conflict with char $ac_func (); below.
   10138     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   10139     <limits.h> exists even on freestanding compilers.  */
   10140 
   10141 #ifdef __STDC__
   10142 # include <limits.h>
   10143 #else
   10144 # include <assert.h>
   10145 #endif
   10146 
   10147 #undef $ac_func
   10148 
   10149 /* Override any GCC internal prototype to avoid an error.
   10150    Use char because int might match the return type of a GCC
   10151    builtin and then its argument prototype would still apply.  */
   10152 #ifdef __cplusplus
   10153 extern "C"
   10154 #endif
   10155 char $ac_func ();
   10156 /* The GNU C library defines this for functions which it implements
   10157     to always fail with ENOSYS.  Some functions are actually named
   10158     something starting with __ and the normal name is an alias.  */
   10159 #if defined __stub_$ac_func || defined __stub___$ac_func
   10160 choke me
   10161 #endif
   10162 
   10163 int
   10164 main ()
   10165 {
   10166 return $ac_func ();
   10167   ;
   10168   return 0;
   10169 }
   10170 _ACEOF
   10171 rm -f conftest.$ac_objext conftest$ac_exeext
   10172 if { (ac_try="$ac_link"
   10173 case "(($ac_try" in
   10174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10175   *) ac_try_echo=$ac_try;;
   10176 esac
   10177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10178   (eval "$ac_link") 2>conftest.er1
   10179   ac_status=$?
   10180   grep -v '^ *+' conftest.er1 >conftest.err
   10181   rm -f conftest.er1
   10182   cat conftest.err >&5
   10183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10184   (exit $ac_status); } && {
   10185 	 test -z "$ac_c_werror_flag" ||
   10186 	 test ! -s conftest.err
   10187        } && test -s conftest$ac_exeext &&
   10188        $as_test_x conftest$ac_exeext; then
   10189   eval "$as_ac_var=yes"
   10190 else
   10191   echo "$as_me: failed program was:" >&5
   10192 sed 's/^/| /' conftest.$ac_ext >&5
   10193 
   10194 	eval "$as_ac_var=no"
   10195 fi
   10196 
   10197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   10198       conftest$ac_exeext conftest.$ac_ext
   10199 fi
   10200 ac_res=`eval echo '${'$as_ac_var'}'`
   10201 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10202 echo "${ECHO_T}$ac_res" >&6; }
   10203 if test `eval echo '${'$as_ac_var'}'` = yes; then
   10204   cat >>confdefs.h <<_ACEOF
   10205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   10206 _ACEOF
   10207 
   10208 fi
   10209 done
   10210 
   10211 	{ echo "$as_me:$LINENO: checking for seccomp architecture" >&5
   10212 echo $ECHO_N "checking for seccomp architecture... $ECHO_C" >&6; }
   10213 	seccomp_audit_arch=
   10214 	case "$host" in
   10215 	x86_64-*)
   10216 		seccomp_audit_arch=AUDIT_ARCH_X86_64
   10217 		;;
   10218 	i*86-*)
   10219 		seccomp_audit_arch=AUDIT_ARCH_I386
   10220 		;;
   10221         arm*-*)
   10222 		seccomp_audit_arch=AUDIT_ARCH_ARM
   10223                 ;;
   10224 	esac
   10225 	if test "x$seccomp_audit_arch" != "x" ; then
   10226 		{ echo "$as_me:$LINENO: result: \"$seccomp_audit_arch\"" >&5
   10227 echo "${ECHO_T}\"$seccomp_audit_arch\"" >&6; }
   10228 
   10229 cat >>confdefs.h <<_ACEOF
   10230 #define SECCOMP_AUDIT_ARCH $seccomp_audit_arch
   10231 _ACEOF
   10232 
   10233 	else
   10234 		{ echo "$as_me:$LINENO: result: architecture not supported" >&5
   10235 echo "${ECHO_T}architecture not supported" >&6; }
   10236 	fi
   10237 	;;
   10238 mips-sony-bsd|mips-sony-newsos4)
   10239 
   10240 cat >>confdefs.h <<\_ACEOF
   10241 #define NEED_SETPGRP 1
   10242 _ACEOF
   10243 
   10244 	SONY=1
   10245 	;;
   10246 *-*-netbsd*)
   10247 	check_for_libcrypt_before=1
   10248 	if test "x$withval" != "xno" ; then
   10249 		need_dash_r=1
   10250 	fi
   10251 
   10252 cat >>confdefs.h <<\_ACEOF
   10253 #define SSH_TUN_FREEBSD 1
   10254 _ACEOF
   10255 
   10256 	if test "${ac_cv_header_net_if_tap_h+set}" = set; then
   10257   { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
   10258 echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
   10259 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
   10260   echo $ECHO_N "(cached) $ECHO_C" >&6
   10261 fi
   10262 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
   10263 echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
   10264 else
   10265   # Is the header compilable?
   10266 { echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
   10267 echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
   10268 cat >conftest.$ac_ext <<_ACEOF
   10269 /* confdefs.h.  */
   10270 _ACEOF
   10271 cat confdefs.h >>conftest.$ac_ext
   10272 cat >>conftest.$ac_ext <<_ACEOF
   10273 /* end confdefs.h.  */
   10274 $ac_includes_default
   10275 #include <net/if_tap.h>
   10276 _ACEOF
   10277 rm -f conftest.$ac_objext
   10278 if { (ac_try="$ac_compile"
   10279 case "(($ac_try" in
   10280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10281   *) ac_try_echo=$ac_try;;
   10282 esac
   10283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10284   (eval "$ac_compile") 2>conftest.er1
   10285   ac_status=$?
   10286   grep -v '^ *+' conftest.er1 >conftest.err
   10287   rm -f conftest.er1
   10288   cat conftest.err >&5
   10289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10290   (exit $ac_status); } && {
   10291 	 test -z "$ac_c_werror_flag" ||
   10292 	 test ! -s conftest.err
   10293        } && test -s conftest.$ac_objext; then
   10294   ac_header_compiler=yes
   10295 else
   10296   echo "$as_me: failed program was:" >&5
   10297 sed 's/^/| /' conftest.$ac_ext >&5
   10298 
   10299 	ac_header_compiler=no
   10300 fi
   10301 
   10302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   10304 echo "${ECHO_T}$ac_header_compiler" >&6; }
   10305 
   10306 # Is the header present?
   10307 { echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
   10308 echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
   10309 cat >conftest.$ac_ext <<_ACEOF
   10310 /* confdefs.h.  */
   10311 _ACEOF
   10312 cat confdefs.h >>conftest.$ac_ext
   10313 cat >>conftest.$ac_ext <<_ACEOF
   10314 /* end confdefs.h.  */
   10315 #include <net/if_tap.h>
   10316 _ACEOF
   10317 if { (ac_try="$ac_cpp conftest.$ac_ext"
   10318 case "(($ac_try" in
   10319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10320   *) ac_try_echo=$ac_try;;
   10321 esac
   10322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10323   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   10324   ac_status=$?
   10325   grep -v '^ *+' conftest.er1 >conftest.err
   10326   rm -f conftest.er1
   10327   cat conftest.err >&5
   10328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10329   (exit $ac_status); } >/dev/null && {
   10330 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   10331 	 test ! -s conftest.err
   10332        }; then
   10333   ac_header_preproc=yes
   10334 else
   10335   echo "$as_me: failed program was:" >&5
   10336 sed 's/^/| /' conftest.$ac_ext >&5
   10337 
   10338   ac_header_preproc=no
   10339 fi
   10340 
   10341 rm -f conftest.err conftest.$ac_ext
   10342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   10343 echo "${ECHO_T}$ac_header_preproc" >&6; }
   10344 
   10345 # So?  What about this header?
   10346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   10347   yes:no: )
   10348     { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
   10349 echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   10350     { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
   10351 echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
   10352     ac_header_preproc=yes
   10353     ;;
   10354   no:yes:* )
   10355     { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
   10356 echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
   10357     { echo "$as_me:$LINENO: WARNING: net/if_tap.h:     check for missing prerequisite headers?" >&5
   10358 echo "$as_me: WARNING: net/if_tap.h:     check for missing prerequisite headers?" >&2;}
   10359     { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
   10360 echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
   10361     { echo "$as_me:$LINENO: WARNING: net/if_tap.h:     section \"Present But Cannot Be Compiled\"" >&5
   10362 echo "$as_me: WARNING: net/if_tap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   10363     { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
   10364 echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
   10365     { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
   10366 echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
   10367     ( cat <<\_ASBOX
   10368 ## ------------------------------------------- ##
   10369 ## Report this to openssh-unix-dev (at] mindrot.org ##
   10370 ## ------------------------------------------- ##
   10371 _ASBOX
   10372      ) | sed "s/^/$as_me: WARNING:     /" >&2
   10373     ;;
   10374 esac
   10375 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
   10376 echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
   10377 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
   10378   echo $ECHO_N "(cached) $ECHO_C" >&6
   10379 else
   10380   ac_cv_header_net_if_tap_h=$ac_header_preproc
   10381 fi
   10382 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
   10383 echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
   10384 
   10385 fi
   10386 if test $ac_cv_header_net_if_tap_h = yes; then
   10387   :
   10388 else
   10389 
   10390 cat >>confdefs.h <<\_ACEOF
   10391 #define SSH_TUN_NO_L2 1
   10392 _ACEOF
   10393 
   10394 fi
   10395 
   10396 
   10397 
   10398 cat >>confdefs.h <<\_ACEOF
   10399 #define SSH_TUN_PREPEND_AF 1
   10400 _ACEOF
   10401 
   10402 	TEST_MALLOC_OPTIONS="AJRX"
   10403 
   10404 cat >>confdefs.h <<\_ACEOF
   10405 #define BROKEN_STRNVIS 1
   10406 _ACEOF
   10407 
   10408 
   10409 cat >>confdefs.h <<\_ACEOF
   10410 #define BROKEN_READ_COMPARISON 1
   10411 _ACEOF
   10412 
   10413 	;;
   10414 *-*-freebsd*)
   10415 	check_for_libcrypt_later=1
   10416 
   10417 cat >>confdefs.h <<\_ACEOF
   10418 #define LOCKED_PASSWD_PREFIX "*LOCKED*"
   10419 _ACEOF
   10420 
   10421 
   10422 cat >>confdefs.h <<\_ACEOF
   10423 #define SSH_TUN_FREEBSD 1
   10424 _ACEOF
   10425 
   10426 	if test "${ac_cv_header_net_if_tap_h+set}" = set; then
   10427   { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
   10428 echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
   10429 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
   10430   echo $ECHO_N "(cached) $ECHO_C" >&6
   10431 fi
   10432 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
   10433 echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
   10434 else
   10435   # Is the header compilable?
   10436 { echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
   10437 echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
   10438 cat >conftest.$ac_ext <<_ACEOF
   10439 /* confdefs.h.  */
   10440 _ACEOF
   10441 cat confdefs.h >>conftest.$ac_ext
   10442 cat >>conftest.$ac_ext <<_ACEOF
   10443 /* end confdefs.h.  */
   10444 $ac_includes_default
   10445 #include <net/if_tap.h>
   10446 _ACEOF
   10447 rm -f conftest.$ac_objext
   10448 if { (ac_try="$ac_compile"
   10449 case "(($ac_try" in
   10450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10451   *) ac_try_echo=$ac_try;;
   10452 esac
   10453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10454   (eval "$ac_compile") 2>conftest.er1
   10455   ac_status=$?
   10456   grep -v '^ *+' conftest.er1 >conftest.err
   10457   rm -f conftest.er1
   10458   cat conftest.err >&5
   10459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10460   (exit $ac_status); } && {
   10461 	 test -z "$ac_c_werror_flag" ||
   10462 	 test ! -s conftest.err
   10463        } && test -s conftest.$ac_objext; then
   10464   ac_header_compiler=yes
   10465 else
   10466   echo "$as_me: failed program was:" >&5
   10467 sed 's/^/| /' conftest.$ac_ext >&5
   10468 
   10469 	ac_header_compiler=no
   10470 fi
   10471 
   10472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10473 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   10474 echo "${ECHO_T}$ac_header_compiler" >&6; }
   10475 
   10476 # Is the header present?
   10477 { echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
   10478 echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
   10479 cat >conftest.$ac_ext <<_ACEOF
   10480 /* confdefs.h.  */
   10481 _ACEOF
   10482 cat confdefs.h >>conftest.$ac_ext
   10483 cat >>conftest.$ac_ext <<_ACEOF
   10484 /* end confdefs.h.  */
   10485 #include <net/if_tap.h>
   10486 _ACEOF
   10487 if { (ac_try="$ac_cpp conftest.$ac_ext"
   10488 case "(($ac_try" in
   10489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10490   *) ac_try_echo=$ac_try;;
   10491 esac
   10492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10493   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   10494   ac_status=$?
   10495   grep -v '^ *+' conftest.er1 >conftest.err
   10496   rm -f conftest.er1
   10497   cat conftest.err >&5
   10498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10499   (exit $ac_status); } >/dev/null && {
   10500 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   10501 	 test ! -s conftest.err
   10502        }; then
   10503   ac_header_preproc=yes
   10504 else
   10505   echo "$as_me: failed program was:" >&5
   10506 sed 's/^/| /' conftest.$ac_ext >&5
   10507 
   10508   ac_header_preproc=no
   10509 fi
   10510 
   10511 rm -f conftest.err conftest.$ac_ext
   10512 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   10513 echo "${ECHO_T}$ac_header_preproc" >&6; }
   10514 
   10515 # So?  What about this header?
   10516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   10517   yes:no: )
   10518     { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
   10519 echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   10520     { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
   10521 echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
   10522     ac_header_preproc=yes
   10523     ;;
   10524   no:yes:* )
   10525     { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
   10526 echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
   10527     { echo "$as_me:$LINENO: WARNING: net/if_tap.h:     check for missing prerequisite headers?" >&5
   10528 echo "$as_me: WARNING: net/if_tap.h:     check for missing prerequisite headers?" >&2;}
   10529     { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
   10530 echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
   10531     { echo "$as_me:$LINENO: WARNING: net/if_tap.h:     section \"Present But Cannot Be Compiled\"" >&5
   10532 echo "$as_me: WARNING: net/if_tap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   10533     { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
   10534 echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
   10535     { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
   10536 echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
   10537     ( cat <<\_ASBOX
   10538 ## ------------------------------------------- ##
   10539 ## Report this to openssh-unix-dev (at] mindrot.org ##
   10540 ## ------------------------------------------- ##
   10541 _ASBOX
   10542      ) | sed "s/^/$as_me: WARNING:     /" >&2
   10543     ;;
   10544 esac
   10545 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
   10546 echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
   10547 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
   10548   echo $ECHO_N "(cached) $ECHO_C" >&6
   10549 else
   10550   ac_cv_header_net_if_tap_h=$ac_header_preproc
   10551 fi
   10552 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
   10553 echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
   10554 
   10555 fi
   10556 if test $ac_cv_header_net_if_tap_h = yes; then
   10557   :
   10558 else
   10559 
   10560 cat >>confdefs.h <<\_ACEOF
   10561 #define SSH_TUN_NO_L2 1
   10562 _ACEOF
   10563 
   10564 fi
   10565 
   10566 
   10567 
   10568 cat >>confdefs.h <<\_ACEOF
   10569 #define BROKEN_GLOB 1
   10570 _ACEOF
   10571 
   10572 
   10573 cat >>confdefs.h <<\_ACEOF
   10574 #define BROKEN_STRNVIS 1
   10575 _ACEOF
   10576 
   10577 	TEST_MALLOC_OPTIONS="AJRX"
   10578 	# Preauth crypto occasionally uses file descriptors for crypto offload
   10579 	# and will crash if they cannot be opened.
   10580 
   10581 cat >>confdefs.h <<\_ACEOF
   10582 #define SANDBOX_SKIP_RLIMIT_NOFILE 1
   10583 _ACEOF
   10584 
   10585 	;;
   10586 *-*-bsdi*)
   10587 	cat >>confdefs.h <<\_ACEOF
   10588 #define SETEUID_BREAKS_SETUID 1
   10589 _ACEOF
   10590 
   10591 	cat >>confdefs.h <<\_ACEOF
   10592 #define BROKEN_SETREUID 1
   10593 _ACEOF
   10594 
   10595 	cat >>confdefs.h <<\_ACEOF
   10596 #define BROKEN_SETREGID 1
   10597 _ACEOF
   10598 
   10599 	;;
   10600 *-next-*)
   10601 	conf_lastlog_location="/usr/adm/lastlog"
   10602 	conf_utmp_location=/etc/utmp
   10603 	conf_wtmp_location=/usr/adm/wtmp
   10604 	maildir=/usr/spool/mail
   10605 
   10606 cat >>confdefs.h <<\_ACEOF
   10607 #define HAVE_NEXT 1
   10608 _ACEOF
   10609 
   10610 	cat >>confdefs.h <<\_ACEOF
   10611 #define BROKEN_REALPATH 1
   10612 _ACEOF
   10613 
   10614 	cat >>confdefs.h <<\_ACEOF
   10615 #define USE_PIPES 1
   10616 _ACEOF
   10617 
   10618 
   10619 cat >>confdefs.h <<\_ACEOF
   10620 #define BROKEN_SAVED_UIDS 1
   10621 _ACEOF
   10622 
   10623 	;;
   10624 *-*-openbsd*)
   10625 	use_pie=auto
   10626 
   10627 cat >>confdefs.h <<\_ACEOF
   10628 #define HAVE_ATTRIBUTE__SENTINEL__ 1
   10629 _ACEOF
   10630 
   10631 
   10632 cat >>confdefs.h <<\_ACEOF
   10633 #define HAVE_ATTRIBUTE__BOUNDED__ 1
   10634 _ACEOF
   10635 
   10636 
   10637 cat >>confdefs.h <<\_ACEOF
   10638 #define SSH_TUN_OPENBSD 1
   10639 _ACEOF
   10640 
   10641 
   10642 cat >>confdefs.h <<\_ACEOF
   10643 #define SYSLOG_R_SAFE_IN_SIGHAND 1
   10644 _ACEOF
   10645 
   10646 	TEST_MALLOC_OPTIONS="AFGJPRX"
   10647 	;;
   10648 *-*-solaris*)
   10649 	if test "x$withval" != "xno" ; then
   10650 		need_dash_r=1
   10651 	fi
   10652 	cat >>confdefs.h <<\_ACEOF
   10653 #define PAM_SUN_CODEBASE 1
   10654 _ACEOF
   10655 
   10656 	cat >>confdefs.h <<\_ACEOF
   10657 #define LOGIN_NEEDS_UTMPX 1
   10658 _ACEOF
   10659 
   10660 
   10661 cat >>confdefs.h <<\_ACEOF
   10662 #define LOGIN_NEEDS_TERM 1
   10663 _ACEOF
   10664 
   10665 	cat >>confdefs.h <<\_ACEOF
   10666 #define PAM_TTY_KLUDGE 1
   10667 _ACEOF
   10668 
   10669 
   10670 cat >>confdefs.h <<\_ACEOF
   10671 #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
   10672 _ACEOF
   10673 
   10674 	cat >>confdefs.h <<\_ACEOF
   10675 #define LOCKED_PASSWD_STRING "*LK*"
   10676 _ACEOF
   10677 
   10678 	# Pushing STREAMS modules will cause sshd to acquire a controlling tty.
   10679 
   10680 cat >>confdefs.h <<\_ACEOF
   10681 #define SSHD_ACQUIRES_CTTY 1
   10682 _ACEOF
   10683 
   10684 
   10685 cat >>confdefs.h <<\_ACEOF
   10686 #define PASSWD_NEEDS_USERNAME 1
   10687 _ACEOF
   10688 
   10689 
   10690 cat >>confdefs.h <<\_ACEOF
   10691 #define BROKEN_TCGETATTR_ICANON 1
   10692 _ACEOF
   10693 
   10694 	external_path_file=/etc/default/login
   10695 	# hardwire lastlog location (can't detect it on some versions)
   10696 	conf_lastlog_location="/var/adm/lastlog"
   10697 	{ echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
   10698 echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; }
   10699 	sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
   10700 	if test "$sol2ver" -ge 8; then
   10701 		{ echo "$as_me:$LINENO: result: yes" >&5
   10702 echo "${ECHO_T}yes" >&6; }
   10703 		cat >>confdefs.h <<\_ACEOF
   10704 #define DISABLE_UTMP 1
   10705 _ACEOF
   10706 
   10707 
   10708 cat >>confdefs.h <<\_ACEOF
   10709 #define DISABLE_WTMP 1
   10710 _ACEOF
   10711 
   10712 	else
   10713 		{ echo "$as_me:$LINENO: result: no" >&5
   10714 echo "${ECHO_T}no" >&6; }
   10715 	fi
   10716 
   10717 # Check whether --with-solaris-contracts was given.
   10718 if test "${with_solaris_contracts+set}" = set; then
   10719   withval=$with_solaris_contracts;
   10720 		{ echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5
   10721 echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; }
   10722 if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then
   10723   echo $ECHO_N "(cached) $ECHO_C" >&6
   10724 else
   10725   ac_check_lib_save_LIBS=$LIBS
   10726 LIBS="-lcontract  $LIBS"
   10727 cat >conftest.$ac_ext <<_ACEOF
   10728 /* confdefs.h.  */
   10729 _ACEOF
   10730 cat confdefs.h >>conftest.$ac_ext
   10731 cat >>conftest.$ac_ext <<_ACEOF
   10732 /* end confdefs.h.  */
   10733 
   10734 /* Override any GCC internal prototype to avoid an error.
   10735    Use char because int might match the return type of a GCC
   10736    builtin and then its argument prototype would still apply.  */
   10737 #ifdef __cplusplus
   10738 extern "C"
   10739 #endif
   10740 char ct_tmpl_activate ();
   10741 int
   10742 main ()
   10743 {
   10744 return ct_tmpl_activate ();
   10745   ;
   10746   return 0;
   10747 }
   10748 _ACEOF
   10749 rm -f conftest.$ac_objext conftest$ac_exeext
   10750 if { (ac_try="$ac_link"
   10751 case "(($ac_try" in
   10752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10753   *) ac_try_echo=$ac_try;;
   10754 esac
   10755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10756   (eval "$ac_link") 2>conftest.er1
   10757   ac_status=$?
   10758   grep -v '^ *+' conftest.er1 >conftest.err
   10759   rm -f conftest.er1
   10760   cat conftest.err >&5
   10761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10762   (exit $ac_status); } && {
   10763 	 test -z "$ac_c_werror_flag" ||
   10764 	 test ! -s conftest.err
   10765        } && test -s conftest$ac_exeext &&
   10766        $as_test_x conftest$ac_exeext; then
   10767   ac_cv_lib_contract_ct_tmpl_activate=yes
   10768 else
   10769   echo "$as_me: failed program was:" >&5
   10770 sed 's/^/| /' conftest.$ac_ext >&5
   10771 
   10772 	ac_cv_lib_contract_ct_tmpl_activate=no
   10773 fi
   10774 
   10775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   10776       conftest$ac_exeext conftest.$ac_ext
   10777 LIBS=$ac_check_lib_save_LIBS
   10778 fi
   10779 { echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
   10780 echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
   10781 if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then
   10782 
   10783 cat >>confdefs.h <<\_ACEOF
   10784 #define USE_SOLARIS_PROCESS_CONTRACTS 1
   10785 _ACEOF
   10786 
   10787 			  SSHDLIBS="$SSHDLIBS -lcontract"
   10788 			  SPC_MSG="yes"
   10789 fi
   10790 
   10791 
   10792 fi
   10793 
   10794 
   10795 # Check whether --with-solaris-projects was given.
   10796 if test "${with_solaris_projects+set}" = set; then
   10797   withval=$with_solaris_projects;
   10798 		{ echo "$as_me:$LINENO: checking for setproject in -lproject" >&5
   10799 echo $ECHO_N "checking for setproject in -lproject... $ECHO_C" >&6; }
   10800 if test "${ac_cv_lib_project_setproject+set}" = set; then
   10801   echo $ECHO_N "(cached) $ECHO_C" >&6
   10802 else
   10803   ac_check_lib_save_LIBS=$LIBS
   10804 LIBS="-lproject  $LIBS"
   10805 cat >conftest.$ac_ext <<_ACEOF
   10806 /* confdefs.h.  */
   10807 _ACEOF
   10808 cat confdefs.h >>conftest.$ac_ext
   10809 cat >>conftest.$ac_ext <<_ACEOF
   10810 /* end confdefs.h.  */
   10811 
   10812 /* Override any GCC internal prototype to avoid an error.
   10813    Use char because int might match the return type of a GCC
   10814    builtin and then its argument prototype would still apply.  */
   10815 #ifdef __cplusplus
   10816 extern "C"
   10817 #endif
   10818 char setproject ();
   10819 int
   10820 main ()
   10821 {
   10822 return setproject ();
   10823   ;
   10824   return 0;
   10825 }
   10826 _ACEOF
   10827 rm -f conftest.$ac_objext conftest$ac_exeext
   10828 if { (ac_try="$ac_link"
   10829 case "(($ac_try" in
   10830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10831   *) ac_try_echo=$ac_try;;
   10832 esac
   10833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10834   (eval "$ac_link") 2>conftest.er1
   10835   ac_status=$?
   10836   grep -v '^ *+' conftest.er1 >conftest.err
   10837   rm -f conftest.er1
   10838   cat conftest.err >&5
   10839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10840   (exit $ac_status); } && {
   10841 	 test -z "$ac_c_werror_flag" ||
   10842 	 test ! -s conftest.err
   10843        } && test -s conftest$ac_exeext &&
   10844        $as_test_x conftest$ac_exeext; then
   10845   ac_cv_lib_project_setproject=yes
   10846 else
   10847   echo "$as_me: failed program was:" >&5
   10848 sed 's/^/| /' conftest.$ac_ext >&5
   10849 
   10850 	ac_cv_lib_project_setproject=no
   10851 fi
   10852 
   10853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   10854       conftest$ac_exeext conftest.$ac_ext
   10855 LIBS=$ac_check_lib_save_LIBS
   10856 fi
   10857 { echo "$as_me:$LINENO: result: $ac_cv_lib_project_setproject" >&5
   10858 echo "${ECHO_T}$ac_cv_lib_project_setproject" >&6; }
   10859 if test $ac_cv_lib_project_setproject = yes; then
   10860 
   10861 cat >>confdefs.h <<\_ACEOF
   10862 #define USE_SOLARIS_PROJECTS 1
   10863 _ACEOF
   10864 
   10865 			SSHDLIBS="$SSHDLIBS -lproject"
   10866 			SP_MSG="yes"
   10867 fi
   10868 
   10869 
   10870 fi
   10871 
   10872 	TEST_SHELL=$SHELL	# let configure find us a capable shell
   10873 	;;
   10874 *-*-sunos4*)
   10875 	CPPFLAGS="$CPPFLAGS -DSUNOS4"
   10876 
   10877 for ac_func in getpwanam
   10878 do
   10879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   10880 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   10881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   10882 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   10883   echo $ECHO_N "(cached) $ECHO_C" >&6
   10884 else
   10885   cat >conftest.$ac_ext <<_ACEOF
   10886 /* confdefs.h.  */
   10887 _ACEOF
   10888 cat confdefs.h >>conftest.$ac_ext
   10889 cat >>conftest.$ac_ext <<_ACEOF
   10890 /* end confdefs.h.  */
   10891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   10892    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   10893 #define $ac_func innocuous_$ac_func
   10894 
   10895 /* System header to define __stub macros and hopefully few prototypes,
   10896     which can conflict with char $ac_func (); below.
   10897     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   10898     <limits.h> exists even on freestanding compilers.  */
   10899 
   10900 #ifdef __STDC__
   10901 # include <limits.h>
   10902 #else
   10903 # include <assert.h>
   10904 #endif
   10905 
   10906 #undef $ac_func
   10907 
   10908 /* Override any GCC internal prototype to avoid an error.
   10909    Use char because int might match the return type of a GCC
   10910    builtin and then its argument prototype would still apply.  */
   10911 #ifdef __cplusplus
   10912 extern "C"
   10913 #endif
   10914 char $ac_func ();
   10915 /* The GNU C library defines this for functions which it implements
   10916     to always fail with ENOSYS.  Some functions are actually named
   10917     something starting with __ and the normal name is an alias.  */
   10918 #if defined __stub_$ac_func || defined __stub___$ac_func
   10919 choke me
   10920 #endif
   10921 
   10922 int
   10923 main ()
   10924 {
   10925 return $ac_func ();
   10926   ;
   10927   return 0;
   10928 }
   10929 _ACEOF
   10930 rm -f conftest.$ac_objext conftest$ac_exeext
   10931 if { (ac_try="$ac_link"
   10932 case "(($ac_try" in
   10933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10934   *) ac_try_echo=$ac_try;;
   10935 esac
   10936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10937   (eval "$ac_link") 2>conftest.er1
   10938   ac_status=$?
   10939   grep -v '^ *+' conftest.er1 >conftest.err
   10940   rm -f conftest.er1
   10941   cat conftest.err >&5
   10942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10943   (exit $ac_status); } && {
   10944 	 test -z "$ac_c_werror_flag" ||
   10945 	 test ! -s conftest.err
   10946        } && test -s conftest$ac_exeext &&
   10947        $as_test_x conftest$ac_exeext; then
   10948   eval "$as_ac_var=yes"
   10949 else
   10950   echo "$as_me: failed program was:" >&5
   10951 sed 's/^/| /' conftest.$ac_ext >&5
   10952 
   10953 	eval "$as_ac_var=no"
   10954 fi
   10955 
   10956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   10957       conftest$ac_exeext conftest.$ac_ext
   10958 fi
   10959 ac_res=`eval echo '${'$as_ac_var'}'`
   10960 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   10961 echo "${ECHO_T}$ac_res" >&6; }
   10962 if test `eval echo '${'$as_ac_var'}'` = yes; then
   10963   cat >>confdefs.h <<_ACEOF
   10964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   10965 _ACEOF
   10966 
   10967 fi
   10968 done
   10969 
   10970 	cat >>confdefs.h <<\_ACEOF
   10971 #define PAM_SUN_CODEBASE 1
   10972 _ACEOF
   10973 
   10974 	conf_utmp_location=/etc/utmp
   10975 	conf_wtmp_location=/var/adm/wtmp
   10976 	conf_lastlog_location=/var/adm/lastlog
   10977 	cat >>confdefs.h <<\_ACEOF
   10978 #define USE_PIPES 1
   10979 _ACEOF
   10980 
   10981 	;;
   10982 *-ncr-sysv*)
   10983 	LIBS="$LIBS -lc89"
   10984 	cat >>confdefs.h <<\_ACEOF
   10985 #define USE_PIPES 1
   10986 _ACEOF
   10987 
   10988 	cat >>confdefs.h <<\_ACEOF
   10989 #define SSHD_ACQUIRES_CTTY 1
   10990 _ACEOF
   10991 
   10992 	cat >>confdefs.h <<\_ACEOF
   10993 #define SETEUID_BREAKS_SETUID 1
   10994 _ACEOF
   10995 
   10996 	cat >>confdefs.h <<\_ACEOF
   10997 #define BROKEN_SETREUID 1
   10998 _ACEOF
   10999 
   11000 	cat >>confdefs.h <<\_ACEOF
   11001 #define BROKEN_SETREGID 1
   11002 _ACEOF
   11003 
   11004 	;;
   11005 *-sni-sysv*)
   11006 	# /usr/ucblib MUST NOT be searched on ReliantUNIX
   11007 
   11008 { echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
   11009 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; }
   11010 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
   11011   echo $ECHO_N "(cached) $ECHO_C" >&6
   11012 else
   11013   ac_check_lib_save_LIBS=$LIBS
   11014 LIBS="-ldl  $LIBS"
   11015 cat >conftest.$ac_ext <<_ACEOF
   11016 /* confdefs.h.  */
   11017 _ACEOF
   11018 cat confdefs.h >>conftest.$ac_ext
   11019 cat >>conftest.$ac_ext <<_ACEOF
   11020 /* end confdefs.h.  */
   11021 
   11022 /* Override any GCC internal prototype to avoid an error.
   11023    Use char because int might match the return type of a GCC
   11024    builtin and then its argument prototype would still apply.  */
   11025 #ifdef __cplusplus
   11026 extern "C"
   11027 #endif
   11028 char dlsym ();
   11029 int
   11030 main ()
   11031 {
   11032 return dlsym ();
   11033   ;
   11034   return 0;
   11035 }
   11036 _ACEOF
   11037 rm -f conftest.$ac_objext conftest$ac_exeext
   11038 if { (ac_try="$ac_link"
   11039 case "(($ac_try" in
   11040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11041   *) ac_try_echo=$ac_try;;
   11042 esac
   11043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11044   (eval "$ac_link") 2>conftest.er1
   11045   ac_status=$?
   11046   grep -v '^ *+' conftest.er1 >conftest.err
   11047   rm -f conftest.er1
   11048   cat conftest.err >&5
   11049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11050   (exit $ac_status); } && {
   11051 	 test -z "$ac_c_werror_flag" ||
   11052 	 test ! -s conftest.err
   11053        } && test -s conftest$ac_exeext &&
   11054        $as_test_x conftest$ac_exeext; then
   11055   ac_cv_lib_dl_dlsym=yes
   11056 else
   11057   echo "$as_me: failed program was:" >&5
   11058 sed 's/^/| /' conftest.$ac_ext >&5
   11059 
   11060 	ac_cv_lib_dl_dlsym=no
   11061 fi
   11062 
   11063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   11064       conftest$ac_exeext conftest.$ac_ext
   11065 LIBS=$ac_check_lib_save_LIBS
   11066 fi
   11067 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
   11068 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; }
   11069 if test $ac_cv_lib_dl_dlsym = yes; then
   11070   cat >>confdefs.h <<_ACEOF
   11071 #define HAVE_LIBDL 1
   11072 _ACEOF
   11073 
   11074   LIBS="-ldl $LIBS"
   11075 
   11076 fi
   11077 
   11078 	# -lresolv needs to be at the end of LIBS or DNS lookups break
   11079 	{ echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
   11080 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
   11081 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
   11082   echo $ECHO_N "(cached) $ECHO_C" >&6
   11083 else
   11084   ac_check_lib_save_LIBS=$LIBS
   11085 LIBS="-lresolv  $LIBS"
   11086 cat >conftest.$ac_ext <<_ACEOF
   11087 /* confdefs.h.  */
   11088 _ACEOF
   11089 cat confdefs.h >>conftest.$ac_ext
   11090 cat >>conftest.$ac_ext <<_ACEOF
   11091 /* end confdefs.h.  */
   11092 
   11093 /* Override any GCC internal prototype to avoid an error.
   11094    Use char because int might match the return type of a GCC
   11095    builtin and then its argument prototype would still apply.  */
   11096 #ifdef __cplusplus
   11097 extern "C"
   11098 #endif
   11099 char res_query ();
   11100 int
   11101 main ()
   11102 {
   11103 return res_query ();
   11104   ;
   11105   return 0;
   11106 }
   11107 _ACEOF
   11108 rm -f conftest.$ac_objext conftest$ac_exeext
   11109 if { (ac_try="$ac_link"
   11110 case "(($ac_try" in
   11111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11112   *) ac_try_echo=$ac_try;;
   11113 esac
   11114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11115   (eval "$ac_link") 2>conftest.er1
   11116   ac_status=$?
   11117   grep -v '^ *+' conftest.er1 >conftest.err
   11118   rm -f conftest.er1
   11119   cat conftest.err >&5
   11120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11121   (exit $ac_status); } && {
   11122 	 test -z "$ac_c_werror_flag" ||
   11123 	 test ! -s conftest.err
   11124        } && test -s conftest$ac_exeext &&
   11125        $as_test_x conftest$ac_exeext; then
   11126   ac_cv_lib_resolv_res_query=yes
   11127 else
   11128   echo "$as_me: failed program was:" >&5
   11129 sed 's/^/| /' conftest.$ac_ext >&5
   11130 
   11131 	ac_cv_lib_resolv_res_query=no
   11132 fi
   11133 
   11134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   11135       conftest$ac_exeext conftest.$ac_ext
   11136 LIBS=$ac_check_lib_save_LIBS
   11137 fi
   11138 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
   11139 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
   11140 if test $ac_cv_lib_resolv_res_query = yes; then
   11141    LIBS="$LIBS -lresolv"
   11142 fi
   11143 
   11144 	IPADDR_IN_DISPLAY=yes
   11145 	cat >>confdefs.h <<\_ACEOF
   11146 #define USE_PIPES 1
   11147 _ACEOF
   11148 
   11149 	cat >>confdefs.h <<\_ACEOF
   11150 #define IP_TOS_IS_BROKEN 1
   11151 _ACEOF
   11152 
   11153 	cat >>confdefs.h <<\_ACEOF
   11154 #define SETEUID_BREAKS_SETUID 1
   11155 _ACEOF
   11156 
   11157 	cat >>confdefs.h <<\_ACEOF
   11158 #define BROKEN_SETREUID 1
   11159 _ACEOF
   11160 
   11161 	cat >>confdefs.h <<\_ACEOF
   11162 #define BROKEN_SETREGID 1
   11163 _ACEOF
   11164 
   11165 	cat >>confdefs.h <<\_ACEOF
   11166 #define SSHD_ACQUIRES_CTTY 1
   11167 _ACEOF
   11168 
   11169 	external_path_file=/etc/default/login
   11170 	# /usr/ucblib/libucb.a no longer needed on ReliantUNIX
   11171 	# Attention: always take care to bind libsocket and libnsl before libc,
   11172 	# otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
   11173 	;;
   11174 # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
   11175 *-*-sysv4.2*)
   11176 	cat >>confdefs.h <<\_ACEOF
   11177 #define USE_PIPES 1
   11178 _ACEOF
   11179 
   11180 	cat >>confdefs.h <<\_ACEOF
   11181 #define SETEUID_BREAKS_SETUID 1
   11182 _ACEOF
   11183 
   11184 	cat >>confdefs.h <<\_ACEOF
   11185 #define BROKEN_SETREUID 1
   11186 _ACEOF
   11187 
   11188 	cat >>confdefs.h <<\_ACEOF
   11189 #define BROKEN_SETREGID 1
   11190 _ACEOF
   11191 
   11192 
   11193 cat >>confdefs.h <<\_ACEOF
   11194 #define PASSWD_NEEDS_USERNAME 1
   11195 _ACEOF
   11196 
   11197 	cat >>confdefs.h <<\_ACEOF
   11198 #define LOCKED_PASSWD_STRING "*LK*"
   11199 _ACEOF
   11200 
   11201 	TEST_SHELL=$SHELL	# let configure find us a capable shell
   11202 	;;
   11203 # UnixWare 7.x, OpenUNIX 8
   11204 *-*-sysv5*)
   11205 	CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf"
   11206 
   11207 cat >>confdefs.h <<\_ACEOF
   11208 #define UNIXWARE_LONG_PASSWORDS 1
   11209 _ACEOF
   11210 
   11211 	cat >>confdefs.h <<\_ACEOF
   11212 #define USE_PIPES 1
   11213 _ACEOF
   11214 
   11215 	cat >>confdefs.h <<\_ACEOF
   11216 #define SETEUID_BREAKS_SETUID 1
   11217 _ACEOF
   11218 
   11219 	cat >>confdefs.h <<\_ACEOF
   11220 #define BROKEN_GETADDRINFO 1
   11221 _ACEOF
   11222 
   11223 	cat >>confdefs.h <<\_ACEOF
   11224 #define BROKEN_SETREUID 1
   11225 _ACEOF
   11226 
   11227 	cat >>confdefs.h <<\_ACEOF
   11228 #define BROKEN_SETREGID 1
   11229 _ACEOF
   11230 
   11231 	cat >>confdefs.h <<\_ACEOF
   11232 #define PASSWD_NEEDS_USERNAME 1
   11233 _ACEOF
   11234 
   11235 	TEST_SHELL=$SHELL	# let configure find us a capable shell
   11236 	case "$host" in
   11237 	*-*-sysv5SCO_SV*)	# SCO OpenServer 6.x
   11238 		maildir=/var/spool/mail
   11239 
   11240 cat >>confdefs.h <<\_ACEOF
   11241 #define BROKEN_LIBIAF 1
   11242 _ACEOF
   11243 
   11244 		cat >>confdefs.h <<\_ACEOF
   11245 #define BROKEN_UPDWTMPX 1
   11246 _ACEOF
   11247 
   11248 		{ echo "$as_me:$LINENO: checking for getluid in -lprot" >&5
   11249 echo $ECHO_N "checking for getluid in -lprot... $ECHO_C" >&6; }
   11250 if test "${ac_cv_lib_prot_getluid+set}" = set; then
   11251   echo $ECHO_N "(cached) $ECHO_C" >&6
   11252 else
   11253   ac_check_lib_save_LIBS=$LIBS
   11254 LIBS="-lprot  $LIBS"
   11255 cat >conftest.$ac_ext <<_ACEOF
   11256 /* confdefs.h.  */
   11257 _ACEOF
   11258 cat confdefs.h >>conftest.$ac_ext
   11259 cat >>conftest.$ac_ext <<_ACEOF
   11260 /* end confdefs.h.  */
   11261 
   11262 /* Override any GCC internal prototype to avoid an error.
   11263    Use char because int might match the return type of a GCC
   11264    builtin and then its argument prototype would still apply.  */
   11265 #ifdef __cplusplus
   11266 extern "C"
   11267 #endif
   11268 char getluid ();
   11269 int
   11270 main ()
   11271 {
   11272 return getluid ();
   11273   ;
   11274   return 0;
   11275 }
   11276 _ACEOF
   11277 rm -f conftest.$ac_objext conftest$ac_exeext
   11278 if { (ac_try="$ac_link"
   11279 case "(($ac_try" in
   11280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11281   *) ac_try_echo=$ac_try;;
   11282 esac
   11283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11284   (eval "$ac_link") 2>conftest.er1
   11285   ac_status=$?
   11286   grep -v '^ *+' conftest.er1 >conftest.err
   11287   rm -f conftest.er1
   11288   cat conftest.err >&5
   11289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11290   (exit $ac_status); } && {
   11291 	 test -z "$ac_c_werror_flag" ||
   11292 	 test ! -s conftest.err
   11293        } && test -s conftest$ac_exeext &&
   11294        $as_test_x conftest$ac_exeext; then
   11295   ac_cv_lib_prot_getluid=yes
   11296 else
   11297   echo "$as_me: failed program was:" >&5
   11298 sed 's/^/| /' conftest.$ac_ext >&5
   11299 
   11300 	ac_cv_lib_prot_getluid=no
   11301 fi
   11302 
   11303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   11304       conftest$ac_exeext conftest.$ac_ext
   11305 LIBS=$ac_check_lib_save_LIBS
   11306 fi
   11307 { echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getluid" >&5
   11308 echo "${ECHO_T}$ac_cv_lib_prot_getluid" >&6; }
   11309 if test $ac_cv_lib_prot_getluid = yes; then
   11310    LIBS="$LIBS -lprot"
   11311 
   11312 
   11313 for ac_func in getluid setluid
   11314 do
   11315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11316 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   11317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   11318 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   11319   echo $ECHO_N "(cached) $ECHO_C" >&6
   11320 else
   11321   cat >conftest.$ac_ext <<_ACEOF
   11322 /* confdefs.h.  */
   11323 _ACEOF
   11324 cat confdefs.h >>conftest.$ac_ext
   11325 cat >>conftest.$ac_ext <<_ACEOF
   11326 /* end confdefs.h.  */
   11327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   11328    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   11329 #define $ac_func innocuous_$ac_func
   11330 
   11331 /* System header to define __stub macros and hopefully few prototypes,
   11332     which can conflict with char $ac_func (); below.
   11333     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   11334     <limits.h> exists even on freestanding compilers.  */
   11335 
   11336 #ifdef __STDC__
   11337 # include <limits.h>
   11338 #else
   11339 # include <assert.h>
   11340 #endif
   11341 
   11342 #undef $ac_func
   11343 
   11344 /* Override any GCC internal prototype to avoid an error.
   11345    Use char because int might match the return type of a GCC
   11346    builtin and then its argument prototype would still apply.  */
   11347 #ifdef __cplusplus
   11348 extern "C"
   11349 #endif
   11350 char $ac_func ();
   11351 /* The GNU C library defines this for functions which it implements
   11352     to always fail with ENOSYS.  Some functions are actually named
   11353     something starting with __ and the normal name is an alias.  */
   11354 #if defined __stub_$ac_func || defined __stub___$ac_func
   11355 choke me
   11356 #endif
   11357 
   11358 int
   11359 main ()
   11360 {
   11361 return $ac_func ();
   11362   ;
   11363   return 0;
   11364 }
   11365 _ACEOF
   11366 rm -f conftest.$ac_objext conftest$ac_exeext
   11367 if { (ac_try="$ac_link"
   11368 case "(($ac_try" in
   11369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11370   *) ac_try_echo=$ac_try;;
   11371 esac
   11372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11373   (eval "$ac_link") 2>conftest.er1
   11374   ac_status=$?
   11375   grep -v '^ *+' conftest.er1 >conftest.err
   11376   rm -f conftest.er1
   11377   cat conftest.err >&5
   11378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11379   (exit $ac_status); } && {
   11380 	 test -z "$ac_c_werror_flag" ||
   11381 	 test ! -s conftest.err
   11382        } && test -s conftest$ac_exeext &&
   11383        $as_test_x conftest$ac_exeext; then
   11384   eval "$as_ac_var=yes"
   11385 else
   11386   echo "$as_me: failed program was:" >&5
   11387 sed 's/^/| /' conftest.$ac_ext >&5
   11388 
   11389 	eval "$as_ac_var=no"
   11390 fi
   11391 
   11392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   11393       conftest$ac_exeext conftest.$ac_ext
   11394 fi
   11395 ac_res=`eval echo '${'$as_ac_var'}'`
   11396 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11397 echo "${ECHO_T}$ac_res" >&6; }
   11398 if test `eval echo '${'$as_ac_var'}'` = yes; then
   11399   cat >>confdefs.h <<_ACEOF
   11400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11401 _ACEOF
   11402 
   11403 fi
   11404 done
   11405 
   11406 			cat >>confdefs.h <<\_ACEOF
   11407 #define HAVE_SECUREWARE 1
   11408 _ACEOF
   11409 
   11410 			cat >>confdefs.h <<\_ACEOF
   11411 #define DISABLE_SHADOW 1
   11412 _ACEOF
   11413 
   11414 
   11415 fi
   11416 
   11417 		;;
   11418 	*)	cat >>confdefs.h <<\_ACEOF
   11419 #define LOCKED_PASSWD_STRING "*LK*"
   11420 _ACEOF
   11421 
   11422 		check_for_libcrypt_later=1
   11423 		;;
   11424 	esac
   11425 	;;
   11426 *-*-sysv*)
   11427 	;;
   11428 # SCO UNIX and OEM versions of SCO UNIX
   11429 *-*-sco3.2v4*)
   11430 	{ { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5
   11431 echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;}
   11432    { (exit 1); exit 1; }; }
   11433 	;;
   11434 # SCO OpenServer 5.x
   11435 *-*-sco3.2v5*)
   11436 	if test -z "$GCC"; then
   11437 		CFLAGS="$CFLAGS -belf"
   11438 	fi
   11439 	LIBS="$LIBS -lprot -lx -ltinfo -lm"
   11440 	no_dev_ptmx=1
   11441 	cat >>confdefs.h <<\_ACEOF
   11442 #define USE_PIPES 1
   11443 _ACEOF
   11444 
   11445 	cat >>confdefs.h <<\_ACEOF
   11446 #define HAVE_SECUREWARE 1
   11447 _ACEOF
   11448 
   11449 	cat >>confdefs.h <<\_ACEOF
   11450 #define DISABLE_SHADOW 1
   11451 _ACEOF
   11452 
   11453 	cat >>confdefs.h <<\_ACEOF
   11454 #define DISABLE_FD_PASSING 1
   11455 _ACEOF
   11456 
   11457 	cat >>confdefs.h <<\_ACEOF
   11458 #define SETEUID_BREAKS_SETUID 1
   11459 _ACEOF
   11460 
   11461 	cat >>confdefs.h <<\_ACEOF
   11462 #define BROKEN_GETADDRINFO 1
   11463 _ACEOF
   11464 
   11465 	cat >>confdefs.h <<\_ACEOF
   11466 #define BROKEN_SETREUID 1
   11467 _ACEOF
   11468 
   11469 	cat >>confdefs.h <<\_ACEOF
   11470 #define BROKEN_SETREGID 1
   11471 _ACEOF
   11472 
   11473 	cat >>confdefs.h <<\_ACEOF
   11474 #define WITH_ABBREV_NO_TTY 1
   11475 _ACEOF
   11476 
   11477 	cat >>confdefs.h <<\_ACEOF
   11478 #define BROKEN_UPDWTMPX 1
   11479 _ACEOF
   11480 
   11481 	cat >>confdefs.h <<\_ACEOF
   11482 #define PASSWD_NEEDS_USERNAME 1
   11483 _ACEOF
   11484 
   11485 
   11486 
   11487 for ac_func in getluid setluid
   11488 do
   11489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11490 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   11491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   11492 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   11493   echo $ECHO_N "(cached) $ECHO_C" >&6
   11494 else
   11495   cat >conftest.$ac_ext <<_ACEOF
   11496 /* confdefs.h.  */
   11497 _ACEOF
   11498 cat confdefs.h >>conftest.$ac_ext
   11499 cat >>conftest.$ac_ext <<_ACEOF
   11500 /* end confdefs.h.  */
   11501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   11502    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   11503 #define $ac_func innocuous_$ac_func
   11504 
   11505 /* System header to define __stub macros and hopefully few prototypes,
   11506     which can conflict with char $ac_func (); below.
   11507     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   11508     <limits.h> exists even on freestanding compilers.  */
   11509 
   11510 #ifdef __STDC__
   11511 # include <limits.h>
   11512 #else
   11513 # include <assert.h>
   11514 #endif
   11515 
   11516 #undef $ac_func
   11517 
   11518 /* Override any GCC internal prototype to avoid an error.
   11519    Use char because int might match the return type of a GCC
   11520    builtin and then its argument prototype would still apply.  */
   11521 #ifdef __cplusplus
   11522 extern "C"
   11523 #endif
   11524 char $ac_func ();
   11525 /* The GNU C library defines this for functions which it implements
   11526     to always fail with ENOSYS.  Some functions are actually named
   11527     something starting with __ and the normal name is an alias.  */
   11528 #if defined __stub_$ac_func || defined __stub___$ac_func
   11529 choke me
   11530 #endif
   11531 
   11532 int
   11533 main ()
   11534 {
   11535 return $ac_func ();
   11536   ;
   11537   return 0;
   11538 }
   11539 _ACEOF
   11540 rm -f conftest.$ac_objext conftest$ac_exeext
   11541 if { (ac_try="$ac_link"
   11542 case "(($ac_try" in
   11543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11544   *) ac_try_echo=$ac_try;;
   11545 esac
   11546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11547   (eval "$ac_link") 2>conftest.er1
   11548   ac_status=$?
   11549   grep -v '^ *+' conftest.er1 >conftest.err
   11550   rm -f conftest.er1
   11551   cat conftest.err >&5
   11552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11553   (exit $ac_status); } && {
   11554 	 test -z "$ac_c_werror_flag" ||
   11555 	 test ! -s conftest.err
   11556        } && test -s conftest$ac_exeext &&
   11557        $as_test_x conftest$ac_exeext; then
   11558   eval "$as_ac_var=yes"
   11559 else
   11560   echo "$as_me: failed program was:" >&5
   11561 sed 's/^/| /' conftest.$ac_ext >&5
   11562 
   11563 	eval "$as_ac_var=no"
   11564 fi
   11565 
   11566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   11567       conftest$ac_exeext conftest.$ac_ext
   11568 fi
   11569 ac_res=`eval echo '${'$as_ac_var'}'`
   11570 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   11571 echo "${ECHO_T}$ac_res" >&6; }
   11572 if test `eval echo '${'$as_ac_var'}'` = yes; then
   11573   cat >>confdefs.h <<_ACEOF
   11574 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11575 _ACEOF
   11576 
   11577 fi
   11578 done
   11579 
   11580 	MANTYPE=man
   11581 	TEST_SHELL=$SHELL	# let configure find us a capable shell
   11582 	SKIP_DISABLE_LASTLOG_DEFINE=yes
   11583 	;;
   11584 *-*-unicosmk*)
   11585 
   11586 cat >>confdefs.h <<\_ACEOF
   11587 #define NO_SSH_LASTLOG 1
   11588 _ACEOF
   11589 
   11590 	cat >>confdefs.h <<\_ACEOF
   11591 #define SETEUID_BREAKS_SETUID 1
   11592 _ACEOF
   11593 
   11594 	cat >>confdefs.h <<\_ACEOF
   11595 #define BROKEN_SETREUID 1
   11596 _ACEOF
   11597 
   11598 	cat >>confdefs.h <<\_ACEOF
   11599 #define BROKEN_SETREGID 1
   11600 _ACEOF
   11601 
   11602 	cat >>confdefs.h <<\_ACEOF
   11603 #define USE_PIPES 1
   11604 _ACEOF
   11605 
   11606 	cat >>confdefs.h <<\_ACEOF
   11607 #define DISABLE_FD_PASSING 1
   11608 _ACEOF
   11609 
   11610 	LDFLAGS="$LDFLAGS"
   11611 	LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
   11612 	MANTYPE=cat
   11613 	;;
   11614 *-*-unicosmp*)
   11615 	cat >>confdefs.h <<\_ACEOF
   11616 #define SETEUID_BREAKS_SETUID 1
   11617 _ACEOF
   11618 
   11619 	cat >>confdefs.h <<\_ACEOF
   11620 #define BROKEN_SETREUID 1
   11621 _ACEOF
   11622 
   11623 	cat >>confdefs.h <<\_ACEOF
   11624 #define BROKEN_SETREGID 1
   11625 _ACEOF
   11626 
   11627 	cat >>confdefs.h <<\_ACEOF
   11628 #define WITH_ABBREV_NO_TTY 1
   11629 _ACEOF
   11630 
   11631 	cat >>confdefs.h <<\_ACEOF
   11632 #define USE_PIPES 1
   11633 _ACEOF
   11634 
   11635 	cat >>confdefs.h <<\_ACEOF
   11636 #define DISABLE_FD_PASSING 1
   11637 _ACEOF
   11638 
   11639 	LDFLAGS="$LDFLAGS"
   11640 	LIBS="$LIBS -lgen -lacid -ldb"
   11641 	MANTYPE=cat
   11642 	;;
   11643 *-*-unicos*)
   11644 	cat >>confdefs.h <<\_ACEOF
   11645 #define SETEUID_BREAKS_SETUID 1
   11646 _ACEOF
   11647 
   11648 	cat >>confdefs.h <<\_ACEOF
   11649 #define BROKEN_SETREUID 1
   11650 _ACEOF
   11651 
   11652 	cat >>confdefs.h <<\_ACEOF
   11653 #define BROKEN_SETREGID 1
   11654 _ACEOF
   11655 
   11656 	cat >>confdefs.h <<\_ACEOF
   11657 #define USE_PIPES 1
   11658 _ACEOF
   11659 
   11660 	cat >>confdefs.h <<\_ACEOF
   11661 #define DISABLE_FD_PASSING 1
   11662 _ACEOF
   11663 
   11664 	cat >>confdefs.h <<\_ACEOF
   11665 #define NO_SSH_LASTLOG 1
   11666 _ACEOF
   11667 
   11668 	LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
   11669 	LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
   11670 	MANTYPE=cat
   11671 	;;
   11672 *-dec-osf*)
   11673 	{ echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
   11674 echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6; }
   11675 	no_osfsia=""
   11676 
   11677 # Check whether --with-osfsia was given.
   11678 if test "${with_osfsia+set}" = set; then
   11679   withval=$with_osfsia;
   11680 			if test "x$withval" = "xno" ; then
   11681 				{ echo "$as_me:$LINENO: result: disabled" >&5
   11682 echo "${ECHO_T}disabled" >&6; }
   11683 				no_osfsia=1
   11684 			fi
   11685 
   11686 fi
   11687 
   11688 	if test -z "$no_osfsia" ; then
   11689 		if test -f /etc/sia/matrix.conf; then
   11690 			{ echo "$as_me:$LINENO: result: yes" >&5
   11691 echo "${ECHO_T}yes" >&6; }
   11692 
   11693 cat >>confdefs.h <<\_ACEOF
   11694 #define HAVE_OSF_SIA 1
   11695 _ACEOF
   11696 
   11697 
   11698 cat >>confdefs.h <<\_ACEOF
   11699 #define DISABLE_LOGIN 1
   11700 _ACEOF
   11701 
   11702 			cat >>confdefs.h <<\_ACEOF
   11703 #define DISABLE_FD_PASSING 1
   11704 _ACEOF
   11705 
   11706 			LIBS="$LIBS -lsecurity -ldb -lm -laud"
   11707 			SIA_MSG="yes"
   11708 		else
   11709 			{ echo "$as_me:$LINENO: result: no" >&5
   11710 echo "${ECHO_T}no" >&6; }
   11711 
   11712 cat >>confdefs.h <<\_ACEOF
   11713 #define LOCKED_PASSWD_SUBSTR "Nologin"
   11714 _ACEOF
   11715 
   11716 		fi
   11717 	fi
   11718 	cat >>confdefs.h <<\_ACEOF
   11719 #define BROKEN_GETADDRINFO 1
   11720 _ACEOF
   11721 
   11722 	cat >>confdefs.h <<\_ACEOF
   11723 #define SETEUID_BREAKS_SETUID 1
   11724 _ACEOF
   11725 
   11726 	cat >>confdefs.h <<\_ACEOF
   11727 #define BROKEN_SETREUID 1
   11728 _ACEOF
   11729 
   11730 	cat >>confdefs.h <<\_ACEOF
   11731 #define BROKEN_SETREGID 1
   11732 _ACEOF
   11733 
   11734 
   11735 cat >>confdefs.h <<\_ACEOF
   11736 #define BROKEN_READV_COMPARISON 1
   11737 _ACEOF
   11738 
   11739 	;;
   11740 
   11741 *-*-nto-qnx*)
   11742 	cat >>confdefs.h <<\_ACEOF
   11743 #define USE_PIPES 1
   11744 _ACEOF
   11745 
   11746 	cat >>confdefs.h <<\_ACEOF
   11747 #define NO_X11_UNIX_SOCKETS 1
   11748 _ACEOF
   11749 
   11750 	cat >>confdefs.h <<\_ACEOF
   11751 #define DISABLE_LASTLOG 1
   11752 _ACEOF
   11753 
   11754 	cat >>confdefs.h <<\_ACEOF
   11755 #define SSHD_ACQUIRES_CTTY 1
   11756 _ACEOF
   11757 
   11758 
   11759 cat >>confdefs.h <<\_ACEOF
   11760 #define BROKEN_SHADOW_EXPIRE 1
   11761 _ACEOF
   11762 
   11763 	enable_etc_default_login=no	# has incompatible /etc/default/login
   11764 	case "$host" in
   11765 	*-*-nto-qnx6*)
   11766 		cat >>confdefs.h <<\_ACEOF
   11767 #define DISABLE_FD_PASSING 1
   11768 _ACEOF
   11769 
   11770 		;;
   11771 	esac
   11772 	;;
   11773 
   11774 *-*-ultrix*)
   11775 
   11776 cat >>confdefs.h <<\_ACEOF
   11777 #define BROKEN_GETGROUPS 1
   11778 _ACEOF
   11779 
   11780 
   11781 cat >>confdefs.h <<\_ACEOF
   11782 #define BROKEN_MMAP 1
   11783 _ACEOF
   11784 
   11785 	cat >>confdefs.h <<\_ACEOF
   11786 #define NEED_SETPGRP 1
   11787 _ACEOF
   11788 
   11789 
   11790 cat >>confdefs.h <<\_ACEOF
   11791 #define HAVE_SYS_SYSLOG_H 1
   11792 _ACEOF
   11793 
   11794 	;;
   11795 
   11796 *-*-lynxos)
   11797         CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
   11798 
   11799 cat >>confdefs.h <<\_ACEOF
   11800 #define BROKEN_SETVBUF 1
   11801 _ACEOF
   11802 
   11803         ;;
   11804 esac
   11805 
   11806 { echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5
   11807 echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; }
   11808 if test "$cross_compiling" = yes; then
   11809   	{ echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5
   11810 echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
   11811 
   11812 else
   11813   cat >conftest.$ac_ext <<_ACEOF
   11814 /* confdefs.h.  */
   11815 _ACEOF
   11816 cat confdefs.h >>conftest.$ac_ext
   11817 cat >>conftest.$ac_ext <<_ACEOF
   11818 /* end confdefs.h.  */
   11819  #include <stdio.h>
   11820 int
   11821 main ()
   11822 {
   11823  exit(0);
   11824   ;
   11825   return 0;
   11826 }
   11827 _ACEOF
   11828 rm -f conftest$ac_exeext
   11829 if { (ac_try="$ac_link"
   11830 case "(($ac_try" in
   11831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11832   *) ac_try_echo=$ac_try;;
   11833 esac
   11834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11835   (eval "$ac_link") 2>&5
   11836   ac_status=$?
   11837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11838   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   11839   { (case "(($ac_try" in
   11840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11841   *) ac_try_echo=$ac_try;;
   11842 esac
   11843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11844   (eval "$ac_try") 2>&5
   11845   ac_status=$?
   11846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11847   (exit $ac_status); }; }; then
   11848   	{ echo "$as_me:$LINENO: result: yes" >&5
   11849 echo "${ECHO_T}yes" >&6; }
   11850 else
   11851   echo "$as_me: program exited with status $ac_status" >&5
   11852 echo "$as_me: failed program was:" >&5
   11853 sed 's/^/| /' conftest.$ac_ext >&5
   11854 
   11855 ( exit $ac_status )
   11856 
   11857 		{ echo "$as_me:$LINENO: result: no" >&5
   11858 echo "${ECHO_T}no" >&6; }
   11859 		{ { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5
   11860 echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;}
   11861    { (exit 1); exit 1; }; }
   11862 
   11863 fi
   11864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   11865 fi
   11866 
   11867 
   11868 
   11869 # Checks for libraries.
   11870 { echo "$as_me:$LINENO: checking for yp_match" >&5
   11871 echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; }
   11872 if test "${ac_cv_func_yp_match+set}" = set; then
   11873   echo $ECHO_N "(cached) $ECHO_C" >&6
   11874 else
   11875   cat >conftest.$ac_ext <<_ACEOF
   11876 /* confdefs.h.  */
   11877 _ACEOF
   11878 cat confdefs.h >>conftest.$ac_ext
   11879 cat >>conftest.$ac_ext <<_ACEOF
   11880 /* end confdefs.h.  */
   11881 /* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match.
   11882    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   11883 #define yp_match innocuous_yp_match
   11884 
   11885 /* System header to define __stub macros and hopefully few prototypes,
   11886     which can conflict with char yp_match (); below.
   11887     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   11888     <limits.h> exists even on freestanding compilers.  */
   11889 
   11890 #ifdef __STDC__
   11891 # include <limits.h>
   11892 #else
   11893 # include <assert.h>
   11894 #endif
   11895 
   11896 #undef yp_match
   11897 
   11898 /* Override any GCC internal prototype to avoid an error.
   11899    Use char because int might match the return type of a GCC
   11900    builtin and then its argument prototype would still apply.  */
   11901 #ifdef __cplusplus
   11902 extern "C"
   11903 #endif
   11904 char yp_match ();
   11905 /* The GNU C library defines this for functions which it implements
   11906     to always fail with ENOSYS.  Some functions are actually named
   11907     something starting with __ and the normal name is an alias.  */
   11908 #if defined __stub_yp_match || defined __stub___yp_match
   11909 choke me
   11910 #endif
   11911 
   11912 int
   11913 main ()
   11914 {
   11915 return yp_match ();
   11916   ;
   11917   return 0;
   11918 }
   11919 _ACEOF
   11920 rm -f conftest.$ac_objext conftest$ac_exeext
   11921 if { (ac_try="$ac_link"
   11922 case "(($ac_try" in
   11923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11924   *) ac_try_echo=$ac_try;;
   11925 esac
   11926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11927   (eval "$ac_link") 2>conftest.er1
   11928   ac_status=$?
   11929   grep -v '^ *+' conftest.er1 >conftest.err
   11930   rm -f conftest.er1
   11931   cat conftest.err >&5
   11932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11933   (exit $ac_status); } && {
   11934 	 test -z "$ac_c_werror_flag" ||
   11935 	 test ! -s conftest.err
   11936        } && test -s conftest$ac_exeext &&
   11937        $as_test_x conftest$ac_exeext; then
   11938   ac_cv_func_yp_match=yes
   11939 else
   11940   echo "$as_me: failed program was:" >&5
   11941 sed 's/^/| /' conftest.$ac_ext >&5
   11942 
   11943 	ac_cv_func_yp_match=no
   11944 fi
   11945 
   11946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   11947       conftest$ac_exeext conftest.$ac_ext
   11948 fi
   11949 { echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
   11950 echo "${ECHO_T}$ac_cv_func_yp_match" >&6; }
   11951 if test $ac_cv_func_yp_match = yes; then
   11952   :
   11953 else
   11954 
   11955 { echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
   11956 echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6; }
   11957 if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
   11958   echo $ECHO_N "(cached) $ECHO_C" >&6
   11959 else
   11960   ac_check_lib_save_LIBS=$LIBS
   11961 LIBS="-lnsl  $LIBS"
   11962 cat >conftest.$ac_ext <<_ACEOF
   11963 /* confdefs.h.  */
   11964 _ACEOF
   11965 cat confdefs.h >>conftest.$ac_ext
   11966 cat >>conftest.$ac_ext <<_ACEOF
   11967 /* end confdefs.h.  */
   11968 
   11969 /* Override any GCC internal prototype to avoid an error.
   11970    Use char because int might match the return type of a GCC
   11971    builtin and then its argument prototype would still apply.  */
   11972 #ifdef __cplusplus
   11973 extern "C"
   11974 #endif
   11975 char yp_match ();
   11976 int
   11977 main ()
   11978 {
   11979 return yp_match ();
   11980   ;
   11981   return 0;
   11982 }
   11983 _ACEOF
   11984 rm -f conftest.$ac_objext conftest$ac_exeext
   11985 if { (ac_try="$ac_link"
   11986 case "(($ac_try" in
   11987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   11988   *) ac_try_echo=$ac_try;;
   11989 esac
   11990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   11991   (eval "$ac_link") 2>conftest.er1
   11992   ac_status=$?
   11993   grep -v '^ *+' conftest.er1 >conftest.err
   11994   rm -f conftest.er1
   11995   cat conftest.err >&5
   11996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11997   (exit $ac_status); } && {
   11998 	 test -z "$ac_c_werror_flag" ||
   11999 	 test ! -s conftest.err
   12000        } && test -s conftest$ac_exeext &&
   12001        $as_test_x conftest$ac_exeext; then
   12002   ac_cv_lib_nsl_yp_match=yes
   12003 else
   12004   echo "$as_me: failed program was:" >&5
   12005 sed 's/^/| /' conftest.$ac_ext >&5
   12006 
   12007 	ac_cv_lib_nsl_yp_match=no
   12008 fi
   12009 
   12010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12011       conftest$ac_exeext conftest.$ac_ext
   12012 LIBS=$ac_check_lib_save_LIBS
   12013 fi
   12014 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
   12015 echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6; }
   12016 if test $ac_cv_lib_nsl_yp_match = yes; then
   12017   cat >>confdefs.h <<_ACEOF
   12018 #define HAVE_LIBNSL 1
   12019 _ACEOF
   12020 
   12021   LIBS="-lnsl $LIBS"
   12022 
   12023 fi
   12024 
   12025 fi
   12026 
   12027 { echo "$as_me:$LINENO: checking for setsockopt" >&5
   12028 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
   12029 if test "${ac_cv_func_setsockopt+set}" = set; then
   12030   echo $ECHO_N "(cached) $ECHO_C" >&6
   12031 else
   12032   cat >conftest.$ac_ext <<_ACEOF
   12033 /* confdefs.h.  */
   12034 _ACEOF
   12035 cat confdefs.h >>conftest.$ac_ext
   12036 cat >>conftest.$ac_ext <<_ACEOF
   12037 /* end confdefs.h.  */
   12038 /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
   12039    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   12040 #define setsockopt innocuous_setsockopt
   12041 
   12042 /* System header to define __stub macros and hopefully few prototypes,
   12043     which can conflict with char setsockopt (); below.
   12044     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   12045     <limits.h> exists even on freestanding compilers.  */
   12046 
   12047 #ifdef __STDC__
   12048 # include <limits.h>
   12049 #else
   12050 # include <assert.h>
   12051 #endif
   12052 
   12053 #undef setsockopt
   12054 
   12055 /* Override any GCC internal prototype to avoid an error.
   12056    Use char because int might match the return type of a GCC
   12057    builtin and then its argument prototype would still apply.  */
   12058 #ifdef __cplusplus
   12059 extern "C"
   12060 #endif
   12061 char setsockopt ();
   12062 /* The GNU C library defines this for functions which it implements
   12063     to always fail with ENOSYS.  Some functions are actually named
   12064     something starting with __ and the normal name is an alias.  */
   12065 #if defined __stub_setsockopt || defined __stub___setsockopt
   12066 choke me
   12067 #endif
   12068 
   12069 int
   12070 main ()
   12071 {
   12072 return setsockopt ();
   12073   ;
   12074   return 0;
   12075 }
   12076 _ACEOF
   12077 rm -f conftest.$ac_objext conftest$ac_exeext
   12078 if { (ac_try="$ac_link"
   12079 case "(($ac_try" in
   12080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12081   *) ac_try_echo=$ac_try;;
   12082 esac
   12083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12084   (eval "$ac_link") 2>conftest.er1
   12085   ac_status=$?
   12086   grep -v '^ *+' conftest.er1 >conftest.err
   12087   rm -f conftest.er1
   12088   cat conftest.err >&5
   12089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12090   (exit $ac_status); } && {
   12091 	 test -z "$ac_c_werror_flag" ||
   12092 	 test ! -s conftest.err
   12093        } && test -s conftest$ac_exeext &&
   12094        $as_test_x conftest$ac_exeext; then
   12095   ac_cv_func_setsockopt=yes
   12096 else
   12097   echo "$as_me: failed program was:" >&5
   12098 sed 's/^/| /' conftest.$ac_ext >&5
   12099 
   12100 	ac_cv_func_setsockopt=no
   12101 fi
   12102 
   12103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12104       conftest$ac_exeext conftest.$ac_ext
   12105 fi
   12106 { echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
   12107 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; }
   12108 if test $ac_cv_func_setsockopt = yes; then
   12109   :
   12110 else
   12111 
   12112 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
   12113 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; }
   12114 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
   12115   echo $ECHO_N "(cached) $ECHO_C" >&6
   12116 else
   12117   ac_check_lib_save_LIBS=$LIBS
   12118 LIBS="-lsocket  $LIBS"
   12119 cat >conftest.$ac_ext <<_ACEOF
   12120 /* confdefs.h.  */
   12121 _ACEOF
   12122 cat confdefs.h >>conftest.$ac_ext
   12123 cat >>conftest.$ac_ext <<_ACEOF
   12124 /* end confdefs.h.  */
   12125 
   12126 /* Override any GCC internal prototype to avoid an error.
   12127    Use char because int might match the return type of a GCC
   12128    builtin and then its argument prototype would still apply.  */
   12129 #ifdef __cplusplus
   12130 extern "C"
   12131 #endif
   12132 char setsockopt ();
   12133 int
   12134 main ()
   12135 {
   12136 return setsockopt ();
   12137   ;
   12138   return 0;
   12139 }
   12140 _ACEOF
   12141 rm -f conftest.$ac_objext conftest$ac_exeext
   12142 if { (ac_try="$ac_link"
   12143 case "(($ac_try" in
   12144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12145   *) ac_try_echo=$ac_try;;
   12146 esac
   12147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12148   (eval "$ac_link") 2>conftest.er1
   12149   ac_status=$?
   12150   grep -v '^ *+' conftest.er1 >conftest.err
   12151   rm -f conftest.er1
   12152   cat conftest.err >&5
   12153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12154   (exit $ac_status); } && {
   12155 	 test -z "$ac_c_werror_flag" ||
   12156 	 test ! -s conftest.err
   12157        } && test -s conftest$ac_exeext &&
   12158        $as_test_x conftest$ac_exeext; then
   12159   ac_cv_lib_socket_setsockopt=yes
   12160 else
   12161   echo "$as_me: failed program was:" >&5
   12162 sed 's/^/| /' conftest.$ac_ext >&5
   12163 
   12164 	ac_cv_lib_socket_setsockopt=no
   12165 fi
   12166 
   12167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12168       conftest$ac_exeext conftest.$ac_ext
   12169 LIBS=$ac_check_lib_save_LIBS
   12170 fi
   12171 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
   12172 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; }
   12173 if test $ac_cv_lib_socket_setsockopt = yes; then
   12174   cat >>confdefs.h <<_ACEOF
   12175 #define HAVE_LIBSOCKET 1
   12176 _ACEOF
   12177 
   12178   LIBS="-lsocket $LIBS"
   12179 
   12180 fi
   12181 
   12182 fi
   12183 
   12184 
   12185 
   12186 for ac_func in dirname
   12187 do
   12188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   12189 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   12190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   12191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   12192   echo $ECHO_N "(cached) $ECHO_C" >&6
   12193 else
   12194   cat >conftest.$ac_ext <<_ACEOF
   12195 /* confdefs.h.  */
   12196 _ACEOF
   12197 cat confdefs.h >>conftest.$ac_ext
   12198 cat >>conftest.$ac_ext <<_ACEOF
   12199 /* end confdefs.h.  */
   12200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   12201    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   12202 #define $ac_func innocuous_$ac_func
   12203 
   12204 /* System header to define __stub macros and hopefully few prototypes,
   12205     which can conflict with char $ac_func (); below.
   12206     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   12207     <limits.h> exists even on freestanding compilers.  */
   12208 
   12209 #ifdef __STDC__
   12210 # include <limits.h>
   12211 #else
   12212 # include <assert.h>
   12213 #endif
   12214 
   12215 #undef $ac_func
   12216 
   12217 /* Override any GCC internal prototype to avoid an error.
   12218    Use char because int might match the return type of a GCC
   12219    builtin and then its argument prototype would still apply.  */
   12220 #ifdef __cplusplus
   12221 extern "C"
   12222 #endif
   12223 char $ac_func ();
   12224 /* The GNU C library defines this for functions which it implements
   12225     to always fail with ENOSYS.  Some functions are actually named
   12226     something starting with __ and the normal name is an alias.  */
   12227 #if defined __stub_$ac_func || defined __stub___$ac_func
   12228 choke me
   12229 #endif
   12230 
   12231 int
   12232 main ()
   12233 {
   12234 return $ac_func ();
   12235   ;
   12236   return 0;
   12237 }
   12238 _ACEOF
   12239 rm -f conftest.$ac_objext conftest$ac_exeext
   12240 if { (ac_try="$ac_link"
   12241 case "(($ac_try" in
   12242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12243   *) ac_try_echo=$ac_try;;
   12244 esac
   12245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12246   (eval "$ac_link") 2>conftest.er1
   12247   ac_status=$?
   12248   grep -v '^ *+' conftest.er1 >conftest.err
   12249   rm -f conftest.er1
   12250   cat conftest.err >&5
   12251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12252   (exit $ac_status); } && {
   12253 	 test -z "$ac_c_werror_flag" ||
   12254 	 test ! -s conftest.err
   12255        } && test -s conftest$ac_exeext &&
   12256        $as_test_x conftest$ac_exeext; then
   12257   eval "$as_ac_var=yes"
   12258 else
   12259   echo "$as_me: failed program was:" >&5
   12260 sed 's/^/| /' conftest.$ac_ext >&5
   12261 
   12262 	eval "$as_ac_var=no"
   12263 fi
   12264 
   12265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12266       conftest$ac_exeext conftest.$ac_ext
   12267 fi
   12268 ac_res=`eval echo '${'$as_ac_var'}'`
   12269 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   12270 echo "${ECHO_T}$ac_res" >&6; }
   12271 if test `eval echo '${'$as_ac_var'}'` = yes; then
   12272   cat >>confdefs.h <<_ACEOF
   12273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   12274 _ACEOF
   12275 
   12276 for ac_header in libgen.h
   12277 do
   12278 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   12279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   12280   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   12281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   12282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   12283   echo $ECHO_N "(cached) $ECHO_C" >&6
   12284 fi
   12285 ac_res=`eval echo '${'$as_ac_Header'}'`
   12286 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   12287 echo "${ECHO_T}$ac_res" >&6; }
   12288 else
   12289   # Is the header compilable?
   12290 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   12291 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   12292 cat >conftest.$ac_ext <<_ACEOF
   12293 /* confdefs.h.  */
   12294 _ACEOF
   12295 cat confdefs.h >>conftest.$ac_ext
   12296 cat >>conftest.$ac_ext <<_ACEOF
   12297 /* end confdefs.h.  */
   12298 $ac_includes_default
   12299 #include <$ac_header>
   12300 _ACEOF
   12301 rm -f conftest.$ac_objext
   12302 if { (ac_try="$ac_compile"
   12303 case "(($ac_try" in
   12304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12305   *) ac_try_echo=$ac_try;;
   12306 esac
   12307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12308   (eval "$ac_compile") 2>conftest.er1
   12309   ac_status=$?
   12310   grep -v '^ *+' conftest.er1 >conftest.err
   12311   rm -f conftest.er1
   12312   cat conftest.err >&5
   12313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12314   (exit $ac_status); } && {
   12315 	 test -z "$ac_c_werror_flag" ||
   12316 	 test ! -s conftest.err
   12317        } && test -s conftest.$ac_objext; then
   12318   ac_header_compiler=yes
   12319 else
   12320   echo "$as_me: failed program was:" >&5
   12321 sed 's/^/| /' conftest.$ac_ext >&5
   12322 
   12323 	ac_header_compiler=no
   12324 fi
   12325 
   12326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12327 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   12328 echo "${ECHO_T}$ac_header_compiler" >&6; }
   12329 
   12330 # Is the header present?
   12331 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   12332 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   12333 cat >conftest.$ac_ext <<_ACEOF
   12334 /* confdefs.h.  */
   12335 _ACEOF
   12336 cat confdefs.h >>conftest.$ac_ext
   12337 cat >>conftest.$ac_ext <<_ACEOF
   12338 /* end confdefs.h.  */
   12339 #include <$ac_header>
   12340 _ACEOF
   12341 if { (ac_try="$ac_cpp conftest.$ac_ext"
   12342 case "(($ac_try" in
   12343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12344   *) ac_try_echo=$ac_try;;
   12345 esac
   12346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12347   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   12348   ac_status=$?
   12349   grep -v '^ *+' conftest.er1 >conftest.err
   12350   rm -f conftest.er1
   12351   cat conftest.err >&5
   12352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12353   (exit $ac_status); } >/dev/null && {
   12354 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   12355 	 test ! -s conftest.err
   12356        }; then
   12357   ac_header_preproc=yes
   12358 else
   12359   echo "$as_me: failed program was:" >&5
   12360 sed 's/^/| /' conftest.$ac_ext >&5
   12361 
   12362   ac_header_preproc=no
   12363 fi
   12364 
   12365 rm -f conftest.err conftest.$ac_ext
   12366 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   12367 echo "${ECHO_T}$ac_header_preproc" >&6; }
   12368 
   12369 # So?  What about this header?
   12370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   12371   yes:no: )
   12372     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   12373 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   12374     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   12375 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   12376     ac_header_preproc=yes
   12377     ;;
   12378   no:yes:* )
   12379     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   12380 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   12381     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   12382 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   12383     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   12384 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   12385     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   12386 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   12387     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   12388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   12389     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   12390 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   12391     ( cat <<\_ASBOX
   12392 ## ------------------------------------------- ##
   12393 ## Report this to openssh-unix-dev (at] mindrot.org ##
   12394 ## ------------------------------------------- ##
   12395 _ASBOX
   12396      ) | sed "s/^/$as_me: WARNING:     /" >&2
   12397     ;;
   12398 esac
   12399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   12400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   12401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   12402   echo $ECHO_N "(cached) $ECHO_C" >&6
   12403 else
   12404   eval "$as_ac_Header=\$ac_header_preproc"
   12405 fi
   12406 ac_res=`eval echo '${'$as_ac_Header'}'`
   12407 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   12408 echo "${ECHO_T}$ac_res" >&6; }
   12409 
   12410 fi
   12411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   12412   cat >>confdefs.h <<_ACEOF
   12413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   12414 _ACEOF
   12415 
   12416 fi
   12417 
   12418 done
   12419 
   12420 else
   12421 
   12422 	{ echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
   12423 echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6; }
   12424 if test "${ac_cv_lib_gen_dirname+set}" = set; then
   12425   echo $ECHO_N "(cached) $ECHO_C" >&6
   12426 else
   12427   ac_check_lib_save_LIBS=$LIBS
   12428 LIBS="-lgen  $LIBS"
   12429 cat >conftest.$ac_ext <<_ACEOF
   12430 /* confdefs.h.  */
   12431 _ACEOF
   12432 cat confdefs.h >>conftest.$ac_ext
   12433 cat >>conftest.$ac_ext <<_ACEOF
   12434 /* end confdefs.h.  */
   12435 
   12436 /* Override any GCC internal prototype to avoid an error.
   12437    Use char because int might match the return type of a GCC
   12438    builtin and then its argument prototype would still apply.  */
   12439 #ifdef __cplusplus
   12440 extern "C"
   12441 #endif
   12442 char dirname ();
   12443 int
   12444 main ()
   12445 {
   12446 return dirname ();
   12447   ;
   12448   return 0;
   12449 }
   12450 _ACEOF
   12451 rm -f conftest.$ac_objext conftest$ac_exeext
   12452 if { (ac_try="$ac_link"
   12453 case "(($ac_try" in
   12454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12455   *) ac_try_echo=$ac_try;;
   12456 esac
   12457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12458   (eval "$ac_link") 2>conftest.er1
   12459   ac_status=$?
   12460   grep -v '^ *+' conftest.er1 >conftest.err
   12461   rm -f conftest.er1
   12462   cat conftest.err >&5
   12463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12464   (exit $ac_status); } && {
   12465 	 test -z "$ac_c_werror_flag" ||
   12466 	 test ! -s conftest.err
   12467        } && test -s conftest$ac_exeext &&
   12468        $as_test_x conftest$ac_exeext; then
   12469   ac_cv_lib_gen_dirname=yes
   12470 else
   12471   echo "$as_me: failed program was:" >&5
   12472 sed 's/^/| /' conftest.$ac_ext >&5
   12473 
   12474 	ac_cv_lib_gen_dirname=no
   12475 fi
   12476 
   12477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12478       conftest$ac_exeext conftest.$ac_ext
   12479 LIBS=$ac_check_lib_save_LIBS
   12480 fi
   12481 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
   12482 echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6; }
   12483 if test $ac_cv_lib_gen_dirname = yes; then
   12484 
   12485 		{ echo "$as_me:$LINENO: checking for broken dirname" >&5
   12486 echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6; }
   12487 if test "${ac_cv_have_broken_dirname+set}" = set; then
   12488   echo $ECHO_N "(cached) $ECHO_C" >&6
   12489 else
   12490 
   12491 			save_LIBS="$LIBS"
   12492 			LIBS="$LIBS -lgen"
   12493 			if test "$cross_compiling" = yes; then
   12494    ac_cv_have_broken_dirname="no"
   12495 else
   12496   cat >conftest.$ac_ext <<_ACEOF
   12497 /* confdefs.h.  */
   12498 _ACEOF
   12499 cat confdefs.h >>conftest.$ac_ext
   12500 cat >>conftest.$ac_ext <<_ACEOF
   12501 /* end confdefs.h.  */
   12502 
   12503 #include <libgen.h>
   12504 #include <string.h>
   12505 
   12506 int main(int argc, char **argv) {
   12507     char *s, buf[32];
   12508 
   12509     strncpy(buf,"/etc", 32);
   12510     s = dirname(buf);
   12511     if (!s || strncmp(s, "/", 32) != 0) {
   12512 	exit(1);
   12513     } else {
   12514 	exit(0);
   12515     }
   12516 }
   12517 
   12518 _ACEOF
   12519 rm -f conftest$ac_exeext
   12520 if { (ac_try="$ac_link"
   12521 case "(($ac_try" in
   12522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12523   *) ac_try_echo=$ac_try;;
   12524 esac
   12525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12526   (eval "$ac_link") 2>&5
   12527   ac_status=$?
   12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12529   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   12530   { (case "(($ac_try" in
   12531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12532   *) ac_try_echo=$ac_try;;
   12533 esac
   12534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12535   (eval "$ac_try") 2>&5
   12536   ac_status=$?
   12537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12538   (exit $ac_status); }; }; then
   12539    ac_cv_have_broken_dirname="no"
   12540 else
   12541   echo "$as_me: program exited with status $ac_status" >&5
   12542 echo "$as_me: failed program was:" >&5
   12543 sed 's/^/| /' conftest.$ac_ext >&5
   12544 
   12545 ( exit $ac_status )
   12546  ac_cv_have_broken_dirname="yes"
   12547 fi
   12548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   12549 fi
   12550 
   12551 
   12552 			LIBS="$save_LIBS"
   12553 
   12554 fi
   12555 { echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
   12556 echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6; }
   12557 		if test "x$ac_cv_have_broken_dirname" = "xno" ; then
   12558 			LIBS="$LIBS -lgen"
   12559 			cat >>confdefs.h <<\_ACEOF
   12560 #define HAVE_DIRNAME 1
   12561 _ACEOF
   12562 
   12563 
   12564 for ac_header in libgen.h
   12565 do
   12566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   12567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   12568   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   12569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   12570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   12571   echo $ECHO_N "(cached) $ECHO_C" >&6
   12572 fi
   12573 ac_res=`eval echo '${'$as_ac_Header'}'`
   12574 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   12575 echo "${ECHO_T}$ac_res" >&6; }
   12576 else
   12577   # Is the header compilable?
   12578 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   12579 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   12580 cat >conftest.$ac_ext <<_ACEOF
   12581 /* confdefs.h.  */
   12582 _ACEOF
   12583 cat confdefs.h >>conftest.$ac_ext
   12584 cat >>conftest.$ac_ext <<_ACEOF
   12585 /* end confdefs.h.  */
   12586 $ac_includes_default
   12587 #include <$ac_header>
   12588 _ACEOF
   12589 rm -f conftest.$ac_objext
   12590 if { (ac_try="$ac_compile"
   12591 case "(($ac_try" in
   12592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12593   *) ac_try_echo=$ac_try;;
   12594 esac
   12595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12596   (eval "$ac_compile") 2>conftest.er1
   12597   ac_status=$?
   12598   grep -v '^ *+' conftest.er1 >conftest.err
   12599   rm -f conftest.er1
   12600   cat conftest.err >&5
   12601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12602   (exit $ac_status); } && {
   12603 	 test -z "$ac_c_werror_flag" ||
   12604 	 test ! -s conftest.err
   12605        } && test -s conftest.$ac_objext; then
   12606   ac_header_compiler=yes
   12607 else
   12608   echo "$as_me: failed program was:" >&5
   12609 sed 's/^/| /' conftest.$ac_ext >&5
   12610 
   12611 	ac_header_compiler=no
   12612 fi
   12613 
   12614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12615 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   12616 echo "${ECHO_T}$ac_header_compiler" >&6; }
   12617 
   12618 # Is the header present?
   12619 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   12620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   12621 cat >conftest.$ac_ext <<_ACEOF
   12622 /* confdefs.h.  */
   12623 _ACEOF
   12624 cat confdefs.h >>conftest.$ac_ext
   12625 cat >>conftest.$ac_ext <<_ACEOF
   12626 /* end confdefs.h.  */
   12627 #include <$ac_header>
   12628 _ACEOF
   12629 if { (ac_try="$ac_cpp conftest.$ac_ext"
   12630 case "(($ac_try" in
   12631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12632   *) ac_try_echo=$ac_try;;
   12633 esac
   12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12635   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   12636   ac_status=$?
   12637   grep -v '^ *+' conftest.er1 >conftest.err
   12638   rm -f conftest.er1
   12639   cat conftest.err >&5
   12640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12641   (exit $ac_status); } >/dev/null && {
   12642 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   12643 	 test ! -s conftest.err
   12644        }; then
   12645   ac_header_preproc=yes
   12646 else
   12647   echo "$as_me: failed program was:" >&5
   12648 sed 's/^/| /' conftest.$ac_ext >&5
   12649 
   12650   ac_header_preproc=no
   12651 fi
   12652 
   12653 rm -f conftest.err conftest.$ac_ext
   12654 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   12655 echo "${ECHO_T}$ac_header_preproc" >&6; }
   12656 
   12657 # So?  What about this header?
   12658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   12659   yes:no: )
   12660     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   12661 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   12662     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   12663 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   12664     ac_header_preproc=yes
   12665     ;;
   12666   no:yes:* )
   12667     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   12668 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   12669     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   12670 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   12671     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   12672 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   12673     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   12674 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   12675     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   12676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   12677     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   12678 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   12679     ( cat <<\_ASBOX
   12680 ## ------------------------------------------- ##
   12681 ## Report this to openssh-unix-dev (at] mindrot.org ##
   12682 ## ------------------------------------------- ##
   12683 _ASBOX
   12684      ) | sed "s/^/$as_me: WARNING:     /" >&2
   12685     ;;
   12686 esac
   12687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   12688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   12689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   12690   echo $ECHO_N "(cached) $ECHO_C" >&6
   12691 else
   12692   eval "$as_ac_Header=\$ac_header_preproc"
   12693 fi
   12694 ac_res=`eval echo '${'$as_ac_Header'}'`
   12695 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   12696 echo "${ECHO_T}$ac_res" >&6; }
   12697 
   12698 fi
   12699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   12700   cat >>confdefs.h <<_ACEOF
   12701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   12702 _ACEOF
   12703 
   12704 fi
   12705 
   12706 done
   12707 
   12708 		fi
   12709 
   12710 fi
   12711 
   12712 
   12713 fi
   12714 done
   12715 
   12716 
   12717 { echo "$as_me:$LINENO: checking for getspnam" >&5
   12718 echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; }
   12719 if test "${ac_cv_func_getspnam+set}" = set; then
   12720   echo $ECHO_N "(cached) $ECHO_C" >&6
   12721 else
   12722   cat >conftest.$ac_ext <<_ACEOF
   12723 /* confdefs.h.  */
   12724 _ACEOF
   12725 cat confdefs.h >>conftest.$ac_ext
   12726 cat >>conftest.$ac_ext <<_ACEOF
   12727 /* end confdefs.h.  */
   12728 /* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
   12729    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   12730 #define getspnam innocuous_getspnam
   12731 
   12732 /* System header to define __stub macros and hopefully few prototypes,
   12733     which can conflict with char getspnam (); below.
   12734     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   12735     <limits.h> exists even on freestanding compilers.  */
   12736 
   12737 #ifdef __STDC__
   12738 # include <limits.h>
   12739 #else
   12740 # include <assert.h>
   12741 #endif
   12742 
   12743 #undef getspnam
   12744 
   12745 /* Override any GCC internal prototype to avoid an error.
   12746    Use char because int might match the return type of a GCC
   12747    builtin and then its argument prototype would still apply.  */
   12748 #ifdef __cplusplus
   12749 extern "C"
   12750 #endif
   12751 char getspnam ();
   12752 /* The GNU C library defines this for functions which it implements
   12753     to always fail with ENOSYS.  Some functions are actually named
   12754     something starting with __ and the normal name is an alias.  */
   12755 #if defined __stub_getspnam || defined __stub___getspnam
   12756 choke me
   12757 #endif
   12758 
   12759 int
   12760 main ()
   12761 {
   12762 return getspnam ();
   12763   ;
   12764   return 0;
   12765 }
   12766 _ACEOF
   12767 rm -f conftest.$ac_objext conftest$ac_exeext
   12768 if { (ac_try="$ac_link"
   12769 case "(($ac_try" in
   12770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12771   *) ac_try_echo=$ac_try;;
   12772 esac
   12773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12774   (eval "$ac_link") 2>conftest.er1
   12775   ac_status=$?
   12776   grep -v '^ *+' conftest.er1 >conftest.err
   12777   rm -f conftest.er1
   12778   cat conftest.err >&5
   12779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12780   (exit $ac_status); } && {
   12781 	 test -z "$ac_c_werror_flag" ||
   12782 	 test ! -s conftest.err
   12783        } && test -s conftest$ac_exeext &&
   12784        $as_test_x conftest$ac_exeext; then
   12785   ac_cv_func_getspnam=yes
   12786 else
   12787   echo "$as_me: failed program was:" >&5
   12788 sed 's/^/| /' conftest.$ac_ext >&5
   12789 
   12790 	ac_cv_func_getspnam=no
   12791 fi
   12792 
   12793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12794       conftest$ac_exeext conftest.$ac_ext
   12795 fi
   12796 { echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
   12797 echo "${ECHO_T}$ac_cv_func_getspnam" >&6; }
   12798 if test $ac_cv_func_getspnam = yes; then
   12799   :
   12800 else
   12801   { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
   12802 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; }
   12803 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
   12804   echo $ECHO_N "(cached) $ECHO_C" >&6
   12805 else
   12806   ac_check_lib_save_LIBS=$LIBS
   12807 LIBS="-lgen  $LIBS"
   12808 cat >conftest.$ac_ext <<_ACEOF
   12809 /* confdefs.h.  */
   12810 _ACEOF
   12811 cat confdefs.h >>conftest.$ac_ext
   12812 cat >>conftest.$ac_ext <<_ACEOF
   12813 /* end confdefs.h.  */
   12814 
   12815 /* Override any GCC internal prototype to avoid an error.
   12816    Use char because int might match the return type of a GCC
   12817    builtin and then its argument prototype would still apply.  */
   12818 #ifdef __cplusplus
   12819 extern "C"
   12820 #endif
   12821 char getspnam ();
   12822 int
   12823 main ()
   12824 {
   12825 return getspnam ();
   12826   ;
   12827   return 0;
   12828 }
   12829 _ACEOF
   12830 rm -f conftest.$ac_objext conftest$ac_exeext
   12831 if { (ac_try="$ac_link"
   12832 case "(($ac_try" in
   12833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12834   *) ac_try_echo=$ac_try;;
   12835 esac
   12836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12837   (eval "$ac_link") 2>conftest.er1
   12838   ac_status=$?
   12839   grep -v '^ *+' conftest.er1 >conftest.err
   12840   rm -f conftest.er1
   12841   cat conftest.err >&5
   12842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12843   (exit $ac_status); } && {
   12844 	 test -z "$ac_c_werror_flag" ||
   12845 	 test ! -s conftest.err
   12846        } && test -s conftest$ac_exeext &&
   12847        $as_test_x conftest$ac_exeext; then
   12848   ac_cv_lib_gen_getspnam=yes
   12849 else
   12850   echo "$as_me: failed program was:" >&5
   12851 sed 's/^/| /' conftest.$ac_ext >&5
   12852 
   12853 	ac_cv_lib_gen_getspnam=no
   12854 fi
   12855 
   12856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12857       conftest$ac_exeext conftest.$ac_ext
   12858 LIBS=$ac_check_lib_save_LIBS
   12859 fi
   12860 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
   12861 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; }
   12862 if test $ac_cv_lib_gen_getspnam = yes; then
   12863   LIBS="$LIBS -lgen"
   12864 fi
   12865 
   12866 fi
   12867 
   12868 { echo "$as_me:$LINENO: checking for library containing basename" >&5
   12869 echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; }
   12870 if test "${ac_cv_search_basename+set}" = set; then
   12871   echo $ECHO_N "(cached) $ECHO_C" >&6
   12872 else
   12873   ac_func_search_save_LIBS=$LIBS
   12874 cat >conftest.$ac_ext <<_ACEOF
   12875 /* confdefs.h.  */
   12876 _ACEOF
   12877 cat confdefs.h >>conftest.$ac_ext
   12878 cat >>conftest.$ac_ext <<_ACEOF
   12879 /* end confdefs.h.  */
   12880 
   12881 /* Override any GCC internal prototype to avoid an error.
   12882    Use char because int might match the return type of a GCC
   12883    builtin and then its argument prototype would still apply.  */
   12884 #ifdef __cplusplus
   12885 extern "C"
   12886 #endif
   12887 char basename ();
   12888 int
   12889 main ()
   12890 {
   12891 return basename ();
   12892   ;
   12893   return 0;
   12894 }
   12895 _ACEOF
   12896 for ac_lib in '' gen; do
   12897   if test -z "$ac_lib"; then
   12898     ac_res="none required"
   12899   else
   12900     ac_res=-l$ac_lib
   12901     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12902   fi
   12903   rm -f conftest.$ac_objext conftest$ac_exeext
   12904 if { (ac_try="$ac_link"
   12905 case "(($ac_try" in
   12906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12907   *) ac_try_echo=$ac_try;;
   12908 esac
   12909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12910   (eval "$ac_link") 2>conftest.er1
   12911   ac_status=$?
   12912   grep -v '^ *+' conftest.er1 >conftest.err
   12913   rm -f conftest.er1
   12914   cat conftest.err >&5
   12915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12916   (exit $ac_status); } && {
   12917 	 test -z "$ac_c_werror_flag" ||
   12918 	 test ! -s conftest.err
   12919        } && test -s conftest$ac_exeext &&
   12920        $as_test_x conftest$ac_exeext; then
   12921   ac_cv_search_basename=$ac_res
   12922 else
   12923   echo "$as_me: failed program was:" >&5
   12924 sed 's/^/| /' conftest.$ac_ext >&5
   12925 
   12926 
   12927 fi
   12928 
   12929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12930       conftest$ac_exeext
   12931   if test "${ac_cv_search_basename+set}" = set; then
   12932   break
   12933 fi
   12934 done
   12935 if test "${ac_cv_search_basename+set}" = set; then
   12936   :
   12937 else
   12938   ac_cv_search_basename=no
   12939 fi
   12940 rm conftest.$ac_ext
   12941 LIBS=$ac_func_search_save_LIBS
   12942 fi
   12943 { echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5
   12944 echo "${ECHO_T}$ac_cv_search_basename" >&6; }
   12945 ac_res=$ac_cv_search_basename
   12946 if test "$ac_res" != no; then
   12947   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12948 
   12949 cat >>confdefs.h <<\_ACEOF
   12950 #define HAVE_BASENAME 1
   12951 _ACEOF
   12952 
   12953 fi
   12954 
   12955 
   12956 
   12957 # Check whether --with-zlib was given.
   12958 if test "${with_zlib+set}" = set; then
   12959   withval=$with_zlib;  if test "x$withval" = "xno" ; then
   12960 		{ { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
   12961 echo "$as_me: error: *** zlib is required ***" >&2;}
   12962    { (exit 1); exit 1; }; }
   12963 	  elif test "x$withval" != "xyes"; then
   12964 		if test -d "$withval/lib"; then
   12965 			if test -n "${need_dash_r}"; then
   12966 				LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
   12967 			else
   12968 				LDFLAGS="-L${withval}/lib ${LDFLAGS}"
   12969 			fi
   12970 		else
   12971 			if test -n "${need_dash_r}"; then
   12972 				LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
   12973 			else
   12974 				LDFLAGS="-L${withval} ${LDFLAGS}"
   12975 			fi
   12976 		fi
   12977 		if test -d "$withval/include"; then
   12978 			CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
   12979 		else
   12980 			CPPFLAGS="-I${withval} ${CPPFLAGS}"
   12981 		fi
   12982 	fi
   12983 
   12984 fi
   12985 
   12986 
   12987 if test "${ac_cv_header_zlib_h+set}" = set; then
   12988   { echo "$as_me:$LINENO: checking for zlib.h" >&5
   12989 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
   12990 if test "${ac_cv_header_zlib_h+set}" = set; then
   12991   echo $ECHO_N "(cached) $ECHO_C" >&6
   12992 fi
   12993 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
   12994 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
   12995 else
   12996   # Is the header compilable?
   12997 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
   12998 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
   12999 cat >conftest.$ac_ext <<_ACEOF
   13000 /* confdefs.h.  */
   13001 _ACEOF
   13002 cat confdefs.h >>conftest.$ac_ext
   13003 cat >>conftest.$ac_ext <<_ACEOF
   13004 /* end confdefs.h.  */
   13005 $ac_includes_default
   13006 #include <zlib.h>
   13007 _ACEOF
   13008 rm -f conftest.$ac_objext
   13009 if { (ac_try="$ac_compile"
   13010 case "(($ac_try" in
   13011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13012   *) ac_try_echo=$ac_try;;
   13013 esac
   13014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13015   (eval "$ac_compile") 2>conftest.er1
   13016   ac_status=$?
   13017   grep -v '^ *+' conftest.er1 >conftest.err
   13018   rm -f conftest.er1
   13019   cat conftest.err >&5
   13020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13021   (exit $ac_status); } && {
   13022 	 test -z "$ac_c_werror_flag" ||
   13023 	 test ! -s conftest.err
   13024        } && test -s conftest.$ac_objext; then
   13025   ac_header_compiler=yes
   13026 else
   13027   echo "$as_me: failed program was:" >&5
   13028 sed 's/^/| /' conftest.$ac_ext >&5
   13029 
   13030 	ac_header_compiler=no
   13031 fi
   13032 
   13033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   13035 echo "${ECHO_T}$ac_header_compiler" >&6; }
   13036 
   13037 # Is the header present?
   13038 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
   13039 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
   13040 cat >conftest.$ac_ext <<_ACEOF
   13041 /* confdefs.h.  */
   13042 _ACEOF
   13043 cat confdefs.h >>conftest.$ac_ext
   13044 cat >>conftest.$ac_ext <<_ACEOF
   13045 /* end confdefs.h.  */
   13046 #include <zlib.h>
   13047 _ACEOF
   13048 if { (ac_try="$ac_cpp conftest.$ac_ext"
   13049 case "(($ac_try" in
   13050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13051   *) ac_try_echo=$ac_try;;
   13052 esac
   13053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13054   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   13055   ac_status=$?
   13056   grep -v '^ *+' conftest.er1 >conftest.err
   13057   rm -f conftest.er1
   13058   cat conftest.err >&5
   13059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13060   (exit $ac_status); } >/dev/null && {
   13061 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   13062 	 test ! -s conftest.err
   13063        }; then
   13064   ac_header_preproc=yes
   13065 else
   13066   echo "$as_me: failed program was:" >&5
   13067 sed 's/^/| /' conftest.$ac_ext >&5
   13068 
   13069   ac_header_preproc=no
   13070 fi
   13071 
   13072 rm -f conftest.err conftest.$ac_ext
   13073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   13074 echo "${ECHO_T}$ac_header_preproc" >&6; }
   13075 
   13076 # So?  What about this header?
   13077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   13078   yes:no: )
   13079     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
   13080 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   13081     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
   13082 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
   13083     ac_header_preproc=yes
   13084     ;;
   13085   no:yes:* )
   13086     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
   13087 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
   13088     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
   13089 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
   13090     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
   13091 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
   13092     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
   13093 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   13094     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
   13095 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
   13096     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
   13097 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
   13098     ( cat <<\_ASBOX
   13099 ## ------------------------------------------- ##
   13100 ## Report this to openssh-unix-dev (at] mindrot.org ##
   13101 ## ------------------------------------------- ##
   13102 _ASBOX
   13103      ) | sed "s/^/$as_me: WARNING:     /" >&2
   13104     ;;
   13105 esac
   13106 { echo "$as_me:$LINENO: checking for zlib.h" >&5
   13107 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
   13108 if test "${ac_cv_header_zlib_h+set}" = set; then
   13109   echo $ECHO_N "(cached) $ECHO_C" >&6
   13110 else
   13111   ac_cv_header_zlib_h=$ac_header_preproc
   13112 fi
   13113 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
   13114 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
   13115 
   13116 fi
   13117 if test $ac_cv_header_zlib_h = yes; then
   13118   :
   13119 else
   13120   { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5
   13121 echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;}
   13122    { (exit 1); exit 1; }; }
   13123 fi
   13124 
   13125 
   13126 
   13127 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
   13128 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
   13129 if test "${ac_cv_lib_z_deflate+set}" = set; then
   13130   echo $ECHO_N "(cached) $ECHO_C" >&6
   13131 else
   13132   ac_check_lib_save_LIBS=$LIBS
   13133 LIBS="-lz  $LIBS"
   13134 cat >conftest.$ac_ext <<_ACEOF
   13135 /* confdefs.h.  */
   13136 _ACEOF
   13137 cat confdefs.h >>conftest.$ac_ext
   13138 cat >>conftest.$ac_ext <<_ACEOF
   13139 /* end confdefs.h.  */
   13140 
   13141 /* Override any GCC internal prototype to avoid an error.
   13142    Use char because int might match the return type of a GCC
   13143    builtin and then its argument prototype would still apply.  */
   13144 #ifdef __cplusplus
   13145 extern "C"
   13146 #endif
   13147 char deflate ();
   13148 int
   13149 main ()
   13150 {
   13151 return deflate ();
   13152   ;
   13153   return 0;
   13154 }
   13155 _ACEOF
   13156 rm -f conftest.$ac_objext conftest$ac_exeext
   13157 if { (ac_try="$ac_link"
   13158 case "(($ac_try" in
   13159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13160   *) ac_try_echo=$ac_try;;
   13161 esac
   13162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13163   (eval "$ac_link") 2>conftest.er1
   13164   ac_status=$?
   13165   grep -v '^ *+' conftest.er1 >conftest.err
   13166   rm -f conftest.er1
   13167   cat conftest.err >&5
   13168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13169   (exit $ac_status); } && {
   13170 	 test -z "$ac_c_werror_flag" ||
   13171 	 test ! -s conftest.err
   13172        } && test -s conftest$ac_exeext &&
   13173        $as_test_x conftest$ac_exeext; then
   13174   ac_cv_lib_z_deflate=yes
   13175 else
   13176   echo "$as_me: failed program was:" >&5
   13177 sed 's/^/| /' conftest.$ac_ext >&5
   13178 
   13179 	ac_cv_lib_z_deflate=no
   13180 fi
   13181 
   13182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   13183       conftest$ac_exeext conftest.$ac_ext
   13184 LIBS=$ac_check_lib_save_LIBS
   13185 fi
   13186 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
   13187 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
   13188 if test $ac_cv_lib_z_deflate = yes; then
   13189   cat >>confdefs.h <<_ACEOF
   13190 #define HAVE_LIBZ 1
   13191 _ACEOF
   13192 
   13193   LIBS="-lz $LIBS"
   13194 
   13195 else
   13196 
   13197 		saved_CPPFLAGS="$CPPFLAGS"
   13198 		saved_LDFLAGS="$LDFLAGS"
   13199 		save_LIBS="$LIBS"
   13200 				if test -n "${need_dash_r}"; then
   13201 			LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
   13202 		else
   13203 			LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
   13204 		fi
   13205 		CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
   13206 		LIBS="$LIBS -lz"
   13207 		cat >conftest.$ac_ext <<_ACEOF
   13208 /* confdefs.h.  */
   13209 _ACEOF
   13210 cat confdefs.h >>conftest.$ac_ext
   13211 cat >>conftest.$ac_ext <<_ACEOF
   13212 /* end confdefs.h.  */
   13213 
   13214 /* Override any GCC internal prototype to avoid an error.
   13215    Use char because int might match the return type of a GCC
   13216    builtin and then its argument prototype would still apply.  */
   13217 #ifdef __cplusplus
   13218 extern "C"
   13219 #endif
   13220 char deflate ();
   13221 int
   13222 main ()
   13223 {
   13224 return deflate ();
   13225   ;
   13226   return 0;
   13227 }
   13228 _ACEOF
   13229 rm -f conftest.$ac_objext conftest$ac_exeext
   13230 if { (ac_try="$ac_link"
   13231 case "(($ac_try" in
   13232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13233   *) ac_try_echo=$ac_try;;
   13234 esac
   13235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13236   (eval "$ac_link") 2>conftest.er1
   13237   ac_status=$?
   13238   grep -v '^ *+' conftest.er1 >conftest.err
   13239   rm -f conftest.er1
   13240   cat conftest.err >&5
   13241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13242   (exit $ac_status); } && {
   13243 	 test -z "$ac_c_werror_flag" ||
   13244 	 test ! -s conftest.err
   13245        } && test -s conftest$ac_exeext &&
   13246        $as_test_x conftest$ac_exeext; then
   13247   cat >>confdefs.h <<\_ACEOF
   13248 #define HAVE_LIBZ 1
   13249 _ACEOF
   13250 
   13251 else
   13252   echo "$as_me: failed program was:" >&5
   13253 sed 's/^/| /' conftest.$ac_ext >&5
   13254 
   13255 
   13256 				{ { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
   13257 echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
   13258    { (exit 1); exit 1; }; }
   13259 
   13260 
   13261 fi
   13262 
   13263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   13264       conftest$ac_exeext conftest.$ac_ext
   13265 
   13266 
   13267 fi
   13268 
   13269 
   13270 
   13271 # Check whether --with-zlib-version-check was given.
   13272 if test "${with_zlib_version_check+set}" = set; then
   13273   withval=$with_zlib_version_check;   if test "x$withval" = "xno" ; then
   13274 		zlib_check_nonfatal=1
   13275 	   fi
   13276 
   13277 
   13278 fi
   13279 
   13280 
   13281 { echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5
   13282 echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6; }
   13283 if test "$cross_compiling" = yes; then
   13284   	{ echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5
   13285 echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
   13286 
   13287 else
   13288   cat >conftest.$ac_ext <<_ACEOF
   13289 /* confdefs.h.  */
   13290 _ACEOF
   13291 cat confdefs.h >>conftest.$ac_ext
   13292 cat >>conftest.$ac_ext <<_ACEOF
   13293 /* end confdefs.h.  */
   13294 
   13295 #include <stdio.h>
   13296 #include <stdlib.h>
   13297 #include <zlib.h>
   13298 
   13299 int
   13300 main ()
   13301 {
   13302 
   13303 	int a=0, b=0, c=0, d=0, n, v;
   13304 	n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
   13305 	if (n != 3 && n != 4)
   13306 		exit(1);
   13307 	v = a*1000000 + b*10000 + c*100 + d;
   13308 	fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
   13309 
   13310 	/* 1.1.4 is OK */
   13311 	if (a == 1 && b == 1 && c >= 4)
   13312 		exit(0);
   13313 
   13314 	/* 1.2.3 and up are OK */
   13315 	if (v >= 1020300)
   13316 		exit(0);
   13317 
   13318 	exit(2);
   13319 
   13320   ;
   13321   return 0;
   13322 }
   13323 _ACEOF
   13324 rm -f conftest$ac_exeext
   13325 if { (ac_try="$ac_link"
   13326 case "(($ac_try" in
   13327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13328   *) ac_try_echo=$ac_try;;
   13329 esac
   13330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13331   (eval "$ac_link") 2>&5
   13332   ac_status=$?
   13333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13334   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   13335   { (case "(($ac_try" in
   13336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13337   *) ac_try_echo=$ac_try;;
   13338 esac
   13339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13340   (eval "$ac_try") 2>&5
   13341   ac_status=$?
   13342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13343   (exit $ac_status); }; }; then
   13344   { echo "$as_me:$LINENO: result: no" >&5
   13345 echo "${ECHO_T}no" >&6; }
   13346 else
   13347   echo "$as_me: program exited with status $ac_status" >&5
   13348 echo "$as_me: failed program was:" >&5
   13349 sed 's/^/| /' conftest.$ac_ext >&5
   13350 
   13351 ( exit $ac_status )
   13352  { echo "$as_me:$LINENO: result: yes" >&5
   13353 echo "${ECHO_T}yes" >&6; }
   13354 	  if test -z "$zlib_check_nonfatal" ; then
   13355 		{ { echo "$as_me:$LINENO: error: *** zlib too old - check config.log ***
   13356 Your reported zlib version has known security problems.  It's possible your
   13357 vendor has fixed these problems without changing the version number.  If you
   13358 are sure this is the case, you can disable the check by running
   13359 \"./configure --without-zlib-version-check\".
   13360 If you are in doubt, upgrade zlib to version 1.2.3 or greater.
   13361 See http://www.gzip.org/zlib/ for details." >&5
   13362 echo "$as_me: error: *** zlib too old - check config.log ***
   13363 Your reported zlib version has known security problems.  It's possible your
   13364 vendor has fixed these problems without changing the version number.  If you
   13365 are sure this is the case, you can disable the check by running
   13366 \"./configure --without-zlib-version-check\".
   13367 If you are in doubt, upgrade zlib to version 1.2.3 or greater.
   13368 See http://www.gzip.org/zlib/ for details." >&2;}
   13369    { (exit 1); exit 1; }; }
   13370 	  else
   13371 		{ echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5
   13372 echo "$as_me: WARNING: zlib version may have security problems" >&2;}
   13373 	  fi
   13374 
   13375 fi
   13376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   13377 fi
   13378 
   13379 
   13380 
   13381 { echo "$as_me:$LINENO: checking for strcasecmp" >&5
   13382 echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
   13383 if test "${ac_cv_func_strcasecmp+set}" = set; then
   13384   echo $ECHO_N "(cached) $ECHO_C" >&6
   13385 else
   13386   cat >conftest.$ac_ext <<_ACEOF
   13387 /* confdefs.h.  */
   13388 _ACEOF
   13389 cat confdefs.h >>conftest.$ac_ext
   13390 cat >>conftest.$ac_ext <<_ACEOF
   13391 /* end confdefs.h.  */
   13392 /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
   13393    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   13394 #define strcasecmp innocuous_strcasecmp
   13395 
   13396 /* System header to define __stub macros and hopefully few prototypes,
   13397     which can conflict with char strcasecmp (); below.
   13398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   13399     <limits.h> exists even on freestanding compilers.  */
   13400 
   13401 #ifdef __STDC__
   13402 # include <limits.h>
   13403 #else
   13404 # include <assert.h>
   13405 #endif
   13406 
   13407 #undef strcasecmp
   13408 
   13409 /* Override any GCC internal prototype to avoid an error.
   13410    Use char because int might match the return type of a GCC
   13411    builtin and then its argument prototype would still apply.  */
   13412 #ifdef __cplusplus
   13413 extern "C"
   13414 #endif
   13415 char strcasecmp ();
   13416 /* The GNU C library defines this for functions which it implements
   13417     to always fail with ENOSYS.  Some functions are actually named
   13418     something starting with __ and the normal name is an alias.  */
   13419 #if defined __stub_strcasecmp || defined __stub___strcasecmp
   13420 choke me
   13421 #endif
   13422 
   13423 int
   13424 main ()
   13425 {
   13426 return strcasecmp ();
   13427   ;
   13428   return 0;
   13429 }
   13430 _ACEOF
   13431 rm -f conftest.$ac_objext conftest$ac_exeext
   13432 if { (ac_try="$ac_link"
   13433 case "(($ac_try" in
   13434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13435   *) ac_try_echo=$ac_try;;
   13436 esac
   13437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13438   (eval "$ac_link") 2>conftest.er1
   13439   ac_status=$?
   13440   grep -v '^ *+' conftest.er1 >conftest.err
   13441   rm -f conftest.er1
   13442   cat conftest.err >&5
   13443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13444   (exit $ac_status); } && {
   13445 	 test -z "$ac_c_werror_flag" ||
   13446 	 test ! -s conftest.err
   13447        } && test -s conftest$ac_exeext &&
   13448        $as_test_x conftest$ac_exeext; then
   13449   ac_cv_func_strcasecmp=yes
   13450 else
   13451   echo "$as_me: failed program was:" >&5
   13452 sed 's/^/| /' conftest.$ac_ext >&5
   13453 
   13454 	ac_cv_func_strcasecmp=no
   13455 fi
   13456 
   13457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   13458       conftest$ac_exeext conftest.$ac_ext
   13459 fi
   13460 { echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
   13461 echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
   13462 if test $ac_cv_func_strcasecmp = yes; then
   13463   :
   13464 else
   13465    { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
   13466 echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; }
   13467 if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
   13468   echo $ECHO_N "(cached) $ECHO_C" >&6
   13469 else
   13470   ac_check_lib_save_LIBS=$LIBS
   13471 LIBS="-lresolv  $LIBS"
   13472 cat >conftest.$ac_ext <<_ACEOF
   13473 /* confdefs.h.  */
   13474 _ACEOF
   13475 cat confdefs.h >>conftest.$ac_ext
   13476 cat >>conftest.$ac_ext <<_ACEOF
   13477 /* end confdefs.h.  */
   13478 
   13479 /* Override any GCC internal prototype to avoid an error.
   13480    Use char because int might match the return type of a GCC
   13481    builtin and then its argument prototype would still apply.  */
   13482 #ifdef __cplusplus
   13483 extern "C"
   13484 #endif
   13485 char strcasecmp ();
   13486 int
   13487 main ()
   13488 {
   13489 return strcasecmp ();
   13490   ;
   13491   return 0;
   13492 }
   13493 _ACEOF
   13494 rm -f conftest.$ac_objext conftest$ac_exeext
   13495 if { (ac_try="$ac_link"
   13496 case "(($ac_try" in
   13497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13498   *) ac_try_echo=$ac_try;;
   13499 esac
   13500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13501   (eval "$ac_link") 2>conftest.er1
   13502   ac_status=$?
   13503   grep -v '^ *+' conftest.er1 >conftest.err
   13504   rm -f conftest.er1
   13505   cat conftest.err >&5
   13506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13507   (exit $ac_status); } && {
   13508 	 test -z "$ac_c_werror_flag" ||
   13509 	 test ! -s conftest.err
   13510        } && test -s conftest$ac_exeext &&
   13511        $as_test_x conftest$ac_exeext; then
   13512   ac_cv_lib_resolv_strcasecmp=yes
   13513 else
   13514   echo "$as_me: failed program was:" >&5
   13515 sed 's/^/| /' conftest.$ac_ext >&5
   13516 
   13517 	ac_cv_lib_resolv_strcasecmp=no
   13518 fi
   13519 
   13520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   13521       conftest$ac_exeext conftest.$ac_ext
   13522 LIBS=$ac_check_lib_save_LIBS
   13523 fi
   13524 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
   13525 echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; }
   13526 if test $ac_cv_lib_resolv_strcasecmp = yes; then
   13527   LIBS="$LIBS -lresolv"
   13528 fi
   13529 
   13530 
   13531 fi
   13532 
   13533 
   13534 for ac_func in utimes
   13535 do
   13536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   13537 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   13538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   13539 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   13540   echo $ECHO_N "(cached) $ECHO_C" >&6
   13541 else
   13542   cat >conftest.$ac_ext <<_ACEOF
   13543 /* confdefs.h.  */
   13544 _ACEOF
   13545 cat confdefs.h >>conftest.$ac_ext
   13546 cat >>conftest.$ac_ext <<_ACEOF
   13547 /* end confdefs.h.  */
   13548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   13549    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   13550 #define $ac_func innocuous_$ac_func
   13551 
   13552 /* System header to define __stub macros and hopefully few prototypes,
   13553     which can conflict with char $ac_func (); below.
   13554     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   13555     <limits.h> exists even on freestanding compilers.  */
   13556 
   13557 #ifdef __STDC__
   13558 # include <limits.h>
   13559 #else
   13560 # include <assert.h>
   13561 #endif
   13562 
   13563 #undef $ac_func
   13564 
   13565 /* Override any GCC internal prototype to avoid an error.
   13566    Use char because int might match the return type of a GCC
   13567    builtin and then its argument prototype would still apply.  */
   13568 #ifdef __cplusplus
   13569 extern "C"
   13570 #endif
   13571 char $ac_func ();
   13572 /* The GNU C library defines this for functions which it implements
   13573     to always fail with ENOSYS.  Some functions are actually named
   13574     something starting with __ and the normal name is an alias.  */
   13575 #if defined __stub_$ac_func || defined __stub___$ac_func
   13576 choke me
   13577 #endif
   13578 
   13579 int
   13580 main ()
   13581 {
   13582 return $ac_func ();
   13583   ;
   13584   return 0;
   13585 }
   13586 _ACEOF
   13587 rm -f conftest.$ac_objext conftest$ac_exeext
   13588 if { (ac_try="$ac_link"
   13589 case "(($ac_try" in
   13590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13591   *) ac_try_echo=$ac_try;;
   13592 esac
   13593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13594   (eval "$ac_link") 2>conftest.er1
   13595   ac_status=$?
   13596   grep -v '^ *+' conftest.er1 >conftest.err
   13597   rm -f conftest.er1
   13598   cat conftest.err >&5
   13599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13600   (exit $ac_status); } && {
   13601 	 test -z "$ac_c_werror_flag" ||
   13602 	 test ! -s conftest.err
   13603        } && test -s conftest$ac_exeext &&
   13604        $as_test_x conftest$ac_exeext; then
   13605   eval "$as_ac_var=yes"
   13606 else
   13607   echo "$as_me: failed program was:" >&5
   13608 sed 's/^/| /' conftest.$ac_ext >&5
   13609 
   13610 	eval "$as_ac_var=no"
   13611 fi
   13612 
   13613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   13614       conftest$ac_exeext conftest.$ac_ext
   13615 fi
   13616 ac_res=`eval echo '${'$as_ac_var'}'`
   13617 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   13618 echo "${ECHO_T}$ac_res" >&6; }
   13619 if test `eval echo '${'$as_ac_var'}'` = yes; then
   13620   cat >>confdefs.h <<_ACEOF
   13621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   13622 _ACEOF
   13623 
   13624 else
   13625    { echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
   13626 echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6; }
   13627 if test "${ac_cv_lib_c89_utimes+set}" = set; then
   13628   echo $ECHO_N "(cached) $ECHO_C" >&6
   13629 else
   13630   ac_check_lib_save_LIBS=$LIBS
   13631 LIBS="-lc89  $LIBS"
   13632 cat >conftest.$ac_ext <<_ACEOF
   13633 /* confdefs.h.  */
   13634 _ACEOF
   13635 cat confdefs.h >>conftest.$ac_ext
   13636 cat >>conftest.$ac_ext <<_ACEOF
   13637 /* end confdefs.h.  */
   13638 
   13639 /* Override any GCC internal prototype to avoid an error.
   13640    Use char because int might match the return type of a GCC
   13641    builtin and then its argument prototype would still apply.  */
   13642 #ifdef __cplusplus
   13643 extern "C"
   13644 #endif
   13645 char utimes ();
   13646 int
   13647 main ()
   13648 {
   13649 return utimes ();
   13650   ;
   13651   return 0;
   13652 }
   13653 _ACEOF
   13654 rm -f conftest.$ac_objext conftest$ac_exeext
   13655 if { (ac_try="$ac_link"
   13656 case "(($ac_try" in
   13657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13658   *) ac_try_echo=$ac_try;;
   13659 esac
   13660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13661   (eval "$ac_link") 2>conftest.er1
   13662   ac_status=$?
   13663   grep -v '^ *+' conftest.er1 >conftest.err
   13664   rm -f conftest.er1
   13665   cat conftest.err >&5
   13666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13667   (exit $ac_status); } && {
   13668 	 test -z "$ac_c_werror_flag" ||
   13669 	 test ! -s conftest.err
   13670        } && test -s conftest$ac_exeext &&
   13671        $as_test_x conftest$ac_exeext; then
   13672   ac_cv_lib_c89_utimes=yes
   13673 else
   13674   echo "$as_me: failed program was:" >&5
   13675 sed 's/^/| /' conftest.$ac_ext >&5
   13676 
   13677 	ac_cv_lib_c89_utimes=no
   13678 fi
   13679 
   13680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   13681       conftest$ac_exeext conftest.$ac_ext
   13682 LIBS=$ac_check_lib_save_LIBS
   13683 fi
   13684 { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
   13685 echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6; }
   13686 if test $ac_cv_lib_c89_utimes = yes; then
   13687   cat >>confdefs.h <<\_ACEOF
   13688 #define HAVE_UTIMES 1
   13689 _ACEOF
   13690 
   13691 					LIBS="$LIBS -lc89"
   13692 fi
   13693 
   13694 
   13695 fi
   13696 done
   13697 
   13698 
   13699 
   13700 
   13701 for ac_header in bsd/libutil.h libutil.h
   13702 do
   13703 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   13704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   13705   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   13706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   13707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   13708   echo $ECHO_N "(cached) $ECHO_C" >&6
   13709 fi
   13710 ac_res=`eval echo '${'$as_ac_Header'}'`
   13711 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   13712 echo "${ECHO_T}$ac_res" >&6; }
   13713 else
   13714   # Is the header compilable?
   13715 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   13716 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   13717 cat >conftest.$ac_ext <<_ACEOF
   13718 /* confdefs.h.  */
   13719 _ACEOF
   13720 cat confdefs.h >>conftest.$ac_ext
   13721 cat >>conftest.$ac_ext <<_ACEOF
   13722 /* end confdefs.h.  */
   13723 $ac_includes_default
   13724 #include <$ac_header>
   13725 _ACEOF
   13726 rm -f conftest.$ac_objext
   13727 if { (ac_try="$ac_compile"
   13728 case "(($ac_try" in
   13729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13730   *) ac_try_echo=$ac_try;;
   13731 esac
   13732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13733   (eval "$ac_compile") 2>conftest.er1
   13734   ac_status=$?
   13735   grep -v '^ *+' conftest.er1 >conftest.err
   13736   rm -f conftest.er1
   13737   cat conftest.err >&5
   13738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13739   (exit $ac_status); } && {
   13740 	 test -z "$ac_c_werror_flag" ||
   13741 	 test ! -s conftest.err
   13742        } && test -s conftest.$ac_objext; then
   13743   ac_header_compiler=yes
   13744 else
   13745   echo "$as_me: failed program was:" >&5
   13746 sed 's/^/| /' conftest.$ac_ext >&5
   13747 
   13748 	ac_header_compiler=no
   13749 fi
   13750 
   13751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13752 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   13753 echo "${ECHO_T}$ac_header_compiler" >&6; }
   13754 
   13755 # Is the header present?
   13756 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   13757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   13758 cat >conftest.$ac_ext <<_ACEOF
   13759 /* confdefs.h.  */
   13760 _ACEOF
   13761 cat confdefs.h >>conftest.$ac_ext
   13762 cat >>conftest.$ac_ext <<_ACEOF
   13763 /* end confdefs.h.  */
   13764 #include <$ac_header>
   13765 _ACEOF
   13766 if { (ac_try="$ac_cpp conftest.$ac_ext"
   13767 case "(($ac_try" in
   13768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13769   *) ac_try_echo=$ac_try;;
   13770 esac
   13771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13772   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   13773   ac_status=$?
   13774   grep -v '^ *+' conftest.er1 >conftest.err
   13775   rm -f conftest.er1
   13776   cat conftest.err >&5
   13777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13778   (exit $ac_status); } >/dev/null && {
   13779 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   13780 	 test ! -s conftest.err
   13781        }; then
   13782   ac_header_preproc=yes
   13783 else
   13784   echo "$as_me: failed program was:" >&5
   13785 sed 's/^/| /' conftest.$ac_ext >&5
   13786 
   13787   ac_header_preproc=no
   13788 fi
   13789 
   13790 rm -f conftest.err conftest.$ac_ext
   13791 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   13792 echo "${ECHO_T}$ac_header_preproc" >&6; }
   13793 
   13794 # So?  What about this header?
   13795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   13796   yes:no: )
   13797     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   13798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   13799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   13800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   13801     ac_header_preproc=yes
   13802     ;;
   13803   no:yes:* )
   13804     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   13805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   13806     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   13807 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   13808     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   13809 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   13810     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   13811 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   13812     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   13813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   13814     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   13815 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   13816     ( cat <<\_ASBOX
   13817 ## ------------------------------------------- ##
   13818 ## Report this to openssh-unix-dev (at] mindrot.org ##
   13819 ## ------------------------------------------- ##
   13820 _ASBOX
   13821      ) | sed "s/^/$as_me: WARNING:     /" >&2
   13822     ;;
   13823 esac
   13824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   13825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   13826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   13827   echo $ECHO_N "(cached) $ECHO_C" >&6
   13828 else
   13829   eval "$as_ac_Header=\$ac_header_preproc"
   13830 fi
   13831 ac_res=`eval echo '${'$as_ac_Header'}'`
   13832 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   13833 echo "${ECHO_T}$ac_res" >&6; }
   13834 
   13835 fi
   13836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   13837   cat >>confdefs.h <<_ACEOF
   13838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   13839 _ACEOF
   13840 
   13841 fi
   13842 
   13843 done
   13844 
   13845 { echo "$as_me:$LINENO: checking for library containing fmt_scaled" >&5
   13846 echo $ECHO_N "checking for library containing fmt_scaled... $ECHO_C" >&6; }
   13847 if test "${ac_cv_search_fmt_scaled+set}" = set; then
   13848   echo $ECHO_N "(cached) $ECHO_C" >&6
   13849 else
   13850   ac_func_search_save_LIBS=$LIBS
   13851 cat >conftest.$ac_ext <<_ACEOF
   13852 /* confdefs.h.  */
   13853 _ACEOF
   13854 cat confdefs.h >>conftest.$ac_ext
   13855 cat >>conftest.$ac_ext <<_ACEOF
   13856 /* end confdefs.h.  */
   13857 
   13858 /* Override any GCC internal prototype to avoid an error.
   13859    Use char because int might match the return type of a GCC
   13860    builtin and then its argument prototype would still apply.  */
   13861 #ifdef __cplusplus
   13862 extern "C"
   13863 #endif
   13864 char fmt_scaled ();
   13865 int
   13866 main ()
   13867 {
   13868 return fmt_scaled ();
   13869   ;
   13870   return 0;
   13871 }
   13872 _ACEOF
   13873 for ac_lib in '' util bsd; do
   13874   if test -z "$ac_lib"; then
   13875     ac_res="none required"
   13876   else
   13877     ac_res=-l$ac_lib
   13878     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   13879   fi
   13880   rm -f conftest.$ac_objext conftest$ac_exeext
   13881 if { (ac_try="$ac_link"
   13882 case "(($ac_try" in
   13883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13884   *) ac_try_echo=$ac_try;;
   13885 esac
   13886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13887   (eval "$ac_link") 2>conftest.er1
   13888   ac_status=$?
   13889   grep -v '^ *+' conftest.er1 >conftest.err
   13890   rm -f conftest.er1
   13891   cat conftest.err >&5
   13892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13893   (exit $ac_status); } && {
   13894 	 test -z "$ac_c_werror_flag" ||
   13895 	 test ! -s conftest.err
   13896        } && test -s conftest$ac_exeext &&
   13897        $as_test_x conftest$ac_exeext; then
   13898   ac_cv_search_fmt_scaled=$ac_res
   13899 else
   13900   echo "$as_me: failed program was:" >&5
   13901 sed 's/^/| /' conftest.$ac_ext >&5
   13902 
   13903 
   13904 fi
   13905 
   13906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   13907       conftest$ac_exeext
   13908   if test "${ac_cv_search_fmt_scaled+set}" = set; then
   13909   break
   13910 fi
   13911 done
   13912 if test "${ac_cv_search_fmt_scaled+set}" = set; then
   13913   :
   13914 else
   13915   ac_cv_search_fmt_scaled=no
   13916 fi
   13917 rm conftest.$ac_ext
   13918 LIBS=$ac_func_search_save_LIBS
   13919 fi
   13920 { echo "$as_me:$LINENO: result: $ac_cv_search_fmt_scaled" >&5
   13921 echo "${ECHO_T}$ac_cv_search_fmt_scaled" >&6; }
   13922 ac_res=$ac_cv_search_fmt_scaled
   13923 if test "$ac_res" != no; then
   13924   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   13925 
   13926 fi
   13927 
   13928 { echo "$as_me:$LINENO: checking for library containing scan_scaled" >&5
   13929 echo $ECHO_N "checking for library containing scan_scaled... $ECHO_C" >&6; }
   13930 if test "${ac_cv_search_scan_scaled+set}" = set; then
   13931   echo $ECHO_N "(cached) $ECHO_C" >&6
   13932 else
   13933   ac_func_search_save_LIBS=$LIBS
   13934 cat >conftest.$ac_ext <<_ACEOF
   13935 /* confdefs.h.  */
   13936 _ACEOF
   13937 cat confdefs.h >>conftest.$ac_ext
   13938 cat >>conftest.$ac_ext <<_ACEOF
   13939 /* end confdefs.h.  */
   13940 
   13941 /* Override any GCC internal prototype to avoid an error.
   13942    Use char because int might match the return type of a GCC
   13943    builtin and then its argument prototype would still apply.  */
   13944 #ifdef __cplusplus
   13945 extern "C"
   13946 #endif
   13947 char scan_scaled ();
   13948 int
   13949 main ()
   13950 {
   13951 return scan_scaled ();
   13952   ;
   13953   return 0;
   13954 }
   13955 _ACEOF
   13956 for ac_lib in '' util bsd; do
   13957   if test -z "$ac_lib"; then
   13958     ac_res="none required"
   13959   else
   13960     ac_res=-l$ac_lib
   13961     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   13962   fi
   13963   rm -f conftest.$ac_objext conftest$ac_exeext
   13964 if { (ac_try="$ac_link"
   13965 case "(($ac_try" in
   13966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13967   *) ac_try_echo=$ac_try;;
   13968 esac
   13969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   13970   (eval "$ac_link") 2>conftest.er1
   13971   ac_status=$?
   13972   grep -v '^ *+' conftest.er1 >conftest.err
   13973   rm -f conftest.er1
   13974   cat conftest.err >&5
   13975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   13976   (exit $ac_status); } && {
   13977 	 test -z "$ac_c_werror_flag" ||
   13978 	 test ! -s conftest.err
   13979        } && test -s conftest$ac_exeext &&
   13980        $as_test_x conftest$ac_exeext; then
   13981   ac_cv_search_scan_scaled=$ac_res
   13982 else
   13983   echo "$as_me: failed program was:" >&5
   13984 sed 's/^/| /' conftest.$ac_ext >&5
   13985 
   13986 
   13987 fi
   13988 
   13989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   13990       conftest$ac_exeext
   13991   if test "${ac_cv_search_scan_scaled+set}" = set; then
   13992   break
   13993 fi
   13994 done
   13995 if test "${ac_cv_search_scan_scaled+set}" = set; then
   13996   :
   13997 else
   13998   ac_cv_search_scan_scaled=no
   13999 fi
   14000 rm conftest.$ac_ext
   14001 LIBS=$ac_func_search_save_LIBS
   14002 fi
   14003 { echo "$as_me:$LINENO: result: $ac_cv_search_scan_scaled" >&5
   14004 echo "${ECHO_T}$ac_cv_search_scan_scaled" >&6; }
   14005 ac_res=$ac_cv_search_scan_scaled
   14006 if test "$ac_res" != no; then
   14007   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   14008 
   14009 fi
   14010 
   14011 { echo "$as_me:$LINENO: checking for library containing login" >&5
   14012 echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; }
   14013 if test "${ac_cv_search_login+set}" = set; then
   14014   echo $ECHO_N "(cached) $ECHO_C" >&6
   14015 else
   14016   ac_func_search_save_LIBS=$LIBS
   14017 cat >conftest.$ac_ext <<_ACEOF
   14018 /* confdefs.h.  */
   14019 _ACEOF
   14020 cat confdefs.h >>conftest.$ac_ext
   14021 cat >>conftest.$ac_ext <<_ACEOF
   14022 /* end confdefs.h.  */
   14023 
   14024 /* Override any GCC internal prototype to avoid an error.
   14025    Use char because int might match the return type of a GCC
   14026    builtin and then its argument prototype would still apply.  */
   14027 #ifdef __cplusplus
   14028 extern "C"
   14029 #endif
   14030 char login ();
   14031 int
   14032 main ()
   14033 {
   14034 return login ();
   14035   ;
   14036   return 0;
   14037 }
   14038 _ACEOF
   14039 for ac_lib in '' util bsd; do
   14040   if test -z "$ac_lib"; then
   14041     ac_res="none required"
   14042   else
   14043     ac_res=-l$ac_lib
   14044     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   14045   fi
   14046   rm -f conftest.$ac_objext conftest$ac_exeext
   14047 if { (ac_try="$ac_link"
   14048 case "(($ac_try" in
   14049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14050   *) ac_try_echo=$ac_try;;
   14051 esac
   14052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14053   (eval "$ac_link") 2>conftest.er1
   14054   ac_status=$?
   14055   grep -v '^ *+' conftest.er1 >conftest.err
   14056   rm -f conftest.er1
   14057   cat conftest.err >&5
   14058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14059   (exit $ac_status); } && {
   14060 	 test -z "$ac_c_werror_flag" ||
   14061 	 test ! -s conftest.err
   14062        } && test -s conftest$ac_exeext &&
   14063        $as_test_x conftest$ac_exeext; then
   14064   ac_cv_search_login=$ac_res
   14065 else
   14066   echo "$as_me: failed program was:" >&5
   14067 sed 's/^/| /' conftest.$ac_ext >&5
   14068 
   14069 
   14070 fi
   14071 
   14072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   14073       conftest$ac_exeext
   14074   if test "${ac_cv_search_login+set}" = set; then
   14075   break
   14076 fi
   14077 done
   14078 if test "${ac_cv_search_login+set}" = set; then
   14079   :
   14080 else
   14081   ac_cv_search_login=no
   14082 fi
   14083 rm conftest.$ac_ext
   14084 LIBS=$ac_func_search_save_LIBS
   14085 fi
   14086 { echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
   14087 echo "${ECHO_T}$ac_cv_search_login" >&6; }
   14088 ac_res=$ac_cv_search_login
   14089 if test "$ac_res" != no; then
   14090   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   14091 
   14092 fi
   14093 
   14094 { echo "$as_me:$LINENO: checking for library containing logout" >&5
   14095 echo $ECHO_N "checking for library containing logout... $ECHO_C" >&6; }
   14096 if test "${ac_cv_search_logout+set}" = set; then
   14097   echo $ECHO_N "(cached) $ECHO_C" >&6
   14098 else
   14099   ac_func_search_save_LIBS=$LIBS
   14100 cat >conftest.$ac_ext <<_ACEOF
   14101 /* confdefs.h.  */
   14102 _ACEOF
   14103 cat confdefs.h >>conftest.$ac_ext
   14104 cat >>conftest.$ac_ext <<_ACEOF
   14105 /* end confdefs.h.  */
   14106 
   14107 /* Override any GCC internal prototype to avoid an error.
   14108    Use char because int might match the return type of a GCC
   14109    builtin and then its argument prototype would still apply.  */
   14110 #ifdef __cplusplus
   14111 extern "C"
   14112 #endif
   14113 char logout ();
   14114 int
   14115 main ()
   14116 {
   14117 return logout ();
   14118   ;
   14119   return 0;
   14120 }
   14121 _ACEOF
   14122 for ac_lib in '' util bsd; do
   14123   if test -z "$ac_lib"; then
   14124     ac_res="none required"
   14125   else
   14126     ac_res=-l$ac_lib
   14127     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   14128   fi
   14129   rm -f conftest.$ac_objext conftest$ac_exeext
   14130 if { (ac_try="$ac_link"
   14131 case "(($ac_try" in
   14132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14133   *) ac_try_echo=$ac_try;;
   14134 esac
   14135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14136   (eval "$ac_link") 2>conftest.er1
   14137   ac_status=$?
   14138   grep -v '^ *+' conftest.er1 >conftest.err
   14139   rm -f conftest.er1
   14140   cat conftest.err >&5
   14141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14142   (exit $ac_status); } && {
   14143 	 test -z "$ac_c_werror_flag" ||
   14144 	 test ! -s conftest.err
   14145        } && test -s conftest$ac_exeext &&
   14146        $as_test_x conftest$ac_exeext; then
   14147   ac_cv_search_logout=$ac_res
   14148 else
   14149   echo "$as_me: failed program was:" >&5
   14150 sed 's/^/| /' conftest.$ac_ext >&5
   14151 
   14152 
   14153 fi
   14154 
   14155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   14156       conftest$ac_exeext
   14157   if test "${ac_cv_search_logout+set}" = set; then
   14158   break
   14159 fi
   14160 done
   14161 if test "${ac_cv_search_logout+set}" = set; then
   14162   :
   14163 else
   14164   ac_cv_search_logout=no
   14165 fi
   14166 rm conftest.$ac_ext
   14167 LIBS=$ac_func_search_save_LIBS
   14168 fi
   14169 { echo "$as_me:$LINENO: result: $ac_cv_search_logout" >&5
   14170 echo "${ECHO_T}$ac_cv_search_logout" >&6; }
   14171 ac_res=$ac_cv_search_logout
   14172 if test "$ac_res" != no; then
   14173   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   14174 
   14175 fi
   14176 
   14177 { echo "$as_me:$LINENO: checking for library containing logwtmp" >&5
   14178 echo $ECHO_N "checking for library containing logwtmp... $ECHO_C" >&6; }
   14179 if test "${ac_cv_search_logwtmp+set}" = set; then
   14180   echo $ECHO_N "(cached) $ECHO_C" >&6
   14181 else
   14182   ac_func_search_save_LIBS=$LIBS
   14183 cat >conftest.$ac_ext <<_ACEOF
   14184 /* confdefs.h.  */
   14185 _ACEOF
   14186 cat confdefs.h >>conftest.$ac_ext
   14187 cat >>conftest.$ac_ext <<_ACEOF
   14188 /* end confdefs.h.  */
   14189 
   14190 /* Override any GCC internal prototype to avoid an error.
   14191    Use char because int might match the return type of a GCC
   14192    builtin and then its argument prototype would still apply.  */
   14193 #ifdef __cplusplus
   14194 extern "C"
   14195 #endif
   14196 char logwtmp ();
   14197 int
   14198 main ()
   14199 {
   14200 return logwtmp ();
   14201   ;
   14202   return 0;
   14203 }
   14204 _ACEOF
   14205 for ac_lib in '' util bsd; do
   14206   if test -z "$ac_lib"; then
   14207     ac_res="none required"
   14208   else
   14209     ac_res=-l$ac_lib
   14210     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   14211   fi
   14212   rm -f conftest.$ac_objext conftest$ac_exeext
   14213 if { (ac_try="$ac_link"
   14214 case "(($ac_try" in
   14215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14216   *) ac_try_echo=$ac_try;;
   14217 esac
   14218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14219   (eval "$ac_link") 2>conftest.er1
   14220   ac_status=$?
   14221   grep -v '^ *+' conftest.er1 >conftest.err
   14222   rm -f conftest.er1
   14223   cat conftest.err >&5
   14224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14225   (exit $ac_status); } && {
   14226 	 test -z "$ac_c_werror_flag" ||
   14227 	 test ! -s conftest.err
   14228        } && test -s conftest$ac_exeext &&
   14229        $as_test_x conftest$ac_exeext; then
   14230   ac_cv_search_logwtmp=$ac_res
   14231 else
   14232   echo "$as_me: failed program was:" >&5
   14233 sed 's/^/| /' conftest.$ac_ext >&5
   14234 
   14235 
   14236 fi
   14237 
   14238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   14239       conftest$ac_exeext
   14240   if test "${ac_cv_search_logwtmp+set}" = set; then
   14241   break
   14242 fi
   14243 done
   14244 if test "${ac_cv_search_logwtmp+set}" = set; then
   14245   :
   14246 else
   14247   ac_cv_search_logwtmp=no
   14248 fi
   14249 rm conftest.$ac_ext
   14250 LIBS=$ac_func_search_save_LIBS
   14251 fi
   14252 { echo "$as_me:$LINENO: result: $ac_cv_search_logwtmp" >&5
   14253 echo "${ECHO_T}$ac_cv_search_logwtmp" >&6; }
   14254 ac_res=$ac_cv_search_logwtmp
   14255 if test "$ac_res" != no; then
   14256   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   14257 
   14258 fi
   14259 
   14260 { echo "$as_me:$LINENO: checking for library containing openpty" >&5
   14261 echo $ECHO_N "checking for library containing openpty... $ECHO_C" >&6; }
   14262 if test "${ac_cv_search_openpty+set}" = set; then
   14263   echo $ECHO_N "(cached) $ECHO_C" >&6
   14264 else
   14265   ac_func_search_save_LIBS=$LIBS
   14266 cat >conftest.$ac_ext <<_ACEOF
   14267 /* confdefs.h.  */
   14268 _ACEOF
   14269 cat confdefs.h >>conftest.$ac_ext
   14270 cat >>conftest.$ac_ext <<_ACEOF
   14271 /* end confdefs.h.  */
   14272 
   14273 /* Override any GCC internal prototype to avoid an error.
   14274    Use char because int might match the return type of a GCC
   14275    builtin and then its argument prototype would still apply.  */
   14276 #ifdef __cplusplus
   14277 extern "C"
   14278 #endif
   14279 char openpty ();
   14280 int
   14281 main ()
   14282 {
   14283 return openpty ();
   14284   ;
   14285   return 0;
   14286 }
   14287 _ACEOF
   14288 for ac_lib in '' util bsd; do
   14289   if test -z "$ac_lib"; then
   14290     ac_res="none required"
   14291   else
   14292     ac_res=-l$ac_lib
   14293     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   14294   fi
   14295   rm -f conftest.$ac_objext conftest$ac_exeext
   14296 if { (ac_try="$ac_link"
   14297 case "(($ac_try" in
   14298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14299   *) ac_try_echo=$ac_try;;
   14300 esac
   14301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14302   (eval "$ac_link") 2>conftest.er1
   14303   ac_status=$?
   14304   grep -v '^ *+' conftest.er1 >conftest.err
   14305   rm -f conftest.er1
   14306   cat conftest.err >&5
   14307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14308   (exit $ac_status); } && {
   14309 	 test -z "$ac_c_werror_flag" ||
   14310 	 test ! -s conftest.err
   14311        } && test -s conftest$ac_exeext &&
   14312        $as_test_x conftest$ac_exeext; then
   14313   ac_cv_search_openpty=$ac_res
   14314 else
   14315   echo "$as_me: failed program was:" >&5
   14316 sed 's/^/| /' conftest.$ac_ext >&5
   14317 
   14318 
   14319 fi
   14320 
   14321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   14322       conftest$ac_exeext
   14323   if test "${ac_cv_search_openpty+set}" = set; then
   14324   break
   14325 fi
   14326 done
   14327 if test "${ac_cv_search_openpty+set}" = set; then
   14328   :
   14329 else
   14330   ac_cv_search_openpty=no
   14331 fi
   14332 rm conftest.$ac_ext
   14333 LIBS=$ac_func_search_save_LIBS
   14334 fi
   14335 { echo "$as_me:$LINENO: result: $ac_cv_search_openpty" >&5
   14336 echo "${ECHO_T}$ac_cv_search_openpty" >&6; }
   14337 ac_res=$ac_cv_search_openpty
   14338 if test "$ac_res" != no; then
   14339   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   14340 
   14341 fi
   14342 
   14343 { echo "$as_me:$LINENO: checking for library containing updwtmp" >&5
   14344 echo $ECHO_N "checking for library containing updwtmp... $ECHO_C" >&6; }
   14345 if test "${ac_cv_search_updwtmp+set}" = set; then
   14346   echo $ECHO_N "(cached) $ECHO_C" >&6
   14347 else
   14348   ac_func_search_save_LIBS=$LIBS
   14349 cat >conftest.$ac_ext <<_ACEOF
   14350 /* confdefs.h.  */
   14351 _ACEOF
   14352 cat confdefs.h >>conftest.$ac_ext
   14353 cat >>conftest.$ac_ext <<_ACEOF
   14354 /* end confdefs.h.  */
   14355 
   14356 /* Override any GCC internal prototype to avoid an error.
   14357    Use char because int might match the return type of a GCC
   14358    builtin and then its argument prototype would still apply.  */
   14359 #ifdef __cplusplus
   14360 extern "C"
   14361 #endif
   14362 char updwtmp ();
   14363 int
   14364 main ()
   14365 {
   14366 return updwtmp ();
   14367   ;
   14368   return 0;
   14369 }
   14370 _ACEOF
   14371 for ac_lib in '' util bsd; do
   14372   if test -z "$ac_lib"; then
   14373     ac_res="none required"
   14374   else
   14375     ac_res=-l$ac_lib
   14376     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   14377   fi
   14378   rm -f conftest.$ac_objext conftest$ac_exeext
   14379 if { (ac_try="$ac_link"
   14380 case "(($ac_try" in
   14381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14382   *) ac_try_echo=$ac_try;;
   14383 esac
   14384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14385   (eval "$ac_link") 2>conftest.er1
   14386   ac_status=$?
   14387   grep -v '^ *+' conftest.er1 >conftest.err
   14388   rm -f conftest.er1
   14389   cat conftest.err >&5
   14390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14391   (exit $ac_status); } && {
   14392 	 test -z "$ac_c_werror_flag" ||
   14393 	 test ! -s conftest.err
   14394        } && test -s conftest$ac_exeext &&
   14395        $as_test_x conftest$ac_exeext; then
   14396   ac_cv_search_updwtmp=$ac_res
   14397 else
   14398   echo "$as_me: failed program was:" >&5
   14399 sed 's/^/| /' conftest.$ac_ext >&5
   14400 
   14401 
   14402 fi
   14403 
   14404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   14405       conftest$ac_exeext
   14406   if test "${ac_cv_search_updwtmp+set}" = set; then
   14407   break
   14408 fi
   14409 done
   14410 if test "${ac_cv_search_updwtmp+set}" = set; then
   14411   :
   14412 else
   14413   ac_cv_search_updwtmp=no
   14414 fi
   14415 rm conftest.$ac_ext
   14416 LIBS=$ac_func_search_save_LIBS
   14417 fi
   14418 { echo "$as_me:$LINENO: result: $ac_cv_search_updwtmp" >&5
   14419 echo "${ECHO_T}$ac_cv_search_updwtmp" >&6; }
   14420 ac_res=$ac_cv_search_updwtmp
   14421 if test "$ac_res" != no; then
   14422   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   14423 
   14424 fi
   14425 
   14426 
   14427 
   14428 
   14429 
   14430 
   14431 
   14432 
   14433 for ac_func in fmt_scaled scan_scaled login logout openpty updwtmp logwtmp
   14434 do
   14435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   14436 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   14437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   14438 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   14439   echo $ECHO_N "(cached) $ECHO_C" >&6
   14440 else
   14441   cat >conftest.$ac_ext <<_ACEOF
   14442 /* confdefs.h.  */
   14443 _ACEOF
   14444 cat confdefs.h >>conftest.$ac_ext
   14445 cat >>conftest.$ac_ext <<_ACEOF
   14446 /* end confdefs.h.  */
   14447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   14448    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   14449 #define $ac_func innocuous_$ac_func
   14450 
   14451 /* System header to define __stub macros and hopefully few prototypes,
   14452     which can conflict with char $ac_func (); below.
   14453     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   14454     <limits.h> exists even on freestanding compilers.  */
   14455 
   14456 #ifdef __STDC__
   14457 # include <limits.h>
   14458 #else
   14459 # include <assert.h>
   14460 #endif
   14461 
   14462 #undef $ac_func
   14463 
   14464 /* Override any GCC internal prototype to avoid an error.
   14465    Use char because int might match the return type of a GCC
   14466    builtin and then its argument prototype would still apply.  */
   14467 #ifdef __cplusplus
   14468 extern "C"
   14469 #endif
   14470 char $ac_func ();
   14471 /* The GNU C library defines this for functions which it implements
   14472     to always fail with ENOSYS.  Some functions are actually named
   14473     something starting with __ and the normal name is an alias.  */
   14474 #if defined __stub_$ac_func || defined __stub___$ac_func
   14475 choke me
   14476 #endif
   14477 
   14478 int
   14479 main ()
   14480 {
   14481 return $ac_func ();
   14482   ;
   14483   return 0;
   14484 }
   14485 _ACEOF
   14486 rm -f conftest.$ac_objext conftest$ac_exeext
   14487 if { (ac_try="$ac_link"
   14488 case "(($ac_try" in
   14489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14490   *) ac_try_echo=$ac_try;;
   14491 esac
   14492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14493   (eval "$ac_link") 2>conftest.er1
   14494   ac_status=$?
   14495   grep -v '^ *+' conftest.er1 >conftest.err
   14496   rm -f conftest.er1
   14497   cat conftest.err >&5
   14498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14499   (exit $ac_status); } && {
   14500 	 test -z "$ac_c_werror_flag" ||
   14501 	 test ! -s conftest.err
   14502        } && test -s conftest$ac_exeext &&
   14503        $as_test_x conftest$ac_exeext; then
   14504   eval "$as_ac_var=yes"
   14505 else
   14506   echo "$as_me: failed program was:" >&5
   14507 sed 's/^/| /' conftest.$ac_ext >&5
   14508 
   14509 	eval "$as_ac_var=no"
   14510 fi
   14511 
   14512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   14513       conftest$ac_exeext conftest.$ac_ext
   14514 fi
   14515 ac_res=`eval echo '${'$as_ac_var'}'`
   14516 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14517 echo "${ECHO_T}$ac_res" >&6; }
   14518 if test `eval echo '${'$as_ac_var'}'` = yes; then
   14519   cat >>confdefs.h <<_ACEOF
   14520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   14521 _ACEOF
   14522 
   14523 fi
   14524 done
   14525 
   14526 
   14527 # On some platforms, inet_ntop may be found in libresolv or libnsl.
   14528 { echo "$as_me:$LINENO: checking for library containing inet_ntop" >&5
   14529 echo $ECHO_N "checking for library containing inet_ntop... $ECHO_C" >&6; }
   14530 if test "${ac_cv_search_inet_ntop+set}" = set; then
   14531   echo $ECHO_N "(cached) $ECHO_C" >&6
   14532 else
   14533   ac_func_search_save_LIBS=$LIBS
   14534 cat >conftest.$ac_ext <<_ACEOF
   14535 /* confdefs.h.  */
   14536 _ACEOF
   14537 cat confdefs.h >>conftest.$ac_ext
   14538 cat >>conftest.$ac_ext <<_ACEOF
   14539 /* end confdefs.h.  */
   14540 
   14541 /* Override any GCC internal prototype to avoid an error.
   14542    Use char because int might match the return type of a GCC
   14543    builtin and then its argument prototype would still apply.  */
   14544 #ifdef __cplusplus
   14545 extern "C"
   14546 #endif
   14547 char inet_ntop ();
   14548 int
   14549 main ()
   14550 {
   14551 return inet_ntop ();
   14552   ;
   14553   return 0;
   14554 }
   14555 _ACEOF
   14556 for ac_lib in '' resolv nsl; do
   14557   if test -z "$ac_lib"; then
   14558     ac_res="none required"
   14559   else
   14560     ac_res=-l$ac_lib
   14561     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   14562   fi
   14563   rm -f conftest.$ac_objext conftest$ac_exeext
   14564 if { (ac_try="$ac_link"
   14565 case "(($ac_try" in
   14566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14567   *) ac_try_echo=$ac_try;;
   14568 esac
   14569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14570   (eval "$ac_link") 2>conftest.er1
   14571   ac_status=$?
   14572   grep -v '^ *+' conftest.er1 >conftest.err
   14573   rm -f conftest.er1
   14574   cat conftest.err >&5
   14575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14576   (exit $ac_status); } && {
   14577 	 test -z "$ac_c_werror_flag" ||
   14578 	 test ! -s conftest.err
   14579        } && test -s conftest$ac_exeext &&
   14580        $as_test_x conftest$ac_exeext; then
   14581   ac_cv_search_inet_ntop=$ac_res
   14582 else
   14583   echo "$as_me: failed program was:" >&5
   14584 sed 's/^/| /' conftest.$ac_ext >&5
   14585 
   14586 
   14587 fi
   14588 
   14589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   14590       conftest$ac_exeext
   14591   if test "${ac_cv_search_inet_ntop+set}" = set; then
   14592   break
   14593 fi
   14594 done
   14595 if test "${ac_cv_search_inet_ntop+set}" = set; then
   14596   :
   14597 else
   14598   ac_cv_search_inet_ntop=no
   14599 fi
   14600 rm conftest.$ac_ext
   14601 LIBS=$ac_func_search_save_LIBS
   14602 fi
   14603 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntop" >&5
   14604 echo "${ECHO_T}$ac_cv_search_inet_ntop" >&6; }
   14605 ac_res=$ac_cv_search_inet_ntop
   14606 if test "$ac_res" != no; then
   14607   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   14608 
   14609 fi
   14610 
   14611 
   14612 
   14613 for ac_func in strftime
   14614 do
   14615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   14616 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   14617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   14618 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   14619   echo $ECHO_N "(cached) $ECHO_C" >&6
   14620 else
   14621   cat >conftest.$ac_ext <<_ACEOF
   14622 /* confdefs.h.  */
   14623 _ACEOF
   14624 cat confdefs.h >>conftest.$ac_ext
   14625 cat >>conftest.$ac_ext <<_ACEOF
   14626 /* end confdefs.h.  */
   14627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   14628    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   14629 #define $ac_func innocuous_$ac_func
   14630 
   14631 /* System header to define __stub macros and hopefully few prototypes,
   14632     which can conflict with char $ac_func (); below.
   14633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   14634     <limits.h> exists even on freestanding compilers.  */
   14635 
   14636 #ifdef __STDC__
   14637 # include <limits.h>
   14638 #else
   14639 # include <assert.h>
   14640 #endif
   14641 
   14642 #undef $ac_func
   14643 
   14644 /* Override any GCC internal prototype to avoid an error.
   14645    Use char because int might match the return type of a GCC
   14646    builtin and then its argument prototype would still apply.  */
   14647 #ifdef __cplusplus
   14648 extern "C"
   14649 #endif
   14650 char $ac_func ();
   14651 /* The GNU C library defines this for functions which it implements
   14652     to always fail with ENOSYS.  Some functions are actually named
   14653     something starting with __ and the normal name is an alias.  */
   14654 #if defined __stub_$ac_func || defined __stub___$ac_func
   14655 choke me
   14656 #endif
   14657 
   14658 int
   14659 main ()
   14660 {
   14661 return $ac_func ();
   14662   ;
   14663   return 0;
   14664 }
   14665 _ACEOF
   14666 rm -f conftest.$ac_objext conftest$ac_exeext
   14667 if { (ac_try="$ac_link"
   14668 case "(($ac_try" in
   14669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14670   *) ac_try_echo=$ac_try;;
   14671 esac
   14672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14673   (eval "$ac_link") 2>conftest.er1
   14674   ac_status=$?
   14675   grep -v '^ *+' conftest.er1 >conftest.err
   14676   rm -f conftest.er1
   14677   cat conftest.err >&5
   14678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14679   (exit $ac_status); } && {
   14680 	 test -z "$ac_c_werror_flag" ||
   14681 	 test ! -s conftest.err
   14682        } && test -s conftest$ac_exeext &&
   14683        $as_test_x conftest$ac_exeext; then
   14684   eval "$as_ac_var=yes"
   14685 else
   14686   echo "$as_me: failed program was:" >&5
   14687 sed 's/^/| /' conftest.$ac_ext >&5
   14688 
   14689 	eval "$as_ac_var=no"
   14690 fi
   14691 
   14692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   14693       conftest$ac_exeext conftest.$ac_ext
   14694 fi
   14695 ac_res=`eval echo '${'$as_ac_var'}'`
   14696 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   14697 echo "${ECHO_T}$ac_res" >&6; }
   14698 if test `eval echo '${'$as_ac_var'}'` = yes; then
   14699   cat >>confdefs.h <<_ACEOF
   14700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   14701 _ACEOF
   14702 
   14703 else
   14704   # strftime is in -lintl on SCO UNIX.
   14705 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
   14706 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
   14707 if test "${ac_cv_lib_intl_strftime+set}" = set; then
   14708   echo $ECHO_N "(cached) $ECHO_C" >&6
   14709 else
   14710   ac_check_lib_save_LIBS=$LIBS
   14711 LIBS="-lintl  $LIBS"
   14712 cat >conftest.$ac_ext <<_ACEOF
   14713 /* confdefs.h.  */
   14714 _ACEOF
   14715 cat confdefs.h >>conftest.$ac_ext
   14716 cat >>conftest.$ac_ext <<_ACEOF
   14717 /* end confdefs.h.  */
   14718 
   14719 /* Override any GCC internal prototype to avoid an error.
   14720    Use char because int might match the return type of a GCC
   14721    builtin and then its argument prototype would still apply.  */
   14722 #ifdef __cplusplus
   14723 extern "C"
   14724 #endif
   14725 char strftime ();
   14726 int
   14727 main ()
   14728 {
   14729 return strftime ();
   14730   ;
   14731   return 0;
   14732 }
   14733 _ACEOF
   14734 rm -f conftest.$ac_objext conftest$ac_exeext
   14735 if { (ac_try="$ac_link"
   14736 case "(($ac_try" in
   14737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14738   *) ac_try_echo=$ac_try;;
   14739 esac
   14740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14741   (eval "$ac_link") 2>conftest.er1
   14742   ac_status=$?
   14743   grep -v '^ *+' conftest.er1 >conftest.err
   14744   rm -f conftest.er1
   14745   cat conftest.err >&5
   14746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14747   (exit $ac_status); } && {
   14748 	 test -z "$ac_c_werror_flag" ||
   14749 	 test ! -s conftest.err
   14750        } && test -s conftest$ac_exeext &&
   14751        $as_test_x conftest$ac_exeext; then
   14752   ac_cv_lib_intl_strftime=yes
   14753 else
   14754   echo "$as_me: failed program was:" >&5
   14755 sed 's/^/| /' conftest.$ac_ext >&5
   14756 
   14757 	ac_cv_lib_intl_strftime=no
   14758 fi
   14759 
   14760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   14761       conftest$ac_exeext conftest.$ac_ext
   14762 LIBS=$ac_check_lib_save_LIBS
   14763 fi
   14764 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
   14765 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
   14766 if test $ac_cv_lib_intl_strftime = yes; then
   14767   cat >>confdefs.h <<\_ACEOF
   14768 #define HAVE_STRFTIME 1
   14769 _ACEOF
   14770 
   14771 LIBS="-lintl $LIBS"
   14772 fi
   14773 
   14774 fi
   14775 done
   14776 
   14777 
   14778 # Check for ALTDIRFUNC glob() extension
   14779 { echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
   14780 echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6; }
   14781 cat >conftest.$ac_ext <<_ACEOF
   14782 /* confdefs.h.  */
   14783 _ACEOF
   14784 cat confdefs.h >>conftest.$ac_ext
   14785 cat >>conftest.$ac_ext <<_ACEOF
   14786 /* end confdefs.h.  */
   14787 
   14788 		#include <glob.h>
   14789 		#ifdef GLOB_ALTDIRFUNC
   14790 		FOUNDIT
   14791 		#endif
   14792 
   14793 _ACEOF
   14794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   14795   $EGREP "FOUNDIT" >/dev/null 2>&1; then
   14796 
   14797 
   14798 cat >>confdefs.h <<\_ACEOF
   14799 #define GLOB_HAS_ALTDIRFUNC 1
   14800 _ACEOF
   14801 
   14802 		{ echo "$as_me:$LINENO: result: yes" >&5
   14803 echo "${ECHO_T}yes" >&6; }
   14804 
   14805 else
   14806 
   14807 		{ echo "$as_me:$LINENO: result: no" >&5
   14808 echo "${ECHO_T}no" >&6; }
   14809 
   14810 
   14811 fi
   14812 rm -f conftest*
   14813 
   14814 
   14815 # Check for g.gl_matchc glob() extension
   14816 { echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
   14817 echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6; }
   14818 cat >conftest.$ac_ext <<_ACEOF
   14819 /* confdefs.h.  */
   14820 _ACEOF
   14821 cat confdefs.h >>conftest.$ac_ext
   14822 cat >>conftest.$ac_ext <<_ACEOF
   14823 /* end confdefs.h.  */
   14824  #include <glob.h>
   14825 int
   14826 main ()
   14827 {
   14828  glob_t g; g.gl_matchc = 1;
   14829   ;
   14830   return 0;
   14831 }
   14832 _ACEOF
   14833 rm -f conftest.$ac_objext
   14834 if { (ac_try="$ac_compile"
   14835 case "(($ac_try" in
   14836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14837   *) ac_try_echo=$ac_try;;
   14838 esac
   14839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14840   (eval "$ac_compile") 2>conftest.er1
   14841   ac_status=$?
   14842   grep -v '^ *+' conftest.er1 >conftest.err
   14843   rm -f conftest.er1
   14844   cat conftest.err >&5
   14845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14846   (exit $ac_status); } && {
   14847 	 test -z "$ac_c_werror_flag" ||
   14848 	 test ! -s conftest.err
   14849        } && test -s conftest.$ac_objext; then
   14850 
   14851 
   14852 cat >>confdefs.h <<\_ACEOF
   14853 #define GLOB_HAS_GL_MATCHC 1
   14854 _ACEOF
   14855 
   14856 		{ echo "$as_me:$LINENO: result: yes" >&5
   14857 echo "${ECHO_T}yes" >&6; }
   14858 
   14859 else
   14860   echo "$as_me: failed program was:" >&5
   14861 sed 's/^/| /' conftest.$ac_ext >&5
   14862 
   14863 
   14864 		{ echo "$as_me:$LINENO: result: no" >&5
   14865 echo "${ECHO_T}no" >&6; }
   14866 
   14867 fi
   14868 
   14869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14870 
   14871 # Check for g.gl_statv glob() extension
   14872 { echo "$as_me:$LINENO: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5
   14873 echo $ECHO_N "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... $ECHO_C" >&6; }
   14874 cat >conftest.$ac_ext <<_ACEOF
   14875 /* confdefs.h.  */
   14876 _ACEOF
   14877 cat confdefs.h >>conftest.$ac_ext
   14878 cat >>conftest.$ac_ext <<_ACEOF
   14879 /* end confdefs.h.  */
   14880  #include <glob.h>
   14881 int
   14882 main ()
   14883 {
   14884 
   14885 #ifndef GLOB_KEEPSTAT
   14886 #error "glob does not support GLOB_KEEPSTAT extension"
   14887 #endif
   14888 glob_t g;
   14889 g.gl_statv = NULL;
   14890 
   14891   ;
   14892   return 0;
   14893 }
   14894 _ACEOF
   14895 rm -f conftest.$ac_objext
   14896 if { (ac_try="$ac_compile"
   14897 case "(($ac_try" in
   14898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14899   *) ac_try_echo=$ac_try;;
   14900 esac
   14901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14902   (eval "$ac_compile") 2>conftest.er1
   14903   ac_status=$?
   14904   grep -v '^ *+' conftest.er1 >conftest.err
   14905   rm -f conftest.er1
   14906   cat conftest.err >&5
   14907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14908   (exit $ac_status); } && {
   14909 	 test -z "$ac_c_werror_flag" ||
   14910 	 test ! -s conftest.err
   14911        } && test -s conftest.$ac_objext; then
   14912 
   14913 
   14914 cat >>confdefs.h <<\_ACEOF
   14915 #define GLOB_HAS_GL_STATV 1
   14916 _ACEOF
   14917 
   14918 		{ echo "$as_me:$LINENO: result: yes" >&5
   14919 echo "${ECHO_T}yes" >&6; }
   14920 
   14921 else
   14922   echo "$as_me: failed program was:" >&5
   14923 sed 's/^/| /' conftest.$ac_ext >&5
   14924 
   14925 
   14926 		{ echo "$as_me:$LINENO: result: no" >&5
   14927 echo "${ECHO_T}no" >&6; }
   14928 
   14929 
   14930 fi
   14931 
   14932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14933 
   14934 { echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5
   14935 echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; }
   14936 if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then
   14937   echo $ECHO_N "(cached) $ECHO_C" >&6
   14938 else
   14939   cat >conftest.$ac_ext <<_ACEOF
   14940 /* confdefs.h.  */
   14941 _ACEOF
   14942 cat confdefs.h >>conftest.$ac_ext
   14943 cat >>conftest.$ac_ext <<_ACEOF
   14944 /* end confdefs.h.  */
   14945 #include <glob.h>
   14946 
   14947 int
   14948 main ()
   14949 {
   14950 #ifndef GLOB_NOMATCH
   14951   (void) GLOB_NOMATCH;
   14952 #endif
   14953 
   14954   ;
   14955   return 0;
   14956 }
   14957 _ACEOF
   14958 rm -f conftest.$ac_objext
   14959 if { (ac_try="$ac_compile"
   14960 case "(($ac_try" in
   14961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14962   *) ac_try_echo=$ac_try;;
   14963 esac
   14964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14965   (eval "$ac_compile") 2>conftest.er1
   14966   ac_status=$?
   14967   grep -v '^ *+' conftest.er1 >conftest.err
   14968   rm -f conftest.er1
   14969   cat conftest.err >&5
   14970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14971   (exit $ac_status); } && {
   14972 	 test -z "$ac_c_werror_flag" ||
   14973 	 test ! -s conftest.err
   14974        } && test -s conftest.$ac_objext; then
   14975   ac_cv_have_decl_GLOB_NOMATCH=yes
   14976 else
   14977   echo "$as_me: failed program was:" >&5
   14978 sed 's/^/| /' conftest.$ac_ext >&5
   14979 
   14980 	ac_cv_have_decl_GLOB_NOMATCH=no
   14981 fi
   14982 
   14983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14984 fi
   14985 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5
   14986 echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; }
   14987 if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then
   14988 
   14989 cat >>confdefs.h <<_ACEOF
   14990 #define HAVE_DECL_GLOB_NOMATCH 1
   14991 _ACEOF
   14992 
   14993 
   14994 else
   14995   cat >>confdefs.h <<_ACEOF
   14996 #define HAVE_DECL_GLOB_NOMATCH 0
   14997 _ACEOF
   14998 
   14999 
   15000 fi
   15001 
   15002 
   15003 
   15004 { echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
   15005 echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6; }
   15006 if test "$cross_compiling" = yes; then
   15007 
   15008 		{ echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
   15009 echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
   15010 		cat >>confdefs.h <<\_ACEOF
   15011 #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
   15012 _ACEOF
   15013 
   15014 
   15015 
   15016 else
   15017   cat >conftest.$ac_ext <<_ACEOF
   15018 /* confdefs.h.  */
   15019 _ACEOF
   15020 cat confdefs.h >>conftest.$ac_ext
   15021 cat >>conftest.$ac_ext <<_ACEOF
   15022 /* end confdefs.h.  */
   15023 
   15024 #include <sys/types.h>
   15025 #include <dirent.h>
   15026 int
   15027 main ()
   15028 {
   15029 
   15030 	struct dirent d;
   15031 	exit(sizeof(d.d_name)<=sizeof(char));
   15032 
   15033   ;
   15034   return 0;
   15035 }
   15036 _ACEOF
   15037 rm -f conftest$ac_exeext
   15038 if { (ac_try="$ac_link"
   15039 case "(($ac_try" in
   15040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15041   *) ac_try_echo=$ac_try;;
   15042 esac
   15043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15044   (eval "$ac_link") 2>&5
   15045   ac_status=$?
   15046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15047   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   15048   { (case "(($ac_try" in
   15049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15050   *) ac_try_echo=$ac_try;;
   15051 esac
   15052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15053   (eval "$ac_try") 2>&5
   15054   ac_status=$?
   15055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15056   (exit $ac_status); }; }; then
   15057   { echo "$as_me:$LINENO: result: yes" >&5
   15058 echo "${ECHO_T}yes" >&6; }
   15059 else
   15060   echo "$as_me: program exited with status $ac_status" >&5
   15061 echo "$as_me: failed program was:" >&5
   15062 sed 's/^/| /' conftest.$ac_ext >&5
   15063 
   15064 ( exit $ac_status )
   15065 
   15066 		{ echo "$as_me:$LINENO: result: no" >&5
   15067 echo "${ECHO_T}no" >&6; }
   15068 
   15069 cat >>confdefs.h <<\_ACEOF
   15070 #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
   15071 _ACEOF
   15072 
   15073 
   15074 fi
   15075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   15076 fi
   15077 
   15078 
   15079 
   15080 { echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5
   15081 echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6; }
   15082 if test -d "/proc/$$/fd" ; then
   15083 
   15084 cat >>confdefs.h <<\_ACEOF
   15085 #define HAVE_PROC_PID 1
   15086 _ACEOF
   15087 
   15088 	{ echo "$as_me:$LINENO: result: yes" >&5
   15089 echo "${ECHO_T}yes" >&6; }
   15090 else
   15091 	{ echo "$as_me:$LINENO: result: no" >&5
   15092 echo "${ECHO_T}no" >&6; }
   15093 fi
   15094 
   15095 # Check whether user wants S/Key support
   15096 SKEY_MSG="no"
   15097 
   15098 # Check whether --with-skey was given.
   15099 if test "${with_skey+set}" = set; then
   15100   withval=$with_skey;
   15101 		if test "x$withval" != "xno" ; then
   15102 
   15103 			if test "x$withval" != "xyes" ; then
   15104 				CPPFLAGS="$CPPFLAGS -I${withval}/include"
   15105 				LDFLAGS="$LDFLAGS -L${withval}/lib"
   15106 			fi
   15107 
   15108 
   15109 cat >>confdefs.h <<\_ACEOF
   15110 #define SKEY 1
   15111 _ACEOF
   15112 
   15113 			LIBS="-lskey $LIBS"
   15114 			SKEY_MSG="yes"
   15115 
   15116 			{ echo "$as_me:$LINENO: checking for s/key support" >&5
   15117 echo $ECHO_N "checking for s/key support... $ECHO_C" >&6; }
   15118 			cat >conftest.$ac_ext <<_ACEOF
   15119 /* confdefs.h.  */
   15120 _ACEOF
   15121 cat confdefs.h >>conftest.$ac_ext
   15122 cat >>conftest.$ac_ext <<_ACEOF
   15123 /* end confdefs.h.  */
   15124 
   15125 #include <stdio.h>
   15126 #include <skey.h>
   15127 
   15128 int
   15129 main ()
   15130 {
   15131 
   15132 	char *ff = skey_keyinfo(""); ff="";
   15133 	exit(0);
   15134 
   15135   ;
   15136   return 0;
   15137 }
   15138 _ACEOF
   15139 rm -f conftest.$ac_objext conftest$ac_exeext
   15140 if { (ac_try="$ac_link"
   15141 case "(($ac_try" in
   15142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15143   *) ac_try_echo=$ac_try;;
   15144 esac
   15145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15146   (eval "$ac_link") 2>conftest.er1
   15147   ac_status=$?
   15148   grep -v '^ *+' conftest.er1 >conftest.err
   15149   rm -f conftest.er1
   15150   cat conftest.err >&5
   15151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15152   (exit $ac_status); } && {
   15153 	 test -z "$ac_c_werror_flag" ||
   15154 	 test ! -s conftest.err
   15155        } && test -s conftest$ac_exeext &&
   15156        $as_test_x conftest$ac_exeext; then
   15157   { echo "$as_me:$LINENO: result: yes" >&5
   15158 echo "${ECHO_T}yes" >&6; }
   15159 else
   15160   echo "$as_me: failed program was:" >&5
   15161 sed 's/^/| /' conftest.$ac_ext >&5
   15162 
   15163 
   15164 					{ echo "$as_me:$LINENO: result: no" >&5
   15165 echo "${ECHO_T}no" >&6; }
   15166 					{ { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
   15167 echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
   15168    { (exit 1); exit 1; }; }
   15169 
   15170 fi
   15171 
   15172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   15173       conftest$ac_exeext conftest.$ac_ext
   15174                  	{ echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5
   15175 echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6; }
   15176 			cat >conftest.$ac_ext <<_ACEOF
   15177 /* confdefs.h.  */
   15178 _ACEOF
   15179 cat confdefs.h >>conftest.$ac_ext
   15180 cat >>conftest.$ac_ext <<_ACEOF
   15181 /* end confdefs.h.  */
   15182 
   15183 #include <stdio.h>
   15184 #include <skey.h>
   15185 
   15186 int
   15187 main ()
   15188 {
   15189 
   15190 	(void)skeychallenge(NULL,"name","",0);
   15191 
   15192   ;
   15193   return 0;
   15194 }
   15195 _ACEOF
   15196 rm -f conftest.$ac_objext
   15197 if { (ac_try="$ac_compile"
   15198 case "(($ac_try" in
   15199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15200   *) ac_try_echo=$ac_try;;
   15201 esac
   15202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15203   (eval "$ac_compile") 2>conftest.er1
   15204   ac_status=$?
   15205   grep -v '^ *+' conftest.er1 >conftest.err
   15206   rm -f conftest.er1
   15207   cat conftest.err >&5
   15208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15209   (exit $ac_status); } && {
   15210 	 test -z "$ac_c_werror_flag" ||
   15211 	 test ! -s conftest.err
   15212        } && test -s conftest.$ac_objext; then
   15213 
   15214 				{ echo "$as_me:$LINENO: result: yes" >&5
   15215 echo "${ECHO_T}yes" >&6; }
   15216 
   15217 cat >>confdefs.h <<\_ACEOF
   15218 #define SKEYCHALLENGE_4ARG 1
   15219 _ACEOF
   15220 
   15221 else
   15222   echo "$as_me: failed program was:" >&5
   15223 sed 's/^/| /' conftest.$ac_ext >&5
   15224 
   15225 
   15226 				{ echo "$as_me:$LINENO: result: no" >&5
   15227 echo "${ECHO_T}no" >&6; }
   15228 
   15229 fi
   15230 
   15231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15232 		fi
   15233 
   15234 
   15235 fi
   15236 
   15237 
   15238 # Check whether user wants to use ldns
   15239 LDNS_MSG="no"
   15240 
   15241 # Check whether --with-ldns was given.
   15242 if test "${with_ldns+set}" = set; then
   15243   withval=$with_ldns;
   15244         if test "x$withval" != "xno" ; then
   15245 
   15246 			if test "x$withval" != "xyes" ; then
   15247 				CPPFLAGS="$CPPFLAGS -I${withval}/include"
   15248 				LDFLAGS="$LDFLAGS -L${withval}/lib"
   15249 			fi
   15250 
   15251 
   15252 cat >>confdefs.h <<\_ACEOF
   15253 #define HAVE_LDNS 1
   15254 _ACEOF
   15255 
   15256             LIBS="-lldns $LIBS"
   15257             LDNS_MSG="yes"
   15258 
   15259             { echo "$as_me:$LINENO: checking for ldns support" >&5
   15260 echo $ECHO_N "checking for ldns support... $ECHO_C" >&6; }
   15261             cat >conftest.$ac_ext <<_ACEOF
   15262 /* confdefs.h.  */
   15263 _ACEOF
   15264 cat confdefs.h >>conftest.$ac_ext
   15265 cat >>conftest.$ac_ext <<_ACEOF
   15266 /* end confdefs.h.  */
   15267 
   15268 #include <stdio.h>
   15269 #include <stdlib.h>
   15270 #include <stdint.h>
   15271 #include <ldns/ldns.h>
   15272 int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); }
   15273 
   15274 
   15275 _ACEOF
   15276 rm -f conftest.$ac_objext conftest$ac_exeext
   15277 if { (ac_try="$ac_link"
   15278 case "(($ac_try" in
   15279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15280   *) ac_try_echo=$ac_try;;
   15281 esac
   15282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15283   (eval "$ac_link") 2>conftest.er1
   15284   ac_status=$?
   15285   grep -v '^ *+' conftest.er1 >conftest.err
   15286   rm -f conftest.er1
   15287   cat conftest.err >&5
   15288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15289   (exit $ac_status); } && {
   15290 	 test -z "$ac_c_werror_flag" ||
   15291 	 test ! -s conftest.err
   15292        } && test -s conftest$ac_exeext &&
   15293        $as_test_x conftest$ac_exeext; then
   15294   { echo "$as_me:$LINENO: result: yes" >&5
   15295 echo "${ECHO_T}yes" >&6; }
   15296 else
   15297   echo "$as_me: failed program was:" >&5
   15298 sed 's/^/| /' conftest.$ac_ext >&5
   15299 
   15300 
   15301 					{ echo "$as_me:$LINENO: result: no" >&5
   15302 echo "${ECHO_T}no" >&6; }
   15303 					{ { echo "$as_me:$LINENO: error: ** Incomplete or missing ldns libraries." >&5
   15304 echo "$as_me: error: ** Incomplete or missing ldns libraries." >&2;}
   15305    { (exit 1); exit 1; }; }
   15306 
   15307 fi
   15308 
   15309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   15310       conftest$ac_exeext conftest.$ac_ext
   15311         fi
   15312 
   15313 
   15314 fi
   15315 
   15316 
   15317 # Check whether user wants libedit support
   15318 LIBEDIT_MSG="no"
   15319 
   15320 # Check whether --with-libedit was given.
   15321 if test "${with_libedit+set}" = set; then
   15322   withval=$with_libedit;  if test "x$withval" != "xno" ; then
   15323 		if test "x$withval" = "xyes" ; then
   15324 			if test -n "$ac_tool_prefix"; then
   15325   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   15326 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   15327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   15328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   15329 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
   15330   echo $ECHO_N "(cached) $ECHO_C" >&6
   15331 else
   15332   case $PKGCONFIG in
   15333   [\\/]* | ?:[\\/]*)
   15334   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
   15335   ;;
   15336   *)
   15337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15338 for as_dir in $PATH
   15339 do
   15340   IFS=$as_save_IFS
   15341   test -z "$as_dir" && as_dir=.
   15342   for ac_exec_ext in '' $ac_executable_extensions; do
   15343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   15344     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
   15345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   15346     break 2
   15347   fi
   15348 done
   15349 done
   15350 IFS=$as_save_IFS
   15351 
   15352   ;;
   15353 esac
   15354 fi
   15355 PKGCONFIG=$ac_cv_path_PKGCONFIG
   15356 if test -n "$PKGCONFIG"; then
   15357   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
   15358 echo "${ECHO_T}$PKGCONFIG" >&6; }
   15359 else
   15360   { echo "$as_me:$LINENO: result: no" >&5
   15361 echo "${ECHO_T}no" >&6; }
   15362 fi
   15363 
   15364 
   15365 fi
   15366 if test -z "$ac_cv_path_PKGCONFIG"; then
   15367   ac_pt_PKGCONFIG=$PKGCONFIG
   15368   # Extract the first word of "pkg-config", so it can be a program name with args.
   15369 set dummy pkg-config; ac_word=$2
   15370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   15371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   15372 if test "${ac_cv_path_ac_pt_PKGCONFIG+set}" = set; then
   15373   echo $ECHO_N "(cached) $ECHO_C" >&6
   15374 else
   15375   case $ac_pt_PKGCONFIG in
   15376   [\\/]* | ?:[\\/]*)
   15377   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
   15378   ;;
   15379   *)
   15380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15381 for as_dir in $PATH
   15382 do
   15383   IFS=$as_save_IFS
   15384   test -z "$as_dir" && as_dir=.
   15385   for ac_exec_ext in '' $ac_executable_extensions; do
   15386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   15387     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
   15388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   15389     break 2
   15390   fi
   15391 done
   15392 done
   15393 IFS=$as_save_IFS
   15394 
   15395   ;;
   15396 esac
   15397 fi
   15398 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
   15399 if test -n "$ac_pt_PKGCONFIG"; then
   15400   { echo "$as_me:$LINENO: result: $ac_pt_PKGCONFIG" >&5
   15401 echo "${ECHO_T}$ac_pt_PKGCONFIG" >&6; }
   15402 else
   15403   { echo "$as_me:$LINENO: result: no" >&5
   15404 echo "${ECHO_T}no" >&6; }
   15405 fi
   15406 
   15407   if test "x$ac_pt_PKGCONFIG" = x; then
   15408     PKGCONFIG="no"
   15409   else
   15410     case $cross_compiling:$ac_tool_warned in
   15411 yes:)
   15412 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   15413 whose name does not start with the host triplet.  If you think this
   15414 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   15415 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   15416 whose name does not start with the host triplet.  If you think this
   15417 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   15418 ac_tool_warned=yes ;;
   15419 esac
   15420     PKGCONFIG=$ac_pt_PKGCONFIG
   15421   fi
   15422 else
   15423   PKGCONFIG="$ac_cv_path_PKGCONFIG"
   15424 fi
   15425 
   15426 			if test "x$PKGCONFIG" != "xno"; then
   15427 				{ echo "$as_me:$LINENO: checking if $PKGCONFIG knows about libedit" >&5
   15428 echo $ECHO_N "checking if $PKGCONFIG knows about libedit... $ECHO_C" >&6; }
   15429 			 	if "$PKGCONFIG" libedit; then
   15430 					{ echo "$as_me:$LINENO: result: yes" >&5
   15431 echo "${ECHO_T}yes" >&6; }
   15432 					use_pkgconfig_for_libedit=yes
   15433 				else
   15434 					{ echo "$as_me:$LINENO: result: no" >&5
   15435 echo "${ECHO_T}no" >&6; }
   15436 				fi
   15437 			fi
   15438 		else
   15439 			CPPFLAGS="$CPPFLAGS -I${withval}/include"
   15440 			if test -n "${need_dash_r}"; then
   15441 				LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
   15442 			else
   15443 				LDFLAGS="-L${withval}/lib ${LDFLAGS}"
   15444 			fi
   15445 		fi
   15446 		if test "x$use_pkgconfig_for_libedit" = "xyes"; then
   15447 			LIBEDIT=`$PKGCONFIG --libs libedit`
   15448 			CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
   15449 		else
   15450 			LIBEDIT="-ledit -lcurses"
   15451 		fi
   15452 		OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
   15453 		{ echo "$as_me:$LINENO: checking for el_init in -ledit" >&5
   15454 echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; }
   15455 if test "${ac_cv_lib_edit_el_init+set}" = set; then
   15456   echo $ECHO_N "(cached) $ECHO_C" >&6
   15457 else
   15458   ac_check_lib_save_LIBS=$LIBS
   15459 LIBS="-ledit  $OTHERLIBS
   15460 		 $LIBS"
   15461 cat >conftest.$ac_ext <<_ACEOF
   15462 /* confdefs.h.  */
   15463 _ACEOF
   15464 cat confdefs.h >>conftest.$ac_ext
   15465 cat >>conftest.$ac_ext <<_ACEOF
   15466 /* end confdefs.h.  */
   15467 
   15468 /* Override any GCC internal prototype to avoid an error.
   15469    Use char because int might match the return type of a GCC
   15470    builtin and then its argument prototype would still apply.  */
   15471 #ifdef __cplusplus
   15472 extern "C"
   15473 #endif
   15474 char el_init ();
   15475 int
   15476 main ()
   15477 {
   15478 return el_init ();
   15479   ;
   15480   return 0;
   15481 }
   15482 _ACEOF
   15483 rm -f conftest.$ac_objext conftest$ac_exeext
   15484 if { (ac_try="$ac_link"
   15485 case "(($ac_try" in
   15486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15487   *) ac_try_echo=$ac_try;;
   15488 esac
   15489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15490   (eval "$ac_link") 2>conftest.er1
   15491   ac_status=$?
   15492   grep -v '^ *+' conftest.er1 >conftest.err
   15493   rm -f conftest.er1
   15494   cat conftest.err >&5
   15495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15496   (exit $ac_status); } && {
   15497 	 test -z "$ac_c_werror_flag" ||
   15498 	 test ! -s conftest.err
   15499        } && test -s conftest$ac_exeext &&
   15500        $as_test_x conftest$ac_exeext; then
   15501   ac_cv_lib_edit_el_init=yes
   15502 else
   15503   echo "$as_me: failed program was:" >&5
   15504 sed 's/^/| /' conftest.$ac_ext >&5
   15505 
   15506 	ac_cv_lib_edit_el_init=no
   15507 fi
   15508 
   15509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   15510       conftest$ac_exeext conftest.$ac_ext
   15511 LIBS=$ac_check_lib_save_LIBS
   15512 fi
   15513 { echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5
   15514 echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6; }
   15515 if test $ac_cv_lib_edit_el_init = yes; then
   15516 
   15517 cat >>confdefs.h <<\_ACEOF
   15518 #define USE_LIBEDIT 1
   15519 _ACEOF
   15520 
   15521 			  LIBEDIT_MSG="yes"
   15522 
   15523 
   15524 else
   15525    { { echo "$as_me:$LINENO: error: libedit not found" >&5
   15526 echo "$as_me: error: libedit not found" >&2;}
   15527    { (exit 1); exit 1; }; }
   15528 fi
   15529 
   15530 		{ echo "$as_me:$LINENO: checking if libedit version is compatible" >&5
   15531 echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6; }
   15532 		cat >conftest.$ac_ext <<_ACEOF
   15533 /* confdefs.h.  */
   15534 _ACEOF
   15535 cat confdefs.h >>conftest.$ac_ext
   15536 cat >>conftest.$ac_ext <<_ACEOF
   15537 /* end confdefs.h.  */
   15538  #include <histedit.h>
   15539 int
   15540 main ()
   15541 {
   15542 
   15543 	int i = H_SETSIZE;
   15544 	el_init("", NULL, NULL, NULL);
   15545 	exit(0);
   15546 
   15547   ;
   15548   return 0;
   15549 }
   15550 _ACEOF
   15551 rm -f conftest.$ac_objext
   15552 if { (ac_try="$ac_compile"
   15553 case "(($ac_try" in
   15554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15555   *) ac_try_echo=$ac_try;;
   15556 esac
   15557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15558   (eval "$ac_compile") 2>conftest.er1
   15559   ac_status=$?
   15560   grep -v '^ *+' conftest.er1 >conftest.err
   15561   rm -f conftest.er1
   15562   cat conftest.err >&5
   15563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15564   (exit $ac_status); } && {
   15565 	 test -z "$ac_c_werror_flag" ||
   15566 	 test ! -s conftest.err
   15567        } && test -s conftest.$ac_objext; then
   15568    { echo "$as_me:$LINENO: result: yes" >&5
   15569 echo "${ECHO_T}yes" >&6; }
   15570 else
   15571   echo "$as_me: failed program was:" >&5
   15572 sed 's/^/| /' conftest.$ac_ext >&5
   15573 
   15574 	 { echo "$as_me:$LINENO: result: no" >&5
   15575 echo "${ECHO_T}no" >&6; }
   15576 		      { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5
   15577 echo "$as_me: error: libedit version is not compatible" >&2;}
   15578    { (exit 1); exit 1; }; }
   15579 
   15580 fi
   15581 
   15582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15583 	fi
   15584 
   15585 fi
   15586 
   15587 
   15588 AUDIT_MODULE=none
   15589 
   15590 # Check whether --with-audit was given.
   15591 if test "${with_audit+set}" = set; then
   15592   withval=$with_audit;
   15593 	  { echo "$as_me:$LINENO: checking for supported audit module" >&5
   15594 echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6; }
   15595 	  case "$withval" in
   15596 	  bsm)
   15597 		{ echo "$as_me:$LINENO: result: bsm" >&5
   15598 echo "${ECHO_T}bsm" >&6; }
   15599 		AUDIT_MODULE=bsm
   15600 
   15601 for ac_header in bsm/audit.h
   15602 do
   15603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   15604 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15607   echo $ECHO_N "(cached) $ECHO_C" >&6
   15608 else
   15609   cat >conftest.$ac_ext <<_ACEOF
   15610 /* confdefs.h.  */
   15611 _ACEOF
   15612 cat confdefs.h >>conftest.$ac_ext
   15613 cat >>conftest.$ac_ext <<_ACEOF
   15614 /* end confdefs.h.  */
   15615 
   15616 #ifdef HAVE_TIME_H
   15617 # include <time.h>
   15618 #endif
   15619 
   15620 
   15621 
   15622 #include <$ac_header>
   15623 _ACEOF
   15624 rm -f conftest.$ac_objext
   15625 if { (ac_try="$ac_compile"
   15626 case "(($ac_try" in
   15627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15628   *) ac_try_echo=$ac_try;;
   15629 esac
   15630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15631   (eval "$ac_compile") 2>conftest.er1
   15632   ac_status=$?
   15633   grep -v '^ *+' conftest.er1 >conftest.err
   15634   rm -f conftest.er1
   15635   cat conftest.err >&5
   15636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15637   (exit $ac_status); } && {
   15638 	 test -z "$ac_c_werror_flag" ||
   15639 	 test ! -s conftest.err
   15640        } && test -s conftest.$ac_objext; then
   15641   eval "$as_ac_Header=yes"
   15642 else
   15643   echo "$as_me: failed program was:" >&5
   15644 sed 's/^/| /' conftest.$ac_ext >&5
   15645 
   15646 	eval "$as_ac_Header=no"
   15647 fi
   15648 
   15649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15650 fi
   15651 ac_res=`eval echo '${'$as_ac_Header'}'`
   15652 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15653 echo "${ECHO_T}$ac_res" >&6; }
   15654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   15655   cat >>confdefs.h <<_ACEOF
   15656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   15657 _ACEOF
   15658 
   15659 else
   15660   { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5
   15661 echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;}
   15662    { (exit 1); exit 1; }; }
   15663 fi
   15664 
   15665 done
   15666 
   15667 
   15668 { echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5
   15669 echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6; }
   15670 if test "${ac_cv_lib_bsm_getaudit+set}" = set; then
   15671   echo $ECHO_N "(cached) $ECHO_C" >&6
   15672 else
   15673   ac_check_lib_save_LIBS=$LIBS
   15674 LIBS="-lbsm  $LIBS"
   15675 cat >conftest.$ac_ext <<_ACEOF
   15676 /* confdefs.h.  */
   15677 _ACEOF
   15678 cat confdefs.h >>conftest.$ac_ext
   15679 cat >>conftest.$ac_ext <<_ACEOF
   15680 /* end confdefs.h.  */
   15681 
   15682 /* Override any GCC internal prototype to avoid an error.
   15683    Use char because int might match the return type of a GCC
   15684    builtin and then its argument prototype would still apply.  */
   15685 #ifdef __cplusplus
   15686 extern "C"
   15687 #endif
   15688 char getaudit ();
   15689 int
   15690 main ()
   15691 {
   15692 return getaudit ();
   15693   ;
   15694   return 0;
   15695 }
   15696 _ACEOF
   15697 rm -f conftest.$ac_objext conftest$ac_exeext
   15698 if { (ac_try="$ac_link"
   15699 case "(($ac_try" in
   15700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15701   *) ac_try_echo=$ac_try;;
   15702 esac
   15703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15704   (eval "$ac_link") 2>conftest.er1
   15705   ac_status=$?
   15706   grep -v '^ *+' conftest.er1 >conftest.err
   15707   rm -f conftest.er1
   15708   cat conftest.err >&5
   15709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15710   (exit $ac_status); } && {
   15711 	 test -z "$ac_c_werror_flag" ||
   15712 	 test ! -s conftest.err
   15713        } && test -s conftest$ac_exeext &&
   15714        $as_test_x conftest$ac_exeext; then
   15715   ac_cv_lib_bsm_getaudit=yes
   15716 else
   15717   echo "$as_me: failed program was:" >&5
   15718 sed 's/^/| /' conftest.$ac_ext >&5
   15719 
   15720 	ac_cv_lib_bsm_getaudit=no
   15721 fi
   15722 
   15723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   15724       conftest$ac_exeext conftest.$ac_ext
   15725 LIBS=$ac_check_lib_save_LIBS
   15726 fi
   15727 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5
   15728 echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6; }
   15729 if test $ac_cv_lib_bsm_getaudit = yes; then
   15730   cat >>confdefs.h <<_ACEOF
   15731 #define HAVE_LIBBSM 1
   15732 _ACEOF
   15733 
   15734   LIBS="-lbsm $LIBS"
   15735 
   15736 else
   15737   { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5
   15738 echo "$as_me: error: BSM enabled and required library not found" >&2;}
   15739    { (exit 1); exit 1; }; }
   15740 fi
   15741 
   15742 
   15743 for ac_func in getaudit
   15744 do
   15745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   15747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   15748 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   15749   echo $ECHO_N "(cached) $ECHO_C" >&6
   15750 else
   15751   cat >conftest.$ac_ext <<_ACEOF
   15752 /* confdefs.h.  */
   15753 _ACEOF
   15754 cat confdefs.h >>conftest.$ac_ext
   15755 cat >>conftest.$ac_ext <<_ACEOF
   15756 /* end confdefs.h.  */
   15757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   15758    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   15759 #define $ac_func innocuous_$ac_func
   15760 
   15761 /* System header to define __stub macros and hopefully few prototypes,
   15762     which can conflict with char $ac_func (); below.
   15763     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   15764     <limits.h> exists even on freestanding compilers.  */
   15765 
   15766 #ifdef __STDC__
   15767 # include <limits.h>
   15768 #else
   15769 # include <assert.h>
   15770 #endif
   15771 
   15772 #undef $ac_func
   15773 
   15774 /* Override any GCC internal prototype to avoid an error.
   15775    Use char because int might match the return type of a GCC
   15776    builtin and then its argument prototype would still apply.  */
   15777 #ifdef __cplusplus
   15778 extern "C"
   15779 #endif
   15780 char $ac_func ();
   15781 /* The GNU C library defines this for functions which it implements
   15782     to always fail with ENOSYS.  Some functions are actually named
   15783     something starting with __ and the normal name is an alias.  */
   15784 #if defined __stub_$ac_func || defined __stub___$ac_func
   15785 choke me
   15786 #endif
   15787 
   15788 int
   15789 main ()
   15790 {
   15791 return $ac_func ();
   15792   ;
   15793   return 0;
   15794 }
   15795 _ACEOF
   15796 rm -f conftest.$ac_objext conftest$ac_exeext
   15797 if { (ac_try="$ac_link"
   15798 case "(($ac_try" in
   15799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15800   *) ac_try_echo=$ac_try;;
   15801 esac
   15802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15803   (eval "$ac_link") 2>conftest.er1
   15804   ac_status=$?
   15805   grep -v '^ *+' conftest.er1 >conftest.err
   15806   rm -f conftest.er1
   15807   cat conftest.err >&5
   15808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15809   (exit $ac_status); } && {
   15810 	 test -z "$ac_c_werror_flag" ||
   15811 	 test ! -s conftest.err
   15812        } && test -s conftest$ac_exeext &&
   15813        $as_test_x conftest$ac_exeext; then
   15814   eval "$as_ac_var=yes"
   15815 else
   15816   echo "$as_me: failed program was:" >&5
   15817 sed 's/^/| /' conftest.$ac_ext >&5
   15818 
   15819 	eval "$as_ac_var=no"
   15820 fi
   15821 
   15822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   15823       conftest$ac_exeext conftest.$ac_ext
   15824 fi
   15825 ac_res=`eval echo '${'$as_ac_var'}'`
   15826 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15827 echo "${ECHO_T}$ac_res" >&6; }
   15828 if test `eval echo '${'$as_ac_var'}'` = yes; then
   15829   cat >>confdefs.h <<_ACEOF
   15830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15831 _ACEOF
   15832 
   15833 else
   15834   { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5
   15835 echo "$as_me: error: BSM enabled and required function not found" >&2;}
   15836    { (exit 1); exit 1; }; }
   15837 fi
   15838 done
   15839 
   15840 		# These are optional
   15841 
   15842 
   15843 for ac_func in getaudit_addr aug_get_machine
   15844 do
   15845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15846 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   15847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   15848 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   15849   echo $ECHO_N "(cached) $ECHO_C" >&6
   15850 else
   15851   cat >conftest.$ac_ext <<_ACEOF
   15852 /* confdefs.h.  */
   15853 _ACEOF
   15854 cat confdefs.h >>conftest.$ac_ext
   15855 cat >>conftest.$ac_ext <<_ACEOF
   15856 /* end confdefs.h.  */
   15857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   15858    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   15859 #define $ac_func innocuous_$ac_func
   15860 
   15861 /* System header to define __stub macros and hopefully few prototypes,
   15862     which can conflict with char $ac_func (); below.
   15863     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   15864     <limits.h> exists even on freestanding compilers.  */
   15865 
   15866 #ifdef __STDC__
   15867 # include <limits.h>
   15868 #else
   15869 # include <assert.h>
   15870 #endif
   15871 
   15872 #undef $ac_func
   15873 
   15874 /* Override any GCC internal prototype to avoid an error.
   15875    Use char because int might match the return type of a GCC
   15876    builtin and then its argument prototype would still apply.  */
   15877 #ifdef __cplusplus
   15878 extern "C"
   15879 #endif
   15880 char $ac_func ();
   15881 /* The GNU C library defines this for functions which it implements
   15882     to always fail with ENOSYS.  Some functions are actually named
   15883     something starting with __ and the normal name is an alias.  */
   15884 #if defined __stub_$ac_func || defined __stub___$ac_func
   15885 choke me
   15886 #endif
   15887 
   15888 int
   15889 main ()
   15890 {
   15891 return $ac_func ();
   15892   ;
   15893   return 0;
   15894 }
   15895 _ACEOF
   15896 rm -f conftest.$ac_objext conftest$ac_exeext
   15897 if { (ac_try="$ac_link"
   15898 case "(($ac_try" in
   15899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15900   *) ac_try_echo=$ac_try;;
   15901 esac
   15902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15903   (eval "$ac_link") 2>conftest.er1
   15904   ac_status=$?
   15905   grep -v '^ *+' conftest.er1 >conftest.err
   15906   rm -f conftest.er1
   15907   cat conftest.err >&5
   15908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15909   (exit $ac_status); } && {
   15910 	 test -z "$ac_c_werror_flag" ||
   15911 	 test ! -s conftest.err
   15912        } && test -s conftest$ac_exeext &&
   15913        $as_test_x conftest$ac_exeext; then
   15914   eval "$as_ac_var=yes"
   15915 else
   15916   echo "$as_me: failed program was:" >&5
   15917 sed 's/^/| /' conftest.$ac_ext >&5
   15918 
   15919 	eval "$as_ac_var=no"
   15920 fi
   15921 
   15922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   15923       conftest$ac_exeext conftest.$ac_ext
   15924 fi
   15925 ac_res=`eval echo '${'$as_ac_var'}'`
   15926 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15927 echo "${ECHO_T}$ac_res" >&6; }
   15928 if test `eval echo '${'$as_ac_var'}'` = yes; then
   15929   cat >>confdefs.h <<_ACEOF
   15930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15931 _ACEOF
   15932 
   15933 fi
   15934 done
   15935 
   15936 
   15937 cat >>confdefs.h <<\_ACEOF
   15938 #define USE_BSM_AUDIT 1
   15939 _ACEOF
   15940 
   15941 		if test "$sol2ver" -ge 11; then
   15942 		   	SSHDLIBS="$SSHDLIBS -lscf"
   15943 
   15944 cat >>confdefs.h <<\_ACEOF
   15945 #define BROKEN_BSM_API 1
   15946 _ACEOF
   15947 
   15948 		fi
   15949 		;;
   15950 	  linux)
   15951 		{ echo "$as_me:$LINENO: result: linux" >&5
   15952 echo "${ECHO_T}linux" >&6; }
   15953 		AUDIT_MODULE=linux
   15954 
   15955 for ac_header in libaudit.h
   15956 do
   15957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   15958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15959   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   15960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   15961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   15962   echo $ECHO_N "(cached) $ECHO_C" >&6
   15963 fi
   15964 ac_res=`eval echo '${'$as_ac_Header'}'`
   15965 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   15966 echo "${ECHO_T}$ac_res" >&6; }
   15967 else
   15968   # Is the header compilable?
   15969 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   15970 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   15971 cat >conftest.$ac_ext <<_ACEOF
   15972 /* confdefs.h.  */
   15973 _ACEOF
   15974 cat confdefs.h >>conftest.$ac_ext
   15975 cat >>conftest.$ac_ext <<_ACEOF
   15976 /* end confdefs.h.  */
   15977 $ac_includes_default
   15978 #include <$ac_header>
   15979 _ACEOF
   15980 rm -f conftest.$ac_objext
   15981 if { (ac_try="$ac_compile"
   15982 case "(($ac_try" in
   15983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   15984   *) ac_try_echo=$ac_try;;
   15985 esac
   15986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   15987   (eval "$ac_compile") 2>conftest.er1
   15988   ac_status=$?
   15989   grep -v '^ *+' conftest.er1 >conftest.err
   15990   rm -f conftest.er1
   15991   cat conftest.err >&5
   15992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   15993   (exit $ac_status); } && {
   15994 	 test -z "$ac_c_werror_flag" ||
   15995 	 test ! -s conftest.err
   15996        } && test -s conftest.$ac_objext; then
   15997   ac_header_compiler=yes
   15998 else
   15999   echo "$as_me: failed program was:" >&5
   16000 sed 's/^/| /' conftest.$ac_ext >&5
   16001 
   16002 	ac_header_compiler=no
   16003 fi
   16004 
   16005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16006 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   16007 echo "${ECHO_T}$ac_header_compiler" >&6; }
   16008 
   16009 # Is the header present?
   16010 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   16011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   16012 cat >conftest.$ac_ext <<_ACEOF
   16013 /* confdefs.h.  */
   16014 _ACEOF
   16015 cat confdefs.h >>conftest.$ac_ext
   16016 cat >>conftest.$ac_ext <<_ACEOF
   16017 /* end confdefs.h.  */
   16018 #include <$ac_header>
   16019 _ACEOF
   16020 if { (ac_try="$ac_cpp conftest.$ac_ext"
   16021 case "(($ac_try" in
   16022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16023   *) ac_try_echo=$ac_try;;
   16024 esac
   16025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16026   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   16027   ac_status=$?
   16028   grep -v '^ *+' conftest.er1 >conftest.err
   16029   rm -f conftest.er1
   16030   cat conftest.err >&5
   16031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16032   (exit $ac_status); } >/dev/null && {
   16033 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   16034 	 test ! -s conftest.err
   16035        }; then
   16036   ac_header_preproc=yes
   16037 else
   16038   echo "$as_me: failed program was:" >&5
   16039 sed 's/^/| /' conftest.$ac_ext >&5
   16040 
   16041   ac_header_preproc=no
   16042 fi
   16043 
   16044 rm -f conftest.err conftest.$ac_ext
   16045 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   16046 echo "${ECHO_T}$ac_header_preproc" >&6; }
   16047 
   16048 # So?  What about this header?
   16049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   16050   yes:no: )
   16051     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   16052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   16053     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   16054 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   16055     ac_header_preproc=yes
   16056     ;;
   16057   no:yes:* )
   16058     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   16059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   16060     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   16061 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   16062     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   16063 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   16064     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   16065 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   16066     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   16067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   16068     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   16069 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   16070     ( cat <<\_ASBOX
   16071 ## ------------------------------------------- ##
   16072 ## Report this to openssh-unix-dev (at] mindrot.org ##
   16073 ## ------------------------------------------- ##
   16074 _ASBOX
   16075      ) | sed "s/^/$as_me: WARNING:     /" >&2
   16076     ;;
   16077 esac
   16078 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   16079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   16080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   16081   echo $ECHO_N "(cached) $ECHO_C" >&6
   16082 else
   16083   eval "$as_ac_Header=\$ac_header_preproc"
   16084 fi
   16085 ac_res=`eval echo '${'$as_ac_Header'}'`
   16086 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   16087 echo "${ECHO_T}$ac_res" >&6; }
   16088 
   16089 fi
   16090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   16091   cat >>confdefs.h <<_ACEOF
   16092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   16093 _ACEOF
   16094 
   16095 fi
   16096 
   16097 done
   16098 
   16099 		SSHDLIBS="$SSHDLIBS -laudit"
   16100 
   16101 cat >>confdefs.h <<\_ACEOF
   16102 #define USE_LINUX_AUDIT 1
   16103 _ACEOF
   16104 
   16105 		;;
   16106 	  debug)
   16107 		AUDIT_MODULE=debug
   16108 		{ echo "$as_me:$LINENO: result: debug" >&5
   16109 echo "${ECHO_T}debug" >&6; }
   16110 
   16111 cat >>confdefs.h <<\_ACEOF
   16112 #define SSH_AUDIT_EVENTS 1
   16113 _ACEOF
   16114 
   16115 		;;
   16116 	  no)
   16117 		{ echo "$as_me:$LINENO: result: no" >&5
   16118 echo "${ECHO_T}no" >&6; }
   16119 		;;
   16120 	  *)
   16121 		{ { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5
   16122 echo "$as_me: error: Unknown audit module $withval" >&2;}
   16123    { (exit 1); exit 1; }; }
   16124 		;;
   16125 	esac
   16126 
   16127 fi
   16128 
   16129 
   16130 
   16131 # Check whether --with-pie was given.
   16132 if test "${with_pie+set}" = set; then
   16133   withval=$with_pie;
   16134 	if test "x$withval" = "xno"; then
   16135 		use_pie=no
   16136 	fi
   16137 	if test "x$withval" = "xyes"; then
   16138 		use_pie=yes
   16139 	fi
   16140 
   16141 
   16142 fi
   16143 
   16144 if test "x$use_pie" = "x"; then
   16145 	use_pie=no
   16146 fi
   16147 if test "x$use_toolchain_hardening" != "x1" && test "x$use_pie" = "xauto"; then
   16148 	# Turn off automatic PIE when toolchain hardening is off.
   16149 	use_pie=no
   16150 fi
   16151 if test "x$use_pie" = "xauto"; then
   16152 	# Automatic PIE requires gcc >= 4.x
   16153 	{ echo "$as_me:$LINENO: checking for gcc >= 4.x" >&5
   16154 echo $ECHO_N "checking for gcc >= 4.x... $ECHO_C" >&6; }
   16155 	cat >conftest.$ac_ext <<_ACEOF
   16156 /* confdefs.h.  */
   16157 _ACEOF
   16158 cat confdefs.h >>conftest.$ac_ext
   16159 cat >>conftest.$ac_ext <<_ACEOF
   16160 /* end confdefs.h.  */
   16161 
   16162 #if !defined(__GNUC__) || __GNUC__ < 4
   16163 #error gcc is too old
   16164 #endif
   16165 
   16166 _ACEOF
   16167 rm -f conftest.$ac_objext
   16168 if { (ac_try="$ac_compile"
   16169 case "(($ac_try" in
   16170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16171   *) ac_try_echo=$ac_try;;
   16172 esac
   16173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16174   (eval "$ac_compile") 2>conftest.er1
   16175   ac_status=$?
   16176   grep -v '^ *+' conftest.er1 >conftest.err
   16177   rm -f conftest.er1
   16178   cat conftest.err >&5
   16179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16180   (exit $ac_status); } && {
   16181 	 test -z "$ac_c_werror_flag" ||
   16182 	 test ! -s conftest.err
   16183        } && test -s conftest.$ac_objext; then
   16184    { echo "$as_me:$LINENO: result: yes" >&5
   16185 echo "${ECHO_T}yes" >&6; }
   16186 else
   16187   echo "$as_me: failed program was:" >&5
   16188 sed 's/^/| /' conftest.$ac_ext >&5
   16189 
   16190 	 { echo "$as_me:$LINENO: result: no" >&5
   16191 echo "${ECHO_T}no" >&6; }
   16192 	  use_pie=no
   16193 
   16194 fi
   16195 
   16196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16197 fi
   16198 if test "x$use_pie" != "xno"; then
   16199 	SAVED_CFLAGS="$CFLAGS"
   16200 	SAVED_LDFLAGS="$LDFLAGS"
   16201 	{
   16202 	{ echo "$as_me:$LINENO: checking if $CC supports compile flag -fPIE" >&5
   16203 echo $ECHO_N "checking if $CC supports compile flag -fPIE... $ECHO_C" >&6; }
   16204 	saved_CFLAGS="$CFLAGS"
   16205 	CFLAGS="$CFLAGS $WERROR -fPIE"
   16206 	_define_flag=""
   16207 	test "x$_define_flag" = "x" && _define_flag="-fPIE"
   16208 	cat >conftest.$ac_ext <<_ACEOF
   16209 /* confdefs.h.  */
   16210 _ACEOF
   16211 cat confdefs.h >>conftest.$ac_ext
   16212 cat >>conftest.$ac_ext <<_ACEOF
   16213 /* end confdefs.h.  */
   16214 
   16215 #include <stdlib.h>
   16216 #include <stdio.h>
   16217 int main(int argc, char **argv) {
   16218 	/* Some math to catch -ftrapv problems in the toolchain */
   16219 	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
   16220 	float l = i * 2.1;
   16221 	double m = l / 0.5;
   16222 	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
   16223 	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
   16224 	exit(0);
   16225 }
   16226 
   16227 _ACEOF
   16228 rm -f conftest.$ac_objext
   16229 if { (ac_try="$ac_compile"
   16230 case "(($ac_try" in
   16231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16232   *) ac_try_echo=$ac_try;;
   16233 esac
   16234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16235   (eval "$ac_compile") 2>conftest.er1
   16236   ac_status=$?
   16237   grep -v '^ *+' conftest.er1 >conftest.err
   16238   rm -f conftest.er1
   16239   cat conftest.err >&5
   16240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16241   (exit $ac_status); } && {
   16242 	 test -z "$ac_c_werror_flag" ||
   16243 	 test ! -s conftest.err
   16244        } && test -s conftest.$ac_objext; then
   16245 
   16246 if `grep -i "unrecognized option" conftest.err >/dev/null`
   16247 then
   16248 		{ echo "$as_me:$LINENO: result: no" >&5
   16249 echo "${ECHO_T}no" >&6; }
   16250 		CFLAGS="$saved_CFLAGS"
   16251 else
   16252 		{ echo "$as_me:$LINENO: result: yes" >&5
   16253 echo "${ECHO_T}yes" >&6; }
   16254 		 CFLAGS="$saved_CFLAGS $_define_flag"
   16255 fi
   16256 else
   16257   echo "$as_me: failed program was:" >&5
   16258 sed 's/^/| /' conftest.$ac_ext >&5
   16259 
   16260 	 { echo "$as_me:$LINENO: result: no" >&5
   16261 echo "${ECHO_T}no" >&6; }
   16262 		  CFLAGS="$saved_CFLAGS"
   16263 
   16264 fi
   16265 
   16266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16267 }
   16268 	{
   16269 	{ echo "$as_me:$LINENO: checking if $LD supports link flag -pie" >&5
   16270 echo $ECHO_N "checking if $LD supports link flag -pie... $ECHO_C" >&6; }
   16271 	saved_LDFLAGS="$LDFLAGS"
   16272 	LDFLAGS="$LDFLAGS $WERROR -pie"
   16273 	_define_flag=""
   16274 	test "x$_define_flag" = "x" && _define_flag="-pie"
   16275 	cat >conftest.$ac_ext <<_ACEOF
   16276 /* confdefs.h.  */
   16277 _ACEOF
   16278 cat confdefs.h >>conftest.$ac_ext
   16279 cat >>conftest.$ac_ext <<_ACEOF
   16280 /* end confdefs.h.  */
   16281 
   16282 #include <stdlib.h>
   16283 #include <stdio.h>
   16284 int main(int argc, char **argv) {
   16285 	/* Some math to catch -ftrapv problems in the toolchain */
   16286 	int i = 123 * argc, j = 456 + argc, k = 789 - argc;
   16287 	float l = i * 2.1;
   16288 	double m = l / 0.5;
   16289 	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
   16290 	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
   16291 	exit(0);
   16292 }
   16293 
   16294 _ACEOF
   16295 rm -f conftest.$ac_objext conftest$ac_exeext
   16296 if { (ac_try="$ac_link"
   16297 case "(($ac_try" in
   16298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16299   *) ac_try_echo=$ac_try;;
   16300 esac
   16301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16302   (eval "$ac_link") 2>conftest.er1
   16303   ac_status=$?
   16304   grep -v '^ *+' conftest.er1 >conftest.err
   16305   rm -f conftest.er1
   16306   cat conftest.err >&5
   16307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16308   (exit $ac_status); } && {
   16309 	 test -z "$ac_c_werror_flag" ||
   16310 	 test ! -s conftest.err
   16311        } && test -s conftest$ac_exeext &&
   16312        $as_test_x conftest$ac_exeext; then
   16313    { echo "$as_me:$LINENO: result: yes" >&5
   16314 echo "${ECHO_T}yes" >&6; }
   16315 		  LDFLAGS="$saved_LDFLAGS $_define_flag"
   16316 else
   16317   echo "$as_me: failed program was:" >&5
   16318 sed 's/^/| /' conftest.$ac_ext >&5
   16319 
   16320 	 { echo "$as_me:$LINENO: result: no" >&5
   16321 echo "${ECHO_T}no" >&6; }
   16322 		  LDFLAGS="$saved_LDFLAGS"
   16323 
   16324 fi
   16325 
   16326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   16327       conftest$ac_exeext conftest.$ac_ext
   16328 }
   16329 	# We use both -fPIE and -pie or neither.
   16330 	{ echo "$as_me:$LINENO: checking whether both -fPIE and -pie are supported" >&5
   16331 echo $ECHO_N "checking whether both -fPIE and -pie are supported... $ECHO_C" >&6; }
   16332 	if echo "x $CFLAGS"  | grep ' -fPIE' >/dev/null 2>&1 && \
   16333 	   echo "x $LDFLAGS" | grep ' -pie'  >/dev/null 2>&1 ; then
   16334 		{ echo "$as_me:$LINENO: result: yes" >&5
   16335 echo "${ECHO_T}yes" >&6; }
   16336 	else
   16337 		{ echo "$as_me:$LINENO: result: no" >&5
   16338 echo "${ECHO_T}no" >&6; }
   16339 		CFLAGS="$SAVED_CFLAGS"
   16340 		LDFLAGS="$SAVED_LDFLAGS"
   16341 	fi
   16342 fi
   16343 
   16344 
   16345 
   16346 
   16347 
   16348 
   16349 
   16350 
   16351 
   16352 
   16353 
   16354 
   16355 
   16356 
   16357 
   16358 
   16359 
   16360 
   16361 
   16362 
   16363 
   16364 
   16365 
   16366 
   16367 
   16368 
   16369 
   16370 
   16371 
   16372 
   16373 
   16374 
   16375 
   16376 
   16377 
   16378 
   16379 
   16380 
   16381 
   16382 
   16383 
   16384 
   16385 
   16386 
   16387 
   16388 
   16389 
   16390 
   16391 
   16392 
   16393 
   16394 
   16395 
   16396 
   16397 
   16398 
   16399 
   16400 
   16401 
   16402 
   16403 
   16404 
   16405 
   16406 
   16407 
   16408 
   16409 
   16410 
   16411 
   16412 
   16413 
   16414 
   16415 
   16416 
   16417 
   16418 
   16419 
   16420 
   16421 
   16422 
   16423 
   16424 
   16425 
   16426 
   16427 
   16428 
   16429 
   16430 
   16431 
   16432 
   16433 
   16434 
   16435 
   16436 
   16437 
   16438 
   16439 
   16440 
   16441 
   16442 
   16443 
   16444 
   16445 
   16446 
   16447 
   16448 
   16449 
   16450 
   16451 
   16452 
   16453 for ac_func in  \
   16454 	Blowfish_initstate \
   16455 	Blowfish_expandstate \
   16456 	Blowfish_expand0state \
   16457 	Blowfish_stream2word \
   16458 	asprintf \
   16459 	b64_ntop \
   16460 	__b64_ntop \
   16461 	b64_pton \
   16462 	__b64_pton \
   16463 	bcopy \
   16464 	bcrypt_pbkdf \
   16465 	bindresvport_sa \
   16466 	blf_enc \
   16467 	cap_rights_limit \
   16468 	clock \
   16469 	closefrom \
   16470 	dirfd \
   16471 	endgrent \
   16472 	explicit_bzero \
   16473 	fchmod \
   16474 	fchown \
   16475 	freeaddrinfo \
   16476 	fstatfs \
   16477 	fstatvfs \
   16478 	futimes \
   16479 	getaddrinfo \
   16480 	getcwd \
   16481 	getgrouplist \
   16482 	getnameinfo \
   16483 	getopt \
   16484 	getpeereid \
   16485 	getpeerucred \
   16486 	getpgid \
   16487 	getpgrp \
   16488 	_getpty \
   16489 	getrlimit \
   16490 	getttyent \
   16491 	glob \
   16492 	group_from_gid \
   16493 	inet_aton \
   16494 	inet_ntoa \
   16495 	inet_ntop \
   16496 	innetgr \
   16497 	login_getcapbool \
   16498 	mblen \
   16499 	md5_crypt \
   16500 	memmove \
   16501 	memset_s \
   16502 	mkdtemp \
   16503 	mmap \
   16504 	ngetaddrinfo \
   16505 	nsleep \
   16506 	ogetaddrinfo \
   16507 	openlog_r \
   16508 	poll \
   16509 	prctl \
   16510 	pstat \
   16511 	readpassphrase \
   16512 	reallocarray \
   16513 	realpath \
   16514 	recvmsg \
   16515 	rresvport_af \
   16516 	sendmsg \
   16517 	setdtablesize \
   16518 	setegid \
   16519 	setenv \
   16520 	seteuid \
   16521 	setgroupent \
   16522 	setgroups \
   16523 	setlinebuf \
   16524 	setlogin \
   16525 	setpassent\
   16526 	setpcred \
   16527 	setproctitle \
   16528 	setregid \
   16529 	setreuid \
   16530 	setrlimit \
   16531 	setsid \
   16532 	setvbuf \
   16533 	sigaction \
   16534 	sigvec \
   16535 	snprintf \
   16536 	socketpair \
   16537 	statfs \
   16538 	statvfs \
   16539 	strdup \
   16540 	strerror \
   16541 	strlcat \
   16542 	strlcpy \
   16543 	strmode \
   16544 	strnlen \
   16545 	strnvis \
   16546 	strptime \
   16547 	strtonum \
   16548 	strtoll \
   16549 	strtoul \
   16550 	strtoull \
   16551 	swap32 \
   16552 	sysconf \
   16553 	tcgetpgrp \
   16554 	timingsafe_bcmp \
   16555 	truncate \
   16556 	unsetenv \
   16557 	updwtmpx \
   16558 	user_from_uid \
   16559 	usleep \
   16560 	vasprintf \
   16561 	vsnprintf \
   16562 	waitpid \
   16563 
   16564 do
   16565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16566 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   16567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   16568 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   16569   echo $ECHO_N "(cached) $ECHO_C" >&6
   16570 else
   16571   cat >conftest.$ac_ext <<_ACEOF
   16572 /* confdefs.h.  */
   16573 _ACEOF
   16574 cat confdefs.h >>conftest.$ac_ext
   16575 cat >>conftest.$ac_ext <<_ACEOF
   16576 /* end confdefs.h.  */
   16577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   16578    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   16579 #define $ac_func innocuous_$ac_func
   16580 
   16581 /* System header to define __stub macros and hopefully few prototypes,
   16582     which can conflict with char $ac_func (); below.
   16583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   16584     <limits.h> exists even on freestanding compilers.  */
   16585 
   16586 #ifdef __STDC__
   16587 # include <limits.h>
   16588 #else
   16589 # include <assert.h>
   16590 #endif
   16591 
   16592 #undef $ac_func
   16593 
   16594 /* Override any GCC internal prototype to avoid an error.
   16595    Use char because int might match the return type of a GCC
   16596    builtin and then its argument prototype would still apply.  */
   16597 #ifdef __cplusplus
   16598 extern "C"
   16599 #endif
   16600 char $ac_func ();
   16601 /* The GNU C library defines this for functions which it implements
   16602     to always fail with ENOSYS.  Some functions are actually named
   16603     something starting with __ and the normal name is an alias.  */
   16604 #if defined __stub_$ac_func || defined __stub___$ac_func
   16605 choke me
   16606 #endif
   16607 
   16608 int
   16609 main ()
   16610 {
   16611 return $ac_func ();
   16612   ;
   16613   return 0;
   16614 }
   16615 _ACEOF
   16616 rm -f conftest.$ac_objext conftest$ac_exeext
   16617 if { (ac_try="$ac_link"
   16618 case "(($ac_try" in
   16619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16620   *) ac_try_echo=$ac_try;;
   16621 esac
   16622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16623   (eval "$ac_link") 2>conftest.er1
   16624   ac_status=$?
   16625   grep -v '^ *+' conftest.er1 >conftest.err
   16626   rm -f conftest.er1
   16627   cat conftest.err >&5
   16628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16629   (exit $ac_status); } && {
   16630 	 test -z "$ac_c_werror_flag" ||
   16631 	 test ! -s conftest.err
   16632        } && test -s conftest$ac_exeext &&
   16633        $as_test_x conftest$ac_exeext; then
   16634   eval "$as_ac_var=yes"
   16635 else
   16636   echo "$as_me: failed program was:" >&5
   16637 sed 's/^/| /' conftest.$ac_ext >&5
   16638 
   16639 	eval "$as_ac_var=no"
   16640 fi
   16641 
   16642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   16643       conftest$ac_exeext conftest.$ac_ext
   16644 fi
   16645 ac_res=`eval echo '${'$as_ac_var'}'`
   16646 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   16647 echo "${ECHO_T}$ac_res" >&6; }
   16648 if test `eval echo '${'$as_ac_var'}'` = yes; then
   16649   cat >>confdefs.h <<_ACEOF
   16650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16651 _ACEOF
   16652 
   16653 fi
   16654 done
   16655 
   16656 
   16657 cat >conftest.$ac_ext <<_ACEOF
   16658 /* confdefs.h.  */
   16659 _ACEOF
   16660 cat confdefs.h >>conftest.$ac_ext
   16661 cat >>conftest.$ac_ext <<_ACEOF
   16662 /* end confdefs.h.  */
   16663  #include <ctype.h>
   16664 int
   16665 main ()
   16666 {
   16667  return (isblank('a'));
   16668   ;
   16669   return 0;
   16670 }
   16671 _ACEOF
   16672 rm -f conftest.$ac_objext conftest$ac_exeext
   16673 if { (ac_try="$ac_link"
   16674 case "(($ac_try" in
   16675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16676   *) ac_try_echo=$ac_try;;
   16677 esac
   16678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16679   (eval "$ac_link") 2>conftest.er1
   16680   ac_status=$?
   16681   grep -v '^ *+' conftest.er1 >conftest.err
   16682   rm -f conftest.er1
   16683   cat conftest.err >&5
   16684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16685   (exit $ac_status); } && {
   16686 	 test -z "$ac_c_werror_flag" ||
   16687 	 test ! -s conftest.err
   16688        } && test -s conftest$ac_exeext &&
   16689        $as_test_x conftest$ac_exeext; then
   16690 
   16691 cat >>confdefs.h <<\_ACEOF
   16692 #define HAVE_ISBLANK 1
   16693 _ACEOF
   16694 
   16695 
   16696 else
   16697   echo "$as_me: failed program was:" >&5
   16698 sed 's/^/| /' conftest.$ac_ext >&5
   16699 
   16700 
   16701 fi
   16702 
   16703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   16704       conftest$ac_exeext conftest.$ac_ext
   16705 
   16706 # PKCS11 depends on OpenSSL.
   16707 if test "x$openssl" = "xyes" ; then
   16708 	# PKCS#11 support requires dlopen() and co
   16709 	{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
   16710 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
   16711 if test "${ac_cv_search_dlopen+set}" = set; then
   16712   echo $ECHO_N "(cached) $ECHO_C" >&6
   16713 else
   16714   ac_func_search_save_LIBS=$LIBS
   16715 cat >conftest.$ac_ext <<_ACEOF
   16716 /* confdefs.h.  */
   16717 _ACEOF
   16718 cat confdefs.h >>conftest.$ac_ext
   16719 cat >>conftest.$ac_ext <<_ACEOF
   16720 /* end confdefs.h.  */
   16721 
   16722 /* Override any GCC internal prototype to avoid an error.
   16723    Use char because int might match the return type of a GCC
   16724    builtin and then its argument prototype would still apply.  */
   16725 #ifdef __cplusplus
   16726 extern "C"
   16727 #endif
   16728 char dlopen ();
   16729 int
   16730 main ()
   16731 {
   16732 return dlopen ();
   16733   ;
   16734   return 0;
   16735 }
   16736 _ACEOF
   16737 for ac_lib in '' dl; do
   16738   if test -z "$ac_lib"; then
   16739     ac_res="none required"
   16740   else
   16741     ac_res=-l$ac_lib
   16742     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   16743   fi
   16744   rm -f conftest.$ac_objext conftest$ac_exeext
   16745 if { (ac_try="$ac_link"
   16746 case "(($ac_try" in
   16747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16748   *) ac_try_echo=$ac_try;;
   16749 esac
   16750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16751   (eval "$ac_link") 2>conftest.er1
   16752   ac_status=$?
   16753   grep -v '^ *+' conftest.er1 >conftest.err
   16754   rm -f conftest.er1
   16755   cat conftest.err >&5
   16756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16757   (exit $ac_status); } && {
   16758 	 test -z "$ac_c_werror_flag" ||
   16759 	 test ! -s conftest.err
   16760        } && test -s conftest$ac_exeext &&
   16761        $as_test_x conftest$ac_exeext; then
   16762   ac_cv_search_dlopen=$ac_res
   16763 else
   16764   echo "$as_me: failed program was:" >&5
   16765 sed 's/^/| /' conftest.$ac_ext >&5
   16766 
   16767 
   16768 fi
   16769 
   16770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   16771       conftest$ac_exeext
   16772   if test "${ac_cv_search_dlopen+set}" = set; then
   16773   break
   16774 fi
   16775 done
   16776 if test "${ac_cv_search_dlopen+set}" = set; then
   16777   :
   16778 else
   16779   ac_cv_search_dlopen=no
   16780 fi
   16781 rm conftest.$ac_ext
   16782 LIBS=$ac_func_search_save_LIBS
   16783 fi
   16784 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
   16785 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
   16786 ac_res=$ac_cv_search_dlopen
   16787 if test "$ac_res" != no; then
   16788   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   16789 
   16790 cat >>confdefs.h <<\_ACEOF
   16791 #define ENABLE_PKCS11
   16792 _ACEOF
   16793 
   16794 
   16795 fi
   16796 
   16797 fi
   16798 
   16799 # IRIX has a const char return value for gai_strerror()
   16800 
   16801 for ac_func in gai_strerror
   16802 do
   16803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16804 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   16805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   16806 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   16807   echo $ECHO_N "(cached) $ECHO_C" >&6
   16808 else
   16809   cat >conftest.$ac_ext <<_ACEOF
   16810 /* confdefs.h.  */
   16811 _ACEOF
   16812 cat confdefs.h >>conftest.$ac_ext
   16813 cat >>conftest.$ac_ext <<_ACEOF
   16814 /* end confdefs.h.  */
   16815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   16816    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   16817 #define $ac_func innocuous_$ac_func
   16818 
   16819 /* System header to define __stub macros and hopefully few prototypes,
   16820     which can conflict with char $ac_func (); below.
   16821     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   16822     <limits.h> exists even on freestanding compilers.  */
   16823 
   16824 #ifdef __STDC__
   16825 # include <limits.h>
   16826 #else
   16827 # include <assert.h>
   16828 #endif
   16829 
   16830 #undef $ac_func
   16831 
   16832 /* Override any GCC internal prototype to avoid an error.
   16833    Use char because int might match the return type of a GCC
   16834    builtin and then its argument prototype would still apply.  */
   16835 #ifdef __cplusplus
   16836 extern "C"
   16837 #endif
   16838 char $ac_func ();
   16839 /* The GNU C library defines this for functions which it implements
   16840     to always fail with ENOSYS.  Some functions are actually named
   16841     something starting with __ and the normal name is an alias.  */
   16842 #if defined __stub_$ac_func || defined __stub___$ac_func
   16843 choke me
   16844 #endif
   16845 
   16846 int
   16847 main ()
   16848 {
   16849 return $ac_func ();
   16850   ;
   16851   return 0;
   16852 }
   16853 _ACEOF
   16854 rm -f conftest.$ac_objext conftest$ac_exeext
   16855 if { (ac_try="$ac_link"
   16856 case "(($ac_try" in
   16857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16858   *) ac_try_echo=$ac_try;;
   16859 esac
   16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16861   (eval "$ac_link") 2>conftest.er1
   16862   ac_status=$?
   16863   grep -v '^ *+' conftest.er1 >conftest.err
   16864   rm -f conftest.er1
   16865   cat conftest.err >&5
   16866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16867   (exit $ac_status); } && {
   16868 	 test -z "$ac_c_werror_flag" ||
   16869 	 test ! -s conftest.err
   16870        } && test -s conftest$ac_exeext &&
   16871        $as_test_x conftest$ac_exeext; then
   16872   eval "$as_ac_var=yes"
   16873 else
   16874   echo "$as_me: failed program was:" >&5
   16875 sed 's/^/| /' conftest.$ac_ext >&5
   16876 
   16877 	eval "$as_ac_var=no"
   16878 fi
   16879 
   16880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   16881       conftest$ac_exeext conftest.$ac_ext
   16882 fi
   16883 ac_res=`eval echo '${'$as_ac_var'}'`
   16884 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   16885 echo "${ECHO_T}$ac_res" >&6; }
   16886 if test `eval echo '${'$as_ac_var'}'` = yes; then
   16887   cat >>confdefs.h <<_ACEOF
   16888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16889 _ACEOF
   16890 
   16891 	cat >>confdefs.h <<\_ACEOF
   16892 #define HAVE_GAI_STRERROR 1
   16893 _ACEOF
   16894 
   16895 	cat >conftest.$ac_ext <<_ACEOF
   16896 /* confdefs.h.  */
   16897 _ACEOF
   16898 cat confdefs.h >>conftest.$ac_ext
   16899 cat >>conftest.$ac_ext <<_ACEOF
   16900 /* end confdefs.h.  */
   16901 
   16902 #include <sys/types.h>
   16903 #include <sys/socket.h>
   16904 #include <netdb.h>
   16905 
   16906 const char *gai_strerror(int);
   16907 
   16908 int
   16909 main ()
   16910 {
   16911 
   16912 	char *str;
   16913 	str = gai_strerror(0);
   16914 
   16915   ;
   16916   return 0;
   16917 }
   16918 _ACEOF
   16919 rm -f conftest.$ac_objext
   16920 if { (ac_try="$ac_compile"
   16921 case "(($ac_try" in
   16922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16923   *) ac_try_echo=$ac_try;;
   16924 esac
   16925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16926   (eval "$ac_compile") 2>conftest.er1
   16927   ac_status=$?
   16928   grep -v '^ *+' conftest.er1 >conftest.err
   16929   rm -f conftest.er1
   16930   cat conftest.err >&5
   16931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16932   (exit $ac_status); } && {
   16933 	 test -z "$ac_c_werror_flag" ||
   16934 	 test ! -s conftest.err
   16935        } && test -s conftest.$ac_objext; then
   16936 
   16937 
   16938 cat >>confdefs.h <<\_ACEOF
   16939 #define HAVE_CONST_GAI_STRERROR_PROTO 1
   16940 _ACEOF
   16941 
   16942 else
   16943   echo "$as_me: failed program was:" >&5
   16944 sed 's/^/| /' conftest.$ac_ext >&5
   16945 
   16946 
   16947 fi
   16948 
   16949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16950 fi
   16951 done
   16952 
   16953 
   16954 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
   16955 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
   16956 if test "${ac_cv_search_nanosleep+set}" = set; then
   16957   echo $ECHO_N "(cached) $ECHO_C" >&6
   16958 else
   16959   ac_func_search_save_LIBS=$LIBS
   16960 cat >conftest.$ac_ext <<_ACEOF
   16961 /* confdefs.h.  */
   16962 _ACEOF
   16963 cat confdefs.h >>conftest.$ac_ext
   16964 cat >>conftest.$ac_ext <<_ACEOF
   16965 /* end confdefs.h.  */
   16966 
   16967 /* Override any GCC internal prototype to avoid an error.
   16968    Use char because int might match the return type of a GCC
   16969    builtin and then its argument prototype would still apply.  */
   16970 #ifdef __cplusplus
   16971 extern "C"
   16972 #endif
   16973 char nanosleep ();
   16974 int
   16975 main ()
   16976 {
   16977 return nanosleep ();
   16978   ;
   16979   return 0;
   16980 }
   16981 _ACEOF
   16982 for ac_lib in '' rt posix4; do
   16983   if test -z "$ac_lib"; then
   16984     ac_res="none required"
   16985   else
   16986     ac_res=-l$ac_lib
   16987     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   16988   fi
   16989   rm -f conftest.$ac_objext conftest$ac_exeext
   16990 if { (ac_try="$ac_link"
   16991 case "(($ac_try" in
   16992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16993   *) ac_try_echo=$ac_try;;
   16994 esac
   16995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16996   (eval "$ac_link") 2>conftest.er1
   16997   ac_status=$?
   16998   grep -v '^ *+' conftest.er1 >conftest.err
   16999   rm -f conftest.er1
   17000   cat conftest.err >&5
   17001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17002   (exit $ac_status); } && {
   17003 	 test -z "$ac_c_werror_flag" ||
   17004 	 test ! -s conftest.err
   17005        } && test -s conftest$ac_exeext &&
   17006        $as_test_x conftest$ac_exeext; then
   17007   ac_cv_search_nanosleep=$ac_res
   17008 else
   17009   echo "$as_me: failed program was:" >&5
   17010 sed 's/^/| /' conftest.$ac_ext >&5
   17011 
   17012 
   17013 fi
   17014 
   17015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   17016       conftest$ac_exeext
   17017   if test "${ac_cv_search_nanosleep+set}" = set; then
   17018   break
   17019 fi
   17020 done
   17021 if test "${ac_cv_search_nanosleep+set}" = set; then
   17022   :
   17023 else
   17024   ac_cv_search_nanosleep=no
   17025 fi
   17026 rm conftest.$ac_ext
   17027 LIBS=$ac_func_search_save_LIBS
   17028 fi
   17029 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
   17030 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
   17031 ac_res=$ac_cv_search_nanosleep
   17032 if test "$ac_res" != no; then
   17033   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   17034 
   17035 cat >>confdefs.h <<\_ACEOF
   17036 #define HAVE_NANOSLEEP 1
   17037 _ACEOF
   17038 
   17039 fi
   17040 
   17041 
   17042 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
   17043 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
   17044 if test "${ac_cv_search_clock_gettime+set}" = set; then
   17045   echo $ECHO_N "(cached) $ECHO_C" >&6
   17046 else
   17047   ac_func_search_save_LIBS=$LIBS
   17048 cat >conftest.$ac_ext <<_ACEOF
   17049 /* confdefs.h.  */
   17050 _ACEOF
   17051 cat confdefs.h >>conftest.$ac_ext
   17052 cat >>conftest.$ac_ext <<_ACEOF
   17053 /* end confdefs.h.  */
   17054 
   17055 /* Override any GCC internal prototype to avoid an error.
   17056    Use char because int might match the return type of a GCC
   17057    builtin and then its argument prototype would still apply.  */
   17058 #ifdef __cplusplus
   17059 extern "C"
   17060 #endif
   17061 char clock_gettime ();
   17062 int
   17063 main ()
   17064 {
   17065 return clock_gettime ();
   17066   ;
   17067   return 0;
   17068 }
   17069 _ACEOF
   17070 for ac_lib in '' rt; do
   17071   if test -z "$ac_lib"; then
   17072     ac_res="none required"
   17073   else
   17074     ac_res=-l$ac_lib
   17075     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   17076   fi
   17077   rm -f conftest.$ac_objext conftest$ac_exeext
   17078 if { (ac_try="$ac_link"
   17079 case "(($ac_try" in
   17080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17081   *) ac_try_echo=$ac_try;;
   17082 esac
   17083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17084   (eval "$ac_link") 2>conftest.er1
   17085   ac_status=$?
   17086   grep -v '^ *+' conftest.er1 >conftest.err
   17087   rm -f conftest.er1
   17088   cat conftest.err >&5
   17089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17090   (exit $ac_status); } && {
   17091 	 test -z "$ac_c_werror_flag" ||
   17092 	 test ! -s conftest.err
   17093        } && test -s conftest$ac_exeext &&
   17094        $as_test_x conftest$ac_exeext; then
   17095   ac_cv_search_clock_gettime=$ac_res
   17096 else
   17097   echo "$as_me: failed program was:" >&5
   17098 sed 's/^/| /' conftest.$ac_ext >&5
   17099 
   17100 
   17101 fi
   17102 
   17103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   17104       conftest$ac_exeext
   17105   if test "${ac_cv_search_clock_gettime+set}" = set; then
   17106   break
   17107 fi
   17108 done
   17109 if test "${ac_cv_search_clock_gettime+set}" = set; then
   17110   :
   17111 else
   17112   ac_cv_search_clock_gettime=no
   17113 fi
   17114 rm conftest.$ac_ext
   17115 LIBS=$ac_func_search_save_LIBS
   17116 fi
   17117 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
   17118 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
   17119 ac_res=$ac_cv_search_clock_gettime
   17120 if test "$ac_res" != no; then
   17121   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   17122 
   17123 cat >>confdefs.h <<\_ACEOF
   17124 #define HAVE_CLOCK_GETTIME 1
   17125 _ACEOF
   17126 
   17127 fi
   17128 
   17129 
   17130 { echo "$as_me:$LINENO: checking whether getrusage is declared" >&5
   17131 echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6; }
   17132 if test "${ac_cv_have_decl_getrusage+set}" = set; then
   17133   echo $ECHO_N "(cached) $ECHO_C" >&6
   17134 else
   17135   cat >conftest.$ac_ext <<_ACEOF
   17136 /* confdefs.h.  */
   17137 _ACEOF
   17138 cat confdefs.h >>conftest.$ac_ext
   17139 cat >>conftest.$ac_ext <<_ACEOF
   17140 /* end confdefs.h.  */
   17141 $ac_includes_default
   17142 int
   17143 main ()
   17144 {
   17145 #ifndef getrusage
   17146   (void) getrusage;
   17147 #endif
   17148 
   17149   ;
   17150   return 0;
   17151 }
   17152 _ACEOF
   17153 rm -f conftest.$ac_objext
   17154 if { (ac_try="$ac_compile"
   17155 case "(($ac_try" in
   17156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17157   *) ac_try_echo=$ac_try;;
   17158 esac
   17159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17160   (eval "$ac_compile") 2>conftest.er1
   17161   ac_status=$?
   17162   grep -v '^ *+' conftest.er1 >conftest.err
   17163   rm -f conftest.er1
   17164   cat conftest.err >&5
   17165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17166   (exit $ac_status); } && {
   17167 	 test -z "$ac_c_werror_flag" ||
   17168 	 test ! -s conftest.err
   17169        } && test -s conftest.$ac_objext; then
   17170   ac_cv_have_decl_getrusage=yes
   17171 else
   17172   echo "$as_me: failed program was:" >&5
   17173 sed 's/^/| /' conftest.$ac_ext >&5
   17174 
   17175 	ac_cv_have_decl_getrusage=no
   17176 fi
   17177 
   17178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17179 fi
   17180 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5
   17181 echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6; }
   17182 if test $ac_cv_have_decl_getrusage = yes; then
   17183 
   17184 for ac_func in getrusage
   17185 do
   17186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17187 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   17188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   17189 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   17190   echo $ECHO_N "(cached) $ECHO_C" >&6
   17191 else
   17192   cat >conftest.$ac_ext <<_ACEOF
   17193 /* confdefs.h.  */
   17194 _ACEOF
   17195 cat confdefs.h >>conftest.$ac_ext
   17196 cat >>conftest.$ac_ext <<_ACEOF
   17197 /* end confdefs.h.  */
   17198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   17199    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   17200 #define $ac_func innocuous_$ac_func
   17201 
   17202 /* System header to define __stub macros and hopefully few prototypes,
   17203     which can conflict with char $ac_func (); below.
   17204     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   17205     <limits.h> exists even on freestanding compilers.  */
   17206 
   17207 #ifdef __STDC__
   17208 # include <limits.h>
   17209 #else
   17210 # include <assert.h>
   17211 #endif
   17212 
   17213 #undef $ac_func
   17214 
   17215 /* Override any GCC internal prototype to avoid an error.
   17216    Use char because int might match the return type of a GCC
   17217    builtin and then its argument prototype would still apply.  */
   17218 #ifdef __cplusplus
   17219 extern "C"
   17220 #endif
   17221 char $ac_func ();
   17222 /* The GNU C library defines this for functions which it implements
   17223     to always fail with ENOSYS.  Some functions are actually named
   17224     something starting with __ and the normal name is an alias.  */
   17225 #if defined __stub_$ac_func || defined __stub___$ac_func
   17226 choke me
   17227 #endif
   17228 
   17229 int
   17230 main ()
   17231 {
   17232 return $ac_func ();
   17233   ;
   17234   return 0;
   17235 }
   17236 _ACEOF
   17237 rm -f conftest.$ac_objext conftest$ac_exeext
   17238 if { (ac_try="$ac_link"
   17239 case "(($ac_try" in
   17240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17241   *) ac_try_echo=$ac_try;;
   17242 esac
   17243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17244   (eval "$ac_link") 2>conftest.er1
   17245   ac_status=$?
   17246   grep -v '^ *+' conftest.er1 >conftest.err
   17247   rm -f conftest.er1
   17248   cat conftest.err >&5
   17249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17250   (exit $ac_status); } && {
   17251 	 test -z "$ac_c_werror_flag" ||
   17252 	 test ! -s conftest.err
   17253        } && test -s conftest$ac_exeext &&
   17254        $as_test_x conftest$ac_exeext; then
   17255   eval "$as_ac_var=yes"
   17256 else
   17257   echo "$as_me: failed program was:" >&5
   17258 sed 's/^/| /' conftest.$ac_ext >&5
   17259 
   17260 	eval "$as_ac_var=no"
   17261 fi
   17262 
   17263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   17264       conftest$ac_exeext conftest.$ac_ext
   17265 fi
   17266 ac_res=`eval echo '${'$as_ac_var'}'`
   17267 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   17268 echo "${ECHO_T}$ac_res" >&6; }
   17269 if test `eval echo '${'$as_ac_var'}'` = yes; then
   17270   cat >>confdefs.h <<_ACEOF
   17271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17272 _ACEOF
   17273 
   17274 fi
   17275 done
   17276 
   17277 fi
   17278 
   17279 { echo "$as_me:$LINENO: checking whether strsep is declared" >&5
   17280 echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6; }
   17281 if test "${ac_cv_have_decl_strsep+set}" = set; then
   17282   echo $ECHO_N "(cached) $ECHO_C" >&6
   17283 else
   17284   cat >conftest.$ac_ext <<_ACEOF
   17285 /* confdefs.h.  */
   17286 _ACEOF
   17287 cat confdefs.h >>conftest.$ac_ext
   17288 cat >>conftest.$ac_ext <<_ACEOF
   17289 /* end confdefs.h.  */
   17290 
   17291 #ifdef HAVE_STRING_H
   17292 # include <string.h>
   17293 #endif
   17294 
   17295 
   17296 int
   17297 main ()
   17298 {
   17299 #ifndef strsep
   17300   (void) strsep;
   17301 #endif
   17302 
   17303   ;
   17304   return 0;
   17305 }
   17306 _ACEOF
   17307 rm -f conftest.$ac_objext
   17308 if { (ac_try="$ac_compile"
   17309 case "(($ac_try" in
   17310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17311   *) ac_try_echo=$ac_try;;
   17312 esac
   17313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17314   (eval "$ac_compile") 2>conftest.er1
   17315   ac_status=$?
   17316   grep -v '^ *+' conftest.er1 >conftest.err
   17317   rm -f conftest.er1
   17318   cat conftest.err >&5
   17319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17320   (exit $ac_status); } && {
   17321 	 test -z "$ac_c_werror_flag" ||
   17322 	 test ! -s conftest.err
   17323        } && test -s conftest.$ac_objext; then
   17324   ac_cv_have_decl_strsep=yes
   17325 else
   17326   echo "$as_me: failed program was:" >&5
   17327 sed 's/^/| /' conftest.$ac_ext >&5
   17328 
   17329 	ac_cv_have_decl_strsep=no
   17330 fi
   17331 
   17332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17333 fi
   17334 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
   17335 echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6; }
   17336 if test $ac_cv_have_decl_strsep = yes; then
   17337 
   17338 for ac_func in strsep
   17339 do
   17340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17341 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   17342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   17343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   17344   echo $ECHO_N "(cached) $ECHO_C" >&6
   17345 else
   17346   cat >conftest.$ac_ext <<_ACEOF
   17347 /* confdefs.h.  */
   17348 _ACEOF
   17349 cat confdefs.h >>conftest.$ac_ext
   17350 cat >>conftest.$ac_ext <<_ACEOF
   17351 /* end confdefs.h.  */
   17352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   17353    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   17354 #define $ac_func innocuous_$ac_func
   17355 
   17356 /* System header to define __stub macros and hopefully few prototypes,
   17357     which can conflict with char $ac_func (); below.
   17358     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   17359     <limits.h> exists even on freestanding compilers.  */
   17360 
   17361 #ifdef __STDC__
   17362 # include <limits.h>
   17363 #else
   17364 # include <assert.h>
   17365 #endif
   17366 
   17367 #undef $ac_func
   17368 
   17369 /* Override any GCC internal prototype to avoid an error.
   17370    Use char because int might match the return type of a GCC
   17371    builtin and then its argument prototype would still apply.  */
   17372 #ifdef __cplusplus
   17373 extern "C"
   17374 #endif
   17375 char $ac_func ();
   17376 /* The GNU C library defines this for functions which it implements
   17377     to always fail with ENOSYS.  Some functions are actually named
   17378     something starting with __ and the normal name is an alias.  */
   17379 #if defined __stub_$ac_func || defined __stub___$ac_func
   17380 choke me
   17381 #endif
   17382 
   17383 int
   17384 main ()
   17385 {
   17386 return $ac_func ();
   17387   ;
   17388   return 0;
   17389 }
   17390 _ACEOF
   17391 rm -f conftest.$ac_objext conftest$ac_exeext
   17392 if { (ac_try="$ac_link"
   17393 case "(($ac_try" in
   17394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17395   *) ac_try_echo=$ac_try;;
   17396 esac
   17397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17398   (eval "$ac_link") 2>conftest.er1
   17399   ac_status=$?
   17400   grep -v '^ *+' conftest.er1 >conftest.err
   17401   rm -f conftest.er1
   17402   cat conftest.err >&5
   17403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17404   (exit $ac_status); } && {
   17405 	 test -z "$ac_c_werror_flag" ||
   17406 	 test ! -s conftest.err
   17407        } && test -s conftest$ac_exeext &&
   17408        $as_test_x conftest$ac_exeext; then
   17409   eval "$as_ac_var=yes"
   17410 else
   17411   echo "$as_me: failed program was:" >&5
   17412 sed 's/^/| /' conftest.$ac_ext >&5
   17413 
   17414 	eval "$as_ac_var=no"
   17415 fi
   17416 
   17417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   17418       conftest$ac_exeext conftest.$ac_ext
   17419 fi
   17420 ac_res=`eval echo '${'$as_ac_var'}'`
   17421 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   17422 echo "${ECHO_T}$ac_res" >&6; }
   17423 if test `eval echo '${'$as_ac_var'}'` = yes; then
   17424   cat >>confdefs.h <<_ACEOF
   17425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17426 _ACEOF
   17427 
   17428 fi
   17429 done
   17430 
   17431 fi
   17432 
   17433 
   17434 { echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5
   17435 echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6; }
   17436 if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then
   17437   echo $ECHO_N "(cached) $ECHO_C" >&6
   17438 else
   17439   cat >conftest.$ac_ext <<_ACEOF
   17440 /* confdefs.h.  */
   17441 _ACEOF
   17442 cat confdefs.h >>conftest.$ac_ext
   17443 cat >>conftest.$ac_ext <<_ACEOF
   17444 /* end confdefs.h.  */
   17445 #include <termios.h>
   17446 
   17447 
   17448 int
   17449 main ()
   17450 {
   17451 #ifndef tcsendbreak
   17452   (void) tcsendbreak;
   17453 #endif
   17454 
   17455   ;
   17456   return 0;
   17457 }
   17458 _ACEOF
   17459 rm -f conftest.$ac_objext
   17460 if { (ac_try="$ac_compile"
   17461 case "(($ac_try" in
   17462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17463   *) ac_try_echo=$ac_try;;
   17464 esac
   17465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17466   (eval "$ac_compile") 2>conftest.er1
   17467   ac_status=$?
   17468   grep -v '^ *+' conftest.er1 >conftest.err
   17469   rm -f conftest.er1
   17470   cat conftest.err >&5
   17471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17472   (exit $ac_status); } && {
   17473 	 test -z "$ac_c_werror_flag" ||
   17474 	 test ! -s conftest.err
   17475        } && test -s conftest.$ac_objext; then
   17476   ac_cv_have_decl_tcsendbreak=yes
   17477 else
   17478   echo "$as_me: failed program was:" >&5
   17479 sed 's/^/| /' conftest.$ac_ext >&5
   17480 
   17481 	ac_cv_have_decl_tcsendbreak=no
   17482 fi
   17483 
   17484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17485 fi
   17486 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5
   17487 echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6; }
   17488 if test $ac_cv_have_decl_tcsendbreak = yes; then
   17489   cat >>confdefs.h <<\_ACEOF
   17490 #define HAVE_TCSENDBREAK 1
   17491 _ACEOF
   17492 
   17493 else
   17494 
   17495 for ac_func in tcsendbreak
   17496 do
   17497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17498 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   17499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   17500 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   17501   echo $ECHO_N "(cached) $ECHO_C" >&6
   17502 else
   17503   cat >conftest.$ac_ext <<_ACEOF
   17504 /* confdefs.h.  */
   17505 _ACEOF
   17506 cat confdefs.h >>conftest.$ac_ext
   17507 cat >>conftest.$ac_ext <<_ACEOF
   17508 /* end confdefs.h.  */
   17509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   17510    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   17511 #define $ac_func innocuous_$ac_func
   17512 
   17513 /* System header to define __stub macros and hopefully few prototypes,
   17514     which can conflict with char $ac_func (); below.
   17515     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   17516     <limits.h> exists even on freestanding compilers.  */
   17517 
   17518 #ifdef __STDC__
   17519 # include <limits.h>
   17520 #else
   17521 # include <assert.h>
   17522 #endif
   17523 
   17524 #undef $ac_func
   17525 
   17526 /* Override any GCC internal prototype to avoid an error.
   17527    Use char because int might match the return type of a GCC
   17528    builtin and then its argument prototype would still apply.  */
   17529 #ifdef __cplusplus
   17530 extern "C"
   17531 #endif
   17532 char $ac_func ();
   17533 /* The GNU C library defines this for functions which it implements
   17534     to always fail with ENOSYS.  Some functions are actually named
   17535     something starting with __ and the normal name is an alias.  */
   17536 #if defined __stub_$ac_func || defined __stub___$ac_func
   17537 choke me
   17538 #endif
   17539 
   17540 int
   17541 main ()
   17542 {
   17543 return $ac_func ();
   17544   ;
   17545   return 0;
   17546 }
   17547 _ACEOF
   17548 rm -f conftest.$ac_objext conftest$ac_exeext
   17549 if { (ac_try="$ac_link"
   17550 case "(($ac_try" in
   17551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17552   *) ac_try_echo=$ac_try;;
   17553 esac
   17554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17555   (eval "$ac_link") 2>conftest.er1
   17556   ac_status=$?
   17557   grep -v '^ *+' conftest.er1 >conftest.err
   17558   rm -f conftest.er1
   17559   cat conftest.err >&5
   17560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17561   (exit $ac_status); } && {
   17562 	 test -z "$ac_c_werror_flag" ||
   17563 	 test ! -s conftest.err
   17564        } && test -s conftest$ac_exeext &&
   17565        $as_test_x conftest$ac_exeext; then
   17566   eval "$as_ac_var=yes"
   17567 else
   17568   echo "$as_me: failed program was:" >&5
   17569 sed 's/^/| /' conftest.$ac_ext >&5
   17570 
   17571 	eval "$as_ac_var=no"
   17572 fi
   17573 
   17574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   17575       conftest$ac_exeext conftest.$ac_ext
   17576 fi
   17577 ac_res=`eval echo '${'$as_ac_var'}'`
   17578 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   17579 echo "${ECHO_T}$ac_res" >&6; }
   17580 if test `eval echo '${'$as_ac_var'}'` = yes; then
   17581   cat >>confdefs.h <<_ACEOF
   17582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17583 _ACEOF
   17584 
   17585 fi
   17586 done
   17587 
   17588 fi
   17589 
   17590 
   17591 { echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
   17592 echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; }
   17593 if test "${ac_cv_have_decl_h_errno+set}" = set; then
   17594   echo $ECHO_N "(cached) $ECHO_C" >&6
   17595 else
   17596   cat >conftest.$ac_ext <<_ACEOF
   17597 /* confdefs.h.  */
   17598 _ACEOF
   17599 cat confdefs.h >>conftest.$ac_ext
   17600 cat >>conftest.$ac_ext <<_ACEOF
   17601 /* end confdefs.h.  */
   17602 #include <netdb.h>
   17603 
   17604 int
   17605 main ()
   17606 {
   17607 #ifndef h_errno
   17608   (void) h_errno;
   17609 #endif
   17610 
   17611   ;
   17612   return 0;
   17613 }
   17614 _ACEOF
   17615 rm -f conftest.$ac_objext
   17616 if { (ac_try="$ac_compile"
   17617 case "(($ac_try" in
   17618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17619   *) ac_try_echo=$ac_try;;
   17620 esac
   17621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17622   (eval "$ac_compile") 2>conftest.er1
   17623   ac_status=$?
   17624   grep -v '^ *+' conftest.er1 >conftest.err
   17625   rm -f conftest.er1
   17626   cat conftest.err >&5
   17627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17628   (exit $ac_status); } && {
   17629 	 test -z "$ac_c_werror_flag" ||
   17630 	 test ! -s conftest.err
   17631        } && test -s conftest.$ac_objext; then
   17632   ac_cv_have_decl_h_errno=yes
   17633 else
   17634   echo "$as_me: failed program was:" >&5
   17635 sed 's/^/| /' conftest.$ac_ext >&5
   17636 
   17637 	ac_cv_have_decl_h_errno=no
   17638 fi
   17639 
   17640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17641 fi
   17642 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
   17643 echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; }
   17644 if test $ac_cv_have_decl_h_errno = yes; then
   17645 
   17646 cat >>confdefs.h <<_ACEOF
   17647 #define HAVE_DECL_H_ERRNO 1
   17648 _ACEOF
   17649 
   17650 
   17651 else
   17652   cat >>confdefs.h <<_ACEOF
   17653 #define HAVE_DECL_H_ERRNO 0
   17654 _ACEOF
   17655 
   17656 
   17657 fi
   17658 
   17659 
   17660 
   17661 { echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5
   17662 echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; }
   17663 if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then
   17664   echo $ECHO_N "(cached) $ECHO_C" >&6
   17665 else
   17666   cat >conftest.$ac_ext <<_ACEOF
   17667 /* confdefs.h.  */
   17668 _ACEOF
   17669 cat confdefs.h >>conftest.$ac_ext
   17670 cat >>conftest.$ac_ext <<_ACEOF
   17671 /* end confdefs.h.  */
   17672 
   17673 #include <sys/types.h>
   17674 #include <sys/socket.h>
   17675 
   17676 
   17677 int
   17678 main ()
   17679 {
   17680 #ifndef SHUT_RD
   17681   (void) SHUT_RD;
   17682 #endif
   17683 
   17684   ;
   17685   return 0;
   17686 }
   17687 _ACEOF
   17688 rm -f conftest.$ac_objext
   17689 if { (ac_try="$ac_compile"
   17690 case "(($ac_try" in
   17691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17692   *) ac_try_echo=$ac_try;;
   17693 esac
   17694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17695   (eval "$ac_compile") 2>conftest.er1
   17696   ac_status=$?
   17697   grep -v '^ *+' conftest.er1 >conftest.err
   17698   rm -f conftest.er1
   17699   cat conftest.err >&5
   17700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17701   (exit $ac_status); } && {
   17702 	 test -z "$ac_c_werror_flag" ||
   17703 	 test ! -s conftest.err
   17704        } && test -s conftest.$ac_objext; then
   17705   ac_cv_have_decl_SHUT_RD=yes
   17706 else
   17707   echo "$as_me: failed program was:" >&5
   17708 sed 's/^/| /' conftest.$ac_ext >&5
   17709 
   17710 	ac_cv_have_decl_SHUT_RD=no
   17711 fi
   17712 
   17713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17714 fi
   17715 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5
   17716 echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; }
   17717 if test $ac_cv_have_decl_SHUT_RD = yes; then
   17718 
   17719 cat >>confdefs.h <<_ACEOF
   17720 #define HAVE_DECL_SHUT_RD 1
   17721 _ACEOF
   17722 
   17723 
   17724 else
   17725   cat >>confdefs.h <<_ACEOF
   17726 #define HAVE_DECL_SHUT_RD 0
   17727 _ACEOF
   17728 
   17729 
   17730 fi
   17731 
   17732 
   17733 
   17734 { echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5
   17735 echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; }
   17736 if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then
   17737   echo $ECHO_N "(cached) $ECHO_C" >&6
   17738 else
   17739   cat >conftest.$ac_ext <<_ACEOF
   17740 /* confdefs.h.  */
   17741 _ACEOF
   17742 cat confdefs.h >>conftest.$ac_ext
   17743 cat >>conftest.$ac_ext <<_ACEOF
   17744 /* end confdefs.h.  */
   17745 
   17746 #include <sys/types.h>
   17747 #ifdef HAVE_SYS_STAT_H
   17748 # include <sys/stat.h>
   17749 #endif
   17750 #ifdef HAVE_FCNTL_H
   17751 # include <fcntl.h>
   17752 #endif
   17753 
   17754 
   17755 int
   17756 main ()
   17757 {
   17758 #ifndef O_NONBLOCK
   17759   (void) O_NONBLOCK;
   17760 #endif
   17761 
   17762   ;
   17763   return 0;
   17764 }
   17765 _ACEOF
   17766 rm -f conftest.$ac_objext
   17767 if { (ac_try="$ac_compile"
   17768 case "(($ac_try" in
   17769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17770   *) ac_try_echo=$ac_try;;
   17771 esac
   17772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17773   (eval "$ac_compile") 2>conftest.er1
   17774   ac_status=$?
   17775   grep -v '^ *+' conftest.er1 >conftest.err
   17776   rm -f conftest.er1
   17777   cat conftest.err >&5
   17778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17779   (exit $ac_status); } && {
   17780 	 test -z "$ac_c_werror_flag" ||
   17781 	 test ! -s conftest.err
   17782        } && test -s conftest.$ac_objext; then
   17783   ac_cv_have_decl_O_NONBLOCK=yes
   17784 else
   17785   echo "$as_me: failed program was:" >&5
   17786 sed 's/^/| /' conftest.$ac_ext >&5
   17787 
   17788 	ac_cv_have_decl_O_NONBLOCK=no
   17789 fi
   17790 
   17791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17792 fi
   17793 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5
   17794 echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; }
   17795 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
   17796 
   17797 cat >>confdefs.h <<_ACEOF
   17798 #define HAVE_DECL_O_NONBLOCK 1
   17799 _ACEOF
   17800 
   17801 
   17802 else
   17803   cat >>confdefs.h <<_ACEOF
   17804 #define HAVE_DECL_O_NONBLOCK 0
   17805 _ACEOF
   17806 
   17807 
   17808 fi
   17809 
   17810 
   17811 
   17812 { echo "$as_me:$LINENO: checking whether writev is declared" >&5
   17813 echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; }
   17814 if test "${ac_cv_have_decl_writev+set}" = set; then
   17815   echo $ECHO_N "(cached) $ECHO_C" >&6
   17816 else
   17817   cat >conftest.$ac_ext <<_ACEOF
   17818 /* confdefs.h.  */
   17819 _ACEOF
   17820 cat confdefs.h >>conftest.$ac_ext
   17821 cat >>conftest.$ac_ext <<_ACEOF
   17822 /* end confdefs.h.  */
   17823 
   17824 #include <sys/types.h>
   17825 #include <sys/uio.h>
   17826 #include <unistd.h>
   17827 
   17828 
   17829 int
   17830 main ()
   17831 {
   17832 #ifndef writev
   17833   (void) writev;
   17834 #endif
   17835 
   17836   ;
   17837   return 0;
   17838 }
   17839 _ACEOF
   17840 rm -f conftest.$ac_objext
   17841 if { (ac_try="$ac_compile"
   17842 case "(($ac_try" in
   17843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17844   *) ac_try_echo=$ac_try;;
   17845 esac
   17846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17847   (eval "$ac_compile") 2>conftest.er1
   17848   ac_status=$?
   17849   grep -v '^ *+' conftest.er1 >conftest.err
   17850   rm -f conftest.er1
   17851   cat conftest.err >&5
   17852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17853   (exit $ac_status); } && {
   17854 	 test -z "$ac_c_werror_flag" ||
   17855 	 test ! -s conftest.err
   17856        } && test -s conftest.$ac_objext; then
   17857   ac_cv_have_decl_writev=yes
   17858 else
   17859   echo "$as_me: failed program was:" >&5
   17860 sed 's/^/| /' conftest.$ac_ext >&5
   17861 
   17862 	ac_cv_have_decl_writev=no
   17863 fi
   17864 
   17865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17866 fi
   17867 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5
   17868 echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; }
   17869 if test $ac_cv_have_decl_writev = yes; then
   17870 
   17871 cat >>confdefs.h <<_ACEOF
   17872 #define HAVE_DECL_WRITEV 1
   17873 _ACEOF
   17874 
   17875 
   17876 else
   17877   cat >>confdefs.h <<_ACEOF
   17878 #define HAVE_DECL_WRITEV 0
   17879 _ACEOF
   17880 
   17881 
   17882 fi
   17883 
   17884 
   17885 
   17886 { echo "$as_me:$LINENO: checking whether MAXSYMLINKS is declared" >&5
   17887 echo $ECHO_N "checking whether MAXSYMLINKS is declared... $ECHO_C" >&6; }
   17888 if test "${ac_cv_have_decl_MAXSYMLINKS+set}" = set; then
   17889   echo $ECHO_N "(cached) $ECHO_C" >&6
   17890 else
   17891   cat >conftest.$ac_ext <<_ACEOF
   17892 /* confdefs.h.  */
   17893 _ACEOF
   17894 cat confdefs.h >>conftest.$ac_ext
   17895 cat >>conftest.$ac_ext <<_ACEOF
   17896 /* end confdefs.h.  */
   17897 
   17898 #include <sys/param.h>
   17899 
   17900 
   17901 int
   17902 main ()
   17903 {
   17904 #ifndef MAXSYMLINKS
   17905   (void) MAXSYMLINKS;
   17906 #endif
   17907 
   17908   ;
   17909   return 0;
   17910 }
   17911 _ACEOF
   17912 rm -f conftest.$ac_objext
   17913 if { (ac_try="$ac_compile"
   17914 case "(($ac_try" in
   17915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17916   *) ac_try_echo=$ac_try;;
   17917 esac
   17918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17919   (eval "$ac_compile") 2>conftest.er1
   17920   ac_status=$?
   17921   grep -v '^ *+' conftest.er1 >conftest.err
   17922   rm -f conftest.er1
   17923   cat conftest.err >&5
   17924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17925   (exit $ac_status); } && {
   17926 	 test -z "$ac_c_werror_flag" ||
   17927 	 test ! -s conftest.err
   17928        } && test -s conftest.$ac_objext; then
   17929   ac_cv_have_decl_MAXSYMLINKS=yes
   17930 else
   17931   echo "$as_me: failed program was:" >&5
   17932 sed 's/^/| /' conftest.$ac_ext >&5
   17933 
   17934 	ac_cv_have_decl_MAXSYMLINKS=no
   17935 fi
   17936 
   17937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17938 fi
   17939 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_MAXSYMLINKS" >&5
   17940 echo "${ECHO_T}$ac_cv_have_decl_MAXSYMLINKS" >&6; }
   17941 if test $ac_cv_have_decl_MAXSYMLINKS = yes; then
   17942 
   17943 cat >>confdefs.h <<_ACEOF
   17944 #define HAVE_DECL_MAXSYMLINKS 1
   17945 _ACEOF
   17946 
   17947 
   17948 else
   17949   cat >>confdefs.h <<_ACEOF
   17950 #define HAVE_DECL_MAXSYMLINKS 0
   17951 _ACEOF
   17952 
   17953 
   17954 fi
   17955 
   17956 
   17957 
   17958 { echo "$as_me:$LINENO: checking whether offsetof is declared" >&5
   17959 echo $ECHO_N "checking whether offsetof is declared... $ECHO_C" >&6; }
   17960 if test "${ac_cv_have_decl_offsetof+set}" = set; then
   17961   echo $ECHO_N "(cached) $ECHO_C" >&6
   17962 else
   17963   cat >conftest.$ac_ext <<_ACEOF
   17964 /* confdefs.h.  */
   17965 _ACEOF
   17966 cat confdefs.h >>conftest.$ac_ext
   17967 cat >>conftest.$ac_ext <<_ACEOF
   17968 /* end confdefs.h.  */
   17969 
   17970 #include <stddef.h>
   17971 
   17972 
   17973 int
   17974 main ()
   17975 {
   17976 #ifndef offsetof
   17977   (void) offsetof;
   17978 #endif
   17979 
   17980   ;
   17981   return 0;
   17982 }
   17983 _ACEOF
   17984 rm -f conftest.$ac_objext
   17985 if { (ac_try="$ac_compile"
   17986 case "(($ac_try" in
   17987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17988   *) ac_try_echo=$ac_try;;
   17989 esac
   17990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17991   (eval "$ac_compile") 2>conftest.er1
   17992   ac_status=$?
   17993   grep -v '^ *+' conftest.er1 >conftest.err
   17994   rm -f conftest.er1
   17995   cat conftest.err >&5
   17996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17997   (exit $ac_status); } && {
   17998 	 test -z "$ac_c_werror_flag" ||
   17999 	 test ! -s conftest.err
   18000        } && test -s conftest.$ac_objext; then
   18001   ac_cv_have_decl_offsetof=yes
   18002 else
   18003   echo "$as_me: failed program was:" >&5
   18004 sed 's/^/| /' conftest.$ac_ext >&5
   18005 
   18006 	ac_cv_have_decl_offsetof=no
   18007 fi
   18008 
   18009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18010 fi
   18011 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_offsetof" >&5
   18012 echo "${ECHO_T}$ac_cv_have_decl_offsetof" >&6; }
   18013 if test $ac_cv_have_decl_offsetof = yes; then
   18014 
   18015 cat >>confdefs.h <<_ACEOF
   18016 #define HAVE_DECL_OFFSETOF 1
   18017 _ACEOF
   18018 
   18019 
   18020 else
   18021   cat >>confdefs.h <<_ACEOF
   18022 #define HAVE_DECL_OFFSETOF 0
   18023 _ACEOF
   18024 
   18025 
   18026 fi
   18027 
   18028 
   18029 
   18030 # extra bits for select(2)
   18031 { echo "$as_me:$LINENO: checking whether howmany is declared" >&5
   18032 echo $ECHO_N "checking whether howmany is declared... $ECHO_C" >&6; }
   18033 if test "${ac_cv_have_decl_howmany+set}" = set; then
   18034   echo $ECHO_N "(cached) $ECHO_C" >&6
   18035 else
   18036   cat >conftest.$ac_ext <<_ACEOF
   18037 /* confdefs.h.  */
   18038 _ACEOF
   18039 cat confdefs.h >>conftest.$ac_ext
   18040 cat >>conftest.$ac_ext <<_ACEOF
   18041 /* end confdefs.h.  */
   18042 
   18043 #include <sys/param.h>
   18044 #include <sys/types.h>
   18045 #ifdef HAVE_SYS_SYSMACROS_H
   18046 #include <sys/sysmacros.h>
   18047 #endif
   18048 #ifdef HAVE_SYS_SELECT_H
   18049 #include <sys/select.h>
   18050 #endif
   18051 #ifdef HAVE_SYS_TIME_H
   18052 #include <sys/time.h>
   18053 #endif
   18054 #ifdef HAVE_UNISTD_H
   18055 #include <unistd.h>
   18056 #endif
   18057 
   18058 
   18059 int
   18060 main ()
   18061 {
   18062 #ifndef howmany
   18063   (void) howmany;
   18064 #endif
   18065 
   18066   ;
   18067   return 0;
   18068 }
   18069 _ACEOF
   18070 rm -f conftest.$ac_objext
   18071 if { (ac_try="$ac_compile"
   18072 case "(($ac_try" in
   18073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18074   *) ac_try_echo=$ac_try;;
   18075 esac
   18076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18077   (eval "$ac_compile") 2>conftest.er1
   18078   ac_status=$?
   18079   grep -v '^ *+' conftest.er1 >conftest.err
   18080   rm -f conftest.er1
   18081   cat conftest.err >&5
   18082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18083   (exit $ac_status); } && {
   18084 	 test -z "$ac_c_werror_flag" ||
   18085 	 test ! -s conftest.err
   18086        } && test -s conftest.$ac_objext; then
   18087   ac_cv_have_decl_howmany=yes
   18088 else
   18089   echo "$as_me: failed program was:" >&5
   18090 sed 's/^/| /' conftest.$ac_ext >&5
   18091 
   18092 	ac_cv_have_decl_howmany=no
   18093 fi
   18094 
   18095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18096 fi
   18097 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_howmany" >&5
   18098 echo "${ECHO_T}$ac_cv_have_decl_howmany" >&6; }
   18099 if test $ac_cv_have_decl_howmany = yes; then
   18100 
   18101 cat >>confdefs.h <<_ACEOF
   18102 #define HAVE_DECL_HOWMANY 1
   18103 _ACEOF
   18104 
   18105 
   18106 else
   18107   cat >>confdefs.h <<_ACEOF
   18108 #define HAVE_DECL_HOWMANY 0
   18109 _ACEOF
   18110 
   18111 
   18112 fi
   18113 { echo "$as_me:$LINENO: checking whether NFDBITS is declared" >&5
   18114 echo $ECHO_N "checking whether NFDBITS is declared... $ECHO_C" >&6; }
   18115 if test "${ac_cv_have_decl_NFDBITS+set}" = set; then
   18116   echo $ECHO_N "(cached) $ECHO_C" >&6
   18117 else
   18118   cat >conftest.$ac_ext <<_ACEOF
   18119 /* confdefs.h.  */
   18120 _ACEOF
   18121 cat confdefs.h >>conftest.$ac_ext
   18122 cat >>conftest.$ac_ext <<_ACEOF
   18123 /* end confdefs.h.  */
   18124 
   18125 #include <sys/param.h>
   18126 #include <sys/types.h>
   18127 #ifdef HAVE_SYS_SYSMACROS_H
   18128 #include <sys/sysmacros.h>
   18129 #endif
   18130 #ifdef HAVE_SYS_SELECT_H
   18131 #include <sys/select.h>
   18132 #endif
   18133 #ifdef HAVE_SYS_TIME_H
   18134 #include <sys/time.h>
   18135 #endif
   18136 #ifdef HAVE_UNISTD_H
   18137 #include <unistd.h>
   18138 #endif
   18139 
   18140 
   18141 int
   18142 main ()
   18143 {
   18144 #ifndef NFDBITS
   18145   (void) NFDBITS;
   18146 #endif
   18147 
   18148   ;
   18149   return 0;
   18150 }
   18151 _ACEOF
   18152 rm -f conftest.$ac_objext
   18153 if { (ac_try="$ac_compile"
   18154 case "(($ac_try" in
   18155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18156   *) ac_try_echo=$ac_try;;
   18157 esac
   18158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18159   (eval "$ac_compile") 2>conftest.er1
   18160   ac_status=$?
   18161   grep -v '^ *+' conftest.er1 >conftest.err
   18162   rm -f conftest.er1
   18163   cat conftest.err >&5
   18164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18165   (exit $ac_status); } && {
   18166 	 test -z "$ac_c_werror_flag" ||
   18167 	 test ! -s conftest.err
   18168        } && test -s conftest.$ac_objext; then
   18169   ac_cv_have_decl_NFDBITS=yes
   18170 else
   18171   echo "$as_me: failed program was:" >&5
   18172 sed 's/^/| /' conftest.$ac_ext >&5
   18173 
   18174 	ac_cv_have_decl_NFDBITS=no
   18175 fi
   18176 
   18177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18178 fi
   18179 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_NFDBITS" >&5
   18180 echo "${ECHO_T}$ac_cv_have_decl_NFDBITS" >&6; }
   18181 if test $ac_cv_have_decl_NFDBITS = yes; then
   18182 
   18183 cat >>confdefs.h <<_ACEOF
   18184 #define HAVE_DECL_NFDBITS 1
   18185 _ACEOF
   18186 
   18187 
   18188 else
   18189   cat >>confdefs.h <<_ACEOF
   18190 #define HAVE_DECL_NFDBITS 0
   18191 _ACEOF
   18192 
   18193 
   18194 fi
   18195 
   18196 
   18197 { echo "$as_me:$LINENO: checking for fd_mask" >&5
   18198 echo $ECHO_N "checking for fd_mask... $ECHO_C" >&6; }
   18199 if test "${ac_cv_type_fd_mask+set}" = set; then
   18200   echo $ECHO_N "(cached) $ECHO_C" >&6
   18201 else
   18202   cat >conftest.$ac_ext <<_ACEOF
   18203 /* confdefs.h.  */
   18204 _ACEOF
   18205 cat confdefs.h >>conftest.$ac_ext
   18206 cat >>conftest.$ac_ext <<_ACEOF
   18207 /* end confdefs.h.  */
   18208 
   18209 #include <sys/param.h>
   18210 #include <sys/types.h>
   18211 #ifdef HAVE_SYS_SELECT_H
   18212 #include <sys/select.h>
   18213 #endif
   18214 #ifdef HAVE_SYS_TIME_H
   18215 #include <sys/time.h>
   18216 #endif
   18217 #ifdef HAVE_UNISTD_H
   18218 #include <unistd.h>
   18219 #endif
   18220 
   18221 
   18222 typedef fd_mask ac__type_new_;
   18223 int
   18224 main ()
   18225 {
   18226 if ((ac__type_new_ *) 0)
   18227   return 0;
   18228 if (sizeof (ac__type_new_))
   18229   return 0;
   18230   ;
   18231   return 0;
   18232 }
   18233 _ACEOF
   18234 rm -f conftest.$ac_objext
   18235 if { (ac_try="$ac_compile"
   18236 case "(($ac_try" in
   18237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18238   *) ac_try_echo=$ac_try;;
   18239 esac
   18240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18241   (eval "$ac_compile") 2>conftest.er1
   18242   ac_status=$?
   18243   grep -v '^ *+' conftest.er1 >conftest.err
   18244   rm -f conftest.er1
   18245   cat conftest.err >&5
   18246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18247   (exit $ac_status); } && {
   18248 	 test -z "$ac_c_werror_flag" ||
   18249 	 test ! -s conftest.err
   18250        } && test -s conftest.$ac_objext; then
   18251   ac_cv_type_fd_mask=yes
   18252 else
   18253   echo "$as_me: failed program was:" >&5
   18254 sed 's/^/| /' conftest.$ac_ext >&5
   18255 
   18256 	ac_cv_type_fd_mask=no
   18257 fi
   18258 
   18259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18260 fi
   18261 { echo "$as_me:$LINENO: result: $ac_cv_type_fd_mask" >&5
   18262 echo "${ECHO_T}$ac_cv_type_fd_mask" >&6; }
   18263 if test $ac_cv_type_fd_mask = yes; then
   18264 
   18265 cat >>confdefs.h <<_ACEOF
   18266 #define HAVE_FD_MASK 1
   18267 _ACEOF
   18268 
   18269 
   18270 fi
   18271 
   18272 
   18273 
   18274 for ac_func in setresuid
   18275 do
   18276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   18277 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   18278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   18279 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   18280   echo $ECHO_N "(cached) $ECHO_C" >&6
   18281 else
   18282   cat >conftest.$ac_ext <<_ACEOF
   18283 /* confdefs.h.  */
   18284 _ACEOF
   18285 cat confdefs.h >>conftest.$ac_ext
   18286 cat >>conftest.$ac_ext <<_ACEOF
   18287 /* end confdefs.h.  */
   18288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   18289    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   18290 #define $ac_func innocuous_$ac_func
   18291 
   18292 /* System header to define __stub macros and hopefully few prototypes,
   18293     which can conflict with char $ac_func (); below.
   18294     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   18295     <limits.h> exists even on freestanding compilers.  */
   18296 
   18297 #ifdef __STDC__
   18298 # include <limits.h>
   18299 #else
   18300 # include <assert.h>
   18301 #endif
   18302 
   18303 #undef $ac_func
   18304 
   18305 /* Override any GCC internal prototype to avoid an error.
   18306    Use char because int might match the return type of a GCC
   18307    builtin and then its argument prototype would still apply.  */
   18308 #ifdef __cplusplus
   18309 extern "C"
   18310 #endif
   18311 char $ac_func ();
   18312 /* The GNU C library defines this for functions which it implements
   18313     to always fail with ENOSYS.  Some functions are actually named
   18314     something starting with __ and the normal name is an alias.  */
   18315 #if defined __stub_$ac_func || defined __stub___$ac_func
   18316 choke me
   18317 #endif
   18318 
   18319 int
   18320 main ()
   18321 {
   18322 return $ac_func ();
   18323   ;
   18324   return 0;
   18325 }
   18326 _ACEOF
   18327 rm -f conftest.$ac_objext conftest$ac_exeext
   18328 if { (ac_try="$ac_link"
   18329 case "(($ac_try" in
   18330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18331   *) ac_try_echo=$ac_try;;
   18332 esac
   18333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18334   (eval "$ac_link") 2>conftest.er1
   18335   ac_status=$?
   18336   grep -v '^ *+' conftest.er1 >conftest.err
   18337   rm -f conftest.er1
   18338   cat conftest.err >&5
   18339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18340   (exit $ac_status); } && {
   18341 	 test -z "$ac_c_werror_flag" ||
   18342 	 test ! -s conftest.err
   18343        } && test -s conftest$ac_exeext &&
   18344        $as_test_x conftest$ac_exeext; then
   18345   eval "$as_ac_var=yes"
   18346 else
   18347   echo "$as_me: failed program was:" >&5
   18348 sed 's/^/| /' conftest.$ac_ext >&5
   18349 
   18350 	eval "$as_ac_var=no"
   18351 fi
   18352 
   18353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   18354       conftest$ac_exeext conftest.$ac_ext
   18355 fi
   18356 ac_res=`eval echo '${'$as_ac_var'}'`
   18357 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   18358 echo "${ECHO_T}$ac_res" >&6; }
   18359 if test `eval echo '${'$as_ac_var'}'` = yes; then
   18360   cat >>confdefs.h <<_ACEOF
   18361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   18362 _ACEOF
   18363 
   18364 		{ echo "$as_me:$LINENO: checking if setresuid seems to work" >&5
   18365 echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6; }
   18366 	if test "$cross_compiling" = yes; then
   18367   { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
   18368 echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
   18369 
   18370 else
   18371   cat >conftest.$ac_ext <<_ACEOF
   18372 /* confdefs.h.  */
   18373 _ACEOF
   18374 cat confdefs.h >>conftest.$ac_ext
   18375 cat >>conftest.$ac_ext <<_ACEOF
   18376 /* end confdefs.h.  */
   18377 
   18378 #include <stdlib.h>
   18379 #include <errno.h>
   18380 
   18381 int
   18382 main ()
   18383 {
   18384 
   18385 	errno=0;
   18386 	setresuid(0,0,0);
   18387 	if (errno==ENOSYS)
   18388 		exit(1);
   18389 	else
   18390 		exit(0);
   18391 
   18392   ;
   18393   return 0;
   18394 }
   18395 _ACEOF
   18396 rm -f conftest$ac_exeext
   18397 if { (ac_try="$ac_link"
   18398 case "(($ac_try" in
   18399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18400   *) ac_try_echo=$ac_try;;
   18401 esac
   18402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18403   (eval "$ac_link") 2>&5
   18404   ac_status=$?
   18405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18406   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   18407   { (case "(($ac_try" in
   18408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18409   *) ac_try_echo=$ac_try;;
   18410 esac
   18411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18412   (eval "$ac_try") 2>&5
   18413   ac_status=$?
   18414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18415   (exit $ac_status); }; }; then
   18416   { echo "$as_me:$LINENO: result: yes" >&5
   18417 echo "${ECHO_T}yes" >&6; }
   18418 else
   18419   echo "$as_me: program exited with status $ac_status" >&5
   18420 echo "$as_me: failed program was:" >&5
   18421 sed 's/^/| /' conftest.$ac_ext >&5
   18422 
   18423 ( exit $ac_status )
   18424 
   18425 cat >>confdefs.h <<\_ACEOF
   18426 #define BROKEN_SETRESUID 1
   18427 _ACEOF
   18428 
   18429 		 { echo "$as_me:$LINENO: result: not implemented" >&5
   18430 echo "${ECHO_T}not implemented" >&6; }
   18431 fi
   18432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   18433 fi
   18434 
   18435 
   18436 
   18437 fi
   18438 done
   18439 
   18440 
   18441 
   18442 for ac_func in setresgid
   18443 do
   18444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   18445 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   18446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   18447 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   18448   echo $ECHO_N "(cached) $ECHO_C" >&6
   18449 else
   18450   cat >conftest.$ac_ext <<_ACEOF
   18451 /* confdefs.h.  */
   18452 _ACEOF
   18453 cat confdefs.h >>conftest.$ac_ext
   18454 cat >>conftest.$ac_ext <<_ACEOF
   18455 /* end confdefs.h.  */
   18456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   18457    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   18458 #define $ac_func innocuous_$ac_func
   18459 
   18460 /* System header to define __stub macros and hopefully few prototypes,
   18461     which can conflict with char $ac_func (); below.
   18462     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   18463     <limits.h> exists even on freestanding compilers.  */
   18464 
   18465 #ifdef __STDC__
   18466 # include <limits.h>
   18467 #else
   18468 # include <assert.h>
   18469 #endif
   18470 
   18471 #undef $ac_func
   18472 
   18473 /* Override any GCC internal prototype to avoid an error.
   18474    Use char because int might match the return type of a GCC
   18475    builtin and then its argument prototype would still apply.  */
   18476 #ifdef __cplusplus
   18477 extern "C"
   18478 #endif
   18479 char $ac_func ();
   18480 /* The GNU C library defines this for functions which it implements
   18481     to always fail with ENOSYS.  Some functions are actually named
   18482     something starting with __ and the normal name is an alias.  */
   18483 #if defined __stub_$ac_func || defined __stub___$ac_func
   18484 choke me
   18485 #endif
   18486 
   18487 int
   18488 main ()
   18489 {
   18490 return $ac_func ();
   18491   ;
   18492   return 0;
   18493 }
   18494 _ACEOF
   18495 rm -f conftest.$ac_objext conftest$ac_exeext
   18496 if { (ac_try="$ac_link"
   18497 case "(($ac_try" in
   18498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18499   *) ac_try_echo=$ac_try;;
   18500 esac
   18501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18502   (eval "$ac_link") 2>conftest.er1
   18503   ac_status=$?
   18504   grep -v '^ *+' conftest.er1 >conftest.err
   18505   rm -f conftest.er1
   18506   cat conftest.err >&5
   18507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18508   (exit $ac_status); } && {
   18509 	 test -z "$ac_c_werror_flag" ||
   18510 	 test ! -s conftest.err
   18511        } && test -s conftest$ac_exeext &&
   18512        $as_test_x conftest$ac_exeext; then
   18513   eval "$as_ac_var=yes"
   18514 else
   18515   echo "$as_me: failed program was:" >&5
   18516 sed 's/^/| /' conftest.$ac_ext >&5
   18517 
   18518 	eval "$as_ac_var=no"
   18519 fi
   18520 
   18521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   18522       conftest$ac_exeext conftest.$ac_ext
   18523 fi
   18524 ac_res=`eval echo '${'$as_ac_var'}'`
   18525 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   18526 echo "${ECHO_T}$ac_res" >&6; }
   18527 if test `eval echo '${'$as_ac_var'}'` = yes; then
   18528   cat >>confdefs.h <<_ACEOF
   18529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   18530 _ACEOF
   18531 
   18532 		{ echo "$as_me:$LINENO: checking if setresgid seems to work" >&5
   18533 echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6; }
   18534 	if test "$cross_compiling" = yes; then
   18535   { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
   18536 echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
   18537 
   18538 else
   18539   cat >conftest.$ac_ext <<_ACEOF
   18540 /* confdefs.h.  */
   18541 _ACEOF
   18542 cat confdefs.h >>conftest.$ac_ext
   18543 cat >>conftest.$ac_ext <<_ACEOF
   18544 /* end confdefs.h.  */
   18545 
   18546 #include <stdlib.h>
   18547 #include <errno.h>
   18548 
   18549 int
   18550 main ()
   18551 {
   18552 
   18553 	errno=0;
   18554 	setresgid(0,0,0);
   18555 	if (errno==ENOSYS)
   18556 		exit(1);
   18557 	else
   18558 		exit(0);
   18559 
   18560   ;
   18561   return 0;
   18562 }
   18563 _ACEOF
   18564 rm -f conftest$ac_exeext
   18565 if { (ac_try="$ac_link"
   18566 case "(($ac_try" in
   18567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18568   *) ac_try_echo=$ac_try;;
   18569 esac
   18570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18571   (eval "$ac_link") 2>&5
   18572   ac_status=$?
   18573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18574   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   18575   { (case "(($ac_try" in
   18576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18577   *) ac_try_echo=$ac_try;;
   18578 esac
   18579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18580   (eval "$ac_try") 2>&5
   18581   ac_status=$?
   18582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18583   (exit $ac_status); }; }; then
   18584   { echo "$as_me:$LINENO: result: yes" >&5
   18585 echo "${ECHO_T}yes" >&6; }
   18586 else
   18587   echo "$as_me: program exited with status $ac_status" >&5
   18588 echo "$as_me: failed program was:" >&5
   18589 sed 's/^/| /' conftest.$ac_ext >&5
   18590 
   18591 ( exit $ac_status )
   18592 
   18593 cat >>confdefs.h <<\_ACEOF
   18594 #define BROKEN_SETRESGID 1
   18595 _ACEOF
   18596 
   18597 		 { echo "$as_me:$LINENO: result: not implemented" >&5
   18598 echo "${ECHO_T}not implemented" >&6; }
   18599 fi
   18600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   18601 fi
   18602 
   18603 
   18604 
   18605 fi
   18606 done
   18607 
   18608 
   18609 
   18610 
   18611 for ac_func in gettimeofday time
   18612 do
   18613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   18614 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   18615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   18616 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   18617   echo $ECHO_N "(cached) $ECHO_C" >&6
   18618 else
   18619   cat >conftest.$ac_ext <<_ACEOF
   18620 /* confdefs.h.  */
   18621 _ACEOF
   18622 cat confdefs.h >>conftest.$ac_ext
   18623 cat >>conftest.$ac_ext <<_ACEOF
   18624 /* end confdefs.h.  */
   18625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   18626    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   18627 #define $ac_func innocuous_$ac_func
   18628 
   18629 /* System header to define __stub macros and hopefully few prototypes,
   18630     which can conflict with char $ac_func (); below.
   18631     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   18632     <limits.h> exists even on freestanding compilers.  */
   18633 
   18634 #ifdef __STDC__
   18635 # include <limits.h>
   18636 #else
   18637 # include <assert.h>
   18638 #endif
   18639 
   18640 #undef $ac_func
   18641 
   18642 /* Override any GCC internal prototype to avoid an error.
   18643    Use char because int might match the return type of a GCC
   18644    builtin and then its argument prototype would still apply.  */
   18645 #ifdef __cplusplus
   18646 extern "C"
   18647 #endif
   18648 char $ac_func ();
   18649 /* The GNU C library defines this for functions which it implements
   18650     to always fail with ENOSYS.  Some functions are actually named
   18651     something starting with __ and the normal name is an alias.  */
   18652 #if defined __stub_$ac_func || defined __stub___$ac_func
   18653 choke me
   18654 #endif
   18655 
   18656 int
   18657 main ()
   18658 {
   18659 return $ac_func ();
   18660   ;
   18661   return 0;
   18662 }
   18663 _ACEOF
   18664 rm -f conftest.$ac_objext conftest$ac_exeext
   18665 if { (ac_try="$ac_link"
   18666 case "(($ac_try" in
   18667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18668   *) ac_try_echo=$ac_try;;
   18669 esac
   18670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18671   (eval "$ac_link") 2>conftest.er1
   18672   ac_status=$?
   18673   grep -v '^ *+' conftest.er1 >conftest.err
   18674   rm -f conftest.er1
   18675   cat conftest.err >&5
   18676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18677   (exit $ac_status); } && {
   18678 	 test -z "$ac_c_werror_flag" ||
   18679 	 test ! -s conftest.err
   18680        } && test -s conftest$ac_exeext &&
   18681        $as_test_x conftest$ac_exeext; then
   18682   eval "$as_ac_var=yes"
   18683 else
   18684   echo "$as_me: failed program was:" >&5
   18685 sed 's/^/| /' conftest.$ac_ext >&5
   18686 
   18687 	eval "$as_ac_var=no"
   18688 fi
   18689 
   18690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   18691       conftest$ac_exeext conftest.$ac_ext
   18692 fi
   18693 ac_res=`eval echo '${'$as_ac_var'}'`
   18694 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   18695 echo "${ECHO_T}$ac_res" >&6; }
   18696 if test `eval echo '${'$as_ac_var'}'` = yes; then
   18697   cat >>confdefs.h <<_ACEOF
   18698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   18699 _ACEOF
   18700 
   18701 fi
   18702 done
   18703 
   18704 
   18705 
   18706 
   18707 
   18708 
   18709 
   18710 for ac_func in endutent getutent getutid getutline pututline setutent
   18711 do
   18712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   18713 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   18714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   18715 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   18716   echo $ECHO_N "(cached) $ECHO_C" >&6
   18717 else
   18718   cat >conftest.$ac_ext <<_ACEOF
   18719 /* confdefs.h.  */
   18720 _ACEOF
   18721 cat confdefs.h >>conftest.$ac_ext
   18722 cat >>conftest.$ac_ext <<_ACEOF
   18723 /* end confdefs.h.  */
   18724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   18725    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   18726 #define $ac_func innocuous_$ac_func
   18727 
   18728 /* System header to define __stub macros and hopefully few prototypes,
   18729     which can conflict with char $ac_func (); below.
   18730     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   18731     <limits.h> exists even on freestanding compilers.  */
   18732 
   18733 #ifdef __STDC__
   18734 # include <limits.h>
   18735 #else
   18736 # include <assert.h>
   18737 #endif
   18738 
   18739 #undef $ac_func
   18740 
   18741 /* Override any GCC internal prototype to avoid an error.
   18742    Use char because int might match the return type of a GCC
   18743    builtin and then its argument prototype would still apply.  */
   18744 #ifdef __cplusplus
   18745 extern "C"
   18746 #endif
   18747 char $ac_func ();
   18748 /* The GNU C library defines this for functions which it implements
   18749     to always fail with ENOSYS.  Some functions are actually named
   18750     something starting with __ and the normal name is an alias.  */
   18751 #if defined __stub_$ac_func || defined __stub___$ac_func
   18752 choke me
   18753 #endif
   18754 
   18755 int
   18756 main ()
   18757 {
   18758 return $ac_func ();
   18759   ;
   18760   return 0;
   18761 }
   18762 _ACEOF
   18763 rm -f conftest.$ac_objext conftest$ac_exeext
   18764 if { (ac_try="$ac_link"
   18765 case "(($ac_try" in
   18766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18767   *) ac_try_echo=$ac_try;;
   18768 esac
   18769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18770   (eval "$ac_link") 2>conftest.er1
   18771   ac_status=$?
   18772   grep -v '^ *+' conftest.er1 >conftest.err
   18773   rm -f conftest.er1
   18774   cat conftest.err >&5
   18775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18776   (exit $ac_status); } && {
   18777 	 test -z "$ac_c_werror_flag" ||
   18778 	 test ! -s conftest.err
   18779        } && test -s conftest$ac_exeext &&
   18780        $as_test_x conftest$ac_exeext; then
   18781   eval "$as_ac_var=yes"
   18782 else
   18783   echo "$as_me: failed program was:" >&5
   18784 sed 's/^/| /' conftest.$ac_ext >&5
   18785 
   18786 	eval "$as_ac_var=no"
   18787 fi
   18788 
   18789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   18790       conftest$ac_exeext conftest.$ac_ext
   18791 fi
   18792 ac_res=`eval echo '${'$as_ac_var'}'`
   18793 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   18794 echo "${ECHO_T}$ac_res" >&6; }
   18795 if test `eval echo '${'$as_ac_var'}'` = yes; then
   18796   cat >>confdefs.h <<_ACEOF
   18797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   18798 _ACEOF
   18799 
   18800 fi
   18801 done
   18802 
   18803 
   18804 for ac_func in utmpname
   18805 do
   18806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   18807 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   18808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   18809 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   18810   echo $ECHO_N "(cached) $ECHO_C" >&6
   18811 else
   18812   cat >conftest.$ac_ext <<_ACEOF
   18813 /* confdefs.h.  */
   18814 _ACEOF
   18815 cat confdefs.h >>conftest.$ac_ext
   18816 cat >>conftest.$ac_ext <<_ACEOF
   18817 /* end confdefs.h.  */
   18818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   18819    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   18820 #define $ac_func innocuous_$ac_func
   18821 
   18822 /* System header to define __stub macros and hopefully few prototypes,
   18823     which can conflict with char $ac_func (); below.
   18824     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   18825     <limits.h> exists even on freestanding compilers.  */
   18826 
   18827 #ifdef __STDC__
   18828 # include <limits.h>
   18829 #else
   18830 # include <assert.h>
   18831 #endif
   18832 
   18833 #undef $ac_func
   18834 
   18835 /* Override any GCC internal prototype to avoid an error.
   18836    Use char because int might match the return type of a GCC
   18837    builtin and then its argument prototype would still apply.  */
   18838 #ifdef __cplusplus
   18839 extern "C"
   18840 #endif
   18841 char $ac_func ();
   18842 /* The GNU C library defines this for functions which it implements
   18843     to always fail with ENOSYS.  Some functions are actually named
   18844     something starting with __ and the normal name is an alias.  */
   18845 #if defined __stub_$ac_func || defined __stub___$ac_func
   18846 choke me
   18847 #endif
   18848 
   18849 int
   18850 main ()
   18851 {
   18852 return $ac_func ();
   18853   ;
   18854   return 0;
   18855 }
   18856 _ACEOF
   18857 rm -f conftest.$ac_objext conftest$ac_exeext
   18858 if { (ac_try="$ac_link"
   18859 case "(($ac_try" in
   18860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18861   *) ac_try_echo=$ac_try;;
   18862 esac
   18863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18864   (eval "$ac_link") 2>conftest.er1
   18865   ac_status=$?
   18866   grep -v '^ *+' conftest.er1 >conftest.err
   18867   rm -f conftest.er1
   18868   cat conftest.err >&5
   18869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18870   (exit $ac_status); } && {
   18871 	 test -z "$ac_c_werror_flag" ||
   18872 	 test ! -s conftest.err
   18873        } && test -s conftest$ac_exeext &&
   18874        $as_test_x conftest$ac_exeext; then
   18875   eval "$as_ac_var=yes"
   18876 else
   18877   echo "$as_me: failed program was:" >&5
   18878 sed 's/^/| /' conftest.$ac_ext >&5
   18879 
   18880 	eval "$as_ac_var=no"
   18881 fi
   18882 
   18883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   18884       conftest$ac_exeext conftest.$ac_ext
   18885 fi
   18886 ac_res=`eval echo '${'$as_ac_var'}'`
   18887 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   18888 echo "${ECHO_T}$ac_res" >&6; }
   18889 if test `eval echo '${'$as_ac_var'}'` = yes; then
   18890   cat >>confdefs.h <<_ACEOF
   18891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   18892 _ACEOF
   18893 
   18894 fi
   18895 done
   18896 
   18897 
   18898 
   18899 
   18900 
   18901 
   18902 
   18903 for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline
   18904 do
   18905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   18906 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   18907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   18908 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   18909   echo $ECHO_N "(cached) $ECHO_C" >&6
   18910 else
   18911   cat >conftest.$ac_ext <<_ACEOF
   18912 /* confdefs.h.  */
   18913 _ACEOF
   18914 cat confdefs.h >>conftest.$ac_ext
   18915 cat >>conftest.$ac_ext <<_ACEOF
   18916 /* end confdefs.h.  */
   18917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   18918    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   18919 #define $ac_func innocuous_$ac_func
   18920 
   18921 /* System header to define __stub macros and hopefully few prototypes,
   18922     which can conflict with char $ac_func (); below.
   18923     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   18924     <limits.h> exists even on freestanding compilers.  */
   18925 
   18926 #ifdef __STDC__
   18927 # include <limits.h>
   18928 #else
   18929 # include <assert.h>
   18930 #endif
   18931 
   18932 #undef $ac_func
   18933 
   18934 /* Override any GCC internal prototype to avoid an error.
   18935    Use char because int might match the return type of a GCC
   18936    builtin and then its argument prototype would still apply.  */
   18937 #ifdef __cplusplus
   18938 extern "C"
   18939 #endif
   18940 char $ac_func ();
   18941 /* The GNU C library defines this for functions which it implements
   18942     to always fail with ENOSYS.  Some functions are actually named
   18943     something starting with __ and the normal name is an alias.  */
   18944 #if defined __stub_$ac_func || defined __stub___$ac_func
   18945 choke me
   18946 #endif
   18947 
   18948 int
   18949 main ()
   18950 {
   18951 return $ac_func ();
   18952   ;
   18953   return 0;
   18954 }
   18955 _ACEOF
   18956 rm -f conftest.$ac_objext conftest$ac_exeext
   18957 if { (ac_try="$ac_link"
   18958 case "(($ac_try" in
   18959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18960   *) ac_try_echo=$ac_try;;
   18961 esac
   18962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18963   (eval "$ac_link") 2>conftest.er1
   18964   ac_status=$?
   18965   grep -v '^ *+' conftest.er1 >conftest.err
   18966   rm -f conftest.er1
   18967   cat conftest.err >&5
   18968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18969   (exit $ac_status); } && {
   18970 	 test -z "$ac_c_werror_flag" ||
   18971 	 test ! -s conftest.err
   18972        } && test -s conftest$ac_exeext &&
   18973        $as_test_x conftest$ac_exeext; then
   18974   eval "$as_ac_var=yes"
   18975 else
   18976   echo "$as_me: failed program was:" >&5
   18977 sed 's/^/| /' conftest.$ac_ext >&5
   18978 
   18979 	eval "$as_ac_var=no"
   18980 fi
   18981 
   18982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   18983       conftest$ac_exeext conftest.$ac_ext
   18984 fi
   18985 ac_res=`eval echo '${'$as_ac_var'}'`
   18986 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   18987 echo "${ECHO_T}$ac_res" >&6; }
   18988 if test `eval echo '${'$as_ac_var'}'` = yes; then
   18989   cat >>confdefs.h <<_ACEOF
   18990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   18991 _ACEOF
   18992 
   18993 fi
   18994 done
   18995 
   18996 
   18997 
   18998 
   18999 for ac_func in setutxdb setutxent utmpxname
   19000 do
   19001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   19002 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   19003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   19004 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   19005   echo $ECHO_N "(cached) $ECHO_C" >&6
   19006 else
   19007   cat >conftest.$ac_ext <<_ACEOF
   19008 /* confdefs.h.  */
   19009 _ACEOF
   19010 cat confdefs.h >>conftest.$ac_ext
   19011 cat >>conftest.$ac_ext <<_ACEOF
   19012 /* end confdefs.h.  */
   19013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   19014    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   19015 #define $ac_func innocuous_$ac_func
   19016 
   19017 /* System header to define __stub macros and hopefully few prototypes,
   19018     which can conflict with char $ac_func (); below.
   19019     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   19020     <limits.h> exists even on freestanding compilers.  */
   19021 
   19022 #ifdef __STDC__
   19023 # include <limits.h>
   19024 #else
   19025 # include <assert.h>
   19026 #endif
   19027 
   19028 #undef $ac_func
   19029 
   19030 /* Override any GCC internal prototype to avoid an error.
   19031    Use char because int might match the return type of a GCC
   19032    builtin and then its argument prototype would still apply.  */
   19033 #ifdef __cplusplus
   19034 extern "C"
   19035 #endif
   19036 char $ac_func ();
   19037 /* The GNU C library defines this for functions which it implements
   19038     to always fail with ENOSYS.  Some functions are actually named
   19039     something starting with __ and the normal name is an alias.  */
   19040 #if defined __stub_$ac_func || defined __stub___$ac_func
   19041 choke me
   19042 #endif
   19043 
   19044 int
   19045 main ()
   19046 {
   19047 return $ac_func ();
   19048   ;
   19049   return 0;
   19050 }
   19051 _ACEOF
   19052 rm -f conftest.$ac_objext conftest$ac_exeext
   19053 if { (ac_try="$ac_link"
   19054 case "(($ac_try" in
   19055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19056   *) ac_try_echo=$ac_try;;
   19057 esac
   19058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19059   (eval "$ac_link") 2>conftest.er1
   19060   ac_status=$?
   19061   grep -v '^ *+' conftest.er1 >conftest.err
   19062   rm -f conftest.er1
   19063   cat conftest.err >&5
   19064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19065   (exit $ac_status); } && {
   19066 	 test -z "$ac_c_werror_flag" ||
   19067 	 test ! -s conftest.err
   19068        } && test -s conftest$ac_exeext &&
   19069        $as_test_x conftest$ac_exeext; then
   19070   eval "$as_ac_var=yes"
   19071 else
   19072   echo "$as_me: failed program was:" >&5
   19073 sed 's/^/| /' conftest.$ac_ext >&5
   19074 
   19075 	eval "$as_ac_var=no"
   19076 fi
   19077 
   19078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   19079       conftest$ac_exeext conftest.$ac_ext
   19080 fi
   19081 ac_res=`eval echo '${'$as_ac_var'}'`
   19082 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   19083 echo "${ECHO_T}$ac_res" >&6; }
   19084 if test `eval echo '${'$as_ac_var'}'` = yes; then
   19085   cat >>confdefs.h <<_ACEOF
   19086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   19087 _ACEOF
   19088 
   19089 fi
   19090 done
   19091 
   19092 
   19093 for ac_func in getlastlogxbyname
   19094 do
   19095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   19096 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   19097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   19098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   19099   echo $ECHO_N "(cached) $ECHO_C" >&6
   19100 else
   19101   cat >conftest.$ac_ext <<_ACEOF
   19102 /* confdefs.h.  */
   19103 _ACEOF
   19104 cat confdefs.h >>conftest.$ac_ext
   19105 cat >>conftest.$ac_ext <<_ACEOF
   19106 /* end confdefs.h.  */
   19107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   19108    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   19109 #define $ac_func innocuous_$ac_func
   19110 
   19111 /* System header to define __stub macros and hopefully few prototypes,
   19112     which can conflict with char $ac_func (); below.
   19113     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   19114     <limits.h> exists even on freestanding compilers.  */
   19115 
   19116 #ifdef __STDC__
   19117 # include <limits.h>
   19118 #else
   19119 # include <assert.h>
   19120 #endif
   19121 
   19122 #undef $ac_func
   19123 
   19124 /* Override any GCC internal prototype to avoid an error.
   19125    Use char because int might match the return type of a GCC
   19126    builtin and then its argument prototype would still apply.  */
   19127 #ifdef __cplusplus
   19128 extern "C"
   19129 #endif
   19130 char $ac_func ();
   19131 /* The GNU C library defines this for functions which it implements
   19132     to always fail with ENOSYS.  Some functions are actually named
   19133     something starting with __ and the normal name is an alias.  */
   19134 #if defined __stub_$ac_func || defined __stub___$ac_func
   19135 choke me
   19136 #endif
   19137 
   19138 int
   19139 main ()
   19140 {
   19141 return $ac_func ();
   19142   ;
   19143   return 0;
   19144 }
   19145 _ACEOF
   19146 rm -f conftest.$ac_objext conftest$ac_exeext
   19147 if { (ac_try="$ac_link"
   19148 case "(($ac_try" in
   19149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19150   *) ac_try_echo=$ac_try;;
   19151 esac
   19152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19153   (eval "$ac_link") 2>conftest.er1
   19154   ac_status=$?
   19155   grep -v '^ *+' conftest.er1 >conftest.err
   19156   rm -f conftest.er1
   19157   cat conftest.err >&5
   19158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19159   (exit $ac_status); } && {
   19160 	 test -z "$ac_c_werror_flag" ||
   19161 	 test ! -s conftest.err
   19162        } && test -s conftest$ac_exeext &&
   19163        $as_test_x conftest$ac_exeext; then
   19164   eval "$as_ac_var=yes"
   19165 else
   19166   echo "$as_me: failed program was:" >&5
   19167 sed 's/^/| /' conftest.$ac_ext >&5
   19168 
   19169 	eval "$as_ac_var=no"
   19170 fi
   19171 
   19172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   19173       conftest$ac_exeext conftest.$ac_ext
   19174 fi
   19175 ac_res=`eval echo '${'$as_ac_var'}'`
   19176 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   19177 echo "${ECHO_T}$ac_res" >&6; }
   19178 if test `eval echo '${'$as_ac_var'}'` = yes; then
   19179   cat >>confdefs.h <<_ACEOF
   19180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   19181 _ACEOF
   19182 
   19183 fi
   19184 done
   19185 
   19186 
   19187 { echo "$as_me:$LINENO: checking for daemon" >&5
   19188 echo $ECHO_N "checking for daemon... $ECHO_C" >&6; }
   19189 if test "${ac_cv_func_daemon+set}" = set; then
   19190   echo $ECHO_N "(cached) $ECHO_C" >&6
   19191 else
   19192   cat >conftest.$ac_ext <<_ACEOF
   19193 /* confdefs.h.  */
   19194 _ACEOF
   19195 cat confdefs.h >>conftest.$ac_ext
   19196 cat >>conftest.$ac_ext <<_ACEOF
   19197 /* end confdefs.h.  */
   19198 /* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
   19199    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   19200 #define daemon innocuous_daemon
   19201 
   19202 /* System header to define __stub macros and hopefully few prototypes,
   19203     which can conflict with char daemon (); below.
   19204     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   19205     <limits.h> exists even on freestanding compilers.  */
   19206 
   19207 #ifdef __STDC__
   19208 # include <limits.h>
   19209 #else
   19210 # include <assert.h>
   19211 #endif
   19212 
   19213 #undef daemon
   19214 
   19215 /* Override any GCC internal prototype to avoid an error.
   19216    Use char because int might match the return type of a GCC
   19217    builtin and then its argument prototype would still apply.  */
   19218 #ifdef __cplusplus
   19219 extern "C"
   19220 #endif
   19221 char daemon ();
   19222 /* The GNU C library defines this for functions which it implements
   19223     to always fail with ENOSYS.  Some functions are actually named
   19224     something starting with __ and the normal name is an alias.  */
   19225 #if defined __stub_daemon || defined __stub___daemon
   19226 choke me
   19227 #endif
   19228 
   19229 int
   19230 main ()
   19231 {
   19232 return daemon ();
   19233   ;
   19234   return 0;
   19235 }
   19236 _ACEOF
   19237 rm -f conftest.$ac_objext conftest$ac_exeext
   19238 if { (ac_try="$ac_link"
   19239 case "(($ac_try" in
   19240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19241   *) ac_try_echo=$ac_try;;
   19242 esac
   19243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19244   (eval "$ac_link") 2>conftest.er1
   19245   ac_status=$?
   19246   grep -v '^ *+' conftest.er1 >conftest.err
   19247   rm -f conftest.er1
   19248   cat conftest.err >&5
   19249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19250   (exit $ac_status); } && {
   19251 	 test -z "$ac_c_werror_flag" ||
   19252 	 test ! -s conftest.err
   19253        } && test -s conftest$ac_exeext &&
   19254        $as_test_x conftest$ac_exeext; then
   19255   ac_cv_func_daemon=yes
   19256 else
   19257   echo "$as_me: failed program was:" >&5
   19258 sed 's/^/| /' conftest.$ac_ext >&5
   19259 
   19260 	ac_cv_func_daemon=no
   19261 fi
   19262 
   19263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   19264       conftest$ac_exeext conftest.$ac_ext
   19265 fi
   19266 { echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
   19267 echo "${ECHO_T}$ac_cv_func_daemon" >&6; }
   19268 if test $ac_cv_func_daemon = yes; then
   19269 
   19270 cat >>confdefs.h <<\_ACEOF
   19271 #define HAVE_DAEMON 1
   19272 _ACEOF
   19273 
   19274 else
   19275   { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
   19276 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
   19277 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
   19278   echo $ECHO_N "(cached) $ECHO_C" >&6
   19279 else
   19280   ac_check_lib_save_LIBS=$LIBS
   19281 LIBS="-lbsd  $LIBS"
   19282 cat >conftest.$ac_ext <<_ACEOF
   19283 /* confdefs.h.  */
   19284 _ACEOF
   19285 cat confdefs.h >>conftest.$ac_ext
   19286 cat >>conftest.$ac_ext <<_ACEOF
   19287 /* end confdefs.h.  */
   19288 
   19289 /* Override any GCC internal prototype to avoid an error.
   19290    Use char because int might match the return type of a GCC
   19291    builtin and then its argument prototype would still apply.  */
   19292 #ifdef __cplusplus
   19293 extern "C"
   19294 #endif
   19295 char daemon ();
   19296 int
   19297 main ()
   19298 {
   19299 return daemon ();
   19300   ;
   19301   return 0;
   19302 }
   19303 _ACEOF
   19304 rm -f conftest.$ac_objext conftest$ac_exeext
   19305 if { (ac_try="$ac_link"
   19306 case "(($ac_try" in
   19307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19308   *) ac_try_echo=$ac_try;;
   19309 esac
   19310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19311   (eval "$ac_link") 2>conftest.er1
   19312   ac_status=$?
   19313   grep -v '^ *+' conftest.er1 >conftest.err
   19314   rm -f conftest.er1
   19315   cat conftest.err >&5
   19316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19317   (exit $ac_status); } && {
   19318 	 test -z "$ac_c_werror_flag" ||
   19319 	 test ! -s conftest.err
   19320        } && test -s conftest$ac_exeext &&
   19321        $as_test_x conftest$ac_exeext; then
   19322   ac_cv_lib_bsd_daemon=yes
   19323 else
   19324   echo "$as_me: failed program was:" >&5
   19325 sed 's/^/| /' conftest.$ac_ext >&5
   19326 
   19327 	ac_cv_lib_bsd_daemon=no
   19328 fi
   19329 
   19330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   19331       conftest$ac_exeext conftest.$ac_ext
   19332 LIBS=$ac_check_lib_save_LIBS
   19333 fi
   19334 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
   19335 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
   19336 if test $ac_cv_lib_bsd_daemon = yes; then
   19337   LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
   19338 #define HAVE_DAEMON 1
   19339 _ACEOF
   19340 
   19341 fi
   19342 
   19343 
   19344 fi
   19345 
   19346 
   19347 { echo "$as_me:$LINENO: checking for getpagesize" >&5
   19348 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
   19349 if test "${ac_cv_func_getpagesize+set}" = set; then
   19350   echo $ECHO_N "(cached) $ECHO_C" >&6
   19351 else
   19352   cat >conftest.$ac_ext <<_ACEOF
   19353 /* confdefs.h.  */
   19354 _ACEOF
   19355 cat confdefs.h >>conftest.$ac_ext
   19356 cat >>conftest.$ac_ext <<_ACEOF
   19357 /* end confdefs.h.  */
   19358 /* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize.
   19359    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   19360 #define getpagesize innocuous_getpagesize
   19361 
   19362 /* System header to define __stub macros and hopefully few prototypes,
   19363     which can conflict with char getpagesize (); below.
   19364     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   19365     <limits.h> exists even on freestanding compilers.  */
   19366 
   19367 #ifdef __STDC__
   19368 # include <limits.h>
   19369 #else
   19370 # include <assert.h>
   19371 #endif
   19372 
   19373 #undef getpagesize
   19374 
   19375 /* Override any GCC internal prototype to avoid an error.
   19376    Use char because int might match the return type of a GCC
   19377    builtin and then its argument prototype would still apply.  */
   19378 #ifdef __cplusplus
   19379 extern "C"
   19380 #endif
   19381 char getpagesize ();
   19382 /* The GNU C library defines this for functions which it implements
   19383     to always fail with ENOSYS.  Some functions are actually named
   19384     something starting with __ and the normal name is an alias.  */
   19385 #if defined __stub_getpagesize || defined __stub___getpagesize
   19386 choke me
   19387 #endif
   19388 
   19389 int
   19390 main ()
   19391 {
   19392 return getpagesize ();
   19393   ;
   19394   return 0;
   19395 }
   19396 _ACEOF
   19397 rm -f conftest.$ac_objext conftest$ac_exeext
   19398 if { (ac_try="$ac_link"
   19399 case "(($ac_try" in
   19400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19401   *) ac_try_echo=$ac_try;;
   19402 esac
   19403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19404   (eval "$ac_link") 2>conftest.er1
   19405   ac_status=$?
   19406   grep -v '^ *+' conftest.er1 >conftest.err
   19407   rm -f conftest.er1
   19408   cat conftest.err >&5
   19409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19410   (exit $ac_status); } && {
   19411 	 test -z "$ac_c_werror_flag" ||
   19412 	 test ! -s conftest.err
   19413        } && test -s conftest$ac_exeext &&
   19414        $as_test_x conftest$ac_exeext; then
   19415   ac_cv_func_getpagesize=yes
   19416 else
   19417   echo "$as_me: failed program was:" >&5
   19418 sed 's/^/| /' conftest.$ac_ext >&5
   19419 
   19420 	ac_cv_func_getpagesize=no
   19421 fi
   19422 
   19423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   19424       conftest$ac_exeext conftest.$ac_ext
   19425 fi
   19426 { echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
   19427 echo "${ECHO_T}$ac_cv_func_getpagesize" >&6; }
   19428 if test $ac_cv_func_getpagesize = yes; then
   19429 
   19430 cat >>confdefs.h <<\_ACEOF
   19431 #define HAVE_GETPAGESIZE 1
   19432 _ACEOF
   19433 
   19434 else
   19435   { echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
   19436 echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6; }
   19437 if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
   19438   echo $ECHO_N "(cached) $ECHO_C" >&6
   19439 else
   19440   ac_check_lib_save_LIBS=$LIBS
   19441 LIBS="-lucb  $LIBS"
   19442 cat >conftest.$ac_ext <<_ACEOF
   19443 /* confdefs.h.  */
   19444 _ACEOF
   19445 cat confdefs.h >>conftest.$ac_ext
   19446 cat >>conftest.$ac_ext <<_ACEOF
   19447 /* end confdefs.h.  */
   19448 
   19449 /* Override any GCC internal prototype to avoid an error.
   19450    Use char because int might match the return type of a GCC
   19451    builtin and then its argument prototype would still apply.  */
   19452 #ifdef __cplusplus
   19453 extern "C"
   19454 #endif
   19455 char getpagesize ();
   19456 int
   19457 main ()
   19458 {
   19459 return getpagesize ();
   19460   ;
   19461   return 0;
   19462 }
   19463 _ACEOF
   19464 rm -f conftest.$ac_objext conftest$ac_exeext
   19465 if { (ac_try="$ac_link"
   19466 case "(($ac_try" in
   19467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19468   *) ac_try_echo=$ac_try;;
   19469 esac
   19470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19471   (eval "$ac_link") 2>conftest.er1
   19472   ac_status=$?
   19473   grep -v '^ *+' conftest.er1 >conftest.err
   19474   rm -f conftest.er1
   19475   cat conftest.err >&5
   19476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19477   (exit $ac_status); } && {
   19478 	 test -z "$ac_c_werror_flag" ||
   19479 	 test ! -s conftest.err
   19480        } && test -s conftest$ac_exeext &&
   19481        $as_test_x conftest$ac_exeext; then
   19482   ac_cv_lib_ucb_getpagesize=yes
   19483 else
   19484   echo "$as_me: failed program was:" >&5
   19485 sed 's/^/| /' conftest.$ac_ext >&5
   19486 
   19487 	ac_cv_lib_ucb_getpagesize=no
   19488 fi
   19489 
   19490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   19491       conftest$ac_exeext conftest.$ac_ext
   19492 LIBS=$ac_check_lib_save_LIBS
   19493 fi
   19494 { echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
   19495 echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6; }
   19496 if test $ac_cv_lib_ucb_getpagesize = yes; then
   19497   LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
   19498 #define HAVE_GETPAGESIZE 1
   19499 _ACEOF
   19500 
   19501 fi
   19502 
   19503 
   19504 fi
   19505 
   19506 
   19507 # Check for broken snprintf
   19508 if test "x$ac_cv_func_snprintf" = "xyes" ; then
   19509 	{ echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
   19510 echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; }
   19511 	if test "$cross_compiling" = yes; then
   19512    { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
   19513 echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
   19514 
   19515 else
   19516   cat >conftest.$ac_ext <<_ACEOF
   19517 /* confdefs.h.  */
   19518 _ACEOF
   19519 cat confdefs.h >>conftest.$ac_ext
   19520 cat >>conftest.$ac_ext <<_ACEOF
   19521 /* end confdefs.h.  */
   19522  #include <stdio.h>
   19523 int
   19524 main ()
   19525 {
   19526 
   19527 	char b[5];
   19528 	snprintf(b,5,"123456789");
   19529 	exit(b[4]!='\0');
   19530 
   19531   ;
   19532   return 0;
   19533 }
   19534 _ACEOF
   19535 rm -f conftest$ac_exeext
   19536 if { (ac_try="$ac_link"
   19537 case "(($ac_try" in
   19538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19539   *) ac_try_echo=$ac_try;;
   19540 esac
   19541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19542   (eval "$ac_link") 2>&5
   19543   ac_status=$?
   19544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19545   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   19546   { (case "(($ac_try" in
   19547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19548   *) ac_try_echo=$ac_try;;
   19549 esac
   19550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19551   (eval "$ac_try") 2>&5
   19552   ac_status=$?
   19553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19554   (exit $ac_status); }; }; then
   19555   { echo "$as_me:$LINENO: result: yes" >&5
   19556 echo "${ECHO_T}yes" >&6; }
   19557 else
   19558   echo "$as_me: program exited with status $ac_status" >&5
   19559 echo "$as_me: failed program was:" >&5
   19560 sed 's/^/| /' conftest.$ac_ext >&5
   19561 
   19562 ( exit $ac_status )
   19563 
   19564 			{ echo "$as_me:$LINENO: result: no" >&5
   19565 echo "${ECHO_T}no" >&6; }
   19566 
   19567 cat >>confdefs.h <<\_ACEOF
   19568 #define BROKEN_SNPRINTF 1
   19569 _ACEOF
   19570 
   19571 			{ echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
   19572 echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
   19573 
   19574 fi
   19575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   19576 fi
   19577 
   19578 
   19579 fi
   19580 
   19581 # We depend on vsnprintf returning the right thing on overflow: the
   19582 # number of characters it tried to create (as per SUSv3)
   19583 if test "x$ac_cv_func_vsnprintf" = "xyes" ; then
   19584 	{ echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5
   19585 echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6; }
   19586 	if test "$cross_compiling" = yes; then
   19587    { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5
   19588 echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
   19589 
   19590 else
   19591   cat >conftest.$ac_ext <<_ACEOF
   19592 /* confdefs.h.  */
   19593 _ACEOF
   19594 cat confdefs.h >>conftest.$ac_ext
   19595 cat >>conftest.$ac_ext <<_ACEOF
   19596 /* end confdefs.h.  */
   19597 
   19598 #include <sys/types.h>
   19599 #include <stdio.h>
   19600 #include <stdarg.h>
   19601 
   19602 int x_snprintf(char *str, size_t count, const char *fmt, ...)
   19603 {
   19604 	size_t ret;
   19605 	va_list ap;
   19606 
   19607 	va_start(ap, fmt);
   19608 	ret = vsnprintf(str, count, fmt, ap);
   19609 	va_end(ap);
   19610 	return ret;
   19611 }
   19612 
   19613 int
   19614 main ()
   19615 {
   19616 
   19617 char x[1];
   19618 if (x_snprintf(x, 1, "%s %d", "hello", 12345) != 11)
   19619 	return 1;
   19620 if (x_snprintf(NULL, 0, "%s %d", "hello", 12345) != 11)
   19621 	return 1;
   19622 return 0;
   19623 
   19624   ;
   19625   return 0;
   19626 }
   19627 _ACEOF
   19628 rm -f conftest$ac_exeext
   19629 if { (ac_try="$ac_link"
   19630 case "(($ac_try" in
   19631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19632   *) ac_try_echo=$ac_try;;
   19633 esac
   19634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19635   (eval "$ac_link") 2>&5
   19636   ac_status=$?
   19637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19638   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   19639   { (case "(($ac_try" in
   19640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19641   *) ac_try_echo=$ac_try;;
   19642 esac
   19643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19644   (eval "$ac_try") 2>&5
   19645   ac_status=$?
   19646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19647   (exit $ac_status); }; }; then
   19648   { echo "$as_me:$LINENO: result: yes" >&5
   19649 echo "${ECHO_T}yes" >&6; }
   19650 else
   19651   echo "$as_me: program exited with status $ac_status" >&5
   19652 echo "$as_me: failed program was:" >&5
   19653 sed 's/^/| /' conftest.$ac_ext >&5
   19654 
   19655 ( exit $ac_status )
   19656 
   19657 			{ echo "$as_me:$LINENO: result: no" >&5
   19658 echo "${ECHO_T}no" >&6; }
   19659 
   19660 cat >>confdefs.h <<\_ACEOF
   19661 #define BROKEN_SNPRINTF 1
   19662 _ACEOF
   19663 
   19664 			{ echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
   19665 echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
   19666 
   19667 fi
   19668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   19669 fi
   19670 
   19671 
   19672 fi
   19673 
   19674 # On systems where [v]snprintf is broken, but is declared in stdio,
   19675 # check that the fmt argument is const char * or just char *.
   19676 # This is only useful for when BROKEN_SNPRINTF
   19677 { echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5
   19678 echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6; }
   19679 cat >conftest.$ac_ext <<_ACEOF
   19680 /* confdefs.h.  */
   19681 _ACEOF
   19682 cat confdefs.h >>conftest.$ac_ext
   19683 cat >>conftest.$ac_ext <<_ACEOF
   19684 /* end confdefs.h.  */
   19685 
   19686 #include <stdio.h>
   19687 int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
   19688 
   19689 int
   19690 main ()
   19691 {
   19692 
   19693 	snprintf(0, 0, 0);
   19694 
   19695   ;
   19696   return 0;
   19697 }
   19698 _ACEOF
   19699 rm -f conftest.$ac_objext
   19700 if { (ac_try="$ac_compile"
   19701 case "(($ac_try" in
   19702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19703   *) ac_try_echo=$ac_try;;
   19704 esac
   19705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19706   (eval "$ac_compile") 2>conftest.er1
   19707   ac_status=$?
   19708   grep -v '^ *+' conftest.er1 >conftest.err
   19709   rm -f conftest.er1
   19710   cat conftest.err >&5
   19711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19712   (exit $ac_status); } && {
   19713 	 test -z "$ac_c_werror_flag" ||
   19714 	 test ! -s conftest.err
   19715        } && test -s conftest.$ac_objext; then
   19716   { echo "$as_me:$LINENO: result: yes" >&5
   19717 echo "${ECHO_T}yes" >&6; }
   19718 
   19719 cat >>confdefs.h <<\_ACEOF
   19720 #define SNPRINTF_CONST const
   19721 _ACEOF
   19722 
   19723 else
   19724   echo "$as_me: failed program was:" >&5
   19725 sed 's/^/| /' conftest.$ac_ext >&5
   19726 
   19727 	{ echo "$as_me:$LINENO: result: no" >&5
   19728 echo "${ECHO_T}no" >&6; }
   19729     cat >>confdefs.h <<\_ACEOF
   19730 #define SNPRINTF_CONST /* not const */
   19731 _ACEOF
   19732 
   19733 fi
   19734 
   19735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19736 
   19737 # Check for missing getpeereid (or equiv) support
   19738 NO_PEERCHECK=""
   19739 if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
   19740 	{ echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5
   19741 echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6; }
   19742 	cat >conftest.$ac_ext <<_ACEOF
   19743 /* confdefs.h.  */
   19744 _ACEOF
   19745 cat confdefs.h >>conftest.$ac_ext
   19746 cat >>conftest.$ac_ext <<_ACEOF
   19747 /* end confdefs.h.  */
   19748 
   19749 #include <sys/types.h>
   19750 #include <sys/socket.h>
   19751 int
   19752 main ()
   19753 {
   19754 int i = SO_PEERCRED;
   19755   ;
   19756   return 0;
   19757 }
   19758 _ACEOF
   19759 rm -f conftest.$ac_objext
   19760 if { (ac_try="$ac_compile"
   19761 case "(($ac_try" in
   19762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19763   *) ac_try_echo=$ac_try;;
   19764 esac
   19765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19766   (eval "$ac_compile") 2>conftest.er1
   19767   ac_status=$?
   19768   grep -v '^ *+' conftest.er1 >conftest.err
   19769   rm -f conftest.er1
   19770   cat conftest.err >&5
   19771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19772   (exit $ac_status); } && {
   19773 	 test -z "$ac_c_werror_flag" ||
   19774 	 test ! -s conftest.err
   19775        } && test -s conftest.$ac_objext; then
   19776    { echo "$as_me:$LINENO: result: yes" >&5
   19777 echo "${ECHO_T}yes" >&6; }
   19778 
   19779 cat >>confdefs.h <<\_ACEOF
   19780 #define HAVE_SO_PEERCRED 1
   19781 _ACEOF
   19782 
   19783 
   19784 else
   19785   echo "$as_me: failed program was:" >&5
   19786 sed 's/^/| /' conftest.$ac_ext >&5
   19787 
   19788 	{ echo "$as_me:$LINENO: result: no" >&5
   19789 echo "${ECHO_T}no" >&6; }
   19790 		NO_PEERCHECK=1
   19791 
   19792 fi
   19793 
   19794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19795 fi
   19796 
   19797 if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
   19798 { echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5
   19799 echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6; }
   19800 if test "$cross_compiling" = yes; then
   19801 
   19802 		{ echo "$as_me:$LINENO: result: yes" >&5
   19803 echo "${ECHO_T}yes" >&6; }
   19804 		cat >>confdefs.h <<\_ACEOF
   19805 #define HAVE_STRICT_MKSTEMP 1
   19806 _ACEOF
   19807 
   19808 
   19809 
   19810 else
   19811   cat >conftest.$ac_ext <<_ACEOF
   19812 /* confdefs.h.  */
   19813 _ACEOF
   19814 cat confdefs.h >>conftest.$ac_ext
   19815 cat >>conftest.$ac_ext <<_ACEOF
   19816 /* end confdefs.h.  */
   19817 
   19818 #include <stdlib.h>
   19819 
   19820 int
   19821 main ()
   19822 {
   19823 
   19824 	char template[]="conftest.mkstemp-test";
   19825 	if (mkstemp(template) == -1)
   19826 		exit(1);
   19827 	unlink(template);
   19828 	exit(0);
   19829 
   19830   ;
   19831   return 0;
   19832 }
   19833 _ACEOF
   19834 rm -f conftest$ac_exeext
   19835 if { (ac_try="$ac_link"
   19836 case "(($ac_try" in
   19837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19838   *) ac_try_echo=$ac_try;;
   19839 esac
   19840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19841   (eval "$ac_link") 2>&5
   19842   ac_status=$?
   19843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19844   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   19845   { (case "(($ac_try" in
   19846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19847   *) ac_try_echo=$ac_try;;
   19848 esac
   19849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19850   (eval "$ac_try") 2>&5
   19851   ac_status=$?
   19852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19853   (exit $ac_status); }; }; then
   19854 
   19855 		{ echo "$as_me:$LINENO: result: no" >&5
   19856 echo "${ECHO_T}no" >&6; }
   19857 
   19858 else
   19859   echo "$as_me: program exited with status $ac_status" >&5
   19860 echo "$as_me: failed program was:" >&5
   19861 sed 's/^/| /' conftest.$ac_ext >&5
   19862 
   19863 ( exit $ac_status )
   19864 
   19865 		{ echo "$as_me:$LINENO: result: yes" >&5
   19866 echo "${ECHO_T}yes" >&6; }
   19867 
   19868 cat >>confdefs.h <<\_ACEOF
   19869 #define HAVE_STRICT_MKSTEMP 1
   19870 _ACEOF
   19871 
   19872 
   19873 fi
   19874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   19875 fi
   19876 
   19877 
   19878 fi
   19879 
   19880 if test ! -z "$check_for_openpty_ctty_bug"; then
   19881 	{ echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5
   19882 echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6; }
   19883 	if test "$cross_compiling" = yes; then
   19884 
   19885 			{ echo "$as_me:$LINENO: result: cross-compiling, assuming yes" >&5
   19886 echo "${ECHO_T}cross-compiling, assuming yes" >&6; }
   19887 
   19888 
   19889 else
   19890   cat >conftest.$ac_ext <<_ACEOF
   19891 /* confdefs.h.  */
   19892 _ACEOF
   19893 cat confdefs.h >>conftest.$ac_ext
   19894 cat >>conftest.$ac_ext <<_ACEOF
   19895 /* end confdefs.h.  */
   19896 
   19897 #include <stdio.h>
   19898 #include <sys/fcntl.h>
   19899 #include <sys/types.h>
   19900 #include <sys/wait.h>
   19901 
   19902 int
   19903 main ()
   19904 {
   19905 
   19906 	pid_t pid;
   19907 	int fd, ptyfd, ttyfd, status;
   19908 
   19909 	pid = fork();
   19910 	if (pid < 0) {		/* failed */
   19911 		exit(1);
   19912 	} else if (pid > 0) {	/* parent */
   19913 		waitpid(pid, &status, 0);
   19914 		if (WIFEXITED(status))
   19915 			exit(WEXITSTATUS(status));
   19916 		else
   19917 			exit(2);
   19918 	} else {		/* child */
   19919 		close(0); close(1); close(2);
   19920 		setsid();
   19921 		openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
   19922 		fd = open("/dev/tty", O_RDWR | O_NOCTTY);
   19923 		if (fd >= 0)
   19924 			exit(3);	/* Acquired ctty: broken */
   19925 		else
   19926 			exit(0);	/* Did not acquire ctty: OK */
   19927 	}
   19928 
   19929   ;
   19930   return 0;
   19931 }
   19932 _ACEOF
   19933 rm -f conftest$ac_exeext
   19934 if { (ac_try="$ac_link"
   19935 case "(($ac_try" in
   19936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19937   *) ac_try_echo=$ac_try;;
   19938 esac
   19939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19940   (eval "$ac_link") 2>&5
   19941   ac_status=$?
   19942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19943   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   19944   { (case "(($ac_try" in
   19945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19946   *) ac_try_echo=$ac_try;;
   19947 esac
   19948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19949   (eval "$ac_try") 2>&5
   19950   ac_status=$?
   19951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19952   (exit $ac_status); }; }; then
   19953 
   19954 			{ echo "$as_me:$LINENO: result: yes" >&5
   19955 echo "${ECHO_T}yes" >&6; }
   19956 
   19957 else
   19958   echo "$as_me: program exited with status $ac_status" >&5
   19959 echo "$as_me: failed program was:" >&5
   19960 sed 's/^/| /' conftest.$ac_ext >&5
   19961 
   19962 ( exit $ac_status )
   19963 
   19964 			{ echo "$as_me:$LINENO: result: no" >&5
   19965 echo "${ECHO_T}no" >&6; }
   19966 			cat >>confdefs.h <<\_ACEOF
   19967 #define SSHD_ACQUIRES_CTTY 1
   19968 _ACEOF
   19969 
   19970 
   19971 fi
   19972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   19973 fi
   19974 
   19975 
   19976 fi
   19977 
   19978 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
   19979     test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
   19980 	{ echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
   19981 echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
   19982 	if test "$cross_compiling" = yes; then
   19983 
   19984 			{ echo "$as_me:$LINENO: result: cross-compiling, assuming yes" >&5
   19985 echo "${ECHO_T}cross-compiling, assuming yes" >&6; }
   19986 
   19987 
   19988 else
   19989   cat >conftest.$ac_ext <<_ACEOF
   19990 /* confdefs.h.  */
   19991 _ACEOF
   19992 cat confdefs.h >>conftest.$ac_ext
   19993 cat >>conftest.$ac_ext <<_ACEOF
   19994 /* end confdefs.h.  */
   19995 
   19996 #include <stdio.h>
   19997 #include <sys/socket.h>
   19998 #include <netdb.h>
   19999 #include <errno.h>
   20000 #include <netinet/in.h>
   20001 
   20002 #define TEST_PORT "2222"
   20003 
   20004 int
   20005 main ()
   20006 {
   20007 
   20008 	int err, sock;
   20009 	struct addrinfo *gai_ai, *ai, hints;
   20010 	char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
   20011 
   20012 	memset(&hints, 0, sizeof(hints));
   20013 	hints.ai_family = PF_UNSPEC;
   20014 	hints.ai_socktype = SOCK_STREAM;
   20015 	hints.ai_flags = AI_PASSIVE;
   20016 
   20017 	err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
   20018 	if (err != 0) {
   20019 		fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
   20020 		exit(1);
   20021 	}
   20022 
   20023 	for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
   20024 		if (ai->ai_family != AF_INET6)
   20025 			continue;
   20026 
   20027 		err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
   20028 		    sizeof(ntop), strport, sizeof(strport),
   20029 		    NI_NUMERICHOST|NI_NUMERICSERV);
   20030 
   20031 		if (err != 0) {
   20032 			if (err == EAI_SYSTEM)
   20033 				perror("getnameinfo EAI_SYSTEM");
   20034 			else
   20035 				fprintf(stderr, "getnameinfo failed: %s\n",
   20036 				    gai_strerror(err));
   20037 			exit(2);
   20038 		}
   20039 
   20040 		sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
   20041 		if (sock < 0)
   20042 			perror("socket");
   20043 		if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
   20044 			if (errno == EBADF)
   20045 				exit(3);
   20046 		}
   20047 	}
   20048 	exit(0);
   20049 
   20050   ;
   20051   return 0;
   20052 }
   20053 _ACEOF
   20054 rm -f conftest$ac_exeext
   20055 if { (ac_try="$ac_link"
   20056 case "(($ac_try" in
   20057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20058   *) ac_try_echo=$ac_try;;
   20059 esac
   20060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20061   (eval "$ac_link") 2>&5
   20062   ac_status=$?
   20063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20064   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   20065   { (case "(($ac_try" in
   20066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20067   *) ac_try_echo=$ac_try;;
   20068 esac
   20069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20070   (eval "$ac_try") 2>&5
   20071   ac_status=$?
   20072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20073   (exit $ac_status); }; }; then
   20074 
   20075 			{ echo "$as_me:$LINENO: result: yes" >&5
   20076 echo "${ECHO_T}yes" >&6; }
   20077 
   20078 else
   20079   echo "$as_me: program exited with status $ac_status" >&5
   20080 echo "$as_me: failed program was:" >&5
   20081 sed 's/^/| /' conftest.$ac_ext >&5
   20082 
   20083 ( exit $ac_status )
   20084 
   20085 			{ echo "$as_me:$LINENO: result: no" >&5
   20086 echo "${ECHO_T}no" >&6; }
   20087 			cat >>confdefs.h <<\_ACEOF
   20088 #define BROKEN_GETADDRINFO 1
   20089 _ACEOF
   20090 
   20091 
   20092 fi
   20093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   20094 fi
   20095 
   20096 
   20097 fi
   20098 
   20099 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
   20100     test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
   20101 	{ echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
   20102 echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
   20103 	if test "$cross_compiling" = yes; then
   20104 
   20105 			{ echo "$as_me:$LINENO: result: cross-compiling, assuming no" >&5
   20106 echo "${ECHO_T}cross-compiling, assuming no" >&6; }
   20107 
   20108 
   20109 else
   20110   cat >conftest.$ac_ext <<_ACEOF
   20111 /* confdefs.h.  */
   20112 _ACEOF
   20113 cat confdefs.h >>conftest.$ac_ext
   20114 cat >>conftest.$ac_ext <<_ACEOF
   20115 /* end confdefs.h.  */
   20116 
   20117 #include <stdio.h>
   20118 #include <sys/socket.h>
   20119 #include <netdb.h>
   20120 #include <errno.h>
   20121 #include <netinet/in.h>
   20122 
   20123 #define TEST_PORT "2222"
   20124 
   20125 int
   20126 main ()
   20127 {
   20128 
   20129 	int err, sock;
   20130 	struct addrinfo *gai_ai, *ai, hints;
   20131 	char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
   20132 
   20133 	memset(&hints, 0, sizeof(hints));
   20134 	hints.ai_family = PF_UNSPEC;
   20135 	hints.ai_socktype = SOCK_STREAM;
   20136 	hints.ai_flags = AI_PASSIVE;
   20137 
   20138 	err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
   20139 	if (err != 0) {
   20140 		fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
   20141 		exit(1);
   20142 	}
   20143 
   20144 	for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
   20145 		if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
   20146 			continue;
   20147 
   20148 		err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
   20149 		    sizeof(ntop), strport, sizeof(strport),
   20150 		    NI_NUMERICHOST|NI_NUMERICSERV);
   20151 
   20152 		if (ai->ai_family == AF_INET && err != 0) {
   20153 			perror("getnameinfo");
   20154 			exit(2);
   20155 		}
   20156 	}
   20157 	exit(0);
   20158 
   20159   ;
   20160   return 0;
   20161 }
   20162 _ACEOF
   20163 rm -f conftest$ac_exeext
   20164 if { (ac_try="$ac_link"
   20165 case "(($ac_try" in
   20166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20167   *) ac_try_echo=$ac_try;;
   20168 esac
   20169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20170   (eval "$ac_link") 2>&5
   20171   ac_status=$?
   20172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20173   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   20174   { (case "(($ac_try" in
   20175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20176   *) ac_try_echo=$ac_try;;
   20177 esac
   20178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20179   (eval "$ac_try") 2>&5
   20180   ac_status=$?
   20181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20182   (exit $ac_status); }; }; then
   20183 
   20184 			{ echo "$as_me:$LINENO: result: yes" >&5
   20185 echo "${ECHO_T}yes" >&6; }
   20186 
   20187 cat >>confdefs.h <<\_ACEOF
   20188 #define AIX_GETNAMEINFO_HACK 1
   20189 _ACEOF
   20190 
   20191 
   20192 else
   20193   echo "$as_me: program exited with status $ac_status" >&5
   20194 echo "$as_me: failed program was:" >&5
   20195 sed 's/^/| /' conftest.$ac_ext >&5
   20196 
   20197 ( exit $ac_status )
   20198 
   20199 			{ echo "$as_me:$LINENO: result: no" >&5
   20200 echo "${ECHO_T}no" >&6; }
   20201 			cat >>confdefs.h <<\_ACEOF
   20202 #define BROKEN_GETADDRINFO 1
   20203 _ACEOF
   20204 
   20205 
   20206 fi
   20207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   20208 fi
   20209 
   20210 
   20211 fi
   20212 
   20213 if test "x$ac_cv_func_getaddrinfo" = "xyes"; then
   20214 	{ echo "$as_me:$LINENO: checking whether AI_NUMERICSERV is declared" >&5
   20215 echo $ECHO_N "checking whether AI_NUMERICSERV is declared... $ECHO_C" >&6; }
   20216 if test "${ac_cv_have_decl_AI_NUMERICSERV+set}" = set; then
   20217   echo $ECHO_N "(cached) $ECHO_C" >&6
   20218 else
   20219   cat >conftest.$ac_ext <<_ACEOF
   20220 /* confdefs.h.  */
   20221 _ACEOF
   20222 cat confdefs.h >>conftest.$ac_ext
   20223 cat >>conftest.$ac_ext <<_ACEOF
   20224 /* end confdefs.h.  */
   20225 #include <sys/types.h>
   20226 	     #include <sys/socket.h>
   20227 	     #include <netdb.h>
   20228 
   20229 int
   20230 main ()
   20231 {
   20232 #ifndef AI_NUMERICSERV
   20233   (void) AI_NUMERICSERV;
   20234 #endif
   20235 
   20236   ;
   20237   return 0;
   20238 }
   20239 _ACEOF
   20240 rm -f conftest.$ac_objext
   20241 if { (ac_try="$ac_compile"
   20242 case "(($ac_try" in
   20243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20244   *) ac_try_echo=$ac_try;;
   20245 esac
   20246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20247   (eval "$ac_compile") 2>conftest.er1
   20248   ac_status=$?
   20249   grep -v '^ *+' conftest.er1 >conftest.err
   20250   rm -f conftest.er1
   20251   cat conftest.err >&5
   20252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20253   (exit $ac_status); } && {
   20254 	 test -z "$ac_c_werror_flag" ||
   20255 	 test ! -s conftest.err
   20256        } && test -s conftest.$ac_objext; then
   20257   ac_cv_have_decl_AI_NUMERICSERV=yes
   20258 else
   20259   echo "$as_me: failed program was:" >&5
   20260 sed 's/^/| /' conftest.$ac_ext >&5
   20261 
   20262 	ac_cv_have_decl_AI_NUMERICSERV=no
   20263 fi
   20264 
   20265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20266 fi
   20267 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_AI_NUMERICSERV" >&5
   20268 echo "${ECHO_T}$ac_cv_have_decl_AI_NUMERICSERV" >&6; }
   20269 if test $ac_cv_have_decl_AI_NUMERICSERV = yes; then
   20270 
   20271 cat >>confdefs.h <<_ACEOF
   20272 #define HAVE_DECL_AI_NUMERICSERV 1
   20273 _ACEOF
   20274 
   20275 
   20276 else
   20277   cat >>confdefs.h <<_ACEOF
   20278 #define HAVE_DECL_AI_NUMERICSERV 0
   20279 _ACEOF
   20280 
   20281 
   20282 fi
   20283 
   20284 
   20285 fi
   20286 
   20287 if test "x$check_for_conflicting_getspnam" = "x1"; then
   20288 	{ echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5
   20289 echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6; }
   20290 	cat >conftest.$ac_ext <<_ACEOF
   20291 /* confdefs.h.  */
   20292 _ACEOF
   20293 cat confdefs.h >>conftest.$ac_ext
   20294 cat >>conftest.$ac_ext <<_ACEOF
   20295 /* end confdefs.h.  */
   20296  #include <shadow.h>
   20297 int
   20298 main ()
   20299 {
   20300  exit(0);
   20301   ;
   20302   return 0;
   20303 }
   20304 _ACEOF
   20305 rm -f conftest.$ac_objext
   20306 if { (ac_try="$ac_compile"
   20307 case "(($ac_try" in
   20308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20309   *) ac_try_echo=$ac_try;;
   20310 esac
   20311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20312   (eval "$ac_compile") 2>conftest.er1
   20313   ac_status=$?
   20314   grep -v '^ *+' conftest.er1 >conftest.err
   20315   rm -f conftest.er1
   20316   cat conftest.err >&5
   20317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20318   (exit $ac_status); } && {
   20319 	 test -z "$ac_c_werror_flag" ||
   20320 	 test ! -s conftest.err
   20321        } && test -s conftest.$ac_objext; then
   20322 
   20323 			{ echo "$as_me:$LINENO: result: no" >&5
   20324 echo "${ECHO_T}no" >&6; }
   20325 
   20326 else
   20327   echo "$as_me: failed program was:" >&5
   20328 sed 's/^/| /' conftest.$ac_ext >&5
   20329 
   20330 
   20331 			{ echo "$as_me:$LINENO: result: yes" >&5
   20332 echo "${ECHO_T}yes" >&6; }
   20333 
   20334 cat >>confdefs.h <<\_ACEOF
   20335 #define GETSPNAM_CONFLICTING_DEFS 1
   20336 _ACEOF
   20337 
   20338 
   20339 
   20340 fi
   20341 
   20342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20343 fi
   20344 
   20345 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
   20346 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
   20347 if test "${ac_cv_func_getpgrp_void+set}" = set; then
   20348   echo $ECHO_N "(cached) $ECHO_C" >&6
   20349 else
   20350   # Use it with a single arg.
   20351 cat >conftest.$ac_ext <<_ACEOF
   20352 /* confdefs.h.  */
   20353 _ACEOF
   20354 cat confdefs.h >>conftest.$ac_ext
   20355 cat >>conftest.$ac_ext <<_ACEOF
   20356 /* end confdefs.h.  */
   20357 $ac_includes_default
   20358 int
   20359 main ()
   20360 {
   20361 getpgrp (0);
   20362   ;
   20363   return 0;
   20364 }
   20365 _ACEOF
   20366 rm -f conftest.$ac_objext
   20367 if { (ac_try="$ac_compile"
   20368 case "(($ac_try" in
   20369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20370   *) ac_try_echo=$ac_try;;
   20371 esac
   20372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20373   (eval "$ac_compile") 2>conftest.er1
   20374   ac_status=$?
   20375   grep -v '^ *+' conftest.er1 >conftest.err
   20376   rm -f conftest.er1
   20377   cat conftest.err >&5
   20378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20379   (exit $ac_status); } && {
   20380 	 test -z "$ac_c_werror_flag" ||
   20381 	 test ! -s conftest.err
   20382        } && test -s conftest.$ac_objext; then
   20383   ac_cv_func_getpgrp_void=no
   20384 else
   20385   echo "$as_me: failed program was:" >&5
   20386 sed 's/^/| /' conftest.$ac_ext >&5
   20387 
   20388 	ac_cv_func_getpgrp_void=yes
   20389 fi
   20390 
   20391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20392 
   20393 fi
   20394 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
   20395 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
   20396 if test $ac_cv_func_getpgrp_void = yes; then
   20397 
   20398 cat >>confdefs.h <<\_ACEOF
   20399 #define GETPGRP_VOID 1
   20400 _ACEOF
   20401 
   20402 fi
   20403 
   20404 
   20405 # Search for OpenSSL
   20406 saved_CPPFLAGS="$CPPFLAGS"
   20407 saved_LDFLAGS="$LDFLAGS"
   20408 
   20409 # Check whether --with-ssl-dir was given.
   20410 if test "${with_ssl_dir+set}" = set; then
   20411   withval=$with_ssl_dir;
   20412 		if test "x$openssl" = "xno" ; then
   20413 			{ { echo "$as_me:$LINENO: error: cannot use --with-ssl-dir when OpenSSL disabled" >&5
   20414 echo "$as_me: error: cannot use --with-ssl-dir when OpenSSL disabled" >&2;}
   20415    { (exit 1); exit 1; }; }
   20416 		fi
   20417 		if test "x$withval" != "xno" ; then
   20418 			case "$withval" in
   20419 				# Relative paths
   20420 				./*|../*)	withval="`pwd`/$withval"
   20421 			esac
   20422 			if test -d "$withval/lib"; then
   20423 				if test -n "${need_dash_r}"; then
   20424 					LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
   20425 				else
   20426 					LDFLAGS="-L${withval}/lib ${LDFLAGS}"
   20427 				fi
   20428 			elif test -d "$withval/lib64"; then
   20429 				if test -n "${need_dash_r}"; then
   20430 					LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}"
   20431 				else
   20432 					LDFLAGS="-L${withval}/lib64 ${LDFLAGS}"
   20433 				fi
   20434 			else
   20435 				if test -n "${need_dash_r}"; then
   20436 					LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
   20437 				else
   20438 					LDFLAGS="-L${withval} ${LDFLAGS}"
   20439 				fi
   20440 			fi
   20441 			if test -d "$withval/include"; then
   20442 				CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
   20443 			else
   20444 				CPPFLAGS="-I${withval} ${CPPFLAGS}"
   20445 			fi
   20446 		fi
   20447 
   20448 
   20449 fi
   20450 
   20451 
   20452 
   20453 # Check whether --with-openssl-header-check was given.
   20454 if test "${with_openssl_header_check+set}" = set; then
   20455   withval=$with_openssl_header_check;
   20456 		if test "x$withval" = "xno" ; then
   20457 			openssl_check_nonfatal=1
   20458 		fi
   20459 
   20460 
   20461 fi
   20462 
   20463 
   20464 openssl_engine=no
   20465 
   20466 # Check whether --with-ssl-engine was given.
   20467 if test "${with_ssl_engine+set}" = set; then
   20468   withval=$with_ssl_engine;
   20469 		if test "x$openssl" = "xno" ; then
   20470 			{ { echo "$as_me:$LINENO: error: cannot use --with-ssl-engine when OpenSSL disabled" >&5
   20471 echo "$as_me: error: cannot use --with-ssl-engine when OpenSSL disabled" >&2;}
   20472    { (exit 1); exit 1; }; }
   20473 		fi
   20474 		if test "x$withval" != "xno" ; then
   20475 			openssl_engine=yes
   20476 		fi
   20477 
   20478 
   20479 fi
   20480 
   20481 
   20482 if test "x$openssl" = "xyes" ; then
   20483 	LIBS="-lcrypto $LIBS"
   20484 	cat >conftest.$ac_ext <<_ACEOF
   20485 /* confdefs.h.  */
   20486 _ACEOF
   20487 cat confdefs.h >>conftest.$ac_ext
   20488 cat >>conftest.$ac_ext <<_ACEOF
   20489 /* end confdefs.h.  */
   20490 
   20491 /* Override any GCC internal prototype to avoid an error.
   20492    Use char because int might match the return type of a GCC
   20493    builtin and then its argument prototype would still apply.  */
   20494 #ifdef __cplusplus
   20495 extern "C"
   20496 #endif
   20497 char RAND_add ();
   20498 int
   20499 main ()
   20500 {
   20501 return RAND_add ();
   20502   ;
   20503   return 0;
   20504 }
   20505 _ACEOF
   20506 rm -f conftest.$ac_objext conftest$ac_exeext
   20507 if { (ac_try="$ac_link"
   20508 case "(($ac_try" in
   20509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20510   *) ac_try_echo=$ac_try;;
   20511 esac
   20512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20513   (eval "$ac_link") 2>conftest.er1
   20514   ac_status=$?
   20515   grep -v '^ *+' conftest.er1 >conftest.err
   20516   rm -f conftest.er1
   20517   cat conftest.err >&5
   20518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20519   (exit $ac_status); } && {
   20520 	 test -z "$ac_c_werror_flag" ||
   20521 	 test ! -s conftest.err
   20522        } && test -s conftest$ac_exeext &&
   20523        $as_test_x conftest$ac_exeext; then
   20524 
   20525 cat >>confdefs.h <<\_ACEOF
   20526 #define HAVE_OPENSSL 1
   20527 _ACEOF
   20528 
   20529 else
   20530   echo "$as_me: failed program was:" >&5
   20531 sed 's/^/| /' conftest.$ac_ext >&5
   20532 
   20533 
   20534 						if test -n "${need_dash_r}"; then
   20535 				LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
   20536 			else
   20537 				LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
   20538 			fi
   20539 			CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
   20540 			if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
   20541   { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
   20542 echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
   20543 if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
   20544   echo $ECHO_N "(cached) $ECHO_C" >&6
   20545 fi
   20546 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
   20547 echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
   20548 else
   20549   # Is the header compilable?
   20550 { echo "$as_me:$LINENO: checking openssl/opensslv.h usability" >&5
   20551 echo $ECHO_N "checking openssl/opensslv.h usability... $ECHO_C" >&6; }
   20552 cat >conftest.$ac_ext <<_ACEOF
   20553 /* confdefs.h.  */
   20554 _ACEOF
   20555 cat confdefs.h >>conftest.$ac_ext
   20556 cat >>conftest.$ac_ext <<_ACEOF
   20557 /* end confdefs.h.  */
   20558 $ac_includes_default
   20559 #include <openssl/opensslv.h>
   20560 _ACEOF
   20561 rm -f conftest.$ac_objext
   20562 if { (ac_try="$ac_compile"
   20563 case "(($ac_try" in
   20564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20565   *) ac_try_echo=$ac_try;;
   20566 esac
   20567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20568   (eval "$ac_compile") 2>conftest.er1
   20569   ac_status=$?
   20570   grep -v '^ *+' conftest.er1 >conftest.err
   20571   rm -f conftest.er1
   20572   cat conftest.err >&5
   20573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20574   (exit $ac_status); } && {
   20575 	 test -z "$ac_c_werror_flag" ||
   20576 	 test ! -s conftest.err
   20577        } && test -s conftest.$ac_objext; then
   20578   ac_header_compiler=yes
   20579 else
   20580   echo "$as_me: failed program was:" >&5
   20581 sed 's/^/| /' conftest.$ac_ext >&5
   20582 
   20583 	ac_header_compiler=no
   20584 fi
   20585 
   20586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20587 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   20588 echo "${ECHO_T}$ac_header_compiler" >&6; }
   20589 
   20590 # Is the header present?
   20591 { echo "$as_me:$LINENO: checking openssl/opensslv.h presence" >&5
   20592 echo $ECHO_N "checking openssl/opensslv.h presence... $ECHO_C" >&6; }
   20593 cat >conftest.$ac_ext <<_ACEOF
   20594 /* confdefs.h.  */
   20595 _ACEOF
   20596 cat confdefs.h >>conftest.$ac_ext
   20597 cat >>conftest.$ac_ext <<_ACEOF
   20598 /* end confdefs.h.  */
   20599 #include <openssl/opensslv.h>
   20600 _ACEOF
   20601 if { (ac_try="$ac_cpp conftest.$ac_ext"
   20602 case "(($ac_try" in
   20603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20604   *) ac_try_echo=$ac_try;;
   20605 esac
   20606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20607   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   20608   ac_status=$?
   20609   grep -v '^ *+' conftest.er1 >conftest.err
   20610   rm -f conftest.er1
   20611   cat conftest.err >&5
   20612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20613   (exit $ac_status); } >/dev/null && {
   20614 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   20615 	 test ! -s conftest.err
   20616        }; then
   20617   ac_header_preproc=yes
   20618 else
   20619   echo "$as_me: failed program was:" >&5
   20620 sed 's/^/| /' conftest.$ac_ext >&5
   20621 
   20622   ac_header_preproc=no
   20623 fi
   20624 
   20625 rm -f conftest.err conftest.$ac_ext
   20626 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   20627 echo "${ECHO_T}$ac_header_preproc" >&6; }
   20628 
   20629 # So?  What about this header?
   20630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   20631   yes:no: )
   20632     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&5
   20633 echo "$as_me: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   20634     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&5
   20635 echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&2;}
   20636     ac_header_preproc=yes
   20637     ;;
   20638   no:yes:* )
   20639     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: present but cannot be compiled" >&5
   20640 echo "$as_me: WARNING: openssl/opensslv.h: present but cannot be compiled" >&2;}
   20641     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h:     check for missing prerequisite headers?" >&5
   20642 echo "$as_me: WARNING: openssl/opensslv.h:     check for missing prerequisite headers?" >&2;}
   20643     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&5
   20644 echo "$as_me: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&2;}
   20645     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h:     section \"Present But Cannot Be Compiled\"" >&5
   20646 echo "$as_me: WARNING: openssl/opensslv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   20647     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&5
   20648 echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&2;}
   20649     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&5
   20650 echo "$as_me: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&2;}
   20651     ( cat <<\_ASBOX
   20652 ## ------------------------------------------- ##
   20653 ## Report this to openssh-unix-dev (at] mindrot.org ##
   20654 ## ------------------------------------------- ##
   20655 _ASBOX
   20656      ) | sed "s/^/$as_me: WARNING:     /" >&2
   20657     ;;
   20658 esac
   20659 { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
   20660 echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
   20661 if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
   20662   echo $ECHO_N "(cached) $ECHO_C" >&6
   20663 else
   20664   ac_cv_header_openssl_opensslv_h=$ac_header_preproc
   20665 fi
   20666 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
   20667 echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
   20668 
   20669 fi
   20670 if test $ac_cv_header_openssl_opensslv_h = yes; then
   20671   :
   20672 else
   20673   { { echo "$as_me:$LINENO: error: *** OpenSSL headers missing - please install first or check config.log ***" >&5
   20674 echo "$as_me: error: *** OpenSSL headers missing - please install first or check config.log ***" >&2;}
   20675    { (exit 1); exit 1; }; }
   20676 fi
   20677 
   20678 
   20679 			cat >conftest.$ac_ext <<_ACEOF
   20680 /* confdefs.h.  */
   20681 _ACEOF
   20682 cat confdefs.h >>conftest.$ac_ext
   20683 cat >>conftest.$ac_ext <<_ACEOF
   20684 /* end confdefs.h.  */
   20685 
   20686 /* Override any GCC internal prototype to avoid an error.
   20687    Use char because int might match the return type of a GCC
   20688    builtin and then its argument prototype would still apply.  */
   20689 #ifdef __cplusplus
   20690 extern "C"
   20691 #endif
   20692 char RAND_add ();
   20693 int
   20694 main ()
   20695 {
   20696 return RAND_add ();
   20697   ;
   20698   return 0;
   20699 }
   20700 _ACEOF
   20701 rm -f conftest.$ac_objext conftest$ac_exeext
   20702 if { (ac_try="$ac_link"
   20703 case "(($ac_try" in
   20704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20705   *) ac_try_echo=$ac_try;;
   20706 esac
   20707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20708   (eval "$ac_link") 2>conftest.er1
   20709   ac_status=$?
   20710   grep -v '^ *+' conftest.er1 >conftest.err
   20711   rm -f conftest.er1
   20712   cat conftest.err >&5
   20713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20714   (exit $ac_status); } && {
   20715 	 test -z "$ac_c_werror_flag" ||
   20716 	 test ! -s conftest.err
   20717        } && test -s conftest$ac_exeext &&
   20718        $as_test_x conftest$ac_exeext; then
   20719   cat >>confdefs.h <<\_ACEOF
   20720 #define HAVE_OPENSSL 1
   20721 _ACEOF
   20722 
   20723 else
   20724   echo "$as_me: failed program was:" >&5
   20725 sed 's/^/| /' conftest.$ac_ext >&5
   20726 
   20727 
   20728 					{ { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
   20729 echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
   20730    { (exit 1); exit 1; }; }
   20731 
   20732 
   20733 fi
   20734 
   20735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   20736       conftest$ac_exeext conftest.$ac_ext
   20737 
   20738 
   20739 fi
   20740 
   20741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   20742       conftest$ac_exeext conftest.$ac_ext
   20743 
   20744 	# Determine OpenSSL header version
   20745 	{ echo "$as_me:$LINENO: checking OpenSSL header version" >&5
   20746 echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6; }
   20747 	if test "$cross_compiling" = yes; then
   20748 
   20749 			{ echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
   20750 echo "$as_me: WARNING: cross compiling: not checking" >&2;}
   20751 
   20752 
   20753 else
   20754   cat >conftest.$ac_ext <<_ACEOF
   20755 /* confdefs.h.  */
   20756 _ACEOF
   20757 cat confdefs.h >>conftest.$ac_ext
   20758 cat >>conftest.$ac_ext <<_ACEOF
   20759 /* end confdefs.h.  */
   20760 
   20761 	#include <stdio.h>
   20762 	#include <string.h>
   20763 	#include <openssl/opensslv.h>
   20764 	#define DATA "conftest.sslincver"
   20765 
   20766 int
   20767 main ()
   20768 {
   20769 
   20770 		FILE *fd;
   20771 		int rc;
   20772 
   20773 		fd = fopen(DATA,"w");
   20774 		if(fd == NULL)
   20775 			exit(1);
   20776 
   20777 		if ((rc = fprintf(fd ,"%08x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
   20778 			exit(1);
   20779 
   20780 		exit(0);
   20781 
   20782   ;
   20783   return 0;
   20784 }
   20785 _ACEOF
   20786 rm -f conftest$ac_exeext
   20787 if { (ac_try="$ac_link"
   20788 case "(($ac_try" in
   20789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20790   *) ac_try_echo=$ac_try;;
   20791 esac
   20792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20793   (eval "$ac_link") 2>&5
   20794   ac_status=$?
   20795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20796   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   20797   { (case "(($ac_try" in
   20798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20799   *) ac_try_echo=$ac_try;;
   20800 esac
   20801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20802   (eval "$ac_try") 2>&5
   20803   ac_status=$?
   20804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20805   (exit $ac_status); }; }; then
   20806 
   20807 			ssl_header_ver=`cat conftest.sslincver`
   20808 			{ echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
   20809 echo "${ECHO_T}$ssl_header_ver" >&6; }
   20810 
   20811 else
   20812   echo "$as_me: program exited with status $ac_status" >&5
   20813 echo "$as_me: failed program was:" >&5
   20814 sed 's/^/| /' conftest.$ac_ext >&5
   20815 
   20816 ( exit $ac_status )
   20817 
   20818 			{ echo "$as_me:$LINENO: result: not found" >&5
   20819 echo "${ECHO_T}not found" >&6; }
   20820 			{ { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
   20821 echo "$as_me: error: OpenSSL version header not found." >&2;}
   20822    { (exit 1); exit 1; }; }
   20823 
   20824 fi
   20825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   20826 fi
   20827 
   20828 
   20829 
   20830 	# Determine OpenSSL library version
   20831 	{ echo "$as_me:$LINENO: checking OpenSSL library version" >&5
   20832 echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; }
   20833 	if test "$cross_compiling" = yes; then
   20834 
   20835 			{ echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
   20836 echo "$as_me: WARNING: cross compiling: not checking" >&2;}
   20837 
   20838 
   20839 else
   20840   cat >conftest.$ac_ext <<_ACEOF
   20841 /* confdefs.h.  */
   20842 _ACEOF
   20843 cat confdefs.h >>conftest.$ac_ext
   20844 cat >>conftest.$ac_ext <<_ACEOF
   20845 /* end confdefs.h.  */
   20846 
   20847 	#include <stdio.h>
   20848 	#include <string.h>
   20849 	#include <openssl/opensslv.h>
   20850 	#include <openssl/crypto.h>
   20851 	#define DATA "conftest.ssllibver"
   20852 
   20853 int
   20854 main ()
   20855 {
   20856 
   20857 		FILE *fd;
   20858 		int rc;
   20859 
   20860 		fd = fopen(DATA,"w");
   20861 		if(fd == NULL)
   20862 			exit(1);
   20863 
   20864 		if ((rc = fprintf(fd ,"%08x (%s)\n", SSLeay(),
   20865 		    SSLeay_version(SSLEAY_VERSION))) <0)
   20866 			exit(1);
   20867 
   20868 		exit(0);
   20869 
   20870   ;
   20871   return 0;
   20872 }
   20873 _ACEOF
   20874 rm -f conftest$ac_exeext
   20875 if { (ac_try="$ac_link"
   20876 case "(($ac_try" in
   20877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20878   *) ac_try_echo=$ac_try;;
   20879 esac
   20880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20881   (eval "$ac_link") 2>&5
   20882   ac_status=$?
   20883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20884   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   20885   { (case "(($ac_try" in
   20886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20887   *) ac_try_echo=$ac_try;;
   20888 esac
   20889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20890   (eval "$ac_try") 2>&5
   20891   ac_status=$?
   20892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20893   (exit $ac_status); }; }; then
   20894 
   20895 			ssl_library_ver=`cat conftest.ssllibver`
   20896 			# Check version is supported.
   20897 			case "$ssl_library_ver" in
   20898 				0090[0-7]*|009080[0-5]*)
   20899 					{ { echo "$as_me:$LINENO: error: OpenSSL >= 0.9.8f required (have \"$ssl_library_ver\")" >&5
   20900 echo "$as_me: error: OpenSSL >= 0.9.8f required (have \"$ssl_library_ver\")" >&2;}
   20901    { (exit 1); exit 1; }; }
   20902 			                ;;
   20903 			        *) ;;
   20904 			esac
   20905 			{ echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
   20906 echo "${ECHO_T}$ssl_library_ver" >&6; }
   20907 
   20908 else
   20909   echo "$as_me: program exited with status $ac_status" >&5
   20910 echo "$as_me: failed program was:" >&5
   20911 sed 's/^/| /' conftest.$ac_ext >&5
   20912 
   20913 ( exit $ac_status )
   20914 
   20915 			{ echo "$as_me:$LINENO: result: not found" >&5
   20916 echo "${ECHO_T}not found" >&6; }
   20917 			{ { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
   20918 echo "$as_me: error: OpenSSL library not found." >&2;}
   20919    { (exit 1); exit 1; }; }
   20920 
   20921 fi
   20922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   20923 fi
   20924 
   20925 
   20926 
   20927 	# Sanity check OpenSSL headers
   20928 	{ echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
   20929 echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; }
   20930 	if test "$cross_compiling" = yes; then
   20931 
   20932 			{ echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
   20933 echo "$as_me: WARNING: cross compiling: not checking" >&2;}
   20934 
   20935 
   20936 else
   20937   cat >conftest.$ac_ext <<_ACEOF
   20938 /* confdefs.h.  */
   20939 _ACEOF
   20940 cat confdefs.h >>conftest.$ac_ext
   20941 cat >>conftest.$ac_ext <<_ACEOF
   20942 /* end confdefs.h.  */
   20943 
   20944 	#include <string.h>
   20945 	#include <openssl/opensslv.h>
   20946 
   20947 int
   20948 main ()
   20949 {
   20950 
   20951 		exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1);
   20952 
   20953   ;
   20954   return 0;
   20955 }
   20956 _ACEOF
   20957 rm -f conftest$ac_exeext
   20958 if { (ac_try="$ac_link"
   20959 case "(($ac_try" in
   20960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20961   *) ac_try_echo=$ac_try;;
   20962 esac
   20963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20964   (eval "$ac_link") 2>&5
   20965   ac_status=$?
   20966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20967   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   20968   { (case "(($ac_try" in
   20969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20970   *) ac_try_echo=$ac_try;;
   20971 esac
   20972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20973   (eval "$ac_try") 2>&5
   20974   ac_status=$?
   20975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20976   (exit $ac_status); }; }; then
   20977 
   20978 			{ echo "$as_me:$LINENO: result: yes" >&5
   20979 echo "${ECHO_T}yes" >&6; }
   20980 
   20981 else
   20982   echo "$as_me: program exited with status $ac_status" >&5
   20983 echo "$as_me: failed program was:" >&5
   20984 sed 's/^/| /' conftest.$ac_ext >&5
   20985 
   20986 ( exit $ac_status )
   20987 
   20988 			{ echo "$as_me:$LINENO: result: no" >&5
   20989 echo "${ECHO_T}no" >&6; }
   20990 			if test "x$openssl_check_nonfatal" = "x"; then
   20991 				{ { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your
   20992 	library. Check config.log for details.
   20993 	If you are sure your installation is consistent, you can disable the check
   20994 	by running \"./configure --without-openssl-header-check\".
   20995 	Also see contrib/findssl.sh for help identifying header/library mismatches.
   20996 	" >&5
   20997 echo "$as_me: error: Your OpenSSL headers do not match your
   20998 	library. Check config.log for details.
   20999 	If you are sure your installation is consistent, you can disable the check
   21000 	by running \"./configure --without-openssl-header-check\".
   21001 	Also see contrib/findssl.sh for help identifying header/library mismatches.
   21002 	" >&2;}
   21003    { (exit 1); exit 1; }; }
   21004 			else
   21005 				{ echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your
   21006 	library. Check config.log for details.
   21007 	Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
   21008 echo "$as_me: WARNING: Your OpenSSL headers do not match your
   21009 	library. Check config.log for details.
   21010 	Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
   21011 			fi
   21012 
   21013 fi
   21014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   21015 fi
   21016 
   21017 
   21018 
   21019 	{ echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5
   21020 echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; }
   21021 	cat >conftest.$ac_ext <<_ACEOF
   21022 /* confdefs.h.  */
   21023 _ACEOF
   21024 cat confdefs.h >>conftest.$ac_ext
   21025 cat >>conftest.$ac_ext <<_ACEOF
   21026 /* end confdefs.h.  */
   21027  #include <openssl/evp.h>
   21028 int
   21029 main ()
   21030 {
   21031  SSLeay_add_all_algorithms();
   21032   ;
   21033   return 0;
   21034 }
   21035 _ACEOF
   21036 rm -f conftest.$ac_objext conftest$ac_exeext
   21037 if { (ac_try="$ac_link"
   21038 case "(($ac_try" in
   21039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21040   *) ac_try_echo=$ac_try;;
   21041 esac
   21042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21043   (eval "$ac_link") 2>conftest.er1
   21044   ac_status=$?
   21045   grep -v '^ *+' conftest.er1 >conftest.err
   21046   rm -f conftest.er1
   21047   cat conftest.err >&5
   21048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21049   (exit $ac_status); } && {
   21050 	 test -z "$ac_c_werror_flag" ||
   21051 	 test ! -s conftest.err
   21052        } && test -s conftest$ac_exeext &&
   21053        $as_test_x conftest$ac_exeext; then
   21054 
   21055 			{ echo "$as_me:$LINENO: result: yes" >&5
   21056 echo "${ECHO_T}yes" >&6; }
   21057 
   21058 else
   21059   echo "$as_me: failed program was:" >&5
   21060 sed 's/^/| /' conftest.$ac_ext >&5
   21061 
   21062 
   21063 			{ echo "$as_me:$LINENO: result: no" >&5
   21064 echo "${ECHO_T}no" >&6; }
   21065 			saved_LIBS="$LIBS"
   21066 			LIBS="$LIBS -ldl"
   21067 			{ echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5
   21068 echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; }
   21069 			cat >conftest.$ac_ext <<_ACEOF
   21070 /* confdefs.h.  */
   21071 _ACEOF
   21072 cat confdefs.h >>conftest.$ac_ext
   21073 cat >>conftest.$ac_ext <<_ACEOF
   21074 /* end confdefs.h.  */
   21075  #include <openssl/evp.h>
   21076 int
   21077 main ()
   21078 {
   21079  SSLeay_add_all_algorithms();
   21080   ;
   21081   return 0;
   21082 }
   21083 _ACEOF
   21084 rm -f conftest.$ac_objext conftest$ac_exeext
   21085 if { (ac_try="$ac_link"
   21086 case "(($ac_try" in
   21087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21088   *) ac_try_echo=$ac_try;;
   21089 esac
   21090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21091   (eval "$ac_link") 2>conftest.er1
   21092   ac_status=$?
   21093   grep -v '^ *+' conftest.er1 >conftest.err
   21094   rm -f conftest.er1
   21095   cat conftest.err >&5
   21096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21097   (exit $ac_status); } && {
   21098 	 test -z "$ac_c_werror_flag" ||
   21099 	 test ! -s conftest.err
   21100        } && test -s conftest$ac_exeext &&
   21101        $as_test_x conftest$ac_exeext; then
   21102 
   21103 					{ echo "$as_me:$LINENO: result: yes" >&5
   21104 echo "${ECHO_T}yes" >&6; }
   21105 
   21106 else
   21107   echo "$as_me: failed program was:" >&5
   21108 sed 's/^/| /' conftest.$ac_ext >&5
   21109 
   21110 
   21111 					{ echo "$as_me:$LINENO: result: no" >&5
   21112 echo "${ECHO_T}no" >&6; }
   21113 					LIBS="$saved_LIBS"
   21114 
   21115 
   21116 fi
   21117 
   21118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   21119       conftest$ac_exeext conftest.$ac_ext
   21120 
   21121 
   21122 fi
   21123 
   21124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   21125       conftest$ac_exeext conftest.$ac_ext
   21126 
   21127 
   21128 
   21129 
   21130 
   21131 
   21132 
   21133 
   21134 
   21135 
   21136 
   21137 for ac_func in  \
   21138 		BN_is_prime_ex \
   21139 		DSA_generate_parameters_ex \
   21140 		EVP_DigestInit_ex \
   21141 		EVP_DigestFinal_ex \
   21142 		EVP_MD_CTX_init \
   21143 		EVP_MD_CTX_cleanup \
   21144 		EVP_MD_CTX_copy_ex \
   21145 		HMAC_CTX_init \
   21146 		RSA_generate_key_ex \
   21147 		RSA_get_default_method \
   21148 
   21149 do
   21150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   21151 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   21152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   21153 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   21154   echo $ECHO_N "(cached) $ECHO_C" >&6
   21155 else
   21156   cat >conftest.$ac_ext <<_ACEOF
   21157 /* confdefs.h.  */
   21158 _ACEOF
   21159 cat confdefs.h >>conftest.$ac_ext
   21160 cat >>conftest.$ac_ext <<_ACEOF
   21161 /* end confdefs.h.  */
   21162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   21163    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   21164 #define $ac_func innocuous_$ac_func
   21165 
   21166 /* System header to define __stub macros and hopefully few prototypes,
   21167     which can conflict with char $ac_func (); below.
   21168     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   21169     <limits.h> exists even on freestanding compilers.  */
   21170 
   21171 #ifdef __STDC__
   21172 # include <limits.h>
   21173 #else
   21174 # include <assert.h>
   21175 #endif
   21176 
   21177 #undef $ac_func
   21178 
   21179 /* Override any GCC internal prototype to avoid an error.
   21180    Use char because int might match the return type of a GCC
   21181    builtin and then its argument prototype would still apply.  */
   21182 #ifdef __cplusplus
   21183 extern "C"
   21184 #endif
   21185 char $ac_func ();
   21186 /* The GNU C library defines this for functions which it implements
   21187     to always fail with ENOSYS.  Some functions are actually named
   21188     something starting with __ and the normal name is an alias.  */
   21189 #if defined __stub_$ac_func || defined __stub___$ac_func
   21190 choke me
   21191 #endif
   21192 
   21193 int
   21194 main ()
   21195 {
   21196 return $ac_func ();
   21197   ;
   21198   return 0;
   21199 }
   21200 _ACEOF
   21201 rm -f conftest.$ac_objext conftest$ac_exeext
   21202 if { (ac_try="$ac_link"
   21203 case "(($ac_try" in
   21204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21205   *) ac_try_echo=$ac_try;;
   21206 esac
   21207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21208   (eval "$ac_link") 2>conftest.er1
   21209   ac_status=$?
   21210   grep -v '^ *+' conftest.er1 >conftest.err
   21211   rm -f conftest.er1
   21212   cat conftest.err >&5
   21213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21214   (exit $ac_status); } && {
   21215 	 test -z "$ac_c_werror_flag" ||
   21216 	 test ! -s conftest.err
   21217        } && test -s conftest$ac_exeext &&
   21218        $as_test_x conftest$ac_exeext; then
   21219   eval "$as_ac_var=yes"
   21220 else
   21221   echo "$as_me: failed program was:" >&5
   21222 sed 's/^/| /' conftest.$ac_ext >&5
   21223 
   21224 	eval "$as_ac_var=no"
   21225 fi
   21226 
   21227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   21228       conftest$ac_exeext conftest.$ac_ext
   21229 fi
   21230 ac_res=`eval echo '${'$as_ac_var'}'`
   21231 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   21232 echo "${ECHO_T}$ac_res" >&6; }
   21233 if test `eval echo '${'$as_ac_var'}'` = yes; then
   21234   cat >>confdefs.h <<_ACEOF
   21235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   21236 _ACEOF
   21237 
   21238 fi
   21239 done
   21240 
   21241 
   21242 	if test "x$openssl_engine" = "xyes" ; then
   21243 		{ echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5
   21244 echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; }
   21245 		cat >conftest.$ac_ext <<_ACEOF
   21246 /* confdefs.h.  */
   21247 _ACEOF
   21248 cat confdefs.h >>conftest.$ac_ext
   21249 cat >>conftest.$ac_ext <<_ACEOF
   21250 /* end confdefs.h.  */
   21251 
   21252 	#include <openssl/engine.h>
   21253 
   21254 int
   21255 main ()
   21256 {
   21257 
   21258 				ENGINE_load_builtin_engines();
   21259 				ENGINE_register_all_complete();
   21260 
   21261   ;
   21262   return 0;
   21263 }
   21264 _ACEOF
   21265 rm -f conftest.$ac_objext
   21266 if { (ac_try="$ac_compile"
   21267 case "(($ac_try" in
   21268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21269   *) ac_try_echo=$ac_try;;
   21270 esac
   21271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21272   (eval "$ac_compile") 2>conftest.er1
   21273   ac_status=$?
   21274   grep -v '^ *+' conftest.er1 >conftest.err
   21275   rm -f conftest.er1
   21276   cat conftest.err >&5
   21277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21278   (exit $ac_status); } && {
   21279 	 test -z "$ac_c_werror_flag" ||
   21280 	 test ! -s conftest.err
   21281        } && test -s conftest.$ac_objext; then
   21282    { echo "$as_me:$LINENO: result: yes" >&5
   21283 echo "${ECHO_T}yes" >&6; }
   21284 
   21285 cat >>confdefs.h <<\_ACEOF
   21286 #define USE_OPENSSL_ENGINE 1
   21287 _ACEOF
   21288 
   21289 
   21290 else
   21291   echo "$as_me: failed program was:" >&5
   21292 sed 's/^/| /' conftest.$ac_ext >&5
   21293 
   21294 	 { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5
   21295 echo "$as_me: error: OpenSSL ENGINE support not found" >&2;}
   21296    { (exit 1); exit 1; }; }
   21297 
   21298 fi
   21299 
   21300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   21301 	fi
   21302 
   21303 	# Check for OpenSSL without EVP_aes_{192,256}_cbc
   21304 	{ echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5
   21305 echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; }
   21306 	cat >conftest.$ac_ext <<_ACEOF
   21307 /* confdefs.h.  */
   21308 _ACEOF
   21309 cat confdefs.h >>conftest.$ac_ext
   21310 cat >>conftest.$ac_ext <<_ACEOF
   21311 /* end confdefs.h.  */
   21312 
   21313 	#include <string.h>
   21314 	#include <openssl/evp.h>
   21315 
   21316 int
   21317 main ()
   21318 {
   21319 
   21320 		exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);
   21321 
   21322   ;
   21323   return 0;
   21324 }
   21325 _ACEOF
   21326 rm -f conftest.$ac_objext conftest$ac_exeext
   21327 if { (ac_try="$ac_link"
   21328 case "(($ac_try" in
   21329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21330   *) ac_try_echo=$ac_try;;
   21331 esac
   21332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21333   (eval "$ac_link") 2>conftest.er1
   21334   ac_status=$?
   21335   grep -v '^ *+' conftest.er1 >conftest.err
   21336   rm -f conftest.er1
   21337   cat conftest.err >&5
   21338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21339   (exit $ac_status); } && {
   21340 	 test -z "$ac_c_werror_flag" ||
   21341 	 test ! -s conftest.err
   21342        } && test -s conftest$ac_exeext &&
   21343        $as_test_x conftest$ac_exeext; then
   21344 
   21345 			{ echo "$as_me:$LINENO: result: no" >&5
   21346 echo "${ECHO_T}no" >&6; }
   21347 
   21348 else
   21349   echo "$as_me: failed program was:" >&5
   21350 sed 's/^/| /' conftest.$ac_ext >&5
   21351 
   21352 
   21353 			{ echo "$as_me:$LINENO: result: yes" >&5
   21354 echo "${ECHO_T}yes" >&6; }
   21355 
   21356 cat >>confdefs.h <<\_ACEOF
   21357 #define OPENSSL_LOBOTOMISED_AES 1
   21358 _ACEOF
   21359 
   21360 
   21361 
   21362 fi
   21363 
   21364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   21365       conftest$ac_exeext conftest.$ac_ext
   21366 
   21367 	# Check for OpenSSL with EVP_aes_*ctr
   21368 	{ echo "$as_me:$LINENO: checking whether OpenSSL has AES CTR via EVP" >&5
   21369 echo $ECHO_N "checking whether OpenSSL has AES CTR via EVP... $ECHO_C" >&6; }
   21370 	cat >conftest.$ac_ext <<_ACEOF
   21371 /* confdefs.h.  */
   21372 _ACEOF
   21373 cat confdefs.h >>conftest.$ac_ext
   21374 cat >>conftest.$ac_ext <<_ACEOF
   21375 /* end confdefs.h.  */
   21376 
   21377 	#include <string.h>
   21378 	#include <openssl/evp.h>
   21379 
   21380 int
   21381 main ()
   21382 {
   21383 
   21384 		exit(EVP_aes_128_ctr() == NULL ||
   21385 		    EVP_aes_192_cbc() == NULL ||
   21386 		    EVP_aes_256_cbc() == NULL);
   21387 
   21388   ;
   21389   return 0;
   21390 }
   21391 _ACEOF
   21392 rm -f conftest.$ac_objext conftest$ac_exeext
   21393 if { (ac_try="$ac_link"
   21394 case "(($ac_try" in
   21395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21396   *) ac_try_echo=$ac_try;;
   21397 esac
   21398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21399   (eval "$ac_link") 2>conftest.er1
   21400   ac_status=$?
   21401   grep -v '^ *+' conftest.er1 >conftest.err
   21402   rm -f conftest.er1
   21403   cat conftest.err >&5
   21404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21405   (exit $ac_status); } && {
   21406 	 test -z "$ac_c_werror_flag" ||
   21407 	 test ! -s conftest.err
   21408        } && test -s conftest$ac_exeext &&
   21409        $as_test_x conftest$ac_exeext; then
   21410 
   21411 			{ echo "$as_me:$LINENO: result: yes" >&5
   21412 echo "${ECHO_T}yes" >&6; }
   21413 
   21414 cat >>confdefs.h <<\_ACEOF
   21415 #define OPENSSL_HAVE_EVPCTR 1
   21416 _ACEOF
   21417 
   21418 
   21419 else
   21420   echo "$as_me: failed program was:" >&5
   21421 sed 's/^/| /' conftest.$ac_ext >&5
   21422 
   21423 
   21424 			{ echo "$as_me:$LINENO: result: no" >&5
   21425 echo "${ECHO_T}no" >&6; }
   21426 
   21427 
   21428 fi
   21429 
   21430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   21431       conftest$ac_exeext conftest.$ac_ext
   21432 
   21433 	# Check for OpenSSL with EVP_aes_*gcm
   21434 	{ echo "$as_me:$LINENO: checking whether OpenSSL has AES GCM via EVP" >&5
   21435 echo $ECHO_N "checking whether OpenSSL has AES GCM via EVP... $ECHO_C" >&6; }
   21436 	cat >conftest.$ac_ext <<_ACEOF
   21437 /* confdefs.h.  */
   21438 _ACEOF
   21439 cat confdefs.h >>conftest.$ac_ext
   21440 cat >>conftest.$ac_ext <<_ACEOF
   21441 /* end confdefs.h.  */
   21442 
   21443 	#include <string.h>
   21444 	#include <openssl/evp.h>
   21445 
   21446 int
   21447 main ()
   21448 {
   21449 
   21450 		exit(EVP_aes_128_gcm() == NULL ||
   21451 		    EVP_aes_256_gcm() == NULL ||
   21452 		    EVP_CTRL_GCM_SET_IV_FIXED == 0 ||
   21453 		    EVP_CTRL_GCM_IV_GEN == 0 ||
   21454 		    EVP_CTRL_GCM_SET_TAG == 0 ||
   21455 		    EVP_CTRL_GCM_GET_TAG == 0 ||
   21456 		    EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0);
   21457 
   21458   ;
   21459   return 0;
   21460 }
   21461 _ACEOF
   21462 rm -f conftest.$ac_objext conftest$ac_exeext
   21463 if { (ac_try="$ac_link"
   21464 case "(($ac_try" in
   21465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21466   *) ac_try_echo=$ac_try;;
   21467 esac
   21468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21469   (eval "$ac_link") 2>conftest.er1
   21470   ac_status=$?
   21471   grep -v '^ *+' conftest.er1 >conftest.err
   21472   rm -f conftest.er1
   21473   cat conftest.err >&5
   21474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21475   (exit $ac_status); } && {
   21476 	 test -z "$ac_c_werror_flag" ||
   21477 	 test ! -s conftest.err
   21478        } && test -s conftest$ac_exeext &&
   21479        $as_test_x conftest$ac_exeext; then
   21480 
   21481 			{ echo "$as_me:$LINENO: result: yes" >&5
   21482 echo "${ECHO_T}yes" >&6; }
   21483 
   21484 cat >>confdefs.h <<\_ACEOF
   21485 #define OPENSSL_HAVE_EVPGCM 1
   21486 _ACEOF
   21487 
   21488 
   21489 else
   21490   echo "$as_me: failed program was:" >&5
   21491 sed 's/^/| /' conftest.$ac_ext >&5
   21492 
   21493 
   21494 			{ echo "$as_me:$LINENO: result: no" >&5
   21495 echo "${ECHO_T}no" >&6; }
   21496 			unsupported_algorithms="$unsupported_cipers \
   21497 			   aes128-gcm (at] openssh.com aes256-gcm (at] openssh.com"
   21498 
   21499 
   21500 fi
   21501 
   21502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   21503       conftest$ac_exeext conftest.$ac_ext
   21504 
   21505 	{ echo "$as_me:$LINENO: checking for library containing EVP_CIPHER_CTX_ctrl" >&5
   21506 echo $ECHO_N "checking for library containing EVP_CIPHER_CTX_ctrl... $ECHO_C" >&6; }
   21507 if test "${ac_cv_search_EVP_CIPHER_CTX_ctrl+set}" = set; then
   21508   echo $ECHO_N "(cached) $ECHO_C" >&6
   21509 else
   21510   ac_func_search_save_LIBS=$LIBS
   21511 cat >conftest.$ac_ext <<_ACEOF
   21512 /* confdefs.h.  */
   21513 _ACEOF
   21514 cat confdefs.h >>conftest.$ac_ext
   21515 cat >>conftest.$ac_ext <<_ACEOF
   21516 /* end confdefs.h.  */
   21517 
   21518 /* Override any GCC internal prototype to avoid an error.
   21519    Use char because int might match the return type of a GCC
   21520    builtin and then its argument prototype would still apply.  */
   21521 #ifdef __cplusplus
   21522 extern "C"
   21523 #endif
   21524 char EVP_CIPHER_CTX_ctrl ();
   21525 int
   21526 main ()
   21527 {
   21528 return EVP_CIPHER_CTX_ctrl ();
   21529   ;
   21530   return 0;
   21531 }
   21532 _ACEOF
   21533 for ac_lib in '' crypto; do
   21534   if test -z "$ac_lib"; then
   21535     ac_res="none required"
   21536   else
   21537     ac_res=-l$ac_lib
   21538     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   21539   fi
   21540   rm -f conftest.$ac_objext conftest$ac_exeext
   21541 if { (ac_try="$ac_link"
   21542 case "(($ac_try" in
   21543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21544   *) ac_try_echo=$ac_try;;
   21545 esac
   21546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21547   (eval "$ac_link") 2>conftest.er1
   21548   ac_status=$?
   21549   grep -v '^ *+' conftest.er1 >conftest.err
   21550   rm -f conftest.er1
   21551   cat conftest.err >&5
   21552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21553   (exit $ac_status); } && {
   21554 	 test -z "$ac_c_werror_flag" ||
   21555 	 test ! -s conftest.err
   21556        } && test -s conftest$ac_exeext &&
   21557        $as_test_x conftest$ac_exeext; then
   21558   ac_cv_search_EVP_CIPHER_CTX_ctrl=$ac_res
   21559 else
   21560   echo "$as_me: failed program was:" >&5
   21561 sed 's/^/| /' conftest.$ac_ext >&5
   21562 
   21563 
   21564 fi
   21565 
   21566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   21567       conftest$ac_exeext
   21568   if test "${ac_cv_search_EVP_CIPHER_CTX_ctrl+set}" = set; then
   21569   break
   21570 fi
   21571 done
   21572 if test "${ac_cv_search_EVP_CIPHER_CTX_ctrl+set}" = set; then
   21573   :
   21574 else
   21575   ac_cv_search_EVP_CIPHER_CTX_ctrl=no
   21576 fi
   21577 rm conftest.$ac_ext
   21578 LIBS=$ac_func_search_save_LIBS
   21579 fi
   21580 { echo "$as_me:$LINENO: result: $ac_cv_search_EVP_CIPHER_CTX_ctrl" >&5
   21581 echo "${ECHO_T}$ac_cv_search_EVP_CIPHER_CTX_ctrl" >&6; }
   21582 ac_res=$ac_cv_search_EVP_CIPHER_CTX_ctrl
   21583 if test "$ac_res" != no; then
   21584   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   21585 
   21586 cat >>confdefs.h <<\_ACEOF
   21587 #define HAVE_EVP_CIPHER_CTX_CTRL 1
   21588 _ACEOF
   21589 
   21590 fi
   21591 
   21592 
   21593 	{ echo "$as_me:$LINENO: checking if EVP_DigestUpdate returns an int" >&5
   21594 echo $ECHO_N "checking if EVP_DigestUpdate returns an int... $ECHO_C" >&6; }
   21595 	cat >conftest.$ac_ext <<_ACEOF
   21596 /* confdefs.h.  */
   21597 _ACEOF
   21598 cat confdefs.h >>conftest.$ac_ext
   21599 cat >>conftest.$ac_ext <<_ACEOF
   21600 /* end confdefs.h.  */
   21601 
   21602 	#include <string.h>
   21603 	#include <openssl/evp.h>
   21604 
   21605 int
   21606 main ()
   21607 {
   21608 
   21609 		if(EVP_DigestUpdate(NULL, NULL,0))
   21610 			exit(0);
   21611 
   21612   ;
   21613   return 0;
   21614 }
   21615 _ACEOF
   21616 rm -f conftest.$ac_objext conftest$ac_exeext
   21617 if { (ac_try="$ac_link"
   21618 case "(($ac_try" in
   21619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21620   *) ac_try_echo=$ac_try;;
   21621 esac
   21622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21623   (eval "$ac_link") 2>conftest.er1
   21624   ac_status=$?
   21625   grep -v '^ *+' conftest.er1 >conftest.err
   21626   rm -f conftest.er1
   21627   cat conftest.err >&5
   21628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21629   (exit $ac_status); } && {
   21630 	 test -z "$ac_c_werror_flag" ||
   21631 	 test ! -s conftest.err
   21632        } && test -s conftest$ac_exeext &&
   21633        $as_test_x conftest$ac_exeext; then
   21634 
   21635 			{ echo "$as_me:$LINENO: result: yes" >&5
   21636 echo "${ECHO_T}yes" >&6; }
   21637 
   21638 else
   21639   echo "$as_me: failed program was:" >&5
   21640 sed 's/^/| /' conftest.$ac_ext >&5
   21641 
   21642 
   21643 			{ echo "$as_me:$LINENO: result: no" >&5
   21644 echo "${ECHO_T}no" >&6; }
   21645 
   21646 cat >>confdefs.h <<\_ACEOF
   21647 #define OPENSSL_EVP_DIGESTUPDATE_VOID 1
   21648 _ACEOF
   21649 
   21650 
   21651 
   21652 fi
   21653 
   21654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   21655       conftest$ac_exeext conftest.$ac_ext
   21656 
   21657 	# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
   21658 	# because the system crypt() is more featureful.
   21659 	if test "x$check_for_libcrypt_before" = "x1"; then
   21660 
   21661 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
   21662 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
   21663 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
   21664   echo $ECHO_N "(cached) $ECHO_C" >&6
   21665 else
   21666   ac_check_lib_save_LIBS=$LIBS
   21667 LIBS="-lcrypt  $LIBS"
   21668 cat >conftest.$ac_ext <<_ACEOF
   21669 /* confdefs.h.  */
   21670 _ACEOF
   21671 cat confdefs.h >>conftest.$ac_ext
   21672 cat >>conftest.$ac_ext <<_ACEOF
   21673 /* end confdefs.h.  */
   21674 
   21675 /* Override any GCC internal prototype to avoid an error.
   21676    Use char because int might match the return type of a GCC
   21677    builtin and then its argument prototype would still apply.  */
   21678 #ifdef __cplusplus
   21679 extern "C"
   21680 #endif
   21681 char crypt ();
   21682 int
   21683 main ()
   21684 {
   21685 return crypt ();
   21686   ;
   21687   return 0;
   21688 }
   21689 _ACEOF
   21690 rm -f conftest.$ac_objext conftest$ac_exeext
   21691 if { (ac_try="$ac_link"
   21692 case "(($ac_try" in
   21693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21694   *) ac_try_echo=$ac_try;;
   21695 esac
   21696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21697   (eval "$ac_link") 2>conftest.er1
   21698   ac_status=$?
   21699   grep -v '^ *+' conftest.er1 >conftest.err
   21700   rm -f conftest.er1
   21701   cat conftest.err >&5
   21702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21703   (exit $ac_status); } && {
   21704 	 test -z "$ac_c_werror_flag" ||
   21705 	 test ! -s conftest.err
   21706        } && test -s conftest$ac_exeext &&
   21707        $as_test_x conftest$ac_exeext; then
   21708   ac_cv_lib_crypt_crypt=yes
   21709 else
   21710   echo "$as_me: failed program was:" >&5
   21711 sed 's/^/| /' conftest.$ac_ext >&5
   21712 
   21713 	ac_cv_lib_crypt_crypt=no
   21714 fi
   21715 
   21716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   21717       conftest$ac_exeext conftest.$ac_ext
   21718 LIBS=$ac_check_lib_save_LIBS
   21719 fi
   21720 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
   21721 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
   21722 if test $ac_cv_lib_crypt_crypt = yes; then
   21723   cat >>confdefs.h <<_ACEOF
   21724 #define HAVE_LIBCRYPT 1
   21725 _ACEOF
   21726 
   21727   LIBS="-lcrypt $LIBS"
   21728 
   21729 fi
   21730 
   21731 	fi
   21732 
   21733 	# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
   21734 	# version in OpenSSL.
   21735 	if test "x$check_for_libcrypt_later" = "x1"; then
   21736 		{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
   21737 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
   21738 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
   21739   echo $ECHO_N "(cached) $ECHO_C" >&6
   21740 else
   21741   ac_check_lib_save_LIBS=$LIBS
   21742 LIBS="-lcrypt  $LIBS"
   21743 cat >conftest.$ac_ext <<_ACEOF
   21744 /* confdefs.h.  */
   21745 _ACEOF
   21746 cat confdefs.h >>conftest.$ac_ext
   21747 cat >>conftest.$ac_ext <<_ACEOF
   21748 /* end confdefs.h.  */
   21749 
   21750 /* Override any GCC internal prototype to avoid an error.
   21751    Use char because int might match the return type of a GCC
   21752    builtin and then its argument prototype would still apply.  */
   21753 #ifdef __cplusplus
   21754 extern "C"
   21755 #endif
   21756 char crypt ();
   21757 int
   21758 main ()
   21759 {
   21760 return crypt ();
   21761   ;
   21762   return 0;
   21763 }
   21764 _ACEOF
   21765 rm -f conftest.$ac_objext conftest$ac_exeext
   21766 if { (ac_try="$ac_link"
   21767 case "(($ac_try" in
   21768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21769   *) ac_try_echo=$ac_try;;
   21770 esac
   21771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21772   (eval "$ac_link") 2>conftest.er1
   21773   ac_status=$?
   21774   grep -v '^ *+' conftest.er1 >conftest.err
   21775   rm -f conftest.er1
   21776   cat conftest.err >&5
   21777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21778   (exit $ac_status); } && {
   21779 	 test -z "$ac_c_werror_flag" ||
   21780 	 test ! -s conftest.err
   21781        } && test -s conftest$ac_exeext &&
   21782        $as_test_x conftest$ac_exeext; then
   21783   ac_cv_lib_crypt_crypt=yes
   21784 else
   21785   echo "$as_me: failed program was:" >&5
   21786 sed 's/^/| /' conftest.$ac_ext >&5
   21787 
   21788 	ac_cv_lib_crypt_crypt=no
   21789 fi
   21790 
   21791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   21792       conftest$ac_exeext conftest.$ac_ext
   21793 LIBS=$ac_check_lib_save_LIBS
   21794 fi
   21795 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
   21796 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
   21797 if test $ac_cv_lib_crypt_crypt = yes; then
   21798   LIBS="$LIBS -lcrypt"
   21799 fi
   21800 
   21801 	fi
   21802 
   21803 
   21804 for ac_func in crypt DES_crypt
   21805 do
   21806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   21807 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   21808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   21809 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   21810   echo $ECHO_N "(cached) $ECHO_C" >&6
   21811 else
   21812   cat >conftest.$ac_ext <<_ACEOF
   21813 /* confdefs.h.  */
   21814 _ACEOF
   21815 cat confdefs.h >>conftest.$ac_ext
   21816 cat >>conftest.$ac_ext <<_ACEOF
   21817 /* end confdefs.h.  */
   21818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   21819    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   21820 #define $ac_func innocuous_$ac_func
   21821 
   21822 /* System header to define __stub macros and hopefully few prototypes,
   21823     which can conflict with char $ac_func (); below.
   21824     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   21825     <limits.h> exists even on freestanding compilers.  */
   21826 
   21827 #ifdef __STDC__
   21828 # include <limits.h>
   21829 #else
   21830 # include <assert.h>
   21831 #endif
   21832 
   21833 #undef $ac_func
   21834 
   21835 /* Override any GCC internal prototype to avoid an error.
   21836    Use char because int might match the return type of a GCC
   21837    builtin and then its argument prototype would still apply.  */
   21838 #ifdef __cplusplus
   21839 extern "C"
   21840 #endif
   21841 char $ac_func ();
   21842 /* The GNU C library defines this for functions which it implements
   21843     to always fail with ENOSYS.  Some functions are actually named
   21844     something starting with __ and the normal name is an alias.  */
   21845 #if defined __stub_$ac_func || defined __stub___$ac_func
   21846 choke me
   21847 #endif
   21848 
   21849 int
   21850 main ()
   21851 {
   21852 return $ac_func ();
   21853   ;
   21854   return 0;
   21855 }
   21856 _ACEOF
   21857 rm -f conftest.$ac_objext conftest$ac_exeext
   21858 if { (ac_try="$ac_link"
   21859 case "(($ac_try" in
   21860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21861   *) ac_try_echo=$ac_try;;
   21862 esac
   21863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21864   (eval "$ac_link") 2>conftest.er1
   21865   ac_status=$?
   21866   grep -v '^ *+' conftest.er1 >conftest.err
   21867   rm -f conftest.er1
   21868   cat conftest.err >&5
   21869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21870   (exit $ac_status); } && {
   21871 	 test -z "$ac_c_werror_flag" ||
   21872 	 test ! -s conftest.err
   21873        } && test -s conftest$ac_exeext &&
   21874        $as_test_x conftest$ac_exeext; then
   21875   eval "$as_ac_var=yes"
   21876 else
   21877   echo "$as_me: failed program was:" >&5
   21878 sed 's/^/| /' conftest.$ac_ext >&5
   21879 
   21880 	eval "$as_ac_var=no"
   21881 fi
   21882 
   21883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   21884       conftest$ac_exeext conftest.$ac_ext
   21885 fi
   21886 ac_res=`eval echo '${'$as_ac_var'}'`
   21887 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   21888 echo "${ECHO_T}$ac_res" >&6; }
   21889 if test `eval echo '${'$as_ac_var'}'` = yes; then
   21890   cat >>confdefs.h <<_ACEOF
   21891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   21892 _ACEOF
   21893 
   21894 fi
   21895 done
   21896 
   21897 
   21898 	# Search for SHA256 support in libc and/or OpenSSL
   21899 
   21900 
   21901 for ac_func in SHA256_Update EVP_sha256
   21902 do
   21903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   21904 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   21905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   21906 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   21907   echo $ECHO_N "(cached) $ECHO_C" >&6
   21908 else
   21909   cat >conftest.$ac_ext <<_ACEOF
   21910 /* confdefs.h.  */
   21911 _ACEOF
   21912 cat confdefs.h >>conftest.$ac_ext
   21913 cat >>conftest.$ac_ext <<_ACEOF
   21914 /* end confdefs.h.  */
   21915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   21916    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   21917 #define $ac_func innocuous_$ac_func
   21918 
   21919 /* System header to define __stub macros and hopefully few prototypes,
   21920     which can conflict with char $ac_func (); below.
   21921     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   21922     <limits.h> exists even on freestanding compilers.  */
   21923 
   21924 #ifdef __STDC__
   21925 # include <limits.h>
   21926 #else
   21927 # include <assert.h>
   21928 #endif
   21929 
   21930 #undef $ac_func
   21931 
   21932 /* Override any GCC internal prototype to avoid an error.
   21933    Use char because int might match the return type of a GCC
   21934    builtin and then its argument prototype would still apply.  */
   21935 #ifdef __cplusplus
   21936 extern "C"
   21937 #endif
   21938 char $ac_func ();
   21939 /* The GNU C library defines this for functions which it implements
   21940     to always fail with ENOSYS.  Some functions are actually named
   21941     something starting with __ and the normal name is an alias.  */
   21942 #if defined __stub_$ac_func || defined __stub___$ac_func
   21943 choke me
   21944 #endif
   21945 
   21946 int
   21947 main ()
   21948 {
   21949 return $ac_func ();
   21950   ;
   21951   return 0;
   21952 }
   21953 _ACEOF
   21954 rm -f conftest.$ac_objext conftest$ac_exeext
   21955 if { (ac_try="$ac_link"
   21956 case "(($ac_try" in
   21957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21958   *) ac_try_echo=$ac_try;;
   21959 esac
   21960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21961   (eval "$ac_link") 2>conftest.er1
   21962   ac_status=$?
   21963   grep -v '^ *+' conftest.er1 >conftest.err
   21964   rm -f conftest.er1
   21965   cat conftest.err >&5
   21966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21967   (exit $ac_status); } && {
   21968 	 test -z "$ac_c_werror_flag" ||
   21969 	 test ! -s conftest.err
   21970        } && test -s conftest$ac_exeext &&
   21971        $as_test_x conftest$ac_exeext; then
   21972   eval "$as_ac_var=yes"
   21973 else
   21974   echo "$as_me: failed program was:" >&5
   21975 sed 's/^/| /' conftest.$ac_ext >&5
   21976 
   21977 	eval "$as_ac_var=no"
   21978 fi
   21979 
   21980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   21981       conftest$ac_exeext conftest.$ac_ext
   21982 fi
   21983 ac_res=`eval echo '${'$as_ac_var'}'`
   21984 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   21985 echo "${ECHO_T}$ac_res" >&6; }
   21986 if test `eval echo '${'$as_ac_var'}'` = yes; then
   21987   cat >>confdefs.h <<_ACEOF
   21988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   21989 _ACEOF
   21990 
   21991 else
   21992   unsupported_algorithms="$unsupported_algorithms \
   21993 		hmac-sha2-256 hmac-sha2-512 \
   21994 		diffie-hellman-group-exchange-sha256 \
   21995 		hmac-sha2-256-etm (at] openssh.com hmac-sha2-512-etm (at] openssh.com"
   21996 
   21997 
   21998 fi
   21999 done
   22000 
   22001 	# Search for RIPE-MD support in OpenSSL
   22002 
   22003 for ac_func in EVP_ripemd160
   22004 do
   22005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   22006 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   22007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   22008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   22009   echo $ECHO_N "(cached) $ECHO_C" >&6
   22010 else
   22011   cat >conftest.$ac_ext <<_ACEOF
   22012 /* confdefs.h.  */
   22013 _ACEOF
   22014 cat confdefs.h >>conftest.$ac_ext
   22015 cat >>conftest.$ac_ext <<_ACEOF
   22016 /* end confdefs.h.  */
   22017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   22018    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   22019 #define $ac_func innocuous_$ac_func
   22020 
   22021 /* System header to define __stub macros and hopefully few prototypes,
   22022     which can conflict with char $ac_func (); below.
   22023     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   22024     <limits.h> exists even on freestanding compilers.  */
   22025 
   22026 #ifdef __STDC__
   22027 # include <limits.h>
   22028 #else
   22029 # include <assert.h>
   22030 #endif
   22031 
   22032 #undef $ac_func
   22033 
   22034 /* Override any GCC internal prototype to avoid an error.
   22035    Use char because int might match the return type of a GCC
   22036    builtin and then its argument prototype would still apply.  */
   22037 #ifdef __cplusplus
   22038 extern "C"
   22039 #endif
   22040 char $ac_func ();
   22041 /* The GNU C library defines this for functions which it implements
   22042     to always fail with ENOSYS.  Some functions are actually named
   22043     something starting with __ and the normal name is an alias.  */
   22044 #if defined __stub_$ac_func || defined __stub___$ac_func
   22045 choke me
   22046 #endif
   22047 
   22048 int
   22049 main ()
   22050 {
   22051 return $ac_func ();
   22052   ;
   22053   return 0;
   22054 }
   22055 _ACEOF
   22056 rm -f conftest.$ac_objext conftest$ac_exeext
   22057 if { (ac_try="$ac_link"
   22058 case "(($ac_try" in
   22059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22060   *) ac_try_echo=$ac_try;;
   22061 esac
   22062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22063   (eval "$ac_link") 2>conftest.er1
   22064   ac_status=$?
   22065   grep -v '^ *+' conftest.er1 >conftest.err
   22066   rm -f conftest.er1
   22067   cat conftest.err >&5
   22068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22069   (exit $ac_status); } && {
   22070 	 test -z "$ac_c_werror_flag" ||
   22071 	 test ! -s conftest.err
   22072        } && test -s conftest$ac_exeext &&
   22073        $as_test_x conftest$ac_exeext; then
   22074   eval "$as_ac_var=yes"
   22075 else
   22076   echo "$as_me: failed program was:" >&5
   22077 sed 's/^/| /' conftest.$ac_ext >&5
   22078 
   22079 	eval "$as_ac_var=no"
   22080 fi
   22081 
   22082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22083       conftest$ac_exeext conftest.$ac_ext
   22084 fi
   22085 ac_res=`eval echo '${'$as_ac_var'}'`
   22086 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   22087 echo "${ECHO_T}$ac_res" >&6; }
   22088 if test `eval echo '${'$as_ac_var'}'` = yes; then
   22089   cat >>confdefs.h <<_ACEOF
   22090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   22091 _ACEOF
   22092 
   22093 else
   22094   unsupported_algorithms="$unsupported_algorithms \
   22095 		hmac-ripemd160
   22096 		hmac-ripemd160 (at] openssh.com
   22097 		hmac-ripemd160-etm (at] openssh.com"
   22098 
   22099 
   22100 fi
   22101 done
   22102 
   22103 
   22104 	# Check complete ECC support in OpenSSL
   22105 	{ echo "$as_me:$LINENO: checking whether OpenSSL has NID_X9_62_prime256v1" >&5
   22106 echo $ECHO_N "checking whether OpenSSL has NID_X9_62_prime256v1... $ECHO_C" >&6; }
   22107 	cat >conftest.$ac_ext <<_ACEOF
   22108 /* confdefs.h.  */
   22109 _ACEOF
   22110 cat confdefs.h >>conftest.$ac_ext
   22111 cat >>conftest.$ac_ext <<_ACEOF
   22112 /* end confdefs.h.  */
   22113 
   22114 	#include <openssl/ec.h>
   22115 	#include <openssl/ecdh.h>
   22116 	#include <openssl/ecdsa.h>
   22117 	#include <openssl/evp.h>
   22118 	#include <openssl/objects.h>
   22119 	#include <openssl/opensslv.h>
   22120 	#if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
   22121 	# error "OpenSSL < 0.9.8g has unreliable ECC code"
   22122 	#endif
   22123 
   22124 int
   22125 main ()
   22126 {
   22127 
   22128 		EC_KEY *e = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
   22129 		const EVP_MD *m = EVP_sha256(); /* We need this too */
   22130 
   22131   ;
   22132   return 0;
   22133 }
   22134 _ACEOF
   22135 rm -f conftest.$ac_objext conftest$ac_exeext
   22136 if { (ac_try="$ac_link"
   22137 case "(($ac_try" in
   22138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22139   *) ac_try_echo=$ac_try;;
   22140 esac
   22141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22142   (eval "$ac_link") 2>conftest.er1
   22143   ac_status=$?
   22144   grep -v '^ *+' conftest.er1 >conftest.err
   22145   rm -f conftest.er1
   22146   cat conftest.err >&5
   22147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22148   (exit $ac_status); } && {
   22149 	 test -z "$ac_c_werror_flag" ||
   22150 	 test ! -s conftest.err
   22151        } && test -s conftest$ac_exeext &&
   22152        $as_test_x conftest$ac_exeext; then
   22153    { echo "$as_me:$LINENO: result: yes" >&5
   22154 echo "${ECHO_T}yes" >&6; }
   22155 		  enable_nistp256=1
   22156 else
   22157   echo "$as_me: failed program was:" >&5
   22158 sed 's/^/| /' conftest.$ac_ext >&5
   22159 
   22160 	 { echo "$as_me:$LINENO: result: no" >&5
   22161 echo "${ECHO_T}no" >&6; }
   22162 
   22163 fi
   22164 
   22165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22166       conftest$ac_exeext conftest.$ac_ext
   22167 
   22168 	{ echo "$as_me:$LINENO: checking whether OpenSSL has NID_secp384r1" >&5
   22169 echo $ECHO_N "checking whether OpenSSL has NID_secp384r1... $ECHO_C" >&6; }
   22170 	cat >conftest.$ac_ext <<_ACEOF
   22171 /* confdefs.h.  */
   22172 _ACEOF
   22173 cat confdefs.h >>conftest.$ac_ext
   22174 cat >>conftest.$ac_ext <<_ACEOF
   22175 /* end confdefs.h.  */
   22176 
   22177 	#include <openssl/ec.h>
   22178 	#include <openssl/ecdh.h>
   22179 	#include <openssl/ecdsa.h>
   22180 	#include <openssl/evp.h>
   22181 	#include <openssl/objects.h>
   22182 	#include <openssl/opensslv.h>
   22183 	#if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
   22184 	# error "OpenSSL < 0.9.8g has unreliable ECC code"
   22185 	#endif
   22186 
   22187 int
   22188 main ()
   22189 {
   22190 
   22191 		EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp384r1);
   22192 		const EVP_MD *m = EVP_sha384(); /* We need this too */
   22193 
   22194   ;
   22195   return 0;
   22196 }
   22197 _ACEOF
   22198 rm -f conftest.$ac_objext conftest$ac_exeext
   22199 if { (ac_try="$ac_link"
   22200 case "(($ac_try" in
   22201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22202   *) ac_try_echo=$ac_try;;
   22203 esac
   22204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22205   (eval "$ac_link") 2>conftest.er1
   22206   ac_status=$?
   22207   grep -v '^ *+' conftest.er1 >conftest.err
   22208   rm -f conftest.er1
   22209   cat conftest.err >&5
   22210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22211   (exit $ac_status); } && {
   22212 	 test -z "$ac_c_werror_flag" ||
   22213 	 test ! -s conftest.err
   22214        } && test -s conftest$ac_exeext &&
   22215        $as_test_x conftest$ac_exeext; then
   22216    { echo "$as_me:$LINENO: result: yes" >&5
   22217 echo "${ECHO_T}yes" >&6; }
   22218 		  enable_nistp384=1
   22219 else
   22220   echo "$as_me: failed program was:" >&5
   22221 sed 's/^/| /' conftest.$ac_ext >&5
   22222 
   22223 	 { echo "$as_me:$LINENO: result: no" >&5
   22224 echo "${ECHO_T}no" >&6; }
   22225 
   22226 fi
   22227 
   22228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22229       conftest$ac_exeext conftest.$ac_ext
   22230 
   22231 	{ echo "$as_me:$LINENO: checking whether OpenSSL has NID_secp521r1" >&5
   22232 echo $ECHO_N "checking whether OpenSSL has NID_secp521r1... $ECHO_C" >&6; }
   22233 	cat >conftest.$ac_ext <<_ACEOF
   22234 /* confdefs.h.  */
   22235 _ACEOF
   22236 cat confdefs.h >>conftest.$ac_ext
   22237 cat >>conftest.$ac_ext <<_ACEOF
   22238 /* end confdefs.h.  */
   22239 
   22240 	#include <openssl/ec.h>
   22241 	#include <openssl/ecdh.h>
   22242 	#include <openssl/ecdsa.h>
   22243 	#include <openssl/evp.h>
   22244 	#include <openssl/objects.h>
   22245 	#include <openssl/opensslv.h>
   22246 	#if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
   22247 	# error "OpenSSL < 0.9.8g has unreliable ECC code"
   22248 	#endif
   22249 
   22250 int
   22251 main ()
   22252 {
   22253 
   22254 		EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
   22255 		const EVP_MD *m = EVP_sha512(); /* We need this too */
   22256 
   22257   ;
   22258   return 0;
   22259 }
   22260 _ACEOF
   22261 rm -f conftest.$ac_objext conftest$ac_exeext
   22262 if { (ac_try="$ac_link"
   22263 case "(($ac_try" in
   22264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22265   *) ac_try_echo=$ac_try;;
   22266 esac
   22267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22268   (eval "$ac_link") 2>conftest.er1
   22269   ac_status=$?
   22270   grep -v '^ *+' conftest.er1 >conftest.err
   22271   rm -f conftest.er1
   22272   cat conftest.err >&5
   22273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22274   (exit $ac_status); } && {
   22275 	 test -z "$ac_c_werror_flag" ||
   22276 	 test ! -s conftest.err
   22277        } && test -s conftest$ac_exeext &&
   22278        $as_test_x conftest$ac_exeext; then
   22279    { echo "$as_me:$LINENO: result: yes" >&5
   22280 echo "${ECHO_T}yes" >&6; }
   22281 		  { echo "$as_me:$LINENO: checking if OpenSSL's NID_secp521r1 is functional" >&5
   22282 echo $ECHO_N "checking if OpenSSL's NID_secp521r1 is functional... $ECHO_C" >&6; }
   22283 		  if test "$cross_compiling" = yes; then
   22284    { echo "$as_me:$LINENO: WARNING: cross-compiling: assuming yes" >&5
   22285 echo "$as_me: WARNING: cross-compiling: assuming yes" >&2;}
   22286 			  enable_nistp521=1
   22287 
   22288 else
   22289   cat >conftest.$ac_ext <<_ACEOF
   22290 /* confdefs.h.  */
   22291 _ACEOF
   22292 cat confdefs.h >>conftest.$ac_ext
   22293 cat >>conftest.$ac_ext <<_ACEOF
   22294 /* end confdefs.h.  */
   22295 
   22296 	#include <openssl/ec.h>
   22297 	#include <openssl/ecdh.h>
   22298 	#include <openssl/ecdsa.h>
   22299 	#include <openssl/evp.h>
   22300 	#include <openssl/objects.h>
   22301 	#include <openssl/opensslv.h>
   22302 
   22303 int
   22304 main ()
   22305 {
   22306 
   22307 			EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
   22308 			const EVP_MD *m = EVP_sha512(); /* We need this too */
   22309 			exit(e == NULL || m == NULL);
   22310 
   22311   ;
   22312   return 0;
   22313 }
   22314 _ACEOF
   22315 rm -f conftest$ac_exeext
   22316 if { (ac_try="$ac_link"
   22317 case "(($ac_try" in
   22318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22319   *) ac_try_echo=$ac_try;;
   22320 esac
   22321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22322   (eval "$ac_link") 2>&5
   22323   ac_status=$?
   22324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22325   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   22326   { (case "(($ac_try" in
   22327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22328   *) ac_try_echo=$ac_try;;
   22329 esac
   22330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22331   (eval "$ac_try") 2>&5
   22332   ac_status=$?
   22333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22334   (exit $ac_status); }; }; then
   22335    { echo "$as_me:$LINENO: result: yes" >&5
   22336 echo "${ECHO_T}yes" >&6; }
   22337 			  enable_nistp521=1
   22338 else
   22339   echo "$as_me: program exited with status $ac_status" >&5
   22340 echo "$as_me: failed program was:" >&5
   22341 sed 's/^/| /' conftest.$ac_ext >&5
   22342 
   22343 ( exit $ac_status )
   22344  { echo "$as_me:$LINENO: result: no" >&5
   22345 echo "${ECHO_T}no" >&6; }
   22346 fi
   22347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   22348 fi
   22349 
   22350 
   22351 else
   22352   echo "$as_me: failed program was:" >&5
   22353 sed 's/^/| /' conftest.$ac_ext >&5
   22354 
   22355 	{ echo "$as_me:$LINENO: result: no" >&5
   22356 echo "${ECHO_T}no" >&6; }
   22357 
   22358 fi
   22359 
   22360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22361       conftest$ac_exeext conftest.$ac_ext
   22362 
   22363 	COMMENT_OUT_ECC="#no ecc#"
   22364 	TEST_SSH_ECC=no
   22365 
   22366 	if test x$enable_nistp256 = x1 || test x$enable_nistp384 = x1 || \
   22367 	    test x$enable_nistp521 = x1; then
   22368 
   22369 cat >>confdefs.h <<\_ACEOF
   22370 #define OPENSSL_HAS_ECC 1
   22371 _ACEOF
   22372 
   22373 	fi
   22374 	if test x$enable_nistp256 = x1; then
   22375 
   22376 cat >>confdefs.h <<\_ACEOF
   22377 #define OPENSSL_HAS_NISTP256 1
   22378 _ACEOF
   22379 
   22380 		TEST_SSH_ECC=yes
   22381 		COMMENT_OUT_ECC=""
   22382 	else
   22383 		unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp256 \
   22384 		    ecdh-sha2-nistp256 ecdsa-sha2-nistp256-cert-v01 (at] openssh.com"
   22385 	fi
   22386 	if test x$enable_nistp384 = x1; then
   22387 
   22388 cat >>confdefs.h <<\_ACEOF
   22389 #define OPENSSL_HAS_NISTP384 1
   22390 _ACEOF
   22391 
   22392 		TEST_SSH_ECC=yes
   22393 		COMMENT_OUT_ECC=""
   22394 	else
   22395 		unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp384 \
   22396 		    ecdh-sha2-nistp384 ecdsa-sha2-nistp384-cert-v01 (at] openssh.com"
   22397 	fi
   22398 	if test x$enable_nistp521 = x1; then
   22399 
   22400 cat >>confdefs.h <<\_ACEOF
   22401 #define OPENSSL_HAS_NISTP521 1
   22402 _ACEOF
   22403 
   22404 		TEST_SSH_ECC=yes
   22405 		COMMENT_OUT_ECC=""
   22406 	else
   22407 		unsupported_algorithms="$unsupported_algorithms ecdh-sha2-nistp521 \
   22408 		    ecdsa-sha2-nistp521 ecdsa-sha2-nistp521-cert-v01 (at] openssh.com"
   22409 	fi
   22410 
   22411 
   22412 
   22413 else
   22414 	{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
   22415 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
   22416 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
   22417   echo $ECHO_N "(cached) $ECHO_C" >&6
   22418 else
   22419   ac_check_lib_save_LIBS=$LIBS
   22420 LIBS="-lcrypt  $LIBS"
   22421 cat >conftest.$ac_ext <<_ACEOF
   22422 /* confdefs.h.  */
   22423 _ACEOF
   22424 cat confdefs.h >>conftest.$ac_ext
   22425 cat >>conftest.$ac_ext <<_ACEOF
   22426 /* end confdefs.h.  */
   22427 
   22428 /* Override any GCC internal prototype to avoid an error.
   22429    Use char because int might match the return type of a GCC
   22430    builtin and then its argument prototype would still apply.  */
   22431 #ifdef __cplusplus
   22432 extern "C"
   22433 #endif
   22434 char crypt ();
   22435 int
   22436 main ()
   22437 {
   22438 return crypt ();
   22439   ;
   22440   return 0;
   22441 }
   22442 _ACEOF
   22443 rm -f conftest.$ac_objext conftest$ac_exeext
   22444 if { (ac_try="$ac_link"
   22445 case "(($ac_try" in
   22446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22447   *) ac_try_echo=$ac_try;;
   22448 esac
   22449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22450   (eval "$ac_link") 2>conftest.er1
   22451   ac_status=$?
   22452   grep -v '^ *+' conftest.er1 >conftest.err
   22453   rm -f conftest.er1
   22454   cat conftest.err >&5
   22455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22456   (exit $ac_status); } && {
   22457 	 test -z "$ac_c_werror_flag" ||
   22458 	 test ! -s conftest.err
   22459        } && test -s conftest$ac_exeext &&
   22460        $as_test_x conftest$ac_exeext; then
   22461   ac_cv_lib_crypt_crypt=yes
   22462 else
   22463   echo "$as_me: failed program was:" >&5
   22464 sed 's/^/| /' conftest.$ac_ext >&5
   22465 
   22466 	ac_cv_lib_crypt_crypt=no
   22467 fi
   22468 
   22469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22470       conftest$ac_exeext conftest.$ac_ext
   22471 LIBS=$ac_check_lib_save_LIBS
   22472 fi
   22473 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
   22474 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
   22475 if test $ac_cv_lib_crypt_crypt = yes; then
   22476   LIBS="$LIBS -lcrypt"
   22477 fi
   22478 
   22479 
   22480 for ac_func in crypt
   22481 do
   22482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   22483 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   22484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   22485 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   22486   echo $ECHO_N "(cached) $ECHO_C" >&6
   22487 else
   22488   cat >conftest.$ac_ext <<_ACEOF
   22489 /* confdefs.h.  */
   22490 _ACEOF
   22491 cat confdefs.h >>conftest.$ac_ext
   22492 cat >>conftest.$ac_ext <<_ACEOF
   22493 /* end confdefs.h.  */
   22494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   22495    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   22496 #define $ac_func innocuous_$ac_func
   22497 
   22498 /* System header to define __stub macros and hopefully few prototypes,
   22499     which can conflict with char $ac_func (); below.
   22500     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   22501     <limits.h> exists even on freestanding compilers.  */
   22502 
   22503 #ifdef __STDC__
   22504 # include <limits.h>
   22505 #else
   22506 # include <assert.h>
   22507 #endif
   22508 
   22509 #undef $ac_func
   22510 
   22511 /* Override any GCC internal prototype to avoid an error.
   22512    Use char because int might match the return type of a GCC
   22513    builtin and then its argument prototype would still apply.  */
   22514 #ifdef __cplusplus
   22515 extern "C"
   22516 #endif
   22517 char $ac_func ();
   22518 /* The GNU C library defines this for functions which it implements
   22519     to always fail with ENOSYS.  Some functions are actually named
   22520     something starting with __ and the normal name is an alias.  */
   22521 #if defined __stub_$ac_func || defined __stub___$ac_func
   22522 choke me
   22523 #endif
   22524 
   22525 int
   22526 main ()
   22527 {
   22528 return $ac_func ();
   22529   ;
   22530   return 0;
   22531 }
   22532 _ACEOF
   22533 rm -f conftest.$ac_objext conftest$ac_exeext
   22534 if { (ac_try="$ac_link"
   22535 case "(($ac_try" in
   22536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22537   *) ac_try_echo=$ac_try;;
   22538 esac
   22539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22540   (eval "$ac_link") 2>conftest.er1
   22541   ac_status=$?
   22542   grep -v '^ *+' conftest.er1 >conftest.err
   22543   rm -f conftest.er1
   22544   cat conftest.err >&5
   22545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22546   (exit $ac_status); } && {
   22547 	 test -z "$ac_c_werror_flag" ||
   22548 	 test ! -s conftest.err
   22549        } && test -s conftest$ac_exeext &&
   22550        $as_test_x conftest$ac_exeext; then
   22551   eval "$as_ac_var=yes"
   22552 else
   22553   echo "$as_me: failed program was:" >&5
   22554 sed 's/^/| /' conftest.$ac_ext >&5
   22555 
   22556 	eval "$as_ac_var=no"
   22557 fi
   22558 
   22559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22560       conftest$ac_exeext conftest.$ac_ext
   22561 fi
   22562 ac_res=`eval echo '${'$as_ac_var'}'`
   22563 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   22564 echo "${ECHO_T}$ac_res" >&6; }
   22565 if test `eval echo '${'$as_ac_var'}'` = yes; then
   22566   cat >>confdefs.h <<_ACEOF
   22567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   22568 _ACEOF
   22569 
   22570 fi
   22571 done
   22572 
   22573 fi
   22574 
   22575 
   22576 
   22577 
   22578 
   22579 for ac_func in  \
   22580 	arc4random \
   22581 	arc4random_buf \
   22582 	arc4random_stir \
   22583 	arc4random_uniform \
   22584 
   22585 do
   22586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   22587 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   22588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   22589 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   22590   echo $ECHO_N "(cached) $ECHO_C" >&6
   22591 else
   22592   cat >conftest.$ac_ext <<_ACEOF
   22593 /* confdefs.h.  */
   22594 _ACEOF
   22595 cat confdefs.h >>conftest.$ac_ext
   22596 cat >>conftest.$ac_ext <<_ACEOF
   22597 /* end confdefs.h.  */
   22598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   22599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   22600 #define $ac_func innocuous_$ac_func
   22601 
   22602 /* System header to define __stub macros and hopefully few prototypes,
   22603     which can conflict with char $ac_func (); below.
   22604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   22605     <limits.h> exists even on freestanding compilers.  */
   22606 
   22607 #ifdef __STDC__
   22608 # include <limits.h>
   22609 #else
   22610 # include <assert.h>
   22611 #endif
   22612 
   22613 #undef $ac_func
   22614 
   22615 /* Override any GCC internal prototype to avoid an error.
   22616    Use char because int might match the return type of a GCC
   22617    builtin and then its argument prototype would still apply.  */
   22618 #ifdef __cplusplus
   22619 extern "C"
   22620 #endif
   22621 char $ac_func ();
   22622 /* The GNU C library defines this for functions which it implements
   22623     to always fail with ENOSYS.  Some functions are actually named
   22624     something starting with __ and the normal name is an alias.  */
   22625 #if defined __stub_$ac_func || defined __stub___$ac_func
   22626 choke me
   22627 #endif
   22628 
   22629 int
   22630 main ()
   22631 {
   22632 return $ac_func ();
   22633   ;
   22634   return 0;
   22635 }
   22636 _ACEOF
   22637 rm -f conftest.$ac_objext conftest$ac_exeext
   22638 if { (ac_try="$ac_link"
   22639 case "(($ac_try" in
   22640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22641   *) ac_try_echo=$ac_try;;
   22642 esac
   22643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22644   (eval "$ac_link") 2>conftest.er1
   22645   ac_status=$?
   22646   grep -v '^ *+' conftest.er1 >conftest.err
   22647   rm -f conftest.er1
   22648   cat conftest.err >&5
   22649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22650   (exit $ac_status); } && {
   22651 	 test -z "$ac_c_werror_flag" ||
   22652 	 test ! -s conftest.err
   22653        } && test -s conftest$ac_exeext &&
   22654        $as_test_x conftest$ac_exeext; then
   22655   eval "$as_ac_var=yes"
   22656 else
   22657   echo "$as_me: failed program was:" >&5
   22658 sed 's/^/| /' conftest.$ac_ext >&5
   22659 
   22660 	eval "$as_ac_var=no"
   22661 fi
   22662 
   22663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22664       conftest$ac_exeext conftest.$ac_ext
   22665 fi
   22666 ac_res=`eval echo '${'$as_ac_var'}'`
   22667 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   22668 echo "${ECHO_T}$ac_res" >&6; }
   22669 if test `eval echo '${'$as_ac_var'}'` = yes; then
   22670   cat >>confdefs.h <<_ACEOF
   22671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   22672 _ACEOF
   22673 
   22674 fi
   22675 done
   22676 
   22677 
   22678 saved_LIBS="$LIBS"
   22679 { echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5
   22680 echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; }
   22681 if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then
   22682   echo $ECHO_N "(cached) $ECHO_C" >&6
   22683 else
   22684   ac_check_lib_save_LIBS=$LIBS
   22685 LIBS="-liaf  $LIBS"
   22686 cat >conftest.$ac_ext <<_ACEOF
   22687 /* confdefs.h.  */
   22688 _ACEOF
   22689 cat confdefs.h >>conftest.$ac_ext
   22690 cat >>conftest.$ac_ext <<_ACEOF
   22691 /* end confdefs.h.  */
   22692 
   22693 /* Override any GCC internal prototype to avoid an error.
   22694    Use char because int might match the return type of a GCC
   22695    builtin and then its argument prototype would still apply.  */
   22696 #ifdef __cplusplus
   22697 extern "C"
   22698 #endif
   22699 char ia_openinfo ();
   22700 int
   22701 main ()
   22702 {
   22703 return ia_openinfo ();
   22704   ;
   22705   return 0;
   22706 }
   22707 _ACEOF
   22708 rm -f conftest.$ac_objext conftest$ac_exeext
   22709 if { (ac_try="$ac_link"
   22710 case "(($ac_try" in
   22711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22712   *) ac_try_echo=$ac_try;;
   22713 esac
   22714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22715   (eval "$ac_link") 2>conftest.er1
   22716   ac_status=$?
   22717   grep -v '^ *+' conftest.er1 >conftest.err
   22718   rm -f conftest.er1
   22719   cat conftest.err >&5
   22720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22721   (exit $ac_status); } && {
   22722 	 test -z "$ac_c_werror_flag" ||
   22723 	 test ! -s conftest.err
   22724        } && test -s conftest$ac_exeext &&
   22725        $as_test_x conftest$ac_exeext; then
   22726   ac_cv_lib_iaf_ia_openinfo=yes
   22727 else
   22728   echo "$as_me: failed program was:" >&5
   22729 sed 's/^/| /' conftest.$ac_ext >&5
   22730 
   22731 	ac_cv_lib_iaf_ia_openinfo=no
   22732 fi
   22733 
   22734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22735       conftest$ac_exeext conftest.$ac_ext
   22736 LIBS=$ac_check_lib_save_LIBS
   22737 fi
   22738 { echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5
   22739 echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; }
   22740 if test $ac_cv_lib_iaf_ia_openinfo = yes; then
   22741 
   22742 	LIBS="$LIBS -liaf"
   22743 
   22744 for ac_func in set_id
   22745 do
   22746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   22747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   22748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   22749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   22750   echo $ECHO_N "(cached) $ECHO_C" >&6
   22751 else
   22752   cat >conftest.$ac_ext <<_ACEOF
   22753 /* confdefs.h.  */
   22754 _ACEOF
   22755 cat confdefs.h >>conftest.$ac_ext
   22756 cat >>conftest.$ac_ext <<_ACEOF
   22757 /* end confdefs.h.  */
   22758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   22759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   22760 #define $ac_func innocuous_$ac_func
   22761 
   22762 /* System header to define __stub macros and hopefully few prototypes,
   22763     which can conflict with char $ac_func (); below.
   22764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   22765     <limits.h> exists even on freestanding compilers.  */
   22766 
   22767 #ifdef __STDC__
   22768 # include <limits.h>
   22769 #else
   22770 # include <assert.h>
   22771 #endif
   22772 
   22773 #undef $ac_func
   22774 
   22775 /* Override any GCC internal prototype to avoid an error.
   22776    Use char because int might match the return type of a GCC
   22777    builtin and then its argument prototype would still apply.  */
   22778 #ifdef __cplusplus
   22779 extern "C"
   22780 #endif
   22781 char $ac_func ();
   22782 /* The GNU C library defines this for functions which it implements
   22783     to always fail with ENOSYS.  Some functions are actually named
   22784     something starting with __ and the normal name is an alias.  */
   22785 #if defined __stub_$ac_func || defined __stub___$ac_func
   22786 choke me
   22787 #endif
   22788 
   22789 int
   22790 main ()
   22791 {
   22792 return $ac_func ();
   22793   ;
   22794   return 0;
   22795 }
   22796 _ACEOF
   22797 rm -f conftest.$ac_objext conftest$ac_exeext
   22798 if { (ac_try="$ac_link"
   22799 case "(($ac_try" in
   22800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22801   *) ac_try_echo=$ac_try;;
   22802 esac
   22803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22804   (eval "$ac_link") 2>conftest.er1
   22805   ac_status=$?
   22806   grep -v '^ *+' conftest.er1 >conftest.err
   22807   rm -f conftest.er1
   22808   cat conftest.err >&5
   22809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22810   (exit $ac_status); } && {
   22811 	 test -z "$ac_c_werror_flag" ||
   22812 	 test ! -s conftest.err
   22813        } && test -s conftest$ac_exeext &&
   22814        $as_test_x conftest$ac_exeext; then
   22815   eval "$as_ac_var=yes"
   22816 else
   22817   echo "$as_me: failed program was:" >&5
   22818 sed 's/^/| /' conftest.$ac_ext >&5
   22819 
   22820 	eval "$as_ac_var=no"
   22821 fi
   22822 
   22823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22824       conftest$ac_exeext conftest.$ac_ext
   22825 fi
   22826 ac_res=`eval echo '${'$as_ac_var'}'`
   22827 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   22828 echo "${ECHO_T}$ac_res" >&6; }
   22829 if test `eval echo '${'$as_ac_var'}'` = yes; then
   22830   cat >>confdefs.h <<_ACEOF
   22831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   22832 _ACEOF
   22833  SSHDLIBS="$SSHDLIBS -liaf"
   22834 
   22835 cat >>confdefs.h <<\_ACEOF
   22836 #define HAVE_LIBIAF 1
   22837 _ACEOF
   22838 
   22839 
   22840 fi
   22841 done
   22842 
   22843 
   22844 fi
   22845 
   22846 LIBS="$saved_LIBS"
   22847 
   22848 ### Configure cryptographic random number support
   22849 
   22850 # Check wheter OpenSSL seeds itself
   22851 if test "x$openssl" = "xyes" ; then
   22852 	{ echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
   22853 echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6; }
   22854 	if test "$cross_compiling" = yes; then
   22855 
   22856 			{ echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
   22857 echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
   22858 			# This is safe, since we will fatal() at runtime if
   22859 			# OpenSSL is not seeded correctly.
   22860 			OPENSSL_SEEDS_ITSELF=yes
   22861 
   22862 
   22863 else
   22864   cat >conftest.$ac_ext <<_ACEOF
   22865 /* confdefs.h.  */
   22866 _ACEOF
   22867 cat confdefs.h >>conftest.$ac_ext
   22868 cat >>conftest.$ac_ext <<_ACEOF
   22869 /* end confdefs.h.  */
   22870 
   22871 	#include <string.h>
   22872 	#include <openssl/rand.h>
   22873 
   22874 int
   22875 main ()
   22876 {
   22877 
   22878 		exit(RAND_status() == 1 ? 0 : 1);
   22879 
   22880   ;
   22881   return 0;
   22882 }
   22883 _ACEOF
   22884 rm -f conftest$ac_exeext
   22885 if { (ac_try="$ac_link"
   22886 case "(($ac_try" in
   22887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22888   *) ac_try_echo=$ac_try;;
   22889 esac
   22890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22891   (eval "$ac_link") 2>&5
   22892   ac_status=$?
   22893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22894   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   22895   { (case "(($ac_try" in
   22896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22897   *) ac_try_echo=$ac_try;;
   22898 esac
   22899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22900   (eval "$ac_try") 2>&5
   22901   ac_status=$?
   22902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22903   (exit $ac_status); }; }; then
   22904 
   22905 			OPENSSL_SEEDS_ITSELF=yes
   22906 			{ echo "$as_me:$LINENO: result: yes" >&5
   22907 echo "${ECHO_T}yes" >&6; }
   22908 
   22909 else
   22910   echo "$as_me: program exited with status $ac_status" >&5
   22911 echo "$as_me: failed program was:" >&5
   22912 sed 's/^/| /' conftest.$ac_ext >&5
   22913 
   22914 ( exit $ac_status )
   22915 
   22916 			{ echo "$as_me:$LINENO: result: no" >&5
   22917 echo "${ECHO_T}no" >&6; }
   22918 
   22919 fi
   22920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   22921 fi
   22922 
   22923 
   22924 fi
   22925 
   22926 # PRNGD TCP socket
   22927 
   22928 # Check whether --with-prngd-port was given.
   22929 if test "${with_prngd_port+set}" = set; then
   22930   withval=$with_prngd_port;
   22931 		case "$withval" in
   22932 		no)
   22933 			withval=""
   22934 			;;
   22935 		[0-9]*)
   22936 			;;
   22937 		*)
   22938 			{ { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
   22939 echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
   22940    { (exit 1); exit 1; }; }
   22941 			;;
   22942 		esac
   22943 		if test ! -z "$withval" ; then
   22944 			PRNGD_PORT="$withval"
   22945 
   22946 cat >>confdefs.h <<_ACEOF
   22947 #define PRNGD_PORT $PRNGD_PORT
   22948 _ACEOF
   22949 
   22950 		fi
   22951 
   22952 
   22953 fi
   22954 
   22955 
   22956 # PRNGD Unix domain socket
   22957 
   22958 # Check whether --with-prngd-socket was given.
   22959 if test "${with_prngd_socket+set}" = set; then
   22960   withval=$with_prngd_socket;
   22961 		case "$withval" in
   22962 		yes)
   22963 			withval="/var/run/egd-pool"
   22964 			;;
   22965 		no)
   22966 			withval=""
   22967 			;;
   22968 		/*)
   22969 			;;
   22970 		*)
   22971 			{ { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
   22972 echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
   22973    { (exit 1); exit 1; }; }
   22974 			;;
   22975 		esac
   22976 
   22977 		if test ! -z "$withval" ; then
   22978 			if test ! -z "$PRNGD_PORT" ; then
   22979 				{ { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
   22980 echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
   22981    { (exit 1); exit 1; }; }
   22982 			fi
   22983 			if test ! -r "$withval" ; then
   22984 				{ echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
   22985 echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
   22986 			fi
   22987 			PRNGD_SOCKET="$withval"
   22988 
   22989 cat >>confdefs.h <<_ACEOF
   22990 #define PRNGD_SOCKET "$PRNGD_SOCKET"
   22991 _ACEOF
   22992 
   22993 		fi
   22994 
   22995 else
   22996 
   22997 		# Check for existing socket only if we don't have a random device already
   22998 		if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then
   22999 			{ echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
   23000 echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6; }
   23001 			# Insert other locations here
   23002 			for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
   23003 				if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
   23004 					PRNGD_SOCKET="$sock"
   23005 					cat >>confdefs.h <<_ACEOF
   23006 #define PRNGD_SOCKET "$PRNGD_SOCKET"
   23007 _ACEOF
   23008 
   23009 					break;
   23010 				fi
   23011 			done
   23012 			if test ! -z "$PRNGD_SOCKET" ; then
   23013 				{ echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
   23014 echo "${ECHO_T}$PRNGD_SOCKET" >&6; }
   23015 			else
   23016 				{ echo "$as_me:$LINENO: result: not found" >&5
   23017 echo "${ECHO_T}not found" >&6; }
   23018 			fi
   23019 		fi
   23020 
   23021 
   23022 fi
   23023 
   23024 
   23025 # Which randomness source do we use?
   23026 if test ! -z "$PRNGD_PORT" ; then
   23027 	RAND_MSG="PRNGd port $PRNGD_PORT"
   23028 elif test ! -z "$PRNGD_SOCKET" ; then
   23029 	RAND_MSG="PRNGd socket $PRNGD_SOCKET"
   23030 elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then
   23031 
   23032 cat >>confdefs.h <<\_ACEOF
   23033 #define OPENSSL_PRNG_ONLY 1
   23034 _ACEOF
   23035 
   23036 	RAND_MSG="OpenSSL internal ONLY"
   23037 elif test "x$openssl" = "xno" ; then
   23038 	{ echo "$as_me:$LINENO: WARNING: OpenSSH will use /dev/urandom as a source of random numbers. It will fail if this device is not supported or accessible" >&5
   23039 echo "$as_me: WARNING: OpenSSH will use /dev/urandom as a source of random numbers. It will fail if this device is not supported or accessible" >&2;}
   23040 else
   23041 	{ { echo "$as_me:$LINENO: error: OpenSSH has no source of random numbers. Please configure OpenSSL with an entropy source or re-run configure using one of the --with-prngd-port or --with-prngd-socket options" >&5
   23042 echo "$as_me: error: OpenSSH has no source of random numbers. Please configure OpenSSL with an entropy source or re-run configure using one of the --with-prngd-port or --with-prngd-socket options" >&2;}
   23043    { (exit 1); exit 1; }; }
   23044 fi
   23045 
   23046 # Check for PAM libs
   23047 PAM_MSG="no"
   23048 
   23049 # Check whether --with-pam was given.
   23050 if test "${with_pam+set}" = set; then
   23051   withval=$with_pam;
   23052 		if test "x$withval" != "xno" ; then
   23053 			if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
   23054 			   test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
   23055 				{ { echo "$as_me:$LINENO: error: PAM headers not found" >&5
   23056 echo "$as_me: error: PAM headers not found" >&2;}
   23057    { (exit 1); exit 1; }; }
   23058 			fi
   23059 
   23060 			saved_LIBS="$LIBS"
   23061 
   23062 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
   23063 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
   23064 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
   23065   echo $ECHO_N "(cached) $ECHO_C" >&6
   23066 else
   23067   ac_check_lib_save_LIBS=$LIBS
   23068 LIBS="-ldl  $LIBS"
   23069 cat >conftest.$ac_ext <<_ACEOF
   23070 /* confdefs.h.  */
   23071 _ACEOF
   23072 cat confdefs.h >>conftest.$ac_ext
   23073 cat >>conftest.$ac_ext <<_ACEOF
   23074 /* end confdefs.h.  */
   23075 
   23076 /* Override any GCC internal prototype to avoid an error.
   23077    Use char because int might match the return type of a GCC
   23078    builtin and then its argument prototype would still apply.  */
   23079 #ifdef __cplusplus
   23080 extern "C"
   23081 #endif
   23082 char dlopen ();
   23083 int
   23084 main ()
   23085 {
   23086 return dlopen ();
   23087   ;
   23088   return 0;
   23089 }
   23090 _ACEOF
   23091 rm -f conftest.$ac_objext conftest$ac_exeext
   23092 if { (ac_try="$ac_link"
   23093 case "(($ac_try" in
   23094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23095   *) ac_try_echo=$ac_try;;
   23096 esac
   23097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23098   (eval "$ac_link") 2>conftest.er1
   23099   ac_status=$?
   23100   grep -v '^ *+' conftest.er1 >conftest.err
   23101   rm -f conftest.er1
   23102   cat conftest.err >&5
   23103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23104   (exit $ac_status); } && {
   23105 	 test -z "$ac_c_werror_flag" ||
   23106 	 test ! -s conftest.err
   23107        } && test -s conftest$ac_exeext &&
   23108        $as_test_x conftest$ac_exeext; then
   23109   ac_cv_lib_dl_dlopen=yes
   23110 else
   23111   echo "$as_me: failed program was:" >&5
   23112 sed 's/^/| /' conftest.$ac_ext >&5
   23113 
   23114 	ac_cv_lib_dl_dlopen=no
   23115 fi
   23116 
   23117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   23118       conftest$ac_exeext conftest.$ac_ext
   23119 LIBS=$ac_check_lib_save_LIBS
   23120 fi
   23121 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
   23122 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
   23123 if test $ac_cv_lib_dl_dlopen = yes; then
   23124   cat >>confdefs.h <<_ACEOF
   23125 #define HAVE_LIBDL 1
   23126 _ACEOF
   23127 
   23128   LIBS="-ldl $LIBS"
   23129 
   23130 fi
   23131 
   23132 
   23133 { echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
   23134 echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; }
   23135 if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
   23136   echo $ECHO_N "(cached) $ECHO_C" >&6
   23137 else
   23138   ac_check_lib_save_LIBS=$LIBS
   23139 LIBS="-lpam  $LIBS"
   23140 cat >conftest.$ac_ext <<_ACEOF
   23141 /* confdefs.h.  */
   23142 _ACEOF
   23143 cat confdefs.h >>conftest.$ac_ext
   23144 cat >>conftest.$ac_ext <<_ACEOF
   23145 /* end confdefs.h.  */
   23146 
   23147 /* Override any GCC internal prototype to avoid an error.
   23148    Use char because int might match the return type of a GCC
   23149    builtin and then its argument prototype would still apply.  */
   23150 #ifdef __cplusplus
   23151 extern "C"
   23152 #endif
   23153 char pam_set_item ();
   23154 int
   23155 main ()
   23156 {
   23157 return pam_set_item ();
   23158   ;
   23159   return 0;
   23160 }
   23161 _ACEOF
   23162 rm -f conftest.$ac_objext conftest$ac_exeext
   23163 if { (ac_try="$ac_link"
   23164 case "(($ac_try" in
   23165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23166   *) ac_try_echo=$ac_try;;
   23167 esac
   23168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23169   (eval "$ac_link") 2>conftest.er1
   23170   ac_status=$?
   23171   grep -v '^ *+' conftest.er1 >conftest.err
   23172   rm -f conftest.er1
   23173   cat conftest.err >&5
   23174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23175   (exit $ac_status); } && {
   23176 	 test -z "$ac_c_werror_flag" ||
   23177 	 test ! -s conftest.err
   23178        } && test -s conftest$ac_exeext &&
   23179        $as_test_x conftest$ac_exeext; then
   23180   ac_cv_lib_pam_pam_set_item=yes
   23181 else
   23182   echo "$as_me: failed program was:" >&5
   23183 sed 's/^/| /' conftest.$ac_ext >&5
   23184 
   23185 	ac_cv_lib_pam_pam_set_item=no
   23186 fi
   23187 
   23188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   23189       conftest$ac_exeext conftest.$ac_ext
   23190 LIBS=$ac_check_lib_save_LIBS
   23191 fi
   23192 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
   23193 echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; }
   23194 if test $ac_cv_lib_pam_pam_set_item = yes; then
   23195   cat >>confdefs.h <<_ACEOF
   23196 #define HAVE_LIBPAM 1
   23197 _ACEOF
   23198 
   23199   LIBS="-lpam $LIBS"
   23200 
   23201 else
   23202   { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
   23203 echo "$as_me: error: *** libpam missing" >&2;}
   23204    { (exit 1); exit 1; }; }
   23205 fi
   23206 
   23207 
   23208 for ac_func in pam_getenvlist
   23209 do
   23210 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   23211 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   23212 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   23213 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   23214   echo $ECHO_N "(cached) $ECHO_C" >&6
   23215 else
   23216   cat >conftest.$ac_ext <<_ACEOF
   23217 /* confdefs.h.  */
   23218 _ACEOF
   23219 cat confdefs.h >>conftest.$ac_ext
   23220 cat >>conftest.$ac_ext <<_ACEOF
   23221 /* end confdefs.h.  */
   23222 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   23223    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   23224 #define $ac_func innocuous_$ac_func
   23225 
   23226 /* System header to define __stub macros and hopefully few prototypes,
   23227     which can conflict with char $ac_func (); below.
   23228     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   23229     <limits.h> exists even on freestanding compilers.  */
   23230 
   23231 #ifdef __STDC__
   23232 # include <limits.h>
   23233 #else
   23234 # include <assert.h>
   23235 #endif
   23236 
   23237 #undef $ac_func
   23238 
   23239 /* Override any GCC internal prototype to avoid an error.
   23240    Use char because int might match the return type of a GCC
   23241    builtin and then its argument prototype would still apply.  */
   23242 #ifdef __cplusplus
   23243 extern "C"
   23244 #endif
   23245 char $ac_func ();
   23246 /* The GNU C library defines this for functions which it implements
   23247     to always fail with ENOSYS.  Some functions are actually named
   23248     something starting with __ and the normal name is an alias.  */
   23249 #if defined __stub_$ac_func || defined __stub___$ac_func
   23250 choke me
   23251 #endif
   23252 
   23253 int
   23254 main ()
   23255 {
   23256 return $ac_func ();
   23257   ;
   23258   return 0;
   23259 }
   23260 _ACEOF
   23261 rm -f conftest.$ac_objext conftest$ac_exeext
   23262 if { (ac_try="$ac_link"
   23263 case "(($ac_try" in
   23264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23265   *) ac_try_echo=$ac_try;;
   23266 esac
   23267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23268   (eval "$ac_link") 2>conftest.er1
   23269   ac_status=$?
   23270   grep -v '^ *+' conftest.er1 >conftest.err
   23271   rm -f conftest.er1
   23272   cat conftest.err >&5
   23273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23274   (exit $ac_status); } && {
   23275 	 test -z "$ac_c_werror_flag" ||
   23276 	 test ! -s conftest.err
   23277        } && test -s conftest$ac_exeext &&
   23278        $as_test_x conftest$ac_exeext; then
   23279   eval "$as_ac_var=yes"
   23280 else
   23281   echo "$as_me: failed program was:" >&5
   23282 sed 's/^/| /' conftest.$ac_ext >&5
   23283 
   23284 	eval "$as_ac_var=no"
   23285 fi
   23286 
   23287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   23288       conftest$ac_exeext conftest.$ac_ext
   23289 fi
   23290 ac_res=`eval echo '${'$as_ac_var'}'`
   23291 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   23292 echo "${ECHO_T}$ac_res" >&6; }
   23293 if test `eval echo '${'$as_ac_var'}'` = yes; then
   23294   cat >>confdefs.h <<_ACEOF
   23295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   23296 _ACEOF
   23297 
   23298 fi
   23299 done
   23300 
   23301 
   23302 for ac_func in pam_putenv
   23303 do
   23304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   23305 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   23306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   23307 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   23308   echo $ECHO_N "(cached) $ECHO_C" >&6
   23309 else
   23310   cat >conftest.$ac_ext <<_ACEOF
   23311 /* confdefs.h.  */
   23312 _ACEOF
   23313 cat confdefs.h >>conftest.$ac_ext
   23314 cat >>conftest.$ac_ext <<_ACEOF
   23315 /* end confdefs.h.  */
   23316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   23317    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   23318 #define $ac_func innocuous_$ac_func
   23319 
   23320 /* System header to define __stub macros and hopefully few prototypes,
   23321     which can conflict with char $ac_func (); below.
   23322     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   23323     <limits.h> exists even on freestanding compilers.  */
   23324 
   23325 #ifdef __STDC__
   23326 # include <limits.h>
   23327 #else
   23328 # include <assert.h>
   23329 #endif
   23330 
   23331 #undef $ac_func
   23332 
   23333 /* Override any GCC internal prototype to avoid an error.
   23334    Use char because int might match the return type of a GCC
   23335    builtin and then its argument prototype would still apply.  */
   23336 #ifdef __cplusplus
   23337 extern "C"
   23338 #endif
   23339 char $ac_func ();
   23340 /* The GNU C library defines this for functions which it implements
   23341     to always fail with ENOSYS.  Some functions are actually named
   23342     something starting with __ and the normal name is an alias.  */
   23343 #if defined __stub_$ac_func || defined __stub___$ac_func
   23344 choke me
   23345 #endif
   23346 
   23347 int
   23348 main ()
   23349 {
   23350 return $ac_func ();
   23351   ;
   23352   return 0;
   23353 }
   23354 _ACEOF
   23355 rm -f conftest.$ac_objext conftest$ac_exeext
   23356 if { (ac_try="$ac_link"
   23357 case "(($ac_try" in
   23358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23359   *) ac_try_echo=$ac_try;;
   23360 esac
   23361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23362   (eval "$ac_link") 2>conftest.er1
   23363   ac_status=$?
   23364   grep -v '^ *+' conftest.er1 >conftest.err
   23365   rm -f conftest.er1
   23366   cat conftest.err >&5
   23367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23368   (exit $ac_status); } && {
   23369 	 test -z "$ac_c_werror_flag" ||
   23370 	 test ! -s conftest.err
   23371        } && test -s conftest$ac_exeext &&
   23372        $as_test_x conftest$ac_exeext; then
   23373   eval "$as_ac_var=yes"
   23374 else
   23375   echo "$as_me: failed program was:" >&5
   23376 sed 's/^/| /' conftest.$ac_ext >&5
   23377 
   23378 	eval "$as_ac_var=no"
   23379 fi
   23380 
   23381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   23382       conftest$ac_exeext conftest.$ac_ext
   23383 fi
   23384 ac_res=`eval echo '${'$as_ac_var'}'`
   23385 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   23386 echo "${ECHO_T}$ac_res" >&6; }
   23387 if test `eval echo '${'$as_ac_var'}'` = yes; then
   23388   cat >>confdefs.h <<_ACEOF
   23389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   23390 _ACEOF
   23391 
   23392 fi
   23393 done
   23394 
   23395 			LIBS="$saved_LIBS"
   23396 
   23397 			PAM_MSG="yes"
   23398 
   23399 			SSHDLIBS="$SSHDLIBS -lpam"
   23400 
   23401 cat >>confdefs.h <<\_ACEOF
   23402 #define USE_PAM 1
   23403 _ACEOF
   23404 
   23405 
   23406 			if test $ac_cv_lib_dl_dlopen = yes; then
   23407 				case "$LIBS" in
   23408 				*-ldl*)
   23409 					# libdl already in LIBS
   23410 					;;
   23411 				*)
   23412 					SSHDLIBS="$SSHDLIBS -ldl"
   23413 					;;
   23414 				esac
   23415 			fi
   23416 		fi
   23417 
   23418 
   23419 fi
   23420 
   23421 
   23422 # Check for older PAM
   23423 if test "x$PAM_MSG" = "xyes" ; then
   23424 	# Check PAM strerror arguments (old PAM)
   23425 	{ echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
   23426 echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; }
   23427 	cat >conftest.$ac_ext <<_ACEOF
   23428 /* confdefs.h.  */
   23429 _ACEOF
   23430 cat confdefs.h >>conftest.$ac_ext
   23431 cat >>conftest.$ac_ext <<_ACEOF
   23432 /* end confdefs.h.  */
   23433 
   23434 #include <stdlib.h>
   23435 #if defined(HAVE_SECURITY_PAM_APPL_H)
   23436 #include <security/pam_appl.h>
   23437 #elif defined (HAVE_PAM_PAM_APPL_H)
   23438 #include <pam/pam_appl.h>
   23439 #endif
   23440 
   23441 int
   23442 main ()
   23443 {
   23444 
   23445 (void)pam_strerror((pam_handle_t *)NULL, -1);
   23446 
   23447   ;
   23448   return 0;
   23449 }
   23450 _ACEOF
   23451 rm -f conftest.$ac_objext
   23452 if { (ac_try="$ac_compile"
   23453 case "(($ac_try" in
   23454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23455   *) ac_try_echo=$ac_try;;
   23456 esac
   23457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23458   (eval "$ac_compile") 2>conftest.er1
   23459   ac_status=$?
   23460   grep -v '^ *+' conftest.er1 >conftest.err
   23461   rm -f conftest.er1
   23462   cat conftest.err >&5
   23463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23464   (exit $ac_status); } && {
   23465 	 test -z "$ac_c_werror_flag" ||
   23466 	 test ! -s conftest.err
   23467        } && test -s conftest.$ac_objext; then
   23468   { echo "$as_me:$LINENO: result: no" >&5
   23469 echo "${ECHO_T}no" >&6; }
   23470 else
   23471   echo "$as_me: failed program was:" >&5
   23472 sed 's/^/| /' conftest.$ac_ext >&5
   23473 
   23474 
   23475 
   23476 cat >>confdefs.h <<\_ACEOF
   23477 #define HAVE_OLD_PAM 1
   23478 _ACEOF
   23479 
   23480 			{ echo "$as_me:$LINENO: result: yes" >&5
   23481 echo "${ECHO_T}yes" >&6; }
   23482 			PAM_MSG="yes (old library)"
   23483 
   23484 
   23485 fi
   23486 
   23487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23488 fi
   23489 
   23490 case "$host" in
   23491 *-*-cygwin*)
   23492 	SSH_PRIVSEP_USER=CYGWIN_SSH_PRIVSEP_USER
   23493 	;;
   23494 *)
   23495 	SSH_PRIVSEP_USER=sshd
   23496 	;;
   23497 esac
   23498 
   23499 # Check whether --with-privsep-user was given.
   23500 if test "${with_privsep_user+set}" = set; then
   23501   withval=$with_privsep_user;
   23502 		if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
   23503 		    test "x${withval}" != "xyes"; then
   23504 			SSH_PRIVSEP_USER=$withval
   23505 		fi
   23506 
   23507 
   23508 fi
   23509 
   23510 if test "x$SSH_PRIVSEP_USER" = "xCYGWIN_SSH_PRIVSEP_USER" ; then
   23511 
   23512 cat >>confdefs.h <<_ACEOF
   23513 #define SSH_PRIVSEP_USER CYGWIN_SSH_PRIVSEP_USER
   23514 _ACEOF
   23515 
   23516 else
   23517 
   23518 cat >>confdefs.h <<_ACEOF
   23519 #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
   23520 _ACEOF
   23521 
   23522 fi
   23523 
   23524 
   23525 if test "x$have_linux_no_new_privs" = "x1" ; then
   23526 { echo "$as_me:$LINENO: checking whether SECCOMP_MODE_FILTER is declared" >&5
   23527 echo $ECHO_N "checking whether SECCOMP_MODE_FILTER is declared... $ECHO_C" >&6; }
   23528 if test "${ac_cv_have_decl_SECCOMP_MODE_FILTER+set}" = set; then
   23529   echo $ECHO_N "(cached) $ECHO_C" >&6
   23530 else
   23531   cat >conftest.$ac_ext <<_ACEOF
   23532 /* confdefs.h.  */
   23533 _ACEOF
   23534 cat confdefs.h >>conftest.$ac_ext
   23535 cat >>conftest.$ac_ext <<_ACEOF
   23536 /* end confdefs.h.  */
   23537 
   23538 	#include <sys/types.h>
   23539 	#include <linux/seccomp.h>
   23540 
   23541 
   23542 int
   23543 main ()
   23544 {
   23545 #ifndef SECCOMP_MODE_FILTER
   23546   (void) SECCOMP_MODE_FILTER;
   23547 #endif
   23548 
   23549   ;
   23550   return 0;
   23551 }
   23552 _ACEOF
   23553 rm -f conftest.$ac_objext
   23554 if { (ac_try="$ac_compile"
   23555 case "(($ac_try" in
   23556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23557   *) ac_try_echo=$ac_try;;
   23558 esac
   23559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23560   (eval "$ac_compile") 2>conftest.er1
   23561   ac_status=$?
   23562   grep -v '^ *+' conftest.er1 >conftest.err
   23563   rm -f conftest.er1
   23564   cat conftest.err >&5
   23565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23566   (exit $ac_status); } && {
   23567 	 test -z "$ac_c_werror_flag" ||
   23568 	 test ! -s conftest.err
   23569        } && test -s conftest.$ac_objext; then
   23570   ac_cv_have_decl_SECCOMP_MODE_FILTER=yes
   23571 else
   23572   echo "$as_me: failed program was:" >&5
   23573 sed 's/^/| /' conftest.$ac_ext >&5
   23574 
   23575 	ac_cv_have_decl_SECCOMP_MODE_FILTER=no
   23576 fi
   23577 
   23578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23579 fi
   23580 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_SECCOMP_MODE_FILTER" >&5
   23581 echo "${ECHO_T}$ac_cv_have_decl_SECCOMP_MODE_FILTER" >&6; }
   23582 if test $ac_cv_have_decl_SECCOMP_MODE_FILTER = yes; then
   23583   have_seccomp_filter=1
   23584 fi
   23585 
   23586 fi
   23587 if test "x$have_seccomp_filter" = "x1" ; then
   23588 { echo "$as_me:$LINENO: checking kernel for seccomp_filter support" >&5
   23589 echo $ECHO_N "checking kernel for seccomp_filter support... $ECHO_C" >&6; }
   23590 cat >conftest.$ac_ext <<_ACEOF
   23591 /* confdefs.h.  */
   23592 _ACEOF
   23593 cat confdefs.h >>conftest.$ac_ext
   23594 cat >>conftest.$ac_ext <<_ACEOF
   23595 /* end confdefs.h.  */
   23596 
   23597 		#include <errno.h>
   23598 		#include <elf.h>
   23599 		#include <linux/audit.h>
   23600 		#include <linux/seccomp.h>
   23601 		#include <stdlib.h>
   23602 		#include <sys/prctl.h>
   23603 
   23604 int
   23605 main ()
   23606 {
   23607  int i = $seccomp_audit_arch;
   23608 	   errno = 0;
   23609 	   prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
   23610 	   exit(errno == EFAULT ? 0 : 1);
   23611   ;
   23612   return 0;
   23613 }
   23614 _ACEOF
   23615 rm -f conftest.$ac_objext conftest$ac_exeext
   23616 if { (ac_try="$ac_link"
   23617 case "(($ac_try" in
   23618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23619   *) ac_try_echo=$ac_try;;
   23620 esac
   23621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23622   (eval "$ac_link") 2>conftest.er1
   23623   ac_status=$?
   23624   grep -v '^ *+' conftest.er1 >conftest.err
   23625   rm -f conftest.er1
   23626   cat conftest.err >&5
   23627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23628   (exit $ac_status); } && {
   23629 	 test -z "$ac_c_werror_flag" ||
   23630 	 test ! -s conftest.err
   23631        } && test -s conftest$ac_exeext &&
   23632        $as_test_x conftest$ac_exeext; then
   23633    { echo "$as_me:$LINENO: result: yes" >&5
   23634 echo "${ECHO_T}yes" >&6; }
   23635 else
   23636   echo "$as_me: failed program was:" >&5
   23637 sed 's/^/| /' conftest.$ac_ext >&5
   23638 
   23639 
   23640 		{ echo "$as_me:$LINENO: result: no" >&5
   23641 echo "${ECHO_T}no" >&6; }
   23642 		# Disable seccomp filter as a target
   23643 		have_seccomp_filter=0
   23644 
   23645 
   23646 fi
   23647 
   23648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   23649       conftest$ac_exeext conftest.$ac_ext
   23650 fi
   23651 
   23652 # Decide which sandbox style to use
   23653 sandbox_arg=""
   23654 
   23655 # Check whether --with-sandbox was given.
   23656 if test "${with_sandbox+set}" = set; then
   23657   withval=$with_sandbox;
   23658 		if test "x$withval" = "xyes" ; then
   23659 			sandbox_arg=""
   23660 		else
   23661 			sandbox_arg="$withval"
   23662 		fi
   23663 
   23664 
   23665 fi
   23666 
   23667 
   23668 # Some platforms (seems to be the ones that have a kernel poll(2)-type
   23669 # function with which they implement select(2)) use an extra file descriptor
   23670 # when calling select(2), which means we can't use the rlimit sandbox.
   23671 { echo "$as_me:$LINENO: checking if select works with descriptor rlimit" >&5
   23672 echo $ECHO_N "checking if select works with descriptor rlimit... $ECHO_C" >&6; }
   23673 if test "$cross_compiling" = yes; then
   23674   { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
   23675 echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
   23676 
   23677 else
   23678   cat >conftest.$ac_ext <<_ACEOF
   23679 /* confdefs.h.  */
   23680 _ACEOF
   23681 cat confdefs.h >>conftest.$ac_ext
   23682 cat >>conftest.$ac_ext <<_ACEOF
   23683 /* end confdefs.h.  */
   23684 
   23685 #include <sys/types.h>
   23686 #ifdef HAVE_SYS_TIME_H
   23687 # include <sys/time.h>
   23688 #endif
   23689 #include <sys/resource.h>
   23690 #ifdef HAVE_SYS_SELECT_H
   23691 # include <sys/select.h>
   23692 #endif
   23693 #include <errno.h>
   23694 #include <fcntl.h>
   23695 #include <stdlib.h>
   23696 
   23697 int
   23698 main ()
   23699 {
   23700 
   23701 	struct rlimit rl_zero;
   23702 	int fd, r;
   23703 	fd_set fds;
   23704 	struct timeval tv;
   23705 
   23706 	fd = open("/dev/null", O_RDONLY);
   23707 	FD_ZERO(&fds);
   23708 	FD_SET(fd, &fds);
   23709 	rl_zero.rlim_cur = rl_zero.rlim_max = 0;
   23710 	setrlimit(RLIMIT_FSIZE, &rl_zero);
   23711 	setrlimit(RLIMIT_NOFILE, &rl_zero);
   23712 	tv.tv_sec = 1;
   23713 	tv.tv_usec = 0;
   23714 	r = select(fd+1, &fds, NULL, NULL, &tv);
   23715 	exit (r == -1 ? 1 : 0);
   23716 
   23717   ;
   23718   return 0;
   23719 }
   23720 _ACEOF
   23721 rm -f conftest$ac_exeext
   23722 if { (ac_try="$ac_link"
   23723 case "(($ac_try" in
   23724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23725   *) ac_try_echo=$ac_try;;
   23726 esac
   23727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23728   (eval "$ac_link") 2>&5
   23729   ac_status=$?
   23730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23731   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   23732   { (case "(($ac_try" in
   23733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23734   *) ac_try_echo=$ac_try;;
   23735 esac
   23736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23737   (eval "$ac_try") 2>&5
   23738   ac_status=$?
   23739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23740   (exit $ac_status); }; }; then
   23741   { echo "$as_me:$LINENO: result: yes" >&5
   23742 echo "${ECHO_T}yes" >&6; }
   23743 	 select_works_with_rlimit=yes
   23744 else
   23745   echo "$as_me: program exited with status $ac_status" >&5
   23746 echo "$as_me: failed program was:" >&5
   23747 sed 's/^/| /' conftest.$ac_ext >&5
   23748 
   23749 ( exit $ac_status )
   23750 { echo "$as_me:$LINENO: result: no" >&5
   23751 echo "${ECHO_T}no" >&6; }
   23752 	 select_works_with_rlimit=no
   23753 fi
   23754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   23755 fi
   23756 
   23757 
   23758 
   23759 { echo "$as_me:$LINENO: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5
   23760 echo $ECHO_N "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... $ECHO_C" >&6; }
   23761 if test "$cross_compiling" = yes; then
   23762   { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
   23763 echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
   23764 
   23765 else
   23766   cat >conftest.$ac_ext <<_ACEOF
   23767 /* confdefs.h.  */
   23768 _ACEOF
   23769 cat confdefs.h >>conftest.$ac_ext
   23770 cat >>conftest.$ac_ext <<_ACEOF
   23771 /* end confdefs.h.  */
   23772 
   23773 #include <sys/types.h>
   23774 #ifdef HAVE_SYS_TIME_H
   23775 # include <sys/time.h>
   23776 #endif
   23777 #include <sys/resource.h>
   23778 #include <errno.h>
   23779 #include <stdlib.h>
   23780 
   23781 int
   23782 main ()
   23783 {
   23784 
   23785 	struct rlimit rl_zero;
   23786 	int fd, r;
   23787 	fd_set fds;
   23788 
   23789 	rl_zero.rlim_cur = rl_zero.rlim_max = 0;
   23790 	r = setrlimit(RLIMIT_NOFILE, &rl_zero);
   23791 	exit (r == -1 ? 1 : 0);
   23792 
   23793   ;
   23794   return 0;
   23795 }
   23796 _ACEOF
   23797 rm -f conftest$ac_exeext
   23798 if { (ac_try="$ac_link"
   23799 case "(($ac_try" in
   23800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23801   *) ac_try_echo=$ac_try;;
   23802 esac
   23803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23804   (eval "$ac_link") 2>&5
   23805   ac_status=$?
   23806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23807   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   23808   { (case "(($ac_try" in
   23809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23810   *) ac_try_echo=$ac_try;;
   23811 esac
   23812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23813   (eval "$ac_try") 2>&5
   23814   ac_status=$?
   23815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23816   (exit $ac_status); }; }; then
   23817   { echo "$as_me:$LINENO: result: yes" >&5
   23818 echo "${ECHO_T}yes" >&6; }
   23819 	 rlimit_nofile_zero_works=yes
   23820 else
   23821   echo "$as_me: program exited with status $ac_status" >&5
   23822 echo "$as_me: failed program was:" >&5
   23823 sed 's/^/| /' conftest.$ac_ext >&5
   23824 
   23825 ( exit $ac_status )
   23826 { echo "$as_me:$LINENO: result: no" >&5
   23827 echo "${ECHO_T}no" >&6; }
   23828 	 rlimit_nofile_zero_works=no
   23829 fi
   23830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   23831 fi
   23832 
   23833 
   23834 
   23835 { echo "$as_me:$LINENO: checking if setrlimit RLIMIT_FSIZE works" >&5
   23836 echo $ECHO_N "checking if setrlimit RLIMIT_FSIZE works... $ECHO_C" >&6; }
   23837 if test "$cross_compiling" = yes; then
   23838   { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
   23839 echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
   23840 
   23841 else
   23842   cat >conftest.$ac_ext <<_ACEOF
   23843 /* confdefs.h.  */
   23844 _ACEOF
   23845 cat confdefs.h >>conftest.$ac_ext
   23846 cat >>conftest.$ac_ext <<_ACEOF
   23847 /* end confdefs.h.  */
   23848 
   23849 #include <sys/types.h>
   23850 #include <sys/resource.h>
   23851 #include <stdlib.h>
   23852 
   23853 int
   23854 main ()
   23855 {
   23856 
   23857 		struct rlimit rl_zero;
   23858 
   23859 		rl_zero.rlim_cur = rl_zero.rlim_max = 0;
   23860 		exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0);
   23861 
   23862   ;
   23863   return 0;
   23864 }
   23865 _ACEOF
   23866 rm -f conftest$ac_exeext
   23867 if { (ac_try="$ac_link"
   23868 case "(($ac_try" in
   23869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23870   *) ac_try_echo=$ac_try;;
   23871 esac
   23872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23873   (eval "$ac_link") 2>&5
   23874   ac_status=$?
   23875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23876   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   23877   { (case "(($ac_try" in
   23878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23879   *) ac_try_echo=$ac_try;;
   23880 esac
   23881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23882   (eval "$ac_try") 2>&5
   23883   ac_status=$?
   23884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23885   (exit $ac_status); }; }; then
   23886   { echo "$as_me:$LINENO: result: yes" >&5
   23887 echo "${ECHO_T}yes" >&6; }
   23888 else
   23889   echo "$as_me: program exited with status $ac_status" >&5
   23890 echo "$as_me: failed program was:" >&5
   23891 sed 's/^/| /' conftest.$ac_ext >&5
   23892 
   23893 ( exit $ac_status )
   23894 { echo "$as_me:$LINENO: result: no" >&5
   23895 echo "${ECHO_T}no" >&6; }
   23896 
   23897 cat >>confdefs.h <<\_ACEOF
   23898 #define SANDBOX_SKIP_RLIMIT_FSIZE 1
   23899 _ACEOF
   23900 
   23901 fi
   23902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   23903 fi
   23904 
   23905 
   23906 
   23907 if test "x$sandbox_arg" = "xsystrace" || \
   23908    ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then
   23909 	test "x$have_systr_policy_kill" != "x1" && \
   23910 		{ { echo "$as_me:$LINENO: error: systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" >&5
   23911 echo "$as_me: error: systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" >&2;}
   23912    { (exit 1); exit 1; }; }
   23913 	SANDBOX_STYLE="systrace"
   23914 
   23915 cat >>confdefs.h <<\_ACEOF
   23916 #define SANDBOX_SYSTRACE 1
   23917 _ACEOF
   23918 
   23919 elif test "x$sandbox_arg" = "xdarwin" || \
   23920      ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \
   23921        test "x$ac_cv_header_sandbox_h" = "xyes") ; then
   23922 	test "x$ac_cv_func_sandbox_init" != "xyes" -o \
   23923 	     "x$ac_cv_header_sandbox_h" != "xyes" && \
   23924 		{ { echo "$as_me:$LINENO: error: Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" >&5
   23925 echo "$as_me: error: Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" >&2;}
   23926    { (exit 1); exit 1; }; }
   23927 	SANDBOX_STYLE="darwin"
   23928 
   23929 cat >>confdefs.h <<\_ACEOF
   23930 #define SANDBOX_DARWIN 1
   23931 _ACEOF
   23932 
   23933 elif test "x$sandbox_arg" = "xseccomp_filter" || \
   23934      ( test -z "$sandbox_arg" && \
   23935        test "x$have_seccomp_filter" = "x1" && \
   23936        test "x$ac_cv_header_elf_h" = "xyes" && \
   23937        test "x$ac_cv_header_linux_audit_h" = "xyes" && \
   23938        test "x$ac_cv_header_linux_filter_h" = "xyes" && \
   23939        test "x$seccomp_audit_arch" != "x" && \
   23940        test "x$have_linux_no_new_privs" = "x1" && \
   23941        test "x$ac_cv_func_prctl" = "xyes" ) ; then
   23942 	test "x$seccomp_audit_arch" = "x" && \
   23943 		{ { echo "$as_me:$LINENO: error: seccomp_filter sandbox not supported on $host" >&5
   23944 echo "$as_me: error: seccomp_filter sandbox not supported on $host" >&2;}
   23945    { (exit 1); exit 1; }; }
   23946 	test "x$have_linux_no_new_privs" != "x1" && \
   23947 		{ { echo "$as_me:$LINENO: error: seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" >&5
   23948 echo "$as_me: error: seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" >&2;}
   23949    { (exit 1); exit 1; }; }
   23950 	test "x$have_seccomp_filter" != "x1" && \
   23951 		{ { echo "$as_me:$LINENO: error: seccomp_filter sandbox requires seccomp headers" >&5
   23952 echo "$as_me: error: seccomp_filter sandbox requires seccomp headers" >&2;}
   23953    { (exit 1); exit 1; }; }
   23954 	test "x$ac_cv_func_prctl" != "xyes" && \
   23955 		{ { echo "$as_me:$LINENO: error: seccomp_filter sandbox requires prctl function" >&5
   23956 echo "$as_me: error: seccomp_filter sandbox requires prctl function" >&2;}
   23957    { (exit 1); exit 1; }; }
   23958 	SANDBOX_STYLE="seccomp_filter"
   23959 
   23960 cat >>confdefs.h <<\_ACEOF
   23961 #define SANDBOX_SECCOMP_FILTER 1
   23962 _ACEOF
   23963 
   23964 elif test "x$sandbox_arg" = "xcapsicum" || \
   23965      ( test -z "$sandbox_arg" && \
   23966        test "x$ac_cv_header_sys_capability_h" = "xyes" && \
   23967        test "x$ac_cv_func_cap_rights_limit" = "xyes") ; then
   23968        test "x$ac_cv_header_sys_capability_h" != "xyes" && \
   23969 		{ { echo "$as_me:$LINENO: error: capsicum sandbox requires sys/capability.h header" >&5
   23970 echo "$as_me: error: capsicum sandbox requires sys/capability.h header" >&2;}
   23971    { (exit 1); exit 1; }; }
   23972        test "x$ac_cv_func_cap_rights_limit" != "xyes" && \
   23973 		{ { echo "$as_me:$LINENO: error: capsicum sandbox requires cap_rights_limit function" >&5
   23974 echo "$as_me: error: capsicum sandbox requires cap_rights_limit function" >&2;}
   23975    { (exit 1); exit 1; }; }
   23976        SANDBOX_STYLE="capsicum"
   23977 
   23978 cat >>confdefs.h <<\_ACEOF
   23979 #define SANDBOX_CAPSICUM 1
   23980 _ACEOF
   23981 
   23982 elif test "x$sandbox_arg" = "xrlimit" || \
   23983      ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \
   23984        test "x$select_works_with_rlimit" = "xyes" && \
   23985        test "x$rlimit_nofile_zero_works" = "xyes" ) ; then
   23986 	test "x$ac_cv_func_setrlimit" != "xyes" && \
   23987 		{ { echo "$as_me:$LINENO: error: rlimit sandbox requires setrlimit function" >&5
   23988 echo "$as_me: error: rlimit sandbox requires setrlimit function" >&2;}
   23989    { (exit 1); exit 1; }; }
   23990 	test "x$select_works_with_rlimit" != "xyes" && \
   23991 		{ { echo "$as_me:$LINENO: error: rlimit sandbox requires select to work with rlimit" >&5
   23992 echo "$as_me: error: rlimit sandbox requires select to work with rlimit" >&2;}
   23993    { (exit 1); exit 1; }; }
   23994 	SANDBOX_STYLE="rlimit"
   23995 
   23996 cat >>confdefs.h <<\_ACEOF
   23997 #define SANDBOX_RLIMIT 1
   23998 _ACEOF
   23999 
   24000 elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \
   24001      test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then
   24002 	SANDBOX_STYLE="none"
   24003 
   24004 cat >>confdefs.h <<\_ACEOF
   24005 #define SANDBOX_NULL 1
   24006 _ACEOF
   24007 
   24008 else
   24009 	{ { echo "$as_me:$LINENO: error: unsupported --with-sandbox" >&5
   24010 echo "$as_me: error: unsupported --with-sandbox" >&2;}
   24011    { (exit 1); exit 1; }; }
   24012 fi
   24013 
   24014 # Cheap hack to ensure NEWS-OS libraries are arranged right.
   24015 if test ! -z "$SONY" ; then
   24016   LIBS="$LIBS -liberty";
   24017 fi
   24018 
   24019 # Check for  long long datatypes
   24020 { echo "$as_me:$LINENO: checking for long long" >&5
   24021 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
   24022 if test "${ac_cv_type_long_long+set}" = set; then
   24023   echo $ECHO_N "(cached) $ECHO_C" >&6
   24024 else
   24025   cat >conftest.$ac_ext <<_ACEOF
   24026 /* confdefs.h.  */
   24027 _ACEOF
   24028 cat confdefs.h >>conftest.$ac_ext
   24029 cat >>conftest.$ac_ext <<_ACEOF
   24030 /* end confdefs.h.  */
   24031 $ac_includes_default
   24032 typedef long long ac__type_new_;
   24033 int
   24034 main ()
   24035 {
   24036 if ((ac__type_new_ *) 0)
   24037   return 0;
   24038 if (sizeof (ac__type_new_))
   24039   return 0;
   24040   ;
   24041   return 0;
   24042 }
   24043 _ACEOF
   24044 rm -f conftest.$ac_objext
   24045 if { (ac_try="$ac_compile"
   24046 case "(($ac_try" in
   24047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24048   *) ac_try_echo=$ac_try;;
   24049 esac
   24050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24051   (eval "$ac_compile") 2>conftest.er1
   24052   ac_status=$?
   24053   grep -v '^ *+' conftest.er1 >conftest.err
   24054   rm -f conftest.er1
   24055   cat conftest.err >&5
   24056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24057   (exit $ac_status); } && {
   24058 	 test -z "$ac_c_werror_flag" ||
   24059 	 test ! -s conftest.err
   24060        } && test -s conftest.$ac_objext; then
   24061   ac_cv_type_long_long=yes
   24062 else
   24063   echo "$as_me: failed program was:" >&5
   24064 sed 's/^/| /' conftest.$ac_ext >&5
   24065 
   24066 	ac_cv_type_long_long=no
   24067 fi
   24068 
   24069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24070 fi
   24071 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
   24072 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
   24073 if test $ac_cv_type_long_long = yes; then
   24074 
   24075 cat >>confdefs.h <<_ACEOF
   24076 #define HAVE_LONG_LONG 1
   24077 _ACEOF
   24078 
   24079 
   24080 fi
   24081 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
   24082 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
   24083 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
   24084   echo $ECHO_N "(cached) $ECHO_C" >&6
   24085 else
   24086   cat >conftest.$ac_ext <<_ACEOF
   24087 /* confdefs.h.  */
   24088 _ACEOF
   24089 cat confdefs.h >>conftest.$ac_ext
   24090 cat >>conftest.$ac_ext <<_ACEOF
   24091 /* end confdefs.h.  */
   24092 $ac_includes_default
   24093 typedef unsigned long long ac__type_new_;
   24094 int
   24095 main ()
   24096 {
   24097 if ((ac__type_new_ *) 0)
   24098   return 0;
   24099 if (sizeof (ac__type_new_))
   24100   return 0;
   24101   ;
   24102   return 0;
   24103 }
   24104 _ACEOF
   24105 rm -f conftest.$ac_objext
   24106 if { (ac_try="$ac_compile"
   24107 case "(($ac_try" in
   24108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24109   *) ac_try_echo=$ac_try;;
   24110 esac
   24111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24112   (eval "$ac_compile") 2>conftest.er1
   24113   ac_status=$?
   24114   grep -v '^ *+' conftest.er1 >conftest.err
   24115   rm -f conftest.er1
   24116   cat conftest.err >&5
   24117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24118   (exit $ac_status); } && {
   24119 	 test -z "$ac_c_werror_flag" ||
   24120 	 test ! -s conftest.err
   24121        } && test -s conftest.$ac_objext; then
   24122   ac_cv_type_unsigned_long_long=yes
   24123 else
   24124   echo "$as_me: failed program was:" >&5
   24125 sed 's/^/| /' conftest.$ac_ext >&5
   24126 
   24127 	ac_cv_type_unsigned_long_long=no
   24128 fi
   24129 
   24130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24131 fi
   24132 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
   24133 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
   24134 if test $ac_cv_type_unsigned_long_long = yes; then
   24135 
   24136 cat >>confdefs.h <<_ACEOF
   24137 #define HAVE_UNSIGNED_LONG_LONG 1
   24138 _ACEOF
   24139 
   24140 
   24141 fi
   24142 { echo "$as_me:$LINENO: checking for long double" >&5
   24143 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
   24144 if test "${ac_cv_type_long_double+set}" = set; then
   24145   echo $ECHO_N "(cached) $ECHO_C" >&6
   24146 else
   24147   cat >conftest.$ac_ext <<_ACEOF
   24148 /* confdefs.h.  */
   24149 _ACEOF
   24150 cat confdefs.h >>conftest.$ac_ext
   24151 cat >>conftest.$ac_ext <<_ACEOF
   24152 /* end confdefs.h.  */
   24153 $ac_includes_default
   24154 typedef long double ac__type_new_;
   24155 int
   24156 main ()
   24157 {
   24158 if ((ac__type_new_ *) 0)
   24159   return 0;
   24160 if (sizeof (ac__type_new_))
   24161   return 0;
   24162   ;
   24163   return 0;
   24164 }
   24165 _ACEOF
   24166 rm -f conftest.$ac_objext
   24167 if { (ac_try="$ac_compile"
   24168 case "(($ac_try" in
   24169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24170   *) ac_try_echo=$ac_try;;
   24171 esac
   24172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24173   (eval "$ac_compile") 2>conftest.er1
   24174   ac_status=$?
   24175   grep -v '^ *+' conftest.er1 >conftest.err
   24176   rm -f conftest.er1
   24177   cat conftest.err >&5
   24178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24179   (exit $ac_status); } && {
   24180 	 test -z "$ac_c_werror_flag" ||
   24181 	 test ! -s conftest.err
   24182        } && test -s conftest.$ac_objext; then
   24183   ac_cv_type_long_double=yes
   24184 else
   24185   echo "$as_me: failed program was:" >&5
   24186 sed 's/^/| /' conftest.$ac_ext >&5
   24187 
   24188 	ac_cv_type_long_double=no
   24189 fi
   24190 
   24191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24192 fi
   24193 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
   24194 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
   24195 if test $ac_cv_type_long_double = yes; then
   24196 
   24197 cat >>confdefs.h <<_ACEOF
   24198 #define HAVE_LONG_DOUBLE 1
   24199 _ACEOF
   24200 
   24201 
   24202 fi
   24203 
   24204 
   24205 # Check datatype sizes
   24206 { echo "$as_me:$LINENO: checking for short int" >&5
   24207 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
   24208 if test "${ac_cv_type_short_int+set}" = set; then
   24209   echo $ECHO_N "(cached) $ECHO_C" >&6
   24210 else
   24211   cat >conftest.$ac_ext <<_ACEOF
   24212 /* confdefs.h.  */
   24213 _ACEOF
   24214 cat confdefs.h >>conftest.$ac_ext
   24215 cat >>conftest.$ac_ext <<_ACEOF
   24216 /* end confdefs.h.  */
   24217 $ac_includes_default
   24218 typedef short int ac__type_new_;
   24219 int
   24220 main ()
   24221 {
   24222 if ((ac__type_new_ *) 0)
   24223   return 0;
   24224 if (sizeof (ac__type_new_))
   24225   return 0;
   24226   ;
   24227   return 0;
   24228 }
   24229 _ACEOF
   24230 rm -f conftest.$ac_objext
   24231 if { (ac_try="$ac_compile"
   24232 case "(($ac_try" in
   24233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24234   *) ac_try_echo=$ac_try;;
   24235 esac
   24236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24237   (eval "$ac_compile") 2>conftest.er1
   24238   ac_status=$?
   24239   grep -v '^ *+' conftest.er1 >conftest.err
   24240   rm -f conftest.er1
   24241   cat conftest.err >&5
   24242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24243   (exit $ac_status); } && {
   24244 	 test -z "$ac_c_werror_flag" ||
   24245 	 test ! -s conftest.err
   24246        } && test -s conftest.$ac_objext; then
   24247   ac_cv_type_short_int=yes
   24248 else
   24249   echo "$as_me: failed program was:" >&5
   24250 sed 's/^/| /' conftest.$ac_ext >&5
   24251 
   24252 	ac_cv_type_short_int=no
   24253 fi
   24254 
   24255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24256 fi
   24257 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
   24258 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
   24259 
   24260 # The cast to long int works around a bug in the HP C Compiler
   24261 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   24262 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   24263 # This bug is HP SR number 8606223364.
   24264 { echo "$as_me:$LINENO: checking size of short int" >&5
   24265 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
   24266 if test "${ac_cv_sizeof_short_int+set}" = set; then
   24267   echo $ECHO_N "(cached) $ECHO_C" >&6
   24268 else
   24269   if test "$cross_compiling" = yes; then
   24270   # Depending upon the size, compute the lo and hi bounds.
   24271 cat >conftest.$ac_ext <<_ACEOF
   24272 /* confdefs.h.  */
   24273 _ACEOF
   24274 cat confdefs.h >>conftest.$ac_ext
   24275 cat >>conftest.$ac_ext <<_ACEOF
   24276 /* end confdefs.h.  */
   24277 $ac_includes_default
   24278    typedef short int ac__type_sizeof_;
   24279 int
   24280 main ()
   24281 {
   24282 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
   24283 test_array [0] = 0
   24284 
   24285   ;
   24286   return 0;
   24287 }
   24288 _ACEOF
   24289 rm -f conftest.$ac_objext
   24290 if { (ac_try="$ac_compile"
   24291 case "(($ac_try" in
   24292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24293   *) ac_try_echo=$ac_try;;
   24294 esac
   24295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24296   (eval "$ac_compile") 2>conftest.er1
   24297   ac_status=$?
   24298   grep -v '^ *+' conftest.er1 >conftest.err
   24299   rm -f conftest.er1
   24300   cat conftest.err >&5
   24301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24302   (exit $ac_status); } && {
   24303 	 test -z "$ac_c_werror_flag" ||
   24304 	 test ! -s conftest.err
   24305        } && test -s conftest.$ac_objext; then
   24306   ac_lo=0 ac_mid=0
   24307   while :; do
   24308     cat >conftest.$ac_ext <<_ACEOF
   24309 /* confdefs.h.  */
   24310 _ACEOF
   24311 cat confdefs.h >>conftest.$ac_ext
   24312 cat >>conftest.$ac_ext <<_ACEOF
   24313 /* end confdefs.h.  */
   24314 $ac_includes_default
   24315    typedef short int ac__type_sizeof_;
   24316 int
   24317 main ()
   24318 {
   24319 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   24320 test_array [0] = 0
   24321 
   24322   ;
   24323   return 0;
   24324 }
   24325 _ACEOF
   24326 rm -f conftest.$ac_objext
   24327 if { (ac_try="$ac_compile"
   24328 case "(($ac_try" in
   24329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24330   *) ac_try_echo=$ac_try;;
   24331 esac
   24332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24333   (eval "$ac_compile") 2>conftest.er1
   24334   ac_status=$?
   24335   grep -v '^ *+' conftest.er1 >conftest.err
   24336   rm -f conftest.er1
   24337   cat conftest.err >&5
   24338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24339   (exit $ac_status); } && {
   24340 	 test -z "$ac_c_werror_flag" ||
   24341 	 test ! -s conftest.err
   24342        } && test -s conftest.$ac_objext; then
   24343   ac_hi=$ac_mid; break
   24344 else
   24345   echo "$as_me: failed program was:" >&5
   24346 sed 's/^/| /' conftest.$ac_ext >&5
   24347 
   24348 	ac_lo=`expr $ac_mid + 1`
   24349 			if test $ac_lo -le $ac_mid; then
   24350 			  ac_lo= ac_hi=
   24351 			  break
   24352 			fi
   24353 			ac_mid=`expr 2 '*' $ac_mid + 1`
   24354 fi
   24355 
   24356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24357   done
   24358 else
   24359   echo "$as_me: failed program was:" >&5
   24360 sed 's/^/| /' conftest.$ac_ext >&5
   24361 
   24362 	cat >conftest.$ac_ext <<_ACEOF
   24363 /* confdefs.h.  */
   24364 _ACEOF
   24365 cat confdefs.h >>conftest.$ac_ext
   24366 cat >>conftest.$ac_ext <<_ACEOF
   24367 /* end confdefs.h.  */
   24368 $ac_includes_default
   24369    typedef short int ac__type_sizeof_;
   24370 int
   24371 main ()
   24372 {
   24373 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
   24374 test_array [0] = 0
   24375 
   24376   ;
   24377   return 0;
   24378 }
   24379 _ACEOF
   24380 rm -f conftest.$ac_objext
   24381 if { (ac_try="$ac_compile"
   24382 case "(($ac_try" in
   24383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24384   *) ac_try_echo=$ac_try;;
   24385 esac
   24386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24387   (eval "$ac_compile") 2>conftest.er1
   24388   ac_status=$?
   24389   grep -v '^ *+' conftest.er1 >conftest.err
   24390   rm -f conftest.er1
   24391   cat conftest.err >&5
   24392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24393   (exit $ac_status); } && {
   24394 	 test -z "$ac_c_werror_flag" ||
   24395 	 test ! -s conftest.err
   24396        } && test -s conftest.$ac_objext; then
   24397   ac_hi=-1 ac_mid=-1
   24398   while :; do
   24399     cat >conftest.$ac_ext <<_ACEOF
   24400 /* confdefs.h.  */
   24401 _ACEOF
   24402 cat confdefs.h >>conftest.$ac_ext
   24403 cat >>conftest.$ac_ext <<_ACEOF
   24404 /* end confdefs.h.  */
   24405 $ac_includes_default
   24406    typedef short int ac__type_sizeof_;
   24407 int
   24408 main ()
   24409 {
   24410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
   24411 test_array [0] = 0
   24412 
   24413   ;
   24414   return 0;
   24415 }
   24416 _ACEOF
   24417 rm -f conftest.$ac_objext
   24418 if { (ac_try="$ac_compile"
   24419 case "(($ac_try" in
   24420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24421   *) ac_try_echo=$ac_try;;
   24422 esac
   24423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24424   (eval "$ac_compile") 2>conftest.er1
   24425   ac_status=$?
   24426   grep -v '^ *+' conftest.er1 >conftest.err
   24427   rm -f conftest.er1
   24428   cat conftest.err >&5
   24429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24430   (exit $ac_status); } && {
   24431 	 test -z "$ac_c_werror_flag" ||
   24432 	 test ! -s conftest.err
   24433        } && test -s conftest.$ac_objext; then
   24434   ac_lo=$ac_mid; break
   24435 else
   24436   echo "$as_me: failed program was:" >&5
   24437 sed 's/^/| /' conftest.$ac_ext >&5
   24438 
   24439 	ac_hi=`expr '(' $ac_mid ')' - 1`
   24440 			if test $ac_mid -le $ac_hi; then
   24441 			  ac_lo= ac_hi=
   24442 			  break
   24443 			fi
   24444 			ac_mid=`expr 2 '*' $ac_mid`
   24445 fi
   24446 
   24447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24448   done
   24449 else
   24450   echo "$as_me: failed program was:" >&5
   24451 sed 's/^/| /' conftest.$ac_ext >&5
   24452 
   24453 	ac_lo= ac_hi=
   24454 fi
   24455 
   24456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24457 fi
   24458 
   24459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24460 # Binary search between lo and hi bounds.
   24461 while test "x$ac_lo" != "x$ac_hi"; do
   24462   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
   24463   cat >conftest.$ac_ext <<_ACEOF
   24464 /* confdefs.h.  */
   24465 _ACEOF
   24466 cat confdefs.h >>conftest.$ac_ext
   24467 cat >>conftest.$ac_ext <<_ACEOF
   24468 /* end confdefs.h.  */
   24469 $ac_includes_default
   24470    typedef short int ac__type_sizeof_;
   24471 int
   24472 main ()
   24473 {
   24474 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   24475 test_array [0] = 0
   24476 
   24477   ;
   24478   return 0;
   24479 }
   24480 _ACEOF
   24481 rm -f conftest.$ac_objext
   24482 if { (ac_try="$ac_compile"
   24483 case "(($ac_try" in
   24484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24485   *) ac_try_echo=$ac_try;;
   24486 esac
   24487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24488   (eval "$ac_compile") 2>conftest.er1
   24489   ac_status=$?
   24490   grep -v '^ *+' conftest.er1 >conftest.err
   24491   rm -f conftest.er1
   24492   cat conftest.err >&5
   24493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24494   (exit $ac_status); } && {
   24495 	 test -z "$ac_c_werror_flag" ||
   24496 	 test ! -s conftest.err
   24497        } && test -s conftest.$ac_objext; then
   24498   ac_hi=$ac_mid
   24499 else
   24500   echo "$as_me: failed program was:" >&5
   24501 sed 's/^/| /' conftest.$ac_ext >&5
   24502 
   24503 	ac_lo=`expr '(' $ac_mid ')' + 1`
   24504 fi
   24505 
   24506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24507 done
   24508 case $ac_lo in
   24509 ?*) ac_cv_sizeof_short_int=$ac_lo;;
   24510 '') if test "$ac_cv_type_short_int" = yes; then
   24511      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
   24512 See \`config.log' for more details." >&5
   24513 echo "$as_me: error: cannot compute sizeof (short int)
   24514 See \`config.log' for more details." >&2;}
   24515    { (exit 77); exit 77; }; }
   24516    else
   24517      ac_cv_sizeof_short_int=0
   24518    fi ;;
   24519 esac
   24520 else
   24521   cat >conftest.$ac_ext <<_ACEOF
   24522 /* confdefs.h.  */
   24523 _ACEOF
   24524 cat confdefs.h >>conftest.$ac_ext
   24525 cat >>conftest.$ac_ext <<_ACEOF
   24526 /* end confdefs.h.  */
   24527 $ac_includes_default
   24528    typedef short int ac__type_sizeof_;
   24529 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
   24530 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
   24531 #include <stdio.h>
   24532 #include <stdlib.h>
   24533 int
   24534 main ()
   24535 {
   24536 
   24537   FILE *f = fopen ("conftest.val", "w");
   24538   if (! f)
   24539     return 1;
   24540   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
   24541     {
   24542       long int i = longval ();
   24543       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   24544 	return 1;
   24545       fprintf (f, "%ld\n", i);
   24546     }
   24547   else
   24548     {
   24549       unsigned long int i = ulongval ();
   24550       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   24551 	return 1;
   24552       fprintf (f, "%lu\n", i);
   24553     }
   24554   return ferror (f) || fclose (f) != 0;
   24555 
   24556   ;
   24557   return 0;
   24558 }
   24559 _ACEOF
   24560 rm -f conftest$ac_exeext
   24561 if { (ac_try="$ac_link"
   24562 case "(($ac_try" in
   24563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24564   *) ac_try_echo=$ac_try;;
   24565 esac
   24566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24567   (eval "$ac_link") 2>&5
   24568   ac_status=$?
   24569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24570   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   24571   { (case "(($ac_try" in
   24572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24573   *) ac_try_echo=$ac_try;;
   24574 esac
   24575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24576   (eval "$ac_try") 2>&5
   24577   ac_status=$?
   24578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24579   (exit $ac_status); }; }; then
   24580   ac_cv_sizeof_short_int=`cat conftest.val`
   24581 else
   24582   echo "$as_me: program exited with status $ac_status" >&5
   24583 echo "$as_me: failed program was:" >&5
   24584 sed 's/^/| /' conftest.$ac_ext >&5
   24585 
   24586 ( exit $ac_status )
   24587 if test "$ac_cv_type_short_int" = yes; then
   24588      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
   24589 See \`config.log' for more details." >&5
   24590 echo "$as_me: error: cannot compute sizeof (short int)
   24591 See \`config.log' for more details." >&2;}
   24592    { (exit 77); exit 77; }; }
   24593    else
   24594      ac_cv_sizeof_short_int=0
   24595    fi
   24596 fi
   24597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   24598 fi
   24599 rm -f conftest.val
   24600 fi
   24601 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
   24602 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
   24603 
   24604 
   24605 
   24606 cat >>confdefs.h <<_ACEOF
   24607 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
   24608 _ACEOF
   24609 
   24610 
   24611 { echo "$as_me:$LINENO: checking for int" >&5
   24612 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
   24613 if test "${ac_cv_type_int+set}" = set; then
   24614   echo $ECHO_N "(cached) $ECHO_C" >&6
   24615 else
   24616   cat >conftest.$ac_ext <<_ACEOF
   24617 /* confdefs.h.  */
   24618 _ACEOF
   24619 cat confdefs.h >>conftest.$ac_ext
   24620 cat >>conftest.$ac_ext <<_ACEOF
   24621 /* end confdefs.h.  */
   24622 $ac_includes_default
   24623 typedef int ac__type_new_;
   24624 int
   24625 main ()
   24626 {
   24627 if ((ac__type_new_ *) 0)
   24628   return 0;
   24629 if (sizeof (ac__type_new_))
   24630   return 0;
   24631   ;
   24632   return 0;
   24633 }
   24634 _ACEOF
   24635 rm -f conftest.$ac_objext
   24636 if { (ac_try="$ac_compile"
   24637 case "(($ac_try" in
   24638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24639   *) ac_try_echo=$ac_try;;
   24640 esac
   24641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24642   (eval "$ac_compile") 2>conftest.er1
   24643   ac_status=$?
   24644   grep -v '^ *+' conftest.er1 >conftest.err
   24645   rm -f conftest.er1
   24646   cat conftest.err >&5
   24647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24648   (exit $ac_status); } && {
   24649 	 test -z "$ac_c_werror_flag" ||
   24650 	 test ! -s conftest.err
   24651        } && test -s conftest.$ac_objext; then
   24652   ac_cv_type_int=yes
   24653 else
   24654   echo "$as_me: failed program was:" >&5
   24655 sed 's/^/| /' conftest.$ac_ext >&5
   24656 
   24657 	ac_cv_type_int=no
   24658 fi
   24659 
   24660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24661 fi
   24662 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
   24663 echo "${ECHO_T}$ac_cv_type_int" >&6; }
   24664 
   24665 # The cast to long int works around a bug in the HP C Compiler
   24666 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   24667 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   24668 # This bug is HP SR number 8606223364.
   24669 { echo "$as_me:$LINENO: checking size of int" >&5
   24670 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
   24671 if test "${ac_cv_sizeof_int+set}" = set; then
   24672   echo $ECHO_N "(cached) $ECHO_C" >&6
   24673 else
   24674   if test "$cross_compiling" = yes; then
   24675   # Depending upon the size, compute the lo and hi bounds.
   24676 cat >conftest.$ac_ext <<_ACEOF
   24677 /* confdefs.h.  */
   24678 _ACEOF
   24679 cat confdefs.h >>conftest.$ac_ext
   24680 cat >>conftest.$ac_ext <<_ACEOF
   24681 /* end confdefs.h.  */
   24682 $ac_includes_default
   24683    typedef int ac__type_sizeof_;
   24684 int
   24685 main ()
   24686 {
   24687 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
   24688 test_array [0] = 0
   24689 
   24690   ;
   24691   return 0;
   24692 }
   24693 _ACEOF
   24694 rm -f conftest.$ac_objext
   24695 if { (ac_try="$ac_compile"
   24696 case "(($ac_try" in
   24697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24698   *) ac_try_echo=$ac_try;;
   24699 esac
   24700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24701   (eval "$ac_compile") 2>conftest.er1
   24702   ac_status=$?
   24703   grep -v '^ *+' conftest.er1 >conftest.err
   24704   rm -f conftest.er1
   24705   cat conftest.err >&5
   24706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24707   (exit $ac_status); } && {
   24708 	 test -z "$ac_c_werror_flag" ||
   24709 	 test ! -s conftest.err
   24710        } && test -s conftest.$ac_objext; then
   24711   ac_lo=0 ac_mid=0
   24712   while :; do
   24713     cat >conftest.$ac_ext <<_ACEOF
   24714 /* confdefs.h.  */
   24715 _ACEOF
   24716 cat confdefs.h >>conftest.$ac_ext
   24717 cat >>conftest.$ac_ext <<_ACEOF
   24718 /* end confdefs.h.  */
   24719 $ac_includes_default
   24720    typedef int ac__type_sizeof_;
   24721 int
   24722 main ()
   24723 {
   24724 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   24725 test_array [0] = 0
   24726 
   24727   ;
   24728   return 0;
   24729 }
   24730 _ACEOF
   24731 rm -f conftest.$ac_objext
   24732 if { (ac_try="$ac_compile"
   24733 case "(($ac_try" in
   24734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24735   *) ac_try_echo=$ac_try;;
   24736 esac
   24737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24738   (eval "$ac_compile") 2>conftest.er1
   24739   ac_status=$?
   24740   grep -v '^ *+' conftest.er1 >conftest.err
   24741   rm -f conftest.er1
   24742   cat conftest.err >&5
   24743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24744   (exit $ac_status); } && {
   24745 	 test -z "$ac_c_werror_flag" ||
   24746 	 test ! -s conftest.err
   24747        } && test -s conftest.$ac_objext; then
   24748   ac_hi=$ac_mid; break
   24749 else
   24750   echo "$as_me: failed program was:" >&5
   24751 sed 's/^/| /' conftest.$ac_ext >&5
   24752 
   24753 	ac_lo=`expr $ac_mid + 1`
   24754 			if test $ac_lo -le $ac_mid; then
   24755 			  ac_lo= ac_hi=
   24756 			  break
   24757 			fi
   24758 			ac_mid=`expr 2 '*' $ac_mid + 1`
   24759 fi
   24760 
   24761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24762   done
   24763 else
   24764   echo "$as_me: failed program was:" >&5
   24765 sed 's/^/| /' conftest.$ac_ext >&5
   24766 
   24767 	cat >conftest.$ac_ext <<_ACEOF
   24768 /* confdefs.h.  */
   24769 _ACEOF
   24770 cat confdefs.h >>conftest.$ac_ext
   24771 cat >>conftest.$ac_ext <<_ACEOF
   24772 /* end confdefs.h.  */
   24773 $ac_includes_default
   24774    typedef int ac__type_sizeof_;
   24775 int
   24776 main ()
   24777 {
   24778 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
   24779 test_array [0] = 0
   24780 
   24781   ;
   24782   return 0;
   24783 }
   24784 _ACEOF
   24785 rm -f conftest.$ac_objext
   24786 if { (ac_try="$ac_compile"
   24787 case "(($ac_try" in
   24788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24789   *) ac_try_echo=$ac_try;;
   24790 esac
   24791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24792   (eval "$ac_compile") 2>conftest.er1
   24793   ac_status=$?
   24794   grep -v '^ *+' conftest.er1 >conftest.err
   24795   rm -f conftest.er1
   24796   cat conftest.err >&5
   24797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24798   (exit $ac_status); } && {
   24799 	 test -z "$ac_c_werror_flag" ||
   24800 	 test ! -s conftest.err
   24801        } && test -s conftest.$ac_objext; then
   24802   ac_hi=-1 ac_mid=-1
   24803   while :; do
   24804     cat >conftest.$ac_ext <<_ACEOF
   24805 /* confdefs.h.  */
   24806 _ACEOF
   24807 cat confdefs.h >>conftest.$ac_ext
   24808 cat >>conftest.$ac_ext <<_ACEOF
   24809 /* end confdefs.h.  */
   24810 $ac_includes_default
   24811    typedef int ac__type_sizeof_;
   24812 int
   24813 main ()
   24814 {
   24815 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
   24816 test_array [0] = 0
   24817 
   24818   ;
   24819   return 0;
   24820 }
   24821 _ACEOF
   24822 rm -f conftest.$ac_objext
   24823 if { (ac_try="$ac_compile"
   24824 case "(($ac_try" in
   24825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24826   *) ac_try_echo=$ac_try;;
   24827 esac
   24828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24829   (eval "$ac_compile") 2>conftest.er1
   24830   ac_status=$?
   24831   grep -v '^ *+' conftest.er1 >conftest.err
   24832   rm -f conftest.er1
   24833   cat conftest.err >&5
   24834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24835   (exit $ac_status); } && {
   24836 	 test -z "$ac_c_werror_flag" ||
   24837 	 test ! -s conftest.err
   24838        } && test -s conftest.$ac_objext; then
   24839   ac_lo=$ac_mid; break
   24840 else
   24841   echo "$as_me: failed program was:" >&5
   24842 sed 's/^/| /' conftest.$ac_ext >&5
   24843 
   24844 	ac_hi=`expr '(' $ac_mid ')' - 1`
   24845 			if test $ac_mid -le $ac_hi; then
   24846 			  ac_lo= ac_hi=
   24847 			  break
   24848 			fi
   24849 			ac_mid=`expr 2 '*' $ac_mid`
   24850 fi
   24851 
   24852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24853   done
   24854 else
   24855   echo "$as_me: failed program was:" >&5
   24856 sed 's/^/| /' conftest.$ac_ext >&5
   24857 
   24858 	ac_lo= ac_hi=
   24859 fi
   24860 
   24861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24862 fi
   24863 
   24864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24865 # Binary search between lo and hi bounds.
   24866 while test "x$ac_lo" != "x$ac_hi"; do
   24867   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
   24868   cat >conftest.$ac_ext <<_ACEOF
   24869 /* confdefs.h.  */
   24870 _ACEOF
   24871 cat confdefs.h >>conftest.$ac_ext
   24872 cat >>conftest.$ac_ext <<_ACEOF
   24873 /* end confdefs.h.  */
   24874 $ac_includes_default
   24875    typedef int ac__type_sizeof_;
   24876 int
   24877 main ()
   24878 {
   24879 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   24880 test_array [0] = 0
   24881 
   24882   ;
   24883   return 0;
   24884 }
   24885 _ACEOF
   24886 rm -f conftest.$ac_objext
   24887 if { (ac_try="$ac_compile"
   24888 case "(($ac_try" in
   24889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24890   *) ac_try_echo=$ac_try;;
   24891 esac
   24892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24893   (eval "$ac_compile") 2>conftest.er1
   24894   ac_status=$?
   24895   grep -v '^ *+' conftest.er1 >conftest.err
   24896   rm -f conftest.er1
   24897   cat conftest.err >&5
   24898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24899   (exit $ac_status); } && {
   24900 	 test -z "$ac_c_werror_flag" ||
   24901 	 test ! -s conftest.err
   24902        } && test -s conftest.$ac_objext; then
   24903   ac_hi=$ac_mid
   24904 else
   24905   echo "$as_me: failed program was:" >&5
   24906 sed 's/^/| /' conftest.$ac_ext >&5
   24907 
   24908 	ac_lo=`expr '(' $ac_mid ')' + 1`
   24909 fi
   24910 
   24911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24912 done
   24913 case $ac_lo in
   24914 ?*) ac_cv_sizeof_int=$ac_lo;;
   24915 '') if test "$ac_cv_type_int" = yes; then
   24916      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
   24917 See \`config.log' for more details." >&5
   24918 echo "$as_me: error: cannot compute sizeof (int)
   24919 See \`config.log' for more details." >&2;}
   24920    { (exit 77); exit 77; }; }
   24921    else
   24922      ac_cv_sizeof_int=0
   24923    fi ;;
   24924 esac
   24925 else
   24926   cat >conftest.$ac_ext <<_ACEOF
   24927 /* confdefs.h.  */
   24928 _ACEOF
   24929 cat confdefs.h >>conftest.$ac_ext
   24930 cat >>conftest.$ac_ext <<_ACEOF
   24931 /* end confdefs.h.  */
   24932 $ac_includes_default
   24933    typedef int ac__type_sizeof_;
   24934 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
   24935 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
   24936 #include <stdio.h>
   24937 #include <stdlib.h>
   24938 int
   24939 main ()
   24940 {
   24941 
   24942   FILE *f = fopen ("conftest.val", "w");
   24943   if (! f)
   24944     return 1;
   24945   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
   24946     {
   24947       long int i = longval ();
   24948       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   24949 	return 1;
   24950       fprintf (f, "%ld\n", i);
   24951     }
   24952   else
   24953     {
   24954       unsigned long int i = ulongval ();
   24955       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   24956 	return 1;
   24957       fprintf (f, "%lu\n", i);
   24958     }
   24959   return ferror (f) || fclose (f) != 0;
   24960 
   24961   ;
   24962   return 0;
   24963 }
   24964 _ACEOF
   24965 rm -f conftest$ac_exeext
   24966 if { (ac_try="$ac_link"
   24967 case "(($ac_try" in
   24968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24969   *) ac_try_echo=$ac_try;;
   24970 esac
   24971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24972   (eval "$ac_link") 2>&5
   24973   ac_status=$?
   24974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24975   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   24976   { (case "(($ac_try" in
   24977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24978   *) ac_try_echo=$ac_try;;
   24979 esac
   24980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24981   (eval "$ac_try") 2>&5
   24982   ac_status=$?
   24983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24984   (exit $ac_status); }; }; then
   24985   ac_cv_sizeof_int=`cat conftest.val`
   24986 else
   24987   echo "$as_me: program exited with status $ac_status" >&5
   24988 echo "$as_me: failed program was:" >&5
   24989 sed 's/^/| /' conftest.$ac_ext >&5
   24990 
   24991 ( exit $ac_status )
   24992 if test "$ac_cv_type_int" = yes; then
   24993      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
   24994 See \`config.log' for more details." >&5
   24995 echo "$as_me: error: cannot compute sizeof (int)
   24996 See \`config.log' for more details." >&2;}
   24997    { (exit 77); exit 77; }; }
   24998    else
   24999      ac_cv_sizeof_int=0
   25000    fi
   25001 fi
   25002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   25003 fi
   25004 rm -f conftest.val
   25005 fi
   25006 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
   25007 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
   25008 
   25009 
   25010 
   25011 cat >>confdefs.h <<_ACEOF
   25012 #define SIZEOF_INT $ac_cv_sizeof_int
   25013 _ACEOF
   25014 
   25015 
   25016 { echo "$as_me:$LINENO: checking for long int" >&5
   25017 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
   25018 if test "${ac_cv_type_long_int+set}" = set; then
   25019   echo $ECHO_N "(cached) $ECHO_C" >&6
   25020 else
   25021   cat >conftest.$ac_ext <<_ACEOF
   25022 /* confdefs.h.  */
   25023 _ACEOF
   25024 cat confdefs.h >>conftest.$ac_ext
   25025 cat >>conftest.$ac_ext <<_ACEOF
   25026 /* end confdefs.h.  */
   25027 $ac_includes_default
   25028 typedef long int ac__type_new_;
   25029 int
   25030 main ()
   25031 {
   25032 if ((ac__type_new_ *) 0)
   25033   return 0;
   25034 if (sizeof (ac__type_new_))
   25035   return 0;
   25036   ;
   25037   return 0;
   25038 }
   25039 _ACEOF
   25040 rm -f conftest.$ac_objext
   25041 if { (ac_try="$ac_compile"
   25042 case "(($ac_try" in
   25043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25044   *) ac_try_echo=$ac_try;;
   25045 esac
   25046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25047   (eval "$ac_compile") 2>conftest.er1
   25048   ac_status=$?
   25049   grep -v '^ *+' conftest.er1 >conftest.err
   25050   rm -f conftest.er1
   25051   cat conftest.err >&5
   25052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25053   (exit $ac_status); } && {
   25054 	 test -z "$ac_c_werror_flag" ||
   25055 	 test ! -s conftest.err
   25056        } && test -s conftest.$ac_objext; then
   25057   ac_cv_type_long_int=yes
   25058 else
   25059   echo "$as_me: failed program was:" >&5
   25060 sed 's/^/| /' conftest.$ac_ext >&5
   25061 
   25062 	ac_cv_type_long_int=no
   25063 fi
   25064 
   25065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25066 fi
   25067 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
   25068 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
   25069 
   25070 # The cast to long int works around a bug in the HP C Compiler
   25071 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   25072 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   25073 # This bug is HP SR number 8606223364.
   25074 { echo "$as_me:$LINENO: checking size of long int" >&5
   25075 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
   25076 if test "${ac_cv_sizeof_long_int+set}" = set; then
   25077   echo $ECHO_N "(cached) $ECHO_C" >&6
   25078 else
   25079   if test "$cross_compiling" = yes; then
   25080   # Depending upon the size, compute the lo and hi bounds.
   25081 cat >conftest.$ac_ext <<_ACEOF
   25082 /* confdefs.h.  */
   25083 _ACEOF
   25084 cat confdefs.h >>conftest.$ac_ext
   25085 cat >>conftest.$ac_ext <<_ACEOF
   25086 /* end confdefs.h.  */
   25087 $ac_includes_default
   25088    typedef long int ac__type_sizeof_;
   25089 int
   25090 main ()
   25091 {
   25092 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
   25093 test_array [0] = 0
   25094 
   25095   ;
   25096   return 0;
   25097 }
   25098 _ACEOF
   25099 rm -f conftest.$ac_objext
   25100 if { (ac_try="$ac_compile"
   25101 case "(($ac_try" in
   25102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25103   *) ac_try_echo=$ac_try;;
   25104 esac
   25105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25106   (eval "$ac_compile") 2>conftest.er1
   25107   ac_status=$?
   25108   grep -v '^ *+' conftest.er1 >conftest.err
   25109   rm -f conftest.er1
   25110   cat conftest.err >&5
   25111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25112   (exit $ac_status); } && {
   25113 	 test -z "$ac_c_werror_flag" ||
   25114 	 test ! -s conftest.err
   25115        } && test -s conftest.$ac_objext; then
   25116   ac_lo=0 ac_mid=0
   25117   while :; do
   25118     cat >conftest.$ac_ext <<_ACEOF
   25119 /* confdefs.h.  */
   25120 _ACEOF
   25121 cat confdefs.h >>conftest.$ac_ext
   25122 cat >>conftest.$ac_ext <<_ACEOF
   25123 /* end confdefs.h.  */
   25124 $ac_includes_default
   25125    typedef long int ac__type_sizeof_;
   25126 int
   25127 main ()
   25128 {
   25129 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   25130 test_array [0] = 0
   25131 
   25132   ;
   25133   return 0;
   25134 }
   25135 _ACEOF
   25136 rm -f conftest.$ac_objext
   25137 if { (ac_try="$ac_compile"
   25138 case "(($ac_try" in
   25139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25140   *) ac_try_echo=$ac_try;;
   25141 esac
   25142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25143   (eval "$ac_compile") 2>conftest.er1
   25144   ac_status=$?
   25145   grep -v '^ *+' conftest.er1 >conftest.err
   25146   rm -f conftest.er1
   25147   cat conftest.err >&5
   25148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25149   (exit $ac_status); } && {
   25150 	 test -z "$ac_c_werror_flag" ||
   25151 	 test ! -s conftest.err
   25152        } && test -s conftest.$ac_objext; then
   25153   ac_hi=$ac_mid; break
   25154 else
   25155   echo "$as_me: failed program was:" >&5
   25156 sed 's/^/| /' conftest.$ac_ext >&5
   25157 
   25158 	ac_lo=`expr $ac_mid + 1`
   25159 			if test $ac_lo -le $ac_mid; then
   25160 			  ac_lo= ac_hi=
   25161 			  break
   25162 			fi
   25163 			ac_mid=`expr 2 '*' $ac_mid + 1`
   25164 fi
   25165 
   25166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25167   done
   25168 else
   25169   echo "$as_me: failed program was:" >&5
   25170 sed 's/^/| /' conftest.$ac_ext >&5
   25171 
   25172 	cat >conftest.$ac_ext <<_ACEOF
   25173 /* confdefs.h.  */
   25174 _ACEOF
   25175 cat confdefs.h >>conftest.$ac_ext
   25176 cat >>conftest.$ac_ext <<_ACEOF
   25177 /* end confdefs.h.  */
   25178 $ac_includes_default
   25179    typedef long int ac__type_sizeof_;
   25180 int
   25181 main ()
   25182 {
   25183 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
   25184 test_array [0] = 0
   25185 
   25186   ;
   25187   return 0;
   25188 }
   25189 _ACEOF
   25190 rm -f conftest.$ac_objext
   25191 if { (ac_try="$ac_compile"
   25192 case "(($ac_try" in
   25193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25194   *) ac_try_echo=$ac_try;;
   25195 esac
   25196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25197   (eval "$ac_compile") 2>conftest.er1
   25198   ac_status=$?
   25199   grep -v '^ *+' conftest.er1 >conftest.err
   25200   rm -f conftest.er1
   25201   cat conftest.err >&5
   25202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25203   (exit $ac_status); } && {
   25204 	 test -z "$ac_c_werror_flag" ||
   25205 	 test ! -s conftest.err
   25206        } && test -s conftest.$ac_objext; then
   25207   ac_hi=-1 ac_mid=-1
   25208   while :; do
   25209     cat >conftest.$ac_ext <<_ACEOF
   25210 /* confdefs.h.  */
   25211 _ACEOF
   25212 cat confdefs.h >>conftest.$ac_ext
   25213 cat >>conftest.$ac_ext <<_ACEOF
   25214 /* end confdefs.h.  */
   25215 $ac_includes_default
   25216    typedef long int ac__type_sizeof_;
   25217 int
   25218 main ()
   25219 {
   25220 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
   25221 test_array [0] = 0
   25222 
   25223   ;
   25224   return 0;
   25225 }
   25226 _ACEOF
   25227 rm -f conftest.$ac_objext
   25228 if { (ac_try="$ac_compile"
   25229 case "(($ac_try" in
   25230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25231   *) ac_try_echo=$ac_try;;
   25232 esac
   25233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25234   (eval "$ac_compile") 2>conftest.er1
   25235   ac_status=$?
   25236   grep -v '^ *+' conftest.er1 >conftest.err
   25237   rm -f conftest.er1
   25238   cat conftest.err >&5
   25239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25240   (exit $ac_status); } && {
   25241 	 test -z "$ac_c_werror_flag" ||
   25242 	 test ! -s conftest.err
   25243        } && test -s conftest.$ac_objext; then
   25244   ac_lo=$ac_mid; break
   25245 else
   25246   echo "$as_me: failed program was:" >&5
   25247 sed 's/^/| /' conftest.$ac_ext >&5
   25248 
   25249 	ac_hi=`expr '(' $ac_mid ')' - 1`
   25250 			if test $ac_mid -le $ac_hi; then
   25251 			  ac_lo= ac_hi=
   25252 			  break
   25253 			fi
   25254 			ac_mid=`expr 2 '*' $ac_mid`
   25255 fi
   25256 
   25257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25258   done
   25259 else
   25260   echo "$as_me: failed program was:" >&5
   25261 sed 's/^/| /' conftest.$ac_ext >&5
   25262 
   25263 	ac_lo= ac_hi=
   25264 fi
   25265 
   25266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25267 fi
   25268 
   25269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25270 # Binary search between lo and hi bounds.
   25271 while test "x$ac_lo" != "x$ac_hi"; do
   25272   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
   25273   cat >conftest.$ac_ext <<_ACEOF
   25274 /* confdefs.h.  */
   25275 _ACEOF
   25276 cat confdefs.h >>conftest.$ac_ext
   25277 cat >>conftest.$ac_ext <<_ACEOF
   25278 /* end confdefs.h.  */
   25279 $ac_includes_default
   25280    typedef long int ac__type_sizeof_;
   25281 int
   25282 main ()
   25283 {
   25284 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   25285 test_array [0] = 0
   25286 
   25287   ;
   25288   return 0;
   25289 }
   25290 _ACEOF
   25291 rm -f conftest.$ac_objext
   25292 if { (ac_try="$ac_compile"
   25293 case "(($ac_try" in
   25294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25295   *) ac_try_echo=$ac_try;;
   25296 esac
   25297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25298   (eval "$ac_compile") 2>conftest.er1
   25299   ac_status=$?
   25300   grep -v '^ *+' conftest.er1 >conftest.err
   25301   rm -f conftest.er1
   25302   cat conftest.err >&5
   25303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25304   (exit $ac_status); } && {
   25305 	 test -z "$ac_c_werror_flag" ||
   25306 	 test ! -s conftest.err
   25307        } && test -s conftest.$ac_objext; then
   25308   ac_hi=$ac_mid
   25309 else
   25310   echo "$as_me: failed program was:" >&5
   25311 sed 's/^/| /' conftest.$ac_ext >&5
   25312 
   25313 	ac_lo=`expr '(' $ac_mid ')' + 1`
   25314 fi
   25315 
   25316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25317 done
   25318 case $ac_lo in
   25319 ?*) ac_cv_sizeof_long_int=$ac_lo;;
   25320 '') if test "$ac_cv_type_long_int" = yes; then
   25321      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
   25322 See \`config.log' for more details." >&5
   25323 echo "$as_me: error: cannot compute sizeof (long int)
   25324 See \`config.log' for more details." >&2;}
   25325    { (exit 77); exit 77; }; }
   25326    else
   25327      ac_cv_sizeof_long_int=0
   25328    fi ;;
   25329 esac
   25330 else
   25331   cat >conftest.$ac_ext <<_ACEOF
   25332 /* confdefs.h.  */
   25333 _ACEOF
   25334 cat confdefs.h >>conftest.$ac_ext
   25335 cat >>conftest.$ac_ext <<_ACEOF
   25336 /* end confdefs.h.  */
   25337 $ac_includes_default
   25338    typedef long int ac__type_sizeof_;
   25339 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
   25340 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
   25341 #include <stdio.h>
   25342 #include <stdlib.h>
   25343 int
   25344 main ()
   25345 {
   25346 
   25347   FILE *f = fopen ("conftest.val", "w");
   25348   if (! f)
   25349     return 1;
   25350   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
   25351     {
   25352       long int i = longval ();
   25353       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   25354 	return 1;
   25355       fprintf (f, "%ld\n", i);
   25356     }
   25357   else
   25358     {
   25359       unsigned long int i = ulongval ();
   25360       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   25361 	return 1;
   25362       fprintf (f, "%lu\n", i);
   25363     }
   25364   return ferror (f) || fclose (f) != 0;
   25365 
   25366   ;
   25367   return 0;
   25368 }
   25369 _ACEOF
   25370 rm -f conftest$ac_exeext
   25371 if { (ac_try="$ac_link"
   25372 case "(($ac_try" in
   25373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25374   *) ac_try_echo=$ac_try;;
   25375 esac
   25376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25377   (eval "$ac_link") 2>&5
   25378   ac_status=$?
   25379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25380   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   25381   { (case "(($ac_try" in
   25382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25383   *) ac_try_echo=$ac_try;;
   25384 esac
   25385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25386   (eval "$ac_try") 2>&5
   25387   ac_status=$?
   25388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25389   (exit $ac_status); }; }; then
   25390   ac_cv_sizeof_long_int=`cat conftest.val`
   25391 else
   25392   echo "$as_me: program exited with status $ac_status" >&5
   25393 echo "$as_me: failed program was:" >&5
   25394 sed 's/^/| /' conftest.$ac_ext >&5
   25395 
   25396 ( exit $ac_status )
   25397 if test "$ac_cv_type_long_int" = yes; then
   25398      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
   25399 See \`config.log' for more details." >&5
   25400 echo "$as_me: error: cannot compute sizeof (long int)
   25401 See \`config.log' for more details." >&2;}
   25402    { (exit 77); exit 77; }; }
   25403    else
   25404      ac_cv_sizeof_long_int=0
   25405    fi
   25406 fi
   25407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   25408 fi
   25409 rm -f conftest.val
   25410 fi
   25411 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
   25412 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
   25413 
   25414 
   25415 
   25416 cat >>confdefs.h <<_ACEOF
   25417 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
   25418 _ACEOF
   25419 
   25420 
   25421 { echo "$as_me:$LINENO: checking for long long int" >&5
   25422 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
   25423 if test "${ac_cv_type_long_long_int+set}" = set; then
   25424   echo $ECHO_N "(cached) $ECHO_C" >&6
   25425 else
   25426   cat >conftest.$ac_ext <<_ACEOF
   25427 /* confdefs.h.  */
   25428 _ACEOF
   25429 cat confdefs.h >>conftest.$ac_ext
   25430 cat >>conftest.$ac_ext <<_ACEOF
   25431 /* end confdefs.h.  */
   25432 $ac_includes_default
   25433 typedef long long int ac__type_new_;
   25434 int
   25435 main ()
   25436 {
   25437 if ((ac__type_new_ *) 0)
   25438   return 0;
   25439 if (sizeof (ac__type_new_))
   25440   return 0;
   25441   ;
   25442   return 0;
   25443 }
   25444 _ACEOF
   25445 rm -f conftest.$ac_objext
   25446 if { (ac_try="$ac_compile"
   25447 case "(($ac_try" in
   25448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25449   *) ac_try_echo=$ac_try;;
   25450 esac
   25451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25452   (eval "$ac_compile") 2>conftest.er1
   25453   ac_status=$?
   25454   grep -v '^ *+' conftest.er1 >conftest.err
   25455   rm -f conftest.er1
   25456   cat conftest.err >&5
   25457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25458   (exit $ac_status); } && {
   25459 	 test -z "$ac_c_werror_flag" ||
   25460 	 test ! -s conftest.err
   25461        } && test -s conftest.$ac_objext; then
   25462   ac_cv_type_long_long_int=yes
   25463 else
   25464   echo "$as_me: failed program was:" >&5
   25465 sed 's/^/| /' conftest.$ac_ext >&5
   25466 
   25467 	ac_cv_type_long_long_int=no
   25468 fi
   25469 
   25470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25471 fi
   25472 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
   25473 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
   25474 
   25475 # The cast to long int works around a bug in the HP C Compiler
   25476 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   25477 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   25478 # This bug is HP SR number 8606223364.
   25479 { echo "$as_me:$LINENO: checking size of long long int" >&5
   25480 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
   25481 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
   25482   echo $ECHO_N "(cached) $ECHO_C" >&6
   25483 else
   25484   if test "$cross_compiling" = yes; then
   25485   # Depending upon the size, compute the lo and hi bounds.
   25486 cat >conftest.$ac_ext <<_ACEOF
   25487 /* confdefs.h.  */
   25488 _ACEOF
   25489 cat confdefs.h >>conftest.$ac_ext
   25490 cat >>conftest.$ac_ext <<_ACEOF
   25491 /* end confdefs.h.  */
   25492 $ac_includes_default
   25493    typedef long long int ac__type_sizeof_;
   25494 int
   25495 main ()
   25496 {
   25497 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
   25498 test_array [0] = 0
   25499 
   25500   ;
   25501   return 0;
   25502 }
   25503 _ACEOF
   25504 rm -f conftest.$ac_objext
   25505 if { (ac_try="$ac_compile"
   25506 case "(($ac_try" in
   25507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25508   *) ac_try_echo=$ac_try;;
   25509 esac
   25510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25511   (eval "$ac_compile") 2>conftest.er1
   25512   ac_status=$?
   25513   grep -v '^ *+' conftest.er1 >conftest.err
   25514   rm -f conftest.er1
   25515   cat conftest.err >&5
   25516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25517   (exit $ac_status); } && {
   25518 	 test -z "$ac_c_werror_flag" ||
   25519 	 test ! -s conftest.err
   25520        } && test -s conftest.$ac_objext; then
   25521   ac_lo=0 ac_mid=0
   25522   while :; do
   25523     cat >conftest.$ac_ext <<_ACEOF
   25524 /* confdefs.h.  */
   25525 _ACEOF
   25526 cat confdefs.h >>conftest.$ac_ext
   25527 cat >>conftest.$ac_ext <<_ACEOF
   25528 /* end confdefs.h.  */
   25529 $ac_includes_default
   25530    typedef long long int ac__type_sizeof_;
   25531 int
   25532 main ()
   25533 {
   25534 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   25535 test_array [0] = 0
   25536 
   25537   ;
   25538   return 0;
   25539 }
   25540 _ACEOF
   25541 rm -f conftest.$ac_objext
   25542 if { (ac_try="$ac_compile"
   25543 case "(($ac_try" in
   25544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25545   *) ac_try_echo=$ac_try;;
   25546 esac
   25547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25548   (eval "$ac_compile") 2>conftest.er1
   25549   ac_status=$?
   25550   grep -v '^ *+' conftest.er1 >conftest.err
   25551   rm -f conftest.er1
   25552   cat conftest.err >&5
   25553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25554   (exit $ac_status); } && {
   25555 	 test -z "$ac_c_werror_flag" ||
   25556 	 test ! -s conftest.err
   25557        } && test -s conftest.$ac_objext; then
   25558   ac_hi=$ac_mid; break
   25559 else
   25560   echo "$as_me: failed program was:" >&5
   25561 sed 's/^/| /' conftest.$ac_ext >&5
   25562 
   25563 	ac_lo=`expr $ac_mid + 1`
   25564 			if test $ac_lo -le $ac_mid; then
   25565 			  ac_lo= ac_hi=
   25566 			  break
   25567 			fi
   25568 			ac_mid=`expr 2 '*' $ac_mid + 1`
   25569 fi
   25570 
   25571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25572   done
   25573 else
   25574   echo "$as_me: failed program was:" >&5
   25575 sed 's/^/| /' conftest.$ac_ext >&5
   25576 
   25577 	cat >conftest.$ac_ext <<_ACEOF
   25578 /* confdefs.h.  */
   25579 _ACEOF
   25580 cat confdefs.h >>conftest.$ac_ext
   25581 cat >>conftest.$ac_ext <<_ACEOF
   25582 /* end confdefs.h.  */
   25583 $ac_includes_default
   25584    typedef long long int ac__type_sizeof_;
   25585 int
   25586 main ()
   25587 {
   25588 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
   25589 test_array [0] = 0
   25590 
   25591   ;
   25592   return 0;
   25593 }
   25594 _ACEOF
   25595 rm -f conftest.$ac_objext
   25596 if { (ac_try="$ac_compile"
   25597 case "(($ac_try" in
   25598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25599   *) ac_try_echo=$ac_try;;
   25600 esac
   25601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25602   (eval "$ac_compile") 2>conftest.er1
   25603   ac_status=$?
   25604   grep -v '^ *+' conftest.er1 >conftest.err
   25605   rm -f conftest.er1
   25606   cat conftest.err >&5
   25607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25608   (exit $ac_status); } && {
   25609 	 test -z "$ac_c_werror_flag" ||
   25610 	 test ! -s conftest.err
   25611        } && test -s conftest.$ac_objext; then
   25612   ac_hi=-1 ac_mid=-1
   25613   while :; do
   25614     cat >conftest.$ac_ext <<_ACEOF
   25615 /* confdefs.h.  */
   25616 _ACEOF
   25617 cat confdefs.h >>conftest.$ac_ext
   25618 cat >>conftest.$ac_ext <<_ACEOF
   25619 /* end confdefs.h.  */
   25620 $ac_includes_default
   25621    typedef long long int ac__type_sizeof_;
   25622 int
   25623 main ()
   25624 {
   25625 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
   25626 test_array [0] = 0
   25627 
   25628   ;
   25629   return 0;
   25630 }
   25631 _ACEOF
   25632 rm -f conftest.$ac_objext
   25633 if { (ac_try="$ac_compile"
   25634 case "(($ac_try" in
   25635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25636   *) ac_try_echo=$ac_try;;
   25637 esac
   25638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25639   (eval "$ac_compile") 2>conftest.er1
   25640   ac_status=$?
   25641   grep -v '^ *+' conftest.er1 >conftest.err
   25642   rm -f conftest.er1
   25643   cat conftest.err >&5
   25644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25645   (exit $ac_status); } && {
   25646 	 test -z "$ac_c_werror_flag" ||
   25647 	 test ! -s conftest.err
   25648        } && test -s conftest.$ac_objext; then
   25649   ac_lo=$ac_mid; break
   25650 else
   25651   echo "$as_me: failed program was:" >&5
   25652 sed 's/^/| /' conftest.$ac_ext >&5
   25653 
   25654 	ac_hi=`expr '(' $ac_mid ')' - 1`
   25655 			if test $ac_mid -le $ac_hi; then
   25656 			  ac_lo= ac_hi=
   25657 			  break
   25658 			fi
   25659 			ac_mid=`expr 2 '*' $ac_mid`
   25660 fi
   25661 
   25662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25663   done
   25664 else
   25665   echo "$as_me: failed program was:" >&5
   25666 sed 's/^/| /' conftest.$ac_ext >&5
   25667 
   25668 	ac_lo= ac_hi=
   25669 fi
   25670 
   25671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25672 fi
   25673 
   25674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25675 # Binary search between lo and hi bounds.
   25676 while test "x$ac_lo" != "x$ac_hi"; do
   25677   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
   25678   cat >conftest.$ac_ext <<_ACEOF
   25679 /* confdefs.h.  */
   25680 _ACEOF
   25681 cat confdefs.h >>conftest.$ac_ext
   25682 cat >>conftest.$ac_ext <<_ACEOF
   25683 /* end confdefs.h.  */
   25684 $ac_includes_default
   25685    typedef long long int ac__type_sizeof_;
   25686 int
   25687 main ()
   25688 {
   25689 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   25690 test_array [0] = 0
   25691 
   25692   ;
   25693   return 0;
   25694 }
   25695 _ACEOF
   25696 rm -f conftest.$ac_objext
   25697 if { (ac_try="$ac_compile"
   25698 case "(($ac_try" in
   25699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25700   *) ac_try_echo=$ac_try;;
   25701 esac
   25702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25703   (eval "$ac_compile") 2>conftest.er1
   25704   ac_status=$?
   25705   grep -v '^ *+' conftest.er1 >conftest.err
   25706   rm -f conftest.er1
   25707   cat conftest.err >&5
   25708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25709   (exit $ac_status); } && {
   25710 	 test -z "$ac_c_werror_flag" ||
   25711 	 test ! -s conftest.err
   25712        } && test -s conftest.$ac_objext; then
   25713   ac_hi=$ac_mid
   25714 else
   25715   echo "$as_me: failed program was:" >&5
   25716 sed 's/^/| /' conftest.$ac_ext >&5
   25717 
   25718 	ac_lo=`expr '(' $ac_mid ')' + 1`
   25719 fi
   25720 
   25721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25722 done
   25723 case $ac_lo in
   25724 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
   25725 '') if test "$ac_cv_type_long_long_int" = yes; then
   25726      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
   25727 See \`config.log' for more details." >&5
   25728 echo "$as_me: error: cannot compute sizeof (long long int)
   25729 See \`config.log' for more details." >&2;}
   25730    { (exit 77); exit 77; }; }
   25731    else
   25732      ac_cv_sizeof_long_long_int=0
   25733    fi ;;
   25734 esac
   25735 else
   25736   cat >conftest.$ac_ext <<_ACEOF
   25737 /* confdefs.h.  */
   25738 _ACEOF
   25739 cat confdefs.h >>conftest.$ac_ext
   25740 cat >>conftest.$ac_ext <<_ACEOF
   25741 /* end confdefs.h.  */
   25742 $ac_includes_default
   25743    typedef long long int ac__type_sizeof_;
   25744 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
   25745 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
   25746 #include <stdio.h>
   25747 #include <stdlib.h>
   25748 int
   25749 main ()
   25750 {
   25751 
   25752   FILE *f = fopen ("conftest.val", "w");
   25753   if (! f)
   25754     return 1;
   25755   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
   25756     {
   25757       long int i = longval ();
   25758       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   25759 	return 1;
   25760       fprintf (f, "%ld\n", i);
   25761     }
   25762   else
   25763     {
   25764       unsigned long int i = ulongval ();
   25765       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   25766 	return 1;
   25767       fprintf (f, "%lu\n", i);
   25768     }
   25769   return ferror (f) || fclose (f) != 0;
   25770 
   25771   ;
   25772   return 0;
   25773 }
   25774 _ACEOF
   25775 rm -f conftest$ac_exeext
   25776 if { (ac_try="$ac_link"
   25777 case "(($ac_try" in
   25778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25779   *) ac_try_echo=$ac_try;;
   25780 esac
   25781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25782   (eval "$ac_link") 2>&5
   25783   ac_status=$?
   25784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25785   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   25786   { (case "(($ac_try" in
   25787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25788   *) ac_try_echo=$ac_try;;
   25789 esac
   25790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25791   (eval "$ac_try") 2>&5
   25792   ac_status=$?
   25793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25794   (exit $ac_status); }; }; then
   25795   ac_cv_sizeof_long_long_int=`cat conftest.val`
   25796 else
   25797   echo "$as_me: program exited with status $ac_status" >&5
   25798 echo "$as_me: failed program was:" >&5
   25799 sed 's/^/| /' conftest.$ac_ext >&5
   25800 
   25801 ( exit $ac_status )
   25802 if test "$ac_cv_type_long_long_int" = yes; then
   25803      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
   25804 See \`config.log' for more details." >&5
   25805 echo "$as_me: error: cannot compute sizeof (long long int)
   25806 See \`config.log' for more details." >&2;}
   25807    { (exit 77); exit 77; }; }
   25808    else
   25809      ac_cv_sizeof_long_long_int=0
   25810    fi
   25811 fi
   25812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   25813 fi
   25814 rm -f conftest.val
   25815 fi
   25816 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
   25817 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
   25818 
   25819 
   25820 
   25821 cat >>confdefs.h <<_ACEOF
   25822 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
   25823 _ACEOF
   25824 
   25825 
   25826 
   25827 # Sanity check long long for some platforms (AIX)
   25828 if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
   25829 	ac_cv_sizeof_long_long_int=0
   25830 fi
   25831 
   25832 # compute LLONG_MIN and LLONG_MAX if we don't know them.
   25833 if test -z "$have_llong_max"; then
   25834 	{ echo "$as_me:$LINENO: checking for max value of long long" >&5
   25835 echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6; }
   25836 	if test "$cross_compiling" = yes; then
   25837 
   25838 			{ echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
   25839 echo "$as_me: WARNING: cross compiling: not checking" >&2;}
   25840 
   25841 
   25842 else
   25843   cat >conftest.$ac_ext <<_ACEOF
   25844 /* confdefs.h.  */
   25845 _ACEOF
   25846 cat confdefs.h >>conftest.$ac_ext
   25847 cat >>conftest.$ac_ext <<_ACEOF
   25848 /* end confdefs.h.  */
   25849 
   25850 #include <stdio.h>
   25851 /* Why is this so damn hard? */
   25852 #ifdef __GNUC__
   25853 # undef __GNUC__
   25854 #endif
   25855 #define __USE_ISOC99
   25856 #include <limits.h>
   25857 #define DATA "conftest.llminmax"
   25858 #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
   25859 
   25860 /*
   25861  * printf in libc on some platforms (eg old Tru64) does not understand %lld so
   25862  * we do this the hard way.
   25863  */
   25864 static int
   25865 fprint_ll(FILE *f, long long n)
   25866 {
   25867 	unsigned int i;
   25868 	int l[sizeof(long long) * 8];
   25869 
   25870 	if (n < 0)
   25871 		if (fprintf(f, "-") < 0)
   25872 			return -1;
   25873 	for (i = 0; n != 0; i++) {
   25874 		l[i] = my_abs(n % 10);
   25875 		n /= 10;
   25876 	}
   25877 	do {
   25878 		if (fprintf(f, "%d", l[--i]) < 0)
   25879 			return -1;
   25880 	} while (i != 0);
   25881 	if (fprintf(f, " ") < 0)
   25882 		return -1;
   25883 	return 0;
   25884 }
   25885 
   25886 int
   25887 main ()
   25888 {
   25889 
   25890 	FILE *f;
   25891 	long long i, llmin, llmax = 0;
   25892 
   25893 	if((f = fopen(DATA,"w")) == NULL)
   25894 		exit(1);
   25895 
   25896 #if defined(LLONG_MIN) && defined(LLONG_MAX)
   25897 	fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
   25898 	llmin = LLONG_MIN;
   25899 	llmax = LLONG_MAX;
   25900 #else
   25901 	fprintf(stderr, "Calculating  LLONG_MIN and LLONG_MAX\n");
   25902 	/* This will work on one's complement and two's complement */
   25903 	for (i = 1; i > llmax; i <<= 1, i++)
   25904 		llmax = i;
   25905 	llmin = llmax + 1LL;	/* wrap */
   25906 #endif
   25907 
   25908 	/* Sanity check */
   25909 	if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
   25910 	    || llmax - 1 > llmax || llmin == llmax || llmin == 0
   25911 	    || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
   25912 		fprintf(f, "unknown unknown\n");
   25913 		exit(2);
   25914 	}
   25915 
   25916 	if (fprint_ll(f, llmin) < 0)
   25917 		exit(3);
   25918 	if (fprint_ll(f, llmax) < 0)
   25919 		exit(4);
   25920 	if (fclose(f) < 0)
   25921 		exit(5);
   25922 	exit(0);
   25923 
   25924   ;
   25925   return 0;
   25926 }
   25927 _ACEOF
   25928 rm -f conftest$ac_exeext
   25929 if { (ac_try="$ac_link"
   25930 case "(($ac_try" in
   25931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25932   *) ac_try_echo=$ac_try;;
   25933 esac
   25934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25935   (eval "$ac_link") 2>&5
   25936   ac_status=$?
   25937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25938   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   25939   { (case "(($ac_try" in
   25940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25941   *) ac_try_echo=$ac_try;;
   25942 esac
   25943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25944   (eval "$ac_try") 2>&5
   25945   ac_status=$?
   25946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25947   (exit $ac_status); }; }; then
   25948 
   25949 			llong_min=`$AWK '{print $1}' conftest.llminmax`
   25950 			llong_max=`$AWK '{print $2}' conftest.llminmax`
   25951 
   25952 			{ echo "$as_me:$LINENO: result: $llong_max" >&5
   25953 echo "${ECHO_T}$llong_max" >&6; }
   25954 
   25955 cat >>confdefs.h <<_ACEOF
   25956 #define LLONG_MAX ${llong_max}LL
   25957 _ACEOF
   25958 
   25959 			{ echo "$as_me:$LINENO: checking for min value of long long" >&5
   25960 echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6; }
   25961 			{ echo "$as_me:$LINENO: result: $llong_min" >&5
   25962 echo "${ECHO_T}$llong_min" >&6; }
   25963 
   25964 cat >>confdefs.h <<_ACEOF
   25965 #define LLONG_MIN ${llong_min}LL
   25966 _ACEOF
   25967 
   25968 
   25969 else
   25970   echo "$as_me: program exited with status $ac_status" >&5
   25971 echo "$as_me: failed program was:" >&5
   25972 sed 's/^/| /' conftest.$ac_ext >&5
   25973 
   25974 ( exit $ac_status )
   25975 
   25976 			{ echo "$as_me:$LINENO: result: not found" >&5
   25977 echo "${ECHO_T}not found" >&6; }
   25978 
   25979 fi
   25980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   25981 fi
   25982 
   25983 
   25984 fi
   25985 
   25986 
   25987 # More checks for data types
   25988 { echo "$as_me:$LINENO: checking for u_int type" >&5
   25989 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
   25990 if test "${ac_cv_have_u_int+set}" = set; then
   25991   echo $ECHO_N "(cached) $ECHO_C" >&6
   25992 else
   25993 
   25994 	cat >conftest.$ac_ext <<_ACEOF
   25995 /* confdefs.h.  */
   25996 _ACEOF
   25997 cat confdefs.h >>conftest.$ac_ext
   25998 cat >>conftest.$ac_ext <<_ACEOF
   25999 /* end confdefs.h.  */
   26000  #include <sys/types.h>
   26001 int
   26002 main ()
   26003 {
   26004  u_int a; a = 1;
   26005   ;
   26006   return 0;
   26007 }
   26008 _ACEOF
   26009 rm -f conftest.$ac_objext
   26010 if { (ac_try="$ac_compile"
   26011 case "(($ac_try" in
   26012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26013   *) ac_try_echo=$ac_try;;
   26014 esac
   26015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   26016   (eval "$ac_compile") 2>conftest.er1
   26017   ac_status=$?
   26018   grep -v '^ *+' conftest.er1 >conftest.err
   26019   rm -f conftest.er1
   26020   cat conftest.err >&5
   26021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26022   (exit $ac_status); } && {
   26023 	 test -z "$ac_c_werror_flag" ||
   26024 	 test ! -s conftest.err
   26025        } && test -s conftest.$ac_objext; then
   26026    ac_cv_have_u_int="yes"
   26027 else
   26028   echo "$as_me: failed program was:" >&5
   26029 sed 's/^/| /' conftest.$ac_ext >&5
   26030 
   26031 	 ac_cv_have_u_int="no"
   26032 
   26033 fi
   26034 
   26035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   26036 
   26037 fi
   26038 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
   26039 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
   26040 if test "x$ac_cv_have_u_int" = "xyes" ; then
   26041 
   26042 cat >>confdefs.h <<\_ACEOF
   26043 #define HAVE_U_INT 1
   26044 _ACEOF
   26045 
   26046 	have_u_int=1
   26047 fi
   26048 
   26049 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
   26050 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
   26051 if test "${ac_cv_have_intxx_t+set}" = set; then
   26052   echo $ECHO_N "(cached) $ECHO_C" >&6
   26053 else
   26054 
   26055 	cat >conftest.$ac_ext <<_ACEOF
   26056 /* confdefs.h.  */
   26057 _ACEOF
   26058 cat confdefs.h >>conftest.$ac_ext
   26059 cat >>conftest.$ac_ext <<_ACEOF
   26060 /* end confdefs.h.  */
   26061  #include <sys/types.h>
   26062 int
   26063 main ()
   26064 {
   26065  int8_t a; int16_t b; int32_t c; a = b = c = 1;
   26066   ;
   26067   return 0;
   26068 }
   26069 _ACEOF
   26070 rm -f conftest.$ac_objext
   26071 if { (ac_try="$ac_compile"
   26072 case "(($ac_try" in
   26073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26074   *) ac_try_echo=$ac_try;;
   26075 esac
   26076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   26077   (eval "$ac_compile") 2>conftest.er1
   26078   ac_status=$?
   26079   grep -v '^ *+' conftest.er1 >conftest.err
   26080   rm -f conftest.er1
   26081   cat conftest.err >&5
   26082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26083   (exit $ac_status); } && {
   26084 	 test -z "$ac_c_werror_flag" ||
   26085 	 test ! -s conftest.err
   26086        } && test -s conftest.$ac_objext; then
   26087    ac_cv_have_intxx_t="yes"
   26088 else
   26089   echo "$as_me: failed program was:" >&5
   26090 sed 's/^/| /' conftest.$ac_ext >&5
   26091 
   26092 	 ac_cv_have_intxx_t="no"
   26093 
   26094 fi
   26095 
   26096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   26097 
   26098 fi
   26099 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
   26100 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
   26101 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
   26102 
   26103 cat >>confdefs.h <<\_ACEOF
   26104 #define HAVE_INTXX_T 1
   26105 _ACEOF
   26106 
   26107 	have_intxx_t=1
   26108 fi
   26109 
   26110 if (test -z "$have_intxx_t" && \
   26111 	   test "x$ac_cv_header_stdint_h" = "xyes")
   26112 then
   26113     { echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
   26114 echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6; }
   26115 	cat >conftest.$ac_ext <<_ACEOF
   26116 /* confdefs.h.  */
   26117 _ACEOF
   26118 cat confdefs.h >>conftest.$ac_ext
   26119 cat >>conftest.$ac_ext <<_ACEOF
   26120 /* end confdefs.h.  */
   26121  #include <stdint.h>
   26122 int
   26123 main ()
   26124 {
   26125  int8_t a; int16_t b; int32_t c; a = b = c = 1;
   26126   ;
   26127   return 0;
   26128 }
   26129 _ACEOF
   26130 rm -f conftest.$ac_objext
   26131 if { (ac_try="$ac_compile"
   26132 case "(($ac_try" in
   26133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26134   *) ac_try_echo=$ac_try;;
   26135 esac
   26136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   26137   (eval "$ac_compile") 2>conftest.er1
   26138   ac_status=$?
   26139   grep -v '^ *+' conftest.er1 >conftest.err
   26140   rm -f conftest.er1
   26141   cat conftest.err >&5
   26142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26143   (exit $ac_status); } && {
   26144 	 test -z "$ac_c_werror_flag" ||
   26145 	 test ! -s conftest.err
   26146        } && test -s conftest.$ac_objext; then
   26147 
   26148 			cat >>confdefs.h <<\_ACEOF
   26149 #define HAVE_INTXX_T 1
   26150 _ACEOF
   26151 
   26152 			{ echo "$as_me:$LINENO: result: yes" >&5
   26153 echo "${ECHO_T}yes" >&6; }
   26154 
   26155 else
   26156   echo "$as_me: failed program was:" >&5
   26157 sed 's/^/| /' conftest.$ac_ext >&5
   26158 
   26159 	 { echo "$as_me:$LINENO: result: no" >&5
   26160 echo "${ECHO_T}no" >&6; }
   26161 
   26162 fi
   26163 
   26164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   26165 fi
   26166 
   26167 { echo "$as_me:$LINENO: checking for int64_t type" >&5
   26168 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
   26169 if test "${ac_cv_have_int64_t+set}" = set; then
   26170   echo $ECHO_N "(cached) $ECHO_C" >&6
   26171 else
   26172 
   26173 	cat >conftest.$ac_ext <<_ACEOF
   26174 /* confdefs.h.  */
   26175 _ACEOF
   26176 cat confdefs.h >>conftest.$ac_ext
   26177 cat >>conftest.$ac_ext <<_ACEOF
   26178 /* end confdefs.h.  */
   26179 
   26180 #include <sys/types.h>
   26181 #ifdef HAVE_STDINT_H
   26182 # include <stdint.h>
   26183 #endif
   26184 #include <sys/socket.h>
   26185 #ifdef HAVE_SYS_BITYPES_H
   26186 # include <sys/bitypes.h>
   26187 #endif
   26188 
   26189 int
   26190 main ()
   26191 {
   26192 
   26193 int64_t a; a = 1;
   26194 
   26195   ;
   26196   return 0;
   26197 }
   26198 _ACEOF
   26199 rm -f conftest.$ac_objext
   26200 if { (ac_try="$ac_compile"
   26201 case "(($ac_try" in
   26202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26203   *) ac_try_echo=$ac_try;;
   26204 esac
   26205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   26206   (eval "$ac_compile") 2>conftest.er1
   26207   ac_status=$?
   26208   grep -v '^ *+' conftest.er1 >conftest.err
   26209   rm -f conftest.er1
   26210   cat conftest.err >&5
   26211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26212   (exit $ac_status); } && {
   26213 	 test -z "$ac_c_werror_flag" ||
   26214 	 test ! -s conftest.err
   26215        } && test -s conftest.$ac_objext; then
   26216    ac_cv_have_int64_t="yes"
   26217 else
   26218   echo "$as_me: failed program was:" >&5
   26219 sed 's/^/| /' conftest.$ac_ext >&5
   26220 
   26221 	 ac_cv_have_int64_t="no"
   26222 
   26223 fi
   26224 
   26225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   26226 
   26227 fi
   26228 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
   26229 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
   26230 if test "x$ac_cv_have_int64_t" = "xyes" ; then
   26231 
   26232 cat >>confdefs.h <<\_ACEOF
   26233 #define HAVE_INT64_T 1
   26234 _ACEOF
   26235 
   26236 fi
   26237 
   26238 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
   26239 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
   26240 if test "${ac_cv_have_u_intxx_t+set}" = set; then
   26241   echo $ECHO_N "(cached) $ECHO_C" >&6
   26242 else
   26243 
   26244 	cat >conftest.$ac_ext <<_ACEOF
   26245 /* confdefs.h.  */
   26246 _ACEOF
   26247 cat confdefs.h >>conftest.$ac_ext
   26248 cat >>conftest.$ac_ext <<_ACEOF
   26249 /* end confdefs.h.  */
   26250  #include <sys/types.h>
   26251 int
   26252 main ()
   26253 {
   26254  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
   26255   ;
   26256   return 0;
   26257 }
   26258 _ACEOF
   26259 rm -f conftest.$ac_objext
   26260 if { (ac_try="$ac_compile"
   26261 case "(($ac_try" in
   26262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26263   *) ac_try_echo=$ac_try;;
   26264 esac
   26265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   26266   (eval "$ac_compile") 2>conftest.er1
   26267   ac_status=$?
   26268   grep -v '^ *+' conftest.er1 >conftest.err
   26269   rm -f conftest.er1
   26270   cat conftest.err >&5
   26271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26272   (exit $ac_status); } && {
   26273 	 test -z "$ac_c_werror_flag" ||
   26274 	 test ! -s conftest.err
   26275        } && test -s conftest.$ac_objext; then
   26276    ac_cv_have_u_intxx_t="yes"
   26277 else
   26278   echo "$as_me: failed program was:" >&5
   26279 sed 's/^/| /' conftest.$ac_ext >&5
   26280 
   26281 	 ac_cv_have_u_intxx_t="no"
   26282 
   26283 fi
   26284 
   26285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   26286 
   26287 fi
   26288 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
   26289 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
   26290 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
   26291 
   26292 cat >>confdefs.h <<\_ACEOF
   26293 #define HAVE_U_INTXX_T 1
   26294 _ACEOF
   26295 
   26296 	have_u_intxx_t=1
   26297 fi
   26298 
   26299 if test -z "$have_u_intxx_t" ; then
   26300     { echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
   26301 echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6; }
   26302 	cat >conftest.$ac_ext <<_ACEOF
   26303 /* confdefs.h.  */
   26304 _ACEOF
   26305 cat confdefs.h >>conftest.$ac_ext
   26306 cat >>conftest.$ac_ext <<_ACEOF
   26307 /* end confdefs.h.  */
   26308  #include <sys/socket.h>
   26309 int
   26310 main ()
   26311 {
   26312  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
   26313   ;
   26314   return 0;
   26315 }
   26316 _ACEOF
   26317 rm -f conftest.$ac_objext
   26318 if { (ac_try="$ac_compile"
   26319 case "(($ac_try" in
   26320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26321   *) ac_try_echo=$ac_try;;
   26322 esac
   26323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   26324   (eval "$ac_compile") 2>conftest.er1
   26325   ac_status=$?
   26326   grep -v '^ *+' conftest.er1 >conftest.err
   26327   rm -f conftest.er1
   26328   cat conftest.err >&5
   26329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26330   (exit $ac_status); } && {
   26331 	 test -z "$ac_c_werror_flag" ||
   26332 	 test ! -s conftest.err
   26333        } && test -s conftest.$ac_objext; then
   26334 
   26335 			cat >>confdefs.h <<\_ACEOF
   26336 #define HAVE_U_INTXX_T 1
   26337 _ACEOF
   26338 
   26339 			{ echo "$as_me:$LINENO: result: yes" >&5
   26340 echo "${ECHO_T}yes" >&6; }
   26341 
   26342 else
   26343   echo "$as_me: failed program was:" >&5
   26344 sed 's/^/| /' conftest.$ac_ext >&5
   26345 
   26346 	 { echo "$as_me:$LINENO: result: no" >&5
   26347 echo "${ECHO_T}no" >&6; }
   26348 
   26349 fi
   26350 
   26351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   26352 fi
   26353 
   26354 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
   26355 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
   26356 if test "${ac_cv_have_u_int64_t+set}" = set; then
   26357   echo $ECHO_N "(cached) $ECHO_C" >&6
   26358 else
   26359 
   26360 	cat >conftest.$ac_ext <<_ACEOF
   26361 /* confdefs.h.  */
   26362 _ACEOF
   26363 cat confdefs.h >>conftest.$ac_ext
   26364 cat >>conftest.$ac_ext <<_ACEOF
   26365 /* end confdefs.h.  */
   26366  #include <sys/types.h>
   26367 int
   26368 main ()
   26369 {
   26370  u_int64_t a; a = 1;
   26371   ;
   26372   return 0;
   26373 }
   26374 _ACEOF
   26375 rm -f conftest.$ac_objext
   26376 if { (ac_try="$ac_compile"
   26377 case "(($ac_try" in
   26378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26379   *) ac_try_echo=$ac_try;;
   26380 esac
   26381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   26382   (eval "$ac_compile") 2>conftest.er1
   26383   ac_status=$?
   26384   grep -v '^ *+' conftest.er1 >conftest.err
   26385   rm -f conftest.er1
   26386   cat conftest.err >&5
   26387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26388   (exit $ac_status); } && {
   26389 	 test -z "$ac_c_werror_flag" ||
   26390 	 test ! -s conftest.err
   26391        } && test -s conftest.$ac_objext; then
   26392    ac_cv_have_u_int64_t="yes"
   26393 else
   26394   echo "$as_me: failed program was:" >&5
   26395 sed 's/^/| /' conftest.$ac_ext >&5
   26396 
   26397 	 ac_cv_have_u_int64_t="no"
   26398 
   26399 fi
   26400 
   26401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   26402 
   26403 fi
   26404 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
   26405 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
   26406 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
   26407 
   26408 cat >>confdefs.h <<\_ACEOF
   26409 #define HAVE_U_INT64_T 1
   26410 _ACEOF
   26411 
   26412 	have_u_int64_t=1
   26413 fi
   26414 
   26415 if (test -z "$have_u_int64_t" && \
   26416 	   test "x$ac_cv_header_sys_bitypes_h" = "xyes")
   26417 then
   26418     { echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
   26419 echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6; }
   26420 	cat >conftest.$ac_ext <<_ACEOF
   26421 /* confdefs.h.  */
   26422 _ACEOF
   26423 cat confdefs.h >>conftest.$ac_ext
   26424 cat >>conftest.$ac_ext <<_ACEOF
   26425 /* end confdefs.h.  */
   26426  #include <sys/bitypes.h>
   26427 int
   26428 main ()
   26429 {
   26430  u_int64_t a; a = 1
   26431   ;
   26432   return 0;
   26433 }
   26434 _ACEOF
   26435 rm -f conftest.$ac_objext
   26436 if { (ac_try="$ac_compile"
   26437 case "(($ac_try" in
   26438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26439   *) ac_try_echo=$ac_try;;
   26440 esac
   26441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   26442   (eval "$ac_compile") 2>conftest.er1
   26443   ac_status=$?
   26444   grep -v '^ *+' conftest.er1 >conftest.err
   26445   rm -f conftest.er1
   26446   cat conftest.err >&5
   26447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26448   (exit $ac_status); } && {
   26449 	 test -z "$ac_c_werror_flag" ||
   26450 	 test ! -s conftest.err
   26451        } && test -s conftest.$ac_objext; then
   26452 
   26453 			cat >>confdefs.h <<\_ACEOF
   26454 #define HAVE_U_INT64_T 1
   26455 _ACEOF
   26456 
   26457 			{ echo "$as_me:$LINENO: result: yes" >&5
   26458 echo "${ECHO_T}yes" >&6; }
   26459 
   26460 else
   26461   echo "$as_me: failed program was:" >&5
   26462 sed 's/^/| /' conftest.$ac_ext >&5
   26463 
   26464 	 { echo "$as_me:$LINENO: result: no" >&5
   26465 echo "${ECHO_T}no" >&6; }
   26466 
   26467 fi
   26468 
   26469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   26470 fi
   26471 
   26472 if test -z "$have_u_intxx_t" ; then
   26473 	{ echo "$as_me:$LINENO: checking for uintXX_t types" >&5
   26474 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
   26475 if test "${ac_cv_have_uintxx_t+set}" = set; then
   26476   echo $ECHO_N "(cached) $ECHO_C" >&6
   26477 else
   26478 
   26479 		cat >conftest.$ac_ext <<_ACEOF
   26480 /* confdefs.h.  */
   26481 _ACEOF
   26482 cat confdefs.h >>conftest.$ac_ext
   26483 cat >>conftest.$ac_ext <<_ACEOF
   26484 /* end confdefs.h.  */
   26485 
   26486 #include <sys/types.h>
   26487 
   26488 int
   26489 main ()
   26490 {
   26491 
   26492 	uint8_t a;
   26493 	uint16_t b;
   26494 	uint32_t c;
   26495 	a = b = c = 1;
   26496 
   26497   ;
   26498   return 0;
   26499 }
   26500 _ACEOF
   26501 rm -f conftest.$ac_objext
   26502 if { (ac_try="$ac_compile"
   26503 case "(($ac_try" in
   26504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26505   *) ac_try_echo=$ac_try;;
   26506 esac
   26507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   26508   (eval "$ac_compile") 2>conftest.er1
   26509   ac_status=$?
   26510   grep -v '^ *+' conftest.er1 >conftest.err
   26511   rm -f conftest.er1
   26512   cat conftest.err >&5
   26513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26514   (exit $ac_status); } && {
   26515 	 test -z "$ac_c_werror_flag" ||
   26516 	 test ! -s conftest.err
   26517        } && test -s conftest.$ac_objext; then
   26518    ac_cv_have_uintxx_t="yes"
   26519 else
   26520   echo "$as_me: failed program was:" >&5
   26521 sed 's/^/| /' conftest.$ac_ext >&5
   26522 
   26523 	 ac_cv_have_uintxx_t="no"
   26524 
   26525 fi
   26526 
   26527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   26528 
   26529 fi
   26530 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
   26531 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
   26532 	if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
   26533 
   26534 cat >>confdefs.h <<\_ACEOF
   26535 #define HAVE_UINTXX_T 1
   26536 _ACEOF
   26537 
   26538 	fi
   26539 fi
   26540 
   26541 if (test -z "$have_uintxx_t" && \
   26542 	   test "x$ac_cv_header_stdint_h" = "xyes")
   26543 then
   26544     { echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
   26545 echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6; }
   26546 	cat >conftest.$ac_ext <<_ACEOF
   26547 /* confdefs.h.  */
   26548 _ACEOF
   26549 cat confdefs.h >>conftest.$ac_ext
   26550 cat >>conftest.$ac_ext <<_ACEOF
   26551 /* end confdefs.h.  */
   26552  #include <stdint.h>
   26553 int
   26554 main ()
   26555 {
   26556  uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
   26557   ;
   26558   return 0;
   26559 }
   26560 _ACEOF
   26561 rm -f conftest.$ac_objext
   26562 if { (ac_try="$ac_compile"
   26563 case "(($ac_try" in
   26564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26565   *) ac_try_echo=$ac_try;;
   26566 esac
   26567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   26568   (eval "$ac_compile") 2>conftest.er1
   26569   ac_status=$?
   26570   grep -v '^ *+' conftest.er1 >conftest.err
   26571   rm -f conftest.er1
   26572   cat conftest.err >&5
   26573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26574   (exit $ac_status); } && {
   26575 	 test -z "$ac_c_werror_flag" ||
   26576 	 test ! -s conftest.err
   26577        } && test -s conftest.$ac_objext; then
   26578 
   26579 			cat >>confdefs.h <<\_ACEOF
   26580 #define HAVE_UINTXX_T 1
   26581 _ACEOF
   26582 
   26583 			{ echo "$as_me:$LINENO: result: yes" >&5
   26584 echo "${ECHO_T}yes" >&6; }
   26585 
   26586 else
   26587   echo "$as_me: failed program was:" >&5
   26588 sed 's/^/| /' conftest.$ac_ext >&5
   26589 
   26590 	 { echo "$as_me:$LINENO: result: no" >&5
   26591 echo "${ECHO_T}no" >&6; }
   26592 
   26593 fi
   26594 
   26595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   26596 fi
   26597 
   26598 if (test -z "$have_uintxx_t" && \
   26599 	   test "x$ac_cv_header_inttypes_h" = "xyes")
   26600 then
   26601     { echo "$as_me:$LINENO: checking for uintXX_t types in inttypes.h" >&5
   26602 echo $ECHO_N "checking for uintXX_t types in inttypes.h... $ECHO_C" >&6; }
   26603 	cat >conftest.$ac_ext <<_ACEOF
   26604 /* confdefs.h.  */
   26605 _ACEOF
   26606 cat confdefs.h >>conftest.$ac_ext
   26607 cat >>conftest.$ac_ext <<_ACEOF
   26608 /* end confdefs.h.  */
   26609  #include <inttypes.h>
   26610 int
   26611 main ()
   26612 {
   26613  uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
   26614   ;
   26615   return 0;
   26616 }
   26617 _ACEOF
   26618 rm -f conftest.$ac_objext
   26619 if { (ac_try="$ac_compile"
   26620 case "(($ac_try" in
   26621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26622   *) ac_try_echo=$ac_try;;
   26623 esac
   26624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   26625   (eval "$ac_compile") 2>conftest.er1
   26626   ac_status=$?
   26627   grep -v '^ *+' conftest.er1 >conftest.err
   26628   rm -f conftest.er1
   26629   cat conftest.err >&5
   26630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26631   (exit $ac_status); } && {
   26632 	 test -z "$ac_c_werror_flag" ||
   26633 	 test ! -s conftest.err
   26634        } && test -s conftest.$ac_objext; then
   26635 
   26636 			cat >>confdefs.h <<\_ACEOF
   26637 #define HAVE_UINTXX_T 1
   26638 _ACEOF
   26639 
   26640 			{ echo "$as_me:$LINENO: result: yes" >&5
   26641 echo "${ECHO_T}yes" >&6; }
   26642 
   26643 else
   26644   echo "$as_me: failed program was:" >&5
   26645 sed 's/^/| /' conftest.$ac_ext >&5
   26646 
   26647 	 { echo "$as_me:$LINENO: result: no" >&5
   26648 echo "${ECHO_T}no" >&6; }
   26649 
   26650 fi
   26651 
   26652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   26653 fi
   26654 
   26655 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
   26656 	   test "x$ac_cv_header_sys_bitypes_h" = "xyes")
   26657 then
   26658 	{ echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
   26659 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
   26660 	cat >conftest.$ac_ext <<_ACEOF
   26661 /* confdefs.h.  */
   26662 _ACEOF
   26663 cat confdefs.h >>conftest.$ac_ext
   26664 cat >>conftest.$ac_ext <<_ACEOF
   26665 /* end confdefs.h.  */
   26666 
   26667 #include <sys/bitypes.h>
   26668 
   26669 int
   26670 main ()
   26671 {
   26672 
   26673 			int8_t a; int16_t b; int32_t c;
   26674 			u_int8_t e; u_int16_t f; u_int32_t g;
   26675 			a = b = c = e = f = g = 1;
   26676 
   26677   ;
   26678   return 0;
   26679 }
   26680 _ACEOF
   26681 rm -f conftest.$ac_objext
   26682 if { (ac_try="$ac_compile"
   26683 case "(($ac_try" in
   26684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26685   *) ac_try_echo=$ac_try;;
   26686 esac
   26687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   26688   (eval "$ac_compile") 2>conftest.er1
   26689   ac_status=$?
   26690   grep -v '^ *+' conftest.er1 >conftest.err
   26691   rm -f conftest.er1
   26692   cat conftest.err >&5
   26693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26694   (exit $ac_status); } && {
   26695 	 test -z "$ac_c_werror_flag" ||
   26696 	 test ! -s conftest.err
   26697        } && test -s conftest.$ac_objext; then
   26698 
   26699 			cat >>confdefs.h <<\_ACEOF
   26700 #define HAVE_U_INTXX_T 1
   26701 _ACEOF
   26702 
   26703 			cat >>confdefs.h <<\_ACEOF
   26704 #define HAVE_INTXX_T 1
   26705 _ACEOF
   26706 
   26707 			{ echo "$as_me:$LINENO: result: yes" >&5
   26708 echo "${ECHO_T}yes" >&6; }
   26709 
   26710 else
   26711   echo "$as_me: failed program was:" >&5
   26712 sed 's/^/| /' conftest.$ac_ext >&5
   26713 
   26714 	{ echo "$as_me:$LINENO: result: no" >&5
   26715 echo "${ECHO_T}no" >&6; }
   26716 
   26717 fi
   26718 
   26719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   26720 fi
   26721 
   26722 
   26723 { echo "$as_me:$LINENO: checking for u_char" >&5
   26724 echo $ECHO_N "checking for u_char... $ECHO_C" >&6; }
   26725 if test "${ac_cv_have_u_char+set}" = set; then
   26726   echo $ECHO_N "(cached) $ECHO_C" >&6
   26727 else
   26728 
   26729 	cat >conftest.$ac_ext <<_ACEOF
   26730 /* confdefs.h.  */
   26731 _ACEOF
   26732 cat confdefs.h >>conftest.$ac_ext
   26733 cat >>conftest.$ac_ext <<_ACEOF
   26734 /* end confdefs.h.  */
   26735  #include <sys/types.h>
   26736 int
   26737 main ()
   26738 {
   26739  u_char foo; foo = 125;
   26740   ;
   26741   return 0;
   26742 }
   26743 _ACEOF
   26744 rm -f conftest.$ac_objext
   26745 if { (ac_try="$ac_compile"
   26746 case "(($ac_try" in
   26747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26748   *) ac_try_echo=$ac_try;;
   26749 esac
   26750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   26751   (eval "$ac_compile") 2>conftest.er1
   26752   ac_status=$?
   26753   grep -v '^ *+' conftest.er1 >conftest.err
   26754   rm -f conftest.er1
   26755   cat conftest.err >&5
   26756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26757   (exit $ac_status); } && {
   26758 	 test -z "$ac_c_werror_flag" ||
   26759 	 test ! -s conftest.err
   26760        } && test -s conftest.$ac_objext; then
   26761    ac_cv_have_u_char="yes"
   26762 else
   26763   echo "$as_me: failed program was:" >&5
   26764 sed 's/^/| /' conftest.$ac_ext >&5
   26765 
   26766 	 ac_cv_have_u_char="no"
   26767 
   26768 fi
   26769 
   26770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   26771 
   26772 fi
   26773 { echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
   26774 echo "${ECHO_T}$ac_cv_have_u_char" >&6; }
   26775 if test "x$ac_cv_have_u_char" = "xyes" ; then
   26776 
   26777 cat >>confdefs.h <<\_ACEOF
   26778 #define HAVE_U_CHAR 1
   26779 _ACEOF
   26780 
   26781 fi
   26782 
   26783 { echo "$as_me:$LINENO: checking for intmax_t" >&5
   26784 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
   26785 if test "${ac_cv_type_intmax_t+set}" = set; then
   26786   echo $ECHO_N "(cached) $ECHO_C" >&6
   26787 else
   26788   cat >conftest.$ac_ext <<_ACEOF
   26789 /* confdefs.h.  */
   26790 _ACEOF
   26791 cat confdefs.h >>conftest.$ac_ext
   26792 cat >>conftest.$ac_ext <<_ACEOF
   26793 /* end confdefs.h.  */
   26794 
   26795 #include <sys/types.h>
   26796 #include <stdint.h>
   26797 
   26798 
   26799 typedef intmax_t ac__type_new_;
   26800 int
   26801 main ()
   26802 {
   26803 if ((ac__type_new_ *) 0)
   26804   return 0;
   26805 if (sizeof (ac__type_new_))
   26806   return 0;
   26807   ;
   26808   return 0;
   26809 }
   26810 _ACEOF
   26811 rm -f conftest.$ac_objext
   26812 if { (ac_try="$ac_compile"
   26813 case "(($ac_try" in
   26814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26815   *) ac_try_echo=$ac_try;;
   26816 esac
   26817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   26818   (eval "$ac_compile") 2>conftest.er1
   26819   ac_status=$?
   26820   grep -v '^ *+' conftest.er1 >conftest.err
   26821   rm -f conftest.er1
   26822   cat conftest.err >&5
   26823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26824   (exit $ac_status); } && {
   26825 	 test -z "$ac_c_werror_flag" ||
   26826 	 test ! -s conftest.err
   26827        } && test -s conftest.$ac_objext; then
   26828   ac_cv_type_intmax_t=yes
   26829 else
   26830   echo "$as_me: failed program was:" >&5
   26831 sed 's/^/| /' conftest.$ac_ext >&5
   26832 
   26833 	ac_cv_type_intmax_t=no
   26834 fi
   26835 
   26836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   26837 fi
   26838 { echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
   26839 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; }
   26840 if test $ac_cv_type_intmax_t = yes; then
   26841 
   26842 cat >>confdefs.h <<_ACEOF
   26843 #define HAVE_INTMAX_T 1
   26844 _ACEOF
   26845 
   26846 
   26847 fi
   26848 { echo "$as_me:$LINENO: checking for uintmax_t" >&5
   26849 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6; }
   26850 if test "${ac_cv_type_uintmax_t+set}" = set; then
   26851   echo $ECHO_N "(cached) $ECHO_C" >&6
   26852 else
   26853   cat >conftest.$ac_ext <<_ACEOF
   26854 /* confdefs.h.  */
   26855 _ACEOF
   26856 cat confdefs.h >>conftest.$ac_ext
   26857 cat >>conftest.$ac_ext <<_ACEOF
   26858 /* end confdefs.h.  */
   26859 
   26860 #include <sys/types.h>
   26861 #include <stdint.h>
   26862 
   26863 
   26864 typedef uintmax_t ac__type_new_;
   26865 int
   26866 main ()
   26867 {
   26868 if ((ac__type_new_ *) 0)
   26869   return 0;
   26870 if (sizeof (ac__type_new_))
   26871   return 0;
   26872   ;
   26873   return 0;
   26874 }
   26875 _ACEOF
   26876 rm -f conftest.$ac_objext
   26877 if { (ac_try="$ac_compile"
   26878 case "(($ac_try" in
   26879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26880   *) ac_try_echo=$ac_try;;
   26881 esac
   26882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   26883   (eval "$ac_compile") 2>conftest.er1
   26884   ac_status=$?
   26885   grep -v '^ *+' conftest.er1 >conftest.err
   26886   rm -f conftest.er1
   26887   cat conftest.err >&5
   26888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26889   (exit $ac_status); } && {
   26890 	 test -z "$ac_c_werror_flag" ||
   26891 	 test ! -s conftest.err
   26892        } && test -s conftest.$ac_objext; then
   26893   ac_cv_type_uintmax_t=yes
   26894 else
   26895   echo "$as_me: failed program was:" >&5
   26896 sed 's/^/| /' conftest.$ac_ext >&5
   26897 
   26898 	ac_cv_type_uintmax_t=no
   26899 fi
   26900 
   26901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   26902 fi
   26903 { echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
   26904 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6; }
   26905 if test $ac_cv_type_uintmax_t = yes; then
   26906 
   26907 cat >>confdefs.h <<_ACEOF
   26908 #define HAVE_UINTMAX_T 1
   26909 _ACEOF
   26910 
   26911 
   26912 fi
   26913 
   26914 
   26915 
   26916    { echo "$as_me:$LINENO: checking for socklen_t" >&5
   26917 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
   26918 if test "${ac_cv_type_socklen_t+set}" = set; then
   26919   echo $ECHO_N "(cached) $ECHO_C" >&6
   26920 else
   26921   cat >conftest.$ac_ext <<_ACEOF
   26922 /* confdefs.h.  */
   26923 _ACEOF
   26924 cat confdefs.h >>conftest.$ac_ext
   26925 cat >>conftest.$ac_ext <<_ACEOF
   26926 /* end confdefs.h.  */
   26927 #include <sys/types.h>
   26928 #include <sys/socket.h>
   26929 
   26930 typedef socklen_t ac__type_new_;
   26931 int
   26932 main ()
   26933 {
   26934 if ((ac__type_new_ *) 0)
   26935   return 0;
   26936 if (sizeof (ac__type_new_))
   26937   return 0;
   26938   ;
   26939   return 0;
   26940 }
   26941 _ACEOF
   26942 rm -f conftest.$ac_objext
   26943 if { (ac_try="$ac_compile"
   26944 case "(($ac_try" in
   26945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   26946   *) ac_try_echo=$ac_try;;
   26947 esac
   26948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   26949   (eval "$ac_compile") 2>conftest.er1
   26950   ac_status=$?
   26951   grep -v '^ *+' conftest.er1 >conftest.err
   26952   rm -f conftest.er1
   26953   cat conftest.err >&5
   26954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   26955   (exit $ac_status); } && {
   26956 	 test -z "$ac_c_werror_flag" ||
   26957 	 test ! -s conftest.err
   26958        } && test -s conftest.$ac_objext; then
   26959   ac_cv_type_socklen_t=yes
   26960 else
   26961   echo "$as_me: failed program was:" >&5
   26962 sed 's/^/| /' conftest.$ac_ext >&5
   26963 
   26964 	ac_cv_type_socklen_t=no
   26965 fi
   26966 
   26967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   26968 fi
   26969 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
   26970 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
   26971 if test $ac_cv_type_socklen_t = yes; then
   26972   :
   26973 else
   26974 
   26975       { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
   26976 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
   26977       if test "${curl_cv_socklen_t_equiv+set}" = set; then
   26978   echo $ECHO_N "(cached) $ECHO_C" >&6
   26979 else
   26980 
   26981 	 # Systems have either "struct sockaddr *" or
   26982 	 # "void *" as the second argument to getpeername
   26983 	 curl_cv_socklen_t_equiv=
   26984 	 for arg2 in "struct sockaddr" void; do
   26985 	    for t in int size_t unsigned long "unsigned long"; do
   26986 	       cat >conftest.$ac_ext <<_ACEOF
   26987 /* confdefs.h.  */
   26988 _ACEOF
   26989 cat confdefs.h >>conftest.$ac_ext
   26990 cat >>conftest.$ac_ext <<_ACEOF
   26991 /* end confdefs.h.  */
   26992 
   26993 		  #include <sys/types.h>
   26994 		  #include <sys/socket.h>
   26995 
   26996 		  int getpeername (int, $arg2 *, $t *);
   26997 
   26998 int
   26999 main ()
   27000 {
   27001 
   27002 		  $t len;
   27003 		  getpeername(0,0,&len);
   27004 
   27005   ;
   27006   return 0;
   27007 }
   27008 _ACEOF
   27009 rm -f conftest.$ac_objext
   27010 if { (ac_try="$ac_compile"
   27011 case "(($ac_try" in
   27012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27013   *) ac_try_echo=$ac_try;;
   27014 esac
   27015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   27016   (eval "$ac_compile") 2>conftest.er1
   27017   ac_status=$?
   27018   grep -v '^ *+' conftest.er1 >conftest.err
   27019   rm -f conftest.er1
   27020   cat conftest.err >&5
   27021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27022   (exit $ac_status); } && {
   27023 	 test -z "$ac_c_werror_flag" ||
   27024 	 test ! -s conftest.err
   27025        } && test -s conftest.$ac_objext; then
   27026 
   27027 		  curl_cv_socklen_t_equiv="$t"
   27028 		  break
   27029 
   27030 else
   27031   echo "$as_me: failed program was:" >&5
   27032 sed 's/^/| /' conftest.$ac_ext >&5
   27033 
   27034 
   27035 fi
   27036 
   27037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   27038 	    done
   27039 	 done
   27040 
   27041 	 if test "x$curl_cv_socklen_t_equiv" = x; then
   27042 	    { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
   27043 echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
   27044    { (exit 1); exit 1; }; }
   27045 	 fi
   27046 
   27047 fi
   27048 
   27049       { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
   27050 echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
   27051 
   27052 cat >>confdefs.h <<_ACEOF
   27053 #define socklen_t $curl_cv_socklen_t_equiv
   27054 _ACEOF
   27055 
   27056 fi
   27057 
   27058 
   27059 
   27060 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
   27061 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
   27062 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
   27063   echo $ECHO_N "(cached) $ECHO_C" >&6
   27064 else
   27065   cat >conftest.$ac_ext <<_ACEOF
   27066 /* confdefs.h.  */
   27067 _ACEOF
   27068 cat confdefs.h >>conftest.$ac_ext
   27069 cat >>conftest.$ac_ext <<_ACEOF
   27070 /* end confdefs.h.  */
   27071 #include <signal.h>
   27072 
   27073 typedef sig_atomic_t ac__type_new_;
   27074 int
   27075 main ()
   27076 {
   27077 if ((ac__type_new_ *) 0)
   27078   return 0;
   27079 if (sizeof (ac__type_new_))
   27080   return 0;
   27081   ;
   27082   return 0;
   27083 }
   27084 _ACEOF
   27085 rm -f conftest.$ac_objext
   27086 if { (ac_try="$ac_compile"
   27087 case "(($ac_try" in
   27088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27089   *) ac_try_echo=$ac_try;;
   27090 esac
   27091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   27092   (eval "$ac_compile") 2>conftest.er1
   27093   ac_status=$?
   27094   grep -v '^ *+' conftest.er1 >conftest.err
   27095   rm -f conftest.er1
   27096   cat conftest.err >&5
   27097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27098   (exit $ac_status); } && {
   27099 	 test -z "$ac_c_werror_flag" ||
   27100 	 test ! -s conftest.err
   27101        } && test -s conftest.$ac_objext; then
   27102   ac_cv_type_sig_atomic_t=yes
   27103 else
   27104   echo "$as_me: failed program was:" >&5
   27105 sed 's/^/| /' conftest.$ac_ext >&5
   27106 
   27107 	ac_cv_type_sig_atomic_t=no
   27108 fi
   27109 
   27110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   27111 fi
   27112 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
   27113 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
   27114 if test $ac_cv_type_sig_atomic_t = yes; then
   27115 
   27116 cat >>confdefs.h <<_ACEOF
   27117 #define HAVE_SIG_ATOMIC_T 1
   27118 _ACEOF
   27119 
   27120 
   27121 fi
   27122 
   27123 { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
   27124 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
   27125 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
   27126   echo $ECHO_N "(cached) $ECHO_C" >&6
   27127 else
   27128   cat >conftest.$ac_ext <<_ACEOF
   27129 /* confdefs.h.  */
   27130 _ACEOF
   27131 cat confdefs.h >>conftest.$ac_ext
   27132 cat >>conftest.$ac_ext <<_ACEOF
   27133 /* end confdefs.h.  */
   27134 
   27135 #include <sys/types.h>
   27136 #ifdef HAVE_SYS_BITYPES_H
   27137 #include <sys/bitypes.h>
   27138 #endif
   27139 #ifdef HAVE_SYS_STATFS_H
   27140 #include <sys/statfs.h>
   27141 #endif
   27142 #ifdef HAVE_SYS_STATVFS_H
   27143 #include <sys/statvfs.h>
   27144 #endif
   27145 
   27146 
   27147 typedef fsblkcnt_t ac__type_new_;
   27148 int
   27149 main ()
   27150 {
   27151 if ((ac__type_new_ *) 0)
   27152   return 0;
   27153 if (sizeof (ac__type_new_))
   27154   return 0;
   27155   ;
   27156   return 0;
   27157 }
   27158 _ACEOF
   27159 rm -f conftest.$ac_objext
   27160 if { (ac_try="$ac_compile"
   27161 case "(($ac_try" in
   27162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27163   *) ac_try_echo=$ac_try;;
   27164 esac
   27165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   27166   (eval "$ac_compile") 2>conftest.er1
   27167   ac_status=$?
   27168   grep -v '^ *+' conftest.er1 >conftest.err
   27169   rm -f conftest.er1
   27170   cat conftest.err >&5
   27171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27172   (exit $ac_status); } && {
   27173 	 test -z "$ac_c_werror_flag" ||
   27174 	 test ! -s conftest.err
   27175        } && test -s conftest.$ac_objext; then
   27176   ac_cv_type_fsblkcnt_t=yes
   27177 else
   27178   echo "$as_me: failed program was:" >&5
   27179 sed 's/^/| /' conftest.$ac_ext >&5
   27180 
   27181 	ac_cv_type_fsblkcnt_t=no
   27182 fi
   27183 
   27184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   27185 fi
   27186 { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
   27187 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
   27188 if test $ac_cv_type_fsblkcnt_t = yes; then
   27189 
   27190 cat >>confdefs.h <<_ACEOF
   27191 #define HAVE_FSBLKCNT_T 1
   27192 _ACEOF
   27193 
   27194 
   27195 fi
   27196 { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
   27197 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
   27198 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
   27199   echo $ECHO_N "(cached) $ECHO_C" >&6
   27200 else
   27201   cat >conftest.$ac_ext <<_ACEOF
   27202 /* confdefs.h.  */
   27203 _ACEOF
   27204 cat confdefs.h >>conftest.$ac_ext
   27205 cat >>conftest.$ac_ext <<_ACEOF
   27206 /* end confdefs.h.  */
   27207 
   27208 #include <sys/types.h>
   27209 #ifdef HAVE_SYS_BITYPES_H
   27210 #include <sys/bitypes.h>
   27211 #endif
   27212 #ifdef HAVE_SYS_STATFS_H
   27213 #include <sys/statfs.h>
   27214 #endif
   27215 #ifdef HAVE_SYS_STATVFS_H
   27216 #include <sys/statvfs.h>
   27217 #endif
   27218 
   27219 
   27220 typedef fsfilcnt_t ac__type_new_;
   27221 int
   27222 main ()
   27223 {
   27224 if ((ac__type_new_ *) 0)
   27225   return 0;
   27226 if (sizeof (ac__type_new_))
   27227   return 0;
   27228   ;
   27229   return 0;
   27230 }
   27231 _ACEOF
   27232 rm -f conftest.$ac_objext
   27233 if { (ac_try="$ac_compile"
   27234 case "(($ac_try" in
   27235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27236   *) ac_try_echo=$ac_try;;
   27237 esac
   27238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   27239   (eval "$ac_compile") 2>conftest.er1
   27240   ac_status=$?
   27241   grep -v '^ *+' conftest.er1 >conftest.err
   27242   rm -f conftest.er1
   27243   cat conftest.err >&5
   27244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27245   (exit $ac_status); } && {
   27246 	 test -z "$ac_c_werror_flag" ||
   27247 	 test ! -s conftest.err
   27248        } && test -s conftest.$ac_objext; then
   27249   ac_cv_type_fsfilcnt_t=yes
   27250 else
   27251   echo "$as_me: failed program was:" >&5
   27252 sed 's/^/| /' conftest.$ac_ext >&5
   27253 
   27254 	ac_cv_type_fsfilcnt_t=no
   27255 fi
   27256 
   27257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   27258 fi
   27259 { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
   27260 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
   27261 if test $ac_cv_type_fsfilcnt_t = yes; then
   27262 
   27263 cat >>confdefs.h <<_ACEOF
   27264 #define HAVE_FSFILCNT_T 1
   27265 _ACEOF
   27266 
   27267 
   27268 fi
   27269 
   27270 
   27271 { echo "$as_me:$LINENO: checking for in_addr_t" >&5
   27272 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
   27273 if test "${ac_cv_type_in_addr_t+set}" = set; then
   27274   echo $ECHO_N "(cached) $ECHO_C" >&6
   27275 else
   27276   cat >conftest.$ac_ext <<_ACEOF
   27277 /* confdefs.h.  */
   27278 _ACEOF
   27279 cat confdefs.h >>conftest.$ac_ext
   27280 cat >>conftest.$ac_ext <<_ACEOF
   27281 /* end confdefs.h.  */
   27282 #include <sys/types.h>
   27283 #include <netinet/in.h>
   27284 
   27285 typedef in_addr_t ac__type_new_;
   27286 int
   27287 main ()
   27288 {
   27289 if ((ac__type_new_ *) 0)
   27290   return 0;
   27291 if (sizeof (ac__type_new_))
   27292   return 0;
   27293   ;
   27294   return 0;
   27295 }
   27296 _ACEOF
   27297 rm -f conftest.$ac_objext
   27298 if { (ac_try="$ac_compile"
   27299 case "(($ac_try" in
   27300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27301   *) ac_try_echo=$ac_try;;
   27302 esac
   27303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   27304   (eval "$ac_compile") 2>conftest.er1
   27305   ac_status=$?
   27306   grep -v '^ *+' conftest.er1 >conftest.err
   27307   rm -f conftest.er1
   27308   cat conftest.err >&5
   27309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27310   (exit $ac_status); } && {
   27311 	 test -z "$ac_c_werror_flag" ||
   27312 	 test ! -s conftest.err
   27313        } && test -s conftest.$ac_objext; then
   27314   ac_cv_type_in_addr_t=yes
   27315 else
   27316   echo "$as_me: failed program was:" >&5
   27317 sed 's/^/| /' conftest.$ac_ext >&5
   27318 
   27319 	ac_cv_type_in_addr_t=no
   27320 fi
   27321 
   27322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   27323 fi
   27324 { echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
   27325 echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; }
   27326 if test $ac_cv_type_in_addr_t = yes; then
   27327 
   27328 cat >>confdefs.h <<_ACEOF
   27329 #define HAVE_IN_ADDR_T 1
   27330 _ACEOF
   27331 
   27332 
   27333 fi
   27334 { echo "$as_me:$LINENO: checking for in_port_t" >&5
   27335 echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; }
   27336 if test "${ac_cv_type_in_port_t+set}" = set; then
   27337   echo $ECHO_N "(cached) $ECHO_C" >&6
   27338 else
   27339   cat >conftest.$ac_ext <<_ACEOF
   27340 /* confdefs.h.  */
   27341 _ACEOF
   27342 cat confdefs.h >>conftest.$ac_ext
   27343 cat >>conftest.$ac_ext <<_ACEOF
   27344 /* end confdefs.h.  */
   27345 #include <sys/types.h>
   27346 #include <netinet/in.h>
   27347 
   27348 typedef in_port_t ac__type_new_;
   27349 int
   27350 main ()
   27351 {
   27352 if ((ac__type_new_ *) 0)
   27353   return 0;
   27354 if (sizeof (ac__type_new_))
   27355   return 0;
   27356   ;
   27357   return 0;
   27358 }
   27359 _ACEOF
   27360 rm -f conftest.$ac_objext
   27361 if { (ac_try="$ac_compile"
   27362 case "(($ac_try" in
   27363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27364   *) ac_try_echo=$ac_try;;
   27365 esac
   27366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   27367   (eval "$ac_compile") 2>conftest.er1
   27368   ac_status=$?
   27369   grep -v '^ *+' conftest.er1 >conftest.err
   27370   rm -f conftest.er1
   27371   cat conftest.err >&5
   27372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27373   (exit $ac_status); } && {
   27374 	 test -z "$ac_c_werror_flag" ||
   27375 	 test ! -s conftest.err
   27376        } && test -s conftest.$ac_objext; then
   27377   ac_cv_type_in_port_t=yes
   27378 else
   27379   echo "$as_me: failed program was:" >&5
   27380 sed 's/^/| /' conftest.$ac_ext >&5
   27381 
   27382 	ac_cv_type_in_port_t=no
   27383 fi
   27384 
   27385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   27386 fi
   27387 { echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
   27388 echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; }
   27389 if test $ac_cv_type_in_port_t = yes; then
   27390 
   27391 cat >>confdefs.h <<_ACEOF
   27392 #define HAVE_IN_PORT_T 1
   27393 _ACEOF
   27394 
   27395 
   27396 fi
   27397 
   27398 
   27399 { echo "$as_me:$LINENO: checking for size_t" >&5
   27400 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
   27401 if test "${ac_cv_have_size_t+set}" = set; then
   27402   echo $ECHO_N "(cached) $ECHO_C" >&6
   27403 else
   27404 
   27405 	cat >conftest.$ac_ext <<_ACEOF
   27406 /* confdefs.h.  */
   27407 _ACEOF
   27408 cat confdefs.h >>conftest.$ac_ext
   27409 cat >>conftest.$ac_ext <<_ACEOF
   27410 /* end confdefs.h.  */
   27411  #include <sys/types.h>
   27412 int
   27413 main ()
   27414 {
   27415  size_t foo; foo = 1235;
   27416   ;
   27417   return 0;
   27418 }
   27419 _ACEOF
   27420 rm -f conftest.$ac_objext
   27421 if { (ac_try="$ac_compile"
   27422 case "(($ac_try" in
   27423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27424   *) ac_try_echo=$ac_try;;
   27425 esac
   27426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   27427   (eval "$ac_compile") 2>conftest.er1
   27428   ac_status=$?
   27429   grep -v '^ *+' conftest.er1 >conftest.err
   27430   rm -f conftest.er1
   27431   cat conftest.err >&5
   27432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27433   (exit $ac_status); } && {
   27434 	 test -z "$ac_c_werror_flag" ||
   27435 	 test ! -s conftest.err
   27436        } && test -s conftest.$ac_objext; then
   27437    ac_cv_have_size_t="yes"
   27438 else
   27439   echo "$as_me: failed program was:" >&5
   27440 sed 's/^/| /' conftest.$ac_ext >&5
   27441 
   27442 	 ac_cv_have_size_t="no"
   27443 
   27444 fi
   27445 
   27446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   27447 
   27448 fi
   27449 { echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
   27450 echo "${ECHO_T}$ac_cv_have_size_t" >&6; }
   27451 if test "x$ac_cv_have_size_t" = "xyes" ; then
   27452 
   27453 cat >>confdefs.h <<\_ACEOF
   27454 #define HAVE_SIZE_T 1
   27455 _ACEOF
   27456 
   27457 fi
   27458 
   27459 { echo "$as_me:$LINENO: checking for ssize_t" >&5
   27460 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
   27461 if test "${ac_cv_have_ssize_t+set}" = set; then
   27462   echo $ECHO_N "(cached) $ECHO_C" >&6
   27463 else
   27464 
   27465 	cat >conftest.$ac_ext <<_ACEOF
   27466 /* confdefs.h.  */
   27467 _ACEOF
   27468 cat confdefs.h >>conftest.$ac_ext
   27469 cat >>conftest.$ac_ext <<_ACEOF
   27470 /* end confdefs.h.  */
   27471  #include <sys/types.h>
   27472 int
   27473 main ()
   27474 {
   27475  ssize_t foo; foo = 1235;
   27476   ;
   27477   return 0;
   27478 }
   27479 _ACEOF
   27480 rm -f conftest.$ac_objext
   27481 if { (ac_try="$ac_compile"
   27482 case "(($ac_try" in
   27483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27484   *) ac_try_echo=$ac_try;;
   27485 esac
   27486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   27487   (eval "$ac_compile") 2>conftest.er1
   27488   ac_status=$?
   27489   grep -v '^ *+' conftest.er1 >conftest.err
   27490   rm -f conftest.er1
   27491   cat conftest.err >&5
   27492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27493   (exit $ac_status); } && {
   27494 	 test -z "$ac_c_werror_flag" ||
   27495 	 test ! -s conftest.err
   27496        } && test -s conftest.$ac_objext; then
   27497    ac_cv_have_ssize_t="yes"
   27498 else
   27499   echo "$as_me: failed program was:" >&5
   27500 sed 's/^/| /' conftest.$ac_ext >&5
   27501 
   27502 	 ac_cv_have_ssize_t="no"
   27503 
   27504 fi
   27505 
   27506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   27507 
   27508 fi
   27509 { echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
   27510 echo "${ECHO_T}$ac_cv_have_ssize_t" >&6; }
   27511 if test "x$ac_cv_have_ssize_t" = "xyes" ; then
   27512 
   27513 cat >>confdefs.h <<\_ACEOF
   27514 #define HAVE_SSIZE_T 1
   27515 _ACEOF
   27516 
   27517 fi
   27518 
   27519 { echo "$as_me:$LINENO: checking for clock_t" >&5
   27520 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
   27521 if test "${ac_cv_have_clock_t+set}" = set; then
   27522   echo $ECHO_N "(cached) $ECHO_C" >&6
   27523 else
   27524 
   27525 	cat >conftest.$ac_ext <<_ACEOF
   27526 /* confdefs.h.  */
   27527 _ACEOF
   27528 cat confdefs.h >>conftest.$ac_ext
   27529 cat >>conftest.$ac_ext <<_ACEOF
   27530 /* end confdefs.h.  */
   27531  #include <time.h>
   27532 int
   27533 main ()
   27534 {
   27535  clock_t foo; foo = 1235;
   27536   ;
   27537   return 0;
   27538 }
   27539 _ACEOF
   27540 rm -f conftest.$ac_objext
   27541 if { (ac_try="$ac_compile"
   27542 case "(($ac_try" in
   27543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27544   *) ac_try_echo=$ac_try;;
   27545 esac
   27546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   27547   (eval "$ac_compile") 2>conftest.er1
   27548   ac_status=$?
   27549   grep -v '^ *+' conftest.er1 >conftest.err
   27550   rm -f conftest.er1
   27551   cat conftest.err >&5
   27552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27553   (exit $ac_status); } && {
   27554 	 test -z "$ac_c_werror_flag" ||
   27555 	 test ! -s conftest.err
   27556        } && test -s conftest.$ac_objext; then
   27557    ac_cv_have_clock_t="yes"
   27558 else
   27559   echo "$as_me: failed program was:" >&5
   27560 sed 's/^/| /' conftest.$ac_ext >&5
   27561 
   27562 	 ac_cv_have_clock_t="no"
   27563 
   27564 fi
   27565 
   27566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   27567 
   27568 fi
   27569 { echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
   27570 echo "${ECHO_T}$ac_cv_have_clock_t" >&6; }
   27571 if test "x$ac_cv_have_clock_t" = "xyes" ; then
   27572 
   27573 cat >>confdefs.h <<\_ACEOF
   27574 #define HAVE_CLOCK_T 1
   27575 _ACEOF
   27576 
   27577 fi
   27578 
   27579 { echo "$as_me:$LINENO: checking for sa_family_t" >&5
   27580 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
   27581 if test "${ac_cv_have_sa_family_t+set}" = set; then
   27582   echo $ECHO_N "(cached) $ECHO_C" >&6
   27583 else
   27584 
   27585 	cat >conftest.$ac_ext <<_ACEOF
   27586 /* confdefs.h.  */
   27587 _ACEOF
   27588 cat confdefs.h >>conftest.$ac_ext
   27589 cat >>conftest.$ac_ext <<_ACEOF
   27590 /* end confdefs.h.  */
   27591 
   27592 #include <sys/types.h>
   27593 #include <sys/socket.h>
   27594 
   27595 int
   27596 main ()
   27597 {
   27598  sa_family_t foo; foo = 1235;
   27599   ;
   27600   return 0;
   27601 }
   27602 _ACEOF
   27603 rm -f conftest.$ac_objext
   27604 if { (ac_try="$ac_compile"
   27605 case "(($ac_try" in
   27606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27607   *) ac_try_echo=$ac_try;;
   27608 esac
   27609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   27610   (eval "$ac_compile") 2>conftest.er1
   27611   ac_status=$?
   27612   grep -v '^ *+' conftest.er1 >conftest.err
   27613   rm -f conftest.er1
   27614   cat conftest.err >&5
   27615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27616   (exit $ac_status); } && {
   27617 	 test -z "$ac_c_werror_flag" ||
   27618 	 test ! -s conftest.err
   27619        } && test -s conftest.$ac_objext; then
   27620    ac_cv_have_sa_family_t="yes"
   27621 else
   27622   echo "$as_me: failed program was:" >&5
   27623 sed 's/^/| /' conftest.$ac_ext >&5
   27624 
   27625 	 cat >conftest.$ac_ext <<_ACEOF
   27626 /* confdefs.h.  */
   27627 _ACEOF
   27628 cat confdefs.h >>conftest.$ac_ext
   27629 cat >>conftest.$ac_ext <<_ACEOF
   27630 /* end confdefs.h.  */
   27631 
   27632 #include <sys/types.h>
   27633 #include <sys/socket.h>
   27634 #include <netinet/in.h>
   27635 
   27636 int
   27637 main ()
   27638 {
   27639  sa_family_t foo; foo = 1235;
   27640   ;
   27641   return 0;
   27642 }
   27643 _ACEOF
   27644 rm -f conftest.$ac_objext
   27645 if { (ac_try="$ac_compile"
   27646 case "(($ac_try" in
   27647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27648   *) ac_try_echo=$ac_try;;
   27649 esac
   27650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   27651   (eval "$ac_compile") 2>conftest.er1
   27652   ac_status=$?
   27653   grep -v '^ *+' conftest.er1 >conftest.err
   27654   rm -f conftest.er1
   27655   cat conftest.err >&5
   27656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27657   (exit $ac_status); } && {
   27658 	 test -z "$ac_c_werror_flag" ||
   27659 	 test ! -s conftest.err
   27660        } && test -s conftest.$ac_objext; then
   27661    ac_cv_have_sa_family_t="yes"
   27662 else
   27663   echo "$as_me: failed program was:" >&5
   27664 sed 's/^/| /' conftest.$ac_ext >&5
   27665 
   27666 	 ac_cv_have_sa_family_t="no"
   27667 
   27668 fi
   27669 
   27670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   27671 
   27672 fi
   27673 
   27674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   27675 
   27676 fi
   27677 { echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
   27678 echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6; }
   27679 if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
   27680 
   27681 cat >>confdefs.h <<\_ACEOF
   27682 #define HAVE_SA_FAMILY_T 1
   27683 _ACEOF
   27684 
   27685 fi
   27686 
   27687 { echo "$as_me:$LINENO: checking for pid_t" >&5
   27688 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
   27689 if test "${ac_cv_have_pid_t+set}" = set; then
   27690   echo $ECHO_N "(cached) $ECHO_C" >&6
   27691 else
   27692 
   27693 	cat >conftest.$ac_ext <<_ACEOF
   27694 /* confdefs.h.  */
   27695 _ACEOF
   27696 cat confdefs.h >>conftest.$ac_ext
   27697 cat >>conftest.$ac_ext <<_ACEOF
   27698 /* end confdefs.h.  */
   27699  #include <sys/types.h>
   27700 int
   27701 main ()
   27702 {
   27703  pid_t foo; foo = 1235;
   27704   ;
   27705   return 0;
   27706 }
   27707 _ACEOF
   27708 rm -f conftest.$ac_objext
   27709 if { (ac_try="$ac_compile"
   27710 case "(($ac_try" in
   27711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27712   *) ac_try_echo=$ac_try;;
   27713 esac
   27714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   27715   (eval "$ac_compile") 2>conftest.er1
   27716   ac_status=$?
   27717   grep -v '^ *+' conftest.er1 >conftest.err
   27718   rm -f conftest.er1
   27719   cat conftest.err >&5
   27720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27721   (exit $ac_status); } && {
   27722 	 test -z "$ac_c_werror_flag" ||
   27723 	 test ! -s conftest.err
   27724        } && test -s conftest.$ac_objext; then
   27725    ac_cv_have_pid_t="yes"
   27726 else
   27727   echo "$as_me: failed program was:" >&5
   27728 sed 's/^/| /' conftest.$ac_ext >&5
   27729 
   27730 	 ac_cv_have_pid_t="no"
   27731 
   27732 fi
   27733 
   27734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   27735 
   27736 fi
   27737 { echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
   27738 echo "${ECHO_T}$ac_cv_have_pid_t" >&6; }
   27739 if test "x$ac_cv_have_pid_t" = "xyes" ; then
   27740 
   27741 cat >>confdefs.h <<\_ACEOF
   27742 #define HAVE_PID_T 1
   27743 _ACEOF
   27744 
   27745 fi
   27746 
   27747 { echo "$as_me:$LINENO: checking for mode_t" >&5
   27748 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
   27749 if test "${ac_cv_have_mode_t+set}" = set; then
   27750   echo $ECHO_N "(cached) $ECHO_C" >&6
   27751 else
   27752 
   27753 	cat >conftest.$ac_ext <<_ACEOF
   27754 /* confdefs.h.  */
   27755 _ACEOF
   27756 cat confdefs.h >>conftest.$ac_ext
   27757 cat >>conftest.$ac_ext <<_ACEOF
   27758 /* end confdefs.h.  */
   27759  #include <sys/types.h>
   27760 int
   27761 main ()
   27762 {
   27763  mode_t foo; foo = 1235;
   27764   ;
   27765   return 0;
   27766 }
   27767 _ACEOF
   27768 rm -f conftest.$ac_objext
   27769 if { (ac_try="$ac_compile"
   27770 case "(($ac_try" in
   27771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27772   *) ac_try_echo=$ac_try;;
   27773 esac
   27774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   27775   (eval "$ac_compile") 2>conftest.er1
   27776   ac_status=$?
   27777   grep -v '^ *+' conftest.er1 >conftest.err
   27778   rm -f conftest.er1
   27779   cat conftest.err >&5
   27780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27781   (exit $ac_status); } && {
   27782 	 test -z "$ac_c_werror_flag" ||
   27783 	 test ! -s conftest.err
   27784        } && test -s conftest.$ac_objext; then
   27785    ac_cv_have_mode_t="yes"
   27786 else
   27787   echo "$as_me: failed program was:" >&5
   27788 sed 's/^/| /' conftest.$ac_ext >&5
   27789 
   27790 	 ac_cv_have_mode_t="no"
   27791 
   27792 fi
   27793 
   27794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   27795 
   27796 fi
   27797 { echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
   27798 echo "${ECHO_T}$ac_cv_have_mode_t" >&6; }
   27799 if test "x$ac_cv_have_mode_t" = "xyes" ; then
   27800 
   27801 cat >>confdefs.h <<\_ACEOF
   27802 #define HAVE_MODE_T 1
   27803 _ACEOF
   27804 
   27805 fi
   27806 
   27807 
   27808 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
   27809 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
   27810 if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
   27811   echo $ECHO_N "(cached) $ECHO_C" >&6
   27812 else
   27813 
   27814 	cat >conftest.$ac_ext <<_ACEOF
   27815 /* confdefs.h.  */
   27816 _ACEOF
   27817 cat confdefs.h >>conftest.$ac_ext
   27818 cat >>conftest.$ac_ext <<_ACEOF
   27819 /* end confdefs.h.  */
   27820 
   27821 #include <sys/types.h>
   27822 #include <sys/socket.h>
   27823 
   27824 int
   27825 main ()
   27826 {
   27827  struct sockaddr_storage s;
   27828   ;
   27829   return 0;
   27830 }
   27831 _ACEOF
   27832 rm -f conftest.$ac_objext
   27833 if { (ac_try="$ac_compile"
   27834 case "(($ac_try" in
   27835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27836   *) ac_try_echo=$ac_try;;
   27837 esac
   27838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   27839   (eval "$ac_compile") 2>conftest.er1
   27840   ac_status=$?
   27841   grep -v '^ *+' conftest.er1 >conftest.err
   27842   rm -f conftest.er1
   27843   cat conftest.err >&5
   27844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27845   (exit $ac_status); } && {
   27846 	 test -z "$ac_c_werror_flag" ||
   27847 	 test ! -s conftest.err
   27848        } && test -s conftest.$ac_objext; then
   27849    ac_cv_have_struct_sockaddr_storage="yes"
   27850 else
   27851   echo "$as_me: failed program was:" >&5
   27852 sed 's/^/| /' conftest.$ac_ext >&5
   27853 
   27854 	 ac_cv_have_struct_sockaddr_storage="no"
   27855 
   27856 fi
   27857 
   27858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   27859 
   27860 fi
   27861 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
   27862 echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; }
   27863 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
   27864 
   27865 cat >>confdefs.h <<\_ACEOF
   27866 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
   27867 _ACEOF
   27868 
   27869 fi
   27870 
   27871 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
   27872 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
   27873 if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
   27874   echo $ECHO_N "(cached) $ECHO_C" >&6
   27875 else
   27876 
   27877 	cat >conftest.$ac_ext <<_ACEOF
   27878 /* confdefs.h.  */
   27879 _ACEOF
   27880 cat confdefs.h >>conftest.$ac_ext
   27881 cat >>conftest.$ac_ext <<_ACEOF
   27882 /* end confdefs.h.  */
   27883 
   27884 #include <sys/types.h>
   27885 #include <netinet/in.h>
   27886 
   27887 int
   27888 main ()
   27889 {
   27890  struct sockaddr_in6 s; s.sin6_family = 0;
   27891   ;
   27892   return 0;
   27893 }
   27894 _ACEOF
   27895 rm -f conftest.$ac_objext
   27896 if { (ac_try="$ac_compile"
   27897 case "(($ac_try" in
   27898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27899   *) ac_try_echo=$ac_try;;
   27900 esac
   27901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   27902   (eval "$ac_compile") 2>conftest.er1
   27903   ac_status=$?
   27904   grep -v '^ *+' conftest.er1 >conftest.err
   27905   rm -f conftest.er1
   27906   cat conftest.err >&5
   27907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27908   (exit $ac_status); } && {
   27909 	 test -z "$ac_c_werror_flag" ||
   27910 	 test ! -s conftest.err
   27911        } && test -s conftest.$ac_objext; then
   27912    ac_cv_have_struct_sockaddr_in6="yes"
   27913 else
   27914   echo "$as_me: failed program was:" >&5
   27915 sed 's/^/| /' conftest.$ac_ext >&5
   27916 
   27917 	 ac_cv_have_struct_sockaddr_in6="no"
   27918 
   27919 fi
   27920 
   27921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   27922 
   27923 fi
   27924 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
   27925 echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; }
   27926 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
   27927 
   27928 cat >>confdefs.h <<\_ACEOF
   27929 #define HAVE_STRUCT_SOCKADDR_IN6 1
   27930 _ACEOF
   27931 
   27932 fi
   27933 
   27934 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
   27935 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
   27936 if test "${ac_cv_have_struct_in6_addr+set}" = set; then
   27937   echo $ECHO_N "(cached) $ECHO_C" >&6
   27938 else
   27939 
   27940 	cat >conftest.$ac_ext <<_ACEOF
   27941 /* confdefs.h.  */
   27942 _ACEOF
   27943 cat confdefs.h >>conftest.$ac_ext
   27944 cat >>conftest.$ac_ext <<_ACEOF
   27945 /* end confdefs.h.  */
   27946 
   27947 #include <sys/types.h>
   27948 #include <netinet/in.h>
   27949 
   27950 int
   27951 main ()
   27952 {
   27953  struct in6_addr s; s.s6_addr[0] = 0;
   27954   ;
   27955   return 0;
   27956 }
   27957 _ACEOF
   27958 rm -f conftest.$ac_objext
   27959 if { (ac_try="$ac_compile"
   27960 case "(($ac_try" in
   27961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   27962   *) ac_try_echo=$ac_try;;
   27963 esac
   27964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   27965   (eval "$ac_compile") 2>conftest.er1
   27966   ac_status=$?
   27967   grep -v '^ *+' conftest.er1 >conftest.err
   27968   rm -f conftest.er1
   27969   cat conftest.err >&5
   27970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   27971   (exit $ac_status); } && {
   27972 	 test -z "$ac_c_werror_flag" ||
   27973 	 test ! -s conftest.err
   27974        } && test -s conftest.$ac_objext; then
   27975    ac_cv_have_struct_in6_addr="yes"
   27976 else
   27977   echo "$as_me: failed program was:" >&5
   27978 sed 's/^/| /' conftest.$ac_ext >&5
   27979 
   27980 	 ac_cv_have_struct_in6_addr="no"
   27981 
   27982 fi
   27983 
   27984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   27985 
   27986 fi
   27987 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
   27988 echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; }
   27989 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
   27990 
   27991 cat >>confdefs.h <<\_ACEOF
   27992 #define HAVE_STRUCT_IN6_ADDR 1
   27993 _ACEOF
   27994 
   27995 
   27996 	{ echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
   27997 echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
   27998 if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
   27999   echo $ECHO_N "(cached) $ECHO_C" >&6
   28000 else
   28001   cat >conftest.$ac_ext <<_ACEOF
   28002 /* confdefs.h.  */
   28003 _ACEOF
   28004 cat confdefs.h >>conftest.$ac_ext
   28005 cat >>conftest.$ac_ext <<_ACEOF
   28006 /* end confdefs.h.  */
   28007 
   28008 #ifdef HAVE_SYS_TYPES_H
   28009 #include <sys/types.h>
   28010 #endif
   28011 #include <netinet/in.h>
   28012 
   28013 
   28014 int
   28015 main ()
   28016 {
   28017 static struct sockaddr_in6 ac_aggr;
   28018 if (ac_aggr.sin6_scope_id)
   28019 return 0;
   28020   ;
   28021   return 0;
   28022 }
   28023 _ACEOF
   28024 rm -f conftest.$ac_objext
   28025 if { (ac_try="$ac_compile"
   28026 case "(($ac_try" in
   28027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   28028   *) ac_try_echo=$ac_try;;
   28029 esac
   28030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   28031   (eval "$ac_compile") 2>conftest.er1
   28032   ac_status=$?
   28033   grep -v '^ *+' conftest.er1 >conftest.err
   28034   rm -f conftest.er1
   28035   cat conftest.err >&5
   28036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   28037   (exit $ac_status); } && {
   28038 	 test -z "$ac_c_werror_flag" ||
   28039 	 test ! -s conftest.err
   28040        } && test -s conftest.$ac_objext; then
   28041   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
   28042 else
   28043   echo "$as_me: failed program was:" >&5
   28044 sed 's/^/| /' conftest.$ac_ext >&5
   28045 
   28046 	cat >conftest.$ac_ext <<_ACEOF
   28047 /* confdefs.h.  */
   28048 _ACEOF
   28049 cat confdefs.h >>conftest.$ac_ext
   28050 cat >>conftest.$ac_ext <<_ACEOF
   28051 /* end confdefs.h.  */
   28052 
   28053 #ifdef HAVE_SYS_TYPES_H
   28054 #include <sys/types.h>
   28055 #endif
   28056 #include <netinet/in.h>
   28057 
   28058 
   28059 int
   28060 main ()
   28061 {
   28062 static struct sockaddr_in6 ac_aggr;
   28063 if (sizeof ac_aggr.sin6_scope_id)
   28064 return 0;
   28065   ;
   28066   return 0;
   28067 }
   28068 _ACEOF
   28069 rm -f conftest.$ac_objext
   28070 if { (ac_try="$ac_compile"
   28071 case "(($ac_try" in
   28072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   28073   *) ac_try_echo=$ac_try;;
   28074 esac
   28075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   28076   (eval "$ac_compile") 2>conftest.er1
   28077   ac_status=$?
   28078   grep -v '^ *+' conftest.er1 >conftest.err
   28079   rm -f conftest.er1
   28080   cat conftest.err >&5
   28081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   28082   (exit $ac_status); } && {
   28083 	 test -z "$ac_c_werror_flag" ||
   28084 	 test ! -s conftest.err
   28085        } && test -s conftest.$ac_objext; then
   28086   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
   28087 else
   28088   echo "$as_me: failed program was:" >&5
   28089 sed 's/^/| /' conftest.$ac_ext >&5
   28090 
   28091 	ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
   28092 fi
   28093 
   28094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   28095 fi
   28096 
   28097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   28098 fi
   28099 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
   28100 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
   28101 if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
   28102 
   28103 cat >>confdefs.h <<_ACEOF
   28104 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
   28105 _ACEOF
   28106 
   28107 
   28108 fi
   28109 
   28110 fi
   28111 
   28112 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
   28113 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
   28114 if test "${ac_cv_have_struct_addrinfo+set}" = set; then
   28115   echo $ECHO_N "(cached) $ECHO_C" >&6
   28116 else
   28117 
   28118 	cat >conftest.$ac_ext <<_ACEOF
   28119 /* confdefs.h.  */
   28120 _ACEOF
   28121 cat confdefs.h >>conftest.$ac_ext
   28122 cat >>conftest.$ac_ext <<_ACEOF
   28123 /* end confdefs.h.  */
   28124 
   28125 #include <sys/types.h>
   28126 #include <sys/socket.h>
   28127 #include <netdb.h>
   28128 
   28129 int
   28130 main ()
   28131 {
   28132  struct addrinfo s; s.ai_flags = AI_PASSIVE;
   28133   ;
   28134   return 0;
   28135 }
   28136 _ACEOF
   28137 rm -f conftest.$ac_objext
   28138 if { (ac_try="$ac_compile"
   28139 case "(($ac_try" in
   28140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   28141   *) ac_try_echo=$ac_try;;
   28142 esac
   28143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   28144   (eval "$ac_compile") 2>conftest.er1
   28145   ac_status=$?
   28146   grep -v '^ *+' conftest.er1 >conftest.err
   28147   rm -f conftest.er1
   28148   cat conftest.err >&5
   28149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   28150   (exit $ac_status); } && {
   28151 	 test -z "$ac_c_werror_flag" ||
   28152 	 test ! -s conftest.err
   28153        } && test -s conftest.$ac_objext; then
   28154    ac_cv_have_struct_addrinfo="yes"
   28155 else
   28156   echo "$as_me: failed program was:" >&5
   28157 sed 's/^/| /' conftest.$ac_ext >&5
   28158 
   28159 	 ac_cv_have_struct_addrinfo="no"
   28160 
   28161 fi
   28162 
   28163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   28164 
   28165 fi
   28166 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
   28167 echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; }
   28168 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
   28169 
   28170 cat >>confdefs.h <<\_ACEOF
   28171 #define HAVE_STRUCT_ADDRINFO 1
   28172 _ACEOF
   28173 
   28174 fi
   28175 
   28176 { echo "$as_me:$LINENO: checking for struct timeval" >&5
   28177 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
   28178 if test "${ac_cv_have_struct_timeval+set}" = set; then
   28179   echo $ECHO_N "(cached) $ECHO_C" >&6
   28180 else
   28181 
   28182 	cat >conftest.$ac_ext <<_ACEOF
   28183 /* confdefs.h.  */
   28184 _ACEOF
   28185 cat confdefs.h >>conftest.$ac_ext
   28186 cat >>conftest.$ac_ext <<_ACEOF
   28187 /* end confdefs.h.  */
   28188  #include <sys/time.h>
   28189 int
   28190 main ()
   28191 {
   28192  struct timeval tv; tv.tv_sec = 1;
   28193   ;
   28194   return 0;
   28195 }
   28196 _ACEOF
   28197 rm -f conftest.$ac_objext
   28198 if { (ac_try="$ac_compile"
   28199 case "(($ac_try" in
   28200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   28201   *) ac_try_echo=$ac_try;;
   28202 esac
   28203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   28204   (eval "$ac_compile") 2>conftest.er1
   28205   ac_status=$?
   28206   grep -v '^ *+' conftest.er1 >conftest.err
   28207   rm -f conftest.er1
   28208   cat conftest.err >&5
   28209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   28210   (exit $ac_status); } && {
   28211 	 test -z "$ac_c_werror_flag" ||
   28212 	 test ! -s conftest.err
   28213        } && test -s conftest.$ac_objext; then
   28214    ac_cv_have_struct_timeval="yes"
   28215 else
   28216   echo "$as_me: failed program was:" >&5
   28217 sed 's/^/| /' conftest.$ac_ext >&5
   28218 
   28219 	 ac_cv_have_struct_timeval="no"
   28220 
   28221 fi
   28222 
   28223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   28224 
   28225 fi
   28226 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
   28227 echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6; }
   28228 if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
   28229 
   28230 cat >>confdefs.h <<\_ACEOF
   28231 #define HAVE_STRUCT_TIMEVAL 1
   28232 _ACEOF
   28233 
   28234 	have_struct_timeval=1
   28235 fi
   28236 
   28237 { echo "$as_me:$LINENO: checking for struct timespec" >&5
   28238 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
   28239 if test "${ac_cv_type_struct_timespec+set}" = set; then
   28240   echo $ECHO_N "(cached) $ECHO_C" >&6
   28241 else
   28242   cat >conftest.$ac_ext <<_ACEOF
   28243 /* confdefs.h.  */
   28244 _ACEOF
   28245 cat confdefs.h >>conftest.$ac_ext
   28246 cat >>conftest.$ac_ext <<_ACEOF
   28247 /* end confdefs.h.  */
   28248 $ac_includes_default
   28249 typedef struct timespec ac__type_new_;
   28250 int
   28251 main ()
   28252 {
   28253 if ((ac__type_new_ *) 0)
   28254   return 0;
   28255 if (sizeof (ac__type_new_))
   28256   return 0;
   28257   ;
   28258   return 0;
   28259 }
   28260 _ACEOF
   28261 rm -f conftest.$ac_objext
   28262 if { (ac_try="$ac_compile"
   28263 case "(($ac_try" in
   28264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   28265   *) ac_try_echo=$ac_try;;
   28266 esac
   28267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   28268   (eval "$ac_compile") 2>conftest.er1
   28269   ac_status=$?
   28270   grep -v '^ *+' conftest.er1 >conftest.err
   28271   rm -f conftest.er1
   28272   cat conftest.err >&5
   28273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   28274   (exit $ac_status); } && {
   28275 	 test -z "$ac_c_werror_flag" ||
   28276 	 test ! -s conftest.err
   28277        } && test -s conftest.$ac_objext; then
   28278   ac_cv_type_struct_timespec=yes
   28279 else
   28280   echo "$as_me: failed program was:" >&5
   28281 sed 's/^/| /' conftest.$ac_ext >&5
   28282 
   28283 	ac_cv_type_struct_timespec=no
   28284 fi
   28285 
   28286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   28287 fi
   28288 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
   28289 echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
   28290 if test $ac_cv_type_struct_timespec = yes; then
   28291 
   28292 cat >>confdefs.h <<_ACEOF
   28293 #define HAVE_STRUCT_TIMESPEC 1
   28294 _ACEOF
   28295 
   28296 
   28297 fi
   28298 
   28299 
   28300 # We need int64_t or else certian parts of the compile will fail.
   28301 if test "x$ac_cv_have_int64_t" = "xno" && \
   28302 	test "x$ac_cv_sizeof_long_int" != "x8" && \
   28303 	test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
   28304 	echo "OpenSSH requires int64_t support.  Contact your vendor or install"
   28305 	echo "an alternative compiler (I.E., GCC) before continuing."
   28306 	echo ""
   28307 	exit 1;
   28308 else
   28309 	if test "$cross_compiling" = yes; then
   28310   { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
   28311 echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
   28312 
   28313 else
   28314   cat >conftest.$ac_ext <<_ACEOF
   28315 /* confdefs.h.  */
   28316 _ACEOF
   28317 cat confdefs.h >>conftest.$ac_ext
   28318 cat >>conftest.$ac_ext <<_ACEOF
   28319 /* end confdefs.h.  */
   28320 
   28321 #include <stdio.h>
   28322 #include <string.h>
   28323 #ifdef HAVE_SNPRINTF
   28324 main()
   28325 {
   28326 	char buf[50];
   28327 	char expected_out[50];
   28328 	int mazsize = 50 ;
   28329 #if (SIZEOF_LONG_INT == 8)
   28330 	long int num = 0x7fffffffffffffff;
   28331 #else
   28332 	long long num = 0x7fffffffffffffffll;
   28333 #endif
   28334 	strcpy(expected_out, "9223372036854775807");
   28335 	snprintf(buf, mazsize, "%lld", num);
   28336 	if(strcmp(buf, expected_out) != 0)
   28337 		exit(1);
   28338 	exit(0);
   28339 }
   28340 #else
   28341 main() { exit(0); }
   28342 #endif
   28343 
   28344 _ACEOF
   28345 rm -f conftest$ac_exeext
   28346 if { (ac_try="$ac_link"
   28347 case "(($ac_try" in
   28348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   28349   *) ac_try_echo=$ac_try;;
   28350 esac
   28351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   28352   (eval "$ac_link") 2>&5
   28353   ac_status=$?
   28354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   28355   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   28356   { (case "(($ac_try" in
   28357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   28358   *) ac_try_echo=$ac_try;;
   28359 esac
   28360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   28361   (eval "$ac_try") 2>&5
   28362   ac_status=$?
   28363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   28364   (exit $ac_status); }; }; then
   28365    true
   28366 else
   28367   echo "$as_me: program exited with status $ac_status" >&5
   28368 echo "$as_me: failed program was:" >&5
   28369 sed 's/^/| /' conftest.$ac_ext >&5
   28370 
   28371 ( exit $ac_status )
   28372  cat >>confdefs.h <<\_ACEOF
   28373 #define BROKEN_SNPRINTF 1
   28374 _ACEOF
   28375 
   28376 fi
   28377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   28378 fi
   28379 
   28380 
   28381 fi
   28382 
   28383 
   28384 # look for field 'ut_host' in header 'utmp.h'
   28385 		ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
   28386 		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
   28387 	{ echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
   28388 echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6; }
   28389 	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
   28390   echo $ECHO_N "(cached) $ECHO_C" >&6
   28391 else
   28392 
   28393 		cat >conftest.$ac_ext <<_ACEOF
   28394 /* confdefs.h.  */
   28395 _ACEOF
   28396 cat confdefs.h >>conftest.$ac_ext
   28397 cat >>conftest.$ac_ext <<_ACEOF
   28398 /* end confdefs.h.  */
   28399 #include <utmp.h>
   28400 
   28401 _ACEOF
   28402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   28403   $EGREP "ut_host" >/dev/null 2>&1; then
   28404    			eval "$ossh_varname=yes"
   28405 else
   28406    			eval "$ossh_varname=no"
   28407 fi
   28408 rm -f conftest*
   28409 
   28410 fi
   28411 
   28412 	ossh_result=`eval 'echo $'"$ossh_varname"`
   28413 	if test -n "`echo $ossh_varname`"; then
   28414 		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
   28415 echo "${ECHO_T}$ossh_result" >&6; }
   28416 		if test "x$ossh_result" = "xyes"; then
   28417 
   28418 cat >>confdefs.h <<\_ACEOF
   28419 #define HAVE_HOST_IN_UTMP 1
   28420 _ACEOF
   28421 
   28422 		fi
   28423 	else
   28424 		{ echo "$as_me:$LINENO: result: no" >&5
   28425 echo "${ECHO_T}no" >&6; }
   28426 	fi
   28427 
   28428 
   28429 # look for field 'ut_host' in header 'utmpx.h'
   28430 		ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
   28431 		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
   28432 	{ echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
   28433 echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6; }
   28434 	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
   28435   echo $ECHO_N "(cached) $ECHO_C" >&6
   28436 else
   28437 
   28438 		cat >conftest.$ac_ext <<_ACEOF
   28439 /* confdefs.h.  */
   28440 _ACEOF
   28441 cat confdefs.h >>conftest.$ac_ext
   28442 cat >>conftest.$ac_ext <<_ACEOF
   28443 /* end confdefs.h.  */
   28444 #include <utmpx.h>
   28445 
   28446 _ACEOF
   28447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   28448   $EGREP "ut_host" >/dev/null 2>&1; then
   28449    			eval "$ossh_varname=yes"
   28450 else
   28451    			eval "$ossh_varname=no"
   28452 fi
   28453 rm -f conftest*
   28454 
   28455 fi
   28456 
   28457 	ossh_result=`eval 'echo $'"$ossh_varname"`
   28458 	if test -n "`echo $ossh_varname`"; then
   28459 		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
   28460 echo "${ECHO_T}$ossh_result" >&6; }
   28461 		if test "x$ossh_result" = "xyes"; then
   28462 
   28463 cat >>confdefs.h <<\_ACEOF
   28464 #define HAVE_HOST_IN_UTMPX 1
   28465 _ACEOF
   28466 
   28467 		fi
   28468 	else
   28469 		{ echo "$as_me:$LINENO: result: no" >&5
   28470 echo "${ECHO_T}no" >&6; }
   28471 	fi
   28472 
   28473 
   28474 # look for field 'syslen' in header 'utmpx.h'
   28475 		ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
   28476 		ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
   28477 	{ echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
   28478 echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6; }
   28479 	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
   28480   echo $ECHO_N "(cached) $ECHO_C" >&6
   28481 else
   28482 
   28483 		cat >conftest.$ac_ext <<_ACEOF
   28484 /* confdefs.h.  */
   28485 _ACEOF
   28486 cat confdefs.h >>conftest.$ac_ext
   28487 cat >>conftest.$ac_ext <<_ACEOF
   28488 /* end confdefs.h.  */
   28489 #include <utmpx.h>
   28490 
   28491 _ACEOF
   28492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   28493   $EGREP "syslen" >/dev/null 2>&1; then
   28494    			eval "$ossh_varname=yes"
   28495 else
   28496    			eval "$ossh_varname=no"
   28497 fi
   28498 rm -f conftest*
   28499 
   28500 fi
   28501 
   28502 	ossh_result=`eval 'echo $'"$ossh_varname"`
   28503 	if test -n "`echo $ossh_varname`"; then
   28504 		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
   28505 echo "${ECHO_T}$ossh_result" >&6; }
   28506 		if test "x$ossh_result" = "xyes"; then
   28507 
   28508 cat >>confdefs.h <<\_ACEOF
   28509 #define HAVE_SYSLEN_IN_UTMPX 1
   28510 _ACEOF
   28511 
   28512 		fi
   28513 	else
   28514 		{ echo "$as_me:$LINENO: result: no" >&5
   28515 echo "${ECHO_T}no" >&6; }
   28516 	fi
   28517 
   28518 
   28519 # look for field 'ut_pid' in header 'utmp.h'
   28520 		ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
   28521 		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
   28522 	{ echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
   28523 echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6; }
   28524 	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
   28525   echo $ECHO_N "(cached) $ECHO_C" >&6
   28526 else
   28527 
   28528 		cat >conftest.$ac_ext <<_ACEOF
   28529 /* confdefs.h.  */
   28530 _ACEOF
   28531 cat confdefs.h >>conftest.$ac_ext
   28532 cat >>conftest.$ac_ext <<_ACEOF
   28533 /* end confdefs.h.  */
   28534 #include <utmp.h>
   28535 
   28536 _ACEOF
   28537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   28538   $EGREP "ut_pid" >/dev/null 2>&1; then
   28539    			eval "$ossh_varname=yes"
   28540 else
   28541    			eval "$ossh_varname=no"
   28542 fi
   28543 rm -f conftest*
   28544 
   28545 fi
   28546 
   28547 	ossh_result=`eval 'echo $'"$ossh_varname"`
   28548 	if test -n "`echo $ossh_varname`"; then
   28549 		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
   28550 echo "${ECHO_T}$ossh_result" >&6; }
   28551 		if test "x$ossh_result" = "xyes"; then
   28552 
   28553 cat >>confdefs.h <<\_ACEOF
   28554 #define HAVE_PID_IN_UTMP 1
   28555 _ACEOF
   28556 
   28557 		fi
   28558 	else
   28559 		{ echo "$as_me:$LINENO: result: no" >&5
   28560 echo "${ECHO_T}no" >&6; }
   28561 	fi
   28562 
   28563 
   28564 # look for field 'ut_type' in header 'utmp.h'
   28565 		ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
   28566 		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
   28567 	{ echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
   28568 echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6; }
   28569 	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
   28570   echo $ECHO_N "(cached) $ECHO_C" >&6
   28571 else
   28572 
   28573 		cat >conftest.$ac_ext <<_ACEOF
   28574 /* confdefs.h.  */
   28575 _ACEOF
   28576 cat confdefs.h >>conftest.$ac_ext
   28577 cat >>conftest.$ac_ext <<_ACEOF
   28578 /* end confdefs.h.  */
   28579 #include <utmp.h>
   28580 
   28581 _ACEOF
   28582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   28583   $EGREP "ut_type" >/dev/null 2>&1; then
   28584    			eval "$ossh_varname=yes"
   28585 else
   28586    			eval "$ossh_varname=no"
   28587 fi
   28588 rm -f conftest*
   28589 
   28590 fi
   28591 
   28592 	ossh_result=`eval 'echo $'"$ossh_varname"`
   28593 	if test -n "`echo $ossh_varname`"; then
   28594 		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
   28595 echo "${ECHO_T}$ossh_result" >&6; }
   28596 		if test "x$ossh_result" = "xyes"; then
   28597 
   28598 cat >>confdefs.h <<\_ACEOF
   28599 #define HAVE_TYPE_IN_UTMP 1
   28600 _ACEOF
   28601 
   28602 		fi
   28603 	else
   28604 		{ echo "$as_me:$LINENO: result: no" >&5
   28605 echo "${ECHO_T}no" >&6; }
   28606 	fi
   28607 
   28608 
   28609 # look for field 'ut_type' in header 'utmpx.h'
   28610 		ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
   28611 		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
   28612 	{ echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
   28613 echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6; }
   28614 	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
   28615   echo $ECHO_N "(cached) $ECHO_C" >&6
   28616 else
   28617 
   28618 		cat >conftest.$ac_ext <<_ACEOF
   28619 /* confdefs.h.  */
   28620 _ACEOF
   28621 cat confdefs.h >>conftest.$ac_ext
   28622 cat >>conftest.$ac_ext <<_ACEOF
   28623 /* end confdefs.h.  */
   28624 #include <utmpx.h>
   28625 
   28626 _ACEOF
   28627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   28628   $EGREP "ut_type" >/dev/null 2>&1; then
   28629    			eval "$ossh_varname=yes"
   28630 else
   28631    			eval "$ossh_varname=no"
   28632 fi
   28633 rm -f conftest*
   28634 
   28635 fi
   28636 
   28637 	ossh_result=`eval 'echo $'"$ossh_varname"`
   28638 	if test -n "`echo $ossh_varname`"; then
   28639 		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
   28640 echo "${ECHO_T}$ossh_result" >&6; }
   28641 		if test "x$ossh_result" = "xyes"; then
   28642 
   28643 cat >>confdefs.h <<\_ACEOF
   28644 #define HAVE_TYPE_IN_UTMPX 1
   28645 _ACEOF
   28646 
   28647 		fi
   28648 	else
   28649 		{ echo "$as_me:$LINENO: result: no" >&5
   28650 echo "${ECHO_T}no" >&6; }
   28651 	fi
   28652 
   28653 
   28654 # look for field 'ut_tv' in header 'utmp.h'
   28655 		ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
   28656 		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
   28657 	{ echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
   28658 echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6; }
   28659 	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
   28660   echo $ECHO_N "(cached) $ECHO_C" >&6
   28661 else
   28662 
   28663 		cat >conftest.$ac_ext <<_ACEOF
   28664 /* confdefs.h.  */
   28665 _ACEOF
   28666 cat confdefs.h >>conftest.$ac_ext
   28667 cat >>conftest.$ac_ext <<_ACEOF
   28668 /* end confdefs.h.  */
   28669 #include <utmp.h>
   28670 
   28671 _ACEOF
   28672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   28673   $EGREP "ut_tv" >/dev/null 2>&1; then
   28674    			eval "$ossh_varname=yes"
   28675 else
   28676    			eval "$ossh_varname=no"
   28677 fi
   28678 rm -f conftest*
   28679 
   28680 fi
   28681 
   28682 	ossh_result=`eval 'echo $'"$ossh_varname"`
   28683 	if test -n "`echo $ossh_varname`"; then
   28684 		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
   28685 echo "${ECHO_T}$ossh_result" >&6; }
   28686 		if test "x$ossh_result" = "xyes"; then
   28687 
   28688 cat >>confdefs.h <<\_ACEOF
   28689 #define HAVE_TV_IN_UTMP 1
   28690 _ACEOF
   28691 
   28692 		fi
   28693 	else
   28694 		{ echo "$as_me:$LINENO: result: no" >&5
   28695 echo "${ECHO_T}no" >&6; }
   28696 	fi
   28697 
   28698 
   28699 # look for field 'ut_id' in header 'utmp.h'
   28700 		ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
   28701 		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
   28702 	{ echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
   28703 echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6; }
   28704 	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
   28705   echo $ECHO_N "(cached) $ECHO_C" >&6
   28706 else
   28707 
   28708 		cat >conftest.$ac_ext <<_ACEOF
   28709 /* confdefs.h.  */
   28710 _ACEOF
   28711 cat confdefs.h >>conftest.$ac_ext
   28712 cat >>conftest.$ac_ext <<_ACEOF
   28713 /* end confdefs.h.  */
   28714 #include <utmp.h>
   28715 
   28716 _ACEOF
   28717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   28718   $EGREP "ut_id" >/dev/null 2>&1; then
   28719    			eval "$ossh_varname=yes"
   28720 else
   28721    			eval "$ossh_varname=no"
   28722 fi
   28723 rm -f conftest*
   28724 
   28725 fi
   28726 
   28727 	ossh_result=`eval 'echo $'"$ossh_varname"`
   28728 	if test -n "`echo $ossh_varname`"; then
   28729 		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
   28730 echo "${ECHO_T}$ossh_result" >&6; }
   28731 		if test "x$ossh_result" = "xyes"; then
   28732 
   28733 cat >>confdefs.h <<\_ACEOF
   28734 #define HAVE_ID_IN_UTMP 1
   28735 _ACEOF
   28736 
   28737 		fi
   28738 	else
   28739 		{ echo "$as_me:$LINENO: result: no" >&5
   28740 echo "${ECHO_T}no" >&6; }
   28741 	fi
   28742 
   28743 
   28744 # look for field 'ut_id' in header 'utmpx.h'
   28745 		ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
   28746 		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
   28747 	{ echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
   28748 echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6; }
   28749 	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
   28750   echo $ECHO_N "(cached) $ECHO_C" >&6
   28751 else
   28752 
   28753 		cat >conftest.$ac_ext <<_ACEOF
   28754 /* confdefs.h.  */
   28755 _ACEOF
   28756 cat confdefs.h >>conftest.$ac_ext
   28757 cat >>conftest.$ac_ext <<_ACEOF
   28758 /* end confdefs.h.  */
   28759 #include <utmpx.h>
   28760 
   28761 _ACEOF
   28762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   28763   $EGREP "ut_id" >/dev/null 2>&1; then
   28764    			eval "$ossh_varname=yes"
   28765 else
   28766    			eval "$ossh_varname=no"
   28767 fi
   28768 rm -f conftest*
   28769 
   28770 fi
   28771 
   28772 	ossh_result=`eval 'echo $'"$ossh_varname"`
   28773 	if test -n "`echo $ossh_varname`"; then
   28774 		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
   28775 echo "${ECHO_T}$ossh_result" >&6; }
   28776 		if test "x$ossh_result" = "xyes"; then
   28777 
   28778 cat >>confdefs.h <<\_ACEOF
   28779 #define HAVE_ID_IN_UTMPX 1
   28780 _ACEOF
   28781 
   28782 		fi
   28783 	else
   28784 		{ echo "$as_me:$LINENO: result: no" >&5
   28785 echo "${ECHO_T}no" >&6; }
   28786 	fi
   28787 
   28788 
   28789 # look for field 'ut_addr' in header 'utmp.h'
   28790 		ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
   28791 		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
   28792 	{ echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
   28793 echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6; }
   28794 	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
   28795   echo $ECHO_N "(cached) $ECHO_C" >&6
   28796 else
   28797 
   28798 		cat >conftest.$ac_ext <<_ACEOF
   28799 /* confdefs.h.  */
   28800 _ACEOF
   28801 cat confdefs.h >>conftest.$ac_ext
   28802 cat >>conftest.$ac_ext <<_ACEOF
   28803 /* end confdefs.h.  */
   28804 #include <utmp.h>
   28805 
   28806 _ACEOF
   28807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   28808   $EGREP "ut_addr" >/dev/null 2>&1; then
   28809    			eval "$ossh_varname=yes"
   28810 else
   28811    			eval "$ossh_varname=no"
   28812 fi
   28813 rm -f conftest*
   28814 
   28815 fi
   28816 
   28817 	ossh_result=`eval 'echo $'"$ossh_varname"`
   28818 	if test -n "`echo $ossh_varname`"; then
   28819 		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
   28820 echo "${ECHO_T}$ossh_result" >&6; }
   28821 		if test "x$ossh_result" = "xyes"; then
   28822 
   28823 cat >>confdefs.h <<\_ACEOF
   28824 #define HAVE_ADDR_IN_UTMP 1
   28825 _ACEOF
   28826 
   28827 		fi
   28828 	else
   28829 		{ echo "$as_me:$LINENO: result: no" >&5
   28830 echo "${ECHO_T}no" >&6; }
   28831 	fi
   28832 
   28833 
   28834 # look for field 'ut_addr' in header 'utmpx.h'
   28835 		ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
   28836 		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
   28837 	{ echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
   28838 echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6; }
   28839 	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
   28840   echo $ECHO_N "(cached) $ECHO_C" >&6
   28841 else
   28842 
   28843 		cat >conftest.$ac_ext <<_ACEOF
   28844 /* confdefs.h.  */
   28845 _ACEOF
   28846 cat confdefs.h >>conftest.$ac_ext
   28847 cat >>conftest.$ac_ext <<_ACEOF
   28848 /* end confdefs.h.  */
   28849 #include <utmpx.h>
   28850 
   28851 _ACEOF
   28852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   28853   $EGREP "ut_addr" >/dev/null 2>&1; then
   28854    			eval "$ossh_varname=yes"
   28855 else
   28856    			eval "$ossh_varname=no"
   28857 fi
   28858 rm -f conftest*
   28859 
   28860 fi
   28861 
   28862 	ossh_result=`eval 'echo $'"$ossh_varname"`
   28863 	if test -n "`echo $ossh_varname`"; then
   28864 		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
   28865 echo "${ECHO_T}$ossh_result" >&6; }
   28866 		if test "x$ossh_result" = "xyes"; then
   28867 
   28868 cat >>confdefs.h <<\_ACEOF
   28869 #define HAVE_ADDR_IN_UTMPX 1
   28870 _ACEOF
   28871 
   28872 		fi
   28873 	else
   28874 		{ echo "$as_me:$LINENO: result: no" >&5
   28875 echo "${ECHO_T}no" >&6; }
   28876 	fi
   28877 
   28878 
   28879 # look for field 'ut_addr_v6' in header 'utmp.h'
   28880 		ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
   28881 		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
   28882 	{ echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
   28883 echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6; }
   28884 	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
   28885   echo $ECHO_N "(cached) $ECHO_C" >&6
   28886 else
   28887 
   28888 		cat >conftest.$ac_ext <<_ACEOF
   28889 /* confdefs.h.  */
   28890 _ACEOF
   28891 cat confdefs.h >>conftest.$ac_ext
   28892 cat >>conftest.$ac_ext <<_ACEOF
   28893 /* end confdefs.h.  */
   28894 #include <utmp.h>
   28895 
   28896 _ACEOF
   28897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   28898   $EGREP "ut_addr_v6" >/dev/null 2>&1; then
   28899    			eval "$ossh_varname=yes"
   28900 else
   28901    			eval "$ossh_varname=no"
   28902 fi
   28903 rm -f conftest*
   28904 
   28905 fi
   28906 
   28907 	ossh_result=`eval 'echo $'"$ossh_varname"`
   28908 	if test -n "`echo $ossh_varname`"; then
   28909 		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
   28910 echo "${ECHO_T}$ossh_result" >&6; }
   28911 		if test "x$ossh_result" = "xyes"; then
   28912 
   28913 cat >>confdefs.h <<\_ACEOF
   28914 #define HAVE_ADDR_V6_IN_UTMP 1
   28915 _ACEOF
   28916 
   28917 		fi
   28918 	else
   28919 		{ echo "$as_me:$LINENO: result: no" >&5
   28920 echo "${ECHO_T}no" >&6; }
   28921 	fi
   28922 
   28923 
   28924 # look for field 'ut_addr_v6' in header 'utmpx.h'
   28925 		ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
   28926 		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
   28927 	{ echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
   28928 echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6; }
   28929 	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
   28930   echo $ECHO_N "(cached) $ECHO_C" >&6
   28931 else
   28932 
   28933 		cat >conftest.$ac_ext <<_ACEOF
   28934 /* confdefs.h.  */
   28935 _ACEOF
   28936 cat confdefs.h >>conftest.$ac_ext
   28937 cat >>conftest.$ac_ext <<_ACEOF
   28938 /* end confdefs.h.  */
   28939 #include <utmpx.h>
   28940 
   28941 _ACEOF
   28942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   28943   $EGREP "ut_addr_v6" >/dev/null 2>&1; then
   28944    			eval "$ossh_varname=yes"
   28945 else
   28946    			eval "$ossh_varname=no"
   28947 fi
   28948 rm -f conftest*
   28949 
   28950 fi
   28951 
   28952 	ossh_result=`eval 'echo $'"$ossh_varname"`
   28953 	if test -n "`echo $ossh_varname`"; then
   28954 		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
   28955 echo "${ECHO_T}$ossh_result" >&6; }
   28956 		if test "x$ossh_result" = "xyes"; then
   28957 
   28958 cat >>confdefs.h <<\_ACEOF
   28959 #define HAVE_ADDR_V6_IN_UTMPX 1
   28960 _ACEOF
   28961 
   28962 		fi
   28963 	else
   28964 		{ echo "$as_me:$LINENO: result: no" >&5
   28965 echo "${ECHO_T}no" >&6; }
   28966 	fi
   28967 
   28968 
   28969 # look for field 'ut_exit' in header 'utmp.h'
   28970 		ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
   28971 		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
   28972 	{ echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
   28973 echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6; }
   28974 	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
   28975   echo $ECHO_N "(cached) $ECHO_C" >&6
   28976 else
   28977 
   28978 		cat >conftest.$ac_ext <<_ACEOF
   28979 /* confdefs.h.  */
   28980 _ACEOF
   28981 cat confdefs.h >>conftest.$ac_ext
   28982 cat >>conftest.$ac_ext <<_ACEOF
   28983 /* end confdefs.h.  */
   28984 #include <utmp.h>
   28985 
   28986 _ACEOF
   28987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   28988   $EGREP "ut_exit" >/dev/null 2>&1; then
   28989    			eval "$ossh_varname=yes"
   28990 else
   28991    			eval "$ossh_varname=no"
   28992 fi
   28993 rm -f conftest*
   28994 
   28995 fi
   28996 
   28997 	ossh_result=`eval 'echo $'"$ossh_varname"`
   28998 	if test -n "`echo $ossh_varname`"; then
   28999 		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
   29000 echo "${ECHO_T}$ossh_result" >&6; }
   29001 		if test "x$ossh_result" = "xyes"; then
   29002 
   29003 cat >>confdefs.h <<\_ACEOF
   29004 #define HAVE_EXIT_IN_UTMP 1
   29005 _ACEOF
   29006 
   29007 		fi
   29008 	else
   29009 		{ echo "$as_me:$LINENO: result: no" >&5
   29010 echo "${ECHO_T}no" >&6; }
   29011 	fi
   29012 
   29013 
   29014 # look for field 'ut_time' in header 'utmp.h'
   29015 		ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
   29016 		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
   29017 	{ echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
   29018 echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6; }
   29019 	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
   29020   echo $ECHO_N "(cached) $ECHO_C" >&6
   29021 else
   29022 
   29023 		cat >conftest.$ac_ext <<_ACEOF
   29024 /* confdefs.h.  */
   29025 _ACEOF
   29026 cat confdefs.h >>conftest.$ac_ext
   29027 cat >>conftest.$ac_ext <<_ACEOF
   29028 /* end confdefs.h.  */
   29029 #include <utmp.h>
   29030 
   29031 _ACEOF
   29032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   29033   $EGREP "ut_time" >/dev/null 2>&1; then
   29034    			eval "$ossh_varname=yes"
   29035 else
   29036    			eval "$ossh_varname=no"
   29037 fi
   29038 rm -f conftest*
   29039 
   29040 fi
   29041 
   29042 	ossh_result=`eval 'echo $'"$ossh_varname"`
   29043 	if test -n "`echo $ossh_varname`"; then
   29044 		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
   29045 echo "${ECHO_T}$ossh_result" >&6; }
   29046 		if test "x$ossh_result" = "xyes"; then
   29047 
   29048 cat >>confdefs.h <<\_ACEOF
   29049 #define HAVE_TIME_IN_UTMP 1
   29050 _ACEOF
   29051 
   29052 		fi
   29053 	else
   29054 		{ echo "$as_me:$LINENO: result: no" >&5
   29055 echo "${ECHO_T}no" >&6; }
   29056 	fi
   29057 
   29058 
   29059 # look for field 'ut_time' in header 'utmpx.h'
   29060 		ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
   29061 		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
   29062 	{ echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
   29063 echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6; }
   29064 	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
   29065   echo $ECHO_N "(cached) $ECHO_C" >&6
   29066 else
   29067 
   29068 		cat >conftest.$ac_ext <<_ACEOF
   29069 /* confdefs.h.  */
   29070 _ACEOF
   29071 cat confdefs.h >>conftest.$ac_ext
   29072 cat >>conftest.$ac_ext <<_ACEOF
   29073 /* end confdefs.h.  */
   29074 #include <utmpx.h>
   29075 
   29076 _ACEOF
   29077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   29078   $EGREP "ut_time" >/dev/null 2>&1; then
   29079    			eval "$ossh_varname=yes"
   29080 else
   29081    			eval "$ossh_varname=no"
   29082 fi
   29083 rm -f conftest*
   29084 
   29085 fi
   29086 
   29087 	ossh_result=`eval 'echo $'"$ossh_varname"`
   29088 	if test -n "`echo $ossh_varname`"; then
   29089 		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
   29090 echo "${ECHO_T}$ossh_result" >&6; }
   29091 		if test "x$ossh_result" = "xyes"; then
   29092 
   29093 cat >>confdefs.h <<\_ACEOF
   29094 #define HAVE_TIME_IN_UTMPX 1
   29095 _ACEOF
   29096 
   29097 		fi
   29098 	else
   29099 		{ echo "$as_me:$LINENO: result: no" >&5
   29100 echo "${ECHO_T}no" >&6; }
   29101 	fi
   29102 
   29103 
   29104 # look for field 'ut_tv' in header 'utmpx.h'
   29105 		ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
   29106 		ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
   29107 	{ echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
   29108 echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6; }
   29109 	if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
   29110   echo $ECHO_N "(cached) $ECHO_C" >&6
   29111 else
   29112 
   29113 		cat >conftest.$ac_ext <<_ACEOF
   29114 /* confdefs.h.  */
   29115 _ACEOF
   29116 cat confdefs.h >>conftest.$ac_ext
   29117 cat >>conftest.$ac_ext <<_ACEOF
   29118 /* end confdefs.h.  */
   29119 #include <utmpx.h>
   29120 
   29121 _ACEOF
   29122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   29123   $EGREP "ut_tv" >/dev/null 2>&1; then
   29124    			eval "$ossh_varname=yes"
   29125 else
   29126    			eval "$ossh_varname=no"
   29127 fi
   29128 rm -f conftest*
   29129 
   29130 fi
   29131 
   29132 	ossh_result=`eval 'echo $'"$ossh_varname"`
   29133 	if test -n "`echo $ossh_varname`"; then
   29134 		{ echo "$as_me:$LINENO: result: $ossh_result" >&5
   29135 echo "${ECHO_T}$ossh_result" >&6; }
   29136 		if test "x$ossh_result" = "xyes"; then
   29137 
   29138 cat >>confdefs.h <<\_ACEOF
   29139 #define HAVE_TV_IN_UTMPX 1
   29140 _ACEOF
   29141 
   29142 		fi
   29143 	else
   29144 		{ echo "$as_me:$LINENO: result: no" >&5
   29145 echo "${ECHO_T}no" >&6; }
   29146 	fi
   29147 
   29148 
   29149 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
   29150 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
   29151 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
   29152   echo $ECHO_N "(cached) $ECHO_C" >&6
   29153 else
   29154   cat >conftest.$ac_ext <<_ACEOF
   29155 /* confdefs.h.  */
   29156 _ACEOF
   29157 cat confdefs.h >>conftest.$ac_ext
   29158 cat >>conftest.$ac_ext <<_ACEOF
   29159 /* end confdefs.h.  */
   29160 $ac_includes_default
   29161 int
   29162 main ()
   29163 {
   29164 static struct stat ac_aggr;
   29165 if (ac_aggr.st_blksize)
   29166 return 0;
   29167   ;
   29168   return 0;
   29169 }
   29170 _ACEOF
   29171 rm -f conftest.$ac_objext
   29172 if { (ac_try="$ac_compile"
   29173 case "(($ac_try" in
   29174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   29175   *) ac_try_echo=$ac_try;;
   29176 esac
   29177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   29178   (eval "$ac_compile") 2>conftest.er1
   29179   ac_status=$?
   29180   grep -v '^ *+' conftest.er1 >conftest.err
   29181   rm -f conftest.er1
   29182   cat conftest.err >&5
   29183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   29184   (exit $ac_status); } && {
   29185 	 test -z "$ac_c_werror_flag" ||
   29186 	 test ! -s conftest.err
   29187        } && test -s conftest.$ac_objext; then
   29188   ac_cv_member_struct_stat_st_blksize=yes
   29189 else
   29190   echo "$as_me: failed program was:" >&5
   29191 sed 's/^/| /' conftest.$ac_ext >&5
   29192 
   29193 	cat >conftest.$ac_ext <<_ACEOF
   29194 /* confdefs.h.  */
   29195 _ACEOF
   29196 cat confdefs.h >>conftest.$ac_ext
   29197 cat >>conftest.$ac_ext <<_ACEOF
   29198 /* end confdefs.h.  */
   29199 $ac_includes_default
   29200 int
   29201 main ()
   29202 {
   29203 static struct stat ac_aggr;
   29204 if (sizeof ac_aggr.st_blksize)
   29205 return 0;
   29206   ;
   29207   return 0;
   29208 }
   29209 _ACEOF
   29210 rm -f conftest.$ac_objext
   29211 if { (ac_try="$ac_compile"
   29212 case "(($ac_try" in
   29213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   29214   *) ac_try_echo=$ac_try;;
   29215 esac
   29216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   29217   (eval "$ac_compile") 2>conftest.er1
   29218   ac_status=$?
   29219   grep -v '^ *+' conftest.er1 >conftest.err
   29220   rm -f conftest.er1
   29221   cat conftest.err >&5
   29222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   29223   (exit $ac_status); } && {
   29224 	 test -z "$ac_c_werror_flag" ||
   29225 	 test ! -s conftest.err
   29226        } && test -s conftest.$ac_objext; then
   29227   ac_cv_member_struct_stat_st_blksize=yes
   29228 else
   29229   echo "$as_me: failed program was:" >&5
   29230 sed 's/^/| /' conftest.$ac_ext >&5
   29231 
   29232 	ac_cv_member_struct_stat_st_blksize=no
   29233 fi
   29234 
   29235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   29236 fi
   29237 
   29238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   29239 fi
   29240 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
   29241 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
   29242 if test $ac_cv_member_struct_stat_st_blksize = yes; then
   29243 
   29244 cat >>confdefs.h <<_ACEOF
   29245 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
   29246 _ACEOF
   29247 
   29248 
   29249 fi
   29250 
   29251 { echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
   29252 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
   29253 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
   29254   echo $ECHO_N "(cached) $ECHO_C" >&6
   29255 else
   29256   cat >conftest.$ac_ext <<_ACEOF
   29257 /* confdefs.h.  */
   29258 _ACEOF
   29259 cat confdefs.h >>conftest.$ac_ext
   29260 cat >>conftest.$ac_ext <<_ACEOF
   29261 /* end confdefs.h.  */
   29262 
   29263 #include <sys/types.h>
   29264 #include <pwd.h>
   29265 
   29266 
   29267 int
   29268 main ()
   29269 {
   29270 static struct passwd ac_aggr;
   29271 if (ac_aggr.pw_gecos)
   29272 return 0;
   29273   ;
   29274   return 0;
   29275 }
   29276 _ACEOF
   29277 rm -f conftest.$ac_objext
   29278 if { (ac_try="$ac_compile"
   29279 case "(($ac_try" in
   29280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   29281   *) ac_try_echo=$ac_try;;
   29282 esac
   29283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   29284   (eval "$ac_compile") 2>conftest.er1
   29285   ac_status=$?
   29286   grep -v '^ *+' conftest.er1 >conftest.err
   29287   rm -f conftest.er1
   29288   cat conftest.err >&5
   29289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   29290   (exit $ac_status); } && {
   29291 	 test -z "$ac_c_werror_flag" ||
   29292 	 test ! -s conftest.err
   29293        } && test -s conftest.$ac_objext; then
   29294   ac_cv_member_struct_passwd_pw_gecos=yes
   29295 else
   29296   echo "$as_me: failed program was:" >&5
   29297 sed 's/^/| /' conftest.$ac_ext >&5
   29298 
   29299 	cat >conftest.$ac_ext <<_ACEOF
   29300 /* confdefs.h.  */
   29301 _ACEOF
   29302 cat confdefs.h >>conftest.$ac_ext
   29303 cat >>conftest.$ac_ext <<_ACEOF
   29304 /* end confdefs.h.  */
   29305 
   29306 #include <sys/types.h>
   29307 #include <pwd.h>
   29308 
   29309 
   29310 int
   29311 main ()
   29312 {
   29313 static struct passwd ac_aggr;
   29314 if (sizeof ac_aggr.pw_gecos)
   29315 return 0;
   29316   ;
   29317   return 0;
   29318 }
   29319 _ACEOF
   29320 rm -f conftest.$ac_objext
   29321 if { (ac_try="$ac_compile"
   29322 case "(($ac_try" in
   29323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   29324   *) ac_try_echo=$ac_try;;
   29325 esac
   29326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   29327   (eval "$ac_compile") 2>conftest.er1
   29328   ac_status=$?
   29329   grep -v '^ *+' conftest.er1 >conftest.err
   29330   rm -f conftest.er1
   29331   cat conftest.err >&5
   29332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   29333   (exit $ac_status); } && {
   29334 	 test -z "$ac_c_werror_flag" ||
   29335 	 test ! -s conftest.err
   29336        } && test -s conftest.$ac_objext; then
   29337   ac_cv_member_struct_passwd_pw_gecos=yes
   29338 else
   29339   echo "$as_me: failed program was:" >&5
   29340 sed 's/^/| /' conftest.$ac_ext >&5
   29341 
   29342 	ac_cv_member_struct_passwd_pw_gecos=no
   29343 fi
   29344 
   29345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   29346 fi
   29347 
   29348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   29349 fi
   29350 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
   29351 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
   29352 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
   29353 
   29354 cat >>confdefs.h <<_ACEOF
   29355 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
   29356 _ACEOF
   29357 
   29358 
   29359 fi
   29360 { echo "$as_me:$LINENO: checking for struct passwd.pw_class" >&5
   29361 echo $ECHO_N "checking for struct passwd.pw_class... $ECHO_C" >&6; }
   29362 if test "${ac_cv_member_struct_passwd_pw_class+set}" = set; then
   29363   echo $ECHO_N "(cached) $ECHO_C" >&6
   29364 else
   29365   cat >conftest.$ac_ext <<_ACEOF
   29366 /* confdefs.h.  */
   29367 _ACEOF
   29368 cat confdefs.h >>conftest.$ac_ext
   29369 cat >>conftest.$ac_ext <<_ACEOF
   29370 /* end confdefs.h.  */
   29371 
   29372 #include <sys/types.h>
   29373 #include <pwd.h>
   29374 
   29375 
   29376 int
   29377 main ()
   29378 {
   29379 static struct passwd ac_aggr;
   29380 if (ac_aggr.pw_class)
   29381 return 0;
   29382   ;
   29383   return 0;
   29384 }
   29385 _ACEOF
   29386 rm -f conftest.$ac_objext
   29387 if { (ac_try="$ac_compile"
   29388 case "(($ac_try" in
   29389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   29390   *) ac_try_echo=$ac_try;;
   29391 esac
   29392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   29393   (eval "$ac_compile") 2>conftest.er1
   29394   ac_status=$?
   29395   grep -v '^ *+' conftest.er1 >conftest.err
   29396   rm -f conftest.er1
   29397   cat conftest.err >&5
   29398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   29399   (exit $ac_status); } && {
   29400 	 test -z "$ac_c_werror_flag" ||
   29401 	 test ! -s conftest.err
   29402        } && test -s conftest.$ac_objext; then
   29403   ac_cv_member_struct_passwd_pw_class=yes
   29404 else
   29405   echo "$as_me: failed program was:" >&5
   29406 sed 's/^/| /' conftest.$ac_ext >&5
   29407 
   29408 	cat >conftest.$ac_ext <<_ACEOF
   29409 /* confdefs.h.  */
   29410 _ACEOF
   29411 cat confdefs.h >>conftest.$ac_ext
   29412 cat >>conftest.$ac_ext <<_ACEOF
   29413 /* end confdefs.h.  */
   29414 
   29415 #include <sys/types.h>
   29416 #include <pwd.h>
   29417 
   29418 
   29419 int
   29420 main ()
   29421 {
   29422 static struct passwd ac_aggr;
   29423 if (sizeof ac_aggr.pw_class)
   29424 return 0;
   29425   ;
   29426   return 0;
   29427 }
   29428 _ACEOF
   29429 rm -f conftest.$ac_objext
   29430 if { (ac_try="$ac_compile"
   29431 case "(($ac_try" in
   29432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   29433   *) ac_try_echo=$ac_try;;
   29434 esac
   29435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   29436   (eval "$ac_compile") 2>conftest.er1
   29437   ac_status=$?
   29438   grep -v '^ *+' conftest.er1 >conftest.err
   29439   rm -f conftest.er1
   29440   cat conftest.err >&5
   29441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   29442   (exit $ac_status); } && {
   29443 	 test -z "$ac_c_werror_flag" ||
   29444 	 test ! -s conftest.err
   29445        } && test -s conftest.$ac_objext; then
   29446   ac_cv_member_struct_passwd_pw_class=yes
   29447 else
   29448   echo "$as_me: failed program was:" >&5
   29449 sed 's/^/| /' conftest.$ac_ext >&5
   29450 
   29451 	ac_cv_member_struct_passwd_pw_class=no
   29452 fi
   29453 
   29454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   29455 fi
   29456 
   29457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   29458 fi
   29459 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_class" >&5
   29460 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_class" >&6; }
   29461 if test $ac_cv_member_struct_passwd_pw_class = yes; then
   29462 
   29463 cat >>confdefs.h <<_ACEOF
   29464 #define HAVE_STRUCT_PASSWD_PW_CLASS 1
   29465 _ACEOF
   29466 
   29467 
   29468 fi
   29469 { echo "$as_me:$LINENO: checking for struct passwd.pw_change" >&5
   29470 echo $ECHO_N "checking for struct passwd.pw_change... $ECHO_C" >&6; }
   29471 if test "${ac_cv_member_struct_passwd_pw_change+set}" = set; then
   29472   echo $ECHO_N "(cached) $ECHO_C" >&6
   29473 else
   29474   cat >conftest.$ac_ext <<_ACEOF
   29475 /* confdefs.h.  */
   29476 _ACEOF
   29477 cat confdefs.h >>conftest.$ac_ext
   29478 cat >>conftest.$ac_ext <<_ACEOF
   29479 /* end confdefs.h.  */
   29480 
   29481 #include <sys/types.h>
   29482 #include <pwd.h>
   29483 
   29484 
   29485 int
   29486 main ()
   29487 {
   29488 static struct passwd ac_aggr;
   29489 if (ac_aggr.pw_change)
   29490 return 0;
   29491   ;
   29492   return 0;
   29493 }
   29494 _ACEOF
   29495 rm -f conftest.$ac_objext
   29496 if { (ac_try="$ac_compile"
   29497 case "(($ac_try" in
   29498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   29499   *) ac_try_echo=$ac_try;;
   29500 esac
   29501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   29502   (eval "$ac_compile") 2>conftest.er1
   29503   ac_status=$?
   29504   grep -v '^ *+' conftest.er1 >conftest.err
   29505   rm -f conftest.er1
   29506   cat conftest.err >&5
   29507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   29508   (exit $ac_status); } && {
   29509 	 test -z "$ac_c_werror_flag" ||
   29510 	 test ! -s conftest.err
   29511        } && test -s conftest.$ac_objext; then
   29512   ac_cv_member_struct_passwd_pw_change=yes
   29513 else
   29514   echo "$as_me: failed program was:" >&5
   29515 sed 's/^/| /' conftest.$ac_ext >&5
   29516 
   29517 	cat >conftest.$ac_ext <<_ACEOF
   29518 /* confdefs.h.  */
   29519 _ACEOF
   29520 cat confdefs.h >>conftest.$ac_ext
   29521 cat >>conftest.$ac_ext <<_ACEOF
   29522 /* end confdefs.h.  */
   29523 
   29524 #include <sys/types.h>
   29525 #include <pwd.h>
   29526 
   29527 
   29528 int
   29529 main ()
   29530 {
   29531 static struct passwd ac_aggr;
   29532 if (sizeof ac_aggr.pw_change)
   29533 return 0;
   29534   ;
   29535   return 0;
   29536 }
   29537 _ACEOF
   29538 rm -f conftest.$ac_objext
   29539 if { (ac_try="$ac_compile"
   29540 case "(($ac_try" in
   29541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   29542   *) ac_try_echo=$ac_try;;
   29543 esac
   29544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   29545   (eval "$ac_compile") 2>conftest.er1
   29546   ac_status=$?
   29547   grep -v '^ *+' conftest.er1 >conftest.err
   29548   rm -f conftest.er1
   29549   cat conftest.err >&5
   29550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   29551   (exit $ac_status); } && {
   29552 	 test -z "$ac_c_werror_flag" ||
   29553 	 test ! -s conftest.err
   29554        } && test -s conftest.$ac_objext; then
   29555   ac_cv_member_struct_passwd_pw_change=yes
   29556 else
   29557   echo "$as_me: failed program was:" >&5
   29558 sed 's/^/| /' conftest.$ac_ext >&5
   29559 
   29560 	ac_cv_member_struct_passwd_pw_change=no
   29561 fi
   29562 
   29563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   29564 fi
   29565 
   29566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   29567 fi
   29568 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_change" >&5
   29569 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_change" >&6; }
   29570 if test $ac_cv_member_struct_passwd_pw_change = yes; then
   29571 
   29572 cat >>confdefs.h <<_ACEOF
   29573 #define HAVE_STRUCT_PASSWD_PW_CHANGE 1
   29574 _ACEOF
   29575 
   29576 
   29577 fi
   29578 { echo "$as_me:$LINENO: checking for struct passwd.pw_expire" >&5
   29579 echo $ECHO_N "checking for struct passwd.pw_expire... $ECHO_C" >&6; }
   29580 if test "${ac_cv_member_struct_passwd_pw_expire+set}" = set; then
   29581   echo $ECHO_N "(cached) $ECHO_C" >&6
   29582 else
   29583   cat >conftest.$ac_ext <<_ACEOF
   29584 /* confdefs.h.  */
   29585 _ACEOF
   29586 cat confdefs.h >>conftest.$ac_ext
   29587 cat >>conftest.$ac_ext <<_ACEOF
   29588 /* end confdefs.h.  */
   29589 
   29590 #include <sys/types.h>
   29591 #include <pwd.h>
   29592 
   29593 
   29594 int
   29595 main ()
   29596 {
   29597 static struct passwd ac_aggr;
   29598 if (ac_aggr.pw_expire)
   29599 return 0;
   29600   ;
   29601   return 0;
   29602 }
   29603 _ACEOF
   29604 rm -f conftest.$ac_objext
   29605 if { (ac_try="$ac_compile"
   29606 case "(($ac_try" in
   29607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   29608   *) ac_try_echo=$ac_try;;
   29609 esac
   29610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   29611   (eval "$ac_compile") 2>conftest.er1
   29612   ac_status=$?
   29613   grep -v '^ *+' conftest.er1 >conftest.err
   29614   rm -f conftest.er1
   29615   cat conftest.err >&5
   29616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   29617   (exit $ac_status); } && {
   29618 	 test -z "$ac_c_werror_flag" ||
   29619 	 test ! -s conftest.err
   29620        } && test -s conftest.$ac_objext; then
   29621   ac_cv_member_struct_passwd_pw_expire=yes
   29622 else
   29623   echo "$as_me: failed program was:" >&5
   29624 sed 's/^/| /' conftest.$ac_ext >&5
   29625 
   29626 	cat >conftest.$ac_ext <<_ACEOF
   29627 /* confdefs.h.  */
   29628 _ACEOF
   29629 cat confdefs.h >>conftest.$ac_ext
   29630 cat >>conftest.$ac_ext <<_ACEOF
   29631 /* end confdefs.h.  */
   29632 
   29633 #include <sys/types.h>
   29634 #include <pwd.h>
   29635 
   29636 
   29637 int
   29638 main ()
   29639 {
   29640 static struct passwd ac_aggr;
   29641 if (sizeof ac_aggr.pw_expire)
   29642 return 0;
   29643   ;
   29644   return 0;
   29645 }
   29646 _ACEOF
   29647 rm -f conftest.$ac_objext
   29648 if { (ac_try="$ac_compile"
   29649 case "(($ac_try" in
   29650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   29651   *) ac_try_echo=$ac_try;;
   29652 esac
   29653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   29654   (eval "$ac_compile") 2>conftest.er1
   29655   ac_status=$?
   29656   grep -v '^ *+' conftest.er1 >conftest.err
   29657   rm -f conftest.er1
   29658   cat conftest.err >&5
   29659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   29660   (exit $ac_status); } && {
   29661 	 test -z "$ac_c_werror_flag" ||
   29662 	 test ! -s conftest.err
   29663        } && test -s conftest.$ac_objext; then
   29664   ac_cv_member_struct_passwd_pw_expire=yes
   29665 else
   29666   echo "$as_me: failed program was:" >&5
   29667 sed 's/^/| /' conftest.$ac_ext >&5
   29668 
   29669 	ac_cv_member_struct_passwd_pw_expire=no
   29670 fi
   29671 
   29672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   29673 fi
   29674 
   29675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   29676 fi
   29677 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_expire" >&5
   29678 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_expire" >&6; }
   29679 if test $ac_cv_member_struct_passwd_pw_expire = yes; then
   29680 
   29681 cat >>confdefs.h <<_ACEOF
   29682 #define HAVE_STRUCT_PASSWD_PW_EXPIRE 1
   29683 _ACEOF
   29684 
   29685 
   29686 fi
   29687 
   29688 
   29689 { echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5
   29690 echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6; }
   29691 if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then
   29692   echo $ECHO_N "(cached) $ECHO_C" >&6
   29693 else
   29694   cat >conftest.$ac_ext <<_ACEOF
   29695 /* confdefs.h.  */
   29696 _ACEOF
   29697 cat confdefs.h >>conftest.$ac_ext
   29698 cat >>conftest.$ac_ext <<_ACEOF
   29699 /* end confdefs.h.  */
   29700 
   29701 #include <stdio.h>
   29702 #if HAVE_SYS_TYPES_H
   29703 # include <sys/types.h>
   29704 #endif
   29705 #include <netinet/in.h>
   29706 #include <arpa/nameser.h>
   29707 #include <resolv.h>
   29708 
   29709 
   29710 int
   29711 main ()
   29712 {
   29713 static struct __res_state ac_aggr;
   29714 if (ac_aggr.retrans)
   29715 return 0;
   29716   ;
   29717   return 0;
   29718 }
   29719 _ACEOF
   29720 rm -f conftest.$ac_objext
   29721 if { (ac_try="$ac_compile"
   29722 case "(($ac_try" in
   29723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   29724   *) ac_try_echo=$ac_try;;
   29725 esac
   29726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   29727   (eval "$ac_compile") 2>conftest.er1
   29728   ac_status=$?
   29729   grep -v '^ *+' conftest.er1 >conftest.err
   29730   rm -f conftest.er1
   29731   cat conftest.err >&5
   29732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   29733   (exit $ac_status); } && {
   29734 	 test -z "$ac_c_werror_flag" ||
   29735 	 test ! -s conftest.err
   29736        } && test -s conftest.$ac_objext; then
   29737   ac_cv_member_struct___res_state_retrans=yes
   29738 else
   29739   echo "$as_me: failed program was:" >&5
   29740 sed 's/^/| /' conftest.$ac_ext >&5
   29741 
   29742 	cat >conftest.$ac_ext <<_ACEOF
   29743 /* confdefs.h.  */
   29744 _ACEOF
   29745 cat confdefs.h >>conftest.$ac_ext
   29746 cat >>conftest.$ac_ext <<_ACEOF
   29747 /* end confdefs.h.  */
   29748 
   29749 #include <stdio.h>
   29750 #if HAVE_SYS_TYPES_H
   29751 # include <sys/types.h>
   29752 #endif
   29753 #include <netinet/in.h>
   29754 #include <arpa/nameser.h>
   29755 #include <resolv.h>
   29756 
   29757 
   29758 int
   29759 main ()
   29760 {
   29761 static struct __res_state ac_aggr;
   29762 if (sizeof ac_aggr.retrans)
   29763 return 0;
   29764   ;
   29765   return 0;
   29766 }
   29767 _ACEOF
   29768 rm -f conftest.$ac_objext
   29769 if { (ac_try="$ac_compile"
   29770 case "(($ac_try" in
   29771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   29772   *) ac_try_echo=$ac_try;;
   29773 esac
   29774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   29775   (eval "$ac_compile") 2>conftest.er1
   29776   ac_status=$?
   29777   grep -v '^ *+' conftest.er1 >conftest.err
   29778   rm -f conftest.er1
   29779   cat conftest.err >&5
   29780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   29781   (exit $ac_status); } && {
   29782 	 test -z "$ac_c_werror_flag" ||
   29783 	 test ! -s conftest.err
   29784        } && test -s conftest.$ac_objext; then
   29785   ac_cv_member_struct___res_state_retrans=yes
   29786 else
   29787   echo "$as_me: failed program was:" >&5
   29788 sed 's/^/| /' conftest.$ac_ext >&5
   29789 
   29790 	ac_cv_member_struct___res_state_retrans=no
   29791 fi
   29792 
   29793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   29794 fi
   29795 
   29796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   29797 fi
   29798 { echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5
   29799 echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6; }
   29800 if test $ac_cv_member_struct___res_state_retrans = yes; then
   29801   :
   29802 else
   29803 
   29804 cat >>confdefs.h <<\_ACEOF
   29805 #define __res_state state
   29806 _ACEOF
   29807 
   29808 fi
   29809 
   29810 
   29811 { echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
   29812 echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
   29813 if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
   29814   echo $ECHO_N "(cached) $ECHO_C" >&6
   29815 else
   29816 
   29817 	cat >conftest.$ac_ext <<_ACEOF
   29818 /* confdefs.h.  */
   29819 _ACEOF
   29820 cat confdefs.h >>conftest.$ac_ext
   29821 cat >>conftest.$ac_ext <<_ACEOF
   29822 /* end confdefs.h.  */
   29823 
   29824 #include <sys/types.h>
   29825 #include <sys/socket.h>
   29826 
   29827 int
   29828 main ()
   29829 {
   29830  struct sockaddr_storage s; s.ss_family = 1;
   29831   ;
   29832   return 0;
   29833 }
   29834 _ACEOF
   29835 rm -f conftest.$ac_objext
   29836 if { (ac_try="$ac_compile"
   29837 case "(($ac_try" in
   29838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   29839   *) ac_try_echo=$ac_try;;
   29840 esac
   29841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   29842   (eval "$ac_compile") 2>conftest.er1
   29843   ac_status=$?
   29844   grep -v '^ *+' conftest.er1 >conftest.err
   29845   rm -f conftest.er1
   29846   cat conftest.err >&5
   29847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   29848   (exit $ac_status); } && {
   29849 	 test -z "$ac_c_werror_flag" ||
   29850 	 test ! -s conftest.err
   29851        } && test -s conftest.$ac_objext; then
   29852    ac_cv_have_ss_family_in_struct_ss="yes"
   29853 else
   29854   echo "$as_me: failed program was:" >&5
   29855 sed 's/^/| /' conftest.$ac_ext >&5
   29856 
   29857 	 ac_cv_have_ss_family_in_struct_ss="no"
   29858 fi
   29859 
   29860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   29861 
   29862 fi
   29863 { echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
   29864 echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6; }
   29865 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
   29866 
   29867 cat >>confdefs.h <<\_ACEOF
   29868 #define HAVE_SS_FAMILY_IN_SS 1
   29869 _ACEOF
   29870 
   29871 fi
   29872 
   29873 { echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
   29874 echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
   29875 if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
   29876   echo $ECHO_N "(cached) $ECHO_C" >&6
   29877 else
   29878 
   29879 	cat >conftest.$ac_ext <<_ACEOF
   29880 /* confdefs.h.  */
   29881 _ACEOF
   29882 cat confdefs.h >>conftest.$ac_ext
   29883 cat >>conftest.$ac_ext <<_ACEOF
   29884 /* end confdefs.h.  */
   29885 
   29886 #include <sys/types.h>
   29887 #include <sys/socket.h>
   29888 
   29889 int
   29890 main ()
   29891 {
   29892  struct sockaddr_storage s; s.__ss_family = 1;
   29893   ;
   29894   return 0;
   29895 }
   29896 _ACEOF
   29897 rm -f conftest.$ac_objext
   29898 if { (ac_try="$ac_compile"
   29899 case "(($ac_try" in
   29900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   29901   *) ac_try_echo=$ac_try;;
   29902 esac
   29903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   29904   (eval "$ac_compile") 2>conftest.er1
   29905   ac_status=$?
   29906   grep -v '^ *+' conftest.er1 >conftest.err
   29907   rm -f conftest.er1
   29908   cat conftest.err >&5
   29909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   29910   (exit $ac_status); } && {
   29911 	 test -z "$ac_c_werror_flag" ||
   29912 	 test ! -s conftest.err
   29913        } && test -s conftest.$ac_objext; then
   29914    ac_cv_have___ss_family_in_struct_ss="yes"
   29915 else
   29916   echo "$as_me: failed program was:" >&5
   29917 sed 's/^/| /' conftest.$ac_ext >&5
   29918 
   29919 	 ac_cv_have___ss_family_in_struct_ss="no"
   29920 
   29921 fi
   29922 
   29923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   29924 
   29925 fi
   29926 { echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
   29927 echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6; }
   29928 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
   29929 
   29930 cat >>confdefs.h <<\_ACEOF
   29931 #define HAVE___SS_FAMILY_IN_SS 1
   29932 _ACEOF
   29933 
   29934 fi
   29935 
   29936 { echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
   29937 echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; }
   29938 if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
   29939   echo $ECHO_N "(cached) $ECHO_C" >&6
   29940 else
   29941 
   29942 	cat >conftest.$ac_ext <<_ACEOF
   29943 /* confdefs.h.  */
   29944 _ACEOF
   29945 cat confdefs.h >>conftest.$ac_ext
   29946 cat >>conftest.$ac_ext <<_ACEOF
   29947 /* end confdefs.h.  */
   29948 
   29949 #include <sys/types.h>
   29950 #include <sys/socket.h>
   29951 #include <sys/uio.h>
   29952 
   29953 int
   29954 main ()
   29955 {
   29956 
   29957 #ifdef msg_accrights
   29958 #error "msg_accrights is a macro"
   29959 exit(1);
   29960 #endif
   29961 struct msghdr m;
   29962 m.msg_accrights = 0;
   29963 exit(0);
   29964 
   29965   ;
   29966   return 0;
   29967 }
   29968 _ACEOF
   29969 rm -f conftest.$ac_objext
   29970 if { (ac_try="$ac_compile"
   29971 case "(($ac_try" in
   29972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   29973   *) ac_try_echo=$ac_try;;
   29974 esac
   29975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   29976   (eval "$ac_compile") 2>conftest.er1
   29977   ac_status=$?
   29978   grep -v '^ *+' conftest.er1 >conftest.err
   29979   rm -f conftest.er1
   29980   cat conftest.err >&5
   29981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   29982   (exit $ac_status); } && {
   29983 	 test -z "$ac_c_werror_flag" ||
   29984 	 test ! -s conftest.err
   29985        } && test -s conftest.$ac_objext; then
   29986    ac_cv_have_accrights_in_msghdr="yes"
   29987 else
   29988   echo "$as_me: failed program was:" >&5
   29989 sed 's/^/| /' conftest.$ac_ext >&5
   29990 
   29991 	 ac_cv_have_accrights_in_msghdr="no"
   29992 
   29993 fi
   29994 
   29995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   29996 
   29997 fi
   29998 { echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
   29999 echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; }
   30000 if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
   30001 
   30002 cat >>confdefs.h <<\_ACEOF
   30003 #define HAVE_ACCRIGHTS_IN_MSGHDR 1
   30004 _ACEOF
   30005 
   30006 fi
   30007 
   30008 { echo "$as_me:$LINENO: checking if struct statvfs.f_fsid is integral type" >&5
   30009 echo $ECHO_N "checking if struct statvfs.f_fsid is integral type... $ECHO_C" >&6; }
   30010 cat >conftest.$ac_ext <<_ACEOF
   30011 /* confdefs.h.  */
   30012 _ACEOF
   30013 cat confdefs.h >>conftest.$ac_ext
   30014 cat >>conftest.$ac_ext <<_ACEOF
   30015 /* end confdefs.h.  */
   30016 
   30017 #include <sys/param.h>
   30018 #include <sys/stat.h>
   30019 #ifdef HAVE_SYS_TIME_H
   30020 # include <sys/time.h>
   30021 #endif
   30022 #ifdef HAVE_SYS_MOUNT_H
   30023 #include <sys/mount.h>
   30024 #endif
   30025 #ifdef HAVE_SYS_STATVFS_H
   30026 #include <sys/statvfs.h>
   30027 #endif
   30028 
   30029 int
   30030 main ()
   30031 {
   30032  struct statvfs s; s.f_fsid = 0;
   30033   ;
   30034   return 0;
   30035 }
   30036 _ACEOF
   30037 rm -f conftest.$ac_objext
   30038 if { (ac_try="$ac_compile"
   30039 case "(($ac_try" in
   30040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   30041   *) ac_try_echo=$ac_try;;
   30042 esac
   30043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   30044   (eval "$ac_compile") 2>conftest.er1
   30045   ac_status=$?
   30046   grep -v '^ *+' conftest.er1 >conftest.err
   30047   rm -f conftest.er1
   30048   cat conftest.err >&5
   30049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   30050   (exit $ac_status); } && {
   30051 	 test -z "$ac_c_werror_flag" ||
   30052 	 test ! -s conftest.err
   30053        } && test -s conftest.$ac_objext; then
   30054    { echo "$as_me:$LINENO: result: yes" >&5
   30055 echo "${ECHO_T}yes" >&6; }
   30056 else
   30057   echo "$as_me: failed program was:" >&5
   30058 sed 's/^/| /' conftest.$ac_ext >&5
   30059 
   30060 	 { echo "$as_me:$LINENO: result: no" >&5
   30061 echo "${ECHO_T}no" >&6; }
   30062 
   30063 	{ echo "$as_me:$LINENO: checking if fsid_t has member val" >&5
   30064 echo $ECHO_N "checking if fsid_t has member val... $ECHO_C" >&6; }
   30065 	cat >conftest.$ac_ext <<_ACEOF
   30066 /* confdefs.h.  */
   30067 _ACEOF
   30068 cat confdefs.h >>conftest.$ac_ext
   30069 cat >>conftest.$ac_ext <<_ACEOF
   30070 /* end confdefs.h.  */
   30071 
   30072 #include <sys/types.h>
   30073 #include <sys/statvfs.h>
   30074 
   30075 int
   30076 main ()
   30077 {
   30078  fsid_t t; t.val[0] = 0;
   30079   ;
   30080   return 0;
   30081 }
   30082 _ACEOF
   30083 rm -f conftest.$ac_objext
   30084 if { (ac_try="$ac_compile"
   30085 case "(($ac_try" in
   30086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   30087   *) ac_try_echo=$ac_try;;
   30088 esac
   30089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   30090   (eval "$ac_compile") 2>conftest.er1
   30091   ac_status=$?
   30092   grep -v '^ *+' conftest.er1 >conftest.err
   30093   rm -f conftest.er1
   30094   cat conftest.err >&5
   30095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   30096   (exit $ac_status); } && {
   30097 	 test -z "$ac_c_werror_flag" ||
   30098 	 test ! -s conftest.err
   30099        } && test -s conftest.$ac_objext; then
   30100    { echo "$as_me:$LINENO: result: yes" >&5
   30101 echo "${ECHO_T}yes" >&6; }
   30102 
   30103 cat >>confdefs.h <<\_ACEOF
   30104 #define FSID_HAS_VAL 1
   30105 _ACEOF
   30106 
   30107 else
   30108   echo "$as_me: failed program was:" >&5
   30109 sed 's/^/| /' conftest.$ac_ext >&5
   30110 
   30111 	 { echo "$as_me:$LINENO: result: no" >&5
   30112 echo "${ECHO_T}no" >&6; }
   30113 fi
   30114 
   30115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   30116 
   30117 	{ echo "$as_me:$LINENO: checking if f_fsid has member __val" >&5
   30118 echo $ECHO_N "checking if f_fsid has member __val... $ECHO_C" >&6; }
   30119 	cat >conftest.$ac_ext <<_ACEOF
   30120 /* confdefs.h.  */
   30121 _ACEOF
   30122 cat confdefs.h >>conftest.$ac_ext
   30123 cat >>conftest.$ac_ext <<_ACEOF
   30124 /* end confdefs.h.  */
   30125 
   30126 #include <sys/types.h>
   30127 #include <sys/statvfs.h>
   30128 
   30129 int
   30130 main ()
   30131 {
   30132  fsid_t t; t.__val[0] = 0;
   30133   ;
   30134   return 0;
   30135 }
   30136 _ACEOF
   30137 rm -f conftest.$ac_objext
   30138 if { (ac_try="$ac_compile"
   30139 case "(($ac_try" in
   30140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   30141   *) ac_try_echo=$ac_try;;
   30142 esac
   30143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   30144   (eval "$ac_compile") 2>conftest.er1
   30145   ac_status=$?
   30146   grep -v '^ *+' conftest.er1 >conftest.err
   30147   rm -f conftest.er1
   30148   cat conftest.err >&5
   30149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   30150   (exit $ac_status); } && {
   30151 	 test -z "$ac_c_werror_flag" ||
   30152 	 test ! -s conftest.err
   30153        } && test -s conftest.$ac_objext; then
   30154    { echo "$as_me:$LINENO: result: yes" >&5
   30155 echo "${ECHO_T}yes" >&6; }
   30156 
   30157 cat >>confdefs.h <<\_ACEOF
   30158 #define FSID_HAS___VAL 1
   30159 _ACEOF
   30160 
   30161 else
   30162   echo "$as_me: failed program was:" >&5
   30163 sed 's/^/| /' conftest.$ac_ext >&5
   30164 
   30165 	 { echo "$as_me:$LINENO: result: no" >&5
   30166 echo "${ECHO_T}no" >&6; }
   30167 fi
   30168 
   30169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   30170 
   30171 fi
   30172 
   30173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   30174 
   30175 { echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
   30176 echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; }
   30177 if test "${ac_cv_have_control_in_msghdr+set}" = set; then
   30178   echo $ECHO_N "(cached) $ECHO_C" >&6
   30179 else
   30180 
   30181 	cat >conftest.$ac_ext <<_ACEOF
   30182 /* confdefs.h.  */
   30183 _ACEOF
   30184 cat confdefs.h >>conftest.$ac_ext
   30185 cat >>conftest.$ac_ext <<_ACEOF
   30186 /* end confdefs.h.  */
   30187 
   30188 #include <sys/types.h>
   30189 #include <sys/socket.h>
   30190 #include <sys/uio.h>
   30191 
   30192 int
   30193 main ()
   30194 {
   30195 
   30196 #ifdef msg_control
   30197 #error "msg_control is a macro"
   30198 exit(1);
   30199 #endif
   30200 struct msghdr m;
   30201 m.msg_control = 0;
   30202 exit(0);
   30203 
   30204   ;
   30205   return 0;
   30206 }
   30207 _ACEOF
   30208 rm -f conftest.$ac_objext
   30209 if { (ac_try="$ac_compile"
   30210 case "(($ac_try" in
   30211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   30212   *) ac_try_echo=$ac_try;;
   30213 esac
   30214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   30215   (eval "$ac_compile") 2>conftest.er1
   30216   ac_status=$?
   30217   grep -v '^ *+' conftest.er1 >conftest.err
   30218   rm -f conftest.er1
   30219   cat conftest.err >&5
   30220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   30221   (exit $ac_status); } && {
   30222 	 test -z "$ac_c_werror_flag" ||
   30223 	 test ! -s conftest.err
   30224        } && test -s conftest.$ac_objext; then
   30225    ac_cv_have_control_in_msghdr="yes"
   30226 else
   30227   echo "$as_me: failed program was:" >&5
   30228 sed 's/^/| /' conftest.$ac_ext >&5
   30229 
   30230 	 ac_cv_have_control_in_msghdr="no"
   30231 
   30232 fi
   30233 
   30234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   30235 
   30236 fi
   30237 { echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
   30238 echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; }
   30239 if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
   30240 
   30241 cat >>confdefs.h <<\_ACEOF
   30242 #define HAVE_CONTROL_IN_MSGHDR 1
   30243 _ACEOF
   30244 
   30245 fi
   30246 
   30247 { echo "$as_me:$LINENO: checking if libc defines __progname" >&5
   30248 echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6; }
   30249 if test "${ac_cv_libc_defines___progname+set}" = set; then
   30250   echo $ECHO_N "(cached) $ECHO_C" >&6
   30251 else
   30252 
   30253 	cat >conftest.$ac_ext <<_ACEOF
   30254 /* confdefs.h.  */
   30255 _ACEOF
   30256 cat confdefs.h >>conftest.$ac_ext
   30257 cat >>conftest.$ac_ext <<_ACEOF
   30258 /* end confdefs.h.  */
   30259 
   30260 int
   30261 main ()
   30262 {
   30263  extern char *__progname; printf("%s", __progname);
   30264   ;
   30265   return 0;
   30266 }
   30267 _ACEOF
   30268 rm -f conftest.$ac_objext conftest$ac_exeext
   30269 if { (ac_try="$ac_link"
   30270 case "(($ac_try" in
   30271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   30272   *) ac_try_echo=$ac_try;;
   30273 esac
   30274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   30275   (eval "$ac_link") 2>conftest.er1
   30276   ac_status=$?
   30277   grep -v '^ *+' conftest.er1 >conftest.err
   30278   rm -f conftest.er1
   30279   cat conftest.err >&5
   30280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   30281   (exit $ac_status); } && {
   30282 	 test -z "$ac_c_werror_flag" ||
   30283 	 test ! -s conftest.err
   30284        } && test -s conftest$ac_exeext &&
   30285        $as_test_x conftest$ac_exeext; then
   30286    ac_cv_libc_defines___progname="yes"
   30287 else
   30288   echo "$as_me: failed program was:" >&5
   30289 sed 's/^/| /' conftest.$ac_ext >&5
   30290 
   30291 	 ac_cv_libc_defines___progname="no"
   30292 
   30293 fi
   30294 
   30295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   30296       conftest$ac_exeext conftest.$ac_ext
   30297 
   30298 fi
   30299 { echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
   30300 echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6; }
   30301 if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
   30302 
   30303 cat >>confdefs.h <<\_ACEOF
   30304 #define HAVE___PROGNAME 1
   30305 _ACEOF
   30306 
   30307 fi
   30308 
   30309 { echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
   30310 echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; }
   30311 if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
   30312   echo $ECHO_N "(cached) $ECHO_C" >&6
   30313 else
   30314 
   30315 	cat >conftest.$ac_ext <<_ACEOF
   30316 /* confdefs.h.  */
   30317 _ACEOF
   30318 cat confdefs.h >>conftest.$ac_ext
   30319 cat >>conftest.$ac_ext <<_ACEOF
   30320 /* end confdefs.h.  */
   30321  #include <stdio.h>
   30322 int
   30323 main ()
   30324 {
   30325  printf("%s", __FUNCTION__);
   30326   ;
   30327   return 0;
   30328 }
   30329 _ACEOF
   30330 rm -f conftest.$ac_objext conftest$ac_exeext
   30331 if { (ac_try="$ac_link"
   30332 case "(($ac_try" in
   30333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   30334   *) ac_try_echo=$ac_try;;
   30335 esac
   30336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   30337   (eval "$ac_link") 2>conftest.er1
   30338   ac_status=$?
   30339   grep -v '^ *+' conftest.er1 >conftest.err
   30340   rm -f conftest.er1
   30341   cat conftest.err >&5
   30342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   30343   (exit $ac_status); } && {
   30344 	 test -z "$ac_c_werror_flag" ||
   30345 	 test ! -s conftest.err
   30346        } && test -s conftest$ac_exeext &&
   30347        $as_test_x conftest$ac_exeext; then
   30348    ac_cv_cc_implements___FUNCTION__="yes"
   30349 else
   30350   echo "$as_me: failed program was:" >&5
   30351 sed 's/^/| /' conftest.$ac_ext >&5
   30352 
   30353 	 ac_cv_cc_implements___FUNCTION__="no"
   30354 
   30355 fi
   30356 
   30357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   30358       conftest$ac_exeext conftest.$ac_ext
   30359 
   30360 fi
   30361 { echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
   30362 echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6; }
   30363 if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
   30364 
   30365 cat >>confdefs.h <<\_ACEOF
   30366 #define HAVE___FUNCTION__ 1
   30367 _ACEOF
   30368 
   30369 fi
   30370 
   30371 { echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
   30372 echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; }
   30373 if test "${ac_cv_cc_implements___func__+set}" = set; then
   30374   echo $ECHO_N "(cached) $ECHO_C" >&6
   30375 else
   30376 
   30377 	cat >conftest.$ac_ext <<_ACEOF
   30378 /* confdefs.h.  */
   30379 _ACEOF
   30380 cat confdefs.h >>conftest.$ac_ext
   30381 cat >>conftest.$ac_ext <<_ACEOF
   30382 /* end confdefs.h.  */
   30383  #include <stdio.h>
   30384 int
   30385 main ()
   30386 {
   30387  printf("%s", __func__);
   30388   ;
   30389   return 0;
   30390 }
   30391 _ACEOF
   30392 rm -f conftest.$ac_objext conftest$ac_exeext
   30393 if { (ac_try="$ac_link"
   30394 case "(($ac_try" in
   30395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   30396   *) ac_try_echo=$ac_try;;
   30397 esac
   30398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   30399   (eval "$ac_link") 2>conftest.er1
   30400   ac_status=$?
   30401   grep -v '^ *+' conftest.er1 >conftest.err
   30402   rm -f conftest.er1
   30403   cat conftest.err >&5
   30404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   30405   (exit $ac_status); } && {
   30406 	 test -z "$ac_c_werror_flag" ||
   30407 	 test ! -s conftest.err
   30408        } && test -s conftest$ac_exeext &&
   30409        $as_test_x conftest$ac_exeext; then
   30410    ac_cv_cc_implements___func__="yes"
   30411 else
   30412   echo "$as_me: failed program was:" >&5
   30413 sed 's/^/| /' conftest.$ac_ext >&5
   30414 
   30415 	 ac_cv_cc_implements___func__="no"
   30416 
   30417 fi
   30418 
   30419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   30420       conftest$ac_exeext conftest.$ac_ext
   30421 
   30422 fi
   30423 { echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
   30424 echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6; }
   30425 if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
   30426 
   30427 cat >>confdefs.h <<\_ACEOF
   30428 #define HAVE___func__ 1
   30429 _ACEOF
   30430 
   30431 fi
   30432 
   30433 { echo "$as_me:$LINENO: checking whether va_copy exists" >&5
   30434 echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6; }
   30435 if test "${ac_cv_have_va_copy+set}" = set; then
   30436   echo $ECHO_N "(cached) $ECHO_C" >&6
   30437 else
   30438 
   30439 	cat >conftest.$ac_ext <<_ACEOF
   30440 /* confdefs.h.  */
   30441 _ACEOF
   30442 cat confdefs.h >>conftest.$ac_ext
   30443 cat >>conftest.$ac_ext <<_ACEOF
   30444 /* end confdefs.h.  */
   30445 
   30446 #include <stdarg.h>
   30447 va_list x,y;
   30448 
   30449 int
   30450 main ()
   30451 {
   30452  va_copy(x,y);
   30453   ;
   30454   return 0;
   30455 }
   30456 _ACEOF
   30457 rm -f conftest.$ac_objext conftest$ac_exeext
   30458 if { (ac_try="$ac_link"
   30459 case "(($ac_try" in
   30460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   30461   *) ac_try_echo=$ac_try;;
   30462 esac
   30463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   30464   (eval "$ac_link") 2>conftest.er1
   30465   ac_status=$?
   30466   grep -v '^ *+' conftest.er1 >conftest.err
   30467   rm -f conftest.er1
   30468   cat conftest.err >&5
   30469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   30470   (exit $ac_status); } && {
   30471 	 test -z "$ac_c_werror_flag" ||
   30472 	 test ! -s conftest.err
   30473        } && test -s conftest$ac_exeext &&
   30474        $as_test_x conftest$ac_exeext; then
   30475    ac_cv_have_va_copy="yes"
   30476 else
   30477   echo "$as_me: failed program was:" >&5
   30478 sed 's/^/| /' conftest.$ac_ext >&5
   30479 
   30480 	 ac_cv_have_va_copy="no"
   30481 
   30482 fi
   30483 
   30484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   30485       conftest$ac_exeext conftest.$ac_ext
   30486 
   30487 fi
   30488 { echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5
   30489 echo "${ECHO_T}$ac_cv_have_va_copy" >&6; }
   30490 if test "x$ac_cv_have_va_copy" = "xyes" ; then
   30491 
   30492 cat >>confdefs.h <<\_ACEOF
   30493 #define HAVE_VA_COPY 1
   30494 _ACEOF
   30495 
   30496 fi
   30497 
   30498 { echo "$as_me:$LINENO: checking whether __va_copy exists" >&5
   30499 echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6; }
   30500 if test "${ac_cv_have___va_copy+set}" = set; then
   30501   echo $ECHO_N "(cached) $ECHO_C" >&6
   30502 else
   30503 
   30504 	cat >conftest.$ac_ext <<_ACEOF
   30505 /* confdefs.h.  */
   30506 _ACEOF
   30507 cat confdefs.h >>conftest.$ac_ext
   30508 cat >>conftest.$ac_ext <<_ACEOF
   30509 /* end confdefs.h.  */
   30510 
   30511 #include <stdarg.h>
   30512 va_list x,y;
   30513 
   30514 int
   30515 main ()
   30516 {
   30517  __va_copy(x,y);
   30518   ;
   30519   return 0;
   30520 }
   30521 _ACEOF
   30522 rm -f conftest.$ac_objext conftest$ac_exeext
   30523 if { (ac_try="$ac_link"
   30524 case "(($ac_try" in
   30525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   30526   *) ac_try_echo=$ac_try;;
   30527 esac
   30528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   30529   (eval "$ac_link") 2>conftest.er1
   30530   ac_status=$?
   30531   grep -v '^ *+' conftest.er1 >conftest.err
   30532   rm -f conftest.er1
   30533   cat conftest.err >&5
   30534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   30535   (exit $ac_status); } && {
   30536 	 test -z "$ac_c_werror_flag" ||
   30537 	 test ! -s conftest.err
   30538        } && test -s conftest$ac_exeext &&
   30539        $as_test_x conftest$ac_exeext; then
   30540    ac_cv_have___va_copy="yes"
   30541 else
   30542   echo "$as_me: failed program was:" >&5
   30543 sed 's/^/| /' conftest.$ac_ext >&5
   30544 
   30545 	 ac_cv_have___va_copy="no"
   30546 
   30547 fi
   30548 
   30549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   30550       conftest$ac_exeext conftest.$ac_ext
   30551 
   30552 fi
   30553 { echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5
   30554 echo "${ECHO_T}$ac_cv_have___va_copy" >&6; }
   30555 if test "x$ac_cv_have___va_copy" = "xyes" ; then
   30556 
   30557 cat >>confdefs.h <<\_ACEOF
   30558 #define HAVE___VA_COPY 1
   30559 _ACEOF
   30560 
   30561 fi
   30562 
   30563 { echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
   30564 echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6; }
   30565 if test "${ac_cv_have_getopt_optreset+set}" = set; then
   30566   echo $ECHO_N "(cached) $ECHO_C" >&6
   30567 else
   30568 
   30569 	cat >conftest.$ac_ext <<_ACEOF
   30570 /* confdefs.h.  */
   30571 _ACEOF
   30572 cat confdefs.h >>conftest.$ac_ext
   30573 cat >>conftest.$ac_ext <<_ACEOF
   30574 /* end confdefs.h.  */
   30575  #include <getopt.h>
   30576 int
   30577 main ()
   30578 {
   30579  extern int optreset; optreset = 0;
   30580   ;
   30581   return 0;
   30582 }
   30583 _ACEOF
   30584 rm -f conftest.$ac_objext conftest$ac_exeext
   30585 if { (ac_try="$ac_link"
   30586 case "(($ac_try" in
   30587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   30588   *) ac_try_echo=$ac_try;;
   30589 esac
   30590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   30591   (eval "$ac_link") 2>conftest.er1
   30592   ac_status=$?
   30593   grep -v '^ *+' conftest.er1 >conftest.err
   30594   rm -f conftest.er1
   30595   cat conftest.err >&5
   30596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   30597   (exit $ac_status); } && {
   30598 	 test -z "$ac_c_werror_flag" ||
   30599 	 test ! -s conftest.err
   30600        } && test -s conftest$ac_exeext &&
   30601        $as_test_x conftest$ac_exeext; then
   30602    ac_cv_have_getopt_optreset="yes"
   30603 else
   30604   echo "$as_me: failed program was:" >&5
   30605 sed 's/^/| /' conftest.$ac_ext >&5
   30606 
   30607 	 ac_cv_have_getopt_optreset="no"
   30608 
   30609 fi
   30610 
   30611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   30612       conftest$ac_exeext conftest.$ac_ext
   30613 
   30614 fi
   30615 { echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
   30616 echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6; }
   30617 if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
   30618 
   30619 cat >>confdefs.h <<\_ACEOF
   30620 #define HAVE_GETOPT_OPTRESET 1
   30621 _ACEOF
   30622 
   30623 fi
   30624 
   30625 { echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
   30626 echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6; }
   30627 if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
   30628   echo $ECHO_N "(cached) $ECHO_C" >&6
   30629 else
   30630 
   30631 	cat >conftest.$ac_ext <<_ACEOF
   30632 /* confdefs.h.  */
   30633 _ACEOF
   30634 cat confdefs.h >>conftest.$ac_ext
   30635 cat >>conftest.$ac_ext <<_ACEOF
   30636 /* end confdefs.h.  */
   30637 
   30638 int
   30639 main ()
   30640 {
   30641  extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
   30642   ;
   30643   return 0;
   30644 }
   30645 _ACEOF
   30646 rm -f conftest.$ac_objext conftest$ac_exeext
   30647 if { (ac_try="$ac_link"
   30648 case "(($ac_try" in
   30649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   30650   *) ac_try_echo=$ac_try;;
   30651 esac
   30652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   30653   (eval "$ac_link") 2>conftest.er1
   30654   ac_status=$?
   30655   grep -v '^ *+' conftest.er1 >conftest.err
   30656   rm -f conftest.er1
   30657   cat conftest.err >&5
   30658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   30659   (exit $ac_status); } && {
   30660 	 test -z "$ac_c_werror_flag" ||
   30661 	 test ! -s conftest.err
   30662        } && test -s conftest$ac_exeext &&
   30663        $as_test_x conftest$ac_exeext; then
   30664    ac_cv_libc_defines_sys_errlist="yes"
   30665 else
   30666   echo "$as_me: failed program was:" >&5
   30667 sed 's/^/| /' conftest.$ac_ext >&5
   30668 
   30669 	 ac_cv_libc_defines_sys_errlist="no"
   30670 
   30671 fi
   30672 
   30673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   30674       conftest$ac_exeext conftest.$ac_ext
   30675 
   30676 fi
   30677 { echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
   30678 echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6; }
   30679 if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
   30680 
   30681 cat >>confdefs.h <<\_ACEOF
   30682 #define HAVE_SYS_ERRLIST 1
   30683 _ACEOF
   30684 
   30685 fi
   30686 
   30687 
   30688 { echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
   30689 echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6; }
   30690 if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
   30691   echo $ECHO_N "(cached) $ECHO_C" >&6
   30692 else
   30693 
   30694 	cat >conftest.$ac_ext <<_ACEOF
   30695 /* confdefs.h.  */
   30696 _ACEOF
   30697 cat confdefs.h >>conftest.$ac_ext
   30698 cat >>conftest.$ac_ext <<_ACEOF
   30699 /* end confdefs.h.  */
   30700 
   30701 int
   30702 main ()
   30703 {
   30704  extern int sys_nerr; printf("%i", sys_nerr);
   30705   ;
   30706   return 0;
   30707 }
   30708 _ACEOF
   30709 rm -f conftest.$ac_objext conftest$ac_exeext
   30710 if { (ac_try="$ac_link"
   30711 case "(($ac_try" in
   30712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   30713   *) ac_try_echo=$ac_try;;
   30714 esac
   30715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   30716   (eval "$ac_link") 2>conftest.er1
   30717   ac_status=$?
   30718   grep -v '^ *+' conftest.er1 >conftest.err
   30719   rm -f conftest.er1
   30720   cat conftest.err >&5
   30721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   30722   (exit $ac_status); } && {
   30723 	 test -z "$ac_c_werror_flag" ||
   30724 	 test ! -s conftest.err
   30725        } && test -s conftest$ac_exeext &&
   30726        $as_test_x conftest$ac_exeext; then
   30727    ac_cv_libc_defines_sys_nerr="yes"
   30728 else
   30729   echo "$as_me: failed program was:" >&5
   30730 sed 's/^/| /' conftest.$ac_ext >&5
   30731 
   30732 	 ac_cv_libc_defines_sys_nerr="no"
   30733 
   30734 fi
   30735 
   30736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   30737       conftest$ac_exeext conftest.$ac_ext
   30738 
   30739 fi
   30740 { echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
   30741 echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6; }
   30742 if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
   30743 
   30744 cat >>confdefs.h <<\_ACEOF
   30745 #define HAVE_SYS_NERR 1
   30746 _ACEOF
   30747 
   30748 fi
   30749 
   30750 # Check libraries needed by DNS fingerprint support
   30751 { echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5
   30752 echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6; }
   30753 if test "${ac_cv_search_getrrsetbyname+set}" = set; then
   30754   echo $ECHO_N "(cached) $ECHO_C" >&6
   30755 else
   30756   ac_func_search_save_LIBS=$LIBS
   30757 cat >conftest.$ac_ext <<_ACEOF
   30758 /* confdefs.h.  */
   30759 _ACEOF
   30760 cat confdefs.h >>conftest.$ac_ext
   30761 cat >>conftest.$ac_ext <<_ACEOF
   30762 /* end confdefs.h.  */
   30763 
   30764 /* Override any GCC internal prototype to avoid an error.
   30765    Use char because int might match the return type of a GCC
   30766    builtin and then its argument prototype would still apply.  */
   30767 #ifdef __cplusplus
   30768 extern "C"
   30769 #endif
   30770 char getrrsetbyname ();
   30771 int
   30772 main ()
   30773 {
   30774 return getrrsetbyname ();
   30775   ;
   30776   return 0;
   30777 }
   30778 _ACEOF
   30779 for ac_lib in '' resolv; do
   30780   if test -z "$ac_lib"; then
   30781     ac_res="none required"
   30782   else
   30783     ac_res=-l$ac_lib
   30784     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   30785   fi
   30786   rm -f conftest.$ac_objext conftest$ac_exeext
   30787 if { (ac_try="$ac_link"
   30788 case "(($ac_try" in
   30789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   30790   *) ac_try_echo=$ac_try;;
   30791 esac
   30792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   30793   (eval "$ac_link") 2>conftest.er1
   30794   ac_status=$?
   30795   grep -v '^ *+' conftest.er1 >conftest.err
   30796   rm -f conftest.er1
   30797   cat conftest.err >&5
   30798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   30799   (exit $ac_status); } && {
   30800 	 test -z "$ac_c_werror_flag" ||
   30801 	 test ! -s conftest.err
   30802        } && test -s conftest$ac_exeext &&
   30803        $as_test_x conftest$ac_exeext; then
   30804   ac_cv_search_getrrsetbyname=$ac_res
   30805 else
   30806   echo "$as_me: failed program was:" >&5
   30807 sed 's/^/| /' conftest.$ac_ext >&5
   30808 
   30809 
   30810 fi
   30811 
   30812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   30813       conftest$ac_exeext
   30814   if test "${ac_cv_search_getrrsetbyname+set}" = set; then
   30815   break
   30816 fi
   30817 done
   30818 if test "${ac_cv_search_getrrsetbyname+set}" = set; then
   30819   :
   30820 else
   30821   ac_cv_search_getrrsetbyname=no
   30822 fi
   30823 rm conftest.$ac_ext
   30824 LIBS=$ac_func_search_save_LIBS
   30825 fi
   30826 { echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5
   30827 echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6; }
   30828 ac_res=$ac_cv_search_getrrsetbyname
   30829 if test "$ac_res" != no; then
   30830   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   30831 
   30832 cat >>confdefs.h <<\_ACEOF
   30833 #define HAVE_GETRRSETBYNAME 1
   30834 _ACEOF
   30835 
   30836 else
   30837 
   30838 		# Needed by our getrrsetbyname()
   30839 		{ echo "$as_me:$LINENO: checking for library containing res_query" >&5
   30840 echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; }
   30841 if test "${ac_cv_search_res_query+set}" = set; then
   30842   echo $ECHO_N "(cached) $ECHO_C" >&6
   30843 else
   30844   ac_func_search_save_LIBS=$LIBS
   30845 cat >conftest.$ac_ext <<_ACEOF
   30846 /* confdefs.h.  */
   30847 _ACEOF
   30848 cat confdefs.h >>conftest.$ac_ext
   30849 cat >>conftest.$ac_ext <<_ACEOF
   30850 /* end confdefs.h.  */
   30851 
   30852 /* Override any GCC internal prototype to avoid an error.
   30853    Use char because int might match the return type of a GCC
   30854    builtin and then its argument prototype would still apply.  */
   30855 #ifdef __cplusplus
   30856 extern "C"
   30857 #endif
   30858 char res_query ();
   30859 int
   30860 main ()
   30861 {
   30862 return res_query ();
   30863   ;
   30864   return 0;
   30865 }
   30866 _ACEOF
   30867 for ac_lib in '' resolv; do
   30868   if test -z "$ac_lib"; then
   30869     ac_res="none required"
   30870   else
   30871     ac_res=-l$ac_lib
   30872     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   30873   fi
   30874   rm -f conftest.$ac_objext conftest$ac_exeext
   30875 if { (ac_try="$ac_link"
   30876 case "(($ac_try" in
   30877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   30878   *) ac_try_echo=$ac_try;;
   30879 esac
   30880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   30881   (eval "$ac_link") 2>conftest.er1
   30882   ac_status=$?
   30883   grep -v '^ *+' conftest.er1 >conftest.err
   30884   rm -f conftest.er1
   30885   cat conftest.err >&5
   30886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   30887   (exit $ac_status); } && {
   30888 	 test -z "$ac_c_werror_flag" ||
   30889 	 test ! -s conftest.err
   30890        } && test -s conftest$ac_exeext &&
   30891        $as_test_x conftest$ac_exeext; then
   30892   ac_cv_search_res_query=$ac_res
   30893 else
   30894   echo "$as_me: failed program was:" >&5
   30895 sed 's/^/| /' conftest.$ac_ext >&5
   30896 
   30897 
   30898 fi
   30899 
   30900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   30901       conftest$ac_exeext
   30902   if test "${ac_cv_search_res_query+set}" = set; then
   30903   break
   30904 fi
   30905 done
   30906 if test "${ac_cv_search_res_query+set}" = set; then
   30907   :
   30908 else
   30909   ac_cv_search_res_query=no
   30910 fi
   30911 rm conftest.$ac_ext
   30912 LIBS=$ac_func_search_save_LIBS
   30913 fi
   30914 { echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
   30915 echo "${ECHO_T}$ac_cv_search_res_query" >&6; }
   30916 ac_res=$ac_cv_search_res_query
   30917 if test "$ac_res" != no; then
   30918   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   30919 
   30920 fi
   30921 
   30922 		{ echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
   30923 echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
   30924 if test "${ac_cv_search_dn_expand+set}" = set; then
   30925   echo $ECHO_N "(cached) $ECHO_C" >&6
   30926 else
   30927   ac_func_search_save_LIBS=$LIBS
   30928 cat >conftest.$ac_ext <<_ACEOF
   30929 /* confdefs.h.  */
   30930 _ACEOF
   30931 cat confdefs.h >>conftest.$ac_ext
   30932 cat >>conftest.$ac_ext <<_ACEOF
   30933 /* end confdefs.h.  */
   30934 
   30935 /* Override any GCC internal prototype to avoid an error.
   30936    Use char because int might match the return type of a GCC
   30937    builtin and then its argument prototype would still apply.  */
   30938 #ifdef __cplusplus
   30939 extern "C"
   30940 #endif
   30941 char dn_expand ();
   30942 int
   30943 main ()
   30944 {
   30945 return dn_expand ();
   30946   ;
   30947   return 0;
   30948 }
   30949 _ACEOF
   30950 for ac_lib in '' resolv; do
   30951   if test -z "$ac_lib"; then
   30952     ac_res="none required"
   30953   else
   30954     ac_res=-l$ac_lib
   30955     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   30956   fi
   30957   rm -f conftest.$ac_objext conftest$ac_exeext
   30958 if { (ac_try="$ac_link"
   30959 case "(($ac_try" in
   30960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   30961   *) ac_try_echo=$ac_try;;
   30962 esac
   30963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   30964   (eval "$ac_link") 2>conftest.er1
   30965   ac_status=$?
   30966   grep -v '^ *+' conftest.er1 >conftest.err
   30967   rm -f conftest.er1
   30968   cat conftest.err >&5
   30969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   30970   (exit $ac_status); } && {
   30971 	 test -z "$ac_c_werror_flag" ||
   30972 	 test ! -s conftest.err
   30973        } && test -s conftest$ac_exeext &&
   30974        $as_test_x conftest$ac_exeext; then
   30975   ac_cv_search_dn_expand=$ac_res
   30976 else
   30977   echo "$as_me: failed program was:" >&5
   30978 sed 's/^/| /' conftest.$ac_ext >&5
   30979 
   30980 
   30981 fi
   30982 
   30983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   30984       conftest$ac_exeext
   30985   if test "${ac_cv_search_dn_expand+set}" = set; then
   30986   break
   30987 fi
   30988 done
   30989 if test "${ac_cv_search_dn_expand+set}" = set; then
   30990   :
   30991 else
   30992   ac_cv_search_dn_expand=no
   30993 fi
   30994 rm conftest.$ac_ext
   30995 LIBS=$ac_func_search_save_LIBS
   30996 fi
   30997 { echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
   30998 echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
   30999 ac_res=$ac_cv_search_dn_expand
   31000 if test "$ac_res" != no; then
   31001   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   31002 
   31003 fi
   31004 
   31005 		{ echo "$as_me:$LINENO: checking if res_query will link" >&5
   31006 echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6; }
   31007 		cat >conftest.$ac_ext <<_ACEOF
   31008 /* confdefs.h.  */
   31009 _ACEOF
   31010 cat confdefs.h >>conftest.$ac_ext
   31011 cat >>conftest.$ac_ext <<_ACEOF
   31012 /* end confdefs.h.  */
   31013 
   31014 #include <sys/types.h>
   31015 #include <netinet/in.h>
   31016 #include <arpa/nameser.h>
   31017 #include <netdb.h>
   31018 #include <resolv.h>
   31019 
   31020 int
   31021 main ()
   31022 {
   31023 
   31024 	res_query (0, 0, 0, 0, 0);
   31025 
   31026   ;
   31027   return 0;
   31028 }
   31029 _ACEOF
   31030 rm -f conftest.$ac_objext conftest$ac_exeext
   31031 if { (ac_try="$ac_link"
   31032 case "(($ac_try" in
   31033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   31034   *) ac_try_echo=$ac_try;;
   31035 esac
   31036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   31037   (eval "$ac_link") 2>conftest.er1
   31038   ac_status=$?
   31039   grep -v '^ *+' conftest.er1 >conftest.err
   31040   rm -f conftest.er1
   31041   cat conftest.err >&5
   31042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   31043   (exit $ac_status); } && {
   31044 	 test -z "$ac_c_werror_flag" ||
   31045 	 test ! -s conftest.err
   31046        } && test -s conftest$ac_exeext &&
   31047        $as_test_x conftest$ac_exeext; then
   31048   { echo "$as_me:$LINENO: result: yes" >&5
   31049 echo "${ECHO_T}yes" >&6; }
   31050 else
   31051   echo "$as_me: failed program was:" >&5
   31052 sed 's/^/| /' conftest.$ac_ext >&5
   31053 
   31054 	{ echo "$as_me:$LINENO: result: no" >&5
   31055 echo "${ECHO_T}no" >&6; }
   31056 		    saved_LIBS="$LIBS"
   31057 		    LIBS="$LIBS -lresolv"
   31058 		    { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
   31059 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
   31060 		    cat >conftest.$ac_ext <<_ACEOF
   31061 /* confdefs.h.  */
   31062 _ACEOF
   31063 cat confdefs.h >>conftest.$ac_ext
   31064 cat >>conftest.$ac_ext <<_ACEOF
   31065 /* end confdefs.h.  */
   31066 
   31067 #include <sys/types.h>
   31068 #include <netinet/in.h>
   31069 #include <arpa/nameser.h>
   31070 #include <netdb.h>
   31071 #include <resolv.h>
   31072 
   31073 int
   31074 main ()
   31075 {
   31076 
   31077 	res_query (0, 0, 0, 0, 0);
   31078 
   31079   ;
   31080   return 0;
   31081 }
   31082 _ACEOF
   31083 rm -f conftest.$ac_objext conftest$ac_exeext
   31084 if { (ac_try="$ac_link"
   31085 case "(($ac_try" in
   31086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   31087   *) ac_try_echo=$ac_try;;
   31088 esac
   31089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   31090   (eval "$ac_link") 2>conftest.er1
   31091   ac_status=$?
   31092   grep -v '^ *+' conftest.er1 >conftest.err
   31093   rm -f conftest.er1
   31094   cat conftest.err >&5
   31095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   31096   (exit $ac_status); } && {
   31097 	 test -z "$ac_c_werror_flag" ||
   31098 	 test ! -s conftest.err
   31099        } && test -s conftest$ac_exeext &&
   31100        $as_test_x conftest$ac_exeext; then
   31101   { echo "$as_me:$LINENO: result: yes" >&5
   31102 echo "${ECHO_T}yes" >&6; }
   31103 else
   31104   echo "$as_me: failed program was:" >&5
   31105 sed 's/^/| /' conftest.$ac_ext >&5
   31106 
   31107 	LIBS="$saved_LIBS"
   31108 			 { echo "$as_me:$LINENO: result: no" >&5
   31109 echo "${ECHO_T}no" >&6; }
   31110 fi
   31111 
   31112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   31113       conftest$ac_exeext conftest.$ac_ext
   31114 
   31115 fi
   31116 
   31117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   31118       conftest$ac_exeext conftest.$ac_ext
   31119 
   31120 
   31121 for ac_func in _getshort _getlong
   31122 do
   31123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   31124 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   31125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   31126 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   31127   echo $ECHO_N "(cached) $ECHO_C" >&6
   31128 else
   31129   cat >conftest.$ac_ext <<_ACEOF
   31130 /* confdefs.h.  */
   31131 _ACEOF
   31132 cat confdefs.h >>conftest.$ac_ext
   31133 cat >>conftest.$ac_ext <<_ACEOF
   31134 /* end confdefs.h.  */
   31135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   31136    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   31137 #define $ac_func innocuous_$ac_func
   31138 
   31139 /* System header to define __stub macros and hopefully few prototypes,
   31140     which can conflict with char $ac_func (); below.
   31141     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   31142     <limits.h> exists even on freestanding compilers.  */
   31143 
   31144 #ifdef __STDC__
   31145 # include <limits.h>
   31146 #else
   31147 # include <assert.h>
   31148 #endif
   31149 
   31150 #undef $ac_func
   31151 
   31152 /* Override any GCC internal prototype to avoid an error.
   31153    Use char because int might match the return type of a GCC
   31154    builtin and then its argument prototype would still apply.  */
   31155 #ifdef __cplusplus
   31156 extern "C"
   31157 #endif
   31158 char $ac_func ();
   31159 /* The GNU C library defines this for functions which it implements
   31160     to always fail with ENOSYS.  Some functions are actually named
   31161     something starting with __ and the normal name is an alias.  */
   31162 #if defined __stub_$ac_func || defined __stub___$ac_func
   31163 choke me
   31164 #endif
   31165 
   31166 int
   31167 main ()
   31168 {
   31169 return $ac_func ();
   31170   ;
   31171   return 0;
   31172 }
   31173 _ACEOF
   31174 rm -f conftest.$ac_objext conftest$ac_exeext
   31175 if { (ac_try="$ac_link"
   31176 case "(($ac_try" in
   31177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   31178   *) ac_try_echo=$ac_try;;
   31179 esac
   31180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   31181   (eval "$ac_link") 2>conftest.er1
   31182   ac_status=$?
   31183   grep -v '^ *+' conftest.er1 >conftest.err
   31184   rm -f conftest.er1
   31185   cat conftest.err >&5
   31186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   31187   (exit $ac_status); } && {
   31188 	 test -z "$ac_c_werror_flag" ||
   31189 	 test ! -s conftest.err
   31190        } && test -s conftest$ac_exeext &&
   31191        $as_test_x conftest$ac_exeext; then
   31192   eval "$as_ac_var=yes"
   31193 else
   31194   echo "$as_me: failed program was:" >&5
   31195 sed 's/^/| /' conftest.$ac_ext >&5
   31196 
   31197 	eval "$as_ac_var=no"
   31198 fi
   31199 
   31200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   31201       conftest$ac_exeext conftest.$ac_ext
   31202 fi
   31203 ac_res=`eval echo '${'$as_ac_var'}'`
   31204 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   31205 echo "${ECHO_T}$ac_res" >&6; }
   31206 if test `eval echo '${'$as_ac_var'}'` = yes; then
   31207   cat >>confdefs.h <<_ACEOF
   31208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   31209 _ACEOF
   31210 
   31211 fi
   31212 done
   31213 
   31214 		{ echo "$as_me:$LINENO: checking whether _getshort is declared" >&5
   31215 echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6; }
   31216 if test "${ac_cv_have_decl__getshort+set}" = set; then
   31217   echo $ECHO_N "(cached) $ECHO_C" >&6
   31218 else
   31219   cat >conftest.$ac_ext <<_ACEOF
   31220 /* confdefs.h.  */
   31221 _ACEOF
   31222 cat confdefs.h >>conftest.$ac_ext
   31223 cat >>conftest.$ac_ext <<_ACEOF
   31224 /* end confdefs.h.  */
   31225 #include <sys/types.h>
   31226 		    #include <arpa/nameser.h>
   31227 
   31228 int
   31229 main ()
   31230 {
   31231 #ifndef _getshort
   31232   (void) _getshort;
   31233 #endif
   31234 
   31235   ;
   31236   return 0;
   31237 }
   31238 _ACEOF
   31239 rm -f conftest.$ac_objext
   31240 if { (ac_try="$ac_compile"
   31241 case "(($ac_try" in
   31242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   31243   *) ac_try_echo=$ac_try;;
   31244 esac
   31245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   31246   (eval "$ac_compile") 2>conftest.er1
   31247   ac_status=$?
   31248   grep -v '^ *+' conftest.er1 >conftest.err
   31249   rm -f conftest.er1
   31250   cat conftest.err >&5
   31251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   31252   (exit $ac_status); } && {
   31253 	 test -z "$ac_c_werror_flag" ||
   31254 	 test ! -s conftest.err
   31255        } && test -s conftest.$ac_objext; then
   31256   ac_cv_have_decl__getshort=yes
   31257 else
   31258   echo "$as_me: failed program was:" >&5
   31259 sed 's/^/| /' conftest.$ac_ext >&5
   31260 
   31261 	ac_cv_have_decl__getshort=no
   31262 fi
   31263 
   31264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   31265 fi
   31266 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5
   31267 echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6; }
   31268 if test $ac_cv_have_decl__getshort = yes; then
   31269 
   31270 cat >>confdefs.h <<_ACEOF
   31271 #define HAVE_DECL__GETSHORT 1
   31272 _ACEOF
   31273 
   31274 
   31275 else
   31276   cat >>confdefs.h <<_ACEOF
   31277 #define HAVE_DECL__GETSHORT 0
   31278 _ACEOF
   31279 
   31280 
   31281 fi
   31282 { echo "$as_me:$LINENO: checking whether _getlong is declared" >&5
   31283 echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6; }
   31284 if test "${ac_cv_have_decl__getlong+set}" = set; then
   31285   echo $ECHO_N "(cached) $ECHO_C" >&6
   31286 else
   31287   cat >conftest.$ac_ext <<_ACEOF
   31288 /* confdefs.h.  */
   31289 _ACEOF
   31290 cat confdefs.h >>conftest.$ac_ext
   31291 cat >>conftest.$ac_ext <<_ACEOF
   31292 /* end confdefs.h.  */
   31293 #include <sys/types.h>
   31294 		    #include <arpa/nameser.h>
   31295 
   31296 int
   31297 main ()
   31298 {
   31299 #ifndef _getlong
   31300   (void) _getlong;
   31301 #endif
   31302 
   31303   ;
   31304   return 0;
   31305 }
   31306 _ACEOF
   31307 rm -f conftest.$ac_objext
   31308 if { (ac_try="$ac_compile"
   31309 case "(($ac_try" in
   31310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   31311   *) ac_try_echo=$ac_try;;
   31312 esac
   31313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   31314   (eval "$ac_compile") 2>conftest.er1
   31315   ac_status=$?
   31316   grep -v '^ *+' conftest.er1 >conftest.err
   31317   rm -f conftest.er1
   31318   cat conftest.err >&5
   31319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   31320   (exit $ac_status); } && {
   31321 	 test -z "$ac_c_werror_flag" ||
   31322 	 test ! -s conftest.err
   31323        } && test -s conftest.$ac_objext; then
   31324   ac_cv_have_decl__getlong=yes
   31325 else
   31326   echo "$as_me: failed program was:" >&5
   31327 sed 's/^/| /' conftest.$ac_ext >&5
   31328 
   31329 	ac_cv_have_decl__getlong=no
   31330 fi
   31331 
   31332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   31333 fi
   31334 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5
   31335 echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6; }
   31336 if test $ac_cv_have_decl__getlong = yes; then
   31337 
   31338 cat >>confdefs.h <<_ACEOF
   31339 #define HAVE_DECL__GETLONG 1
   31340 _ACEOF
   31341 
   31342 
   31343 else
   31344   cat >>confdefs.h <<_ACEOF
   31345 #define HAVE_DECL__GETLONG 0
   31346 _ACEOF
   31347 
   31348 
   31349 fi
   31350 
   31351 
   31352 		{ echo "$as_me:$LINENO: checking for HEADER.ad" >&5
   31353 echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6; }
   31354 if test "${ac_cv_member_HEADER_ad+set}" = set; then
   31355   echo $ECHO_N "(cached) $ECHO_C" >&6
   31356 else
   31357   cat >conftest.$ac_ext <<_ACEOF
   31358 /* confdefs.h.  */
   31359 _ACEOF
   31360 cat confdefs.h >>conftest.$ac_ext
   31361 cat >>conftest.$ac_ext <<_ACEOF
   31362 /* end confdefs.h.  */
   31363 #include <arpa/nameser.h>
   31364 
   31365 int
   31366 main ()
   31367 {
   31368 static HEADER ac_aggr;
   31369 if (ac_aggr.ad)
   31370 return 0;
   31371   ;
   31372   return 0;
   31373 }
   31374 _ACEOF
   31375 rm -f conftest.$ac_objext
   31376 if { (ac_try="$ac_compile"
   31377 case "(($ac_try" in
   31378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   31379   *) ac_try_echo=$ac_try;;
   31380 esac
   31381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   31382   (eval "$ac_compile") 2>conftest.er1
   31383   ac_status=$?
   31384   grep -v '^ *+' conftest.er1 >conftest.err
   31385   rm -f conftest.er1
   31386   cat conftest.err >&5
   31387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   31388   (exit $ac_status); } && {
   31389 	 test -z "$ac_c_werror_flag" ||
   31390 	 test ! -s conftest.err
   31391        } && test -s conftest.$ac_objext; then
   31392   ac_cv_member_HEADER_ad=yes
   31393 else
   31394   echo "$as_me: failed program was:" >&5
   31395 sed 's/^/| /' conftest.$ac_ext >&5
   31396 
   31397 	cat >conftest.$ac_ext <<_ACEOF
   31398 /* confdefs.h.  */
   31399 _ACEOF
   31400 cat confdefs.h >>conftest.$ac_ext
   31401 cat >>conftest.$ac_ext <<_ACEOF
   31402 /* end confdefs.h.  */
   31403 #include <arpa/nameser.h>
   31404 
   31405 int
   31406 main ()
   31407 {
   31408 static HEADER ac_aggr;
   31409 if (sizeof ac_aggr.ad)
   31410 return 0;
   31411   ;
   31412   return 0;
   31413 }
   31414 _ACEOF
   31415 rm -f conftest.$ac_objext
   31416 if { (ac_try="$ac_compile"
   31417 case "(($ac_try" in
   31418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   31419   *) ac_try_echo=$ac_try;;
   31420 esac
   31421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   31422   (eval "$ac_compile") 2>conftest.er1
   31423   ac_status=$?
   31424   grep -v '^ *+' conftest.er1 >conftest.err
   31425   rm -f conftest.er1
   31426   cat conftest.err >&5
   31427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   31428   (exit $ac_status); } && {
   31429 	 test -z "$ac_c_werror_flag" ||
   31430 	 test ! -s conftest.err
   31431        } && test -s conftest.$ac_objext; then
   31432   ac_cv_member_HEADER_ad=yes
   31433 else
   31434   echo "$as_me: failed program was:" >&5
   31435 sed 's/^/| /' conftest.$ac_ext >&5
   31436 
   31437 	ac_cv_member_HEADER_ad=no
   31438 fi
   31439 
   31440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   31441 fi
   31442 
   31443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   31444 fi
   31445 { echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5
   31446 echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6; }
   31447 if test $ac_cv_member_HEADER_ad = yes; then
   31448 
   31449 cat >>confdefs.h <<\_ACEOF
   31450 #define HAVE_HEADER_AD 1
   31451 _ACEOF
   31452 
   31453 fi
   31454 
   31455 
   31456 fi
   31457 
   31458 
   31459 { echo "$as_me:$LINENO: checking if struct __res_state _res is an extern" >&5
   31460 echo $ECHO_N "checking if struct __res_state _res is an extern... $ECHO_C" >&6; }
   31461 cat >conftest.$ac_ext <<_ACEOF
   31462 /* confdefs.h.  */
   31463 _ACEOF
   31464 cat confdefs.h >>conftest.$ac_ext
   31465 cat >>conftest.$ac_ext <<_ACEOF
   31466 /* end confdefs.h.  */
   31467 
   31468 #include <stdio.h>
   31469 #if HAVE_SYS_TYPES_H
   31470 # include <sys/types.h>
   31471 #endif
   31472 #include <netinet/in.h>
   31473 #include <arpa/nameser.h>
   31474 #include <resolv.h>
   31475 extern struct __res_state _res;
   31476 
   31477 int
   31478 main ()
   31479 {
   31480 
   31481   ;
   31482   return 0;
   31483 }
   31484 _ACEOF
   31485 rm -f conftest.$ac_objext conftest$ac_exeext
   31486 if { (ac_try="$ac_link"
   31487 case "(($ac_try" in
   31488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   31489   *) ac_try_echo=$ac_try;;
   31490 esac
   31491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   31492   (eval "$ac_link") 2>conftest.er1
   31493   ac_status=$?
   31494   grep -v '^ *+' conftest.er1 >conftest.err
   31495   rm -f conftest.er1
   31496   cat conftest.err >&5
   31497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   31498   (exit $ac_status); } && {
   31499 	 test -z "$ac_c_werror_flag" ||
   31500 	 test ! -s conftest.err
   31501        } && test -s conftest$ac_exeext &&
   31502        $as_test_x conftest$ac_exeext; then
   31503   { echo "$as_me:$LINENO: result: yes" >&5
   31504 echo "${ECHO_T}yes" >&6; }
   31505 
   31506 cat >>confdefs.h <<\_ACEOF
   31507 #define HAVE__RES_EXTERN 1
   31508 _ACEOF
   31509 
   31510 
   31511 else
   31512   echo "$as_me: failed program was:" >&5
   31513 sed 's/^/| /' conftest.$ac_ext >&5
   31514 
   31515 	 { echo "$as_me:$LINENO: result: no" >&5
   31516 echo "${ECHO_T}no" >&6; }
   31517 
   31518 fi
   31519 
   31520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   31521       conftest$ac_exeext conftest.$ac_ext
   31522 
   31523 # Check whether user wants SELinux support
   31524 SELINUX_MSG="no"
   31525 LIBSELINUX=""
   31526 
   31527 # Check whether --with-selinux was given.
   31528 if test "${with_selinux+set}" = set; then
   31529   withval=$with_selinux;  if test "x$withval" != "xno" ; then
   31530 		save_LIBS="$LIBS"
   31531 
   31532 cat >>confdefs.h <<\_ACEOF
   31533 #define WITH_SELINUX 1
   31534 _ACEOF
   31535 
   31536 		SELINUX_MSG="yes"
   31537 		if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
   31538   { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
   31539 echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
   31540 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
   31541   echo $ECHO_N "(cached) $ECHO_C" >&6
   31542 fi
   31543 { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
   31544 echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
   31545 else
   31546   # Is the header compilable?
   31547 { echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
   31548 echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; }
   31549 cat >conftest.$ac_ext <<_ACEOF
   31550 /* confdefs.h.  */
   31551 _ACEOF
   31552 cat confdefs.h >>conftest.$ac_ext
   31553 cat >>conftest.$ac_ext <<_ACEOF
   31554 /* end confdefs.h.  */
   31555 $ac_includes_default
   31556 #include <selinux/selinux.h>
   31557 _ACEOF
   31558 rm -f conftest.$ac_objext
   31559 if { (ac_try="$ac_compile"
   31560 case "(($ac_try" in
   31561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   31562   *) ac_try_echo=$ac_try;;
   31563 esac
   31564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   31565   (eval "$ac_compile") 2>conftest.er1
   31566   ac_status=$?
   31567   grep -v '^ *+' conftest.er1 >conftest.err
   31568   rm -f conftest.er1
   31569   cat conftest.err >&5
   31570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   31571   (exit $ac_status); } && {
   31572 	 test -z "$ac_c_werror_flag" ||
   31573 	 test ! -s conftest.err
   31574        } && test -s conftest.$ac_objext; then
   31575   ac_header_compiler=yes
   31576 else
   31577   echo "$as_me: failed program was:" >&5
   31578 sed 's/^/| /' conftest.$ac_ext >&5
   31579 
   31580 	ac_header_compiler=no
   31581 fi
   31582 
   31583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   31584 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   31585 echo "${ECHO_T}$ac_header_compiler" >&6; }
   31586 
   31587 # Is the header present?
   31588 { echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
   31589 echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; }
   31590 cat >conftest.$ac_ext <<_ACEOF
   31591 /* confdefs.h.  */
   31592 _ACEOF
   31593 cat confdefs.h >>conftest.$ac_ext
   31594 cat >>conftest.$ac_ext <<_ACEOF
   31595 /* end confdefs.h.  */
   31596 #include <selinux/selinux.h>
   31597 _ACEOF
   31598 if { (ac_try="$ac_cpp conftest.$ac_ext"
   31599 case "(($ac_try" in
   31600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   31601   *) ac_try_echo=$ac_try;;
   31602 esac
   31603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   31604   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   31605   ac_status=$?
   31606   grep -v '^ *+' conftest.er1 >conftest.err
   31607   rm -f conftest.er1
   31608   cat conftest.err >&5
   31609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   31610   (exit $ac_status); } >/dev/null && {
   31611 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   31612 	 test ! -s conftest.err
   31613        }; then
   31614   ac_header_preproc=yes
   31615 else
   31616   echo "$as_me: failed program was:" >&5
   31617 sed 's/^/| /' conftest.$ac_ext >&5
   31618 
   31619   ac_header_preproc=no
   31620 fi
   31621 
   31622 rm -f conftest.err conftest.$ac_ext
   31623 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   31624 echo "${ECHO_T}$ac_header_preproc" >&6; }
   31625 
   31626 # So?  What about this header?
   31627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   31628   yes:no: )
   31629     { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
   31630 echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   31631     { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
   31632 echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
   31633     ac_header_preproc=yes
   31634     ;;
   31635   no:yes:* )
   31636     { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
   31637 echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
   31638     { echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&5
   31639 echo "$as_me: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&2;}
   31640     { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
   31641 echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
   31642     { echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&5
   31643 echo "$as_me: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   31644     { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
   31645 echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
   31646     { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
   31647 echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
   31648     ( cat <<\_ASBOX
   31649 ## ------------------------------------------- ##
   31650 ## Report this to openssh-unix-dev (at] mindrot.org ##
   31651 ## ------------------------------------------- ##
   31652 _ASBOX
   31653      ) | sed "s/^/$as_me: WARNING:     /" >&2
   31654     ;;
   31655 esac
   31656 { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
   31657 echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
   31658 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
   31659   echo $ECHO_N "(cached) $ECHO_C" >&6
   31660 else
   31661   ac_cv_header_selinux_selinux_h=$ac_header_preproc
   31662 fi
   31663 { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
   31664 echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
   31665 
   31666 fi
   31667 if test $ac_cv_header_selinux_selinux_h = yes; then
   31668   :
   31669 else
   31670   { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5
   31671 echo "$as_me: error: SELinux support requires selinux.h header" >&2;}
   31672    { (exit 1); exit 1; }; }
   31673 fi
   31674 
   31675 
   31676 		{ echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5
   31677 echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; }
   31678 if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then
   31679   echo $ECHO_N "(cached) $ECHO_C" >&6
   31680 else
   31681   ac_check_lib_save_LIBS=$LIBS
   31682 LIBS="-lselinux  $LIBS"
   31683 cat >conftest.$ac_ext <<_ACEOF
   31684 /* confdefs.h.  */
   31685 _ACEOF
   31686 cat confdefs.h >>conftest.$ac_ext
   31687 cat >>conftest.$ac_ext <<_ACEOF
   31688 /* end confdefs.h.  */
   31689 
   31690 /* Override any GCC internal prototype to avoid an error.
   31691    Use char because int might match the return type of a GCC
   31692    builtin and then its argument prototype would still apply.  */
   31693 #ifdef __cplusplus
   31694 extern "C"
   31695 #endif
   31696 char setexeccon ();
   31697 int
   31698 main ()
   31699 {
   31700 return setexeccon ();
   31701   ;
   31702   return 0;
   31703 }
   31704 _ACEOF
   31705 rm -f conftest.$ac_objext conftest$ac_exeext
   31706 if { (ac_try="$ac_link"
   31707 case "(($ac_try" in
   31708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   31709   *) ac_try_echo=$ac_try;;
   31710 esac
   31711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   31712   (eval "$ac_link") 2>conftest.er1
   31713   ac_status=$?
   31714   grep -v '^ *+' conftest.er1 >conftest.err
   31715   rm -f conftest.er1
   31716   cat conftest.err >&5
   31717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   31718   (exit $ac_status); } && {
   31719 	 test -z "$ac_c_werror_flag" ||
   31720 	 test ! -s conftest.err
   31721        } && test -s conftest$ac_exeext &&
   31722        $as_test_x conftest$ac_exeext; then
   31723   ac_cv_lib_selinux_setexeccon=yes
   31724 else
   31725   echo "$as_me: failed program was:" >&5
   31726 sed 's/^/| /' conftest.$ac_ext >&5
   31727 
   31728 	ac_cv_lib_selinux_setexeccon=no
   31729 fi
   31730 
   31731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   31732       conftest$ac_exeext conftest.$ac_ext
   31733 LIBS=$ac_check_lib_save_LIBS
   31734 fi
   31735 { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5
   31736 echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; }
   31737 if test $ac_cv_lib_selinux_setexeccon = yes; then
   31738    LIBSELINUX="-lselinux"
   31739 			  LIBS="$LIBS -lselinux"
   31740 
   31741 else
   31742   { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5
   31743 echo "$as_me: error: SELinux support requires libselinux library" >&2;}
   31744    { (exit 1); exit 1; }; }
   31745 fi
   31746 
   31747 		SSHLIBS="$SSHLIBS $LIBSELINUX"
   31748 		SSHDLIBS="$SSHDLIBS $LIBSELINUX"
   31749 
   31750 
   31751 for ac_func in getseuserbyname get_default_context_with_level
   31752 do
   31753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   31754 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   31755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   31756 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   31757   echo $ECHO_N "(cached) $ECHO_C" >&6
   31758 else
   31759   cat >conftest.$ac_ext <<_ACEOF
   31760 /* confdefs.h.  */
   31761 _ACEOF
   31762 cat confdefs.h >>conftest.$ac_ext
   31763 cat >>conftest.$ac_ext <<_ACEOF
   31764 /* end confdefs.h.  */
   31765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   31766    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   31767 #define $ac_func innocuous_$ac_func
   31768 
   31769 /* System header to define __stub macros and hopefully few prototypes,
   31770     which can conflict with char $ac_func (); below.
   31771     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   31772     <limits.h> exists even on freestanding compilers.  */
   31773 
   31774 #ifdef __STDC__
   31775 # include <limits.h>
   31776 #else
   31777 # include <assert.h>
   31778 #endif
   31779 
   31780 #undef $ac_func
   31781 
   31782 /* Override any GCC internal prototype to avoid an error.
   31783    Use char because int might match the return type of a GCC
   31784    builtin and then its argument prototype would still apply.  */
   31785 #ifdef __cplusplus
   31786 extern "C"
   31787 #endif
   31788 char $ac_func ();
   31789 /* The GNU C library defines this for functions which it implements
   31790     to always fail with ENOSYS.  Some functions are actually named
   31791     something starting with __ and the normal name is an alias.  */
   31792 #if defined __stub_$ac_func || defined __stub___$ac_func
   31793 choke me
   31794 #endif
   31795 
   31796 int
   31797 main ()
   31798 {
   31799 return $ac_func ();
   31800   ;
   31801   return 0;
   31802 }
   31803 _ACEOF
   31804 rm -f conftest.$ac_objext conftest$ac_exeext
   31805 if { (ac_try="$ac_link"
   31806 case "(($ac_try" in
   31807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   31808   *) ac_try_echo=$ac_try;;
   31809 esac
   31810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   31811   (eval "$ac_link") 2>conftest.er1
   31812   ac_status=$?
   31813   grep -v '^ *+' conftest.er1 >conftest.err
   31814   rm -f conftest.er1
   31815   cat conftest.err >&5
   31816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   31817   (exit $ac_status); } && {
   31818 	 test -z "$ac_c_werror_flag" ||
   31819 	 test ! -s conftest.err
   31820        } && test -s conftest$ac_exeext &&
   31821        $as_test_x conftest$ac_exeext; then
   31822   eval "$as_ac_var=yes"
   31823 else
   31824   echo "$as_me: failed program was:" >&5
   31825 sed 's/^/| /' conftest.$ac_ext >&5
   31826 
   31827 	eval "$as_ac_var=no"
   31828 fi
   31829 
   31830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   31831       conftest$ac_exeext conftest.$ac_ext
   31832 fi
   31833 ac_res=`eval echo '${'$as_ac_var'}'`
   31834 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   31835 echo "${ECHO_T}$ac_res" >&6; }
   31836 if test `eval echo '${'$as_ac_var'}'` = yes; then
   31837   cat >>confdefs.h <<_ACEOF
   31838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   31839 _ACEOF
   31840 
   31841 fi
   31842 done
   31843 
   31844 		LIBS="$save_LIBS"
   31845 	fi
   31846 
   31847 fi
   31848 
   31849 
   31850 
   31851 
   31852 # Check whether user wants Kerberos 5 support
   31853 KRB5_MSG="no"
   31854 
   31855 # Check whether --with-kerberos5 was given.
   31856 if test "${with_kerberos5+set}" = set; then
   31857   withval=$with_kerberos5;  if test "x$withval" != "xno" ; then
   31858 		if test "x$withval" = "xyes" ; then
   31859 			KRB5ROOT="/usr/local"
   31860 		else
   31861 			KRB5ROOT=${withval}
   31862 		fi
   31863 
   31864 
   31865 cat >>confdefs.h <<\_ACEOF
   31866 #define KRB5 1
   31867 _ACEOF
   31868 
   31869 		KRB5_MSG="yes"
   31870 
   31871 		# Extract the first word of "krb5-config", so it can be a program name with args.
   31872 set dummy krb5-config; ac_word=$2
   31873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   31874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   31875 if test "${ac_cv_path_KRB5CONF+set}" = set; then
   31876   echo $ECHO_N "(cached) $ECHO_C" >&6
   31877 else
   31878   case $KRB5CONF in
   31879   [\\/]* | ?:[\\/]*)
   31880   ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
   31881   ;;
   31882   *)
   31883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   31884 as_dummy="$KRB5ROOT/bin:$PATH"
   31885 for as_dir in $as_dummy
   31886 do
   31887   IFS=$as_save_IFS
   31888   test -z "$as_dir" && as_dir=.
   31889   for ac_exec_ext in '' $ac_executable_extensions; do
   31890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   31891     ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
   31892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   31893     break 2
   31894   fi
   31895 done
   31896 done
   31897 IFS=$as_save_IFS
   31898 
   31899   test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config"
   31900   ;;
   31901 esac
   31902 fi
   31903 KRB5CONF=$ac_cv_path_KRB5CONF
   31904 if test -n "$KRB5CONF"; then
   31905   { echo "$as_me:$LINENO: result: $KRB5CONF" >&5
   31906 echo "${ECHO_T}$KRB5CONF" >&6; }
   31907 else
   31908   { echo "$as_me:$LINENO: result: no" >&5
   31909 echo "${ECHO_T}no" >&6; }
   31910 fi
   31911 
   31912 
   31913 		if test -x $KRB5CONF ; then
   31914 			K5CFLAGS="`$KRB5CONF --cflags`"
   31915 			K5LIBS="`$KRB5CONF --libs`"
   31916 			CPPFLAGS="$CPPFLAGS $K5CFLAGS"
   31917 
   31918 			{ echo "$as_me:$LINENO: checking for gssapi support" >&5
   31919 echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6; }
   31920 			if $KRB5CONF | grep gssapi >/dev/null ; then
   31921 				{ echo "$as_me:$LINENO: result: yes" >&5
   31922 echo "${ECHO_T}yes" >&6; }
   31923 
   31924 cat >>confdefs.h <<\_ACEOF
   31925 #define GSSAPI 1
   31926 _ACEOF
   31927 
   31928 				GSSCFLAGS="`$KRB5CONF --cflags gssapi`"
   31929 				GSSLIBS="`$KRB5CONF --libs gssapi`"
   31930 				CPPFLAGS="$CPPFLAGS $GSSCFLAGS"
   31931 			else
   31932 				{ echo "$as_me:$LINENO: result: no" >&5
   31933 echo "${ECHO_T}no" >&6; }
   31934 			fi
   31935 			{ echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
   31936 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
   31937 			cat >conftest.$ac_ext <<_ACEOF
   31938 /* confdefs.h.  */
   31939 _ACEOF
   31940 cat confdefs.h >>conftest.$ac_ext
   31941 cat >>conftest.$ac_ext <<_ACEOF
   31942 /* end confdefs.h.  */
   31943  #include <krb5.h>
   31944 
   31945 int
   31946 main ()
   31947 {
   31948  char *tmp = heimdal_version;
   31949   ;
   31950   return 0;
   31951 }
   31952 _ACEOF
   31953 rm -f conftest.$ac_objext
   31954 if { (ac_try="$ac_compile"
   31955 case "(($ac_try" in
   31956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   31957   *) ac_try_echo=$ac_try;;
   31958 esac
   31959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   31960   (eval "$ac_compile") 2>conftest.er1
   31961   ac_status=$?
   31962   grep -v '^ *+' conftest.er1 >conftest.err
   31963   rm -f conftest.er1
   31964   cat conftest.err >&5
   31965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   31966   (exit $ac_status); } && {
   31967 	 test -z "$ac_c_werror_flag" ||
   31968 	 test ! -s conftest.err
   31969        } && test -s conftest.$ac_objext; then
   31970    { echo "$as_me:$LINENO: result: yes" >&5
   31971 echo "${ECHO_T}yes" >&6; }
   31972 
   31973 cat >>confdefs.h <<\_ACEOF
   31974 #define HEIMDAL 1
   31975 _ACEOF
   31976 
   31977 else
   31978   echo "$as_me: failed program was:" >&5
   31979 sed 's/^/| /' conftest.$ac_ext >&5
   31980 
   31981 	{ echo "$as_me:$LINENO: result: no" >&5
   31982 echo "${ECHO_T}no" >&6; }
   31983 
   31984 fi
   31985 
   31986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   31987 		else
   31988 			CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
   31989 			LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
   31990 			{ echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
   31991 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
   31992 			cat >conftest.$ac_ext <<_ACEOF
   31993 /* confdefs.h.  */
   31994 _ACEOF
   31995 cat confdefs.h >>conftest.$ac_ext
   31996 cat >>conftest.$ac_ext <<_ACEOF
   31997 /* end confdefs.h.  */
   31998  #include <krb5.h>
   31999 
   32000 int
   32001 main ()
   32002 {
   32003  char *tmp = heimdal_version;
   32004   ;
   32005   return 0;
   32006 }
   32007 _ACEOF
   32008 rm -f conftest.$ac_objext
   32009 if { (ac_try="$ac_compile"
   32010 case "(($ac_try" in
   32011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   32012   *) ac_try_echo=$ac_try;;
   32013 esac
   32014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   32015   (eval "$ac_compile") 2>conftest.er1
   32016   ac_status=$?
   32017   grep -v '^ *+' conftest.er1 >conftest.err
   32018   rm -f conftest.er1
   32019   cat conftest.err >&5
   32020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   32021   (exit $ac_status); } && {
   32022 	 test -z "$ac_c_werror_flag" ||
   32023 	 test ! -s conftest.err
   32024        } && test -s conftest.$ac_objext; then
   32025    { echo "$as_me:$LINENO: result: yes" >&5
   32026 echo "${ECHO_T}yes" >&6; }
   32027 					 cat >>confdefs.h <<\_ACEOF
   32028 #define HEIMDAL 1
   32029 _ACEOF
   32030 
   32031 					 K5LIBS="-lkrb5"
   32032 					 K5LIBS="$K5LIBS -lcom_err -lasn1"
   32033 					 { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5
   32034 echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; }
   32035 if test "${ac_cv_lib_roken_net_write+set}" = set; then
   32036   echo $ECHO_N "(cached) $ECHO_C" >&6
   32037 else
   32038   ac_check_lib_save_LIBS=$LIBS
   32039 LIBS="-lroken  $LIBS"
   32040 cat >conftest.$ac_ext <<_ACEOF
   32041 /* confdefs.h.  */
   32042 _ACEOF
   32043 cat confdefs.h >>conftest.$ac_ext
   32044 cat >>conftest.$ac_ext <<_ACEOF
   32045 /* end confdefs.h.  */
   32046 
   32047 /* Override any GCC internal prototype to avoid an error.
   32048    Use char because int might match the return type of a GCC
   32049    builtin and then its argument prototype would still apply.  */
   32050 #ifdef __cplusplus
   32051 extern "C"
   32052 #endif
   32053 char net_write ();
   32054 int
   32055 main ()
   32056 {
   32057 return net_write ();
   32058   ;
   32059   return 0;
   32060 }
   32061 _ACEOF
   32062 rm -f conftest.$ac_objext conftest$ac_exeext
   32063 if { (ac_try="$ac_link"
   32064 case "(($ac_try" in
   32065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   32066   *) ac_try_echo=$ac_try;;
   32067 esac
   32068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   32069   (eval "$ac_link") 2>conftest.er1
   32070   ac_status=$?
   32071   grep -v '^ *+' conftest.er1 >conftest.err
   32072   rm -f conftest.er1
   32073   cat conftest.err >&5
   32074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   32075   (exit $ac_status); } && {
   32076 	 test -z "$ac_c_werror_flag" ||
   32077 	 test ! -s conftest.err
   32078        } && test -s conftest$ac_exeext &&
   32079        $as_test_x conftest$ac_exeext; then
   32080   ac_cv_lib_roken_net_write=yes
   32081 else
   32082   echo "$as_me: failed program was:" >&5
   32083 sed 's/^/| /' conftest.$ac_ext >&5
   32084 
   32085 	ac_cv_lib_roken_net_write=no
   32086 fi
   32087 
   32088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   32089       conftest$ac_exeext conftest.$ac_ext
   32090 LIBS=$ac_check_lib_save_LIBS
   32091 fi
   32092 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5
   32093 echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6; }
   32094 if test $ac_cv_lib_roken_net_write = yes; then
   32095   K5LIBS="$K5LIBS -lroken"
   32096 fi
   32097 
   32098 					 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
   32099 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
   32100 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
   32101   echo $ECHO_N "(cached) $ECHO_C" >&6
   32102 else
   32103   ac_check_lib_save_LIBS=$LIBS
   32104 LIBS="-ldes  $LIBS"
   32105 cat >conftest.$ac_ext <<_ACEOF
   32106 /* confdefs.h.  */
   32107 _ACEOF
   32108 cat confdefs.h >>conftest.$ac_ext
   32109 cat >>conftest.$ac_ext <<_ACEOF
   32110 /* end confdefs.h.  */
   32111 
   32112 /* Override any GCC internal prototype to avoid an error.
   32113    Use char because int might match the return type of a GCC
   32114    builtin and then its argument prototype would still apply.  */
   32115 #ifdef __cplusplus
   32116 extern "C"
   32117 #endif
   32118 char des_cbc_encrypt ();
   32119 int
   32120 main ()
   32121 {
   32122 return des_cbc_encrypt ();
   32123   ;
   32124   return 0;
   32125 }
   32126 _ACEOF
   32127 rm -f conftest.$ac_objext conftest$ac_exeext
   32128 if { (ac_try="$ac_link"
   32129 case "(($ac_try" in
   32130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   32131   *) ac_try_echo=$ac_try;;
   32132 esac
   32133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   32134   (eval "$ac_link") 2>conftest.er1
   32135   ac_status=$?
   32136   grep -v '^ *+' conftest.er1 >conftest.err
   32137   rm -f conftest.er1
   32138   cat conftest.err >&5
   32139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   32140   (exit $ac_status); } && {
   32141 	 test -z "$ac_c_werror_flag" ||
   32142 	 test ! -s conftest.err
   32143        } && test -s conftest$ac_exeext &&
   32144        $as_test_x conftest$ac_exeext; then
   32145   ac_cv_lib_des_des_cbc_encrypt=yes
   32146 else
   32147   echo "$as_me: failed program was:" >&5
   32148 sed 's/^/| /' conftest.$ac_ext >&5
   32149 
   32150 	ac_cv_lib_des_des_cbc_encrypt=no
   32151 fi
   32152 
   32153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   32154       conftest$ac_exeext conftest.$ac_ext
   32155 LIBS=$ac_check_lib_save_LIBS
   32156 fi
   32157 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
   32158 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
   32159 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
   32160   K5LIBS="$K5LIBS -ldes"
   32161 fi
   32162 
   32163 
   32164 else
   32165   echo "$as_me: failed program was:" >&5
   32166 sed 's/^/| /' conftest.$ac_ext >&5
   32167 
   32168 	 { echo "$as_me:$LINENO: result: no" >&5
   32169 echo "${ECHO_T}no" >&6; }
   32170 					 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
   32171 
   32172 
   32173 fi
   32174 
   32175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   32176 			{ echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
   32177 echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
   32178 if test "${ac_cv_search_dn_expand+set}" = set; then
   32179   echo $ECHO_N "(cached) $ECHO_C" >&6
   32180 else
   32181   ac_func_search_save_LIBS=$LIBS
   32182 cat >conftest.$ac_ext <<_ACEOF
   32183 /* confdefs.h.  */
   32184 _ACEOF
   32185 cat confdefs.h >>conftest.$ac_ext
   32186 cat >>conftest.$ac_ext <<_ACEOF
   32187 /* end confdefs.h.  */
   32188 
   32189 /* Override any GCC internal prototype to avoid an error.
   32190    Use char because int might match the return type of a GCC
   32191    builtin and then its argument prototype would still apply.  */
   32192 #ifdef __cplusplus
   32193 extern "C"
   32194 #endif
   32195 char dn_expand ();
   32196 int
   32197 main ()
   32198 {
   32199 return dn_expand ();
   32200   ;
   32201   return 0;
   32202 }
   32203 _ACEOF
   32204 for ac_lib in '' resolv; do
   32205   if test -z "$ac_lib"; then
   32206     ac_res="none required"
   32207   else
   32208     ac_res=-l$ac_lib
   32209     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   32210   fi
   32211   rm -f conftest.$ac_objext conftest$ac_exeext
   32212 if { (ac_try="$ac_link"
   32213 case "(($ac_try" in
   32214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   32215   *) ac_try_echo=$ac_try;;
   32216 esac
   32217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   32218   (eval "$ac_link") 2>conftest.er1
   32219   ac_status=$?
   32220   grep -v '^ *+' conftest.er1 >conftest.err
   32221   rm -f conftest.er1
   32222   cat conftest.err >&5
   32223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   32224   (exit $ac_status); } && {
   32225 	 test -z "$ac_c_werror_flag" ||
   32226 	 test ! -s conftest.err
   32227        } && test -s conftest$ac_exeext &&
   32228        $as_test_x conftest$ac_exeext; then
   32229   ac_cv_search_dn_expand=$ac_res
   32230 else
   32231   echo "$as_me: failed program was:" >&5
   32232 sed 's/^/| /' conftest.$ac_ext >&5
   32233 
   32234 
   32235 fi
   32236 
   32237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   32238       conftest$ac_exeext
   32239   if test "${ac_cv_search_dn_expand+set}" = set; then
   32240   break
   32241 fi
   32242 done
   32243 if test "${ac_cv_search_dn_expand+set}" = set; then
   32244   :
   32245 else
   32246   ac_cv_search_dn_expand=no
   32247 fi
   32248 rm conftest.$ac_ext
   32249 LIBS=$ac_func_search_save_LIBS
   32250 fi
   32251 { echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
   32252 echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
   32253 ac_res=$ac_cv_search_dn_expand
   32254 if test "$ac_res" != no; then
   32255   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   32256 
   32257 fi
   32258 
   32259 
   32260 			{ echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
   32261 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; }
   32262 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
   32263   echo $ECHO_N "(cached) $ECHO_C" >&6
   32264 else
   32265   ac_check_lib_save_LIBS=$LIBS
   32266 LIBS="-lgssapi_krb5  $LIBS"
   32267 cat >conftest.$ac_ext <<_ACEOF
   32268 /* confdefs.h.  */
   32269 _ACEOF
   32270 cat confdefs.h >>conftest.$ac_ext
   32271 cat >>conftest.$ac_ext <<_ACEOF
   32272 /* end confdefs.h.  */
   32273 
   32274 /* Override any GCC internal prototype to avoid an error.
   32275    Use char because int might match the return type of a GCC
   32276    builtin and then its argument prototype would still apply.  */
   32277 #ifdef __cplusplus
   32278 extern "C"
   32279 #endif
   32280 char gss_init_sec_context ();
   32281 int
   32282 main ()
   32283 {
   32284 return gss_init_sec_context ();
   32285   ;
   32286   return 0;
   32287 }
   32288 _ACEOF
   32289 rm -f conftest.$ac_objext conftest$ac_exeext
   32290 if { (ac_try="$ac_link"
   32291 case "(($ac_try" in
   32292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   32293   *) ac_try_echo=$ac_try;;
   32294 esac
   32295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   32296   (eval "$ac_link") 2>conftest.er1
   32297   ac_status=$?
   32298   grep -v '^ *+' conftest.er1 >conftest.err
   32299   rm -f conftest.er1
   32300   cat conftest.err >&5
   32301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   32302   (exit $ac_status); } && {
   32303 	 test -z "$ac_c_werror_flag" ||
   32304 	 test ! -s conftest.err
   32305        } && test -s conftest$ac_exeext &&
   32306        $as_test_x conftest$ac_exeext; then
   32307   ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
   32308 else
   32309   echo "$as_me: failed program was:" >&5
   32310 sed 's/^/| /' conftest.$ac_ext >&5
   32311 
   32312 	ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
   32313 fi
   32314 
   32315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   32316       conftest$ac_exeext conftest.$ac_ext
   32317 LIBS=$ac_check_lib_save_LIBS
   32318 fi
   32319 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
   32320 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
   32321 if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
   32322    cat >>confdefs.h <<\_ACEOF
   32323 #define GSSAPI 1
   32324 _ACEOF
   32325 
   32326 				  GSSLIBS="-lgssapi_krb5"
   32327 else
   32328    { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
   32329 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; }
   32330 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
   32331   echo $ECHO_N "(cached) $ECHO_C" >&6
   32332 else
   32333   ac_check_lib_save_LIBS=$LIBS
   32334 LIBS="-lgssapi  $LIBS"
   32335 cat >conftest.$ac_ext <<_ACEOF
   32336 /* confdefs.h.  */
   32337 _ACEOF
   32338 cat confdefs.h >>conftest.$ac_ext
   32339 cat >>conftest.$ac_ext <<_ACEOF
   32340 /* end confdefs.h.  */
   32341 
   32342 /* Override any GCC internal prototype to avoid an error.
   32343    Use char because int might match the return type of a GCC
   32344    builtin and then its argument prototype would still apply.  */
   32345 #ifdef __cplusplus
   32346 extern "C"
   32347 #endif
   32348 char gss_init_sec_context ();
   32349 int
   32350 main ()
   32351 {
   32352 return gss_init_sec_context ();
   32353   ;
   32354   return 0;
   32355 }
   32356 _ACEOF
   32357 rm -f conftest.$ac_objext conftest$ac_exeext
   32358 if { (ac_try="$ac_link"
   32359 case "(($ac_try" in
   32360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   32361   *) ac_try_echo=$ac_try;;
   32362 esac
   32363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   32364   (eval "$ac_link") 2>conftest.er1
   32365   ac_status=$?
   32366   grep -v '^ *+' conftest.er1 >conftest.err
   32367   rm -f conftest.er1
   32368   cat conftest.err >&5
   32369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   32370   (exit $ac_status); } && {
   32371 	 test -z "$ac_c_werror_flag" ||
   32372 	 test ! -s conftest.err
   32373        } && test -s conftest$ac_exeext &&
   32374        $as_test_x conftest$ac_exeext; then
   32375   ac_cv_lib_gssapi_gss_init_sec_context=yes
   32376 else
   32377   echo "$as_me: failed program was:" >&5
   32378 sed 's/^/| /' conftest.$ac_ext >&5
   32379 
   32380 	ac_cv_lib_gssapi_gss_init_sec_context=no
   32381 fi
   32382 
   32383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   32384       conftest$ac_exeext conftest.$ac_ext
   32385 LIBS=$ac_check_lib_save_LIBS
   32386 fi
   32387 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
   32388 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
   32389 if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
   32390    cat >>confdefs.h <<\_ACEOF
   32391 #define GSSAPI 1
   32392 _ACEOF
   32393 
   32394 					  GSSLIBS="-lgssapi"
   32395 else
   32396    { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgss" >&5
   32397 echo $ECHO_N "checking for gss_init_sec_context in -lgss... $ECHO_C" >&6; }
   32398 if test "${ac_cv_lib_gss_gss_init_sec_context+set}" = set; then
   32399   echo $ECHO_N "(cached) $ECHO_C" >&6
   32400 else
   32401   ac_check_lib_save_LIBS=$LIBS
   32402 LIBS="-lgss  $LIBS"
   32403 cat >conftest.$ac_ext <<_ACEOF
   32404 /* confdefs.h.  */
   32405 _ACEOF
   32406 cat confdefs.h >>conftest.$ac_ext
   32407 cat >>conftest.$ac_ext <<_ACEOF
   32408 /* end confdefs.h.  */
   32409 
   32410 /* Override any GCC internal prototype to avoid an error.
   32411    Use char because int might match the return type of a GCC
   32412    builtin and then its argument prototype would still apply.  */
   32413 #ifdef __cplusplus
   32414 extern "C"
   32415 #endif
   32416 char gss_init_sec_context ();
   32417 int
   32418 main ()
   32419 {
   32420 return gss_init_sec_context ();
   32421   ;
   32422   return 0;
   32423 }
   32424 _ACEOF
   32425 rm -f conftest.$ac_objext conftest$ac_exeext
   32426 if { (ac_try="$ac_link"
   32427 case "(($ac_try" in
   32428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   32429   *) ac_try_echo=$ac_try;;
   32430 esac
   32431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   32432   (eval "$ac_link") 2>conftest.er1
   32433   ac_status=$?
   32434   grep -v '^ *+' conftest.er1 >conftest.err
   32435   rm -f conftest.er1
   32436   cat conftest.err >&5
   32437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   32438   (exit $ac_status); } && {
   32439 	 test -z "$ac_c_werror_flag" ||
   32440 	 test ! -s conftest.err
   32441        } && test -s conftest$ac_exeext &&
   32442        $as_test_x conftest$ac_exeext; then
   32443   ac_cv_lib_gss_gss_init_sec_context=yes
   32444 else
   32445   echo "$as_me: failed program was:" >&5
   32446 sed 's/^/| /' conftest.$ac_ext >&5
   32447 
   32448 	ac_cv_lib_gss_gss_init_sec_context=no
   32449 fi
   32450 
   32451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   32452       conftest$ac_exeext conftest.$ac_ext
   32453 LIBS=$ac_check_lib_save_LIBS
   32454 fi
   32455 { echo "$as_me:$LINENO: result: $ac_cv_lib_gss_gss_init_sec_context" >&5
   32456 echo "${ECHO_T}$ac_cv_lib_gss_gss_init_sec_context" >&6; }
   32457 if test $ac_cv_lib_gss_gss_init_sec_context = yes; then
   32458    cat >>confdefs.h <<\_ACEOF
   32459 #define GSSAPI 1
   32460 _ACEOF
   32461 
   32462 						  GSSLIBS="-lgss"
   32463 else
   32464   { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
   32465 echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
   32466 fi
   32467 
   32468 
   32469 fi
   32470 
   32471 
   32472 fi
   32473 
   32474 
   32475 			if test "${ac_cv_header_gssapi_h+set}" = set; then
   32476   { echo "$as_me:$LINENO: checking for gssapi.h" >&5
   32477 echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
   32478 if test "${ac_cv_header_gssapi_h+set}" = set; then
   32479   echo $ECHO_N "(cached) $ECHO_C" >&6
   32480 fi
   32481 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
   32482 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
   32483 else
   32484   # Is the header compilable?
   32485 { echo "$as_me:$LINENO: checking gssapi.h usability" >&5
   32486 echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; }
   32487 cat >conftest.$ac_ext <<_ACEOF
   32488 /* confdefs.h.  */
   32489 _ACEOF
   32490 cat confdefs.h >>conftest.$ac_ext
   32491 cat >>conftest.$ac_ext <<_ACEOF
   32492 /* end confdefs.h.  */
   32493 $ac_includes_default
   32494 #include <gssapi.h>
   32495 _ACEOF
   32496 rm -f conftest.$ac_objext
   32497 if { (ac_try="$ac_compile"
   32498 case "(($ac_try" in
   32499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   32500   *) ac_try_echo=$ac_try;;
   32501 esac
   32502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   32503   (eval "$ac_compile") 2>conftest.er1
   32504   ac_status=$?
   32505   grep -v '^ *+' conftest.er1 >conftest.err
   32506   rm -f conftest.er1
   32507   cat conftest.err >&5
   32508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   32509   (exit $ac_status); } && {
   32510 	 test -z "$ac_c_werror_flag" ||
   32511 	 test ! -s conftest.err
   32512        } && test -s conftest.$ac_objext; then
   32513   ac_header_compiler=yes
   32514 else
   32515   echo "$as_me: failed program was:" >&5
   32516 sed 's/^/| /' conftest.$ac_ext >&5
   32517 
   32518 	ac_header_compiler=no
   32519 fi
   32520 
   32521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   32522 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   32523 echo "${ECHO_T}$ac_header_compiler" >&6; }
   32524 
   32525 # Is the header present?
   32526 { echo "$as_me:$LINENO: checking gssapi.h presence" >&5
   32527 echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; }
   32528 cat >conftest.$ac_ext <<_ACEOF
   32529 /* confdefs.h.  */
   32530 _ACEOF
   32531 cat confdefs.h >>conftest.$ac_ext
   32532 cat >>conftest.$ac_ext <<_ACEOF
   32533 /* end confdefs.h.  */
   32534 #include <gssapi.h>
   32535 _ACEOF
   32536 if { (ac_try="$ac_cpp conftest.$ac_ext"
   32537 case "(($ac_try" in
   32538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   32539   *) ac_try_echo=$ac_try;;
   32540 esac
   32541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   32542   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   32543   ac_status=$?
   32544   grep -v '^ *+' conftest.er1 >conftest.err
   32545   rm -f conftest.er1
   32546   cat conftest.err >&5
   32547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   32548   (exit $ac_status); } >/dev/null && {
   32549 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   32550 	 test ! -s conftest.err
   32551        }; then
   32552   ac_header_preproc=yes
   32553 else
   32554   echo "$as_me: failed program was:" >&5
   32555 sed 's/^/| /' conftest.$ac_ext >&5
   32556 
   32557   ac_header_preproc=no
   32558 fi
   32559 
   32560 rm -f conftest.err conftest.$ac_ext
   32561 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   32562 echo "${ECHO_T}$ac_header_preproc" >&6; }
   32563 
   32564 # So?  What about this header?
   32565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   32566   yes:no: )
   32567     { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
   32568 echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   32569     { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
   32570 echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
   32571     ac_header_preproc=yes
   32572     ;;
   32573   no:yes:* )
   32574     { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
   32575 echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
   32576     { echo "$as_me:$LINENO: WARNING: gssapi.h:     check for missing prerequisite headers?" >&5
   32577 echo "$as_me: WARNING: gssapi.h:     check for missing prerequisite headers?" >&2;}
   32578     { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
   32579 echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
   32580     { echo "$as_me:$LINENO: WARNING: gssapi.h:     section \"Present But Cannot Be Compiled\"" >&5
   32581 echo "$as_me: WARNING: gssapi.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   32582     { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
   32583 echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
   32584     { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
   32585 echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
   32586     ( cat <<\_ASBOX
   32587 ## ------------------------------------------- ##
   32588 ## Report this to openssh-unix-dev (at] mindrot.org ##
   32589 ## ------------------------------------------- ##
   32590 _ASBOX
   32591      ) | sed "s/^/$as_me: WARNING:     /" >&2
   32592     ;;
   32593 esac
   32594 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
   32595 echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
   32596 if test "${ac_cv_header_gssapi_h+set}" = set; then
   32597   echo $ECHO_N "(cached) $ECHO_C" >&6
   32598 else
   32599   ac_cv_header_gssapi_h=$ac_header_preproc
   32600 fi
   32601 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
   32602 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
   32603 
   32604 fi
   32605 if test $ac_cv_header_gssapi_h = yes; then
   32606   :
   32607 else
   32608    unset ac_cv_header_gssapi_h
   32609 				  CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
   32610 
   32611 for ac_header in gssapi.h
   32612 do
   32613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   32614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   32615   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   32616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   32617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   32618   echo $ECHO_N "(cached) $ECHO_C" >&6
   32619 fi
   32620 ac_res=`eval echo '${'$as_ac_Header'}'`
   32621 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   32622 echo "${ECHO_T}$ac_res" >&6; }
   32623 else
   32624   # Is the header compilable?
   32625 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   32626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   32627 cat >conftest.$ac_ext <<_ACEOF
   32628 /* confdefs.h.  */
   32629 _ACEOF
   32630 cat confdefs.h >>conftest.$ac_ext
   32631 cat >>conftest.$ac_ext <<_ACEOF
   32632 /* end confdefs.h.  */
   32633 $ac_includes_default
   32634 #include <$ac_header>
   32635 _ACEOF
   32636 rm -f conftest.$ac_objext
   32637 if { (ac_try="$ac_compile"
   32638 case "(($ac_try" in
   32639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   32640   *) ac_try_echo=$ac_try;;
   32641 esac
   32642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   32643   (eval "$ac_compile") 2>conftest.er1
   32644   ac_status=$?
   32645   grep -v '^ *+' conftest.er1 >conftest.err
   32646   rm -f conftest.er1
   32647   cat conftest.err >&5
   32648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   32649   (exit $ac_status); } && {
   32650 	 test -z "$ac_c_werror_flag" ||
   32651 	 test ! -s conftest.err
   32652        } && test -s conftest.$ac_objext; then
   32653   ac_header_compiler=yes
   32654 else
   32655   echo "$as_me: failed program was:" >&5
   32656 sed 's/^/| /' conftest.$ac_ext >&5
   32657 
   32658 	ac_header_compiler=no
   32659 fi
   32660 
   32661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   32662 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   32663 echo "${ECHO_T}$ac_header_compiler" >&6; }
   32664 
   32665 # Is the header present?
   32666 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   32667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   32668 cat >conftest.$ac_ext <<_ACEOF
   32669 /* confdefs.h.  */
   32670 _ACEOF
   32671 cat confdefs.h >>conftest.$ac_ext
   32672 cat >>conftest.$ac_ext <<_ACEOF
   32673 /* end confdefs.h.  */
   32674 #include <$ac_header>
   32675 _ACEOF
   32676 if { (ac_try="$ac_cpp conftest.$ac_ext"
   32677 case "(($ac_try" in
   32678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   32679   *) ac_try_echo=$ac_try;;
   32680 esac
   32681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   32682   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   32683   ac_status=$?
   32684   grep -v '^ *+' conftest.er1 >conftest.err
   32685   rm -f conftest.er1
   32686   cat conftest.err >&5
   32687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   32688   (exit $ac_status); } >/dev/null && {
   32689 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   32690 	 test ! -s conftest.err
   32691        }; then
   32692   ac_header_preproc=yes
   32693 else
   32694   echo "$as_me: failed program was:" >&5
   32695 sed 's/^/| /' conftest.$ac_ext >&5
   32696 
   32697   ac_header_preproc=no
   32698 fi
   32699 
   32700 rm -f conftest.err conftest.$ac_ext
   32701 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   32702 echo "${ECHO_T}$ac_header_preproc" >&6; }
   32703 
   32704 # So?  What about this header?
   32705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   32706   yes:no: )
   32707     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   32708 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   32709     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   32710 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   32711     ac_header_preproc=yes
   32712     ;;
   32713   no:yes:* )
   32714     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   32715 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   32716     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   32717 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   32718     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   32719 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   32720     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   32721 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   32722     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   32723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   32724     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   32725 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   32726     ( cat <<\_ASBOX
   32727 ## ------------------------------------------- ##
   32728 ## Report this to openssh-unix-dev (at] mindrot.org ##
   32729 ## ------------------------------------------- ##
   32730 _ASBOX
   32731      ) | sed "s/^/$as_me: WARNING:     /" >&2
   32732     ;;
   32733 esac
   32734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   32735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   32736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   32737   echo $ECHO_N "(cached) $ECHO_C" >&6
   32738 else
   32739   eval "$as_ac_Header=\$ac_header_preproc"
   32740 fi
   32741 ac_res=`eval echo '${'$as_ac_Header'}'`
   32742 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   32743 echo "${ECHO_T}$ac_res" >&6; }
   32744 
   32745 fi
   32746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   32747   cat >>confdefs.h <<_ACEOF
   32748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   32749 _ACEOF
   32750 
   32751 else
   32752   { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
   32753 echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
   32754 
   32755 fi
   32756 
   32757 done
   32758 
   32759 
   32760 
   32761 fi
   32762 
   32763 
   32764 
   32765 			oldCPP="$CPPFLAGS"
   32766 			CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
   32767 			if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
   32768   { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
   32769 echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
   32770 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
   32771   echo $ECHO_N "(cached) $ECHO_C" >&6
   32772 fi
   32773 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
   32774 echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
   32775 else
   32776   # Is the header compilable?
   32777 { echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5
   32778 echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6; }
   32779 cat >conftest.$ac_ext <<_ACEOF
   32780 /* confdefs.h.  */
   32781 _ACEOF
   32782 cat confdefs.h >>conftest.$ac_ext
   32783 cat >>conftest.$ac_ext <<_ACEOF
   32784 /* end confdefs.h.  */
   32785 $ac_includes_default
   32786 #include <gssapi_krb5.h>
   32787 _ACEOF
   32788 rm -f conftest.$ac_objext
   32789 if { (ac_try="$ac_compile"
   32790 case "(($ac_try" in
   32791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   32792   *) ac_try_echo=$ac_try;;
   32793 esac
   32794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   32795   (eval "$ac_compile") 2>conftest.er1
   32796   ac_status=$?
   32797   grep -v '^ *+' conftest.er1 >conftest.err
   32798   rm -f conftest.er1
   32799   cat conftest.err >&5
   32800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   32801   (exit $ac_status); } && {
   32802 	 test -z "$ac_c_werror_flag" ||
   32803 	 test ! -s conftest.err
   32804        } && test -s conftest.$ac_objext; then
   32805   ac_header_compiler=yes
   32806 else
   32807   echo "$as_me: failed program was:" >&5
   32808 sed 's/^/| /' conftest.$ac_ext >&5
   32809 
   32810 	ac_header_compiler=no
   32811 fi
   32812 
   32813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   32814 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   32815 echo "${ECHO_T}$ac_header_compiler" >&6; }
   32816 
   32817 # Is the header present?
   32818 { echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5
   32819 echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6; }
   32820 cat >conftest.$ac_ext <<_ACEOF
   32821 /* confdefs.h.  */
   32822 _ACEOF
   32823 cat confdefs.h >>conftest.$ac_ext
   32824 cat >>conftest.$ac_ext <<_ACEOF
   32825 /* end confdefs.h.  */
   32826 #include <gssapi_krb5.h>
   32827 _ACEOF
   32828 if { (ac_try="$ac_cpp conftest.$ac_ext"
   32829 case "(($ac_try" in
   32830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   32831   *) ac_try_echo=$ac_try;;
   32832 esac
   32833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   32834   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   32835   ac_status=$?
   32836   grep -v '^ *+' conftest.er1 >conftest.err
   32837   rm -f conftest.er1
   32838   cat conftest.err >&5
   32839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   32840   (exit $ac_status); } >/dev/null && {
   32841 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   32842 	 test ! -s conftest.err
   32843        }; then
   32844   ac_header_preproc=yes
   32845 else
   32846   echo "$as_me: failed program was:" >&5
   32847 sed 's/^/| /' conftest.$ac_ext >&5
   32848 
   32849   ac_header_preproc=no
   32850 fi
   32851 
   32852 rm -f conftest.err conftest.$ac_ext
   32853 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   32854 echo "${ECHO_T}$ac_header_preproc" >&6; }
   32855 
   32856 # So?  What about this header?
   32857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   32858   yes:no: )
   32859     { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
   32860 echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
   32861     { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5
   32862 echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;}
   32863     ac_header_preproc=yes
   32864     ;;
   32865   no:yes:* )
   32866     { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5
   32867 echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;}
   32868     { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h:     check for missing prerequisite headers?" >&5
   32869 echo "$as_me: WARNING: gssapi_krb5.h:     check for missing prerequisite headers?" >&2;}
   32870     { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5
   32871 echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;}
   32872     { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
   32873 echo "$as_me: WARNING: gssapi_krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
   32874     { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5
   32875 echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;}
   32876     { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5
   32877 echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;}
   32878     ( cat <<\_ASBOX
   32879 ## ------------------------------------------- ##
   32880 ## Report this to openssh-unix-dev (at] mindrot.org ##
   32881 ## ------------------------------------------- ##
   32882 _ASBOX
   32883      ) | sed "s/^/$as_me: WARNING:     /" >&2
   32884     ;;
   32885 esac
   32886 { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
   32887 echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
   32888 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
   32889   echo $ECHO_N "(cached) $ECHO_C" >&6
   32890 else
   32891   ac_cv_header_gssapi_krb5_h=$ac_header_preproc
   32892 fi
   32893 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
   32894 echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
   32895 
   32896 fi
   32897 if test $ac_cv_header_gssapi_krb5_h = yes; then
   32898   :
   32899 else
   32900    CPPFLAGS="$oldCPP"
   32901 fi
   32902 
   32903 
   32904 
   32905 		fi
   32906 		if test ! -z "$need_dash_r" ; then
   32907 			LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
   32908 		fi
   32909 		if test ! -z "$blibpath" ; then
   32910 			blibpath="$blibpath:${KRB5ROOT}/lib"
   32911 		fi
   32912 
   32913 
   32914 
   32915 for ac_header in gssapi.h gssapi/gssapi.h
   32916 do
   32917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   32918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   32919   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   32920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   32921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   32922   echo $ECHO_N "(cached) $ECHO_C" >&6
   32923 fi
   32924 ac_res=`eval echo '${'$as_ac_Header'}'`
   32925 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   32926 echo "${ECHO_T}$ac_res" >&6; }
   32927 else
   32928   # Is the header compilable?
   32929 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   32930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   32931 cat >conftest.$ac_ext <<_ACEOF
   32932 /* confdefs.h.  */
   32933 _ACEOF
   32934 cat confdefs.h >>conftest.$ac_ext
   32935 cat >>conftest.$ac_ext <<_ACEOF
   32936 /* end confdefs.h.  */
   32937 $ac_includes_default
   32938 #include <$ac_header>
   32939 _ACEOF
   32940 rm -f conftest.$ac_objext
   32941 if { (ac_try="$ac_compile"
   32942 case "(($ac_try" in
   32943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   32944   *) ac_try_echo=$ac_try;;
   32945 esac
   32946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   32947   (eval "$ac_compile") 2>conftest.er1
   32948   ac_status=$?
   32949   grep -v '^ *+' conftest.er1 >conftest.err
   32950   rm -f conftest.er1
   32951   cat conftest.err >&5
   32952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   32953   (exit $ac_status); } && {
   32954 	 test -z "$ac_c_werror_flag" ||
   32955 	 test ! -s conftest.err
   32956        } && test -s conftest.$ac_objext; then
   32957   ac_header_compiler=yes
   32958 else
   32959   echo "$as_me: failed program was:" >&5
   32960 sed 's/^/| /' conftest.$ac_ext >&5
   32961 
   32962 	ac_header_compiler=no
   32963 fi
   32964 
   32965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   32966 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   32967 echo "${ECHO_T}$ac_header_compiler" >&6; }
   32968 
   32969 # Is the header present?
   32970 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   32971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   32972 cat >conftest.$ac_ext <<_ACEOF
   32973 /* confdefs.h.  */
   32974 _ACEOF
   32975 cat confdefs.h >>conftest.$ac_ext
   32976 cat >>conftest.$ac_ext <<_ACEOF
   32977 /* end confdefs.h.  */
   32978 #include <$ac_header>
   32979 _ACEOF
   32980 if { (ac_try="$ac_cpp conftest.$ac_ext"
   32981 case "(($ac_try" in
   32982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   32983   *) ac_try_echo=$ac_try;;
   32984 esac
   32985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   32986   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   32987   ac_status=$?
   32988   grep -v '^ *+' conftest.er1 >conftest.err
   32989   rm -f conftest.er1
   32990   cat conftest.err >&5
   32991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   32992   (exit $ac_status); } >/dev/null && {
   32993 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   32994 	 test ! -s conftest.err
   32995        }; then
   32996   ac_header_preproc=yes
   32997 else
   32998   echo "$as_me: failed program was:" >&5
   32999 sed 's/^/| /' conftest.$ac_ext >&5
   33000 
   33001   ac_header_preproc=no
   33002 fi
   33003 
   33004 rm -f conftest.err conftest.$ac_ext
   33005 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   33006 echo "${ECHO_T}$ac_header_preproc" >&6; }
   33007 
   33008 # So?  What about this header?
   33009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   33010   yes:no: )
   33011     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   33012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   33013     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   33014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   33015     ac_header_preproc=yes
   33016     ;;
   33017   no:yes:* )
   33018     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   33019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   33020     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   33021 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   33022     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   33023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   33024     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   33025 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   33026     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   33027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   33028     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   33029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   33030     ( cat <<\_ASBOX
   33031 ## ------------------------------------------- ##
   33032 ## Report this to openssh-unix-dev (at] mindrot.org ##
   33033 ## ------------------------------------------- ##
   33034 _ASBOX
   33035      ) | sed "s/^/$as_me: WARNING:     /" >&2
   33036     ;;
   33037 esac
   33038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   33039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   33040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   33041   echo $ECHO_N "(cached) $ECHO_C" >&6
   33042 else
   33043   eval "$as_ac_Header=\$ac_header_preproc"
   33044 fi
   33045 ac_res=`eval echo '${'$as_ac_Header'}'`
   33046 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   33047 echo "${ECHO_T}$ac_res" >&6; }
   33048 
   33049 fi
   33050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   33051   cat >>confdefs.h <<_ACEOF
   33052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   33053 _ACEOF
   33054 
   33055 fi
   33056 
   33057 done
   33058 
   33059 
   33060 
   33061 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
   33062 do
   33063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   33064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   33065   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   33066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   33067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   33068   echo $ECHO_N "(cached) $ECHO_C" >&6
   33069 fi
   33070 ac_res=`eval echo '${'$as_ac_Header'}'`
   33071 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   33072 echo "${ECHO_T}$ac_res" >&6; }
   33073 else
   33074   # Is the header compilable?
   33075 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   33076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   33077 cat >conftest.$ac_ext <<_ACEOF
   33078 /* confdefs.h.  */
   33079 _ACEOF
   33080 cat confdefs.h >>conftest.$ac_ext
   33081 cat >>conftest.$ac_ext <<_ACEOF
   33082 /* end confdefs.h.  */
   33083 $ac_includes_default
   33084 #include <$ac_header>
   33085 _ACEOF
   33086 rm -f conftest.$ac_objext
   33087 if { (ac_try="$ac_compile"
   33088 case "(($ac_try" in
   33089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   33090   *) ac_try_echo=$ac_try;;
   33091 esac
   33092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   33093   (eval "$ac_compile") 2>conftest.er1
   33094   ac_status=$?
   33095   grep -v '^ *+' conftest.er1 >conftest.err
   33096   rm -f conftest.er1
   33097   cat conftest.err >&5
   33098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   33099   (exit $ac_status); } && {
   33100 	 test -z "$ac_c_werror_flag" ||
   33101 	 test ! -s conftest.err
   33102        } && test -s conftest.$ac_objext; then
   33103   ac_header_compiler=yes
   33104 else
   33105   echo "$as_me: failed program was:" >&5
   33106 sed 's/^/| /' conftest.$ac_ext >&5
   33107 
   33108 	ac_header_compiler=no
   33109 fi
   33110 
   33111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   33112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   33113 echo "${ECHO_T}$ac_header_compiler" >&6; }
   33114 
   33115 # Is the header present?
   33116 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   33117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   33118 cat >conftest.$ac_ext <<_ACEOF
   33119 /* confdefs.h.  */
   33120 _ACEOF
   33121 cat confdefs.h >>conftest.$ac_ext
   33122 cat >>conftest.$ac_ext <<_ACEOF
   33123 /* end confdefs.h.  */
   33124 #include <$ac_header>
   33125 _ACEOF
   33126 if { (ac_try="$ac_cpp conftest.$ac_ext"
   33127 case "(($ac_try" in
   33128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   33129   *) ac_try_echo=$ac_try;;
   33130 esac
   33131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   33132   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   33133   ac_status=$?
   33134   grep -v '^ *+' conftest.er1 >conftest.err
   33135   rm -f conftest.er1
   33136   cat conftest.err >&5
   33137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   33138   (exit $ac_status); } >/dev/null && {
   33139 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   33140 	 test ! -s conftest.err
   33141        }; then
   33142   ac_header_preproc=yes
   33143 else
   33144   echo "$as_me: failed program was:" >&5
   33145 sed 's/^/| /' conftest.$ac_ext >&5
   33146 
   33147   ac_header_preproc=no
   33148 fi
   33149 
   33150 rm -f conftest.err conftest.$ac_ext
   33151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   33152 echo "${ECHO_T}$ac_header_preproc" >&6; }
   33153 
   33154 # So?  What about this header?
   33155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   33156   yes:no: )
   33157     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   33158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   33159     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   33160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   33161     ac_header_preproc=yes
   33162     ;;
   33163   no:yes:* )
   33164     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   33165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   33166     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   33167 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   33168     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   33169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   33170     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   33171 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   33172     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   33173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   33174     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   33175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   33176     ( cat <<\_ASBOX
   33177 ## ------------------------------------------- ##
   33178 ## Report this to openssh-unix-dev (at] mindrot.org ##
   33179 ## ------------------------------------------- ##
   33180 _ASBOX
   33181      ) | sed "s/^/$as_me: WARNING:     /" >&2
   33182     ;;
   33183 esac
   33184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   33185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   33186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   33187   echo $ECHO_N "(cached) $ECHO_C" >&6
   33188 else
   33189   eval "$as_ac_Header=\$ac_header_preproc"
   33190 fi
   33191 ac_res=`eval echo '${'$as_ac_Header'}'`
   33192 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   33193 echo "${ECHO_T}$ac_res" >&6; }
   33194 
   33195 fi
   33196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   33197   cat >>confdefs.h <<_ACEOF
   33198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   33199 _ACEOF
   33200 
   33201 fi
   33202 
   33203 done
   33204 
   33205 
   33206 
   33207 for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
   33208 do
   33209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   33210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   33211   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   33212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   33213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   33214   echo $ECHO_N "(cached) $ECHO_C" >&6
   33215 fi
   33216 ac_res=`eval echo '${'$as_ac_Header'}'`
   33217 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   33218 echo "${ECHO_T}$ac_res" >&6; }
   33219 else
   33220   # Is the header compilable?
   33221 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   33222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   33223 cat >conftest.$ac_ext <<_ACEOF
   33224 /* confdefs.h.  */
   33225 _ACEOF
   33226 cat confdefs.h >>conftest.$ac_ext
   33227 cat >>conftest.$ac_ext <<_ACEOF
   33228 /* end confdefs.h.  */
   33229 $ac_includes_default
   33230 #include <$ac_header>
   33231 _ACEOF
   33232 rm -f conftest.$ac_objext
   33233 if { (ac_try="$ac_compile"
   33234 case "(($ac_try" in
   33235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   33236   *) ac_try_echo=$ac_try;;
   33237 esac
   33238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   33239   (eval "$ac_compile") 2>conftest.er1
   33240   ac_status=$?
   33241   grep -v '^ *+' conftest.er1 >conftest.err
   33242   rm -f conftest.er1
   33243   cat conftest.err >&5
   33244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   33245   (exit $ac_status); } && {
   33246 	 test -z "$ac_c_werror_flag" ||
   33247 	 test ! -s conftest.err
   33248        } && test -s conftest.$ac_objext; then
   33249   ac_header_compiler=yes
   33250 else
   33251   echo "$as_me: failed program was:" >&5
   33252 sed 's/^/| /' conftest.$ac_ext >&5
   33253 
   33254 	ac_header_compiler=no
   33255 fi
   33256 
   33257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   33258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   33259 echo "${ECHO_T}$ac_header_compiler" >&6; }
   33260 
   33261 # Is the header present?
   33262 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   33263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   33264 cat >conftest.$ac_ext <<_ACEOF
   33265 /* confdefs.h.  */
   33266 _ACEOF
   33267 cat confdefs.h >>conftest.$ac_ext
   33268 cat >>conftest.$ac_ext <<_ACEOF
   33269 /* end confdefs.h.  */
   33270 #include <$ac_header>
   33271 _ACEOF
   33272 if { (ac_try="$ac_cpp conftest.$ac_ext"
   33273 case "(($ac_try" in
   33274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   33275   *) ac_try_echo=$ac_try;;
   33276 esac
   33277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   33278   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   33279   ac_status=$?
   33280   grep -v '^ *+' conftest.er1 >conftest.err
   33281   rm -f conftest.er1
   33282   cat conftest.err >&5
   33283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   33284   (exit $ac_status); } >/dev/null && {
   33285 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   33286 	 test ! -s conftest.err
   33287        }; then
   33288   ac_header_preproc=yes
   33289 else
   33290   echo "$as_me: failed program was:" >&5
   33291 sed 's/^/| /' conftest.$ac_ext >&5
   33292 
   33293   ac_header_preproc=no
   33294 fi
   33295 
   33296 rm -f conftest.err conftest.$ac_ext
   33297 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   33298 echo "${ECHO_T}$ac_header_preproc" >&6; }
   33299 
   33300 # So?  What about this header?
   33301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   33302   yes:no: )
   33303     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   33304 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   33305     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   33306 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   33307     ac_header_preproc=yes
   33308     ;;
   33309   no:yes:* )
   33310     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   33311 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   33312     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   33313 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   33314     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   33315 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   33316     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   33317 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   33318     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   33319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   33320     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   33321 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   33322     ( cat <<\_ASBOX
   33323 ## ------------------------------------------- ##
   33324 ## Report this to openssh-unix-dev (at] mindrot.org ##
   33325 ## ------------------------------------------- ##
   33326 _ASBOX
   33327      ) | sed "s/^/$as_me: WARNING:     /" >&2
   33328     ;;
   33329 esac
   33330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   33331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   33332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   33333   echo $ECHO_N "(cached) $ECHO_C" >&6
   33334 else
   33335   eval "$as_ac_Header=\$ac_header_preproc"
   33336 fi
   33337 ac_res=`eval echo '${'$as_ac_Header'}'`
   33338 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   33339 echo "${ECHO_T}$ac_res" >&6; }
   33340 
   33341 fi
   33342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   33343   cat >>confdefs.h <<_ACEOF
   33344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   33345 _ACEOF
   33346 
   33347 fi
   33348 
   33349 done
   33350 
   33351 
   33352 		{ echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5
   33353 echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6; }
   33354 if test "${ac_cv_search_k_hasafs+set}" = set; then
   33355   echo $ECHO_N "(cached) $ECHO_C" >&6
   33356 else
   33357   ac_func_search_save_LIBS=$LIBS
   33358 cat >conftest.$ac_ext <<_ACEOF
   33359 /* confdefs.h.  */
   33360 _ACEOF
   33361 cat confdefs.h >>conftest.$ac_ext
   33362 cat >>conftest.$ac_ext <<_ACEOF
   33363 /* end confdefs.h.  */
   33364 
   33365 /* Override any GCC internal prototype to avoid an error.
   33366    Use char because int might match the return type of a GCC
   33367    builtin and then its argument prototype would still apply.  */
   33368 #ifdef __cplusplus
   33369 extern "C"
   33370 #endif
   33371 char k_hasafs ();
   33372 int
   33373 main ()
   33374 {
   33375 return k_hasafs ();
   33376   ;
   33377   return 0;
   33378 }
   33379 _ACEOF
   33380 for ac_lib in '' kafs; do
   33381   if test -z "$ac_lib"; then
   33382     ac_res="none required"
   33383   else
   33384     ac_res=-l$ac_lib
   33385     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   33386   fi
   33387   rm -f conftest.$ac_objext conftest$ac_exeext
   33388 if { (ac_try="$ac_link"
   33389 case "(($ac_try" in
   33390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   33391   *) ac_try_echo=$ac_try;;
   33392 esac
   33393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   33394   (eval "$ac_link") 2>conftest.er1
   33395   ac_status=$?
   33396   grep -v '^ *+' conftest.er1 >conftest.err
   33397   rm -f conftest.er1
   33398   cat conftest.err >&5
   33399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   33400   (exit $ac_status); } && {
   33401 	 test -z "$ac_c_werror_flag" ||
   33402 	 test ! -s conftest.err
   33403        } && test -s conftest$ac_exeext &&
   33404        $as_test_x conftest$ac_exeext; then
   33405   ac_cv_search_k_hasafs=$ac_res
   33406 else
   33407   echo "$as_me: failed program was:" >&5
   33408 sed 's/^/| /' conftest.$ac_ext >&5
   33409 
   33410 
   33411 fi
   33412 
   33413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   33414       conftest$ac_exeext
   33415   if test "${ac_cv_search_k_hasafs+set}" = set; then
   33416   break
   33417 fi
   33418 done
   33419 if test "${ac_cv_search_k_hasafs+set}" = set; then
   33420   :
   33421 else
   33422   ac_cv_search_k_hasafs=no
   33423 fi
   33424 rm conftest.$ac_ext
   33425 LIBS=$ac_func_search_save_LIBS
   33426 fi
   33427 { echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5
   33428 echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6; }
   33429 ac_res=$ac_cv_search_k_hasafs
   33430 if test "$ac_res" != no; then
   33431   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   33432 
   33433 cat >>confdefs.h <<\_ACEOF
   33434 #define USE_AFS 1
   33435 _ACEOF
   33436 
   33437 fi
   33438 
   33439 
   33440 		{ echo "$as_me:$LINENO: checking whether GSS_C_NT_HOSTBASED_SERVICE is declared" >&5
   33441 echo $ECHO_N "checking whether GSS_C_NT_HOSTBASED_SERVICE is declared... $ECHO_C" >&6; }
   33442 if test "${ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE+set}" = set; then
   33443   echo $ECHO_N "(cached) $ECHO_C" >&6
   33444 else
   33445   cat >conftest.$ac_ext <<_ACEOF
   33446 /* confdefs.h.  */
   33447 _ACEOF
   33448 cat confdefs.h >>conftest.$ac_ext
   33449 cat >>conftest.$ac_ext <<_ACEOF
   33450 /* end confdefs.h.  */
   33451 
   33452 #ifdef HAVE_GSSAPI_H
   33453 # include <gssapi.h>
   33454 #elif defined(HAVE_GSSAPI_GSSAPI_H)
   33455 # include <gssapi/gssapi.h>
   33456 #endif
   33457 
   33458 #ifdef HAVE_GSSAPI_GENERIC_H
   33459 # include <gssapi_generic.h>
   33460 #elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H)
   33461 # include <gssapi/gssapi_generic.h>
   33462 #endif
   33463 
   33464 
   33465 int
   33466 main ()
   33467 {
   33468 #ifndef GSS_C_NT_HOSTBASED_SERVICE
   33469   (void) GSS_C_NT_HOSTBASED_SERVICE;
   33470 #endif
   33471 
   33472   ;
   33473   return 0;
   33474 }
   33475 _ACEOF
   33476 rm -f conftest.$ac_objext
   33477 if { (ac_try="$ac_compile"
   33478 case "(($ac_try" in
   33479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   33480   *) ac_try_echo=$ac_try;;
   33481 esac
   33482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   33483   (eval "$ac_compile") 2>conftest.er1
   33484   ac_status=$?
   33485   grep -v '^ *+' conftest.er1 >conftest.err
   33486   rm -f conftest.er1
   33487   cat conftest.err >&5
   33488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   33489   (exit $ac_status); } && {
   33490 	 test -z "$ac_c_werror_flag" ||
   33491 	 test ! -s conftest.err
   33492        } && test -s conftest.$ac_objext; then
   33493   ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE=yes
   33494 else
   33495   echo "$as_me: failed program was:" >&5
   33496 sed 's/^/| /' conftest.$ac_ext >&5
   33497 
   33498 	ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE=no
   33499 fi
   33500 
   33501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   33502 fi
   33503 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" >&5
   33504 echo "${ECHO_T}$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" >&6; }
   33505 if test $ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE = yes; then
   33506 
   33507 cat >>confdefs.h <<_ACEOF
   33508 #define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE 1
   33509 _ACEOF
   33510 
   33511 
   33512 else
   33513   cat >>confdefs.h <<_ACEOF
   33514 #define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE 0
   33515 _ACEOF
   33516 
   33517 
   33518 fi
   33519 
   33520 
   33521 		saved_LIBS="$LIBS"
   33522 		LIBS="$LIBS $K5LIBS"
   33523 
   33524 
   33525 
   33526 for ac_func in krb5_cc_new_unique krb5_get_error_message krb5_free_error_message
   33527 do
   33528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   33529 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   33530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   33531 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   33532   echo $ECHO_N "(cached) $ECHO_C" >&6
   33533 else
   33534   cat >conftest.$ac_ext <<_ACEOF
   33535 /* confdefs.h.  */
   33536 _ACEOF
   33537 cat confdefs.h >>conftest.$ac_ext
   33538 cat >>conftest.$ac_ext <<_ACEOF
   33539 /* end confdefs.h.  */
   33540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   33541    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   33542 #define $ac_func innocuous_$ac_func
   33543 
   33544 /* System header to define __stub macros and hopefully few prototypes,
   33545     which can conflict with char $ac_func (); below.
   33546     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   33547     <limits.h> exists even on freestanding compilers.  */
   33548 
   33549 #ifdef __STDC__
   33550 # include <limits.h>
   33551 #else
   33552 # include <assert.h>
   33553 #endif
   33554 
   33555 #undef $ac_func
   33556 
   33557 /* Override any GCC internal prototype to avoid an error.
   33558    Use char because int might match the return type of a GCC
   33559    builtin and then its argument prototype would still apply.  */
   33560 #ifdef __cplusplus
   33561 extern "C"
   33562 #endif
   33563 char $ac_func ();
   33564 /* The GNU C library defines this for functions which it implements
   33565     to always fail with ENOSYS.  Some functions are actually named
   33566     something starting with __ and the normal name is an alias.  */
   33567 #if defined __stub_$ac_func || defined __stub___$ac_func
   33568 choke me
   33569 #endif
   33570 
   33571 int
   33572 main ()
   33573 {
   33574 return $ac_func ();
   33575   ;
   33576   return 0;
   33577 }
   33578 _ACEOF
   33579 rm -f conftest.$ac_objext conftest$ac_exeext
   33580 if { (ac_try="$ac_link"
   33581 case "(($ac_try" in
   33582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   33583   *) ac_try_echo=$ac_try;;
   33584 esac
   33585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   33586   (eval "$ac_link") 2>conftest.er1
   33587   ac_status=$?
   33588   grep -v '^ *+' conftest.er1 >conftest.err
   33589   rm -f conftest.er1
   33590   cat conftest.err >&5
   33591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   33592   (exit $ac_status); } && {
   33593 	 test -z "$ac_c_werror_flag" ||
   33594 	 test ! -s conftest.err
   33595        } && test -s conftest$ac_exeext &&
   33596        $as_test_x conftest$ac_exeext; then
   33597   eval "$as_ac_var=yes"
   33598 else
   33599   echo "$as_me: failed program was:" >&5
   33600 sed 's/^/| /' conftest.$ac_ext >&5
   33601 
   33602 	eval "$as_ac_var=no"
   33603 fi
   33604 
   33605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   33606       conftest$ac_exeext conftest.$ac_ext
   33607 fi
   33608 ac_res=`eval echo '${'$as_ac_var'}'`
   33609 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   33610 echo "${ECHO_T}$ac_res" >&6; }
   33611 if test `eval echo '${'$as_ac_var'}'` = yes; then
   33612   cat >>confdefs.h <<_ACEOF
   33613 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   33614 _ACEOF
   33615 
   33616 fi
   33617 done
   33618 
   33619 		LIBS="$saved_LIBS"
   33620 
   33621 	fi
   33622 
   33623 
   33624 fi
   33625 
   33626 
   33627 
   33628 
   33629 # Looking for programs, paths and files
   33630 
   33631 PRIVSEP_PATH=/var/empty
   33632 
   33633 # Check whether --with-privsep-path was given.
   33634 if test "${with_privsep_path+set}" = set; then
   33635   withval=$with_privsep_path;
   33636 		if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
   33637 		    test "x${withval}" != "xyes"; then
   33638 			PRIVSEP_PATH=$withval
   33639 		fi
   33640 
   33641 
   33642 fi
   33643 
   33644 
   33645 
   33646 
   33647 # Check whether --with-xauth was given.
   33648 if test "${with_xauth+set}" = set; then
   33649   withval=$with_xauth;
   33650 		if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
   33651 		    test "x${withval}" != "xyes"; then
   33652 			xauth_path=$withval
   33653 		fi
   33654 
   33655 else
   33656 
   33657 		TestPath="$PATH"
   33658 		TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
   33659 		TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
   33660 		TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
   33661 		TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
   33662 		# Extract the first word of "xauth", so it can be a program name with args.
   33663 set dummy xauth; ac_word=$2
   33664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   33665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   33666 if test "${ac_cv_path_xauth_path+set}" = set; then
   33667   echo $ECHO_N "(cached) $ECHO_C" >&6
   33668 else
   33669   case $xauth_path in
   33670   [\\/]* | ?:[\\/]*)
   33671   ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
   33672   ;;
   33673   *)
   33674   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   33675 for as_dir in $TestPath
   33676 do
   33677   IFS=$as_save_IFS
   33678   test -z "$as_dir" && as_dir=.
   33679   for ac_exec_ext in '' $ac_executable_extensions; do
   33680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   33681     ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
   33682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   33683     break 2
   33684   fi
   33685 done
   33686 done
   33687 IFS=$as_save_IFS
   33688 
   33689   ;;
   33690 esac
   33691 fi
   33692 xauth_path=$ac_cv_path_xauth_path
   33693 if test -n "$xauth_path"; then
   33694   { echo "$as_me:$LINENO: result: $xauth_path" >&5
   33695 echo "${ECHO_T}$xauth_path" >&6; }
   33696 else
   33697   { echo "$as_me:$LINENO: result: no" >&5
   33698 echo "${ECHO_T}no" >&6; }
   33699 fi
   33700 
   33701 
   33702 		if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
   33703 			xauth_path="/usr/openwin/bin/xauth"
   33704 		fi
   33705 
   33706 
   33707 fi
   33708 
   33709 
   33710 STRIP_OPT=-s
   33711 # Check whether --enable-strip was given.
   33712 if test "${enable_strip+set}" = set; then
   33713   enableval=$enable_strip;
   33714 		if test "x$enableval" = "xno" ; then
   33715 			STRIP_OPT=
   33716 		fi
   33717 
   33718 
   33719 fi
   33720 
   33721 
   33722 
   33723 if test -z "$xauth_path" ; then
   33724 	XAUTH_PATH="undefined"
   33725 
   33726 else
   33727 
   33728 cat >>confdefs.h <<_ACEOF
   33729 #define XAUTH_PATH "$xauth_path"
   33730 _ACEOF
   33731 
   33732 	XAUTH_PATH=$xauth_path
   33733 
   33734 fi
   33735 
   33736 # Check for mail directory
   33737 
   33738 # Check whether --with-maildir was given.
   33739 if test "${with_maildir+set}" = set; then
   33740   withval=$with_maildir;
   33741 	if test "X$withval" != X  &&  test "x$withval" != xno  &&  \
   33742 	    test "x${withval}" != xyes; then
   33743 
   33744 cat >>confdefs.h <<_ACEOF
   33745 #define MAIL_DIRECTORY "$withval"
   33746 _ACEOF
   33747 
   33748 	    fi
   33749 
   33750 else
   33751 
   33752 	if test "X$maildir" != "X"; then
   33753 	    cat >>confdefs.h <<_ACEOF
   33754 #define MAIL_DIRECTORY "$maildir"
   33755 _ACEOF
   33756 
   33757 	else
   33758 	    { echo "$as_me:$LINENO: checking Discovering system mail directory" >&5
   33759 echo $ECHO_N "checking Discovering system mail directory... $ECHO_C" >&6; }
   33760 	    if test "$cross_compiling" = yes; then
   33761 
   33762 			{ echo "$as_me:$LINENO: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5
   33763 echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;}
   33764 
   33765 
   33766 else
   33767   cat >conftest.$ac_ext <<_ACEOF
   33768 /* confdefs.h.  */
   33769 _ACEOF
   33770 cat confdefs.h >>conftest.$ac_ext
   33771 cat >>conftest.$ac_ext <<_ACEOF
   33772 /* end confdefs.h.  */
   33773 
   33774 #include <stdio.h>
   33775 #include <string.h>
   33776 #ifdef HAVE_PATHS_H
   33777 #include <paths.h>
   33778 #endif
   33779 #ifdef HAVE_MAILLOCK_H
   33780 #include <maillock.h>
   33781 #endif
   33782 #define DATA "conftest.maildir"
   33783 
   33784 int
   33785 main ()
   33786 {
   33787 
   33788 	FILE *fd;
   33789 	int rc;
   33790 
   33791 	fd = fopen(DATA,"w");
   33792 	if(fd == NULL)
   33793 		exit(1);
   33794 
   33795 #if defined (_PATH_MAILDIR)
   33796 	if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0)
   33797 		exit(1);
   33798 #elif defined (MAILDIR)
   33799 	if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0)
   33800 		exit(1);
   33801 #elif defined (_PATH_MAIL)
   33802 	if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0)
   33803 		exit(1);
   33804 #else
   33805 	exit (2);
   33806 #endif
   33807 
   33808 	exit(0);
   33809 
   33810   ;
   33811   return 0;
   33812 }
   33813 _ACEOF
   33814 rm -f conftest$ac_exeext
   33815 if { (ac_try="$ac_link"
   33816 case "(($ac_try" in
   33817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   33818   *) ac_try_echo=$ac_try;;
   33819 esac
   33820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   33821   (eval "$ac_link") 2>&5
   33822   ac_status=$?
   33823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   33824   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   33825   { (case "(($ac_try" in
   33826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   33827   *) ac_try_echo=$ac_try;;
   33828 esac
   33829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   33830   (eval "$ac_try") 2>&5
   33831   ac_status=$?
   33832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   33833   (exit $ac_status); }; }; then
   33834 
   33835 	 	    maildir_what=`awk -F: '{print $1}' conftest.maildir`
   33836 		    maildir=`awk -F: '{print $2}' conftest.maildir \
   33837 			| sed 's|/$||'`
   33838 		    { echo "$as_me:$LINENO: result: Using: $maildir from $maildir_what" >&5
   33839 echo "${ECHO_T}Using: $maildir from $maildir_what" >&6; }
   33840 		    if test "x$maildir_what" != "x_PATH_MAILDIR"; then
   33841 			cat >>confdefs.h <<_ACEOF
   33842 #define MAIL_DIRECTORY "$maildir"
   33843 _ACEOF
   33844 
   33845 		    fi
   33846 
   33847 else
   33848   echo "$as_me: program exited with status $ac_status" >&5
   33849 echo "$as_me: failed program was:" >&5
   33850 sed 's/^/| /' conftest.$ac_ext >&5
   33851 
   33852 ( exit $ac_status )
   33853 
   33854 		    if test "X$ac_status" = "X2";then
   33855 # our test program didn't find it. Default to /var/spool/mail
   33856 			{ echo "$as_me:$LINENO: result: Using: default value of /var/spool/mail" >&5
   33857 echo "${ECHO_T}Using: default value of /var/spool/mail" >&6; }
   33858 			cat >>confdefs.h <<_ACEOF
   33859 #define MAIL_DIRECTORY "/var/spool/mail"
   33860 _ACEOF
   33861 
   33862 		     else
   33863 			{ echo "$as_me:$LINENO: result: *** not found ***" >&5
   33864 echo "${ECHO_T}*** not found ***" >&6; }
   33865 		     fi
   33866 
   33867 fi
   33868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   33869 fi
   33870 
   33871 
   33872 	fi
   33873 
   33874 
   33875 fi
   33876  # maildir
   33877 
   33878 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
   33879 	{ echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
   33880 echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
   33881 	disable_ptmx_check=yes
   33882 fi
   33883 if test -z "$no_dev_ptmx" ; then
   33884 	if test "x$disable_ptmx_check" != "xyes" ; then
   33885 		{ echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
   33886 echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; }
   33887 if test "${ac_cv_file___dev_ptmx_+set}" = set; then
   33888   echo $ECHO_N "(cached) $ECHO_C" >&6
   33889 else
   33890   test "$cross_compiling" = yes &&
   33891   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
   33892 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   33893    { (exit 1); exit 1; }; }
   33894 if test -r ""/dev/ptmx""; then
   33895   ac_cv_file___dev_ptmx_=yes
   33896 else
   33897   ac_cv_file___dev_ptmx_=no
   33898 fi
   33899 fi
   33900 { echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
   33901 echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; }
   33902 if test $ac_cv_file___dev_ptmx_ = yes; then
   33903 
   33904 
   33905 cat >>confdefs.h <<_ACEOF
   33906 #define HAVE_DEV_PTMX 1
   33907 _ACEOF
   33908 
   33909 				have_dev_ptmx=1
   33910 
   33911 
   33912 fi
   33913 
   33914 	fi
   33915 fi
   33916 
   33917 if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
   33918 	{ echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
   33919 echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; }
   33920 if test "${ac_cv_file___dev_ptc_+set}" = set; then
   33921   echo $ECHO_N "(cached) $ECHO_C" >&6
   33922 else
   33923   test "$cross_compiling" = yes &&
   33924   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
   33925 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   33926    { (exit 1); exit 1; }; }
   33927 if test -r ""/dev/ptc""; then
   33928   ac_cv_file___dev_ptc_=yes
   33929 else
   33930   ac_cv_file___dev_ptc_=no
   33931 fi
   33932 fi
   33933 { echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
   33934 echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; }
   33935 if test $ac_cv_file___dev_ptc_ = yes; then
   33936 
   33937 
   33938 cat >>confdefs.h <<_ACEOF
   33939 #define HAVE_DEV_PTS_AND_PTC 1
   33940 _ACEOF
   33941 
   33942 			have_dev_ptc=1
   33943 
   33944 
   33945 fi
   33946 
   33947 else
   33948 	{ echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5
   33949 echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
   33950 fi
   33951 
   33952 # Options from here on. Some of these are preset by platform above
   33953 
   33954 # Check whether --with-mantype was given.
   33955 if test "${with_mantype+set}" = set; then
   33956   withval=$with_mantype;
   33957 		case "$withval" in
   33958 		man|cat|doc)
   33959 			MANTYPE=$withval
   33960 			;;
   33961 		*)
   33962 			{ { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
   33963 echo "$as_me: error: invalid man type: $withval" >&2;}
   33964    { (exit 1); exit 1; }; }
   33965 			;;
   33966 		esac
   33967 
   33968 
   33969 fi
   33970 
   33971 if test -z "$MANTYPE"; then
   33972 	TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
   33973 	for ac_prog in nroff awf
   33974 do
   33975   # Extract the first word of "$ac_prog", so it can be a program name with args.
   33976 set dummy $ac_prog; ac_word=$2
   33977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   33978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   33979 if test "${ac_cv_path_NROFF+set}" = set; then
   33980   echo $ECHO_N "(cached) $ECHO_C" >&6
   33981 else
   33982   case $NROFF in
   33983   [\\/]* | ?:[\\/]*)
   33984   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
   33985   ;;
   33986   *)
   33987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   33988 for as_dir in $TestPath
   33989 do
   33990   IFS=$as_save_IFS
   33991   test -z "$as_dir" && as_dir=.
   33992   for ac_exec_ext in '' $ac_executable_extensions; do
   33993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   33994     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
   33995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   33996     break 2
   33997   fi
   33998 done
   33999 done
   34000 IFS=$as_save_IFS
   34001 
   34002   ;;
   34003 esac
   34004 fi
   34005 NROFF=$ac_cv_path_NROFF
   34006 if test -n "$NROFF"; then
   34007   { echo "$as_me:$LINENO: result: $NROFF" >&5
   34008 echo "${ECHO_T}$NROFF" >&6; }
   34009 else
   34010   { echo "$as_me:$LINENO: result: no" >&5
   34011 echo "${ECHO_T}no" >&6; }
   34012 fi
   34013 
   34014 
   34015   test -n "$NROFF" && break
   34016 done
   34017 test -n "$NROFF" || NROFF="/bin/false"
   34018 
   34019 	if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
   34020 		MANTYPE=doc
   34021 	elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
   34022 		MANTYPE=man
   34023 	else
   34024 		MANTYPE=cat
   34025 	fi
   34026 fi
   34027 
   34028 if test "$MANTYPE" = "doc"; then
   34029 	mansubdir=man;
   34030 else
   34031 	mansubdir=$MANTYPE;
   34032 fi
   34033 
   34034 
   34035 # Check whether to enable MD5 passwords
   34036 MD5_MSG="no"
   34037 
   34038 # Check whether --with-md5-passwords was given.
   34039 if test "${with_md5_passwords+set}" = set; then
   34040   withval=$with_md5_passwords;
   34041 		if test "x$withval" != "xno" ; then
   34042 
   34043 cat >>confdefs.h <<\_ACEOF
   34044 #define HAVE_MD5_PASSWORDS 1
   34045 _ACEOF
   34046 
   34047 			MD5_MSG="yes"
   34048 		fi
   34049 
   34050 
   34051 fi
   34052 
   34053 
   34054 # Whether to disable shadow password support
   34055 
   34056 # Check whether --with-shadow was given.
   34057 if test "${with_shadow+set}" = set; then
   34058   withval=$with_shadow;
   34059 		if test "x$withval" = "xno" ; then
   34060 			cat >>confdefs.h <<\_ACEOF
   34061 #define DISABLE_SHADOW 1
   34062 _ACEOF
   34063 
   34064 			disable_shadow=yes
   34065 		fi
   34066 
   34067 
   34068 fi
   34069 
   34070 
   34071 if test -z "$disable_shadow" ; then
   34072 	{ echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
   34073 echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6; }
   34074 	cat >conftest.$ac_ext <<_ACEOF
   34075 /* confdefs.h.  */
   34076 _ACEOF
   34077 cat confdefs.h >>conftest.$ac_ext
   34078 cat >>conftest.$ac_ext <<_ACEOF
   34079 /* end confdefs.h.  */
   34080 
   34081 #include <sys/types.h>
   34082 #include <shadow.h>
   34083 struct spwd sp;
   34084 
   34085 int
   34086 main ()
   34087 {
   34088  sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
   34089   ;
   34090   return 0;
   34091 }
   34092 _ACEOF
   34093 rm -f conftest.$ac_objext
   34094 if { (ac_try="$ac_compile"
   34095 case "(($ac_try" in
   34096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   34097   *) ac_try_echo=$ac_try;;
   34098 esac
   34099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   34100   (eval "$ac_compile") 2>conftest.er1
   34101   ac_status=$?
   34102   grep -v '^ *+' conftest.er1 >conftest.err
   34103   rm -f conftest.er1
   34104   cat conftest.err >&5
   34105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   34106   (exit $ac_status); } && {
   34107 	 test -z "$ac_c_werror_flag" ||
   34108 	 test ! -s conftest.err
   34109        } && test -s conftest.$ac_objext; then
   34110    sp_expire_available=yes
   34111 else
   34112   echo "$as_me: failed program was:" >&5
   34113 sed 's/^/| /' conftest.$ac_ext >&5
   34114 
   34115 
   34116 
   34117 fi
   34118 
   34119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   34120 
   34121 	if test "x$sp_expire_available" = "xyes" ; then
   34122 		{ echo "$as_me:$LINENO: result: yes" >&5
   34123 echo "${ECHO_T}yes" >&6; }
   34124 
   34125 cat >>confdefs.h <<\_ACEOF
   34126 #define HAS_SHADOW_EXPIRE 1
   34127 _ACEOF
   34128 
   34129 	else
   34130 		{ echo "$as_me:$LINENO: result: no" >&5
   34131 echo "${ECHO_T}no" >&6; }
   34132 	fi
   34133 fi
   34134 
   34135 # Use ip address instead of hostname in $DISPLAY
   34136 if test ! -z "$IPADDR_IN_DISPLAY" ; then
   34137 	DISPLAY_HACK_MSG="yes"
   34138 
   34139 cat >>confdefs.h <<\_ACEOF
   34140 #define IPADDR_IN_DISPLAY 1
   34141 _ACEOF
   34142 
   34143 else
   34144 	DISPLAY_HACK_MSG="no"
   34145 
   34146 # Check whether --with-ipaddr-display was given.
   34147 if test "${with_ipaddr_display+set}" = set; then
   34148   withval=$with_ipaddr_display;
   34149 			if test "x$withval" != "xno" ; then
   34150 				cat >>confdefs.h <<\_ACEOF
   34151 #define IPADDR_IN_DISPLAY 1
   34152 _ACEOF
   34153 
   34154 				DISPLAY_HACK_MSG="yes"
   34155 			fi
   34156 
   34157 
   34158 fi
   34159 
   34160 fi
   34161 
   34162 # check for /etc/default/login and use it if present.
   34163 # Check whether --enable-etc-default-login was given.
   34164 if test "${enable_etc_default_login+set}" = set; then
   34165   enableval=$enable_etc_default_login;  if test "x$enableval" = "xno"; then
   34166 		{ echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5
   34167 echo "$as_me: /etc/default/login handling disabled" >&6;}
   34168 		etc_default_login=no
   34169 	  else
   34170 		etc_default_login=yes
   34171 	  fi
   34172 else
   34173    if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
   34174 	  then
   34175 		{ echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5
   34176 echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
   34177 		etc_default_login=no
   34178 	  else
   34179 		etc_default_login=yes
   34180 	  fi
   34181 
   34182 fi
   34183 
   34184 
   34185 if test "x$etc_default_login" != "xno"; then
   34186 	{ echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5
   34187 echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6; }
   34188 if test "${ac_cv_file___etc_default_login_+set}" = set; then
   34189   echo $ECHO_N "(cached) $ECHO_C" >&6
   34190 else
   34191   test "$cross_compiling" = yes &&
   34192   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
   34193 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   34194    { (exit 1); exit 1; }; }
   34195 if test -r ""/etc/default/login""; then
   34196   ac_cv_file___etc_default_login_=yes
   34197 else
   34198   ac_cv_file___etc_default_login_=no
   34199 fi
   34200 fi
   34201 { echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5
   34202 echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6; }
   34203 if test $ac_cv_file___etc_default_login_ = yes; then
   34204    external_path_file=/etc/default/login
   34205 fi
   34206 
   34207 	if test "x$external_path_file" = "x/etc/default/login"; then
   34208 
   34209 cat >>confdefs.h <<\_ACEOF
   34210 #define HAVE_ETC_DEFAULT_LOGIN 1
   34211 _ACEOF
   34212 
   34213 	fi
   34214 fi
   34215 
   34216 if test $ac_cv_func_login_getcapbool = "yes" && \
   34217 	test $ac_cv_header_login_cap_h = "yes" ; then
   34218 	external_path_file=/etc/login.conf
   34219 fi
   34220 
   34221 # Whether to mess with the default path
   34222 SERVER_PATH_MSG="(default)"
   34223 
   34224 # Check whether --with-default-path was given.
   34225 if test "${with_default_path+set}" = set; then
   34226   withval=$with_default_path;
   34227 		if test "x$external_path_file" = "x/etc/login.conf" ; then
   34228 			{ echo "$as_me:$LINENO: WARNING:
   34229 --with-default-path=PATH has no effect on this system.
   34230 Edit /etc/login.conf instead." >&5
   34231 echo "$as_me: WARNING:
   34232 --with-default-path=PATH has no effect on this system.
   34233 Edit /etc/login.conf instead." >&2;}
   34234 		elif test "x$withval" != "xno" ; then
   34235 			if test ! -z "$external_path_file" ; then
   34236 				{ echo "$as_me:$LINENO: WARNING:
   34237 --with-default-path=PATH will only be used if PATH is not defined in
   34238 $external_path_file ." >&5
   34239 echo "$as_me: WARNING:
   34240 --with-default-path=PATH will only be used if PATH is not defined in
   34241 $external_path_file ." >&2;}
   34242 			fi
   34243 			user_path="$withval"
   34244 			SERVER_PATH_MSG="$withval"
   34245 		fi
   34246 
   34247 else
   34248    if test "x$external_path_file" = "x/etc/login.conf" ; then
   34249 		{ echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
   34250 echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
   34251 	else
   34252 		if test ! -z "$external_path_file" ; then
   34253 			{ echo "$as_me:$LINENO: WARNING:
   34254 If PATH is defined in $external_path_file, ensure the path to scp is included,
   34255 otherwise scp will not work." >&5
   34256 echo "$as_me: WARNING:
   34257 If PATH is defined in $external_path_file, ensure the path to scp is included,
   34258 otherwise scp will not work." >&2;}
   34259 		fi
   34260 		if test "$cross_compiling" = yes; then
   34261    user_path="/usr/bin:/bin:/usr/sbin:/sbin"
   34262 
   34263 else
   34264   cat >conftest.$ac_ext <<_ACEOF
   34265 /* confdefs.h.  */
   34266 _ACEOF
   34267 cat confdefs.h >>conftest.$ac_ext
   34268 cat >>conftest.$ac_ext <<_ACEOF
   34269 /* end confdefs.h.  */
   34270 
   34271 /* find out what STDPATH is */
   34272 #include <stdio.h>
   34273 #ifdef HAVE_PATHS_H
   34274 # include <paths.h>
   34275 #endif
   34276 #ifndef _PATH_STDPATH
   34277 # ifdef _PATH_USERPATH	/* Irix */
   34278 #  define _PATH_STDPATH _PATH_USERPATH
   34279 # else
   34280 #  define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
   34281 # endif
   34282 #endif
   34283 #include <sys/types.h>
   34284 #include <sys/stat.h>
   34285 #include <fcntl.h>
   34286 #define DATA "conftest.stdpath"
   34287 
   34288 int
   34289 main ()
   34290 {
   34291 
   34292 	FILE *fd;
   34293 	int rc;
   34294 
   34295 	fd = fopen(DATA,"w");
   34296 	if(fd == NULL)
   34297 		exit(1);
   34298 
   34299 	if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
   34300 		exit(1);
   34301 
   34302 	exit(0);
   34303 
   34304   ;
   34305   return 0;
   34306 }
   34307 _ACEOF
   34308 rm -f conftest$ac_exeext
   34309 if { (ac_try="$ac_link"
   34310 case "(($ac_try" in
   34311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   34312   *) ac_try_echo=$ac_try;;
   34313 esac
   34314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   34315   (eval "$ac_link") 2>&5
   34316   ac_status=$?
   34317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   34318   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   34319   { (case "(($ac_try" in
   34320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   34321   *) ac_try_echo=$ac_try;;
   34322 esac
   34323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   34324   (eval "$ac_try") 2>&5
   34325   ac_status=$?
   34326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   34327   (exit $ac_status); }; }; then
   34328    user_path=`cat conftest.stdpath`
   34329 else
   34330   echo "$as_me: program exited with status $ac_status" >&5
   34331 echo "$as_me: failed program was:" >&5
   34332 sed 's/^/| /' conftest.$ac_ext >&5
   34333 
   34334 ( exit $ac_status )
   34335  user_path="/usr/bin:/bin:/usr/sbin:/sbin"
   34336 fi
   34337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   34338 fi
   34339 
   34340 
   34341 # make sure $bindir is in USER_PATH so scp will work
   34342 		t_bindir="${bindir}"
   34343 		while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do
   34344 			t_bindir=`eval echo ${t_bindir}`
   34345 			case $t_bindir in
   34346 				NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
   34347 			esac
   34348 			case $t_bindir in
   34349 				NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
   34350 			esac
   34351 		done
   34352 		echo $user_path | grep ":$t_bindir"  > /dev/null 2>&1
   34353 		if test $? -ne 0  ; then
   34354 			echo $user_path | grep "^$t_bindir"  > /dev/null 2>&1
   34355 			if test $? -ne 0  ; then
   34356 				user_path=$user_path:$t_bindir
   34357 				{ echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
   34358 echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6; }
   34359 			fi
   34360 		fi
   34361 	fi
   34362 
   34363 fi
   34364 
   34365 if test "x$external_path_file" != "x/etc/login.conf" ; then
   34366 
   34367 cat >>confdefs.h <<_ACEOF
   34368 #define USER_PATH "$user_path"
   34369 _ACEOF
   34370 
   34371 
   34372 fi
   34373 
   34374 # Set superuser path separately to user path
   34375 
   34376 # Check whether --with-superuser-path was given.
   34377 if test "${with_superuser_path+set}" = set; then
   34378   withval=$with_superuser_path;
   34379 		if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
   34380 		    test "x${withval}" != "xyes"; then
   34381 
   34382 cat >>confdefs.h <<_ACEOF
   34383 #define SUPERUSER_PATH "$withval"
   34384 _ACEOF
   34385 
   34386 			superuser_path=$withval
   34387 		fi
   34388 
   34389 
   34390 fi
   34391 
   34392 
   34393 
   34394 { echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
   34395 echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6; }
   34396 IPV4_IN6_HACK_MSG="no"
   34397 
   34398 # Check whether --with-4in6 was given.
   34399 if test "${with_4in6+set}" = set; then
   34400   withval=$with_4in6;
   34401 		if test "x$withval" != "xno" ; then
   34402 			{ echo "$as_me:$LINENO: result: yes" >&5
   34403 echo "${ECHO_T}yes" >&6; }
   34404 
   34405 cat >>confdefs.h <<\_ACEOF
   34406 #define IPV4_IN_IPV6 1
   34407 _ACEOF
   34408 
   34409 			IPV4_IN6_HACK_MSG="yes"
   34410 		else
   34411 			{ echo "$as_me:$LINENO: result: no" >&5
   34412 echo "${ECHO_T}no" >&6; }
   34413 		fi
   34414 
   34415 else
   34416 
   34417 		if test "x$inet6_default_4in6" = "xyes"; then
   34418 			{ echo "$as_me:$LINENO: result: yes (default)" >&5
   34419 echo "${ECHO_T}yes (default)" >&6; }
   34420 			cat >>confdefs.h <<\_ACEOF
   34421 #define IPV4_IN_IPV6 1
   34422 _ACEOF
   34423 
   34424 			IPV4_IN6_HACK_MSG="yes"
   34425 		else
   34426 			{ echo "$as_me:$LINENO: result: no (default)" >&5
   34427 echo "${ECHO_T}no (default)" >&6; }
   34428 		fi
   34429 
   34430 
   34431 fi
   34432 
   34433 
   34434 # Whether to enable BSD auth support
   34435 BSD_AUTH_MSG=no
   34436 
   34437 # Check whether --with-bsd-auth was given.
   34438 if test "${with_bsd_auth+set}" = set; then
   34439   withval=$with_bsd_auth;
   34440 		if test "x$withval" != "xno" ; then
   34441 
   34442 cat >>confdefs.h <<\_ACEOF
   34443 #define BSD_AUTH 1
   34444 _ACEOF
   34445 
   34446 			BSD_AUTH_MSG=yes
   34447 		fi
   34448 
   34449 
   34450 fi
   34451 
   34452 
   34453 # Where to place sshd.pid
   34454 piddir=/var/run
   34455 # make sure the directory exists
   34456 if test ! -d $piddir ; then
   34457 	piddir=`eval echo ${sysconfdir}`
   34458 	case $piddir in
   34459 		NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
   34460 	esac
   34461 fi
   34462 
   34463 
   34464 # Check whether --with-pid-dir was given.
   34465 if test "${with_pid_dir+set}" = set; then
   34466   withval=$with_pid_dir;
   34467 		if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
   34468 		    test "x${withval}" != "xyes"; then
   34469 			piddir=$withval
   34470 			if test ! -d $piddir ; then
   34471 			{ echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
   34472 echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
   34473 			fi
   34474 		fi
   34475 
   34476 
   34477 fi
   34478 
   34479 
   34480 
   34481 cat >>confdefs.h <<_ACEOF
   34482 #define _PATH_SSH_PIDDIR "$piddir"
   34483 _ACEOF
   34484 
   34485 
   34486 
   34487 # Check whether --enable-lastlog was given.
   34488 if test "${enable_lastlog+set}" = set; then
   34489   enableval=$enable_lastlog;
   34490 		if test "x$enableval" = "xno" ; then
   34491 			cat >>confdefs.h <<\_ACEOF
   34492 #define DISABLE_LASTLOG 1
   34493 _ACEOF
   34494 
   34495 		fi
   34496 
   34497 
   34498 fi
   34499 
   34500 # Check whether --enable-utmp was given.
   34501 if test "${enable_utmp+set}" = set; then
   34502   enableval=$enable_utmp;
   34503 		if test "x$enableval" = "xno" ; then
   34504 			cat >>confdefs.h <<\_ACEOF
   34505 #define DISABLE_UTMP 1
   34506 _ACEOF
   34507 
   34508 		fi
   34509 
   34510 
   34511 fi
   34512 
   34513 # Check whether --enable-utmpx was given.
   34514 if test "${enable_utmpx+set}" = set; then
   34515   enableval=$enable_utmpx;
   34516 		if test "x$enableval" = "xno" ; then
   34517 
   34518 cat >>confdefs.h <<\_ACEOF
   34519 #define DISABLE_UTMPX 1
   34520 _ACEOF
   34521 
   34522 		fi
   34523 
   34524 
   34525 fi
   34526 
   34527 # Check whether --enable-wtmp was given.
   34528 if test "${enable_wtmp+set}" = set; then
   34529   enableval=$enable_wtmp;
   34530 		if test "x$enableval" = "xno" ; then
   34531 			cat >>confdefs.h <<\_ACEOF
   34532 #define DISABLE_WTMP 1
   34533 _ACEOF
   34534 
   34535 		fi
   34536 
   34537 
   34538 fi
   34539 
   34540 # Check whether --enable-wtmpx was given.
   34541 if test "${enable_wtmpx+set}" = set; then
   34542   enableval=$enable_wtmpx;
   34543 		if test "x$enableval" = "xno" ; then
   34544 
   34545 cat >>confdefs.h <<\_ACEOF
   34546 #define DISABLE_WTMPX 1
   34547 _ACEOF
   34548 
   34549 		fi
   34550 
   34551 
   34552 fi
   34553 
   34554 # Check whether --enable-libutil was given.
   34555 if test "${enable_libutil+set}" = set; then
   34556   enableval=$enable_libutil;
   34557 		if test "x$enableval" = "xno" ; then
   34558 			cat >>confdefs.h <<\_ACEOF
   34559 #define DISABLE_LOGIN 1
   34560 _ACEOF
   34561 
   34562 		fi
   34563 
   34564 
   34565 fi
   34566 
   34567 # Check whether --enable-pututline was given.
   34568 if test "${enable_pututline+set}" = set; then
   34569   enableval=$enable_pututline;
   34570 		if test "x$enableval" = "xno" ; then
   34571 
   34572 cat >>confdefs.h <<\_ACEOF
   34573 #define DISABLE_PUTUTLINE 1
   34574 _ACEOF
   34575 
   34576 		fi
   34577 
   34578 
   34579 fi
   34580 
   34581 # Check whether --enable-pututxline was given.
   34582 if test "${enable_pututxline+set}" = set; then
   34583   enableval=$enable_pututxline;
   34584 		if test "x$enableval" = "xno" ; then
   34585 
   34586 cat >>confdefs.h <<\_ACEOF
   34587 #define DISABLE_PUTUTXLINE 1
   34588 _ACEOF
   34589 
   34590 		fi
   34591 
   34592 
   34593 fi
   34594 
   34595 
   34596 # Check whether --with-lastlog was given.
   34597 if test "${with_lastlog+set}" = set; then
   34598   withval=$with_lastlog;
   34599 		if test "x$withval" = "xno" ; then
   34600 			cat >>confdefs.h <<\_ACEOF
   34601 #define DISABLE_LASTLOG 1
   34602 _ACEOF
   34603 
   34604 		elif test -n "$withval"  &&  test "x${withval}" != "xyes"; then
   34605 			conf_lastlog_location=$withval
   34606 		fi
   34607 
   34608 
   34609 fi
   34610 
   34611 
   34612 
   34613 { echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
   34614 echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6; }
   34615 cat >conftest.$ac_ext <<_ACEOF
   34616 /* confdefs.h.  */
   34617 _ACEOF
   34618 cat confdefs.h >>conftest.$ac_ext
   34619 cat >>conftest.$ac_ext <<_ACEOF
   34620 /* end confdefs.h.  */
   34621 
   34622 #include <sys/types.h>
   34623 #include <utmp.h>
   34624 #ifdef HAVE_LASTLOG_H
   34625 #  include <lastlog.h>
   34626 #endif
   34627 #ifdef HAVE_PATHS_H
   34628 #  include <paths.h>
   34629 #endif
   34630 #ifdef HAVE_LOGIN_H
   34631 # include <login.h>
   34632 #endif
   34633 
   34634 int
   34635 main ()
   34636 {
   34637  char *lastlog = LASTLOG_FILE;
   34638   ;
   34639   return 0;
   34640 }
   34641 _ACEOF
   34642 rm -f conftest.$ac_objext
   34643 if { (ac_try="$ac_compile"
   34644 case "(($ac_try" in
   34645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   34646   *) ac_try_echo=$ac_try;;
   34647 esac
   34648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   34649   (eval "$ac_compile") 2>conftest.er1
   34650   ac_status=$?
   34651   grep -v '^ *+' conftest.er1 >conftest.err
   34652   rm -f conftest.er1
   34653   cat conftest.err >&5
   34654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   34655   (exit $ac_status); } && {
   34656 	 test -z "$ac_c_werror_flag" ||
   34657 	 test ! -s conftest.err
   34658        } && test -s conftest.$ac_objext; then
   34659    { echo "$as_me:$LINENO: result: yes" >&5
   34660 echo "${ECHO_T}yes" >&6; }
   34661 else
   34662   echo "$as_me: failed program was:" >&5
   34663 sed 's/^/| /' conftest.$ac_ext >&5
   34664 
   34665 
   34666 		{ echo "$as_me:$LINENO: result: no" >&5
   34667 echo "${ECHO_T}no" >&6; }
   34668 		{ echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
   34669 echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; }
   34670 		cat >conftest.$ac_ext <<_ACEOF
   34671 /* confdefs.h.  */
   34672 _ACEOF
   34673 cat confdefs.h >>conftest.$ac_ext
   34674 cat >>conftest.$ac_ext <<_ACEOF
   34675 /* end confdefs.h.  */
   34676 
   34677 #include <sys/types.h>
   34678 #include <utmp.h>
   34679 #ifdef HAVE_LASTLOG_H
   34680 #  include <lastlog.h>
   34681 #endif
   34682 #ifdef HAVE_PATHS_H
   34683 #  include <paths.h>
   34684 #endif
   34685 
   34686 int
   34687 main ()
   34688 {
   34689  char *lastlog = _PATH_LASTLOG;
   34690   ;
   34691   return 0;
   34692 }
   34693 _ACEOF
   34694 rm -f conftest.$ac_objext
   34695 if { (ac_try="$ac_compile"
   34696 case "(($ac_try" in
   34697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   34698   *) ac_try_echo=$ac_try;;
   34699 esac
   34700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   34701   (eval "$ac_compile") 2>conftest.er1
   34702   ac_status=$?
   34703   grep -v '^ *+' conftest.er1 >conftest.err
   34704   rm -f conftest.er1
   34705   cat conftest.err >&5
   34706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   34707   (exit $ac_status); } && {
   34708 	 test -z "$ac_c_werror_flag" ||
   34709 	 test ! -s conftest.err
   34710        } && test -s conftest.$ac_objext; then
   34711    { echo "$as_me:$LINENO: result: yes" >&5
   34712 echo "${ECHO_T}yes" >&6; }
   34713 else
   34714   echo "$as_me: failed program was:" >&5
   34715 sed 's/^/| /' conftest.$ac_ext >&5
   34716 
   34717 
   34718 			{ echo "$as_me:$LINENO: result: no" >&5
   34719 echo "${ECHO_T}no" >&6; }
   34720 			system_lastlog_path=no
   34721 
   34722 fi
   34723 
   34724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   34725 
   34726 fi
   34727 
   34728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   34729 
   34730 if test -z "$conf_lastlog_location"; then
   34731 	if test x"$system_lastlog_path" = x"no" ; then
   34732 		for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
   34733 				if (test -d "$f" || test -f "$f") ; then
   34734 					conf_lastlog_location=$f
   34735 				fi
   34736 		done
   34737 		if test -z "$conf_lastlog_location"; then
   34738 			{ echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
   34739 echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
   34740 					fi
   34741 	fi
   34742 fi
   34743 
   34744 if test -n "$conf_lastlog_location"; then
   34745 
   34746 cat >>confdefs.h <<_ACEOF
   34747 #define CONF_LASTLOG_FILE "$conf_lastlog_location"
   34748 _ACEOF
   34749 
   34750 fi
   34751 
   34752 { echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
   34753 echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; }
   34754 cat >conftest.$ac_ext <<_ACEOF
   34755 /* confdefs.h.  */
   34756 _ACEOF
   34757 cat confdefs.h >>conftest.$ac_ext
   34758 cat >>conftest.$ac_ext <<_ACEOF
   34759 /* end confdefs.h.  */
   34760 
   34761 #include <sys/types.h>
   34762 #include <utmp.h>
   34763 #ifdef HAVE_PATHS_H
   34764 #  include <paths.h>
   34765 #endif
   34766 
   34767 int
   34768 main ()
   34769 {
   34770  char *utmp = UTMP_FILE;
   34771   ;
   34772   return 0;
   34773 }
   34774 _ACEOF
   34775 rm -f conftest.$ac_objext
   34776 if { (ac_try="$ac_compile"
   34777 case "(($ac_try" in
   34778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   34779   *) ac_try_echo=$ac_try;;
   34780 esac
   34781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   34782   (eval "$ac_compile") 2>conftest.er1
   34783   ac_status=$?
   34784   grep -v '^ *+' conftest.er1 >conftest.err
   34785   rm -f conftest.er1
   34786   cat conftest.err >&5
   34787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   34788   (exit $ac_status); } && {
   34789 	 test -z "$ac_c_werror_flag" ||
   34790 	 test ! -s conftest.err
   34791        } && test -s conftest.$ac_objext; then
   34792    { echo "$as_me:$LINENO: result: yes" >&5
   34793 echo "${ECHO_T}yes" >&6; }
   34794 else
   34795   echo "$as_me: failed program was:" >&5
   34796 sed 's/^/| /' conftest.$ac_ext >&5
   34797 
   34798 	 { echo "$as_me:$LINENO: result: no" >&5
   34799 echo "${ECHO_T}no" >&6; }
   34800 	  system_utmp_path=no
   34801 
   34802 fi
   34803 
   34804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   34805 if test -z "$conf_utmp_location"; then
   34806 	if test x"$system_utmp_path" = x"no" ; then
   34807 		for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
   34808 			if test -f $f ; then
   34809 				conf_utmp_location=$f
   34810 			fi
   34811 		done
   34812 		if test -z "$conf_utmp_location"; then
   34813 			cat >>confdefs.h <<\_ACEOF
   34814 #define DISABLE_UTMP 1
   34815 _ACEOF
   34816 
   34817 		fi
   34818 	fi
   34819 fi
   34820 if test -n "$conf_utmp_location"; then
   34821 
   34822 cat >>confdefs.h <<_ACEOF
   34823 #define CONF_UTMP_FILE "$conf_utmp_location"
   34824 _ACEOF
   34825 
   34826 fi
   34827 
   34828 { echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
   34829 echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; }
   34830 cat >conftest.$ac_ext <<_ACEOF
   34831 /* confdefs.h.  */
   34832 _ACEOF
   34833 cat confdefs.h >>conftest.$ac_ext
   34834 cat >>conftest.$ac_ext <<_ACEOF
   34835 /* end confdefs.h.  */
   34836 
   34837 #include <sys/types.h>
   34838 #include <utmp.h>
   34839 #ifdef HAVE_PATHS_H
   34840 #  include <paths.h>
   34841 #endif
   34842 
   34843 int
   34844 main ()
   34845 {
   34846  char *wtmp = WTMP_FILE;
   34847   ;
   34848   return 0;
   34849 }
   34850 _ACEOF
   34851 rm -f conftest.$ac_objext
   34852 if { (ac_try="$ac_compile"
   34853 case "(($ac_try" in
   34854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   34855   *) ac_try_echo=$ac_try;;
   34856 esac
   34857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   34858   (eval "$ac_compile") 2>conftest.er1
   34859   ac_status=$?
   34860   grep -v '^ *+' conftest.er1 >conftest.err
   34861   rm -f conftest.er1
   34862   cat conftest.err >&5
   34863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   34864   (exit $ac_status); } && {
   34865 	 test -z "$ac_c_werror_flag" ||
   34866 	 test ! -s conftest.err
   34867        } && test -s conftest.$ac_objext; then
   34868    { echo "$as_me:$LINENO: result: yes" >&5
   34869 echo "${ECHO_T}yes" >&6; }
   34870 else
   34871   echo "$as_me: failed program was:" >&5
   34872 sed 's/^/| /' conftest.$ac_ext >&5
   34873 
   34874 	 { echo "$as_me:$LINENO: result: no" >&5
   34875 echo "${ECHO_T}no" >&6; }
   34876 	  system_wtmp_path=no
   34877 
   34878 fi
   34879 
   34880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   34881 if test -z "$conf_wtmp_location"; then
   34882 	if test x"$system_wtmp_path" = x"no" ; then
   34883 		for f in /usr/adm/wtmp /var/log/wtmp; do
   34884 			if test -f $f ; then
   34885 				conf_wtmp_location=$f
   34886 			fi
   34887 		done
   34888 		if test -z "$conf_wtmp_location"; then
   34889 			cat >>confdefs.h <<\_ACEOF
   34890 #define DISABLE_WTMP 1
   34891 _ACEOF
   34892 
   34893 		fi
   34894 	fi
   34895 fi
   34896 if test -n "$conf_wtmp_location"; then
   34897 
   34898 cat >>confdefs.h <<_ACEOF
   34899 #define CONF_WTMP_FILE "$conf_wtmp_location"
   34900 _ACEOF
   34901 
   34902 fi
   34903 
   34904 { echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
   34905 echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; }
   34906 cat >conftest.$ac_ext <<_ACEOF
   34907 /* confdefs.h.  */
   34908 _ACEOF
   34909 cat confdefs.h >>conftest.$ac_ext
   34910 cat >>conftest.$ac_ext <<_ACEOF
   34911 /* end confdefs.h.  */
   34912 
   34913 #include <sys/types.h>
   34914 #include <utmp.h>
   34915 #ifdef HAVE_UTMPX_H
   34916 #include <utmpx.h>
   34917 #endif
   34918 #ifdef HAVE_PATHS_H
   34919 #  include <paths.h>
   34920 #endif
   34921 
   34922 int
   34923 main ()
   34924 {
   34925  char *wtmpx = WTMPX_FILE;
   34926   ;
   34927   return 0;
   34928 }
   34929 _ACEOF
   34930 rm -f conftest.$ac_objext
   34931 if { (ac_try="$ac_compile"
   34932 case "(($ac_try" in
   34933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   34934   *) ac_try_echo=$ac_try;;
   34935 esac
   34936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   34937   (eval "$ac_compile") 2>conftest.er1
   34938   ac_status=$?
   34939   grep -v '^ *+' conftest.er1 >conftest.err
   34940   rm -f conftest.er1
   34941   cat conftest.err >&5
   34942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   34943   (exit $ac_status); } && {
   34944 	 test -z "$ac_c_werror_flag" ||
   34945 	 test ! -s conftest.err
   34946        } && test -s conftest.$ac_objext; then
   34947    { echo "$as_me:$LINENO: result: yes" >&5
   34948 echo "${ECHO_T}yes" >&6; }
   34949 else
   34950   echo "$as_me: failed program was:" >&5
   34951 sed 's/^/| /' conftest.$ac_ext >&5
   34952 
   34953 	 { echo "$as_me:$LINENO: result: no" >&5
   34954 echo "${ECHO_T}no" >&6; }
   34955 	  system_wtmpx_path=no
   34956 
   34957 fi
   34958 
   34959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   34960 if test -z "$conf_wtmpx_location"; then
   34961 	if test x"$system_wtmpx_path" = x"no" ; then
   34962 		cat >>confdefs.h <<\_ACEOF
   34963 #define DISABLE_WTMPX 1
   34964 _ACEOF
   34965 
   34966 	fi
   34967 else
   34968 
   34969 cat >>confdefs.h <<_ACEOF
   34970 #define CONF_WTMPX_FILE "$conf_wtmpx_location"
   34971 _ACEOF
   34972 
   34973 fi
   34974 
   34975 
   34976 if test ! -z "$blibpath" ; then
   34977 	LDFLAGS="$LDFLAGS $blibflags$blibpath"
   34978 	{ echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
   34979 echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
   34980 fi
   34981 
   34982 { echo "$as_me:$LINENO: checking for struct lastlog.ll_line" >&5
   34983 echo $ECHO_N "checking for struct lastlog.ll_line... $ECHO_C" >&6; }
   34984 if test "${ac_cv_member_struct_lastlog_ll_line+set}" = set; then
   34985   echo $ECHO_N "(cached) $ECHO_C" >&6
   34986 else
   34987   cat >conftest.$ac_ext <<_ACEOF
   34988 /* confdefs.h.  */
   34989 _ACEOF
   34990 cat confdefs.h >>conftest.$ac_ext
   34991 cat >>conftest.$ac_ext <<_ACEOF
   34992 /* end confdefs.h.  */
   34993 
   34994 #ifdef HAVE_SYS_TYPES_H
   34995 #include <sys/types.h>
   34996 #endif
   34997 #ifdef HAVE_UTMP_H
   34998 #include <utmp.h>
   34999 #endif
   35000 #ifdef HAVE_UTMPX_H
   35001 #include <utmpx.h>
   35002 #endif
   35003 #ifdef HAVE_LASTLOG_H
   35004 #include <lastlog.h>
   35005 #endif
   35006 
   35007 
   35008 int
   35009 main ()
   35010 {
   35011 static struct lastlog ac_aggr;
   35012 if (ac_aggr.ll_line)
   35013 return 0;
   35014   ;
   35015   return 0;
   35016 }
   35017 _ACEOF
   35018 rm -f conftest.$ac_objext
   35019 if { (ac_try="$ac_compile"
   35020 case "(($ac_try" in
   35021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   35022   *) ac_try_echo=$ac_try;;
   35023 esac
   35024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   35025   (eval "$ac_compile") 2>conftest.er1
   35026   ac_status=$?
   35027   grep -v '^ *+' conftest.er1 >conftest.err
   35028   rm -f conftest.er1
   35029   cat conftest.err >&5
   35030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   35031   (exit $ac_status); } && {
   35032 	 test -z "$ac_c_werror_flag" ||
   35033 	 test ! -s conftest.err
   35034        } && test -s conftest.$ac_objext; then
   35035   ac_cv_member_struct_lastlog_ll_line=yes
   35036 else
   35037   echo "$as_me: failed program was:" >&5
   35038 sed 's/^/| /' conftest.$ac_ext >&5
   35039 
   35040 	cat >conftest.$ac_ext <<_ACEOF
   35041 /* confdefs.h.  */
   35042 _ACEOF
   35043 cat confdefs.h >>conftest.$ac_ext
   35044 cat >>conftest.$ac_ext <<_ACEOF
   35045 /* end confdefs.h.  */
   35046 
   35047 #ifdef HAVE_SYS_TYPES_H
   35048 #include <sys/types.h>
   35049 #endif
   35050 #ifdef HAVE_UTMP_H
   35051 #include <utmp.h>
   35052 #endif
   35053 #ifdef HAVE_UTMPX_H
   35054 #include <utmpx.h>
   35055 #endif
   35056 #ifdef HAVE_LASTLOG_H
   35057 #include <lastlog.h>
   35058 #endif
   35059 
   35060 
   35061 int
   35062 main ()
   35063 {
   35064 static struct lastlog ac_aggr;
   35065 if (sizeof ac_aggr.ll_line)
   35066 return 0;
   35067   ;
   35068   return 0;
   35069 }
   35070 _ACEOF
   35071 rm -f conftest.$ac_objext
   35072 if { (ac_try="$ac_compile"
   35073 case "(($ac_try" in
   35074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   35075   *) ac_try_echo=$ac_try;;
   35076 esac
   35077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   35078   (eval "$ac_compile") 2>conftest.er1
   35079   ac_status=$?
   35080   grep -v '^ *+' conftest.er1 >conftest.err
   35081   rm -f conftest.er1
   35082   cat conftest.err >&5
   35083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   35084   (exit $ac_status); } && {
   35085 	 test -z "$ac_c_werror_flag" ||
   35086 	 test ! -s conftest.err
   35087        } && test -s conftest.$ac_objext; then
   35088   ac_cv_member_struct_lastlog_ll_line=yes
   35089 else
   35090   echo "$as_me: failed program was:" >&5
   35091 sed 's/^/| /' conftest.$ac_ext >&5
   35092 
   35093 	ac_cv_member_struct_lastlog_ll_line=no
   35094 fi
   35095 
   35096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   35097 fi
   35098 
   35099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   35100 fi
   35101 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_lastlog_ll_line" >&5
   35102 echo "${ECHO_T}$ac_cv_member_struct_lastlog_ll_line" >&6; }
   35103 if test $ac_cv_member_struct_lastlog_ll_line = yes; then
   35104   :
   35105 else
   35106 
   35107     if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then
   35108 	cat >>confdefs.h <<\_ACEOF
   35109 #define DISABLE_LASTLOG 1
   35110 _ACEOF
   35111 
   35112     fi
   35113 
   35114 fi
   35115 
   35116 
   35117 { echo "$as_me:$LINENO: checking for struct utmp.ut_line" >&5
   35118 echo $ECHO_N "checking for struct utmp.ut_line... $ECHO_C" >&6; }
   35119 if test "${ac_cv_member_struct_utmp_ut_line+set}" = set; then
   35120   echo $ECHO_N "(cached) $ECHO_C" >&6
   35121 else
   35122   cat >conftest.$ac_ext <<_ACEOF
   35123 /* confdefs.h.  */
   35124 _ACEOF
   35125 cat confdefs.h >>conftest.$ac_ext
   35126 cat >>conftest.$ac_ext <<_ACEOF
   35127 /* end confdefs.h.  */
   35128 
   35129 #ifdef HAVE_SYS_TYPES_H
   35130 #include <sys/types.h>
   35131 #endif
   35132 #ifdef HAVE_UTMP_H
   35133 #include <utmp.h>
   35134 #endif
   35135 #ifdef HAVE_UTMPX_H
   35136 #include <utmpx.h>
   35137 #endif
   35138 #ifdef HAVE_LASTLOG_H
   35139 #include <lastlog.h>
   35140 #endif
   35141 
   35142 
   35143 int
   35144 main ()
   35145 {
   35146 static struct utmp ac_aggr;
   35147 if (ac_aggr.ut_line)
   35148 return 0;
   35149   ;
   35150   return 0;
   35151 }
   35152 _ACEOF
   35153 rm -f conftest.$ac_objext
   35154 if { (ac_try="$ac_compile"
   35155 case "(($ac_try" in
   35156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   35157   *) ac_try_echo=$ac_try;;
   35158 esac
   35159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   35160   (eval "$ac_compile") 2>conftest.er1
   35161   ac_status=$?
   35162   grep -v '^ *+' conftest.er1 >conftest.err
   35163   rm -f conftest.er1
   35164   cat conftest.err >&5
   35165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   35166   (exit $ac_status); } && {
   35167 	 test -z "$ac_c_werror_flag" ||
   35168 	 test ! -s conftest.err
   35169        } && test -s conftest.$ac_objext; then
   35170   ac_cv_member_struct_utmp_ut_line=yes
   35171 else
   35172   echo "$as_me: failed program was:" >&5
   35173 sed 's/^/| /' conftest.$ac_ext >&5
   35174 
   35175 	cat >conftest.$ac_ext <<_ACEOF
   35176 /* confdefs.h.  */
   35177 _ACEOF
   35178 cat confdefs.h >>conftest.$ac_ext
   35179 cat >>conftest.$ac_ext <<_ACEOF
   35180 /* end confdefs.h.  */
   35181 
   35182 #ifdef HAVE_SYS_TYPES_H
   35183 #include <sys/types.h>
   35184 #endif
   35185 #ifdef HAVE_UTMP_H
   35186 #include <utmp.h>
   35187 #endif
   35188 #ifdef HAVE_UTMPX_H
   35189 #include <utmpx.h>
   35190 #endif
   35191 #ifdef HAVE_LASTLOG_H
   35192 #include <lastlog.h>
   35193 #endif
   35194 
   35195 
   35196 int
   35197 main ()
   35198 {
   35199 static struct utmp ac_aggr;
   35200 if (sizeof ac_aggr.ut_line)
   35201 return 0;
   35202   ;
   35203   return 0;
   35204 }
   35205 _ACEOF
   35206 rm -f conftest.$ac_objext
   35207 if { (ac_try="$ac_compile"
   35208 case "(($ac_try" in
   35209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   35210   *) ac_try_echo=$ac_try;;
   35211 esac
   35212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   35213   (eval "$ac_compile") 2>conftest.er1
   35214   ac_status=$?
   35215   grep -v '^ *+' conftest.er1 >conftest.err
   35216   rm -f conftest.er1
   35217   cat conftest.err >&5
   35218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   35219   (exit $ac_status); } && {
   35220 	 test -z "$ac_c_werror_flag" ||
   35221 	 test ! -s conftest.err
   35222        } && test -s conftest.$ac_objext; then
   35223   ac_cv_member_struct_utmp_ut_line=yes
   35224 else
   35225   echo "$as_me: failed program was:" >&5
   35226 sed 's/^/| /' conftest.$ac_ext >&5
   35227 
   35228 	ac_cv_member_struct_utmp_ut_line=no
   35229 fi
   35230 
   35231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   35232 fi
   35233 
   35234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   35235 fi
   35236 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_line" >&5
   35237 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_line" >&6; }
   35238 if test $ac_cv_member_struct_utmp_ut_line = yes; then
   35239   :
   35240 else
   35241 
   35242 	cat >>confdefs.h <<\_ACEOF
   35243 #define DISABLE_UTMP 1
   35244 _ACEOF
   35245 
   35246 	cat >>confdefs.h <<\_ACEOF
   35247 #define DISABLE_WTMP 1
   35248 _ACEOF
   35249 
   35250 
   35251 fi
   35252 
   35253 
   35254 CFLAGS="$CFLAGS $werror_flags"
   35255 
   35256 if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
   35257 	TEST_SSH_IPV6=no
   35258 else
   35259 	TEST_SSH_IPV6=yes
   35260 fi
   35261 { echo "$as_me:$LINENO: checking whether BROKEN_GETADDRINFO is declared" >&5
   35262 echo $ECHO_N "checking whether BROKEN_GETADDRINFO is declared... $ECHO_C" >&6; }
   35263 if test "${ac_cv_have_decl_BROKEN_GETADDRINFO+set}" = set; then
   35264   echo $ECHO_N "(cached) $ECHO_C" >&6
   35265 else
   35266   cat >conftest.$ac_ext <<_ACEOF
   35267 /* confdefs.h.  */
   35268 _ACEOF
   35269 cat confdefs.h >>conftest.$ac_ext
   35270 cat >>conftest.$ac_ext <<_ACEOF
   35271 /* end confdefs.h.  */
   35272 $ac_includes_default
   35273 int
   35274 main ()
   35275 {
   35276 #ifndef BROKEN_GETADDRINFO
   35277   (void) BROKEN_GETADDRINFO;
   35278 #endif
   35279 
   35280   ;
   35281   return 0;
   35282 }
   35283 _ACEOF
   35284 rm -f conftest.$ac_objext
   35285 if { (ac_try="$ac_compile"
   35286 case "(($ac_try" in
   35287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   35288   *) ac_try_echo=$ac_try;;
   35289 esac
   35290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   35291   (eval "$ac_compile") 2>conftest.er1
   35292   ac_status=$?
   35293   grep -v '^ *+' conftest.er1 >conftest.err
   35294   rm -f conftest.er1
   35295   cat conftest.err >&5
   35296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   35297   (exit $ac_status); } && {
   35298 	 test -z "$ac_c_werror_flag" ||
   35299 	 test ! -s conftest.err
   35300        } && test -s conftest.$ac_objext; then
   35301   ac_cv_have_decl_BROKEN_GETADDRINFO=yes
   35302 else
   35303   echo "$as_me: failed program was:" >&5
   35304 sed 's/^/| /' conftest.$ac_ext >&5
   35305 
   35306 	ac_cv_have_decl_BROKEN_GETADDRINFO=no
   35307 fi
   35308 
   35309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   35310 fi
   35311 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_BROKEN_GETADDRINFO" >&5
   35312 echo "${ECHO_T}$ac_cv_have_decl_BROKEN_GETADDRINFO" >&6; }
   35313 if test $ac_cv_have_decl_BROKEN_GETADDRINFO = yes; then
   35314   TEST_SSH_IPV6=no
   35315 fi
   35316 
   35317 TEST_SSH_IPV6=$TEST_SSH_IPV6
   35318 
   35319 TEST_MALLOC_OPTIONS=$TEST_MALLOC_OPTIONS
   35320 
   35321 UNSUPPORTED_ALGORITHMS=$unsupported_algorithms
   35322 
   35323 
   35324 
   35325 ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh"
   35326 
   35327 cat >confcache <<\_ACEOF
   35328 # This file is a shell script that caches the results of configure
   35329 # tests run on this system so they can be shared between configure
   35330 # scripts and configure runs, see configure's option --config-cache.
   35331 # It is not useful on other systems.  If it contains results you don't
   35332 # want to keep, you may remove or edit it.
   35333 #
   35334 # config.status only pays attention to the cache file if you give it
   35335 # the --recheck option to rerun configure.
   35336 #
   35337 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   35338 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   35339 # following values.
   35340 
   35341 _ACEOF
   35342 
   35343 # The following way of writing the cache mishandles newlines in values,
   35344 # but we know of no workaround that is simple, portable, and efficient.
   35345 # So, we kill variables containing newlines.
   35346 # Ultrix sh set writes to stderr and can't be redirected directly,
   35347 # and sets the high bit in the cache file unless we assign to the vars.
   35348 (
   35349   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   35350     eval ac_val=\$$ac_var
   35351     case $ac_val in #(
   35352     *${as_nl}*)
   35353       case $ac_var in #(
   35354       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
   35355 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
   35356       esac
   35357       case $ac_var in #(
   35358       _ | IFS | as_nl) ;; #(
   35359       *) $as_unset $ac_var ;;
   35360       esac ;;
   35361     esac
   35362   done
   35363 
   35364   (set) 2>&1 |
   35365     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   35366     *${as_nl}ac_space=\ *)
   35367       # `set' does not quote correctly, so add quotes (double-quote
   35368       # substitution turns \\\\ into \\, and sed turns \\ into \).
   35369       sed -n \
   35370 	"s/'/'\\\\''/g;
   35371 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   35372       ;; #(
   35373     *)
   35374       # `set' quotes correctly as required by POSIX, so do not add quotes.
   35375       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   35376       ;;
   35377     esac |
   35378     sort
   35379 ) |
   35380   sed '
   35381      /^ac_cv_env_/b end
   35382      t clear
   35383      :clear
   35384      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   35385      t end
   35386      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   35387      :end' >>confcache
   35388 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   35389   if test -w "$cache_file"; then
   35390     test "x$cache_file" != "x/dev/null" &&
   35391       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
   35392 echo "$as_me: updating cache $cache_file" >&6;}
   35393     cat confcache >$cache_file
   35394   else
   35395     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
   35396 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   35397   fi
   35398 fi
   35399 rm -f confcache
   35400 
   35401 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   35402 # Let make expand exec_prefix.
   35403 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   35404 
   35405 DEFS=-DHAVE_CONFIG_H
   35406 
   35407 ac_libobjs=
   35408 ac_ltlibobjs=
   35409 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   35410   # 1. Remove the extension, and $U if already installed.
   35411   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   35412   ac_i=`echo "$ac_i" | sed "$ac_script"`
   35413   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   35414   #    will be set to the directory where LIBOBJS objects are built.
   35415   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   35416   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
   35417 done
   35418 LIBOBJS=$ac_libobjs
   35419 
   35420 LTLIBOBJS=$ac_ltlibobjs
   35421 
   35422 
   35423 
   35424 : ${CONFIG_STATUS=./config.status}
   35425 ac_clean_files_save=$ac_clean_files
   35426 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   35427 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
   35428 echo "$as_me: creating $CONFIG_STATUS" >&6;}
   35429 cat >$CONFIG_STATUS <<_ACEOF
   35430 #! $SHELL
   35431 # Generated by $as_me.
   35432 # Run this file to recreate the current configuration.
   35433 # Compiler output produced by configure, useful for debugging
   35434 # configure, is in config.log if it exists.
   35435 
   35436 debug=false
   35437 ac_cs_recheck=false
   35438 ac_cs_silent=false
   35439 SHELL=\${CONFIG_SHELL-$SHELL}
   35440 _ACEOF
   35441 
   35442 cat >>$CONFIG_STATUS <<\_ACEOF
   35443 ## --------------------- ##
   35444 ## M4sh Initialization.  ##
   35445 ## --------------------- ##
   35446 
   35447 # Be more Bourne compatible
   35448 DUALCASE=1; export DUALCASE # for MKS sh
   35449 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   35450   emulate sh
   35451   NULLCMD=:
   35452   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   35453   # is contrary to our usage.  Disable this feature.
   35454   alias -g '${1+"$@"}'='"$@"'
   35455   setopt NO_GLOB_SUBST
   35456 else
   35457   case `(set -o) 2>/dev/null` in
   35458   *posix*) set -o posix ;;
   35459 esac
   35460 
   35461 fi
   35462 
   35463 
   35464 
   35465 
   35466 # PATH needs CR
   35467 # Avoid depending upon Character Ranges.
   35468 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   35469 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   35470 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   35471 as_cr_digits='0123456789'
   35472 as_cr_alnum=$as_cr_Letters$as_cr_digits
   35473 
   35474 # The user is always right.
   35475 if test "${PATH_SEPARATOR+set}" != set; then
   35476   echo "#! /bin/sh" >conf$$.sh
   35477   echo  "exit 0"   >>conf$$.sh
   35478   chmod +x conf$$.sh
   35479   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   35480     PATH_SEPARATOR=';'
   35481   else
   35482     PATH_SEPARATOR=:
   35483   fi
   35484   rm -f conf$$.sh
   35485 fi
   35486 
   35487 # Support unset when possible.
   35488 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   35489   as_unset=unset
   35490 else
   35491   as_unset=false
   35492 fi
   35493 
   35494 
   35495 # IFS
   35496 # We need space, tab and new line, in precisely that order.  Quoting is
   35497 # there to prevent editors from complaining about space-tab.
   35498 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   35499 # splitting by setting IFS to empty value.)
   35500 as_nl='
   35501 '
   35502 IFS=" ""	$as_nl"
   35503 
   35504 # Find who we are.  Look in the path if we contain no directory separator.
   35505 case $0 in
   35506   *[\\/]* ) as_myself=$0 ;;
   35507   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   35508 for as_dir in $PATH
   35509 do
   35510   IFS=$as_save_IFS
   35511   test -z "$as_dir" && as_dir=.
   35512   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   35513 done
   35514 IFS=$as_save_IFS
   35515 
   35516      ;;
   35517 esac
   35518 # We did not find ourselves, most probably we were run as `sh COMMAND'
   35519 # in which case we are not to be found in the path.
   35520 if test "x$as_myself" = x; then
   35521   as_myself=$0
   35522 fi
   35523 if test ! -f "$as_myself"; then
   35524   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   35525   { (exit 1); exit 1; }
   35526 fi
   35527 
   35528 # Work around bugs in pre-3.0 UWIN ksh.
   35529 for as_var in ENV MAIL MAILPATH
   35530 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   35531 done
   35532 PS1='$ '
   35533 PS2='> '
   35534 PS4='+ '
   35535 
   35536 # NLS nuisances.
   35537 for as_var in \
   35538   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
   35539   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
   35540   LC_TELEPHONE LC_TIME
   35541 do
   35542   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
   35543     eval $as_var=C; export $as_var
   35544   else
   35545     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   35546   fi
   35547 done
   35548 
   35549 # Required to use basename.
   35550 if expr a : '\(a\)' >/dev/null 2>&1 &&
   35551    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   35552   as_expr=expr
   35553 else
   35554   as_expr=false
   35555 fi
   35556 
   35557 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   35558   as_basename=basename
   35559 else
   35560   as_basename=false
   35561 fi
   35562 
   35563 
   35564 # Name of the executable.
   35565 as_me=`$as_basename -- "$0" ||
   35566 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   35567 	 X"$0" : 'X\(//\)$' \| \
   35568 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   35569 echo X/"$0" |
   35570     sed '/^.*\/\([^/][^/]*\)\/*$/{
   35571 	    s//\1/
   35572 	    q
   35573 	  }
   35574 	  /^X\/\(\/\/\)$/{
   35575 	    s//\1/
   35576 	    q
   35577 	  }
   35578 	  /^X\/\(\/\).*/{
   35579 	    s//\1/
   35580 	    q
   35581 	  }
   35582 	  s/.*/./; q'`
   35583 
   35584 # CDPATH.
   35585 $as_unset CDPATH
   35586 
   35587 
   35588 
   35589   as_lineno_1=$LINENO
   35590   as_lineno_2=$LINENO
   35591   test "x$as_lineno_1" != "x$as_lineno_2" &&
   35592   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
   35593 
   35594   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
   35595   # uniformly replaced by the line number.  The first 'sed' inserts a
   35596   # line-number line after each line using $LINENO; the second 'sed'
   35597   # does the real work.  The second script uses 'N' to pair each
   35598   # line-number line with the line containing $LINENO, and appends
   35599   # trailing '-' during substitution so that $LINENO is not a special
   35600   # case at line end.
   35601   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
   35602   # scripts with optimization help from Paolo Bonzini.  Blame Lee
   35603   # E. McMahon (1931-1989) for sed's syntax.  :-)
   35604   sed -n '
   35605     p
   35606     /[$]LINENO/=
   35607   ' <$as_myself |
   35608     sed '
   35609       s/[$]LINENO.*/&-/
   35610       t lineno
   35611       b
   35612       :lineno
   35613       N
   35614       :loop
   35615       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
   35616       t loop
   35617       s/-\n.*//
   35618     ' >$as_me.lineno &&
   35619   chmod +x "$as_me.lineno" ||
   35620     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   35621    { (exit 1); exit 1; }; }
   35622 
   35623   # Don't try to exec as it changes $[0], causing all sort of problems
   35624   # (the dirname of $[0] is not the place where we might find the
   35625   # original and so on.  Autoconf is especially sensitive to this).
   35626   . "./$as_me.lineno"
   35627   # Exit status is that of the last command.
   35628   exit
   35629 }
   35630 
   35631 
   35632 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   35633   as_dirname=dirname
   35634 else
   35635   as_dirname=false
   35636 fi
   35637 
   35638 ECHO_C= ECHO_N= ECHO_T=
   35639 case `echo -n x` in
   35640 -n*)
   35641   case `echo 'x\c'` in
   35642   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   35643   *)   ECHO_C='\c';;
   35644   esac;;
   35645 *)
   35646   ECHO_N='-n';;
   35647 esac
   35648 
   35649 if expr a : '\(a\)' >/dev/null 2>&1 &&
   35650    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   35651   as_expr=expr
   35652 else
   35653   as_expr=false
   35654 fi
   35655 
   35656 rm -f conf$$ conf$$.exe conf$$.file
   35657 if test -d conf$$.dir; then
   35658   rm -f conf$$.dir/conf$$.file
   35659 else
   35660   rm -f conf$$.dir
   35661   mkdir conf$$.dir
   35662 fi
   35663 echo >conf$$.file
   35664 if ln -s conf$$.file conf$$ 2>/dev/null; then
   35665   as_ln_s='ln -s'
   35666   # ... but there are two gotchas:
   35667   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   35668   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   35669   # In both cases, we have to default to `cp -p'.
   35670   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   35671     as_ln_s='cp -p'
   35672 elif ln conf$$.file conf$$ 2>/dev/null; then
   35673   as_ln_s=ln
   35674 else
   35675   as_ln_s='cp -p'
   35676 fi
   35677 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   35678 rmdir conf$$.dir 2>/dev/null
   35679 
   35680 if mkdir -p . 2>/dev/null; then
   35681   as_mkdir_p=:
   35682 else
   35683   test -d ./-p && rmdir ./-p
   35684   as_mkdir_p=false
   35685 fi
   35686 
   35687 if test -x / >/dev/null 2>&1; then
   35688   as_test_x='test -x'
   35689 else
   35690   if ls -dL / >/dev/null 2>&1; then
   35691     as_ls_L_option=L
   35692   else
   35693     as_ls_L_option=
   35694   fi
   35695   as_test_x='
   35696     eval sh -c '\''
   35697       if test -d "$1"; then
   35698         test -d "$1/.";
   35699       else
   35700 	case $1 in
   35701         -*)set "./$1";;
   35702 	esac;
   35703 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
   35704 	???[sx]*):;;*)false;;esac;fi
   35705     '\'' sh
   35706   '
   35707 fi
   35708 as_executable_p=$as_test_x
   35709 
   35710 # Sed expression to map a string onto a valid CPP name.
   35711 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   35712 
   35713 # Sed expression to map a string onto a valid variable name.
   35714 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   35715 
   35716 
   35717 exec 6>&1
   35718 
   35719 # Save the log message, to keep $[0] and so on meaningful, and to
   35720 # report actual input values of CONFIG_FILES etc. instead of their
   35721 # values after options handling.
   35722 ac_log="
   35723 This file was extended by OpenSSH $as_me Portable, which was
   35724 generated by GNU Autoconf 2.61.  Invocation command line was
   35725 
   35726   CONFIG_FILES    = $CONFIG_FILES
   35727   CONFIG_HEADERS  = $CONFIG_HEADERS
   35728   CONFIG_LINKS    = $CONFIG_LINKS
   35729   CONFIG_COMMANDS = $CONFIG_COMMANDS
   35730   $ $0 $@
   35731 
   35732 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   35733 "
   35734 
   35735 _ACEOF
   35736 
   35737 cat >>$CONFIG_STATUS <<_ACEOF
   35738 # Files that config.status was made for.
   35739 config_files="$ac_config_files"
   35740 config_headers="$ac_config_headers"
   35741 
   35742 _ACEOF
   35743 
   35744 cat >>$CONFIG_STATUS <<\_ACEOF
   35745 ac_cs_usage="\
   35746 \`$as_me' instantiates files from templates according to the
   35747 current configuration.
   35748 
   35749 Usage: $0 [OPTIONS] [FILE]...
   35750 
   35751   -h, --help       print this help, then exit
   35752   -V, --version    print version number and configuration settings, then exit
   35753   -q, --quiet      do not print progress messages
   35754   -d, --debug      don't remove temporary files
   35755       --recheck    update $as_me by reconfiguring in the same conditions
   35756   --file=FILE[:TEMPLATE]
   35757 		   instantiate the configuration file FILE
   35758   --header=FILE[:TEMPLATE]
   35759 		   instantiate the configuration header FILE
   35760 
   35761 Configuration files:
   35762 $config_files
   35763 
   35764 Configuration headers:
   35765 $config_headers
   35766 
   35767 Report bugs to <bug-autoconf (at] gnu.org>."
   35768 
   35769 _ACEOF
   35770 cat >>$CONFIG_STATUS <<_ACEOF
   35771 ac_cs_version="\\
   35772 OpenSSH config.status Portable
   35773 configured by $0, generated by GNU Autoconf 2.61,
   35774   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
   35775 
   35776 Copyright (C) 2006 Free Software Foundation, Inc.
   35777 This config.status script is free software; the Free Software Foundation
   35778 gives unlimited permission to copy, distribute and modify it."
   35779 
   35780 ac_pwd='$ac_pwd'
   35781 srcdir='$srcdir'
   35782 INSTALL='$INSTALL'
   35783 _ACEOF
   35784 
   35785 cat >>$CONFIG_STATUS <<\_ACEOF
   35786 # If no file are specified by the user, then we need to provide default
   35787 # value.  By we need to know if files were specified by the user.
   35788 ac_need_defaults=:
   35789 while test $# != 0
   35790 do
   35791   case $1 in
   35792   --*=*)
   35793     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   35794     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   35795     ac_shift=:
   35796     ;;
   35797   *)
   35798     ac_option=$1
   35799     ac_optarg=$2
   35800     ac_shift=shift
   35801     ;;
   35802   esac
   35803 
   35804   case $ac_option in
   35805   # Handling of the options.
   35806   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   35807     ac_cs_recheck=: ;;
   35808   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   35809     echo "$ac_cs_version"; exit ;;
   35810   --debug | --debu | --deb | --de | --d | -d )
   35811     debug=: ;;
   35812   --file | --fil | --fi | --f )
   35813     $ac_shift
   35814     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
   35815     ac_need_defaults=false;;
   35816   --header | --heade | --head | --hea )
   35817     $ac_shift
   35818     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
   35819     ac_need_defaults=false;;
   35820   --he | --h)
   35821     # Conflict between --help and --header
   35822     { echo "$as_me: error: ambiguous option: $1
   35823 Try \`$0 --help' for more information." >&2
   35824    { (exit 1); exit 1; }; };;
   35825   --help | --hel | -h )
   35826     echo "$ac_cs_usage"; exit ;;
   35827   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   35828   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   35829     ac_cs_silent=: ;;
   35830 
   35831   # This is an error.
   35832   -*) { echo "$as_me: error: unrecognized option: $1
   35833 Try \`$0 --help' for more information." >&2
   35834    { (exit 1); exit 1; }; } ;;
   35835 
   35836   *) ac_config_targets="$ac_config_targets $1"
   35837      ac_need_defaults=false ;;
   35838 
   35839   esac
   35840   shift
   35841 done
   35842 
   35843 ac_configure_extra_args=
   35844 
   35845 if $ac_cs_silent; then
   35846   exec 6>/dev/null
   35847   ac_configure_extra_args="$ac_configure_extra_args --silent"
   35848 fi
   35849 
   35850 _ACEOF
   35851 cat >>$CONFIG_STATUS <<_ACEOF
   35852 if \$ac_cs_recheck; then
   35853   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
   35854   CONFIG_SHELL=$SHELL
   35855   export CONFIG_SHELL
   35856   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   35857 fi
   35858 
   35859 _ACEOF
   35860 cat >>$CONFIG_STATUS <<\_ACEOF
   35861 exec 5>>config.log
   35862 {
   35863   echo
   35864   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   35865 ## Running $as_me. ##
   35866 _ASBOX
   35867   echo "$ac_log"
   35868 } >&5
   35869 
   35870 _ACEOF
   35871 cat >>$CONFIG_STATUS <<_ACEOF
   35872 _ACEOF
   35873 
   35874 cat >>$CONFIG_STATUS <<\_ACEOF
   35875 
   35876 # Handling of arguments.
   35877 for ac_config_target in $ac_config_targets
   35878 do
   35879   case $ac_config_target in
   35880     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
   35881     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   35882     "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
   35883     "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
   35884     "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
   35885     "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
   35886     "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
   35887     "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
   35888 
   35889   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
   35890 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   35891    { (exit 1); exit 1; }; };;
   35892   esac
   35893 done
   35894 
   35895 
   35896 # If the user did not use the arguments to specify the items to instantiate,
   35897 # then the envvar interface is used.  Set only those that are not.
   35898 # We use the long form for the default assignment because of an extremely
   35899 # bizarre bug on SunOS 4.1.3.
   35900 if $ac_need_defaults; then
   35901   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   35902   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   35903 fi
   35904 
   35905 # Have a temporary directory for convenience.  Make it in the build tree
   35906 # simply because there is no reason against having it here, and in addition,
   35907 # creating and moving files from /tmp can sometimes cause problems.
   35908 # Hook for its removal unless debugging.
   35909 # Note that there is a small window in which the directory will not be cleaned:
   35910 # after its creation but before its name has been assigned to `$tmp'.
   35911 $debug ||
   35912 {
   35913   tmp=
   35914   trap 'exit_status=$?
   35915   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
   35916 ' 0
   35917   trap '{ (exit 1); exit 1; }' 1 2 13 15
   35918 }
   35919 # Create a (secure) tmp directory for tmp files.
   35920 
   35921 {
   35922   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   35923   test -n "$tmp" && test -d "$tmp"
   35924 }  ||
   35925 {
   35926   tmp=./conf$$-$RANDOM
   35927   (umask 077 && mkdir "$tmp")
   35928 } ||
   35929 {
   35930    echo "$me: cannot create a temporary directory in ." >&2
   35931    { (exit 1); exit 1; }
   35932 }
   35933 
   35934 #
   35935 # Set up the sed scripts for CONFIG_FILES section.
   35936 #
   35937 
   35938 # No need to generate the scripts if there are no CONFIG_FILES.
   35939 # This happens for instance when ./config.status config.h
   35940 if test -n "$CONFIG_FILES"; then
   35941 
   35942 _ACEOF
   35943 
   35944 
   35945 
   35946 ac_delim='%!_!# '
   35947 for ac_last_try in false false false false false :; do
   35948   cat >conf$$subs.sed <<_ACEOF
   35949 SHELL!$SHELL$ac_delim
   35950 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
   35951 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
   35952 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
   35953 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
   35954 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
   35955 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
   35956 exec_prefix!$exec_prefix$ac_delim
   35957 prefix!$prefix$ac_delim
   35958 program_transform_name!$program_transform_name$ac_delim
   35959 bindir!$bindir$ac_delim
   35960 sbindir!$sbindir$ac_delim
   35961 libexecdir!$libexecdir$ac_delim
   35962 datarootdir!$datarootdir$ac_delim
   35963 datadir!$datadir$ac_delim
   35964 sysconfdir!$sysconfdir$ac_delim
   35965 sharedstatedir!$sharedstatedir$ac_delim
   35966 localstatedir!$localstatedir$ac_delim
   35967 includedir!$includedir$ac_delim
   35968 oldincludedir!$oldincludedir$ac_delim
   35969 docdir!$docdir$ac_delim
   35970 infodir!$infodir$ac_delim
   35971 htmldir!$htmldir$ac_delim
   35972 dvidir!$dvidir$ac_delim
   35973 pdfdir!$pdfdir$ac_delim
   35974 psdir!$psdir$ac_delim
   35975 libdir!$libdir$ac_delim
   35976 localedir!$localedir$ac_delim
   35977 mandir!$mandir$ac_delim
   35978 DEFS!$DEFS$ac_delim
   35979 ECHO_C!$ECHO_C$ac_delim
   35980 ECHO_N!$ECHO_N$ac_delim
   35981 ECHO_T!$ECHO_T$ac_delim
   35982 LIBS!$LIBS$ac_delim
   35983 build_alias!$build_alias$ac_delim
   35984 host_alias!$host_alias$ac_delim
   35985 target_alias!$target_alias$ac_delim
   35986 CC!$CC$ac_delim
   35987 CFLAGS!$CFLAGS$ac_delim
   35988 LDFLAGS!$LDFLAGS$ac_delim
   35989 CPPFLAGS!$CPPFLAGS$ac_delim
   35990 ac_ct_CC!$ac_ct_CC$ac_delim
   35991 EXEEXT!$EXEEXT$ac_delim
   35992 OBJEXT!$OBJEXT$ac_delim
   35993 build!$build$ac_delim
   35994 build_cpu!$build_cpu$ac_delim
   35995 build_vendor!$build_vendor$ac_delim
   35996 build_os!$build_os$ac_delim
   35997 host!$host$ac_delim
   35998 host_cpu!$host_cpu$ac_delim
   35999 host_vendor!$host_vendor$ac_delim
   36000 host_os!$host_os$ac_delim
   36001 CPP!$CPP$ac_delim
   36002 GREP!$GREP$ac_delim
   36003 EGREP!$EGREP$ac_delim
   36004 AWK!$AWK$ac_delim
   36005 RANLIB!$RANLIB$ac_delim
   36006 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
   36007 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
   36008 INSTALL_DATA!$INSTALL_DATA$ac_delim
   36009 AR!$AR$ac_delim
   36010 CAT!$CAT$ac_delim
   36011 KILL!$KILL$ac_delim
   36012 PERL!$PERL$ac_delim
   36013 SED!$SED$ac_delim
   36014 ENT!$ENT$ac_delim
   36015 TEST_MINUS_S_SH!$TEST_MINUS_S_SH$ac_delim
   36016 SH!$SH$ac_delim
   36017 GROFF!$GROFF$ac_delim
   36018 NROFF!$NROFF$ac_delim
   36019 MANDOC!$MANDOC$ac_delim
   36020 TEST_SHELL!$TEST_SHELL$ac_delim
   36021 MANFMT!$MANFMT$ac_delim
   36022 PATH_GROUPADD_PROG!$PATH_GROUPADD_PROG$ac_delim
   36023 PATH_USERADD_PROG!$PATH_USERADD_PROG$ac_delim
   36024 MAKE_PACKAGE_SUPPORTED!$MAKE_PACKAGE_SUPPORTED$ac_delim
   36025 STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim
   36026 LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim
   36027 PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim
   36028 LD!$LD$ac_delim
   36029 PKGCONFIG!$PKGCONFIG$ac_delim
   36030 LIBEDIT!$LIBEDIT$ac_delim
   36031 TEST_SSH_ECC!$TEST_SSH_ECC$ac_delim
   36032 COMMENT_OUT_ECC!$COMMENT_OUT_ECC$ac_delim
   36033 SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim
   36034 SSHLIBS!$SSHLIBS$ac_delim
   36035 SSHDLIBS!$SSHDLIBS$ac_delim
   36036 KRB5CONF!$KRB5CONF$ac_delim
   36037 GSSLIBS!$GSSLIBS$ac_delim
   36038 K5LIBS!$K5LIBS$ac_delim
   36039 PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim
   36040 xauth_path!$xauth_path$ac_delim
   36041 STRIP_OPT!$STRIP_OPT$ac_delim
   36042 XAUTH_PATH!$XAUTH_PATH$ac_delim
   36043 MANTYPE!$MANTYPE$ac_delim
   36044 mansubdir!$mansubdir$ac_delim
   36045 user_path!$user_path$ac_delim
   36046 _ACEOF
   36047 
   36048   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
   36049     break
   36050   elif $ac_last_try; then
   36051     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
   36052 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   36053    { (exit 1); exit 1; }; }
   36054   else
   36055     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   36056   fi
   36057 done
   36058 
   36059 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
   36060 if test -n "$ac_eof"; then
   36061   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
   36062   ac_eof=`expr $ac_eof + 1`
   36063 fi
   36064 
   36065 cat >>$CONFIG_STATUS <<_ACEOF
   36066 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
   36067 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   36068 _ACEOF
   36069 sed '
   36070 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
   36071 s/^/s,@/; s/!/@,|#_!!_#|/
   36072 :n
   36073 t n
   36074 s/'"$ac_delim"'$/,g/; t
   36075 s/$/\\/; p
   36076 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
   36077 ' >>$CONFIG_STATUS <conf$$subs.sed
   36078 rm -f conf$$subs.sed
   36079 cat >>$CONFIG_STATUS <<_ACEOF
   36080 CEOF$ac_eof
   36081 _ACEOF
   36082 
   36083 
   36084 ac_delim='%!_!# '
   36085 for ac_last_try in false false false false false :; do
   36086   cat >conf$$subs.sed <<_ACEOF
   36087 piddir!$piddir$ac_delim
   36088 TEST_SSH_IPV6!$TEST_SSH_IPV6$ac_delim
   36089 TEST_MALLOC_OPTIONS!$TEST_MALLOC_OPTIONS$ac_delim
   36090 UNSUPPORTED_ALGORITHMS!$UNSUPPORTED_ALGORITHMS$ac_delim
   36091 LIBOBJS!$LIBOBJS$ac_delim
   36092 LTLIBOBJS!$LTLIBOBJS$ac_delim
   36093 _ACEOF
   36094 
   36095   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
   36096     break
   36097   elif $ac_last_try; then
   36098     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
   36099 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   36100    { (exit 1); exit 1; }; }
   36101   else
   36102     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   36103   fi
   36104 done
   36105 
   36106 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
   36107 if test -n "$ac_eof"; then
   36108   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
   36109   ac_eof=`expr $ac_eof + 1`
   36110 fi
   36111 
   36112 cat >>$CONFIG_STATUS <<_ACEOF
   36113 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
   36114 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
   36115 _ACEOF
   36116 sed '
   36117 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
   36118 s/^/s,@/; s/!/@,|#_!!_#|/
   36119 :n
   36120 t n
   36121 s/'"$ac_delim"'$/,g/; t
   36122 s/$/\\/; p
   36123 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
   36124 ' >>$CONFIG_STATUS <conf$$subs.sed
   36125 rm -f conf$$subs.sed
   36126 cat >>$CONFIG_STATUS <<_ACEOF
   36127 :end
   36128 s/|#_!!_#|//g
   36129 CEOF$ac_eof
   36130 _ACEOF
   36131 
   36132 
   36133 # VPATH may cause trouble with some makes, so we remove $(srcdir),
   36134 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
   36135 # trailing colons and then remove the whole line if VPATH becomes empty
   36136 # (actually we leave an empty line to preserve line numbers).
   36137 if test "x$srcdir" = x.; then
   36138   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
   36139 s/:*\$(srcdir):*/:/
   36140 s/:*\${srcdir}:*/:/
   36141 s/:*@srcdir@:*/:/
   36142 s/^\([^=]*=[	 ]*\):*/\1/
   36143 s/:*$//
   36144 s/^[^=]*=[	 ]*$//
   36145 }'
   36146 fi
   36147 
   36148 cat >>$CONFIG_STATUS <<\_ACEOF
   36149 fi # test -n "$CONFIG_FILES"
   36150 
   36151 
   36152 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
   36153 do
   36154   case $ac_tag in
   36155   :[FHLC]) ac_mode=$ac_tag; continue;;
   36156   esac
   36157   case $ac_mode$ac_tag in
   36158   :[FHL]*:*);;
   36159   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
   36160 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
   36161    { (exit 1); exit 1; }; };;
   36162   :[FH]-) ac_tag=-:-;;
   36163   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   36164   esac
   36165   ac_save_IFS=$IFS
   36166   IFS=:
   36167   set x $ac_tag
   36168   IFS=$ac_save_IFS
   36169   shift
   36170   ac_file=$1
   36171   shift
   36172 
   36173   case $ac_mode in
   36174   :L) ac_source=$1;;
   36175   :[FH])
   36176     ac_file_inputs=
   36177     for ac_f
   36178     do
   36179       case $ac_f in
   36180       -) ac_f="$tmp/stdin";;
   36181       *) # Look for the file first in the build tree, then in the source tree
   36182 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   36183 	 # because $ac_f cannot contain `:'.
   36184 	 test -f "$ac_f" ||
   36185 	   case $ac_f in
   36186 	   [\\/$]*) false;;
   36187 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   36188 	   esac ||
   36189 	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
   36190 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
   36191    { (exit 1); exit 1; }; };;
   36192       esac
   36193       ac_file_inputs="$ac_file_inputs $ac_f"
   36194     done
   36195 
   36196     # Let's still pretend it is `configure' which instantiates (i.e., don't
   36197     # use $as_me), people would be surprised to read:
   36198     #    /* config.h.  Generated by config.status.  */
   36199     configure_input="Generated from "`IFS=:
   36200 	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
   36201     if test x"$ac_file" != x-; then
   36202       configure_input="$ac_file.  $configure_input"
   36203       { echo "$as_me:$LINENO: creating $ac_file" >&5
   36204 echo "$as_me: creating $ac_file" >&6;}
   36205     fi
   36206 
   36207     case $ac_tag in
   36208     *:-:* | *:-) cat >"$tmp/stdin";;
   36209     esac
   36210     ;;
   36211   esac
   36212 
   36213   ac_dir=`$as_dirname -- "$ac_file" ||
   36214 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   36215 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   36216 	 X"$ac_file" : 'X\(//\)$' \| \
   36217 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   36218 echo X"$ac_file" |
   36219     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   36220 	    s//\1/
   36221 	    q
   36222 	  }
   36223 	  /^X\(\/\/\)[^/].*/{
   36224 	    s//\1/
   36225 	    q
   36226 	  }
   36227 	  /^X\(\/\/\)$/{
   36228 	    s//\1/
   36229 	    q
   36230 	  }
   36231 	  /^X\(\/\).*/{
   36232 	    s//\1/
   36233 	    q
   36234 	  }
   36235 	  s/.*/./; q'`
   36236   { as_dir="$ac_dir"
   36237   case $as_dir in #(
   36238   -*) as_dir=./$as_dir;;
   36239   esac
   36240   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
   36241     as_dirs=
   36242     while :; do
   36243       case $as_dir in #(
   36244       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
   36245       *) as_qdir=$as_dir;;
   36246       esac
   36247       as_dirs="'$as_qdir' $as_dirs"
   36248       as_dir=`$as_dirname -- "$as_dir" ||
   36249 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   36250 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   36251 	 X"$as_dir" : 'X\(//\)$' \| \
   36252 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   36253 echo X"$as_dir" |
   36254     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   36255 	    s//\1/
   36256 	    q
   36257 	  }
   36258 	  /^X\(\/\/\)[^/].*/{
   36259 	    s//\1/
   36260 	    q
   36261 	  }
   36262 	  /^X\(\/\/\)$/{
   36263 	    s//\1/
   36264 	    q
   36265 	  }
   36266 	  /^X\(\/\).*/{
   36267 	    s//\1/
   36268 	    q
   36269 	  }
   36270 	  s/.*/./; q'`
   36271       test -d "$as_dir" && break
   36272     done
   36273     test -z "$as_dirs" || eval "mkdir $as_dirs"
   36274   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
   36275 echo "$as_me: error: cannot create directory $as_dir" >&2;}
   36276    { (exit 1); exit 1; }; }; }
   36277   ac_builddir=.
   36278 
   36279 case "$ac_dir" in
   36280 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   36281 *)
   36282   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   36283   # A ".." for each directory in $ac_dir_suffix.
   36284   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
   36285   case $ac_top_builddir_sub in
   36286   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   36287   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   36288   esac ;;
   36289 esac
   36290 ac_abs_top_builddir=$ac_pwd
   36291 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   36292 # for backward compatibility:
   36293 ac_top_builddir=$ac_top_build_prefix
   36294 
   36295 case $srcdir in
   36296   .)  # We are building in place.
   36297     ac_srcdir=.
   36298     ac_top_srcdir=$ac_top_builddir_sub
   36299     ac_abs_top_srcdir=$ac_pwd ;;
   36300   [\\/]* | ?:[\\/]* )  # Absolute name.
   36301     ac_srcdir=$srcdir$ac_dir_suffix;
   36302     ac_top_srcdir=$srcdir
   36303     ac_abs_top_srcdir=$srcdir ;;
   36304   *) # Relative name.
   36305     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   36306     ac_top_srcdir=$ac_top_build_prefix$srcdir
   36307     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   36308 esac
   36309 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   36310 
   36311 
   36312   case $ac_mode in
   36313   :F)
   36314   #
   36315   # CONFIG_FILE
   36316   #
   36317 
   36318   case $INSTALL in
   36319   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   36320   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   36321   esac
   36322 _ACEOF
   36323 
   36324 cat >>$CONFIG_STATUS <<\_ACEOF
   36325 # If the template does not know about datarootdir, expand it.
   36326 # FIXME: This hack should be removed a few years after 2.60.
   36327 ac_datarootdir_hack=; ac_datarootdir_seen=
   36328 
   36329 case `sed -n '/datarootdir/ {
   36330   p
   36331   q
   36332 }
   36333 /@datadir@/p
   36334 /@docdir@/p
   36335 /@infodir@/p
   36336 /@localedir@/p
   36337 /@mandir@/p
   36338 ' $ac_file_inputs` in
   36339 *datarootdir*) ac_datarootdir_seen=yes;;
   36340 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   36341   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   36342 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   36343 _ACEOF
   36344 cat >>$CONFIG_STATUS <<_ACEOF
   36345   ac_datarootdir_hack='
   36346   s&@datadir@&$datadir&g
   36347   s&@docdir@&$docdir&g
   36348   s&@infodir@&$infodir&g
   36349   s&@localedir@&$localedir&g
   36350   s&@mandir@&$mandir&g
   36351     s&\\\${datarootdir}&$datarootdir&g' ;;
   36352 esac
   36353 _ACEOF
   36354 
   36355 # Neutralize VPATH when `$srcdir' = `.'.
   36356 # Shell code in configure.ac might set extrasub.
   36357 # FIXME: do we really want to maintain this feature?
   36358 cat >>$CONFIG_STATUS <<_ACEOF
   36359   sed "$ac_vpsub
   36360 $extrasub
   36361 _ACEOF
   36362 cat >>$CONFIG_STATUS <<\_ACEOF
   36363 :t
   36364 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   36365 s&@configure_input@&$configure_input&;t t
   36366 s&@top_builddir@&$ac_top_builddir_sub&;t t
   36367 s&@srcdir@&$ac_srcdir&;t t
   36368 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   36369 s&@top_srcdir@&$ac_top_srcdir&;t t
   36370 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   36371 s&@builddir@&$ac_builddir&;t t
   36372 s&@abs_builddir@&$ac_abs_builddir&;t t
   36373 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   36374 s&@INSTALL@&$ac_INSTALL&;t t
   36375 $ac_datarootdir_hack
   36376 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
   36377 
   36378 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   36379   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
   36380   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
   36381   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   36382 which seems to be undefined.  Please make sure it is defined." >&5
   36383 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   36384 which seems to be undefined.  Please make sure it is defined." >&2;}
   36385 
   36386   rm -f "$tmp/stdin"
   36387   case $ac_file in
   36388   -) cat "$tmp/out"; rm -f "$tmp/out";;
   36389   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
   36390   esac
   36391  ;;
   36392   :H)
   36393   #
   36394   # CONFIG_HEADER
   36395   #
   36396 _ACEOF
   36397 
   36398 # Transform confdefs.h into a sed script `conftest.defines', that
   36399 # substitutes the proper values into config.h.in to produce config.h.
   36400 rm -f conftest.defines conftest.tail
   36401 # First, append a space to every undef/define line, to ease matching.
   36402 echo 's/$/ /' >conftest.defines
   36403 # Then, protect against being on the right side of a sed subst, or in
   36404 # an unquoted here document, in config.status.  If some macros were
   36405 # called several times there might be several #defines for the same
   36406 # symbol, which is useless.  But do not sort them, since the last
   36407 # AC_DEFINE must be honored.
   36408 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   36409 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
   36410 # NAME is the cpp macro being defined, VALUE is the value it is being given.
   36411 # PARAMS is the parameter list in the macro definition--in most cases, it's
   36412 # just an empty string.
   36413 ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
   36414 ac_dB='\\)[	 (].*,\\1define\\2'
   36415 ac_dC=' '
   36416 ac_dD=' ,'
   36417 
   36418 uniq confdefs.h |
   36419   sed -n '
   36420 	t rset
   36421 	:rset
   36422 	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
   36423 	t ok
   36424 	d
   36425 	:ok
   36426 	s/[\\&,]/\\&/g
   36427 	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
   36428 	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
   36429   ' >>conftest.defines
   36430 
   36431 # Remove the space that was appended to ease matching.
   36432 # Then replace #undef with comments.  This is necessary, for
   36433 # example, in the case of _POSIX_SOURCE, which is predefined and required
   36434 # on some systems where configure will not decide to define it.
   36435 # (The regexp can be short, since the line contains either #define or #undef.)
   36436 echo 's/ $//
   36437 s,^[	 #]*u.*,/* & */,' >>conftest.defines
   36438 
   36439 # Break up conftest.defines:
   36440 ac_max_sed_lines=50
   36441 
   36442 # First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
   36443 # Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
   36444 # Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
   36445 # et cetera.
   36446 ac_in='$ac_file_inputs'
   36447 ac_out='"$tmp/out1"'
   36448 ac_nxt='"$tmp/out2"'
   36449 
   36450 while :
   36451 do
   36452   # Write a here document:
   36453     cat >>$CONFIG_STATUS <<_ACEOF
   36454     # First, check the format of the line:
   36455     cat >"\$tmp/defines.sed" <<\\CEOF
   36456 /^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
   36457 /^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
   36458 b
   36459 :def
   36460 _ACEOF
   36461   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
   36462   echo 'CEOF
   36463     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
   36464   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
   36465   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
   36466   grep . conftest.tail >/dev/null || break
   36467   rm -f conftest.defines
   36468   mv conftest.tail conftest.defines
   36469 done
   36470 rm -f conftest.defines conftest.tail
   36471 
   36472 echo "ac_result=$ac_in" >>$CONFIG_STATUS
   36473 cat >>$CONFIG_STATUS <<\_ACEOF
   36474   if test x"$ac_file" != x-; then
   36475     echo "/* $configure_input  */" >"$tmp/config.h"
   36476     cat "$ac_result" >>"$tmp/config.h"
   36477     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
   36478       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
   36479 echo "$as_me: $ac_file is unchanged" >&6;}
   36480     else
   36481       rm -f $ac_file
   36482       mv "$tmp/config.h" $ac_file
   36483     fi
   36484   else
   36485     echo "/* $configure_input  */"
   36486     cat "$ac_result"
   36487   fi
   36488   rm -f "$tmp/out12"
   36489  ;;
   36490 
   36491 
   36492   esac
   36493 
   36494 done # for ac_tag
   36495 
   36496 
   36497 { (exit 0); exit 0; }
   36498 _ACEOF
   36499 chmod +x $CONFIG_STATUS
   36500 ac_clean_files=$ac_clean_files_save
   36501 
   36502 
   36503 # configure is writing to config.log, and then calls config.status.
   36504 # config.status does its own redirection, appending to config.log.
   36505 # Unfortunately, on DOS this fails, as config.log is still kept open
   36506 # by configure, so config.status won't be able to write to it; its
   36507 # output is simply discarded.  So we exec the FD to /dev/null,
   36508 # effectively closing config.log, so it can be properly (re)opened and
   36509 # appended to by config.status.  When coming back to configure, we
   36510 # need to make the FD available again.
   36511 if test "$no_create" != yes; then
   36512   ac_cs_success=:
   36513   ac_config_status_args=
   36514   test "$silent" = yes &&
   36515     ac_config_status_args="$ac_config_status_args --quiet"
   36516   exec 5>/dev/null
   36517   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   36518   exec 5>>config.log
   36519   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   36520   # would make configure fail if this is the last instruction.
   36521   $ac_cs_success || { (exit 1); exit 1; }
   36522 fi
   36523 
   36524 
   36525 # Print summary of options
   36526 
   36527 # Someone please show me a better way :)
   36528 A=`eval echo ${prefix}` ; A=`eval echo ${A}`
   36529 B=`eval echo ${bindir}` ; B=`eval echo ${B}`
   36530 C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
   36531 D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
   36532 E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
   36533 F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
   36534 G=`eval echo ${piddir}` ; G=`eval echo ${G}`
   36535 H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
   36536 I=`eval echo ${user_path}` ; I=`eval echo ${I}`
   36537 J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
   36538 
   36539 echo ""
   36540 echo "OpenSSH has been configured with the following options:"
   36541 echo "                     User binaries: $B"
   36542 echo "                   System binaries: $C"
   36543 echo "               Configuration files: $D"
   36544 echo "                   Askpass program: $E"
   36545 echo "                      Manual pages: $F"
   36546 echo "                          PID file: $G"
   36547 echo "  Privilege separation chroot path: $H"
   36548 if test "x$external_path_file" = "x/etc/login.conf" ; then
   36549 echo "   At runtime, sshd will use the path defined in $external_path_file"
   36550 echo "   Make sure the path to scp is present, otherwise scp will not work"
   36551 else
   36552 echo "            sshd default user PATH: $I"
   36553 	if test ! -z "$external_path_file"; then
   36554 echo "   (If PATH is set in $external_path_file it will be used instead. If"
   36555 echo "   used, ensure the path to scp is present, otherwise scp will not work.)"
   36556 	fi
   36557 fi
   36558 if test ! -z "$superuser_path" ; then
   36559 echo "          sshd superuser user PATH: $J"
   36560 fi
   36561 echo "                    Manpage format: $MANTYPE"
   36562 echo "                       PAM support: $PAM_MSG"
   36563 echo "                   OSF SIA support: $SIA_MSG"
   36564 echo "                 KerberosV support: $KRB5_MSG"
   36565 echo "                   SELinux support: $SELINUX_MSG"
   36566 echo "                 Smartcard support: $SCARD_MSG"
   36567 echo "                     S/KEY support: $SKEY_MSG"
   36568 echo "              MD5 password support: $MD5_MSG"
   36569 echo "                   libedit support: $LIBEDIT_MSG"
   36570 echo "  Solaris process contract support: $SPC_MSG"
   36571 echo "           Solaris project support: $SP_MSG"
   36572 echo "       IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
   36573 echo "           Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
   36574 echo "                  BSD Auth support: $BSD_AUTH_MSG"
   36575 echo "              Random number source: $RAND_MSG"
   36576 echo "             Privsep sandbox style: $SANDBOX_STYLE"
   36577 
   36578 echo ""
   36579 
   36580 echo "              Host: ${host}"
   36581 echo "          Compiler: ${CC}"
   36582 echo "    Compiler flags: ${CFLAGS}"
   36583 echo "Preprocessor flags: ${CPPFLAGS}"
   36584 echo "      Linker flags: ${LDFLAGS}"
   36585 echo "         Libraries: ${LIBS}"
   36586 if test ! -z "${SSHDLIBS}"; then
   36587 echo "         +for sshd: ${SSHDLIBS}"
   36588 fi
   36589 if test ! -z "${SSHLIBS}"; then
   36590 echo "          +for ssh: ${SSHLIBS}"
   36591 fi
   36592 
   36593 echo ""
   36594 
   36595 if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
   36596 	echo "SVR4 style packages are supported with \"make package\""
   36597 	echo ""
   36598 fi
   36599 
   36600 if test "x$PAM_MSG" = "xyes" ; then
   36601 	echo "PAM is enabled. You may need to install a PAM control file "
   36602 	echo "for sshd, otherwise password authentication may fail. "
   36603 	echo "Example PAM control files can be found in the contrib/ "
   36604 	echo "subdirectory"
   36605 	echo ""
   36606 fi
   36607 
   36608 if test ! -z "$NO_PEERCHECK" ; then
   36609 	echo "WARNING: the operating system that you are using does not"
   36610 	echo "appear to support getpeereid(), getpeerucred() or the"
   36611 	echo "SO_PEERCRED getsockopt() option. These facilities are used to"
   36612 	echo "enforce security checks to prevent unauthorised connections to"
   36613 	echo "ssh-agent. Their absence increases the risk that a malicious"
   36614 	echo "user can connect to your agent."
   36615 	echo ""
   36616 fi
   36617 
   36618 if test "$AUDIT_MODULE" = "bsm" ; then
   36619 	echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
   36620 	echo "See the Solaris section in README.platform for details."
   36621 fi
   36622