2 # From configure.ac Revision: 1.469 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for OpenSSH Portable.
6 # Report bugs to <openssh-unix-dev@mindrot.org>.
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 ## --------------------- ##
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
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+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
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
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
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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
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 \
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
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 ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
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
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir=.
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
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
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+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
261 CONFIG_SHELL=$as_shell
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
289 as_func_ret_success () {
292 as_func_ret_failure () {
297 if as_func_success; then
301 echo as_func_success failed.
304 if as_func_failure; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
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; }
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
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
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; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
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
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
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
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. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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; }; }
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).
464 # Exit status is that of the last command.
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
475 ECHO_C= ECHO_N= ECHO_T=
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
509 elif ln conf$$.file conf$$ 2>/dev/null; then
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
520 test -d ./-p && rmdir ./-p
524 if test -x / >/dev/null 2>&1; then
527 if ls -dL / >/dev/null 2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p=$as_test_x
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'"
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'"
555 exec 7<&0 </dev/null 6>&1
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`
565 ac_default_prefix=/usr/local
567 ac_config_libobj_dir=.
573 SHELL=${CONFIG_SHELL-/bin/sh}
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'
582 ac_unique_file="ssh.c"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
596 # ifdef HAVE_STDLIB_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
628 program_transform_name
694 MAKE_PACKAGE_SUPPORTED
696 LOGIN_PROGRAM_FALLBACK
705 INSTALL_SSH_RAND_HELPER
723 INSTALL_SSH_PRNG_CMDS
737 ac_precious_vars='build_alias
748 # Initialize some variables set by options.
750 ac_init_version=false
751 # The variables have the same names as the options, with
752 # dashes changed to underlines.
760 program_transform_name=s,x,x,
768 # Installation directory options.
769 # These are left unexpanded so users can "make install exec_prefix=/foo"
770 # and all the variables that are supposed to be based on exec_prefix
771 # by default will actually change.
772 # Use braces instead of parens because sh, perl, etc. also accept them.
773 # (The list follows the same order as the GNU Coding Standards.)
774 bindir='${exec_prefix}/bin'
775 sbindir='${exec_prefix}/sbin'
776 libexecdir='${exec_prefix}/libexec'
777 datarootdir='${prefix}/share'
778 datadir='${datarootdir}'
779 sysconfdir='${prefix}/etc'
780 sharedstatedir='${prefix}/com'
781 localstatedir='${prefix}/var'
782 includedir='${prefix}/include'
783 oldincludedir='/usr/include'
784 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
785 infodir='${datarootdir}/info'
790 libdir='${exec_prefix}/lib'
791 localedir='${datarootdir}/locale'
792 mandir='${datarootdir}/man'
798 # If the previous option needs an argument, assign it.
799 if test -n "$ac_prev"; then
800 eval $ac_prev=\$ac_option
806 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 # Accept the important Cygnus configure options, so we can diagnose typos.
812 case $ac_dashdash$ac_option in
816 -bindir | --bindir | --bindi | --bind | --bin | --bi)
818 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
821 -build | --build | --buil | --bui | --bu)
822 ac_prev=build_alias ;;
823 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
824 build_alias=$ac_optarg ;;
826 -cache-file | --cache-file | --cache-fil | --cache-fi \
827 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
828 ac_prev=cache_file ;;
829 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
830 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
831 cache_file=$ac_optarg ;;
834 cache_file=config.cache ;;
836 -datadir | --datadir | --datadi | --datad)
838 -datadir=* | --datadir=* | --datadi=* | --datad=*)
839 datadir=$ac_optarg ;;
841 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
842 | --dataroo | --dataro | --datar)
843 ac_prev=datarootdir ;;
844 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
845 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
846 datarootdir=$ac_optarg ;;
848 -disable-* | --disable-*)
849 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
850 # Reject names that are not valid shell variable names.
851 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
852 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
853 { (exit 1); exit 1; }; }
854 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
855 eval enable_$ac_feature=no ;;
857 -docdir | --docdir | --docdi | --doc | --do)
859 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
862 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
864 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
867 -enable-* | --enable-*)
868 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
869 # Reject names that are not valid shell variable names.
870 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
871 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
872 { (exit 1); exit 1; }; }
873 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
874 eval enable_$ac_feature=\$ac_optarg ;;
876 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
877 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
878 | --exec | --exe | --ex)
879 ac_prev=exec_prefix ;;
880 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
881 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
882 | --exec=* | --exe=* | --ex=*)
883 exec_prefix=$ac_optarg ;;
885 -gas | --gas | --ga | --g)
886 # Obsolete; use --with-gas.
889 -help | --help | --hel | --he | -h)
891 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
892 ac_init_help=recursive ;;
893 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
894 ac_init_help=short ;;
896 -host | --host | --hos | --ho)
897 ac_prev=host_alias ;;
898 -host=* | --host=* | --hos=* | --ho=*)
899 host_alias=$ac_optarg ;;
901 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
903 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
905 htmldir=$ac_optarg ;;
907 -includedir | --includedir | --includedi | --included | --include \
908 | --includ | --inclu | --incl | --inc)
909 ac_prev=includedir ;;
910 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
911 | --includ=* | --inclu=* | --incl=* | --inc=*)
912 includedir=$ac_optarg ;;
914 -infodir | --infodir | --infodi | --infod | --info | --inf)
916 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
917 infodir=$ac_optarg ;;
919 -libdir | --libdir | --libdi | --libd)
921 -libdir=* | --libdir=* | --libdi=* | --libd=*)
924 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
925 | --libexe | --libex | --libe)
926 ac_prev=libexecdir ;;
927 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
928 | --libexe=* | --libex=* | --libe=*)
929 libexecdir=$ac_optarg ;;
931 -localedir | --localedir | --localedi | --localed | --locale)
933 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
934 localedir=$ac_optarg ;;
936 -localstatedir | --localstatedir | --localstatedi | --localstated \
937 | --localstate | --localstat | --localsta | --localst | --locals)
938 ac_prev=localstatedir ;;
939 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
940 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
941 localstatedir=$ac_optarg ;;
943 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
945 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
949 # Obsolete; use --without-fp.
952 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
953 | --no-cr | --no-c | -n)
956 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
957 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
960 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
961 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
962 | --oldin | --oldi | --old | --ol | --o)
963 ac_prev=oldincludedir ;;
964 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
965 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
966 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
967 oldincludedir=$ac_optarg ;;
969 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
971 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
974 -program-prefix | --program-prefix | --program-prefi | --program-pref \
975 | --program-pre | --program-pr | --program-p)
976 ac_prev=program_prefix ;;
977 -program-prefix=* | --program-prefix=* | --program-prefi=* \
978 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
979 program_prefix=$ac_optarg ;;
981 -program-suffix | --program-suffix | --program-suffi | --program-suff \
982 | --program-suf | --program-su | --program-s)
983 ac_prev=program_suffix ;;
984 -program-suffix=* | --program-suffix=* | --program-suffi=* \
985 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
986 program_suffix=$ac_optarg ;;
988 -program-transform-name | --program-transform-name \
989 | --program-transform-nam | --program-transform-na \
990 | --program-transform-n | --program-transform- \
991 | --program-transform | --program-transfor \
992 | --program-transfo | --program-transf \
993 | --program-trans | --program-tran \
994 | --progr-tra | --program-tr | --program-t)
995 ac_prev=program_transform_name ;;
996 -program-transform-name=* | --program-transform-name=* \
997 | --program-transform-nam=* | --program-transform-na=* \
998 | --program-transform-n=* | --program-transform-=* \
999 | --program-transform=* | --program-transfor=* \
1000 | --program-transfo=* | --program-transf=* \
1001 | --program-trans=* | --program-tran=* \
1002 | --progr-tra=* | --program-tr=* | --program-t=*)
1003 program_transform_name=$ac_optarg ;;
1005 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1007 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1008 pdfdir=$ac_optarg ;;
1010 -psdir | --psdir | --psdi | --psd | --ps)
1012 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1016 | -silent | --silent | --silen | --sile | --sil)
1019 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1021 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1023 sbindir=$ac_optarg ;;
1025 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1026 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1027 | --sharedst | --shareds | --shared | --share | --shar \
1029 ac_prev=sharedstatedir ;;
1030 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1031 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1032 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1034 sharedstatedir=$ac_optarg ;;
1036 -site | --site | --sit)
1038 -site=* | --site=* | --sit=*)
1041 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1043 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1044 srcdir=$ac_optarg ;;
1046 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1047 | --syscon | --sysco | --sysc | --sys | --sy)
1048 ac_prev=sysconfdir ;;
1049 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1050 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1051 sysconfdir=$ac_optarg ;;
1053 -target | --target | --targe | --targ | --tar | --ta | --t)
1054 ac_prev=target_alias ;;
1055 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1056 target_alias=$ac_optarg ;;
1058 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1061 -version | --version | --versio | --versi | --vers | -V)
1062 ac_init_version=: ;;
1065 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1068 { echo "$as_me: error: invalid package name: $ac_package" >&2
1069 { (exit 1); exit 1; }; }
1070 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1071 eval with_$ac_package=\$ac_optarg ;;
1073 -without-* | --without-*)
1074 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1077 { echo "$as_me: error: invalid package name: $ac_package" >&2
1078 { (exit 1); exit 1; }; }
1079 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1080 eval with_$ac_package=no ;;
1083 # Obsolete; use --with-x.
1086 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1087 | --x-incl | --x-inc | --x-in | --x-i)
1088 ac_prev=x_includes ;;
1089 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1090 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1091 x_includes=$ac_optarg ;;
1093 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1094 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1095 ac_prev=x_libraries ;;
1096 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1097 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1098 x_libraries=$ac_optarg ;;
1100 -*) { echo "$as_me: error: unrecognized option: $ac_option
1101 Try \`$0 --help' for more information." >&2
1102 { (exit 1); exit 1; }; }
1106 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1109 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1110 { (exit 1); exit 1; }; }
1111 eval $ac_envvar=\$ac_optarg
1112 export $ac_envvar ;;
1115 # FIXME: should be removed in autoconf 3.0.
1116 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1117 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1118 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1119 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1125 if test -n "$ac_prev"; then
1126 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1127 { echo "$as_me: error: missing argument to $ac_option" >&2
1128 { (exit 1); exit 1; }; }
1131 # Be sure to have absolute directory names.
1132 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1133 datadir sysconfdir sharedstatedir localstatedir includedir \
1134 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1135 libdir localedir mandir
1137 eval ac_val=\$$ac_var
1139 [\\/$]* | ?:[\\/]* ) continue;;
1140 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1142 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1143 { (exit 1); exit 1; }; }
1146 # There might be people who depend on the old broken behavior: `$host'
1147 # used to hold the argument of --host etc.
1148 # FIXME: To remove some day.
1151 target=$target_alias
1153 # FIXME: To remove some day.
1154 if test "x$host_alias" != x; then
1155 if test "x$build_alias" = x; then
1156 cross_compiling=maybe
1157 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1158 If a cross compiler is detected then cross compile mode will be used." >&2
1159 elif test "x$build_alias" != "x$host_alias"; then
1165 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1167 test "$silent" = yes && exec 6>/dev/null
1170 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1171 ac_ls_di=`ls -di .` &&
1172 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1173 { echo "$as_me: error: Working directory cannot be determined" >&2
1174 { (exit 1); exit 1; }; }
1175 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1176 { echo "$as_me: error: pwd does not report name of working directory" >&2
1177 { (exit 1); exit 1; }; }
1180 # Find the source files, if location was not specified.
1181 if test -z "$srcdir"; then
1182 ac_srcdir_defaulted=yes
1183 # Try the directory containing this script, then the parent directory.
1184 ac_confdir=`$as_dirname -- "$0" ||
1185 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1186 X"$0" : 'X\(//\)[^/]' \| \
1187 X"$0" : 'X\(//\)$' \| \
1188 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1208 if test ! -r "$srcdir/$ac_unique_file"; then
1212 ac_srcdir_defaulted=no
1214 if test ! -r "$srcdir/$ac_unique_file"; then
1215 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1216 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1217 { (exit 1); exit 1; }; }
1219 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1221 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1222 { (exit 1); exit 1; }; }
1224 # When building in place, set srcdir=.
1225 if test "$ac_abs_confdir" = "$ac_pwd"; then
1228 # Remove unnecessary trailing slashes from srcdir.
1229 # Double slashes in file names in object file debugging info
1230 # mess up M-x gdb in Emacs.
1232 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1234 for ac_var in $ac_precious_vars; do
1235 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1236 eval ac_env_${ac_var}_value=\$${ac_var}
1237 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1238 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1242 # Report the --help message.
1244 if test "$ac_init_help" = "long"; then
1245 # Omit some internal or obsolete options to make the list less imposing.
1246 # This message is too long to be a string in the A/UX 3.1 sh.
1248 \`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1250 Usage: $0 [OPTION]... [VAR=VALUE]...
1252 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1253 VAR=VALUE. See below for descriptions of some of the useful variables.
1255 Defaults for the options are specified in brackets.
1258 -h, --help display this help and exit
1259 --help=short display options specific to this package
1260 --help=recursive display the short help of all the included packages
1261 -V, --version display version information and exit
1262 -q, --quiet, --silent do not print \`checking...' messages
1263 --cache-file=FILE cache test results in FILE [disabled]
1264 -C, --config-cache alias for \`--cache-file=config.cache'
1265 -n, --no-create do not create output files
1266 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1268 Installation directories:
1269 --prefix=PREFIX install architecture-independent files in PREFIX
1270 [$ac_default_prefix]
1271 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1274 By default, \`make install' will install all the files in
1275 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1276 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1277 for instance \`--prefix=\$HOME'.
1279 For better control, use the options below.
1281 Fine tuning of the installation directories:
1282 --bindir=DIR user executables [EPREFIX/bin]
1283 --sbindir=DIR system admin executables [EPREFIX/sbin]
1284 --libexecdir=DIR program executables [EPREFIX/libexec]
1285 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1286 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1287 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1288 --libdir=DIR object code libraries [EPREFIX/lib]
1289 --includedir=DIR C header files [PREFIX/include]
1290 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1291 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1292 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1293 --infodir=DIR info documentation [DATAROOTDIR/info]
1294 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1295 --mandir=DIR man documentation [DATAROOTDIR/man]
1296 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1297 --htmldir=DIR html documentation [DOCDIR]
1298 --dvidir=DIR dvi documentation [DOCDIR]
1299 --pdfdir=DIR pdf documentation [DOCDIR]
1300 --psdir=DIR ps documentation [DOCDIR]
1306 --build=BUILD configure for building on BUILD [guessed]
1307 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1311 if test -n "$ac_init_help"; then
1312 case $ac_init_help in
1313 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1318 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1319 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1320 --disable-largefile omit support for large files
1321 --disable-strip Disable calling strip(1) on install
1322 --disable-etc-default-login Disable using PATH from /etc/default/login no
1323 --disable-lastlog disable use of lastlog even if detected no
1324 --disable-utmp disable use of utmp even if detected no
1325 --disable-utmpx disable use of utmpx even if detected no
1326 --disable-wtmp disable use of wtmp even if detected no
1327 --disable-wtmpx disable use of wtmpx even if detected no
1328 --disable-libutil disable use of libutil (login() etc.) no
1329 --disable-pututline disable use of pututline() etc. (uwtmp) no
1330 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1333 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1334 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1335 --without-stackprotect Don't use compiler's stack protection
1336 --without-rpath Disable auto-added -R linker paths
1337 --with-cflags Specify additional flags to pass to compiler
1338 --with-cppflags Specify additional flags to pass to preprocessor
1339 --with-ldflags Specify additional flags to pass to linker
1340 --with-libs Specify additional libraries to link with
1341 --with-Werror Build main code with -Werror
1342 --with-solaris-contracts Enable Solaris process contracts (experimental)
1343 --with-solaris-projects Enable Solaris projects (experimental)
1344 --with-osfsia Enable Digital Unix SIA
1345 --with-zlib=PATH Use zlib in PATH
1346 --without-zlib-version-check Disable zlib version check
1347 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1348 --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
1349 --with-libedit[=PATH] Enable libedit support for sftp
1350 --with-audit=module Enable audit support (modules=debug,bsm,linux)
1351 --with-ssl-dir=PATH Specify path to OpenSSL installation
1352 --without-openssl-header-check Disable OpenSSL version consistency check
1353 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1354 --with-pam Enable PAM support
1355 --with-rand-helper Use subprocess to gather strong randomness
1356 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1357 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1358 --with-entropy-timeout Specify entropy gathering command timeout (msec)
1359 --with-privsep-user=user Specify non-privileged user for privilege separation
1360 --with-selinux Enable SELinux support
1361 --with-kerberos5=PATH Enable Kerberos 5 support
1362 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1363 --with-xauth=PATH Specify path to xauth program
1364 --with-mantype=man|cat|doc Set man page type
1365 --with-md5-passwords Enable use of MD5 passwords
1366 --without-shadow Disable shadow password support
1367 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
1368 --with-default-path= Specify default \$PATH environment for server
1369 --with-superuser-path= Specify different path for super-user
1370 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1371 --with-bsd-auth Enable BSD auth support
1372 --with-pid-dir=PATH Specify location of ssh.pid file
1373 --with-lastlog=FILE|DIR specify lastlog location common locations
1375 Some influential environment variables:
1376 CC C compiler command
1377 CFLAGS C compiler flags
1378 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1379 nonstandard directory <lib dir>
1380 LIBS libraries to pass to the linker, e.g. -l<library>
1381 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1382 you have headers in a nonstandard directory <include dir>
1385 Use these variables to override the choices made by `configure' or to help
1386 it to find libraries and programs with nonstandard names/locations.
1388 Report bugs to <openssh-unix-dev@mindrot.org>.
1393 if test "$ac_init_help" = "recursive"; then
1394 # If there are subdirs, report their specific --help.
1395 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1396 test -d "$ac_dir" || continue
1400 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1402 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1403 # A ".." for each directory in $ac_dir_suffix.
1404 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1405 case $ac_top_builddir_sub in
1406 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1407 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1410 ac_abs_top_builddir=$ac_pwd
1411 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1412 # for backward compatibility:
1413 ac_top_builddir=$ac_top_build_prefix
1416 .) # We are building in place.
1418 ac_top_srcdir=$ac_top_builddir_sub
1419 ac_abs_top_srcdir=$ac_pwd ;;
1420 [\\/]* | ?:[\\/]* ) # Absolute name.
1421 ac_srcdir=$srcdir$ac_dir_suffix;
1422 ac_top_srcdir=$srcdir
1423 ac_abs_top_srcdir=$srcdir ;;
1425 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1426 ac_top_srcdir=$ac_top_build_prefix$srcdir
1427 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1429 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1431 cd "$ac_dir" || { ac_status=$?; continue; }
1432 # Check for guested configure.
1433 if test -f "$ac_srcdir/configure.gnu"; then
1435 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1436 elif test -f "$ac_srcdir/configure"; then
1438 $SHELL "$ac_srcdir/configure" --help=recursive
1440 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1442 cd "$ac_pwd" || { ac_status=$?; break; }
1446 test -n "$ac_init_help" && exit $ac_status
1447 if $ac_init_version; then
1449 OpenSSH configure Portable
1450 generated by GNU Autoconf 2.61
1452 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1453 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1454 This configure script is free software; the Free Software Foundation
1455 gives unlimited permission to copy, distribute and modify it.
1459 cat >config.log <<_ACEOF
1460 This file contains any messages produced by compilers while
1461 running configure, to aid debugging if configure makes a mistake.
1463 It was created by OpenSSH $as_me Portable, which was
1464 generated by GNU Autoconf 2.61. Invocation command line was
1476 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1477 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1478 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1479 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1480 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1482 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1483 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1485 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1486 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1487 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1488 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1489 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1490 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1491 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1499 test -z "$as_dir" && as_dir=.
1500 echo "PATH: $as_dir"
1516 # Keep a trace of the command line.
1517 # Strip out --no-create and --no-recursion so they do not pile up.
1518 # Strip out --silent because we don't want to record it for future runs.
1519 # Also quote any args containing shell meta-characters.
1520 # Make two passes to allow for proper duplicate-argument suppression.
1524 ac_must_keep_next=false
1530 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1531 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1532 | -silent | --silent | --silen | --sile | --sil)
1535 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1538 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1540 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1541 if test $ac_must_keep_next = true; then
1542 ac_must_keep_next=false # Got value, back to normal.
1545 *=* | --config-cache | -C | -disable-* | --disable-* \
1546 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1547 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1548 | -with-* | --with-* | -without-* | --without-* | --x)
1549 case "$ac_configure_args0 " in
1550 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1553 -* ) ac_must_keep_next=true ;;
1556 ac_configure_args="$ac_configure_args '$ac_arg'"
1561 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1562 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1564 # When interrupted or exit'd, cleanup temporary files, and complete
1565 # config.log. We remove comments because anyway the quotes in there
1566 # would cause problems or look ugly.
1567 # WARNING: Use '\'' to represent an apostrophe within the trap.
1568 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1569 trap 'exit_status=$?
1570 # Save into config.log some information that might help in debugging.
1575 ## ---------------- ##
1576 ## Cache variables. ##
1577 ## ---------------- ##
1580 # The following way of writing the cache mishandles newlines in values,
1582 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1583 eval ac_val=\$$ac_var
1587 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1588 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1591 _ | IFS | as_nl) ;; #(
1592 *) $as_unset $ac_var ;;
1597 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1598 *${as_nl}ac_space=\ *)
1600 "s/'\''/'\''\\\\'\'''\''/g;
1601 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1604 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1612 ## ----------------- ##
1613 ## Output variables. ##
1614 ## ----------------- ##
1617 for ac_var in $ac_subst_vars
1619 eval ac_val=\$$ac_var
1621 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1623 echo "$ac_var='\''$ac_val'\''"
1627 if test -n "$ac_subst_files"; then
1629 ## ------------------- ##
1630 ## File substitutions. ##
1631 ## ------------------- ##
1634 for ac_var in $ac_subst_files
1636 eval ac_val=\$$ac_var
1638 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1640 echo "$ac_var='\''$ac_val'\''"
1645 if test -s confdefs.h; then
1655 test "$ac_signal" != 0 &&
1656 echo "$as_me: caught signal $ac_signal"
1657 echo "$as_me: exit $exit_status"
1659 rm -f core *.core core.conftest.* &&
1660 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1663 for ac_signal in 1 2 13 15; do
1664 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1668 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1669 rm -f -r conftest* confdefs.h
1671 # Predefined preprocessor variables.
1673 cat >>confdefs.h <<_ACEOF
1674 #define PACKAGE_NAME "$PACKAGE_NAME"
1678 cat >>confdefs.h <<_ACEOF
1679 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1683 cat >>confdefs.h <<_ACEOF
1684 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1688 cat >>confdefs.h <<_ACEOF
1689 #define PACKAGE_STRING "$PACKAGE_STRING"
1693 cat >>confdefs.h <<_ACEOF
1694 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1698 # Let the site file select an alternate cache file if it wants to.
1699 # Prefer explicitly selected file to automatically selected ones.
1700 if test -n "$CONFIG_SITE"; then
1701 set x "$CONFIG_SITE"
1702 elif test "x$prefix" != xNONE; then
1703 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1705 set x "$ac_default_prefix/share/config.site" \
1706 "$ac_default_prefix/etc/config.site"
1711 if test -r "$ac_site_file"; then
1712 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1713 echo "$as_me: loading site script $ac_site_file" >&6;}
1714 sed 's/^/| /' "$ac_site_file" >&5
1719 if test -r "$cache_file"; then
1720 # Some versions of bash will fail to source /dev/null (special
1721 # files actually), so we avoid doing that.
1722 if test -f "$cache_file"; then
1723 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1724 echo "$as_me: loading cache $cache_file" >&6;}
1726 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1727 *) . "./$cache_file";;
1731 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1732 echo "$as_me: creating cache $cache_file" >&6;}
1736 # Check that the precious variables saved in the cache have kept the same
1738 ac_cache_corrupted=false
1739 for ac_var in $ac_precious_vars; do
1740 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1741 eval ac_new_set=\$ac_env_${ac_var}_set
1742 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1743 eval ac_new_val=\$ac_env_${ac_var}_value
1744 case $ac_old_set,$ac_new_set in
1746 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1747 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1748 ac_cache_corrupted=: ;;
1750 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1751 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1752 ac_cache_corrupted=: ;;
1755 if test "x$ac_old_val" != "x$ac_new_val"; then
1756 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1757 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1758 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1759 echo "$as_me: former value: $ac_old_val" >&2;}
1760 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1761 echo "$as_me: current value: $ac_new_val" >&2;}
1762 ac_cache_corrupted=:
1765 # Pass precious variables to config.status.
1766 if test "$ac_new_set" = set; then
1768 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1769 *) ac_arg=$ac_var=$ac_new_val ;;
1771 case " $ac_configure_args " in
1772 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1773 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1777 if $ac_cache_corrupted; then
1778 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1779 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1780 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1781 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1782 { (exit 1); exit 1; }; }
1810 ac_cpp='$CPP $CPPFLAGS'
1811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1822 ac_config_headers="$ac_config_headers config.h"
1825 ac_cpp='$CPP $CPPFLAGS'
1826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1829 if test -n "$ac_tool_prefix"; then
1830 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1831 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1834 if test "${ac_cv_prog_CC+set}" = set; then
1835 echo $ECHO_N "(cached) $ECHO_C" >&6
1837 if test -n "$CC"; then
1838 ac_cv_prog_CC="$CC" # Let the user override the test.
1840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844 test -z "$as_dir" && as_dir=.
1845 for ac_exec_ext in '' $ac_executable_extensions; do
1846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1847 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1858 if test -n "$CC"; then
1859 { echo "$as_me:$LINENO: result: $CC" >&5
1860 echo "${ECHO_T}$CC" >&6; }
1862 { echo "$as_me:$LINENO: result: no" >&5
1863 echo "${ECHO_T}no" >&6; }
1868 if test -z "$ac_cv_prog_CC"; then
1870 # Extract the first word of "gcc", so it can be a program name with args.
1871 set dummy gcc; ac_word=$2
1872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1874 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1875 echo $ECHO_N "(cached) $ECHO_C" >&6
1877 if test -n "$ac_ct_CC"; then
1878 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 test -z "$as_dir" && as_dir=.
1885 for ac_exec_ext in '' $ac_executable_extensions; do
1886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1887 ac_cv_prog_ac_ct_CC="gcc"
1888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1898 if test -n "$ac_ct_CC"; then
1899 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1900 echo "${ECHO_T}$ac_ct_CC" >&6; }
1902 { echo "$as_me:$LINENO: result: no" >&5
1903 echo "${ECHO_T}no" >&6; }
1906 if test "x$ac_ct_CC" = x; then
1909 case $cross_compiling:$ac_tool_warned in
1911 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1912 whose name does not start with the host triplet. If you think this
1913 configuration is useful to you, please write to autoconf@gnu.org." >&5
1914 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1915 whose name does not start with the host triplet. If you think this
1916 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1917 ac_tool_warned=yes ;;
1925 if test -z "$CC"; then
1926 if test -n "$ac_tool_prefix"; then
1927 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1928 set dummy ${ac_tool_prefix}cc; ac_word=$2
1929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1931 if test "${ac_cv_prog_CC+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 if test -n "$CC"; then
1935 ac_cv_prog_CC="$CC" # Let the user override the test.
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 test -z "$as_dir" && as_dir=.
1942 for ac_exec_ext in '' $ac_executable_extensions; do
1943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1944 ac_cv_prog_CC="${ac_tool_prefix}cc"
1945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1955 if test -n "$CC"; then
1956 { echo "$as_me:$LINENO: result: $CC" >&5
1957 echo "${ECHO_T}$CC" >&6; }
1959 { echo "$as_me:$LINENO: result: no" >&5
1960 echo "${ECHO_T}no" >&6; }
1966 if test -z "$CC"; then
1967 # Extract the first word of "cc", so it can be a program name with args.
1968 set dummy cc; ac_word=$2
1969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1971 if test "${ac_cv_prog_CC+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 if test -n "$CC"; then
1975 ac_cv_prog_CC="$CC" # Let the user override the test.
1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 test -z "$as_dir" && as_dir=.
1983 for ac_exec_ext in '' $ac_executable_extensions; do
1984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1985 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1986 ac_prog_rejected=yes
1990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997 if test $ac_prog_rejected = yes; then
1998 # We found a bogon in the path, so make sure we never use it.
1999 set dummy $ac_cv_prog_CC
2001 if test $# != 0; then
2002 # We chose a different compiler from the bogus one.
2003 # However, it has the same basename, so the bogon will be chosen
2004 # first if we set CC to just the basename; use the full file name.
2006 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2012 if test -n "$CC"; then
2013 { echo "$as_me:$LINENO: result: $CC" >&5
2014 echo "${ECHO_T}$CC" >&6; }
2016 { echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6; }
2022 if test -z "$CC"; then
2023 if test -n "$ac_tool_prefix"; then
2024 for ac_prog in cl.exe
2026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2027 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2030 if test "${ac_cv_prog_CC+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 if test -n "$CC"; then
2034 ac_cv_prog_CC="$CC" # Let the user override the test.
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2043 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 if test -n "$CC"; then
2055 { echo "$as_me:$LINENO: result: $CC" >&5
2056 echo "${ECHO_T}$CC" >&6; }
2058 { echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6; }
2063 test -n "$CC" && break
2066 if test -z "$CC"; then
2068 for ac_prog in cl.exe
2070 # Extract the first word of "$ac_prog", so it can be a program name with args.
2071 set dummy $ac_prog; ac_word=$2
2072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2074 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2075 echo $ECHO_N "(cached) $ECHO_C" >&6
2077 if test -n "$ac_ct_CC"; then
2078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 test -z "$as_dir" && as_dir=.
2085 for ac_exec_ext in '' $ac_executable_extensions; do
2086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2087 ac_cv_prog_ac_ct_CC="$ac_prog"
2088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2098 if test -n "$ac_ct_CC"; then
2099 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2100 echo "${ECHO_T}$ac_ct_CC" >&6; }
2102 { echo "$as_me:$LINENO: result: no" >&5
2103 echo "${ECHO_T}no" >&6; }
2107 test -n "$ac_ct_CC" && break
2110 if test "x$ac_ct_CC" = x; then
2113 case $cross_compiling:$ac_tool_warned in
2115 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2116 whose name does not start with the host triplet. If you think this
2117 configuration is useful to you, please write to autoconf@gnu.org." >&5
2118 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2119 whose name does not start with the host triplet. If you think this
2120 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2121 ac_tool_warned=yes ;;
2130 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2131 See \`config.log' for more details." >&5
2132 echo "$as_me: error: no acceptable C compiler found in \$PATH
2133 See \`config.log' for more details." >&2;}
2134 { (exit 1); exit 1; }; }
2136 # Provide some information about the compiler.
2137 echo "$as_me:$LINENO: checking for C compiler version" >&5
2138 ac_compiler=`set X $ac_compile; echo $2`
2139 { (ac_try="$ac_compiler --version >&5"
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2145 (eval "$ac_compiler --version >&5") 2>&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }
2149 { (ac_try="$ac_compiler -v >&5"
2151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2152 *) ac_try_echo=$ac_try;;
2154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2155 (eval "$ac_compiler -v >&5") 2>&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }
2159 { (ac_try="$ac_compiler -V >&5"
2161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2162 *) ac_try_echo=$ac_try;;
2164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2165 (eval "$ac_compiler -V >&5") 2>&5
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }
2170 cat >conftest.$ac_ext <<_ACEOF
2173 cat confdefs.h >>conftest.$ac_ext
2174 cat >>conftest.$ac_ext <<_ACEOF
2175 /* end confdefs.h. */
2185 ac_clean_files_save=$ac_clean_files
2186 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2187 # Try to create an executable without -o first, disregard a.out.
2188 # It will help us diagnose broken compilers, and finding out an intuition
2190 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2191 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2192 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2194 # List of possible output files, starting from the most likely.
2195 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2196 # only as a last resort. b.out is created by i960 compilers.
2197 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2199 # The IRIX 6 linker writes into existing files which may not be
2200 # executable, retaining their permissions. Remove them first so a
2201 # subsequent execution test works.
2203 for ac_file in $ac_files
2206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2207 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2212 if { (ac_try="$ac_link_default"
2214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2215 *) ac_try_echo=$ac_try;;
2217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2218 (eval "$ac_link_default") 2>&5
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; then
2222 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2223 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2224 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2225 # so that the user can short-circuit this test for compilers unknown to
2227 for ac_file in $ac_files ''
2229 test -f "$ac_file" || continue
2231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2234 # We found the default executable, but exeext='' is most
2238 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2240 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2242 # We set ac_cv_exeext here because the later test for it is not
2243 # safe: cross compilers may not add the suffix if given an `-o'
2244 # argument, so we may need to know it at that point already.
2245 # Even if this section looks crufty: it has the advantage of
2252 test "$ac_cv_exeext" = no && ac_cv_exeext=
2258 { echo "$as_me:$LINENO: result: $ac_file" >&5
2259 echo "${ECHO_T}$ac_file" >&6; }
2260 if test -z "$ac_file"; then
2261 echo "$as_me: failed program was:" >&5
2262 sed 's/^/| /' conftest.$ac_ext >&5
2264 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2265 See \`config.log' for more details." >&5
2266 echo "$as_me: error: C compiler cannot create executables
2267 See \`config.log' for more details." >&2;}
2268 { (exit 77); exit 77; }; }
2271 ac_exeext=$ac_cv_exeext
2273 # Check that the compiler produces executables we can run. If not, either
2274 # the compiler is broken, or we cross compile.
2275 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2276 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2277 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2278 # If not cross compiling, check that we can run a simple program.
2279 if test "$cross_compiling" != yes; then
2280 if { ac_try='./$ac_file'
2281 { (case "(($ac_try" in
2282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2283 *) ac_try_echo=$ac_try;;
2285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2286 (eval "$ac_try") 2>&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }; }; then
2292 if test "$cross_compiling" = maybe; then
2295 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2296 If you meant to cross compile, use \`--host'.
2297 See \`config.log' for more details." >&5
2298 echo "$as_me: error: cannot run C compiled programs.
2299 If you meant to cross compile, use \`--host'.
2300 See \`config.log' for more details." >&2;}
2301 { (exit 1); exit 1; }; }
2305 { echo "$as_me:$LINENO: result: yes" >&5
2306 echo "${ECHO_T}yes" >&6; }
2308 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2309 ac_clean_files=$ac_clean_files_save
2310 # Check that the compiler produces executables we can run. If not, either
2311 # the compiler is broken, or we cross compile.
2312 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2313 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2314 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2315 echo "${ECHO_T}$cross_compiling" >&6; }
2317 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2318 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2319 if { (ac_try="$ac_link"
2321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2322 *) ac_try_echo=$ac_try;;
2324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2325 (eval "$ac_link") 2>&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; then
2329 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2330 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2331 # work properly (i.e., refer to `conftest.exe'), while it won't with
2333 for ac_file in conftest.exe conftest conftest.*; do
2334 test -f "$ac_file" || continue
2336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2337 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2343 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2344 See \`config.log' for more details." >&5
2345 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2346 See \`config.log' for more details." >&2;}
2347 { (exit 1); exit 1; }; }
2350 rm -f conftest$ac_cv_exeext
2351 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2352 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2354 rm -f conftest.$ac_ext
2355 EXEEXT=$ac_cv_exeext
2357 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2358 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2359 if test "${ac_cv_objext+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 cat >conftest.$ac_ext <<_ACEOF
2365 cat confdefs.h >>conftest.$ac_ext
2366 cat >>conftest.$ac_ext <<_ACEOF
2367 /* end confdefs.h. */
2377 rm -f conftest.o conftest.obj
2378 if { (ac_try="$ac_compile"
2380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2381 *) ac_try_echo=$ac_try;;
2383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2384 (eval "$ac_compile") 2>&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; then
2388 for ac_file in conftest.o conftest.obj conftest.*; do
2389 test -f "$ac_file" || continue;
2391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2392 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2397 echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2400 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2401 See \`config.log' for more details." >&5
2402 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2403 See \`config.log' for more details." >&2;}
2404 { (exit 1); exit 1; }; }
2407 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2409 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2410 echo "${ECHO_T}$ac_cv_objext" >&6; }
2411 OBJEXT=$ac_cv_objext
2413 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2414 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2415 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2416 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 cat >conftest.$ac_ext <<_ACEOF
2421 cat confdefs.h >>conftest.$ac_ext
2422 cat >>conftest.$ac_ext <<_ACEOF
2423 /* end confdefs.h. */
2436 rm -f conftest.$ac_objext
2437 if { (ac_try="$ac_compile"
2439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2440 *) ac_try_echo=$ac_try;;
2442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2443 (eval "$ac_compile") 2>conftest.er1
2445 grep -v '^ *+' conftest.er1 >conftest.err
2447 cat conftest.err >&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); } && {
2450 test -z "$ac_c_werror_flag" ||
2451 test ! -s conftest.err
2452 } && test -s conftest.$ac_objext; then
2455 echo "$as_me: failed program was:" >&5
2456 sed 's/^/| /' conftest.$ac_ext >&5
2461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2462 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2465 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2466 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2467 GCC=`test $ac_compiler_gnu = yes && echo yes`
2468 ac_test_CFLAGS=${CFLAGS+set}
2469 ac_save_CFLAGS=$CFLAGS
2470 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2471 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2472 if test "${ac_cv_prog_cc_g+set}" = set; then
2473 echo $ECHO_N "(cached) $ECHO_C" >&6
2475 ac_save_c_werror_flag=$ac_c_werror_flag
2476 ac_c_werror_flag=yes
2479 cat >conftest.$ac_ext <<_ACEOF
2482 cat confdefs.h >>conftest.$ac_ext
2483 cat >>conftest.$ac_ext <<_ACEOF
2484 /* end confdefs.h. */
2494 rm -f conftest.$ac_objext
2495 if { (ac_try="$ac_compile"
2497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498 *) ac_try_echo=$ac_try;;
2500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501 (eval "$ac_compile") 2>conftest.er1
2503 grep -v '^ *+' conftest.er1 >conftest.err
2505 cat conftest.err >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); } && {
2508 test -z "$ac_c_werror_flag" ||
2509 test ! -s conftest.err
2510 } && test -s conftest.$ac_objext; then
2513 echo "$as_me: failed program was:" >&5
2514 sed 's/^/| /' conftest.$ac_ext >&5
2517 cat >conftest.$ac_ext <<_ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h. */
2532 rm -f conftest.$ac_objext
2533 if { (ac_try="$ac_compile"
2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2539 (eval "$ac_compile") 2>conftest.er1
2541 grep -v '^ *+' conftest.er1 >conftest.err
2543 cat conftest.err >&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); } && {
2546 test -z "$ac_c_werror_flag" ||
2547 test ! -s conftest.err
2548 } && test -s conftest.$ac_objext; then
2551 echo "$as_me: failed program was:" >&5
2552 sed 's/^/| /' conftest.$ac_ext >&5
2554 ac_c_werror_flag=$ac_save_c_werror_flag
2556 cat >conftest.$ac_ext <<_ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h. */
2571 rm -f conftest.$ac_objext
2572 if { (ac_try="$ac_compile"
2574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575 *) ac_try_echo=$ac_try;;
2577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2578 (eval "$ac_compile") 2>conftest.er1
2580 grep -v '^ *+' conftest.er1 >conftest.err
2582 cat conftest.err >&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); } && {
2585 test -z "$ac_c_werror_flag" ||
2586 test ! -s conftest.err
2587 } && test -s conftest.$ac_objext; then
2590 echo "$as_me: failed program was:" >&5
2591 sed 's/^/| /' conftest.$ac_ext >&5
2596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603 ac_c_werror_flag=$ac_save_c_werror_flag
2605 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2606 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2607 if test "$ac_test_CFLAGS" = set; then
2608 CFLAGS=$ac_save_CFLAGS
2609 elif test $ac_cv_prog_cc_g = yes; then
2610 if test "$GCC" = yes; then
2616 if test "$GCC" = yes; then
2622 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2623 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2624 if test "${ac_cv_prog_cc_c89+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2627 ac_cv_prog_cc_c89=no
2629 cat >conftest.$ac_ext <<_ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2637 #include <sys/types.h>
2638 #include <sys/stat.h>
2639 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2640 struct buf { int x; };
2641 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2642 static char *e (p, i)
2648 static char *f (char * (*g) (char **, int), char **p, ...)
2653 s = g (p, va_arg (v,int));
2658 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2659 function prototypes and stuff, but not '\xHH' hex character constants.
2660 These don't provoke an error unfortunately, instead are silently treated
2661 as 'x'. The following induces an error, until -std is added to get
2662 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2663 array size at least. It's necessary to write '\x00'==0 to get something
2664 that's true only with -std. */
2665 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2667 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2668 inside strings and character constants. */
2670 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2672 int test (int i, double x);
2673 struct s1 {int (*f) (int a);};
2674 struct s2 {int (*f) (double a);};
2675 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2681 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2686 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2687 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2689 CC="$ac_save_CC $ac_arg"
2690 rm -f conftest.$ac_objext
2691 if { (ac_try="$ac_compile"
2693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694 *) ac_try_echo=$ac_try;;
2696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2697 (eval "$ac_compile") 2>conftest.er1
2699 grep -v '^ *+' conftest.er1 >conftest.err
2701 cat conftest.err >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); } && {
2704 test -z "$ac_c_werror_flag" ||
2705 test ! -s conftest.err
2706 } && test -s conftest.$ac_objext; then
2707 ac_cv_prog_cc_c89=$ac_arg
2709 echo "$as_me: failed program was:" >&5
2710 sed 's/^/| /' conftest.$ac_ext >&5
2715 rm -f core conftest.err conftest.$ac_objext
2716 test "x$ac_cv_prog_cc_c89" != "xno" && break
2718 rm -f conftest.$ac_ext
2723 case "x$ac_cv_prog_cc_c89" in
2725 { echo "$as_me:$LINENO: result: none needed" >&5
2726 echo "${ECHO_T}none needed" >&6; } ;;
2728 { echo "$as_me:$LINENO: result: unsupported" >&5
2729 echo "${ECHO_T}unsupported" >&6; } ;;
2731 CC="$CC $ac_cv_prog_cc_c89"
2732 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2733 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2738 ac_cpp='$CPP $CPPFLAGS'
2739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2744 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2745 if test -f "$ac_dir/install-sh"; then
2747 ac_install_sh="$ac_aux_dir/install-sh -c"
2749 elif test -f "$ac_dir/install.sh"; then
2751 ac_install_sh="$ac_aux_dir/install.sh -c"
2753 elif test -f "$ac_dir/shtool"; then
2755 ac_install_sh="$ac_aux_dir/shtool install -c"
2759 if test -z "$ac_aux_dir"; then
2760 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2761 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2762 { (exit 1); exit 1; }; }
2765 # These three variables are undocumented and unsupported,
2766 # and are intended to be withdrawn in a future Autoconf release.
2767 # They can cause serious problems if a builder's source tree is in a directory
2768 # whose full name contains unusual characters.
2769 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2770 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2771 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2774 # Make sure we can run config.sub.
2775 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2776 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2777 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2778 { (exit 1); exit 1; }; }
2780 { echo "$as_me:$LINENO: checking build system type" >&5
2781 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2782 if test "${ac_cv_build+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 ac_build_alias=$build_alias
2786 test "x$ac_build_alias" = x &&
2787 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2788 test "x$ac_build_alias" = x &&
2789 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2790 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2791 { (exit 1); exit 1; }; }
2792 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2793 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2794 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2795 { (exit 1); exit 1; }; }
2798 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2799 echo "${ECHO_T}$ac_cv_build" >&6; }
2800 case $ac_cv_build in
2802 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2803 echo "$as_me: error: invalid value of canonical build" >&2;}
2804 { (exit 1); exit 1; }; };;
2807 ac_save_IFS=$IFS; IFS='-'
2813 # Remember, the first character of IFS is used to create $*,
2814 # except with old shells:
2817 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2820 { echo "$as_me:$LINENO: checking host system type" >&5
2821 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2822 if test "${ac_cv_host+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
2825 if test "x$host_alias" = x; then
2826 ac_cv_host=$ac_cv_build
2828 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2829 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2830 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2831 { (exit 1); exit 1; }; }
2835 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2836 echo "${ECHO_T}$ac_cv_host" >&6; }
2839 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2840 echo "$as_me: error: invalid value of canonical host" >&2;}
2841 { (exit 1); exit 1; }; };;
2844 ac_save_IFS=$IFS; IFS='-'
2850 # Remember, the first character of IFS is used to create $*,
2851 # except with old shells:
2854 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2859 ac_cpp='$CPP $CPPFLAGS'
2860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2863 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2864 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2865 # On Suns, sometimes $CPP names a directory.
2866 if test -n "$CPP" && test -d "$CPP"; then
2869 if test -z "$CPP"; then
2870 if test "${ac_cv_prog_CPP+set}" = set; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 # Double quotes because CPP needs to be expanded
2874 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2877 for ac_c_preproc_warn_flag in '' yes
2879 # Use a header file that comes with gcc, so configuring glibc
2880 # with a fresh cross-compiler works.
2881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2882 # <limits.h> exists even on freestanding compilers.
2883 # On the NeXT, cc -E runs the code through the compiler's parser,
2884 # not just through cpp. "Syntax error" is here to catch this case.
2885 cat >conftest.$ac_ext <<_ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h. */
2892 # include <limits.h>
2894 # include <assert.h>
2898 if { (ac_try="$ac_cpp conftest.$ac_ext"
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2906 grep -v '^ *+' conftest.er1 >conftest.err
2908 cat conftest.err >&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); } >/dev/null && {
2911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2912 test ! -s conftest.err
2916 echo "$as_me: failed program was:" >&5
2917 sed 's/^/| /' conftest.$ac_ext >&5
2919 # Broken: fails on valid input.
2923 rm -f conftest.err conftest.$ac_ext
2925 # OK, works on sane cases. Now check whether nonexistent headers
2926 # can be detected and how.
2927 cat >conftest.$ac_ext <<_ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h. */
2933 #include <ac_nonexistent.h>
2935 if { (ac_try="$ac_cpp conftest.$ac_ext"
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2943 grep -v '^ *+' conftest.er1 >conftest.err
2945 cat conftest.err >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } >/dev/null && {
2948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2949 test ! -s conftest.err
2951 # Broken: success on invalid input.
2954 echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2957 # Passes both tests.
2962 rm -f conftest.err conftest.$ac_ext
2965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2966 rm -f conftest.err conftest.$ac_ext
2967 if $ac_preproc_ok; then
2979 { echo "$as_me:$LINENO: result: $CPP" >&5
2980 echo "${ECHO_T}$CPP" >&6; }
2982 for ac_c_preproc_warn_flag in '' yes
2984 # Use a header file that comes with gcc, so configuring glibc
2985 # with a fresh cross-compiler works.
2986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2987 # <limits.h> exists even on freestanding compilers.
2988 # On the NeXT, cc -E runs the code through the compiler's parser,
2989 # not just through cpp. "Syntax error" is here to catch this case.
2990 cat >conftest.$ac_ext <<_ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h. */
2997 # include <limits.h>
2999 # include <assert.h>
3003 if { (ac_try="$ac_cpp conftest.$ac_ext"
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3011 grep -v '^ *+' conftest.er1 >conftest.err
3013 cat conftest.err >&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); } >/dev/null && {
3016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3017 test ! -s conftest.err
3021 echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3024 # Broken: fails on valid input.
3028 rm -f conftest.err conftest.$ac_ext
3030 # OK, works on sane cases. Now check whether nonexistent headers
3031 # can be detected and how.
3032 cat >conftest.$ac_ext <<_ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h. */
3038 #include <ac_nonexistent.h>
3040 if { (ac_try="$ac_cpp conftest.$ac_ext"
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3048 grep -v '^ *+' conftest.er1 >conftest.err
3050 cat conftest.err >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } >/dev/null && {
3053 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3054 test ! -s conftest.err
3056 # Broken: success on invalid input.
3059 echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3062 # Passes both tests.
3067 rm -f conftest.err conftest.$ac_ext
3070 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3071 rm -f conftest.err conftest.$ac_ext
3072 if $ac_preproc_ok; then
3075 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3076 See \`config.log' for more details." >&5
3077 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3078 See \`config.log' for more details." >&2;}
3079 { (exit 1); exit 1; }; }
3083 ac_cpp='$CPP $CPPFLAGS'
3084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3089 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3090 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3091 if test "${ac_cv_path_GREP+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3094 # Extract the first word of "grep ggrep" to use in msg output
3095 if test -z "$GREP"; then
3096 set dummy grep ggrep; ac_prog_name=$2
3097 if test "${ac_cv_path_GREP+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3100 ac_path_GREP_found=false
3101 # Loop through the user's path and test for each of PROGNAME-LIST
3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3106 test -z "$as_dir" && as_dir=.
3107 for ac_prog in grep ggrep; do
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3110 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3111 # Check for GNU ac_path_GREP and select it if it is found.
3112 # Check for GNU $ac_path_GREP
3113 case `"$ac_path_GREP" --version 2>&1` in
3115 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3118 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3121 cat "conftest.in" "conftest.in" >"conftest.tmp"
3122 mv "conftest.tmp" "conftest.in"
3123 cp "conftest.in" "conftest.nl"
3124 echo 'GREP' >> "conftest.nl"
3125 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3126 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3127 ac_count=`expr $ac_count + 1`
3128 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3129 # Best one so far, save it but keep looking for a better one
3130 ac_cv_path_GREP="$ac_path_GREP"
3131 ac_path_GREP_max=$ac_count
3133 # 10*(2^10) chars as input seems more than enough
3134 test $ac_count -gt 10 && break
3136 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3140 $ac_path_GREP_found && break 3
3150 GREP="$ac_cv_path_GREP"
3151 if test -z "$GREP"; then
3152 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3153 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3154 { (exit 1); exit 1; }; }
3158 ac_cv_path_GREP=$GREP
3163 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3164 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3165 GREP="$ac_cv_path_GREP"
3168 { echo "$as_me:$LINENO: checking for egrep" >&5
3169 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3170 if test "${ac_cv_path_EGREP+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3174 then ac_cv_path_EGREP="$GREP -E"
3176 # Extract the first word of "egrep" to use in msg output
3177 if test -z "$EGREP"; then
3178 set dummy egrep; ac_prog_name=$2
3179 if test "${ac_cv_path_EGREP+set}" = set; then
3180 echo $ECHO_N "(cached) $ECHO_C" >&6
3182 ac_path_EGREP_found=false
3183 # Loop through the user's path and test for each of PROGNAME-LIST
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3188 test -z "$as_dir" && as_dir=.
3189 for ac_prog in egrep; do
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3192 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3193 # Check for GNU ac_path_EGREP and select it if it is found.
3194 # Check for GNU $ac_path_EGREP
3195 case `"$ac_path_EGREP" --version 2>&1` in
3197 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3200 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3203 cat "conftest.in" "conftest.in" >"conftest.tmp"
3204 mv "conftest.tmp" "conftest.in"
3205 cp "conftest.in" "conftest.nl"
3206 echo 'EGREP' >> "conftest.nl"
3207 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3208 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3209 ac_count=`expr $ac_count + 1`
3210 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3211 # Best one so far, save it but keep looking for a better one
3212 ac_cv_path_EGREP="$ac_path_EGREP"
3213 ac_path_EGREP_max=$ac_count
3215 # 10*(2^10) chars as input seems more than enough
3216 test $ac_count -gt 10 && break
3218 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3222 $ac_path_EGREP_found && break 3
3232 EGREP="$ac_cv_path_EGREP"
3233 if test -z "$EGREP"; then
3234 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3235 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3236 { (exit 1); exit 1; }; }
3240 ac_cv_path_EGREP=$EGREP
3246 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3247 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3248 EGREP="$ac_cv_path_EGREP"
3251 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3252 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3253 if test "${ac_cv_header_stdc+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 cat >conftest.$ac_ext <<_ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3275 rm -f conftest.$ac_objext
3276 if { (ac_try="$ac_compile"
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282 (eval "$ac_compile") 2>conftest.er1
3284 grep -v '^ *+' conftest.er1 >conftest.err
3286 cat conftest.err >&5
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); } && {
3289 test -z "$ac_c_werror_flag" ||
3290 test ! -s conftest.err
3291 } && test -s conftest.$ac_objext; then
3292 ac_cv_header_stdc=yes
3294 echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3297 ac_cv_header_stdc=no
3300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302 if test $ac_cv_header_stdc = yes; then
3303 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3304 cat >conftest.$ac_ext <<_ACEOF
3307 cat confdefs.h >>conftest.$ac_ext
3308 cat >>conftest.$ac_ext <<_ACEOF
3309 /* end confdefs.h. */
3313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3314 $EGREP "memchr" >/dev/null 2>&1; then
3317 ac_cv_header_stdc=no
3323 if test $ac_cv_header_stdc = yes; then
3324 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3325 cat >conftest.$ac_ext <<_ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h. */
3334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3335 $EGREP "free" >/dev/null 2>&1; then
3338 ac_cv_header_stdc=no
3344 if test $ac_cv_header_stdc = yes; then
3345 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3346 if test "$cross_compiling" = yes; then
3349 cat >conftest.$ac_ext <<_ACEOF
3352 cat confdefs.h >>conftest.$ac_ext
3353 cat >>conftest.$ac_ext <<_ACEOF
3354 /* end confdefs.h. */
3357 #if ((' ' & 0x0FF) == 0x020)
3358 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3359 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3361 # define ISLOWER(c) \
3362 (('a' <= (c) && (c) <= 'i') \
3363 || ('j' <= (c) && (c) <= 'r') \
3364 || ('s' <= (c) && (c) <= 'z'))
3365 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3368 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3373 for (i = 0; i < 256; i++)
3374 if (XOR (islower (i), ISLOWER (i))
3375 || toupper (i) != TOUPPER (i))
3380 rm -f conftest$ac_exeext
3381 if { (ac_try="$ac_link"
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387 (eval "$ac_link") 2>&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3391 { (case "(($ac_try" in
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_try") 2>&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; }; then
3402 echo "$as_me: program exited with status $ac_status" >&5
3403 echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3407 ac_cv_header_stdc=no
3409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3415 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3416 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3417 if test $ac_cv_header_stdc = yes; then
3419 cat >>confdefs.h <<\_ACEOF
3420 #define STDC_HEADERS 1
3425 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3435 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3436 inttypes.h stdint.h unistd.h
3438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 cat >conftest.$ac_ext <<_ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3450 $ac_includes_default
3452 #include <$ac_header>
3454 rm -f conftest.$ac_objext
3455 if { (ac_try="$ac_compile"
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3461 (eval "$ac_compile") 2>conftest.er1
3463 grep -v '^ *+' conftest.er1 >conftest.err
3465 cat conftest.err >&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); } && {
3468 test -z "$ac_c_werror_flag" ||
3469 test ! -s conftest.err
3470 } && test -s conftest.$ac_objext; then
3471 eval "$as_ac_Header=yes"
3473 echo "$as_me: failed program was:" >&5
3474 sed 's/^/| /' conftest.$ac_ext >&5
3476 eval "$as_ac_Header=no"
3479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481 ac_res=`eval echo '${'$as_ac_Header'}'`
3482 { echo "$as_me:$LINENO: result: $ac_res" >&5
3483 echo "${ECHO_T}$ac_res" >&6; }
3484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3485 cat >>confdefs.h <<_ACEOF
3486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3494 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3495 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3496 if test "${ac_cv_c_bigendian+set}" = set; then
3497 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 # See if sys/param.h defines the BYTE_ORDER macro.
3500 cat >conftest.$ac_ext <<_ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3506 #include <sys/types.h>
3507 #include <sys/param.h>
3512 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3513 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3521 rm -f conftest.$ac_objext
3522 if { (ac_try="$ac_compile"
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3528 (eval "$ac_compile") 2>conftest.er1
3530 grep -v '^ *+' conftest.er1 >conftest.err
3532 cat conftest.err >&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } && {
3535 test -z "$ac_c_werror_flag" ||
3536 test ! -s conftest.err
3537 } && test -s conftest.$ac_objext; then
3538 # It does; now see whether it defined to BIG_ENDIAN or not.
3539 cat >conftest.$ac_ext <<_ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3545 #include <sys/types.h>
3546 #include <sys/param.h>
3551 #if BYTE_ORDER != BIG_ENDIAN
3559 rm -f conftest.$ac_objext
3560 if { (ac_try="$ac_compile"
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3566 (eval "$ac_compile") 2>conftest.er1
3568 grep -v '^ *+' conftest.er1 >conftest.err
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } && {
3573 test -z "$ac_c_werror_flag" ||
3574 test ! -s conftest.err
3575 } && test -s conftest.$ac_objext; then
3576 ac_cv_c_bigendian=yes
3578 echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3581 ac_cv_c_bigendian=no
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3589 # It does not; compile a test program.
3590 if test "$cross_compiling" = yes; then
3591 # try to guess the endianness by grepping values into an object file
3592 ac_cv_c_bigendian=unknown
3593 cat >conftest.$ac_ext <<_ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h. */
3599 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3600 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3601 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3602 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3603 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3604 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3608 _ascii (); _ebcdic ();
3613 rm -f conftest.$ac_objext
3614 if { (ac_try="$ac_compile"
3616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617 *) ac_try_echo=$ac_try;;
3619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3620 (eval "$ac_compile") 2>conftest.er1
3622 grep -v '^ *+' conftest.er1 >conftest.err
3624 cat conftest.err >&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); } && {
3627 test -z "$ac_c_werror_flag" ||
3628 test ! -s conftest.err
3629 } && test -s conftest.$ac_objext; then
3630 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3631 ac_cv_c_bigendian=yes
3633 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3634 if test "$ac_cv_c_bigendian" = unknown; then
3635 ac_cv_c_bigendian=no
3637 # finding both strings is unlikely to happen, but who knows?
3638 ac_cv_c_bigendian=unknown
3642 echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650 cat >conftest.$ac_ext <<_ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h. */
3656 $ac_includes_default
3661 /* Are we little or big endian? From Harbison&Steele. */
3665 char c[sizeof (long int)];
3668 return u.c[sizeof (long int) - 1] == 1;
3674 rm -f conftest$ac_exeext
3675 if { (ac_try="$ac_link"
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_link") 2>&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3685 { (case "(($ac_try" in
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690 (eval "$ac_try") 2>&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; }; then
3694 ac_cv_c_bigendian=no
3696 echo "$as_me: program exited with status $ac_status" >&5
3697 echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3701 ac_cv_c_bigendian=yes
3703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3711 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3712 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3713 case $ac_cv_c_bigendian in
3716 cat >>confdefs.h <<\_ACEOF
3717 #define WORDS_BIGENDIAN 1
3723 { { echo "$as_me:$LINENO: error: unknown endianness
3724 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3725 echo "$as_me: error: unknown endianness
3726 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3727 { (exit 1); exit 1; }; } ;;
3731 # Checks for programs.
3732 for ac_prog in gawk mawk nawk awk
3734 # Extract the first word of "$ac_prog", so it can be a program name with args.
3735 set dummy $ac_prog; ac_word=$2
3736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3738 if test "${ac_cv_prog_AWK+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 if test -n "$AWK"; then
3742 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 test -z "$as_dir" && as_dir=.
3749 for ac_exec_ext in '' $ac_executable_extensions; do
3750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3751 ac_cv_prog_AWK="$ac_prog"
3752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 if test -n "$AWK"; then
3763 { echo "$as_me:$LINENO: result: $AWK" >&5
3764 echo "${ECHO_T}$AWK" >&6; }
3766 { echo "$as_me:$LINENO: result: no" >&5
3767 echo "${ECHO_T}no" >&6; }
3771 test -n "$AWK" && break
3775 ac_cpp='$CPP $CPPFLAGS'
3776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3779 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3780 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3781 # On Suns, sometimes $CPP names a directory.
3782 if test -n "$CPP" && test -d "$CPP"; then
3785 if test -z "$CPP"; then
3786 if test "${ac_cv_prog_CPP+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 # Double quotes because CPP needs to be expanded
3790 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3793 for ac_c_preproc_warn_flag in '' yes
3795 # Use a header file that comes with gcc, so configuring glibc
3796 # with a fresh cross-compiler works.
3797 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3798 # <limits.h> exists even on freestanding compilers.
3799 # On the NeXT, cc -E runs the code through the compiler's parser,
3800 # not just through cpp. "Syntax error" is here to catch this case.
3801 cat >conftest.$ac_ext <<_ACEOF
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h. */
3808 # include <limits.h>
3810 # include <assert.h>
3814 if { (ac_try="$ac_cpp conftest.$ac_ext"
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3822 grep -v '^ *+' conftest.er1 >conftest.err
3824 cat conftest.err >&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } >/dev/null && {
3827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3828 test ! -s conftest.err
3832 echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3835 # Broken: fails on valid input.
3839 rm -f conftest.err conftest.$ac_ext
3841 # OK, works on sane cases. Now check whether nonexistent headers
3842 # can be detected and how.
3843 cat >conftest.$ac_ext <<_ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3849 #include <ac_nonexistent.h>
3851 if { (ac_try="$ac_cpp conftest.$ac_ext"
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3859 grep -v '^ *+' conftest.er1 >conftest.err
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } >/dev/null && {
3864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3865 test ! -s conftest.err
3867 # Broken: success on invalid input.
3870 echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3873 # Passes both tests.
3878 rm -f conftest.err conftest.$ac_ext
3881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3882 rm -f conftest.err conftest.$ac_ext
3883 if $ac_preproc_ok; then
3895 { echo "$as_me:$LINENO: result: $CPP" >&5
3896 echo "${ECHO_T}$CPP" >&6; }
3898 for ac_c_preproc_warn_flag in '' yes
3900 # Use a header file that comes with gcc, so configuring glibc
3901 # with a fresh cross-compiler works.
3902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3903 # <limits.h> exists even on freestanding compilers.
3904 # On the NeXT, cc -E runs the code through the compiler's parser,
3905 # not just through cpp. "Syntax error" is here to catch this case.
3906 cat >conftest.$ac_ext <<_ACEOF
3909 cat confdefs.h >>conftest.$ac_ext
3910 cat >>conftest.$ac_ext <<_ACEOF
3911 /* end confdefs.h. */
3913 # include <limits.h>
3915 # include <assert.h>
3919 if { (ac_try="$ac_cpp conftest.$ac_ext"
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3927 grep -v '^ *+' conftest.er1 >conftest.err
3929 cat conftest.err >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } >/dev/null && {
3932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3933 test ! -s conftest.err
3937 echo "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3940 # Broken: fails on valid input.
3944 rm -f conftest.err conftest.$ac_ext
3946 # OK, works on sane cases. Now check whether nonexistent headers
3947 # can be detected and how.
3948 cat >conftest.$ac_ext <<_ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h. */
3954 #include <ac_nonexistent.h>
3956 if { (ac_try="$ac_cpp conftest.$ac_ext"
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3964 grep -v '^ *+' conftest.er1 >conftest.err
3966 cat conftest.err >&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); } >/dev/null && {
3969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3970 test ! -s conftest.err
3972 # Broken: success on invalid input.
3975 echo "$as_me: failed program was:" >&5
3976 sed 's/^/| /' conftest.$ac_ext >&5
3978 # Passes both tests.
3983 rm -f conftest.err conftest.$ac_ext
3986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3987 rm -f conftest.err conftest.$ac_ext
3988 if $ac_preproc_ok; then
3991 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3992 See \`config.log' for more details." >&5
3993 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3994 See \`config.log' for more details." >&2;}
3995 { (exit 1); exit 1; }; }
3999 ac_cpp='$CPP $CPPFLAGS'
4000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4004 if test -n "$ac_tool_prefix"; then
4005 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4006 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4009 if test "${ac_cv_prog_RANLIB+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4012 if test -n "$RANLIB"; then
4013 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 test -z "$as_dir" && as_dir=.
4020 for ac_exec_ext in '' $ac_executable_extensions; do
4021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4022 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4032 RANLIB=$ac_cv_prog_RANLIB
4033 if test -n "$RANLIB"; then
4034 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4035 echo "${ECHO_T}$RANLIB" >&6; }
4037 { echo "$as_me:$LINENO: result: no" >&5
4038 echo "${ECHO_T}no" >&6; }
4043 if test -z "$ac_cv_prog_RANLIB"; then
4044 ac_ct_RANLIB=$RANLIB
4045 # Extract the first word of "ranlib", so it can be a program name with args.
4046 set dummy ranlib; ac_word=$2
4047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4049 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 if test -n "$ac_ct_RANLIB"; then
4053 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 test -z "$as_dir" && as_dir=.
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4062 ac_cv_prog_ac_ct_RANLIB="ranlib"
4063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4072 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4073 if test -n "$ac_ct_RANLIB"; then
4074 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4075 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4077 { echo "$as_me:$LINENO: result: no" >&5
4078 echo "${ECHO_T}no" >&6; }
4081 if test "x$ac_ct_RANLIB" = x; then
4084 case $cross_compiling:$ac_tool_warned in
4086 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4087 whose name does not start with the host triplet. If you think this
4088 configuration is useful to you, please write to autoconf@gnu.org." >&5
4089 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4090 whose name does not start with the host triplet. If you think this
4091 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4092 ac_tool_warned=yes ;;
4094 RANLIB=$ac_ct_RANLIB
4097 RANLIB="$ac_cv_prog_RANLIB"
4100 # Find a good install program. We prefer a C program (faster),
4101 # so one script is as good as another. But avoid the broken or
4102 # incompatible versions:
4103 # SysV /etc/install, /usr/sbin/install
4104 # SunOS /usr/etc/install
4105 # IRIX /sbin/install
4107 # AmigaOS /C/install, which installs bootblocks on floppy discs
4108 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4109 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4110 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4111 # OS/2's system install, which has a completely different semantic
4112 # ./install, which can be erroneously created by make from ./install.sh.
4113 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4114 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4115 if test -z "$INSTALL"; then
4116 if test "${ac_cv_path_install+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 test -z "$as_dir" && as_dir=.
4124 # Account for people who put trailing slashes in PATH elements.
4126 ./ | .// | /cC/* | \
4127 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4128 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4131 # OSF1 and SCO ODT 3.0 have their own names for install.
4132 # Don't use installbsd from OSF since it installs stuff as root
4134 for ac_prog in ginstall scoinst install; do
4135 for ac_exec_ext in '' $ac_executable_extensions; do
4136 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4137 if test $ac_prog = install &&
4138 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4139 # AIX install. It has an incompatible calling convention.
4141 elif test $ac_prog = install &&
4142 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4143 # program-specific install script used by HP pwplus--don't use.
4146 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4159 if test "${ac_cv_path_install+set}" = set; then
4160 INSTALL=$ac_cv_path_install
4162 # As a last resort, use the slow shell script. Don't cache a
4163 # value for INSTALL within a source directory, because that will
4164 # break other packages using the cache if that directory is
4165 # removed, or if the value is a relative name.
4166 INSTALL=$ac_install_sh
4169 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4170 echo "${ECHO_T}$INSTALL" >&6; }
4172 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4173 # It thinks the first close brace ends the variable substitution.
4174 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4176 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4178 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4180 { echo "$as_me:$LINENO: checking for egrep" >&5
4181 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4182 if test "${ac_cv_path_EGREP+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4185 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4186 then ac_cv_path_EGREP="$GREP -E"
4188 # Extract the first word of "egrep" to use in msg output
4189 if test -z "$EGREP"; then
4190 set dummy egrep; ac_prog_name=$2
4191 if test "${ac_cv_path_EGREP+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 ac_path_EGREP_found=false
4195 # Loop through the user's path and test for each of PROGNAME-LIST
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4200 test -z "$as_dir" && as_dir=.
4201 for ac_prog in egrep; do
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4204 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4205 # Check for GNU ac_path_EGREP and select it if it is found.
4206 # Check for GNU $ac_path_EGREP
4207 case `"$ac_path_EGREP" --version 2>&1` in
4209 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4212 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4215 cat "conftest.in" "conftest.in" >"conftest.tmp"
4216 mv "conftest.tmp" "conftest.in"
4217 cp "conftest.in" "conftest.nl"
4218 echo 'EGREP' >> "conftest.nl"
4219 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4220 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4221 ac_count=`expr $ac_count + 1`
4222 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4223 # Best one so far, save it but keep looking for a better one
4224 ac_cv_path_EGREP="$ac_path_EGREP"
4225 ac_path_EGREP_max=$ac_count
4227 # 10*(2^10) chars as input seems more than enough
4228 test $ac_count -gt 10 && break
4230 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4234 $ac_path_EGREP_found && break 3
4244 EGREP="$ac_cv_path_EGREP"
4245 if test -z "$EGREP"; then
4246 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4247 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4248 { (exit 1); exit 1; }; }
4252 ac_cv_path_EGREP=$EGREP
4258 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4259 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4260 EGREP="$ac_cv_path_EGREP"
4263 # Extract the first word of "ar", so it can be a program name with args.
4264 set dummy ar; ac_word=$2
4265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4267 if test "${ac_cv_path_AR+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4272 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 test -z "$as_dir" && as_dir=.
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4282 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4294 if test -n "$AR"; then
4295 { echo "$as_me:$LINENO: result: $AR" >&5
4296 echo "${ECHO_T}$AR" >&6; }
4298 { echo "$as_me:$LINENO: result: no" >&5
4299 echo "${ECHO_T}no" >&6; }
4303 # Extract the first word of "cat", so it can be a program name with args.
4304 set dummy cat; ac_word=$2
4305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4307 if test "${ac_cv_path_CAT+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4312 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4322 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 if test -n "$CAT"; then
4335 { echo "$as_me:$LINENO: result: $CAT" >&5
4336 echo "${ECHO_T}$CAT" >&6; }
4338 { echo "$as_me:$LINENO: result: no" >&5
4339 echo "${ECHO_T}no" >&6; }
4343 # Extract the first word of "kill", so it can be a program name with args.
4344 set dummy kill; ac_word=$2
4345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4347 if test "${ac_cv_path_KILL+set}" = set; then
4348 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4362 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 KILL=$ac_cv_path_KILL
4374 if test -n "$KILL"; then
4375 { echo "$as_me:$LINENO: result: $KILL" >&5
4376 echo "${ECHO_T}$KILL" >&6; }
4378 { echo "$as_me:$LINENO: result: no" >&5
4379 echo "${ECHO_T}no" >&6; }
4383 for ac_prog in perl5 perl
4385 # Extract the first word of "$ac_prog", so it can be a program name with args.
4386 set dummy $ac_prog; ac_word=$2
4387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4389 if test "${ac_cv_path_PERL+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4394 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 PERL=$ac_cv_path_PERL
4416 if test -n "$PERL"; then
4417 { echo "$as_me:$LINENO: result: $PERL" >&5
4418 echo "${ECHO_T}$PERL" >&6; }
4420 { echo "$as_me:$LINENO: result: no" >&5
4421 echo "${ECHO_T}no" >&6; }
4425 test -n "$PERL" && break
4428 # Extract the first word of "sed", so it can be a program name with args.
4429 set dummy sed; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_path_SED+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4447 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 if test -n "$SED"; then
4460 { echo "$as_me:$LINENO: result: $SED" >&5
4461 echo "${ECHO_T}$SED" >&6; }
4463 { echo "$as_me:$LINENO: result: no" >&5
4464 echo "${ECHO_T}no" >&6; }
4469 # Extract the first word of "ent", so it can be a program name with args.
4470 set dummy ent; ac_word=$2
4471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4473 if test "${ac_cv_path_ENT+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4488 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4500 if test -n "$ENT"; then
4501 { echo "$as_me:$LINENO: result: $ENT" >&5
4502 echo "${ECHO_T}$ENT" >&6; }
4504 { echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6; }
4510 # Extract the first word of "bash", so it can be a program name with args.
4511 set dummy bash; ac_word=$2
4512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4514 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 case $TEST_MINUS_S_SH in
4519 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 test -z "$as_dir" && as_dir=.
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4529 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4540 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4541 if test -n "$TEST_MINUS_S_SH"; then
4542 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4543 echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4545 { echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6; }
4550 # Extract the first word of "ksh", so it can be a program name with args.
4551 set dummy ksh; ac_word=$2
4552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4554 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 case $TEST_MINUS_S_SH in
4559 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4569 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4581 if test -n "$TEST_MINUS_S_SH"; then
4582 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4583 echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4585 { echo "$as_me:$LINENO: result: no" >&5
4586 echo "${ECHO_T}no" >&6; }
4590 # Extract the first word of "sh", so it can be a program name with args.
4591 set dummy sh; ac_word=$2
4592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4594 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 case $TEST_MINUS_S_SH in
4599 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4609 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4621 if test -n "$TEST_MINUS_S_SH"; then
4622 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4623 echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4625 { echo "$as_me:$LINENO: result: no" >&5
4626 echo "${ECHO_T}no" >&6; }
4630 # Extract the first word of "sh", so it can be a program name with args.
4631 set dummy sh; ac_word=$2
4632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4634 if test "${ac_cv_path_SH+set}" = set; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4649 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 if test -n "$SH"; then
4662 { echo "$as_me:$LINENO: result: $SH" >&5
4663 echo "${ECHO_T}$SH" >&6; }
4665 { echo "$as_me:$LINENO: result: no" >&5
4666 echo "${ECHO_T}no" >&6; }
4670 # Extract the first word of "groff", so it can be a program name with args.
4671 set dummy groff; ac_word=$2
4672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4674 if test "${ac_cv_path_GROFF+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4689 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
4690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 GROFF=$ac_cv_path_GROFF
4701 if test -n "$GROFF"; then
4702 { echo "$as_me:$LINENO: result: $GROFF" >&5
4703 echo "${ECHO_T}$GROFF" >&6; }
4705 { echo "$as_me:$LINENO: result: no" >&5
4706 echo "${ECHO_T}no" >&6; }
4710 # Extract the first word of "nroff", so it can be a program name with args.
4711 set dummy nroff; ac_word=$2
4712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4714 if test "${ac_cv_path_NROFF+set}" = set; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
4722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 test -z "$as_dir" && as_dir=.
4727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4729 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
4730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 NROFF=$ac_cv_path_NROFF
4741 if test -n "$NROFF"; then
4742 { echo "$as_me:$LINENO: result: $NROFF" >&5
4743 echo "${ECHO_T}$NROFF" >&6; }
4745 { echo "$as_me:$LINENO: result: no" >&5
4746 echo "${ECHO_T}no" >&6; }
4750 # Extract the first word of "mandoc", so it can be a program name with args.
4751 set dummy mandoc; ac_word=$2
4752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4754 if test "${ac_cv_path_MANDOC+set}" = set; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path.
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4769 ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext"
4770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 MANDOC=$ac_cv_path_MANDOC
4781 if test -n "$MANDOC"; then
4782 { echo "$as_me:$LINENO: result: $MANDOC" >&5
4783 echo "${ECHO_T}$MANDOC" >&6; }
4785 { echo "$as_me:$LINENO: result: no" >&5
4786 echo "${ECHO_T}no" >&6; }
4793 if test "x$MANDOC" != "x" ; then
4795 elif test "x$NROFF" != "x" ; then
4796 MANFMT="$NROFF -mandoc"
4797 elif test "x$GROFF" != "x" ; then
4798 MANFMT="$GROFF -mandoc -Tascii"
4800 { echo "$as_me:$LINENO: WARNING: no manpage formatted found" >&5
4801 echo "$as_me: WARNING: no manpage formatted found" >&2;}
4806 # Extract the first word of "groupadd", so it can be a program name with args.
4807 set dummy groupadd; ac_word=$2
4808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4810 if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 case $PATH_GROUPADD_PROG in
4815 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4825 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
4837 PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
4838 if test -n "$PATH_GROUPADD_PROG"; then
4839 { echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5
4840 echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6; }
4842 { echo "$as_me:$LINENO: result: no" >&5
4843 echo "${ECHO_T}no" >&6; }
4847 # Extract the first word of "useradd", so it can be a program name with args.
4848 set dummy useradd; ac_word=$2
4849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4851 if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then
4852 echo $ECHO_N "(cached) $ECHO_C" >&6
4854 case $PATH_USERADD_PROG in
4856 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4866 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
4878 PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
4879 if test -n "$PATH_USERADD_PROG"; then
4880 { echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5
4881 echo "${ECHO_T}$PATH_USERADD_PROG" >&6; }
4883 { echo "$as_me:$LINENO: result: no" >&5
4884 echo "${ECHO_T}no" >&6; }
4888 # Extract the first word of "pkgmk", so it can be a program name with args.
4889 set dummy pkgmk; ac_word=$2
4890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4892 if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4895 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4896 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 test -z "$as_dir" && as_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4905 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
4906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
4916 MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
4917 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4918 { echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5
4919 echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6; }
4921 { echo "$as_me:$LINENO: result: no" >&5
4922 echo "${ECHO_T}no" >&6; }
4926 if test -x /sbin/sh; then
4927 STARTUP_SCRIPT_SHELL=/sbin/sh
4930 STARTUP_SCRIPT_SHELL=/bin/sh
4935 # Check whether --enable-largefile was given.
4936 if test "${enable_largefile+set}" = set; then
4937 enableval=$enable_largefile;
4940 if test "$enable_largefile" != no; then
4942 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4943 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4944 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4947 ac_cv_sys_largefile_CC=no
4948 if test "$GCC" != yes; then
4951 # IRIX 6.2 and later do not support large files by default,
4952 # so use the C compiler's -n32 option if that helps.
4953 cat >conftest.$ac_ext <<_ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h. */
4959 #include <sys/types.h>
4960 /* Check that off_t can represent 2**63 - 1 correctly.
4961 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4962 since some C++ compilers masquerading as C compilers
4963 incorrectly reject 9223372036854775807. */
4964 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4965 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4966 && LARGE_OFF_T % 2147483647 == 1)
4976 rm -f conftest.$ac_objext
4977 if { (ac_try="$ac_compile"
4979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4980 *) ac_try_echo=$ac_try;;
4982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4983 (eval "$ac_compile") 2>conftest.er1
4985 grep -v '^ *+' conftest.er1 >conftest.err
4987 cat conftest.err >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } && {
4990 test -z "$ac_c_werror_flag" ||
4991 test ! -s conftest.err
4992 } && test -s conftest.$ac_objext; then
4995 echo "$as_me: failed program was:" >&5
4996 sed 's/^/| /' conftest.$ac_ext >&5
5001 rm -f core conftest.err conftest.$ac_objext
5003 rm -f conftest.$ac_objext
5004 if { (ac_try="$ac_compile"
5006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5007 *) ac_try_echo=$ac_try;;
5009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5010 (eval "$ac_compile") 2>conftest.er1
5012 grep -v '^ *+' conftest.er1 >conftest.err
5014 cat conftest.err >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } && {
5017 test -z "$ac_c_werror_flag" ||
5018 test ! -s conftest.err
5019 } && test -s conftest.$ac_objext; then
5020 ac_cv_sys_largefile_CC=' -n32'; break
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5028 rm -f core conftest.err conftest.$ac_objext
5032 rm -f conftest.$ac_ext
5035 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5036 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5037 if test "$ac_cv_sys_largefile_CC" != no; then
5038 CC=$CC$ac_cv_sys_largefile_CC
5041 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5042 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5043 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
5047 cat >conftest.$ac_ext <<_ACEOF
5050 cat confdefs.h >>conftest.$ac_ext
5051 cat >>conftest.$ac_ext <<_ACEOF
5052 /* end confdefs.h. */
5053 #include <sys/types.h>
5054 /* Check that off_t can represent 2**63 - 1 correctly.
5055 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5056 since some C++ compilers masquerading as C compilers
5057 incorrectly reject 9223372036854775807. */
5058 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5059 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5060 && LARGE_OFF_T % 2147483647 == 1)
5070 rm -f conftest.$ac_objext
5071 if { (ac_try="$ac_compile"
5073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5074 *) ac_try_echo=$ac_try;;
5076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5077 (eval "$ac_compile") 2>conftest.er1
5079 grep -v '^ *+' conftest.er1 >conftest.err
5081 cat conftest.err >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); } && {
5084 test -z "$ac_c_werror_flag" ||
5085 test ! -s conftest.err
5086 } && test -s conftest.$ac_objext; then
5087 ac_cv_sys_file_offset_bits=no; break
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5096 cat >conftest.$ac_ext <<_ACEOF
5099 cat confdefs.h >>conftest.$ac_ext
5100 cat >>conftest.$ac_ext <<_ACEOF
5101 /* end confdefs.h. */
5102 #define _FILE_OFFSET_BITS 64
5103 #include <sys/types.h>
5104 /* Check that off_t can represent 2**63 - 1 correctly.
5105 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5106 since some C++ compilers masquerading as C compilers
5107 incorrectly reject 9223372036854775807. */
5108 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5109 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5110 && LARGE_OFF_T % 2147483647 == 1)
5120 rm -f conftest.$ac_objext
5121 if { (ac_try="$ac_compile"
5123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5124 *) ac_try_echo=$ac_try;;
5126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5127 (eval "$ac_compile") 2>conftest.er1
5129 grep -v '^ *+' conftest.er1 >conftest.err
5131 cat conftest.err >&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); } && {
5134 test -z "$ac_c_werror_flag" ||
5135 test ! -s conftest.err
5136 } && test -s conftest.$ac_objext; then
5137 ac_cv_sys_file_offset_bits=64; break
5139 echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5146 ac_cv_sys_file_offset_bits=unknown
5150 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5151 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5152 case $ac_cv_sys_file_offset_bits in #(
5155 cat >>confdefs.h <<_ACEOF
5156 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5161 if test $ac_cv_sys_file_offset_bits = unknown; then
5162 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5163 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5164 if test "${ac_cv_sys_large_files+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 cat >conftest.$ac_ext <<_ACEOF
5171 cat confdefs.h >>conftest.$ac_ext
5172 cat >>conftest.$ac_ext <<_ACEOF
5173 /* end confdefs.h. */
5174 #include <sys/types.h>
5175 /* Check that off_t can represent 2**63 - 1 correctly.
5176 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5177 since some C++ compilers masquerading as C compilers
5178 incorrectly reject 9223372036854775807. */
5179 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5180 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5181 && LARGE_OFF_T % 2147483647 == 1)
5191 rm -f conftest.$ac_objext
5192 if { (ac_try="$ac_compile"
5194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5195 *) ac_try_echo=$ac_try;;
5197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5198 (eval "$ac_compile") 2>conftest.er1
5200 grep -v '^ *+' conftest.er1 >conftest.err
5202 cat conftest.err >&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); } && {
5205 test -z "$ac_c_werror_flag" ||
5206 test ! -s conftest.err
5207 } && test -s conftest.$ac_objext; then
5208 ac_cv_sys_large_files=no; break
5210 echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5217 cat >conftest.$ac_ext <<_ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5223 #define _LARGE_FILES 1
5224 #include <sys/types.h>
5225 /* Check that off_t can represent 2**63 - 1 correctly.
5226 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5227 since some C++ compilers masquerading as C compilers
5228 incorrectly reject 9223372036854775807. */
5229 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5230 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5231 && LARGE_OFF_T % 2147483647 == 1)
5241 rm -f conftest.$ac_objext
5242 if { (ac_try="$ac_compile"
5244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245 *) ac_try_echo=$ac_try;;
5247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5248 (eval "$ac_compile") 2>conftest.er1
5250 grep -v '^ *+' conftest.er1 >conftest.err
5252 cat conftest.err >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); } && {
5255 test -z "$ac_c_werror_flag" ||
5256 test ! -s conftest.err
5257 } && test -s conftest.$ac_objext; then
5258 ac_cv_sys_large_files=1; break
5260 echo "$as_me: failed program was:" >&5
5261 sed 's/^/| /' conftest.$ac_ext >&5
5266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5267 ac_cv_sys_large_files=unknown
5271 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5272 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5273 case $ac_cv_sys_large_files in #(
5276 cat >>confdefs.h <<_ACEOF
5277 #define _LARGE_FILES $ac_cv_sys_large_files
5286 if test -z "$AR" ; then
5287 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
5288 echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
5289 { (exit 1); exit 1; }; }
5292 # Use LOGIN_PROGRAM from environment if possible
5293 if test ! -z "$LOGIN_PROGRAM" ; then
5295 cat >>confdefs.h <<_ACEOF
5296 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5301 # Extract the first word of "login", so it can be a program name with args.
5302 set dummy login; ac_word=$2
5303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5305 if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
5308 case $LOGIN_PROGRAM_FALLBACK in
5310 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 test -z "$as_dir" && as_dir=.
5318 for ac_exec_ext in '' $ac_executable_extensions; do
5319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5320 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5331 LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5332 if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5333 { echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
5334 echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6; }
5336 { echo "$as_me:$LINENO: result: no" >&5
5337 echo "${ECHO_T}no" >&6; }
5341 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5342 cat >>confdefs.h <<_ACEOF
5343 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5349 # Extract the first word of "passwd", so it can be a program name with args.
5350 set dummy passwd; ac_word=$2
5351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5353 if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5356 case $PATH_PASSWD_PROG in
5358 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 test -z "$as_dir" && as_dir=.
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5368 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5379 PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5380 if test -n "$PATH_PASSWD_PROG"; then
5381 { echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5
5382 echo "${ECHO_T}$PATH_PASSWD_PROG" >&6; }
5384 { echo "$as_me:$LINENO: result: no" >&5
5385 echo "${ECHO_T}no" >&6; }
5389 if test ! -z "$PATH_PASSWD_PROG" ; then
5391 cat >>confdefs.h <<_ACEOF
5392 #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5397 if test -z "$LD" ; then
5402 { echo "$as_me:$LINENO: checking for inline" >&5
5403 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5404 if test "${ac_cv_c_inline+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 for ac_kw in inline __inline__ __inline; do
5409 cat >conftest.$ac_ext <<_ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h. */
5417 static $ac_kw foo_t static_foo () {return 0; }
5418 $ac_kw foo_t foo () {return 0; }
5422 rm -f conftest.$ac_objext
5423 if { (ac_try="$ac_compile"
5425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426 *) ac_try_echo=$ac_try;;
5428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5429 (eval "$ac_compile") 2>conftest.er1
5431 grep -v '^ *+' conftest.er1 >conftest.err
5433 cat conftest.err >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); } && {
5436 test -z "$ac_c_werror_flag" ||
5437 test ! -s conftest.err
5438 } && test -s conftest.$ac_objext; then
5439 ac_cv_c_inline=$ac_kw
5441 echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5448 test "$ac_cv_c_inline" != no && break
5452 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5453 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5456 case $ac_cv_c_inline in
5459 case $ac_cv_c_inline in
5461 *) ac_val=$ac_cv_c_inline;;
5463 cat >>confdefs.h <<_ACEOF
5465 #define inline $ac_val
5472 { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5473 echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5474 if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5477 cat >conftest.$ac_ext <<_ACEOF
5480 cat confdefs.h >>conftest.$ac_ext
5481 cat >>conftest.$ac_ext <<_ACEOF
5482 /* end confdefs.h. */
5496 rm -f conftest.$ac_objext
5497 if { (ac_try="$ac_compile"
5499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500 *) ac_try_echo=$ac_try;;
5502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503 (eval "$ac_compile") 2>conftest.er1
5505 grep -v '^ *+' conftest.er1 >conftest.err
5507 cat conftest.err >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } && {
5510 test -z "$ac_c_werror_flag" ||
5511 test ! -s conftest.err
5512 } && test -s conftest.$ac_objext; then
5513 ac_cv_have_decl_LLONG_MAX=yes
5515 echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5518 ac_cv_have_decl_LLONG_MAX=no
5521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5523 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5524 echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5525 if test $ac_cv_have_decl_LLONG_MAX = yes; then
5530 use_stack_protector=1
5532 # Check whether --with-stackprotect was given.
5533 if test "${with_stackprotect+set}" = set; then
5534 withval=$with_stackprotect;
5535 if test "x$withval" = "xno"; then
5536 use_stack_protector=0
5542 if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5544 { echo "$as_me:$LINENO: checking if $CC supports -Wall" >&5
5545 echo $ECHO_N "checking if $CC supports -Wall... $ECHO_C" >&6; }
5546 saved_CFLAGS="$CFLAGS"
5547 CFLAGS="$CFLAGS -Wall"
5548 cat >conftest.$ac_ext <<_ACEOF
5549 void main(void) { return 0; }
5551 rm -f conftest.$ac_objext
5552 if { (ac_try="$ac_compile"
5554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5555 *) ac_try_echo=$ac_try;;
5557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5558 (eval "$ac_compile") 2>conftest.er1
5560 grep -v '^ *+' conftest.er1 >conftest.err
5562 cat conftest.err >&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } && {
5565 test -z "$ac_c_werror_flag" ||
5566 test ! -s conftest.err
5567 } && test -s conftest.$ac_objext; then
5568 { echo "$as_me:$LINENO: result: yes" >&5
5569 echo "${ECHO_T}yes" >&6; }
5571 echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5574 { echo "$as_me:$LINENO: result: no" >&5
5575 echo "${ECHO_T}no" >&6; }
5576 CFLAGS="$saved_CFLAGS"
5580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5583 { echo "$as_me:$LINENO: checking if $CC supports -Wpointer-arith" >&5
5584 echo $ECHO_N "checking if $CC supports -Wpointer-arith... $ECHO_C" >&6; }
5585 saved_CFLAGS="$CFLAGS"
5586 CFLAGS="$CFLAGS -Wpointer-arith"
5587 cat >conftest.$ac_ext <<_ACEOF
5588 void main(void) { return 0; }
5590 rm -f conftest.$ac_objext
5591 if { (ac_try="$ac_compile"
5593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5594 *) ac_try_echo=$ac_try;;
5596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5597 (eval "$ac_compile") 2>conftest.er1
5599 grep -v '^ *+' conftest.er1 >conftest.err
5601 cat conftest.err >&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); } && {
5604 test -z "$ac_c_werror_flag" ||
5605 test ! -s conftest.err
5606 } && test -s conftest.$ac_objext; then
5607 { echo "$as_me:$LINENO: result: yes" >&5
5608 echo "${ECHO_T}yes" >&6; }
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5613 { echo "$as_me:$LINENO: result: no" >&5
5614 echo "${ECHO_T}no" >&6; }
5615 CFLAGS="$saved_CFLAGS"
5619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5622 { echo "$as_me:$LINENO: checking if $CC supports -Wuninitialized" >&5
5623 echo $ECHO_N "checking if $CC supports -Wuninitialized... $ECHO_C" >&6; }
5624 saved_CFLAGS="$CFLAGS"
5625 CFLAGS="$CFLAGS -Wuninitialized"
5626 cat >conftest.$ac_ext <<_ACEOF
5627 void main(void) { return 0; }
5629 rm -f conftest.$ac_objext
5630 if { (ac_try="$ac_compile"
5632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633 *) ac_try_echo=$ac_try;;
5635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636 (eval "$ac_compile") 2>conftest.er1
5638 grep -v '^ *+' conftest.er1 >conftest.err
5640 cat conftest.err >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } && {
5643 test -z "$ac_c_werror_flag" ||
5644 test ! -s conftest.err
5645 } && test -s conftest.$ac_objext; then
5646 { echo "$as_me:$LINENO: result: yes" >&5
5647 echo "${ECHO_T}yes" >&6; }
5649 echo "$as_me: failed program was:" >&5
5650 sed 's/^/| /' conftest.$ac_ext >&5
5652 { echo "$as_me:$LINENO: result: no" >&5
5653 echo "${ECHO_T}no" >&6; }
5654 CFLAGS="$saved_CFLAGS"
5658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5661 { echo "$as_me:$LINENO: checking if $CC supports -Wsign-compare" >&5
5662 echo $ECHO_N "checking if $CC supports -Wsign-compare... $ECHO_C" >&6; }
5663 saved_CFLAGS="$CFLAGS"
5664 CFLAGS="$CFLAGS -Wsign-compare"
5665 cat >conftest.$ac_ext <<_ACEOF
5666 void main(void) { return 0; }
5668 rm -f conftest.$ac_objext
5669 if { (ac_try="$ac_compile"
5671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672 *) ac_try_echo=$ac_try;;
5674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5675 (eval "$ac_compile") 2>conftest.er1
5677 grep -v '^ *+' conftest.er1 >conftest.err
5679 cat conftest.err >&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); } && {
5682 test -z "$ac_c_werror_flag" ||
5683 test ! -s conftest.err
5684 } && test -s conftest.$ac_objext; then
5685 { echo "$as_me:$LINENO: result: yes" >&5
5686 echo "${ECHO_T}yes" >&6; }
5688 echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.$ac_ext >&5
5691 { echo "$as_me:$LINENO: result: no" >&5
5692 echo "${ECHO_T}no" >&6; }
5693 CFLAGS="$saved_CFLAGS"
5697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700 { echo "$as_me:$LINENO: checking if $CC supports -Wformat-security" >&5
5701 echo $ECHO_N "checking if $CC supports -Wformat-security... $ECHO_C" >&6; }
5702 saved_CFLAGS="$CFLAGS"
5703 CFLAGS="$CFLAGS -Wformat-security"
5704 cat >conftest.$ac_ext <<_ACEOF
5705 void main(void) { return 0; }
5707 rm -f conftest.$ac_objext
5708 if { (ac_try="$ac_compile"
5710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5711 *) ac_try_echo=$ac_try;;
5713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5714 (eval "$ac_compile") 2>conftest.er1
5716 grep -v '^ *+' conftest.er1 >conftest.err
5718 cat conftest.err >&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } && {
5721 test -z "$ac_c_werror_flag" ||
5722 test ! -s conftest.err
5723 } && test -s conftest.$ac_objext; then
5724 { echo "$as_me:$LINENO: result: yes" >&5
5725 echo "${ECHO_T}yes" >&6; }
5727 echo "$as_me: failed program was:" >&5
5728 sed 's/^/| /' conftest.$ac_ext >&5
5730 { echo "$as_me:$LINENO: result: no" >&5
5731 echo "${ECHO_T}no" >&6; }
5732 CFLAGS="$saved_CFLAGS"
5736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5739 { echo "$as_me:$LINENO: checking if $CC supports -Wno-pointer-sign" >&5
5740 echo $ECHO_N "checking if $CC supports -Wno-pointer-sign... $ECHO_C" >&6; }
5741 saved_CFLAGS="$CFLAGS"
5742 CFLAGS="$CFLAGS -Wno-pointer-sign"
5743 cat >conftest.$ac_ext <<_ACEOF
5744 void main(void) { return 0; }
5746 rm -f conftest.$ac_objext
5747 if { (ac_try="$ac_compile"
5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750 *) ac_try_echo=$ac_try;;
5752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753 (eval "$ac_compile") 2>conftest.er1
5755 grep -v '^ *+' conftest.er1 >conftest.err
5757 cat conftest.err >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } && {
5760 test -z "$ac_c_werror_flag" ||
5761 test ! -s conftest.err
5762 } && test -s conftest.$ac_objext; then
5763 { echo "$as_me:$LINENO: result: yes" >&5
5764 echo "${ECHO_T}yes" >&6; }
5766 echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.$ac_ext >&5
5769 { echo "$as_me:$LINENO: result: no" >&5
5770 echo "${ECHO_T}no" >&6; }
5771 CFLAGS="$saved_CFLAGS"
5775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5778 { echo "$as_me:$LINENO: checking if $CC supports -Wno-unused-result" >&5
5779 echo $ECHO_N "checking if $CC supports -Wno-unused-result... $ECHO_C" >&6; }
5780 saved_CFLAGS="$CFLAGS"
5781 CFLAGS="$CFLAGS -Wno-unused-result"
5782 cat >conftest.$ac_ext <<_ACEOF
5783 void main(void) { return 0; }
5785 rm -f conftest.$ac_objext
5786 if { (ac_try="$ac_compile"
5788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789 *) ac_try_echo=$ac_try;;
5791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792 (eval "$ac_compile") 2>conftest.er1
5794 grep -v '^ *+' conftest.er1 >conftest.err
5796 cat conftest.err >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); } && {
5799 test -z "$ac_c_werror_flag" ||
5800 test ! -s conftest.err
5801 } && test -s conftest.$ac_objext; then
5802 { echo "$as_me:$LINENO: result: yes" >&5
5803 echo "${ECHO_T}yes" >&6; }
5805 echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5808 { echo "$as_me:$LINENO: result: no" >&5
5809 echo "${ECHO_T}no" >&6; }
5810 CFLAGS="$saved_CFLAGS"
5814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5817 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
5818 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
5819 saved_CFLAGS="$CFLAGS"
5820 CFLAGS="$CFLAGS -fno-strict-aliasing"
5821 cat >conftest.$ac_ext <<_ACEOF
5822 void main(void) { return 0; }
5824 rm -f conftest.$ac_objext
5825 if { (ac_try="$ac_compile"
5827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5828 *) ac_try_echo=$ac_try;;
5830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5831 (eval "$ac_compile") 2>conftest.er1
5833 grep -v '^ *+' conftest.er1 >conftest.err
5835 cat conftest.err >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } && {
5838 test -z "$ac_c_werror_flag" ||
5839 test ! -s conftest.err
5840 } && test -s conftest.$ac_objext; then
5841 { echo "$as_me:$LINENO: result: yes" >&5
5842 echo "${ECHO_T}yes" >&6; }
5844 echo "$as_me: failed program was:" >&5
5845 sed 's/^/| /' conftest.$ac_ext >&5
5847 { echo "$as_me:$LINENO: result: no" >&5
5848 echo "${ECHO_T}no" >&6; }
5849 CFLAGS="$saved_CFLAGS"
5853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855 { echo "$as_me:$LINENO: checking gcc version" >&5
5856 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
5857 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
5859 1.*) no_attrib_nonnull=1 ;;
5863 2.*) no_attrib_nonnull=1 ;;
5866 { echo "$as_me:$LINENO: result: $GCC_VER" >&5
5867 echo "${ECHO_T}$GCC_VER" >&6; }
5869 { echo "$as_me:$LINENO: checking if $CC accepts -fno-builtin-memset" >&5
5870 echo $ECHO_N "checking if $CC accepts -fno-builtin-memset... $ECHO_C" >&6; }
5871 saved_CFLAGS="$CFLAGS"
5872 CFLAGS="$CFLAGS -fno-builtin-memset"
5873 cat >conftest.$ac_ext <<_ACEOF
5876 cat confdefs.h >>conftest.$ac_ext
5877 cat >>conftest.$ac_ext <<_ACEOF
5878 /* end confdefs.h. */
5881 int main(void){char b[10]; memset(b, 0, sizeof(b));}
5884 rm -f conftest.$ac_objext conftest$ac_exeext
5885 if { (ac_try="$ac_link"
5887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888 *) ac_try_echo=$ac_try;;
5890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891 (eval "$ac_link") 2>conftest.er1
5893 grep -v '^ *+' conftest.er1 >conftest.err
5895 cat conftest.err >&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); } && {
5898 test -z "$ac_c_werror_flag" ||
5899 test ! -s conftest.err
5900 } && test -s conftest$ac_exeext &&
5901 $as_test_x conftest$ac_exeext; then
5902 { echo "$as_me:$LINENO: result: yes" >&5
5903 echo "${ECHO_T}yes" >&6; }
5905 echo "$as_me: failed program was:" >&5
5906 sed 's/^/| /' conftest.$ac_ext >&5
5908 { echo "$as_me:$LINENO: result: no" >&5
5909 echo "${ECHO_T}no" >&6; }
5910 CFLAGS="$saved_CFLAGS"
5914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5915 conftest$ac_exeext conftest.$ac_ext
5917 # -fstack-protector-all doesn't always work for some GCC versions
5918 # and/or platforms, so we test if we can. If it's not supported
5919 # on a given platform gcc will emit a warning so we use -Werror.
5920 if test "x$use_stack_protector" = "x1"; then
5921 for t in -fstack-protector-all -fstack-protector; do
5922 { echo "$as_me:$LINENO: checking if $CC supports $t" >&5
5923 echo $ECHO_N "checking if $CC supports $t... $ECHO_C" >&6; }
5924 saved_CFLAGS="$CFLAGS"
5925 saved_LDFLAGS="$LDFLAGS"
5926 CFLAGS="$CFLAGS $t -Werror"
5927 LDFLAGS="$LDFLAGS $t -Werror"
5928 cat >conftest.$ac_ext <<_ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5936 int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;}
5939 rm -f conftest.$ac_objext conftest$ac_exeext
5940 if { (ac_try="$ac_link"
5942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943 *) ac_try_echo=$ac_try;;
5945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5946 (eval "$ac_link") 2>conftest.er1
5948 grep -v '^ *+' conftest.er1 >conftest.err
5950 cat conftest.err >&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } && {
5953 test -z "$ac_c_werror_flag" ||
5954 test ! -s conftest.err
5955 } && test -s conftest$ac_exeext &&
5956 $as_test_x conftest$ac_exeext; then
5957 { echo "$as_me:$LINENO: result: yes" >&5
5958 echo "${ECHO_T}yes" >&6; }
5959 CFLAGS="$saved_CFLAGS $t"
5960 LDFLAGS="$saved_LDFLAGS $t"
5961 { echo "$as_me:$LINENO: checking if $t works" >&5
5962 echo $ECHO_N "checking if $t works... $ECHO_C" >&6; }
5963 if test "$cross_compiling" = yes; then
5964 { echo "$as_me:$LINENO: WARNING: cross compiling: cannot test" >&5
5965 echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
5969 cat >conftest.$ac_ext <<_ACEOF
5972 cat confdefs.h >>conftest.$ac_ext
5973 cat >>conftest.$ac_ext <<_ACEOF
5974 /* end confdefs.h. */
5977 int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;}
5980 rm -f conftest$ac_exeext
5981 if { (ac_try="$ac_link"
5983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984 *) ac_try_echo=$ac_try;;
5986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5987 (eval "$ac_link") 2>&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5991 { (case "(($ac_try" in
5992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5993 *) ac_try_echo=$ac_try;;
5995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5996 (eval "$ac_try") 2>&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; }; then
6000 { echo "$as_me:$LINENO: result: yes" >&5
6001 echo "${ECHO_T}yes" >&6; }
6004 echo "$as_me: program exited with status $ac_status" >&5
6005 echo "$as_me: failed program was:" >&5
6006 sed 's/^/| /' conftest.$ac_ext >&5
6009 { echo "$as_me:$LINENO: result: no" >&5
6010 echo "${ECHO_T}no" >&6; }
6012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6018 echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.$ac_ext >&5
6021 { echo "$as_me:$LINENO: result: no" >&5
6022 echo "${ECHO_T}no" >&6; }
6026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6027 conftest$ac_exeext conftest.$ac_ext
6028 CFLAGS="$saved_CFLAGS"
6029 LDFLAGS="$saved_LDFLAGS"
6033 if test -z "$have_llong_max"; then
6034 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
6035 unset ac_cv_have_decl_LLONG_MAX
6036 saved_CFLAGS="$CFLAGS"
6037 CFLAGS="$CFLAGS -std=gnu99"
6038 { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
6039 echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
6040 if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 cat >conftest.$ac_ext <<_ACEOF
6046 cat confdefs.h >>conftest.$ac_ext
6047 cat >>conftest.$ac_ext <<_ACEOF
6048 /* end confdefs.h. */
6063 rm -f conftest.$ac_objext
6064 if { (ac_try="$ac_compile"
6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067 *) ac_try_echo=$ac_try;;
6069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6070 (eval "$ac_compile") 2>conftest.er1
6072 grep -v '^ *+' conftest.er1 >conftest.err
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 ac_cv_have_decl_LLONG_MAX=yes
6082 echo "$as_me: failed program was:" >&5
6083 sed 's/^/| /' conftest.$ac_ext >&5
6085 ac_cv_have_decl_LLONG_MAX=no
6088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6090 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
6091 echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
6092 if test $ac_cv_have_decl_LLONG_MAX = yes; then
6095 CFLAGS="$saved_CFLAGS"
6101 if test "x$no_attrib_nonnull" != "x1" ; then
6103 cat >>confdefs.h <<\_ACEOF
6104 #define HAVE_ATTRIBUTE__NONNULL__ 1
6110 # Check whether --with-rpath was given.
6111 if test "${with_rpath+set}" = set; then
6112 withval=$with_rpath;
6113 if test "x$withval" = "xno" ; then
6116 if test "x$withval" = "xyes" ; then
6124 # Allow user to specify flags
6126 # Check whether --with-cflags was given.
6127 if test "${with_cflags+set}" = set; then
6128 withval=$with_cflags;
6129 if test -n "$withval" && test "x$withval" != "xno" && \
6130 test "x${withval}" != "xyes"; then
6131 CFLAGS="$CFLAGS $withval"
6138 # Check whether --with-cppflags was given.
6139 if test "${with_cppflags+set}" = set; then
6140 withval=$with_cppflags;
6141 if test -n "$withval" && test "x$withval" != "xno" && \
6142 test "x${withval}" != "xyes"; then
6143 CPPFLAGS="$CPPFLAGS $withval"
6150 # Check whether --with-ldflags was given.
6151 if test "${with_ldflags+set}" = set; then
6152 withval=$with_ldflags;
6153 if test -n "$withval" && test "x$withval" != "xno" && \
6154 test "x${withval}" != "xyes"; then
6155 LDFLAGS="$LDFLAGS $withval"
6162 # Check whether --with-libs was given.
6163 if test "${with_libs+set}" = set; then
6165 if test -n "$withval" && test "x$withval" != "xno" && \
6166 test "x${withval}" != "xyes"; then
6167 LIBS="$LIBS $withval"
6174 # Check whether --with-Werror was given.
6175 if test "${with_Werror+set}" = set; then
6176 withval=$with_Werror;
6177 if test -n "$withval" && test "x$withval" != "xno"; then
6178 werror_flags="-Werror"
6179 if test "x${withval}" != "xyes"; then
6180 werror_flags="$withval"
6277 security/pam_appl.h \
6317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6324 ac_res=`eval echo '${'$as_ac_Header'}'`
6325 { echo "$as_me:$LINENO: result: $ac_res" >&5
6326 echo "${ECHO_T}$ac_res" >&6; }
6328 # Is the header compilable?
6329 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6331 cat >conftest.$ac_ext <<_ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h. */
6337 $ac_includes_default
6338 #include <$ac_header>
6340 rm -f conftest.$ac_objext
6341 if { (ac_try="$ac_compile"
6343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6344 *) ac_try_echo=$ac_try;;
6346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6347 (eval "$ac_compile") 2>conftest.er1
6349 grep -v '^ *+' conftest.er1 >conftest.err
6351 cat conftest.err >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } && {
6354 test -z "$ac_c_werror_flag" ||
6355 test ! -s conftest.err
6356 } && test -s conftest.$ac_objext; then
6357 ac_header_compiler=yes
6359 echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.$ac_ext >&5
6362 ac_header_compiler=no
6365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6366 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6367 echo "${ECHO_T}$ac_header_compiler" >&6; }
6369 # Is the header present?
6370 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6372 cat >conftest.$ac_ext <<_ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h. */
6378 #include <$ac_header>
6380 if { (ac_try="$ac_cpp conftest.$ac_ext"
6382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6383 *) ac_try_echo=$ac_try;;
6385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6388 grep -v '^ *+' conftest.er1 >conftest.err
6390 cat conftest.err >&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } >/dev/null && {
6393 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6394 test ! -s conftest.err
6396 ac_header_preproc=yes
6398 echo "$as_me: failed program was:" >&5
6399 sed 's/^/| /' conftest.$ac_ext >&5
6401 ac_header_preproc=no
6404 rm -f conftest.err conftest.$ac_ext
6405 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6406 echo "${ECHO_T}$ac_header_preproc" >&6; }
6408 # So? What about this header?
6409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6411 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6414 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6415 ac_header_preproc=yes
6418 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6420 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6421 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6422 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6423 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6424 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6425 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6428 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6429 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6431 ## ------------------------------------------- ##
6432 ## Report this to openssh-unix-dev@mindrot.org ##
6433 ## ------------------------------------------- ##
6435 ) | sed "s/^/$as_me: WARNING: /" >&2
6438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 eval "$as_ac_Header=\$ac_header_preproc"
6445 ac_res=`eval echo '${'$as_ac_Header'}'`
6446 { echo "$as_me:$LINENO: result: $ac_res" >&5
6447 echo "${ECHO_T}$ac_res" >&6; }
6450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6451 cat >>confdefs.h <<_ACEOF
6452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6460 # lastlog.h requires sys/time.h to be included first on Solaris
6462 for ac_header in lastlog.h
6464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6468 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 cat >conftest.$ac_ext <<_ACEOF
6473 cat confdefs.h >>conftest.$ac_ext
6474 cat >>conftest.$ac_ext <<_ACEOF
6475 /* end confdefs.h. */
6477 #ifdef HAVE_SYS_TIME_H
6478 # include <sys/time.h>
6482 #include <$ac_header>
6484 rm -f conftest.$ac_objext
6485 if { (ac_try="$ac_compile"
6487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6488 *) ac_try_echo=$ac_try;;
6490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6491 (eval "$ac_compile") 2>conftest.er1
6493 grep -v '^ *+' conftest.er1 >conftest.err
6495 cat conftest.err >&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } && {
6498 test -z "$ac_c_werror_flag" ||
6499 test ! -s conftest.err
6500 } && test -s conftest.$ac_objext; then
6501 eval "$as_ac_Header=yes"
6503 echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.$ac_ext >&5
6506 eval "$as_ac_Header=no"
6509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6511 ac_res=`eval echo '${'$as_ac_Header'}'`
6512 { echo "$as_me:$LINENO: result: $ac_res" >&5
6513 echo "${ECHO_T}$ac_res" >&6; }
6514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6515 cat >>confdefs.h <<_ACEOF
6516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6524 # sys/ptms.h requires sys/stream.h to be included first on Solaris
6526 for ac_header in sys/ptms.h
6528 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6529 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6534 cat >conftest.$ac_ext <<_ACEOF
6537 cat confdefs.h >>conftest.$ac_ext
6538 cat >>conftest.$ac_ext <<_ACEOF
6539 /* end confdefs.h. */
6541 #ifdef HAVE_SYS_STREAM_H
6542 # include <sys/stream.h>
6546 #include <$ac_header>
6548 rm -f conftest.$ac_objext
6549 if { (ac_try="$ac_compile"
6551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6552 *) ac_try_echo=$ac_try;;
6554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6555 (eval "$ac_compile") 2>conftest.er1
6557 grep -v '^ *+' conftest.er1 >conftest.err
6559 cat conftest.err >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } && {
6562 test -z "$ac_c_werror_flag" ||
6563 test ! -s conftest.err
6564 } && test -s conftest.$ac_objext; then
6565 eval "$as_ac_Header=yes"
6567 echo "$as_me: failed program was:" >&5
6568 sed 's/^/| /' conftest.$ac_ext >&5
6570 eval "$as_ac_Header=no"
6573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6575 ac_res=`eval echo '${'$as_ac_Header'}'`
6576 { echo "$as_me:$LINENO: result: $ac_res" >&5
6577 echo "${ECHO_T}$ac_res" >&6; }
6578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6579 cat >>confdefs.h <<_ACEOF
6580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6588 # login_cap.h requires sys/types.h on NetBSD
6590 for ac_header in login_cap.h
6592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 cat >conftest.$ac_ext <<_ACEOF
6601 cat confdefs.h >>conftest.$ac_ext
6602 cat >>conftest.$ac_ext <<_ACEOF
6603 /* end confdefs.h. */
6605 #include <sys/types.h>
6608 #include <$ac_header>
6610 rm -f conftest.$ac_objext
6611 if { (ac_try="$ac_compile"
6613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6614 *) ac_try_echo=$ac_try;;
6616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6617 (eval "$ac_compile") 2>conftest.er1
6619 grep -v '^ *+' conftest.er1 >conftest.err
6621 cat conftest.err >&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); } && {
6624 test -z "$ac_c_werror_flag" ||
6625 test ! -s conftest.err
6626 } && test -s conftest.$ac_objext; then
6627 eval "$as_ac_Header=yes"
6629 echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.$ac_ext >&5
6632 eval "$as_ac_Header=no"
6635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6637 ac_res=`eval echo '${'$as_ac_Header'}'`
6638 { echo "$as_me:$LINENO: result: $ac_res" >&5
6639 echo "${ECHO_T}$ac_res" >&6; }
6640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6641 cat >>confdefs.h <<_ACEOF
6642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6650 # older BSDs need sys/param.h before sys/mount.h
6652 for ac_header in sys/mount.h
6654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6658 echo $ECHO_N "(cached) $ECHO_C" >&6
6660 cat >conftest.$ac_ext <<_ACEOF
6663 cat confdefs.h >>conftest.$ac_ext
6664 cat >>conftest.$ac_ext <<_ACEOF
6665 /* end confdefs.h. */
6667 #include <sys/param.h>
6670 #include <$ac_header>
6672 rm -f conftest.$ac_objext
6673 if { (ac_try="$ac_compile"
6675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6676 *) ac_try_echo=$ac_try;;
6678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6679 (eval "$ac_compile") 2>conftest.er1
6681 grep -v '^ *+' conftest.er1 >conftest.err
6683 cat conftest.err >&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); } && {
6686 test -z "$ac_c_werror_flag" ||
6687 test ! -s conftest.err
6688 } && test -s conftest.$ac_objext; then
6689 eval "$as_ac_Header=yes"
6691 echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.$ac_ext >&5
6694 eval "$as_ac_Header=no"
6697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6699 ac_res=`eval echo '${'$as_ac_Header'}'`
6700 { echo "$as_me:$LINENO: result: $ac_res" >&5
6701 echo "${ECHO_T}$ac_res" >&6; }
6702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6703 cat >>confdefs.h <<_ACEOF
6704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6712 # Messages for features tested for in target-specific section
6717 # Check for some target-specific stuff
6720 # Some versions of VAC won't allow macro redefinitions at
6721 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
6722 # particularly with older versions of vac or xlc.
6723 # It also throws errors about null macro argments, but these are
6725 { echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5
6726 echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; }
6727 cat >conftest.$ac_ext <<_ACEOF
6730 cat confdefs.h >>conftest.$ac_ext
6731 cat >>conftest.$ac_ext <<_ACEOF
6732 /* end confdefs.h. */
6734 #define testmacro foo
6735 #define testmacro bar
6736 int main(void) { exit(0); }
6739 rm -f conftest.$ac_objext
6740 if { (ac_try="$ac_compile"
6742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6743 *) ac_try_echo=$ac_try;;
6745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6746 (eval "$ac_compile") 2>conftest.er1
6748 grep -v '^ *+' conftest.er1 >conftest.err
6750 cat conftest.err >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } && {
6753 test -z "$ac_c_werror_flag" ||
6754 test ! -s conftest.err
6755 } && test -s conftest.$ac_objext; then
6756 { echo "$as_me:$LINENO: result: yes" >&5
6757 echo "${ECHO_T}yes" >&6; }
6759 echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6762 { echo "$as_me:$LINENO: result: no" >&5
6763 echo "${ECHO_T}no" >&6; }
6764 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
6765 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
6766 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6767 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6774 { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5
6775 echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; }
6776 if (test -z "$blibpath"); then
6777 blibpath="/usr/lib:/lib"
6779 saved_LDFLAGS="$LDFLAGS"
6780 if test "$GCC" = "yes"; then
6781 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
6783 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
6785 for tryflags in $flags ;do
6786 if (test -z "$blibflags"); then
6787 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
6788 cat >conftest.$ac_ext <<_ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h. */
6803 rm -f conftest.$ac_objext conftest$ac_exeext
6804 if { (ac_try="$ac_link"
6806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6807 *) ac_try_echo=$ac_try;;
6809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6810 (eval "$ac_link") 2>conftest.er1
6812 grep -v '^ *+' conftest.er1 >conftest.err
6814 cat conftest.err >&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } && {
6817 test -z "$ac_c_werror_flag" ||
6818 test ! -s conftest.err
6819 } && test -s conftest$ac_exeext &&
6820 $as_test_x conftest$ac_exeext; then
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6830 conftest$ac_exeext conftest.$ac_ext
6833 if (test -z "$blibflags"); then
6834 { echo "$as_me:$LINENO: result: not found" >&5
6835 echo "${ECHO_T}not found" >&6; }
6836 { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5
6837 echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;}
6838 { (exit 1); exit 1; }; }
6840 { echo "$as_me:$LINENO: result: $blibflags" >&5
6841 echo "${ECHO_T}$blibflags" >&6; }
6843 LDFLAGS="$saved_LDFLAGS"
6844 { echo "$as_me:$LINENO: checking for authenticate" >&5
6845 echo $ECHO_N "checking for authenticate... $ECHO_C" >&6; }
6846 if test "${ac_cv_func_authenticate+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6849 cat >conftest.$ac_ext <<_ACEOF
6852 cat confdefs.h >>conftest.$ac_ext
6853 cat >>conftest.$ac_ext <<_ACEOF
6854 /* end confdefs.h. */
6855 /* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate.
6856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6857 #define authenticate innocuous_authenticate
6859 /* System header to define __stub macros and hopefully few prototypes,
6860 which can conflict with char authenticate (); below.
6861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6862 <limits.h> exists even on freestanding compilers. */
6865 # include <limits.h>
6867 # include <assert.h>
6872 /* Override any GCC internal prototype to avoid an error.
6873 Use char because int might match the return type of a GCC
6874 builtin and then its argument prototype would still apply. */
6878 char authenticate ();
6879 /* The GNU C library defines this for functions which it implements
6880 to always fail with ENOSYS. Some functions are actually named
6881 something starting with __ and the normal name is an alias. */
6882 #if defined __stub_authenticate || defined __stub___authenticate
6889 return authenticate ();
6894 rm -f conftest.$ac_objext conftest$ac_exeext
6895 if { (ac_try="$ac_link"
6897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6898 *) ac_try_echo=$ac_try;;
6900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6901 (eval "$ac_link") 2>conftest.er1
6903 grep -v '^ *+' conftest.er1 >conftest.err
6905 cat conftest.err >&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } && {
6908 test -z "$ac_c_werror_flag" ||
6909 test ! -s conftest.err
6910 } && test -s conftest$ac_exeext &&
6911 $as_test_x conftest$ac_exeext; then
6912 ac_cv_func_authenticate=yes
6914 echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6917 ac_cv_func_authenticate=no
6920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6921 conftest$ac_exeext conftest.$ac_ext
6923 { echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
6924 echo "${ECHO_T}$ac_cv_func_authenticate" >&6; }
6925 if test $ac_cv_func_authenticate = yes; then
6927 cat >>confdefs.h <<\_ACEOF
6928 #define WITH_AIXAUTHENTICATE 1
6932 { echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
6933 echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6; }
6934 if test "${ac_cv_lib_s_authenticate+set}" = set; then
6935 echo $ECHO_N "(cached) $ECHO_C" >&6
6937 ac_check_lib_save_LIBS=$LIBS
6939 cat >conftest.$ac_ext <<_ACEOF
6942 cat confdefs.h >>conftest.$ac_ext
6943 cat >>conftest.$ac_ext <<_ACEOF
6944 /* end confdefs.h. */
6946 /* Override any GCC internal prototype to avoid an error.
6947 Use char because int might match the return type of a GCC
6948 builtin and then its argument prototype would still apply. */
6952 char authenticate ();
6956 return authenticate ();
6961 rm -f conftest.$ac_objext conftest$ac_exeext
6962 if { (ac_try="$ac_link"
6964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965 *) ac_try_echo=$ac_try;;
6967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6968 (eval "$ac_link") 2>conftest.er1
6970 grep -v '^ *+' conftest.er1 >conftest.err
6972 cat conftest.err >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } && {
6975 test -z "$ac_c_werror_flag" ||
6976 test ! -s conftest.err
6977 } && test -s conftest$ac_exeext &&
6978 $as_test_x conftest$ac_exeext; then
6979 ac_cv_lib_s_authenticate=yes
6981 echo "$as_me: failed program was:" >&5
6982 sed 's/^/| /' conftest.$ac_ext >&5
6984 ac_cv_lib_s_authenticate=no
6987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6988 conftest$ac_exeext conftest.$ac_ext
6989 LIBS=$ac_check_lib_save_LIBS
6991 { echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
6992 echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6; }
6993 if test $ac_cv_lib_s_authenticate = yes; then
6994 cat >>confdefs.h <<\_ACEOF
6995 #define WITH_AIXAUTHENTICATE 1
7005 { echo "$as_me:$LINENO: checking whether authenticate is declared" >&5
7006 echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6; }
7007 if test "${ac_cv_have_decl_authenticate+set}" = set; then
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
7010 cat >conftest.$ac_ext <<_ACEOF
7013 cat confdefs.h >>conftest.$ac_ext
7014 cat >>conftest.$ac_ext <<_ACEOF
7015 /* end confdefs.h. */
7016 #include <usersec.h>
7021 #ifndef authenticate
7022 (void) authenticate;
7029 rm -f conftest.$ac_objext
7030 if { (ac_try="$ac_compile"
7032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7033 *) ac_try_echo=$ac_try;;
7035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7036 (eval "$ac_compile") 2>conftest.er1
7038 grep -v '^ *+' conftest.er1 >conftest.err
7040 cat conftest.err >&5
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); } && {
7043 test -z "$ac_c_werror_flag" ||
7044 test ! -s conftest.err
7045 } && test -s conftest.$ac_objext; then
7046 ac_cv_have_decl_authenticate=yes
7048 echo "$as_me: failed program was:" >&5
7049 sed 's/^/| /' conftest.$ac_ext >&5
7051 ac_cv_have_decl_authenticate=no
7054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7056 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5
7057 echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6; }
7058 if test $ac_cv_have_decl_authenticate = yes; then
7060 cat >>confdefs.h <<_ACEOF
7061 #define HAVE_DECL_AUTHENTICATE 1
7066 cat >>confdefs.h <<_ACEOF
7067 #define HAVE_DECL_AUTHENTICATE 0
7072 { echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5
7073 echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6; }
7074 if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then
7075 echo $ECHO_N "(cached) $ECHO_C" >&6
7077 cat >conftest.$ac_ext <<_ACEOF
7080 cat confdefs.h >>conftest.$ac_ext
7081 cat >>conftest.$ac_ext <<_ACEOF
7082 /* end confdefs.h. */
7083 #include <usersec.h>
7088 #ifndef loginrestrictions
7089 (void) loginrestrictions;
7096 rm -f conftest.$ac_objext
7097 if { (ac_try="$ac_compile"
7099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7100 *) ac_try_echo=$ac_try;;
7102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7103 (eval "$ac_compile") 2>conftest.er1
7105 grep -v '^ *+' conftest.er1 >conftest.err
7107 cat conftest.err >&5
7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); } && {
7110 test -z "$ac_c_werror_flag" ||
7111 test ! -s conftest.err
7112 } && test -s conftest.$ac_objext; then
7113 ac_cv_have_decl_loginrestrictions=yes
7115 echo "$as_me: failed program was:" >&5
7116 sed 's/^/| /' conftest.$ac_ext >&5
7118 ac_cv_have_decl_loginrestrictions=no
7121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7123 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5
7124 echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6; }
7125 if test $ac_cv_have_decl_loginrestrictions = yes; then
7127 cat >>confdefs.h <<_ACEOF
7128 #define HAVE_DECL_LOGINRESTRICTIONS 1
7133 cat >>confdefs.h <<_ACEOF
7134 #define HAVE_DECL_LOGINRESTRICTIONS 0
7139 { echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5
7140 echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6; }
7141 if test "${ac_cv_have_decl_loginsuccess+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7144 cat >conftest.$ac_ext <<_ACEOF
7147 cat confdefs.h >>conftest.$ac_ext
7148 cat >>conftest.$ac_ext <<_ACEOF
7149 /* end confdefs.h. */
7150 #include <usersec.h>
7155 #ifndef loginsuccess
7156 (void) loginsuccess;
7163 rm -f conftest.$ac_objext
7164 if { (ac_try="$ac_compile"
7166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7167 *) ac_try_echo=$ac_try;;
7169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7170 (eval "$ac_compile") 2>conftest.er1
7172 grep -v '^ *+' conftest.er1 >conftest.err
7174 cat conftest.err >&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); } && {
7177 test -z "$ac_c_werror_flag" ||
7178 test ! -s conftest.err
7179 } && test -s conftest.$ac_objext; then
7180 ac_cv_have_decl_loginsuccess=yes
7182 echo "$as_me: failed program was:" >&5
7183 sed 's/^/| /' conftest.$ac_ext >&5
7185 ac_cv_have_decl_loginsuccess=no
7188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7190 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5
7191 echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6; }
7192 if test $ac_cv_have_decl_loginsuccess = yes; then
7194 cat >>confdefs.h <<_ACEOF
7195 #define HAVE_DECL_LOGINSUCCESS 1
7200 cat >>confdefs.h <<_ACEOF
7201 #define HAVE_DECL_LOGINSUCCESS 0
7206 { echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5
7207 echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6; }
7208 if test "${ac_cv_have_decl_passwdexpired+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7211 cat >conftest.$ac_ext <<_ACEOF
7214 cat confdefs.h >>conftest.$ac_ext
7215 cat >>conftest.$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7217 #include <usersec.h>
7222 #ifndef passwdexpired
7223 (void) passwdexpired;
7230 rm -f conftest.$ac_objext
7231 if { (ac_try="$ac_compile"
7233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7234 *) ac_try_echo=$ac_try;;
7236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7237 (eval "$ac_compile") 2>conftest.er1
7239 grep -v '^ *+' conftest.er1 >conftest.err
7241 cat conftest.err >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } && {
7244 test -z "$ac_c_werror_flag" ||
7245 test ! -s conftest.err
7246 } && test -s conftest.$ac_objext; then
7247 ac_cv_have_decl_passwdexpired=yes
7249 echo "$as_me: failed program was:" >&5
7250 sed 's/^/| /' conftest.$ac_ext >&5
7252 ac_cv_have_decl_passwdexpired=no
7255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7257 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5
7258 echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6; }
7259 if test $ac_cv_have_decl_passwdexpired = yes; then
7261 cat >>confdefs.h <<_ACEOF
7262 #define HAVE_DECL_PASSWDEXPIRED 1
7267 cat >>confdefs.h <<_ACEOF
7268 #define HAVE_DECL_PASSWDEXPIRED 0
7273 { echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5
7274 echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6; }
7275 if test "${ac_cv_have_decl_setauthdb+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 cat >conftest.$ac_ext <<_ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7284 #include <usersec.h>
7297 rm -f conftest.$ac_objext
7298 if { (ac_try="$ac_compile"
7300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7301 *) ac_try_echo=$ac_try;;
7303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7304 (eval "$ac_compile") 2>conftest.er1
7306 grep -v '^ *+' conftest.er1 >conftest.err
7308 cat conftest.err >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); } && {
7311 test -z "$ac_c_werror_flag" ||
7312 test ! -s conftest.err
7313 } && test -s conftest.$ac_objext; then
7314 ac_cv_have_decl_setauthdb=yes
7316 echo "$as_me: failed program was:" >&5
7317 sed 's/^/| /' conftest.$ac_ext >&5
7319 ac_cv_have_decl_setauthdb=no
7322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7324 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5
7325 echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6; }
7326 if test $ac_cv_have_decl_setauthdb = yes; then
7328 cat >>confdefs.h <<_ACEOF
7329 #define HAVE_DECL_SETAUTHDB 1
7334 cat >>confdefs.h <<_ACEOF
7335 #define HAVE_DECL_SETAUTHDB 0
7342 { echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5
7343 echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6; }
7344 if test "${ac_cv_have_decl_loginfailed+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7347 cat >conftest.$ac_ext <<_ACEOF
7350 cat confdefs.h >>conftest.$ac_ext
7351 cat >>conftest.$ac_ext <<_ACEOF
7352 /* end confdefs.h. */
7353 #include <usersec.h>
7367 rm -f conftest.$ac_objext
7368 if { (ac_try="$ac_compile"
7370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7371 *) ac_try_echo=$ac_try;;
7373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7374 (eval "$ac_compile") 2>conftest.er1
7376 grep -v '^ *+' conftest.er1 >conftest.err
7378 cat conftest.err >&5
7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); } && {
7381 test -z "$ac_c_werror_flag" ||
7382 test ! -s conftest.err
7383 } && test -s conftest.$ac_objext; then
7384 ac_cv_have_decl_loginfailed=yes
7386 echo "$as_me: failed program was:" >&5
7387 sed 's/^/| /' conftest.$ac_ext >&5
7389 ac_cv_have_decl_loginfailed=no
7392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7394 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5
7395 echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6; }
7396 if test $ac_cv_have_decl_loginfailed = yes; then
7398 cat >>confdefs.h <<_ACEOF
7399 #define HAVE_DECL_LOGINFAILED 1
7402 { echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5
7403 echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6; }
7404 cat >conftest.$ac_ext <<_ACEOF
7407 cat confdefs.h >>conftest.$ac_ext
7408 cat >>conftest.$ac_ext <<_ACEOF
7409 /* end confdefs.h. */
7410 #include <usersec.h>
7414 (void)loginfailed("user","host","tty",0);
7419 rm -f conftest.$ac_objext
7420 if { (ac_try="$ac_compile"
7422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7423 *) ac_try_echo=$ac_try;;
7425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7426 (eval "$ac_compile") 2>conftest.er1
7428 grep -v '^ *+' conftest.er1 >conftest.err
7430 cat conftest.err >&5
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); } && {
7433 test -z "$ac_c_werror_flag" ||
7434 test ! -s conftest.err
7435 } && test -s conftest.$ac_objext; then
7436 { echo "$as_me:$LINENO: result: yes" >&5
7437 echo "${ECHO_T}yes" >&6; }
7439 cat >>confdefs.h <<\_ACEOF
7440 #define AIX_LOGINFAILED_4ARG 1
7444 echo "$as_me: failed program was:" >&5
7445 sed 's/^/| /' conftest.$ac_ext >&5
7447 { echo "$as_me:$LINENO: result: no" >&5
7448 echo "${ECHO_T}no" >&6; }
7452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7454 cat >>confdefs.h <<_ACEOF
7455 #define HAVE_DECL_LOGINFAILED 0
7464 for ac_func in getgrset setauthdb
7466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7467 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 cat >conftest.$ac_ext <<_ACEOF
7475 cat confdefs.h >>conftest.$ac_ext
7476 cat >>conftest.$ac_ext <<_ACEOF
7477 /* end confdefs.h. */
7478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7480 #define $ac_func innocuous_$ac_func
7482 /* System header to define __stub macros and hopefully few prototypes,
7483 which can conflict with char $ac_func (); below.
7484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7485 <limits.h> exists even on freestanding compilers. */
7488 # include <limits.h>
7490 # include <assert.h>
7495 /* Override any GCC internal prototype to avoid an error.
7496 Use char because int might match the return type of a GCC
7497 builtin and then its argument prototype would still apply. */
7502 /* The GNU C library defines this for functions which it implements
7503 to always fail with ENOSYS. Some functions are actually named
7504 something starting with __ and the normal name is an alias. */
7505 #if defined __stub_$ac_func || defined __stub___$ac_func
7517 rm -f conftest.$ac_objext conftest$ac_exeext
7518 if { (ac_try="$ac_link"
7520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7521 *) ac_try_echo=$ac_try;;
7523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7524 (eval "$ac_link") 2>conftest.er1
7526 grep -v '^ *+' conftest.er1 >conftest.err
7528 cat conftest.err >&5
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); } && {
7531 test -z "$ac_c_werror_flag" ||
7532 test ! -s conftest.err
7533 } && test -s conftest$ac_exeext &&
7534 $as_test_x conftest$ac_exeext; then
7535 eval "$as_ac_var=yes"
7537 echo "$as_me: failed program was:" >&5
7538 sed 's/^/| /' conftest.$ac_ext >&5
7540 eval "$as_ac_var=no"
7543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7544 conftest$ac_exeext conftest.$ac_ext
7546 ac_res=`eval echo '${'$as_ac_var'}'`
7547 { echo "$as_me:$LINENO: result: $ac_res" >&5
7548 echo "${ECHO_T}$ac_res" >&6; }
7549 if test `eval echo '${'$as_ac_var'}'` = yes; then
7550 cat >>confdefs.h <<_ACEOF
7551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7557 { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
7558 echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
7559 if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 cat >conftest.$ac_ext <<_ACEOF
7565 cat confdefs.h >>conftest.$ac_ext
7566 cat >>conftest.$ac_ext <<_ACEOF
7567 /* end confdefs.h. */
7583 rm -f conftest.$ac_objext
7584 if { (ac_try="$ac_compile"
7586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7587 *) ac_try_echo=$ac_try;;
7589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7590 (eval "$ac_compile") 2>conftest.er1
7592 grep -v '^ *+' conftest.er1 >conftest.err
7594 cat conftest.err >&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } && {
7597 test -z "$ac_c_werror_flag" ||
7598 test ! -s conftest.err
7599 } && test -s conftest.$ac_objext; then
7600 ac_cv_have_decl_F_CLOSEM=yes
7602 echo "$as_me: failed program was:" >&5
7603 sed 's/^/| /' conftest.$ac_ext >&5
7605 ac_cv_have_decl_F_CLOSEM=no
7608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7610 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
7611 echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
7612 if test $ac_cv_have_decl_F_CLOSEM = yes; then
7614 cat >>confdefs.h <<\_ACEOF
7615 #define HAVE_FCNTL_CLOSEM 1
7620 check_for_aix_broken_getaddrinfo=1
7622 cat >>confdefs.h <<\_ACEOF
7623 #define BROKEN_REALPATH 1
7627 cat >>confdefs.h <<\_ACEOF
7628 #define SETEUID_BREAKS_SETUID 1
7632 cat >>confdefs.h <<\_ACEOF
7633 #define BROKEN_SETREUID 1
7637 cat >>confdefs.h <<\_ACEOF
7638 #define BROKEN_SETREGID 1
7642 cat >>confdefs.h <<\_ACEOF
7643 #define DISABLE_LASTLOG 1
7647 cat >>confdefs.h <<\_ACEOF
7648 #define LOGIN_NEEDS_UTMPX 1
7652 cat >>confdefs.h <<\_ACEOF
7653 #define SPT_TYPE SPT_REUSEARGV
7657 cat >>confdefs.h <<\_ACEOF
7658 #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
7662 cat >>confdefs.h <<\_ACEOF
7663 #define PTY_ZEROREAD 1
7668 check_for_libcrypt_later=1
7669 LIBS="$LIBS /usr/lib/textreadmode.o"
7671 cat >>confdefs.h <<\_ACEOF
7672 #define HAVE_CYGWIN 1
7676 cat >>confdefs.h <<\_ACEOF
7681 cat >>confdefs.h <<\_ACEOF
7682 #define DISABLE_SHADOW 1
7686 cat >>confdefs.h <<\_ACEOF
7687 #define NO_X11_UNIX_SOCKETS 1
7691 cat >>confdefs.h <<\_ACEOF
7692 #define NO_IPPORT_RESERVED_CONCEPT 1
7696 cat >>confdefs.h <<\_ACEOF
7697 #define DISABLE_FD_PASSING 1
7701 cat >>confdefs.h <<\_ACEOF
7702 #define SSH_IOBUFSZ 65535
7706 cat >>confdefs.h <<\_ACEOF
7707 #define FILESYSTEM_NO_BACKSLASH 1
7713 cat >>confdefs.h <<\_ACEOF
7714 #define IP_TOS_IS_BROKEN 1
7717 cat >>confdefs.h <<\_ACEOF
7718 #define SETEUID_BREAKS_SETUID 1
7721 cat >>confdefs.h <<\_ACEOF
7722 #define BROKEN_SETREUID 1
7725 cat >>confdefs.h <<\_ACEOF
7726 #define BROKEN_SETREGID 1
7731 { echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
7732 echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6; }
7733 if test "$cross_compiling" = yes; then
7734 { echo "$as_me:$LINENO: result: assume it is working" >&5
7735 echo "${ECHO_T}assume it is working" >&6; }
7737 cat >conftest.$ac_ext <<_ACEOF
7740 cat confdefs.h >>conftest.$ac_ext
7741 cat >>conftest.$ac_ext <<_ACEOF
7742 /* end confdefs.h. */
7743 #include <mach-o/dyld.h>
7744 main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
7750 rm -f conftest$ac_exeext
7751 if { (ac_try="$ac_link"
7753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7754 *) ac_try_echo=$ac_try;;
7756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7757 (eval "$ac_link") 2>&5
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7761 { (case "(($ac_try" in
7762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7763 *) ac_try_echo=$ac_try;;
7765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7766 (eval "$ac_try") 2>&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; }; then
7770 { echo "$as_me:$LINENO: result: working" >&5
7771 echo "${ECHO_T}working" >&6; }
7773 echo "$as_me: program exited with status $ac_status" >&5
7774 echo "$as_me: failed program was:" >&5
7775 sed 's/^/| /' conftest.$ac_ext >&5
7778 { echo "$as_me:$LINENO: result: buggy" >&5
7779 echo "${ECHO_T}buggy" >&6; }
7781 cat >>confdefs.h <<\_ACEOF
7782 #define BROKEN_GETADDRINFO 1
7786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7790 cat >>confdefs.h <<\_ACEOF
7791 #define SETEUID_BREAKS_SETUID 1
7794 cat >>confdefs.h <<\_ACEOF
7795 #define BROKEN_SETREUID 1
7798 cat >>confdefs.h <<\_ACEOF
7799 #define BROKEN_SETREGID 1
7803 cat >>confdefs.h <<\_ACEOF
7804 #define BROKEN_GLOB 1
7808 cat >>confdefs.h <<_ACEOF
7809 #define BIND_8_COMPAT 1
7813 cat >>confdefs.h <<\_ACEOF
7814 #define SSH_TUN_FREEBSD 1
7818 cat >>confdefs.h <<\_ACEOF
7819 #define SSH_TUN_COMPAT_AF 1
7823 cat >>confdefs.h <<\_ACEOF
7824 #define SSH_TUN_PREPEND_AF 1
7828 { echo "$as_me:$LINENO: checking whether AU_IPv4 is declared" >&5
7829 echo $ECHO_N "checking whether AU_IPv4 is declared... $ECHO_C" >&6; }
7830 if test "${ac_cv_have_decl_AU_IPv4+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7833 cat >conftest.$ac_ext <<_ACEOF
7836 cat confdefs.h >>conftest.$ac_ext
7837 cat >>conftest.$ac_ext <<_ACEOF
7838 /* end confdefs.h. */
7839 $ac_includes_default
7851 rm -f conftest.$ac_objext
7852 if { (ac_try="$ac_compile"
7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855 *) ac_try_echo=$ac_try;;
7857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858 (eval "$ac_compile") 2>conftest.er1
7860 grep -v '^ *+' conftest.er1 >conftest.err
7862 cat conftest.err >&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); } && {
7865 test -z "$ac_c_werror_flag" ||
7866 test ! -s conftest.err
7867 } && test -s conftest.$ac_objext; then
7868 ac_cv_have_decl_AU_IPv4=yes
7870 echo "$as_me: failed program was:" >&5
7871 sed 's/^/| /' conftest.$ac_ext >&5
7873 ac_cv_have_decl_AU_IPv4=no
7876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7878 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_AU_IPv4" >&5
7879 echo "${ECHO_T}$ac_cv_have_decl_AU_IPv4" >&6; }
7880 if test $ac_cv_have_decl_AU_IPv4 = yes; then
7884 cat >>confdefs.h <<\_ACEOF
7888 #include <bsm/audit.h>
7890 cat >>confdefs.h <<\_ACEOF
7891 #define LASTLOG_WRITE_PUTUTXLINE 1
7899 SSHDLIBS="$SSHDLIBS -lcrypt"
7904 { echo "$as_me:$LINENO: checking for socket in -lnetwork" >&5
7905 echo $ECHO_N "checking for socket in -lnetwork... $ECHO_C" >&6; }
7906 if test "${ac_cv_lib_network_socket+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 ac_check_lib_save_LIBS=$LIBS
7910 LIBS="-lnetwork $LIBS"
7911 cat >conftest.$ac_ext <<_ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7918 /* Override any GCC internal prototype to avoid an error.
7919 Use char because int might match the return type of a GCC
7920 builtin and then its argument prototype would still apply. */
7933 rm -f conftest.$ac_objext conftest$ac_exeext
7934 if { (ac_try="$ac_link"
7936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937 *) ac_try_echo=$ac_try;;
7939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7940 (eval "$ac_link") 2>conftest.er1
7942 grep -v '^ *+' conftest.er1 >conftest.err
7944 cat conftest.err >&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } && {
7947 test -z "$ac_c_werror_flag" ||
7948 test ! -s conftest.err
7949 } && test -s conftest$ac_exeext &&
7950 $as_test_x conftest$ac_exeext; then
7951 ac_cv_lib_network_socket=yes
7953 echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7956 ac_cv_lib_network_socket=no
7959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7960 conftest$ac_exeext conftest.$ac_ext
7961 LIBS=$ac_check_lib_save_LIBS
7963 { echo "$as_me:$LINENO: result: $ac_cv_lib_network_socket" >&5
7964 echo "${ECHO_T}$ac_cv_lib_network_socket" >&6; }
7965 if test $ac_cv_lib_network_socket = yes; then
7966 cat >>confdefs.h <<_ACEOF
7967 #define HAVE_LIBNETWORK 1
7970 LIBS="-lnetwork $LIBS"
7974 cat >>confdefs.h <<\_ACEOF
7975 #define HAVE_U_INT64_T 1
7981 # first we define all of the options common to all HP-UX releases
7982 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
7983 IPADDR_IN_DISPLAY=yes
7984 cat >>confdefs.h <<\_ACEOF
7989 cat >>confdefs.h <<\_ACEOF
7990 #define LOGIN_NO_ENDOPT 1
7993 cat >>confdefs.h <<\_ACEOF
7994 #define LOGIN_NEEDS_UTMPX 1
7998 cat >>confdefs.h <<\_ACEOF
7999 #define LOCKED_PASSWD_STRING "*"
8002 cat >>confdefs.h <<\_ACEOF
8003 #define SPT_TYPE SPT_PSTAT
8006 MAIL="/var/mail/username"
8009 { echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
8010 echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6; }
8011 if test "${ac_cv_lib_xnet_t_error+set}" = set; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
8014 ac_check_lib_save_LIBS=$LIBS
8016 cat >conftest.$ac_ext <<_ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8023 /* Override any GCC internal prototype to avoid an error.
8024 Use char because int might match the return type of a GCC
8025 builtin and then its argument prototype would still apply. */
8038 rm -f conftest.$ac_objext conftest$ac_exeext
8039 if { (ac_try="$ac_link"
8041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042 *) ac_try_echo=$ac_try;;
8044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8045 (eval "$ac_link") 2>conftest.er1
8047 grep -v '^ *+' conftest.er1 >conftest.err
8049 cat conftest.err >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } && {
8052 test -z "$ac_c_werror_flag" ||
8053 test ! -s conftest.err
8054 } && test -s conftest$ac_exeext &&
8055 $as_test_x conftest$ac_exeext; then
8056 ac_cv_lib_xnet_t_error=yes
8058 echo "$as_me: failed program was:" >&5
8059 sed 's/^/| /' conftest.$ac_ext >&5
8061 ac_cv_lib_xnet_t_error=no
8064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8065 conftest$ac_exeext conftest.$ac_ext
8066 LIBS=$ac_check_lib_save_LIBS
8068 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
8069 echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6; }
8070 if test $ac_cv_lib_xnet_t_error = yes; then
8071 cat >>confdefs.h <<_ACEOF
8072 #define HAVE_LIBXNET 1
8078 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
8079 echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
8080 { (exit 1); exit 1; }; }
8084 # next, we define all of the options specific to major releases
8087 if test -z "$GCC"; then
8088 CFLAGS="$CFLAGS -Ae"
8093 cat >>confdefs.h <<\_ACEOF
8094 #define PAM_SUN_CODEBASE 1
8098 cat >>confdefs.h <<\_ACEOF
8099 #define DISABLE_UTMP 1
8103 cat >>confdefs.h <<\_ACEOF
8107 check_for_hpux_broken_getaddrinfo=1
8108 check_for_conflicting_getspnam=1
8112 # lastly, we define options specific to minor releases
8116 cat >>confdefs.h <<\_ACEOF
8117 #define HAVE_SECUREWARE 1
8120 disable_ptmx_check=yes
8121 LIBS="$LIBS -lsecpw"
8126 PATH="$PATH:/usr/etc"
8128 cat >>confdefs.h <<\_ACEOF
8129 #define BROKEN_INET_NTOA 1
8132 cat >>confdefs.h <<\_ACEOF
8133 #define SETEUID_BREAKS_SETUID 1
8136 cat >>confdefs.h <<\_ACEOF
8137 #define BROKEN_SETREUID 1
8140 cat >>confdefs.h <<\_ACEOF
8141 #define BROKEN_SETREGID 1
8145 cat >>confdefs.h <<\_ACEOF
8146 #define WITH_ABBREV_NO_TTY 1
8149 cat >>confdefs.h <<\_ACEOF
8150 #define LOCKED_PASSWD_STRING "*LK*"
8155 PATH="$PATH:/usr/etc"
8157 cat >>confdefs.h <<\_ACEOF
8158 #define WITH_IRIX_ARRAY 1
8162 cat >>confdefs.h <<\_ACEOF
8163 #define WITH_IRIX_PROJECT 1
8167 cat >>confdefs.h <<\_ACEOF
8168 #define WITH_IRIX_AUDIT 1
8171 { echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
8172 echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6; }
8173 if test "${ac_cv_func_jlimit_startjob+set}" = set; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8176 cat >conftest.$ac_ext <<_ACEOF
8179 cat confdefs.h >>conftest.$ac_ext
8180 cat >>conftest.$ac_ext <<_ACEOF
8181 /* end confdefs.h. */
8182 /* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob.
8183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8184 #define jlimit_startjob innocuous_jlimit_startjob
8186 /* System header to define __stub macros and hopefully few prototypes,
8187 which can conflict with char jlimit_startjob (); below.
8188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8189 <limits.h> exists even on freestanding compilers. */
8192 # include <limits.h>
8194 # include <assert.h>
8197 #undef jlimit_startjob
8199 /* Override any GCC internal prototype to avoid an error.
8200 Use char because int might match the return type of a GCC
8201 builtin and then its argument prototype would still apply. */
8205 char jlimit_startjob ();
8206 /* The GNU C library defines this for functions which it implements
8207 to always fail with ENOSYS. Some functions are actually named
8208 something starting with __ and the normal name is an alias. */
8209 #if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob
8216 return jlimit_startjob ();
8221 rm -f conftest.$ac_objext conftest$ac_exeext
8222 if { (ac_try="$ac_link"
8224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225 *) ac_try_echo=$ac_try;;
8227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8228 (eval "$ac_link") 2>conftest.er1
8230 grep -v '^ *+' conftest.er1 >conftest.err
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_exeext &&
8238 $as_test_x conftest$ac_exeext; then
8239 ac_cv_func_jlimit_startjob=yes
8241 echo "$as_me: failed program was:" >&5
8242 sed 's/^/| /' conftest.$ac_ext >&5
8244 ac_cv_func_jlimit_startjob=no
8247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8248 conftest$ac_exeext conftest.$ac_ext
8250 { echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
8251 echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6; }
8252 if test $ac_cv_func_jlimit_startjob = yes; then
8254 cat >>confdefs.h <<\_ACEOF
8255 #define WITH_IRIX_JOBS 1
8260 cat >>confdefs.h <<\_ACEOF
8261 #define BROKEN_INET_NTOA 1
8264 cat >>confdefs.h <<\_ACEOF
8265 #define SETEUID_BREAKS_SETUID 1
8268 cat >>confdefs.h <<\_ACEOF
8269 #define BROKEN_SETREUID 1
8272 cat >>confdefs.h <<\_ACEOF
8273 #define BROKEN_SETREGID 1
8277 cat >>confdefs.h <<\_ACEOF
8278 #define BROKEN_UPDWTMPX 1
8281 cat >>confdefs.h <<\_ACEOF
8282 #define WITH_ABBREV_NO_TTY 1
8285 cat >>confdefs.h <<\_ACEOF
8286 #define LOCKED_PASSWD_STRING "*LK*"
8290 *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
8291 check_for_libcrypt_later=1
8292 cat >>confdefs.h <<\_ACEOF
8293 #define PAM_TTY_KLUDGE 1
8296 cat >>confdefs.h <<\_ACEOF
8297 #define LOCKED_PASSWD_PREFIX "!"
8300 cat >>confdefs.h <<\_ACEOF
8301 #define SPT_TYPE SPT_REUSEARGV
8305 cat >>confdefs.h <<\_ACEOF
8306 #define _PATH_BTMP "/var/log/btmp"
8310 cat >>confdefs.h <<\_ACEOF
8317 check_for_libcrypt_later=1
8318 check_for_openpty_ctty_bug=1
8320 cat >>confdefs.h <<\_ACEOF
8321 #define PAM_TTY_KLUDGE 1
8325 cat >>confdefs.h <<\_ACEOF
8326 #define LOCKED_PASSWD_PREFIX "!"
8329 cat >>confdefs.h <<\_ACEOF
8330 #define SPT_TYPE SPT_REUSEARGV
8334 cat >>confdefs.h <<\_ACEOF
8335 #define LINK_OPNOTSUPP_ERRNO EPERM
8339 cat >>confdefs.h <<\_ACEOF
8340 #define _PATH_BTMP "/var/log/btmp"
8343 cat >>confdefs.h <<\_ACEOF
8348 cat >>confdefs.h <<\_ACEOF
8349 #define LINUX_OOM_ADJUST 1
8352 inet6_default_4in6=yes
8356 cat >>confdefs.h <<\_ACEOF
8357 #define BROKEN_CMSG_TYPE 1
8362 # tun(4) forwarding compat code
8364 for ac_header in linux/if_tun.h
8366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8371 echo $ECHO_N "(cached) $ECHO_C" >&6
8373 ac_res=`eval echo '${'$as_ac_Header'}'`
8374 { echo "$as_me:$LINENO: result: $ac_res" >&5
8375 echo "${ECHO_T}$ac_res" >&6; }
8377 # Is the header compilable?
8378 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8380 cat >conftest.$ac_ext <<_ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h. */
8386 $ac_includes_default
8387 #include <$ac_header>
8389 rm -f conftest.$ac_objext
8390 if { (ac_try="$ac_compile"
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_compile") 2>conftest.er1
8398 grep -v '^ *+' conftest.er1 >conftest.err
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } && {
8403 test -z "$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8405 } && test -s conftest.$ac_objext; then
8406 ac_header_compiler=yes
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8411 ac_header_compiler=no
8414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8415 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8416 echo "${ECHO_T}$ac_header_compiler" >&6; }
8418 # Is the header present?
8419 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8421 cat >conftest.$ac_ext <<_ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8427 #include <$ac_header>
8429 if { (ac_try="$ac_cpp conftest.$ac_ext"
8431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8432 *) ac_try_echo=$ac_try;;
8434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8437 grep -v '^ *+' conftest.er1 >conftest.err
8439 cat conftest.err >&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); } >/dev/null && {
8442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8443 test ! -s conftest.err
8445 ac_header_preproc=yes
8447 echo "$as_me: failed program was:" >&5
8448 sed 's/^/| /' conftest.$ac_ext >&5
8450 ac_header_preproc=no
8453 rm -f conftest.err conftest.$ac_ext
8454 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8455 echo "${ECHO_T}$ac_header_preproc" >&6; }
8457 # So? What about this header?
8458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8460 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8461 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8463 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8464 ac_header_preproc=yes
8467 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8468 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8469 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8470 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8471 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8472 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8473 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8474 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8477 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8478 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8480 ## ------------------------------------------- ##
8481 ## Report this to openssh-unix-dev@mindrot.org ##
8482 ## ------------------------------------------- ##
8484 ) | sed "s/^/$as_me: WARNING: /" >&2
8487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8490 echo $ECHO_N "(cached) $ECHO_C" >&6
8492 eval "$as_ac_Header=\$ac_header_preproc"
8494 ac_res=`eval echo '${'$as_ac_Header'}'`
8495 { echo "$as_me:$LINENO: result: $ac_res" >&5
8496 echo "${ECHO_T}$ac_res" >&6; }
8499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8500 cat >>confdefs.h <<_ACEOF
8501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8508 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
8510 cat >>confdefs.h <<\_ACEOF
8511 #define SSH_TUN_LINUX 1
8515 cat >>confdefs.h <<\_ACEOF
8516 #define SSH_TUN_COMPAT_AF 1
8520 cat >>confdefs.h <<\_ACEOF
8521 #define SSH_TUN_PREPEND_AF 1
8526 mips-sony-bsd|mips-sony-newsos4)
8528 cat >>confdefs.h <<\_ACEOF
8529 #define NEED_SETPGRP 1
8535 check_for_libcrypt_before=1
8536 if test "x$withval" != "xno" ; then
8540 cat >>confdefs.h <<\_ACEOF
8541 #define SSH_TUN_FREEBSD 1
8544 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8545 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8546 echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8547 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8548 echo $ECHO_N "(cached) $ECHO_C" >&6
8550 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8551 echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8553 # Is the header compilable?
8554 { echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
8555 echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
8556 cat >conftest.$ac_ext <<_ACEOF
8559 cat confdefs.h >>conftest.$ac_ext
8560 cat >>conftest.$ac_ext <<_ACEOF
8561 /* end confdefs.h. */
8562 $ac_includes_default
8563 #include <net/if_tap.h>
8565 rm -f conftest.$ac_objext
8566 if { (ac_try="$ac_compile"
8568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8569 *) ac_try_echo=$ac_try;;
8571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8572 (eval "$ac_compile") 2>conftest.er1
8574 grep -v '^ *+' conftest.er1 >conftest.err
8576 cat conftest.err >&5
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } && {
8579 test -z "$ac_c_werror_flag" ||
8580 test ! -s conftest.err
8581 } && test -s conftest.$ac_objext; then
8582 ac_header_compiler=yes
8584 echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8587 ac_header_compiler=no
8590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8591 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8592 echo "${ECHO_T}$ac_header_compiler" >&6; }
8594 # Is the header present?
8595 { echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
8596 echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
8597 cat >conftest.$ac_ext <<_ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h. */
8603 #include <net/if_tap.h>
8605 if { (ac_try="$ac_cpp conftest.$ac_ext"
8607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8608 *) ac_try_echo=$ac_try;;
8610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8613 grep -v '^ *+' conftest.er1 >conftest.err
8615 cat conftest.err >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); } >/dev/null && {
8618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8619 test ! -s conftest.err
8621 ac_header_preproc=yes
8623 echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8626 ac_header_preproc=no
8629 rm -f conftest.err conftest.$ac_ext
8630 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8631 echo "${ECHO_T}$ac_header_preproc" >&6; }
8633 # So? What about this header?
8634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8636 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
8637 echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8638 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
8639 echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
8640 ac_header_preproc=yes
8643 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
8644 echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
8645 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
8646 echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
8647 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
8648 echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
8649 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
8650 echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
8651 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
8652 echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
8653 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
8654 echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
8656 ## ------------------------------------------- ##
8657 ## Report this to openssh-unix-dev@mindrot.org ##
8658 ## ------------------------------------------- ##
8660 ) | sed "s/^/$as_me: WARNING: /" >&2
8663 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8664 echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8665 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8666 echo $ECHO_N "(cached) $ECHO_C" >&6
8668 ac_cv_header_net_if_tap_h=$ac_header_preproc
8670 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8671 echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8674 if test $ac_cv_header_net_if_tap_h = yes; then
8678 cat >>confdefs.h <<\_ACEOF
8679 #define SSH_TUN_NO_L2 1
8686 cat >>confdefs.h <<\_ACEOF
8687 #define SSH_TUN_PREPEND_AF 1
8692 check_for_libcrypt_later=1
8694 cat >>confdefs.h <<\_ACEOF
8695 #define LOCKED_PASSWD_PREFIX "*LOCKED*"
8699 cat >>confdefs.h <<\_ACEOF
8700 #define SSH_TUN_FREEBSD 1
8703 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8704 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8705 echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8706 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8707 echo $ECHO_N "(cached) $ECHO_C" >&6
8709 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8710 echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8712 # Is the header compilable?
8713 { echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
8714 echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
8715 cat >conftest.$ac_ext <<_ACEOF
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h. */
8721 $ac_includes_default
8722 #include <net/if_tap.h>
8724 rm -f conftest.$ac_objext
8725 if { (ac_try="$ac_compile"
8727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8728 *) ac_try_echo=$ac_try;;
8730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8731 (eval "$ac_compile") 2>conftest.er1
8733 grep -v '^ *+' conftest.er1 >conftest.err
8735 cat conftest.err >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); } && {
8738 test -z "$ac_c_werror_flag" ||
8739 test ! -s conftest.err
8740 } && test -s conftest.$ac_objext; then
8741 ac_header_compiler=yes
8743 echo "$as_me: failed program was:" >&5
8744 sed 's/^/| /' conftest.$ac_ext >&5
8746 ac_header_compiler=no
8749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8751 echo "${ECHO_T}$ac_header_compiler" >&6; }
8753 # Is the header present?
8754 { echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
8755 echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
8756 cat >conftest.$ac_ext <<_ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8762 #include <net/if_tap.h>
8764 if { (ac_try="$ac_cpp conftest.$ac_ext"
8766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8767 *) ac_try_echo=$ac_try;;
8769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8772 grep -v '^ *+' conftest.er1 >conftest.err
8774 cat conftest.err >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); } >/dev/null && {
8777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8778 test ! -s conftest.err
8780 ac_header_preproc=yes
8782 echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8785 ac_header_preproc=no
8788 rm -f conftest.err conftest.$ac_ext
8789 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8790 echo "${ECHO_T}$ac_header_preproc" >&6; }
8792 # So? What about this header?
8793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8795 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
8796 echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8797 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
8798 echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
8799 ac_header_preproc=yes
8802 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
8803 echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
8804 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
8805 echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
8806 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
8807 echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
8808 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
8809 echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
8810 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
8811 echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
8812 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
8813 echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
8815 ## ------------------------------------------- ##
8816 ## Report this to openssh-unix-dev@mindrot.org ##
8817 ## ------------------------------------------- ##
8819 ) | sed "s/^/$as_me: WARNING: /" >&2
8822 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8823 echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8824 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8825 echo $ECHO_N "(cached) $ECHO_C" >&6
8827 ac_cv_header_net_if_tap_h=$ac_header_preproc
8829 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8830 echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8833 if test $ac_cv_header_net_if_tap_h = yes; then
8837 cat >>confdefs.h <<\_ACEOF
8838 #define SSH_TUN_NO_L2 1
8845 cat >>confdefs.h <<\_ACEOF
8846 #define BROKEN_GLOB 1
8851 cat >>confdefs.h <<\_ACEOF
8852 #define SETEUID_BREAKS_SETUID 1
8855 cat >>confdefs.h <<\_ACEOF
8856 #define BROKEN_SETREUID 1
8859 cat >>confdefs.h <<\_ACEOF
8860 #define BROKEN_SETREGID 1
8865 conf_lastlog_location="/usr/adm/lastlog"
8866 conf_utmp_location=/etc/utmp
8867 conf_wtmp_location=/usr/adm/wtmp
8868 MAIL=/usr/spool/mail
8870 cat >>confdefs.h <<\_ACEOF
8874 cat >>confdefs.h <<\_ACEOF
8875 #define BROKEN_REALPATH 1
8878 cat >>confdefs.h <<\_ACEOF
8883 cat >>confdefs.h <<\_ACEOF
8884 #define BROKEN_SAVED_UIDS 1
8890 cat >>confdefs.h <<\_ACEOF
8891 #define HAVE_ATTRIBUTE__SENTINEL__ 1
8895 cat >>confdefs.h <<\_ACEOF
8896 #define HAVE_ATTRIBUTE__BOUNDED__ 1
8900 cat >>confdefs.h <<\_ACEOF
8901 #define SSH_TUN_OPENBSD 1
8905 cat >>confdefs.h <<\_ACEOF
8906 #define SYSLOG_R_SAFE_IN_SIGHAND 1
8911 if test "x$withval" != "xno" ; then
8914 cat >>confdefs.h <<\_ACEOF
8915 #define PAM_SUN_CODEBASE 1
8918 cat >>confdefs.h <<\_ACEOF
8919 #define LOGIN_NEEDS_UTMPX 1
8923 cat >>confdefs.h <<\_ACEOF
8924 #define LOGIN_NEEDS_TERM 1
8927 cat >>confdefs.h <<\_ACEOF
8928 #define PAM_TTY_KLUDGE 1
8932 cat >>confdefs.h <<\_ACEOF
8933 #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
8936 cat >>confdefs.h <<\_ACEOF
8937 #define LOCKED_PASSWD_STRING "*LK*"
8940 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
8942 cat >>confdefs.h <<\_ACEOF
8943 #define SSHD_ACQUIRES_CTTY 1
8947 cat >>confdefs.h <<\_ACEOF
8948 #define PASSWD_NEEDS_USERNAME 1
8952 cat >>confdefs.h <<\_ACEOF
8953 #define BROKEN_TCGETATTR_ICANON 1
8956 external_path_file=/etc/default/login
8957 # hardwire lastlog location (can't detect it on some versions)
8958 conf_lastlog_location="/var/adm/lastlog"
8959 { echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
8960 echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; }
8961 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
8962 if test "$sol2ver" -ge 8; then
8963 { echo "$as_me:$LINENO: result: yes" >&5
8964 echo "${ECHO_T}yes" >&6; }
8965 cat >>confdefs.h <<\_ACEOF
8966 #define DISABLE_UTMP 1
8970 cat >>confdefs.h <<\_ACEOF
8971 #define DISABLE_WTMP 1
8975 { echo "$as_me:$LINENO: result: no" >&5
8976 echo "${ECHO_T}no" >&6; }
8979 # Check whether --with-solaris-contracts was given.
8980 if test "${with_solaris_contracts+set}" = set; then
8981 withval=$with_solaris_contracts;
8982 { echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5
8983 echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; }
8984 if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then
8985 echo $ECHO_N "(cached) $ECHO_C" >&6
8987 ac_check_lib_save_LIBS=$LIBS
8988 LIBS="-lcontract $LIBS"
8989 cat >conftest.$ac_ext <<_ACEOF
8992 cat confdefs.h >>conftest.$ac_ext
8993 cat >>conftest.$ac_ext <<_ACEOF
8994 /* end confdefs.h. */
8996 /* Override any GCC internal prototype to avoid an error.
8997 Use char because int might match the return type of a GCC
8998 builtin and then its argument prototype would still apply. */
9002 char ct_tmpl_activate ();
9006 return ct_tmpl_activate ();
9011 rm -f conftest.$ac_objext conftest$ac_exeext
9012 if { (ac_try="$ac_link"
9014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015 *) ac_try_echo=$ac_try;;
9017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9018 (eval "$ac_link") 2>conftest.er1
9020 grep -v '^ *+' conftest.er1 >conftest.err
9022 cat conftest.err >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); } && {
9025 test -z "$ac_c_werror_flag" ||
9026 test ! -s conftest.err
9027 } && test -s conftest$ac_exeext &&
9028 $as_test_x conftest$ac_exeext; then
9029 ac_cv_lib_contract_ct_tmpl_activate=yes
9031 echo "$as_me: failed program was:" >&5
9032 sed 's/^/| /' conftest.$ac_ext >&5
9034 ac_cv_lib_contract_ct_tmpl_activate=no
9037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9038 conftest$ac_exeext conftest.$ac_ext
9039 LIBS=$ac_check_lib_save_LIBS
9041 { echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
9042 echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
9043 if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then
9045 cat >>confdefs.h <<\_ACEOF
9046 #define USE_SOLARIS_PROCESS_CONTRACTS 1
9049 SSHDLIBS="$SSHDLIBS -lcontract"
9058 # Check whether --with-solaris-projects was given.
9059 if test "${with_solaris_projects+set}" = set; then
9060 withval=$with_solaris_projects;
9061 { echo "$as_me:$LINENO: checking for setproject in -lproject" >&5
9062 echo $ECHO_N "checking for setproject in -lproject... $ECHO_C" >&6; }
9063 if test "${ac_cv_lib_project_setproject+set}" = set; then
9064 echo $ECHO_N "(cached) $ECHO_C" >&6
9066 ac_check_lib_save_LIBS=$LIBS
9067 LIBS="-lproject $LIBS"
9068 cat >conftest.$ac_ext <<_ACEOF
9071 cat confdefs.h >>conftest.$ac_ext
9072 cat >>conftest.$ac_ext <<_ACEOF
9073 /* end confdefs.h. */
9075 /* Override any GCC internal prototype to avoid an error.
9076 Use char because int might match the return type of a GCC
9077 builtin and then its argument prototype would still apply. */
9085 return setproject ();
9090 rm -f conftest.$ac_objext conftest$ac_exeext
9091 if { (ac_try="$ac_link"
9093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9094 *) ac_try_echo=$ac_try;;
9096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9097 (eval "$ac_link") 2>conftest.er1
9099 grep -v '^ *+' conftest.er1 >conftest.err
9101 cat conftest.err >&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); } && {
9104 test -z "$ac_c_werror_flag" ||
9105 test ! -s conftest.err
9106 } && test -s conftest$ac_exeext &&
9107 $as_test_x conftest$ac_exeext; then
9108 ac_cv_lib_project_setproject=yes
9110 echo "$as_me: failed program was:" >&5
9111 sed 's/^/| /' conftest.$ac_ext >&5
9113 ac_cv_lib_project_setproject=no
9116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9117 conftest$ac_exeext conftest.$ac_ext
9118 LIBS=$ac_check_lib_save_LIBS
9120 { echo "$as_me:$LINENO: result: $ac_cv_lib_project_setproject" >&5
9121 echo "${ECHO_T}$ac_cv_lib_project_setproject" >&6; }
9122 if test $ac_cv_lib_project_setproject = yes; then
9124 cat >>confdefs.h <<\_ACEOF
9125 #define USE_SOLARIS_PROJECTS 1
9128 SSHDLIBS="$SSHDLIBS -lproject"
9138 CPPFLAGS="$CPPFLAGS -DSUNOS4"
9140 for ac_func in getpwanam
9142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9143 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9145 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9146 echo $ECHO_N "(cached) $ECHO_C" >&6
9148 cat >conftest.$ac_ext <<_ACEOF
9151 cat confdefs.h >>conftest.$ac_ext
9152 cat >>conftest.$ac_ext <<_ACEOF
9153 /* end confdefs.h. */
9154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9156 #define $ac_func innocuous_$ac_func
9158 /* System header to define __stub macros and hopefully few prototypes,
9159 which can conflict with char $ac_func (); below.
9160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9161 <limits.h> exists even on freestanding compilers. */
9164 # include <limits.h>
9166 # include <assert.h>
9171 /* Override any GCC internal prototype to avoid an error.
9172 Use char because int might match the return type of a GCC
9173 builtin and then its argument prototype would still apply. */
9178 /* The GNU C library defines this for functions which it implements
9179 to always fail with ENOSYS. Some functions are actually named
9180 something starting with __ and the normal name is an alias. */
9181 #if defined __stub_$ac_func || defined __stub___$ac_func
9193 rm -f conftest.$ac_objext conftest$ac_exeext
9194 if { (ac_try="$ac_link"
9196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9197 *) ac_try_echo=$ac_try;;
9199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9200 (eval "$ac_link") 2>conftest.er1
9202 grep -v '^ *+' conftest.er1 >conftest.err
9204 cat conftest.err >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } && {
9207 test -z "$ac_c_werror_flag" ||
9208 test ! -s conftest.err
9209 } && test -s conftest$ac_exeext &&
9210 $as_test_x conftest$ac_exeext; then
9211 eval "$as_ac_var=yes"
9213 echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.$ac_ext >&5
9216 eval "$as_ac_var=no"
9219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9220 conftest$ac_exeext conftest.$ac_ext
9222 ac_res=`eval echo '${'$as_ac_var'}'`
9223 { echo "$as_me:$LINENO: result: $ac_res" >&5
9224 echo "${ECHO_T}$ac_res" >&6; }
9225 if test `eval echo '${'$as_ac_var'}'` = yes; then
9226 cat >>confdefs.h <<_ACEOF
9227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9233 cat >>confdefs.h <<\_ACEOF
9234 #define PAM_SUN_CODEBASE 1
9237 conf_utmp_location=/etc/utmp
9238 conf_wtmp_location=/var/adm/wtmp
9239 conf_lastlog_location=/var/adm/lastlog
9240 cat >>confdefs.h <<\_ACEOF
9247 cat >>confdefs.h <<\_ACEOF
9251 cat >>confdefs.h <<\_ACEOF
9252 #define SSHD_ACQUIRES_CTTY 1
9255 cat >>confdefs.h <<\_ACEOF
9256 #define SETEUID_BREAKS_SETUID 1
9259 cat >>confdefs.h <<\_ACEOF
9260 #define BROKEN_SETREUID 1
9263 cat >>confdefs.h <<\_ACEOF
9264 #define BROKEN_SETREGID 1
9269 # /usr/ucblib MUST NOT be searched on ReliantUNIX
9271 { echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9272 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; }
9273 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9274 echo $ECHO_N "(cached) $ECHO_C" >&6
9276 ac_check_lib_save_LIBS=$LIBS
9278 cat >conftest.$ac_ext <<_ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h. */
9285 /* Override any GCC internal prototype to avoid an error.
9286 Use char because int might match the return type of a GCC
9287 builtin and then its argument prototype would still apply. */
9300 rm -f conftest.$ac_objext conftest$ac_exeext
9301 if { (ac_try="$ac_link"
9303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9304 *) ac_try_echo=$ac_try;;
9306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9307 (eval "$ac_link") 2>conftest.er1
9309 grep -v '^ *+' conftest.er1 >conftest.err
9311 cat conftest.err >&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); } && {
9314 test -z "$ac_c_werror_flag" ||
9315 test ! -s conftest.err
9316 } && test -s conftest$ac_exeext &&
9317 $as_test_x conftest$ac_exeext; then
9318 ac_cv_lib_dl_dlsym=yes
9320 echo "$as_me: failed program was:" >&5
9321 sed 's/^/| /' conftest.$ac_ext >&5
9323 ac_cv_lib_dl_dlsym=no
9326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9327 conftest$ac_exeext conftest.$ac_ext
9328 LIBS=$ac_check_lib_save_LIBS
9330 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9331 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; }
9332 if test $ac_cv_lib_dl_dlsym = yes; then
9333 cat >>confdefs.h <<_ACEOF
9334 #define HAVE_LIBDL 1
9341 # -lresolv needs to be at the end of LIBS or DNS lookups break
9342 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
9343 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
9344 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
9347 ac_check_lib_save_LIBS=$LIBS
9348 LIBS="-lresolv $LIBS"
9349 cat >conftest.$ac_ext <<_ACEOF
9352 cat confdefs.h >>conftest.$ac_ext
9353 cat >>conftest.$ac_ext <<_ACEOF
9354 /* end confdefs.h. */
9356 /* Override any GCC internal prototype to avoid an error.
9357 Use char because int might match the return type of a GCC
9358 builtin and then its argument prototype would still apply. */
9366 return res_query ();
9371 rm -f conftest.$ac_objext conftest$ac_exeext
9372 if { (ac_try="$ac_link"
9374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9375 *) ac_try_echo=$ac_try;;
9377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9378 (eval "$ac_link") 2>conftest.er1
9380 grep -v '^ *+' conftest.er1 >conftest.err
9382 cat conftest.err >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } && {
9385 test -z "$ac_c_werror_flag" ||
9386 test ! -s conftest.err
9387 } && test -s conftest$ac_exeext &&
9388 $as_test_x conftest$ac_exeext; then
9389 ac_cv_lib_resolv_res_query=yes
9391 echo "$as_me: failed program was:" >&5
9392 sed 's/^/| /' conftest.$ac_ext >&5
9394 ac_cv_lib_resolv_res_query=no
9397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9398 conftest$ac_exeext conftest.$ac_ext
9399 LIBS=$ac_check_lib_save_LIBS
9401 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
9402 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
9403 if test $ac_cv_lib_resolv_res_query = yes; then
9404 LIBS="$LIBS -lresolv"
9407 IPADDR_IN_DISPLAY=yes
9408 cat >>confdefs.h <<\_ACEOF
9412 cat >>confdefs.h <<\_ACEOF
9413 #define IP_TOS_IS_BROKEN 1
9416 cat >>confdefs.h <<\_ACEOF
9417 #define SETEUID_BREAKS_SETUID 1
9420 cat >>confdefs.h <<\_ACEOF
9421 #define BROKEN_SETREUID 1
9424 cat >>confdefs.h <<\_ACEOF
9425 #define BROKEN_SETREGID 1
9428 cat >>confdefs.h <<\_ACEOF
9429 #define SSHD_ACQUIRES_CTTY 1
9432 external_path_file=/etc/default/login
9433 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
9434 # Attention: always take care to bind libsocket and libnsl before libc,
9435 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
9437 # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
9439 cat >>confdefs.h <<\_ACEOF
9443 cat >>confdefs.h <<\_ACEOF
9444 #define SETEUID_BREAKS_SETUID 1
9447 cat >>confdefs.h <<\_ACEOF
9448 #define BROKEN_SETREUID 1
9451 cat >>confdefs.h <<\_ACEOF
9452 #define BROKEN_SETREGID 1
9456 cat >>confdefs.h <<\_ACEOF
9457 #define PASSWD_NEEDS_USERNAME 1
9460 cat >>confdefs.h <<\_ACEOF
9461 #define LOCKED_PASSWD_STRING "*LK*"
9465 # UnixWare 7.x, OpenUNIX 8
9467 CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf"
9469 cat >>confdefs.h <<\_ACEOF
9470 #define UNIXWARE_LONG_PASSWORDS 1
9473 cat >>confdefs.h <<\_ACEOF
9477 cat >>confdefs.h <<\_ACEOF
9478 #define SETEUID_BREAKS_SETUID 1
9481 cat >>confdefs.h <<\_ACEOF
9482 #define BROKEN_GETADDRINFO 1
9485 cat >>confdefs.h <<\_ACEOF
9486 #define BROKEN_SETREUID 1
9489 cat >>confdefs.h <<\_ACEOF
9490 #define BROKEN_SETREGID 1
9493 cat >>confdefs.h <<\_ACEOF
9494 #define PASSWD_NEEDS_USERNAME 1
9498 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
9499 TEST_SHELL=/u95/bin/sh
9501 cat >>confdefs.h <<\_ACEOF
9502 #define BROKEN_LIBIAF 1
9505 cat >>confdefs.h <<\_ACEOF
9506 #define BROKEN_UPDWTMPX 1
9509 { echo "$as_me:$LINENO: checking for getluid in -lprot" >&5
9510 echo $ECHO_N "checking for getluid in -lprot... $ECHO_C" >&6; }
9511 if test "${ac_cv_lib_prot_getluid+set}" = set; then
9512 echo $ECHO_N "(cached) $ECHO_C" >&6
9514 ac_check_lib_save_LIBS=$LIBS
9516 cat >conftest.$ac_ext <<_ACEOF
9519 cat confdefs.h >>conftest.$ac_ext
9520 cat >>conftest.$ac_ext <<_ACEOF
9521 /* end confdefs.h. */
9523 /* Override any GCC internal prototype to avoid an error.
9524 Use char because int might match the return type of a GCC
9525 builtin and then its argument prototype would still apply. */
9538 rm -f conftest.$ac_objext conftest$ac_exeext
9539 if { (ac_try="$ac_link"
9541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9542 *) ac_try_echo=$ac_try;;
9544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9545 (eval "$ac_link") 2>conftest.er1
9547 grep -v '^ *+' conftest.er1 >conftest.err
9549 cat conftest.err >&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); } && {
9552 test -z "$ac_c_werror_flag" ||
9553 test ! -s conftest.err
9554 } && test -s conftest$ac_exeext &&
9555 $as_test_x conftest$ac_exeext; then
9556 ac_cv_lib_prot_getluid=yes
9558 echo "$as_me: failed program was:" >&5
9559 sed 's/^/| /' conftest.$ac_ext >&5
9561 ac_cv_lib_prot_getluid=no
9564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9565 conftest$ac_exeext conftest.$ac_ext
9566 LIBS=$ac_check_lib_save_LIBS
9568 { echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getluid" >&5
9569 echo "${ECHO_T}$ac_cv_lib_prot_getluid" >&6; }
9570 if test $ac_cv_lib_prot_getluid = yes; then
9574 for ac_func in getluid setluid
9576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9577 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9579 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9580 echo $ECHO_N "(cached) $ECHO_C" >&6
9582 cat >conftest.$ac_ext <<_ACEOF
9585 cat confdefs.h >>conftest.$ac_ext
9586 cat >>conftest.$ac_ext <<_ACEOF
9587 /* end confdefs.h. */
9588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9590 #define $ac_func innocuous_$ac_func
9592 /* System header to define __stub macros and hopefully few prototypes,
9593 which can conflict with char $ac_func (); below.
9594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9595 <limits.h> exists even on freestanding compilers. */
9598 # include <limits.h>
9600 # include <assert.h>
9605 /* Override any GCC internal prototype to avoid an error.
9606 Use char because int might match the return type of a GCC
9607 builtin and then its argument prototype would still apply. */
9612 /* The GNU C library defines this for functions which it implements
9613 to always fail with ENOSYS. Some functions are actually named
9614 something starting with __ and the normal name is an alias. */
9615 #if defined __stub_$ac_func || defined __stub___$ac_func
9627 rm -f conftest.$ac_objext conftest$ac_exeext
9628 if { (ac_try="$ac_link"
9630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9631 *) ac_try_echo=$ac_try;;
9633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9634 (eval "$ac_link") 2>conftest.er1
9636 grep -v '^ *+' conftest.er1 >conftest.err
9638 cat conftest.err >&5
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); } && {
9641 test -z "$ac_c_werror_flag" ||
9642 test ! -s conftest.err
9643 } && test -s conftest$ac_exeext &&
9644 $as_test_x conftest$ac_exeext; then
9645 eval "$as_ac_var=yes"
9647 echo "$as_me: failed program was:" >&5
9648 sed 's/^/| /' conftest.$ac_ext >&5
9650 eval "$as_ac_var=no"
9653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9654 conftest$ac_exeext conftest.$ac_ext
9656 ac_res=`eval echo '${'$as_ac_var'}'`
9657 { echo "$as_me:$LINENO: result: $ac_res" >&5
9658 echo "${ECHO_T}$ac_res" >&6; }
9659 if test `eval echo '${'$as_ac_var'}'` = yes; then
9660 cat >>confdefs.h <<_ACEOF
9661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9667 cat >>confdefs.h <<\_ACEOF
9668 #define HAVE_SECUREWARE 1
9671 cat >>confdefs.h <<\_ACEOF
9672 #define DISABLE_SHADOW 1
9679 *) cat >>confdefs.h <<\_ACEOF
9680 #define LOCKED_PASSWD_STRING "*LK*"
9683 check_for_libcrypt_later=1
9689 # SCO UNIX and OEM versions of SCO UNIX
9691 { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5
9692 echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;}
9693 { (exit 1); exit 1; }; }
9695 # SCO OpenServer 5.x
9697 if test -z "$GCC"; then
9698 CFLAGS="$CFLAGS -belf"
9700 LIBS="$LIBS -lprot -lx -ltinfo -lm"
9702 cat >>confdefs.h <<\_ACEOF
9706 cat >>confdefs.h <<\_ACEOF
9707 #define HAVE_SECUREWARE 1
9710 cat >>confdefs.h <<\_ACEOF
9711 #define DISABLE_SHADOW 1
9714 cat >>confdefs.h <<\_ACEOF
9715 #define DISABLE_FD_PASSING 1
9718 cat >>confdefs.h <<\_ACEOF
9719 #define SETEUID_BREAKS_SETUID 1
9722 cat >>confdefs.h <<\_ACEOF
9723 #define BROKEN_GETADDRINFO 1
9726 cat >>confdefs.h <<\_ACEOF
9727 #define BROKEN_SETREUID 1
9730 cat >>confdefs.h <<\_ACEOF
9731 #define BROKEN_SETREGID 1
9734 cat >>confdefs.h <<\_ACEOF
9735 #define WITH_ABBREV_NO_TTY 1
9738 cat >>confdefs.h <<\_ACEOF
9739 #define BROKEN_UPDWTMPX 1
9742 cat >>confdefs.h <<\_ACEOF
9743 #define PASSWD_NEEDS_USERNAME 1
9748 for ac_func in getluid setluid
9750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9751 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9754 echo $ECHO_N "(cached) $ECHO_C" >&6
9756 cat >conftest.$ac_ext <<_ACEOF
9759 cat confdefs.h >>conftest.$ac_ext
9760 cat >>conftest.$ac_ext <<_ACEOF
9761 /* end confdefs.h. */
9762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9764 #define $ac_func innocuous_$ac_func
9766 /* System header to define __stub macros and hopefully few prototypes,
9767 which can conflict with char $ac_func (); below.
9768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9769 <limits.h> exists even on freestanding compilers. */
9772 # include <limits.h>
9774 # include <assert.h>
9779 /* Override any GCC internal prototype to avoid an error.
9780 Use char because int might match the return type of a GCC
9781 builtin and then its argument prototype would still apply. */
9786 /* The GNU C library defines this for functions which it implements
9787 to always fail with ENOSYS. Some functions are actually named
9788 something starting with __ and the normal name is an alias. */
9789 #if defined __stub_$ac_func || defined __stub___$ac_func
9801 rm -f conftest.$ac_objext conftest$ac_exeext
9802 if { (ac_try="$ac_link"
9804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9805 *) ac_try_echo=$ac_try;;
9807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9808 (eval "$ac_link") 2>conftest.er1
9810 grep -v '^ *+' conftest.er1 >conftest.err
9812 cat conftest.err >&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); } && {
9815 test -z "$ac_c_werror_flag" ||
9816 test ! -s conftest.err
9817 } && test -s conftest$ac_exeext &&
9818 $as_test_x conftest$ac_exeext; then
9819 eval "$as_ac_var=yes"
9821 echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.$ac_ext >&5
9824 eval "$as_ac_var=no"
9827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9828 conftest$ac_exeext conftest.$ac_ext
9830 ac_res=`eval echo '${'$as_ac_var'}'`
9831 { echo "$as_me:$LINENO: result: $ac_res" >&5
9832 echo "${ECHO_T}$ac_res" >&6; }
9833 if test `eval echo '${'$as_ac_var'}'` = yes; then
9834 cat >>confdefs.h <<_ACEOF
9835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9846 cat >>confdefs.h <<\_ACEOF
9847 #define NO_SSH_LASTLOG 1
9850 cat >>confdefs.h <<\_ACEOF
9851 #define SETEUID_BREAKS_SETUID 1
9854 cat >>confdefs.h <<\_ACEOF
9855 #define BROKEN_SETREUID 1
9858 cat >>confdefs.h <<\_ACEOF
9859 #define BROKEN_SETREGID 1
9862 cat >>confdefs.h <<\_ACEOF
9866 cat >>confdefs.h <<\_ACEOF
9867 #define DISABLE_FD_PASSING 1
9871 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
9875 cat >>confdefs.h <<\_ACEOF
9876 #define SETEUID_BREAKS_SETUID 1
9879 cat >>confdefs.h <<\_ACEOF
9880 #define BROKEN_SETREUID 1
9883 cat >>confdefs.h <<\_ACEOF
9884 #define BROKEN_SETREGID 1
9887 cat >>confdefs.h <<\_ACEOF
9888 #define WITH_ABBREV_NO_TTY 1
9891 cat >>confdefs.h <<\_ACEOF
9895 cat >>confdefs.h <<\_ACEOF
9896 #define DISABLE_FD_PASSING 1
9900 LIBS="$LIBS -lgen -lacid -ldb"
9904 cat >>confdefs.h <<\_ACEOF
9905 #define SETEUID_BREAKS_SETUID 1
9908 cat >>confdefs.h <<\_ACEOF
9909 #define BROKEN_SETREUID 1
9912 cat >>confdefs.h <<\_ACEOF
9913 #define BROKEN_SETREGID 1
9916 cat >>confdefs.h <<\_ACEOF
9920 cat >>confdefs.h <<\_ACEOF
9921 #define DISABLE_FD_PASSING 1
9924 cat >>confdefs.h <<\_ACEOF
9925 #define NO_SSH_LASTLOG 1
9928 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
9929 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
9933 { echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
9934 echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6; }
9937 # Check whether --with-osfsia was given.
9938 if test "${with_osfsia+set}" = set; then
9939 withval=$with_osfsia;
9940 if test "x$withval" = "xno" ; then
9941 { echo "$as_me:$LINENO: result: disabled" >&5
9942 echo "${ECHO_T}disabled" >&6; }
9948 if test -z "$no_osfsia" ; then
9949 if test -f /etc/sia/matrix.conf; then
9950 { echo "$as_me:$LINENO: result: yes" >&5
9951 echo "${ECHO_T}yes" >&6; }
9953 cat >>confdefs.h <<\_ACEOF
9954 #define HAVE_OSF_SIA 1
9958 cat >>confdefs.h <<\_ACEOF
9959 #define DISABLE_LOGIN 1
9962 cat >>confdefs.h <<\_ACEOF
9963 #define DISABLE_FD_PASSING 1
9966 LIBS="$LIBS -lsecurity -ldb -lm -laud"
9969 { echo "$as_me:$LINENO: result: no" >&5
9970 echo "${ECHO_T}no" >&6; }
9972 cat >>confdefs.h <<\_ACEOF
9973 #define LOCKED_PASSWD_SUBSTR "Nologin"
9978 cat >>confdefs.h <<\_ACEOF
9979 #define BROKEN_GETADDRINFO 1
9982 cat >>confdefs.h <<\_ACEOF
9983 #define SETEUID_BREAKS_SETUID 1
9986 cat >>confdefs.h <<\_ACEOF
9987 #define BROKEN_SETREUID 1
9990 cat >>confdefs.h <<\_ACEOF
9991 #define BROKEN_SETREGID 1
9995 cat >>confdefs.h <<\_ACEOF
9996 #define BROKEN_READV_COMPARISON 1
10002 cat >>confdefs.h <<\_ACEOF
10003 #define USE_PIPES 1
10006 cat >>confdefs.h <<\_ACEOF
10007 #define NO_X11_UNIX_SOCKETS 1
10011 cat >>confdefs.h <<\_ACEOF
10012 #define MISSING_NFDBITS 1
10016 cat >>confdefs.h <<\_ACEOF
10017 #define MISSING_HOWMANY 1
10021 cat >>confdefs.h <<\_ACEOF
10022 #define MISSING_FD_MASK 1
10025 cat >>confdefs.h <<\_ACEOF
10026 #define DISABLE_LASTLOG 1
10029 cat >>confdefs.h <<\_ACEOF
10030 #define SSHD_ACQUIRES_CTTY 1
10034 cat >>confdefs.h <<\_ACEOF
10035 #define BROKEN_SHADOW_EXPIRE 1
10038 enable_etc_default_login=no # has incompatible /etc/default/login
10041 cat >>confdefs.h <<\_ACEOF
10042 #define DISABLE_FD_PASSING 1
10051 cat >>confdefs.h <<\_ACEOF
10052 #define BROKEN_GETGROUPS 1
10056 cat >>confdefs.h <<\_ACEOF
10057 #define BROKEN_MMAP 1
10060 cat >>confdefs.h <<\_ACEOF
10061 #define NEED_SETPGRP 1
10065 cat >>confdefs.h <<\_ACEOF
10066 #define HAVE_SYS_SYSLOG_H 1
10072 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
10073 cat >>confdefs.h <<\_ACEOF
10074 #define MISSING_HOWMANY 1
10078 cat >>confdefs.h <<\_ACEOF
10079 #define BROKEN_SETVBUF 1
10085 { echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5
10086 echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; }
10087 if test "$cross_compiling" = yes; then
10088 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5
10089 echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
10092 cat >conftest.$ac_ext <<_ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h. */
10100 int main(){exit(0);}
10103 rm -f conftest$ac_exeext
10104 if { (ac_try="$ac_link"
10105 case "(($ac_try" in
10106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10107 *) ac_try_echo=$ac_try;;
10109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10110 (eval "$ac_link") 2>&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10114 { (case "(($ac_try" in
10115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10116 *) ac_try_echo=$ac_try;;
10118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10119 (eval "$ac_try") 2>&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; }; then
10123 { echo "$as_me:$LINENO: result: yes" >&5
10124 echo "${ECHO_T}yes" >&6; }
10126 echo "$as_me: program exited with status $ac_status" >&5
10127 echo "$as_me: failed program was:" >&5
10128 sed 's/^/| /' conftest.$ac_ext >&5
10130 ( exit $ac_status )
10132 { echo "$as_me:$LINENO: result: no" >&5
10133 echo "${ECHO_T}no" >&6; }
10134 { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5
10135 echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;}
10136 { (exit 1); exit 1; }; }
10139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10144 # Checks for libraries.
10145 { echo "$as_me:$LINENO: checking for yp_match" >&5
10146 echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; }
10147 if test "${ac_cv_func_yp_match+set}" = set; then
10148 echo $ECHO_N "(cached) $ECHO_C" >&6
10150 cat >conftest.$ac_ext <<_ACEOF
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h. */
10156 /* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match.
10157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10158 #define yp_match innocuous_yp_match
10160 /* System header to define __stub macros and hopefully few prototypes,
10161 which can conflict with char yp_match (); below.
10162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10163 <limits.h> exists even on freestanding compilers. */
10166 # include <limits.h>
10168 # include <assert.h>
10173 /* Override any GCC internal prototype to avoid an error.
10174 Use char because int might match the return type of a GCC
10175 builtin and then its argument prototype would still apply. */
10180 /* The GNU C library defines this for functions which it implements
10181 to always fail with ENOSYS. Some functions are actually named
10182 something starting with __ and the normal name is an alias. */
10183 #if defined __stub_yp_match || defined __stub___yp_match
10190 return yp_match ();
10195 rm -f conftest.$ac_objext conftest$ac_exeext
10196 if { (ac_try="$ac_link"
10197 case "(($ac_try" in
10198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199 *) ac_try_echo=$ac_try;;
10201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10202 (eval "$ac_link") 2>conftest.er1
10204 grep -v '^ *+' conftest.er1 >conftest.err
10206 cat conftest.err >&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } && {
10209 test -z "$ac_c_werror_flag" ||
10210 test ! -s conftest.err
10211 } && test -s conftest$ac_exeext &&
10212 $as_test_x conftest$ac_exeext; then
10213 ac_cv_func_yp_match=yes
10215 echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10218 ac_cv_func_yp_match=no
10221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10222 conftest$ac_exeext conftest.$ac_ext
10224 { echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
10225 echo "${ECHO_T}$ac_cv_func_yp_match" >&6; }
10226 if test $ac_cv_func_yp_match = yes; then
10230 { echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
10231 echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6; }
10232 if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10235 ac_check_lib_save_LIBS=$LIBS
10237 cat >conftest.$ac_ext <<_ACEOF
10240 cat confdefs.h >>conftest.$ac_ext
10241 cat >>conftest.$ac_ext <<_ACEOF
10242 /* end confdefs.h. */
10244 /* Override any GCC internal prototype to avoid an error.
10245 Use char because int might match the return type of a GCC
10246 builtin and then its argument prototype would still apply. */
10254 return yp_match ();
10259 rm -f conftest.$ac_objext conftest$ac_exeext
10260 if { (ac_try="$ac_link"
10261 case "(($ac_try" in
10262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10263 *) ac_try_echo=$ac_try;;
10265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10266 (eval "$ac_link") 2>conftest.er1
10268 grep -v '^ *+' conftest.er1 >conftest.err
10270 cat conftest.err >&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); } && {
10273 test -z "$ac_c_werror_flag" ||
10274 test ! -s conftest.err
10275 } && test -s conftest$ac_exeext &&
10276 $as_test_x conftest$ac_exeext; then
10277 ac_cv_lib_nsl_yp_match=yes
10279 echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10282 ac_cv_lib_nsl_yp_match=no
10285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10286 conftest$ac_exeext conftest.$ac_ext
10287 LIBS=$ac_check_lib_save_LIBS
10289 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
10290 echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6; }
10291 if test $ac_cv_lib_nsl_yp_match = yes; then
10292 cat >>confdefs.h <<_ACEOF
10293 #define HAVE_LIBNSL 1
10302 { echo "$as_me:$LINENO: checking for setsockopt" >&5
10303 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
10304 if test "${ac_cv_func_setsockopt+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10307 cat >conftest.$ac_ext <<_ACEOF
10310 cat confdefs.h >>conftest.$ac_ext
10311 cat >>conftest.$ac_ext <<_ACEOF
10312 /* end confdefs.h. */
10313 /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
10314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10315 #define setsockopt innocuous_setsockopt
10317 /* System header to define __stub macros and hopefully few prototypes,
10318 which can conflict with char setsockopt (); below.
10319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10320 <limits.h> exists even on freestanding compilers. */
10323 # include <limits.h>
10325 # include <assert.h>
10330 /* Override any GCC internal prototype to avoid an error.
10331 Use char because int might match the return type of a GCC
10332 builtin and then its argument prototype would still apply. */
10336 char setsockopt ();
10337 /* The GNU C library defines this for functions which it implements
10338 to always fail with ENOSYS. Some functions are actually named
10339 something starting with __ and the normal name is an alias. */
10340 #if defined __stub_setsockopt || defined __stub___setsockopt
10347 return setsockopt ();
10352 rm -f conftest.$ac_objext conftest$ac_exeext
10353 if { (ac_try="$ac_link"
10354 case "(($ac_try" in
10355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10356 *) ac_try_echo=$ac_try;;
10358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10359 (eval "$ac_link") 2>conftest.er1
10361 grep -v '^ *+' conftest.er1 >conftest.err
10363 cat conftest.err >&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); } && {
10366 test -z "$ac_c_werror_flag" ||
10367 test ! -s conftest.err
10368 } && test -s conftest$ac_exeext &&
10369 $as_test_x conftest$ac_exeext; then
10370 ac_cv_func_setsockopt=yes
10372 echo "$as_me: failed program was:" >&5
10373 sed 's/^/| /' conftest.$ac_ext >&5
10375 ac_cv_func_setsockopt=no
10378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10379 conftest$ac_exeext conftest.$ac_ext
10381 { echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
10382 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; }
10383 if test $ac_cv_func_setsockopt = yes; then
10387 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
10388 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; }
10389 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
10390 echo $ECHO_N "(cached) $ECHO_C" >&6
10392 ac_check_lib_save_LIBS=$LIBS
10393 LIBS="-lsocket $LIBS"
10394 cat >conftest.$ac_ext <<_ACEOF
10397 cat confdefs.h >>conftest.$ac_ext
10398 cat >>conftest.$ac_ext <<_ACEOF
10399 /* end confdefs.h. */
10401 /* Override any GCC internal prototype to avoid an error.
10402 Use char because int might match the return type of a GCC
10403 builtin and then its argument prototype would still apply. */
10407 char setsockopt ();
10411 return setsockopt ();
10416 rm -f conftest.$ac_objext conftest$ac_exeext
10417 if { (ac_try="$ac_link"
10418 case "(($ac_try" in
10419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10420 *) ac_try_echo=$ac_try;;
10422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10423 (eval "$ac_link") 2>conftest.er1
10425 grep -v '^ *+' conftest.er1 >conftest.err
10427 cat conftest.err >&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); } && {
10430 test -z "$ac_c_werror_flag" ||
10431 test ! -s conftest.err
10432 } && test -s conftest$ac_exeext &&
10433 $as_test_x conftest$ac_exeext; then
10434 ac_cv_lib_socket_setsockopt=yes
10436 echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10439 ac_cv_lib_socket_setsockopt=no
10442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10443 conftest$ac_exeext conftest.$ac_ext
10444 LIBS=$ac_check_lib_save_LIBS
10446 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
10447 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; }
10448 if test $ac_cv_lib_socket_setsockopt = yes; then
10449 cat >>confdefs.h <<_ACEOF
10450 #define HAVE_LIBSOCKET 1
10453 LIBS="-lsocket $LIBS"
10461 for ac_func in dirname
10463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10464 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10466 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10467 echo $ECHO_N "(cached) $ECHO_C" >&6
10469 cat >conftest.$ac_ext <<_ACEOF
10472 cat confdefs.h >>conftest.$ac_ext
10473 cat >>conftest.$ac_ext <<_ACEOF
10474 /* end confdefs.h. */
10475 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10477 #define $ac_func innocuous_$ac_func
10479 /* System header to define __stub macros and hopefully few prototypes,
10480 which can conflict with char $ac_func (); below.
10481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10482 <limits.h> exists even on freestanding compilers. */
10485 # include <limits.h>
10487 # include <assert.h>
10492 /* Override any GCC internal prototype to avoid an error.
10493 Use char because int might match the return type of a GCC
10494 builtin and then its argument prototype would still apply. */
10499 /* The GNU C library defines this for functions which it implements
10500 to always fail with ENOSYS. Some functions are actually named
10501 something starting with __ and the normal name is an alias. */
10502 #if defined __stub_$ac_func || defined __stub___$ac_func
10509 return $ac_func ();
10514 rm -f conftest.$ac_objext conftest$ac_exeext
10515 if { (ac_try="$ac_link"
10516 case "(($ac_try" in
10517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10518 *) ac_try_echo=$ac_try;;
10520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10521 (eval "$ac_link") 2>conftest.er1
10523 grep -v '^ *+' conftest.er1 >conftest.err
10525 cat conftest.err >&5
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); } && {
10528 test -z "$ac_c_werror_flag" ||
10529 test ! -s conftest.err
10530 } && test -s conftest$ac_exeext &&
10531 $as_test_x conftest$ac_exeext; then
10532 eval "$as_ac_var=yes"
10534 echo "$as_me: failed program was:" >&5
10535 sed 's/^/| /' conftest.$ac_ext >&5
10537 eval "$as_ac_var=no"
10540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10541 conftest$ac_exeext conftest.$ac_ext
10543 ac_res=`eval echo '${'$as_ac_var'}'`
10544 { echo "$as_me:$LINENO: result: $ac_res" >&5
10545 echo "${ECHO_T}$ac_res" >&6; }
10546 if test `eval echo '${'$as_ac_var'}'` = yes; then
10547 cat >>confdefs.h <<_ACEOF
10548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10551 for ac_header in libgen.h
10553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
10560 ac_res=`eval echo '${'$as_ac_Header'}'`
10561 { echo "$as_me:$LINENO: result: $ac_res" >&5
10562 echo "${ECHO_T}$ac_res" >&6; }
10564 # Is the header compilable?
10565 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10567 cat >conftest.$ac_ext <<_ACEOF
10570 cat confdefs.h >>conftest.$ac_ext
10571 cat >>conftest.$ac_ext <<_ACEOF
10572 /* end confdefs.h. */
10573 $ac_includes_default
10574 #include <$ac_header>
10576 rm -f conftest.$ac_objext
10577 if { (ac_try="$ac_compile"
10578 case "(($ac_try" in
10579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10580 *) ac_try_echo=$ac_try;;
10582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10583 (eval "$ac_compile") 2>conftest.er1
10585 grep -v '^ *+' conftest.er1 >conftest.err
10587 cat conftest.err >&5
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); } && {
10590 test -z "$ac_c_werror_flag" ||
10591 test ! -s conftest.err
10592 } && test -s conftest.$ac_objext; then
10593 ac_header_compiler=yes
10595 echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10598 ac_header_compiler=no
10601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10602 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10603 echo "${ECHO_T}$ac_header_compiler" >&6; }
10605 # Is the header present?
10606 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10608 cat >conftest.$ac_ext <<_ACEOF
10611 cat confdefs.h >>conftest.$ac_ext
10612 cat >>conftest.$ac_ext <<_ACEOF
10613 /* end confdefs.h. */
10614 #include <$ac_header>
10616 if { (ac_try="$ac_cpp conftest.$ac_ext"
10617 case "(($ac_try" in
10618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619 *) ac_try_echo=$ac_try;;
10621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10624 grep -v '^ *+' conftest.er1 >conftest.err
10626 cat conftest.err >&5
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); } >/dev/null && {
10629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10630 test ! -s conftest.err
10632 ac_header_preproc=yes
10634 echo "$as_me: failed program was:" >&5
10635 sed 's/^/| /' conftest.$ac_ext >&5
10637 ac_header_preproc=no
10640 rm -f conftest.err conftest.$ac_ext
10641 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10642 echo "${ECHO_T}$ac_header_preproc" >&6; }
10644 # So? What about this header?
10645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10647 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10648 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10650 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10651 ac_header_preproc=yes
10654 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10655 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10656 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10657 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10658 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10659 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10660 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10661 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10663 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10664 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10665 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10667 ## ------------------------------------------- ##
10668 ## Report this to openssh-unix-dev@mindrot.org ##
10669 ## ------------------------------------------- ##
10671 ) | sed "s/^/$as_me: WARNING: /" >&2
10674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
10679 eval "$as_ac_Header=\$ac_header_preproc"
10681 ac_res=`eval echo '${'$as_ac_Header'}'`
10682 { echo "$as_me:$LINENO: result: $ac_res" >&5
10683 echo "${ECHO_T}$ac_res" >&6; }
10686 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10687 cat >>confdefs.h <<_ACEOF
10688 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10697 { echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
10698 echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6; }
10699 if test "${ac_cv_lib_gen_dirname+set}" = set; then
10700 echo $ECHO_N "(cached) $ECHO_C" >&6
10702 ac_check_lib_save_LIBS=$LIBS
10704 cat >conftest.$ac_ext <<_ACEOF
10707 cat confdefs.h >>conftest.$ac_ext
10708 cat >>conftest.$ac_ext <<_ACEOF
10709 /* end confdefs.h. */
10711 /* Override any GCC internal prototype to avoid an error.
10712 Use char because int might match the return type of a GCC
10713 builtin and then its argument prototype would still apply. */
10726 rm -f conftest.$ac_objext conftest$ac_exeext
10727 if { (ac_try="$ac_link"
10728 case "(($ac_try" in
10729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10730 *) ac_try_echo=$ac_try;;
10732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10733 (eval "$ac_link") 2>conftest.er1
10735 grep -v '^ *+' conftest.er1 >conftest.err
10737 cat conftest.err >&5
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); } && {
10740 test -z "$ac_c_werror_flag" ||
10741 test ! -s conftest.err
10742 } && test -s conftest$ac_exeext &&
10743 $as_test_x conftest$ac_exeext; then
10744 ac_cv_lib_gen_dirname=yes
10746 echo "$as_me: failed program was:" >&5
10747 sed 's/^/| /' conftest.$ac_ext >&5
10749 ac_cv_lib_gen_dirname=no
10752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10753 conftest$ac_exeext conftest.$ac_ext
10754 LIBS=$ac_check_lib_save_LIBS
10756 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
10757 echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6; }
10758 if test $ac_cv_lib_gen_dirname = yes; then
10760 { echo "$as_me:$LINENO: checking for broken dirname" >&5
10761 echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6; }
10762 if test "${ac_cv_have_broken_dirname+set}" = set; then
10763 echo $ECHO_N "(cached) $ECHO_C" >&6
10768 if test "$cross_compiling" = yes; then
10769 ac_cv_have_broken_dirname="no"
10771 cat >conftest.$ac_ext <<_ACEOF
10774 cat confdefs.h >>conftest.$ac_ext
10775 cat >>conftest.$ac_ext <<_ACEOF
10776 /* end confdefs.h. */
10778 #include <libgen.h>
10779 #include <string.h>
10781 int main(int argc, char **argv) {
10784 strncpy(buf,"/etc", 32);
10786 if (!s || strncmp(s, "/", 32) != 0) {
10794 rm -f conftest$ac_exeext
10795 if { (ac_try="$ac_link"
10796 case "(($ac_try" in
10797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798 *) ac_try_echo=$ac_try;;
10800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10801 (eval "$ac_link") 2>&5
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10805 { (case "(($ac_try" in
10806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10807 *) ac_try_echo=$ac_try;;
10809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10810 (eval "$ac_try") 2>&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); }; }; then
10814 ac_cv_have_broken_dirname="no"
10816 echo "$as_me: program exited with status $ac_status" >&5
10817 echo "$as_me: failed program was:" >&5
10818 sed 's/^/| /' conftest.$ac_ext >&5
10820 ( exit $ac_status )
10821 ac_cv_have_broken_dirname="yes"
10823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10830 { echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
10831 echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6; }
10832 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
10834 cat >>confdefs.h <<\_ACEOF
10835 #define HAVE_DIRNAME 1
10839 for ac_header in libgen.h
10841 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10843 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10848 ac_res=`eval echo '${'$as_ac_Header'}'`
10849 { echo "$as_me:$LINENO: result: $ac_res" >&5
10850 echo "${ECHO_T}$ac_res" >&6; }
10852 # Is the header compilable?
10853 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10854 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10855 cat >conftest.$ac_ext <<_ACEOF
10858 cat confdefs.h >>conftest.$ac_ext
10859 cat >>conftest.$ac_ext <<_ACEOF
10860 /* end confdefs.h. */
10861 $ac_includes_default
10862 #include <$ac_header>
10864 rm -f conftest.$ac_objext
10865 if { (ac_try="$ac_compile"
10866 case "(($ac_try" in
10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871 (eval "$ac_compile") 2>conftest.er1
10873 grep -v '^ *+' conftest.er1 >conftest.err
10875 cat conftest.err >&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } && {
10878 test -z "$ac_c_werror_flag" ||
10879 test ! -s conftest.err
10880 } && test -s conftest.$ac_objext; then
10881 ac_header_compiler=yes
10883 echo "$as_me: failed program was:" >&5
10884 sed 's/^/| /' conftest.$ac_ext >&5
10886 ac_header_compiler=no
10889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10890 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10891 echo "${ECHO_T}$ac_header_compiler" >&6; }
10893 # Is the header present?
10894 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10896 cat >conftest.$ac_ext <<_ACEOF
10899 cat confdefs.h >>conftest.$ac_ext
10900 cat >>conftest.$ac_ext <<_ACEOF
10901 /* end confdefs.h. */
10902 #include <$ac_header>
10904 if { (ac_try="$ac_cpp conftest.$ac_ext"
10905 case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10912 grep -v '^ *+' conftest.er1 >conftest.err
10914 cat conftest.err >&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } >/dev/null && {
10917 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10918 test ! -s conftest.err
10920 ac_header_preproc=yes
10922 echo "$as_me: failed program was:" >&5
10923 sed 's/^/| /' conftest.$ac_ext >&5
10925 ac_header_preproc=no
10928 rm -f conftest.err conftest.$ac_ext
10929 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10930 echo "${ECHO_T}$ac_header_preproc" >&6; }
10932 # So? What about this header?
10933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10935 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10936 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10938 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10939 ac_header_preproc=yes
10942 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10943 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10944 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10945 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10946 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10947 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10948 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10949 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10951 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10952 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10953 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10955 ## ------------------------------------------- ##
10956 ## Report this to openssh-unix-dev@mindrot.org ##
10957 ## ------------------------------------------- ##
10959 ) | sed "s/^/$as_me: WARNING: /" >&2
10962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10965 echo $ECHO_N "(cached) $ECHO_C" >&6
10967 eval "$as_ac_Header=\$ac_header_preproc"
10969 ac_res=`eval echo '${'$as_ac_Header'}'`
10970 { echo "$as_me:$LINENO: result: $ac_res" >&5
10971 echo "${ECHO_T}$ac_res" >&6; }
10974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10975 cat >>confdefs.h <<_ACEOF
10976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10992 { echo "$as_me:$LINENO: checking for getspnam" >&5
10993 echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; }
10994 if test "${ac_cv_func_getspnam+set}" = set; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
10997 cat >conftest.$ac_ext <<_ACEOF
11000 cat confdefs.h >>conftest.$ac_ext
11001 cat >>conftest.$ac_ext <<_ACEOF
11002 /* end confdefs.h. */
11003 /* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
11004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11005 #define getspnam innocuous_getspnam
11007 /* System header to define __stub macros and hopefully few prototypes,
11008 which can conflict with char getspnam (); below.
11009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11010 <limits.h> exists even on freestanding compilers. */
11013 # include <limits.h>
11015 # include <assert.h>
11020 /* Override any GCC internal prototype to avoid an error.
11021 Use char because int might match the return type of a GCC
11022 builtin and then its argument prototype would still apply. */
11027 /* The GNU C library defines this for functions which it implements
11028 to always fail with ENOSYS. Some functions are actually named
11029 something starting with __ and the normal name is an alias. */
11030 #if defined __stub_getspnam || defined __stub___getspnam
11037 return getspnam ();
11042 rm -f conftest.$ac_objext conftest$ac_exeext
11043 if { (ac_try="$ac_link"
11044 case "(($ac_try" in
11045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11046 *) ac_try_echo=$ac_try;;
11048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11049 (eval "$ac_link") 2>conftest.er1
11051 grep -v '^ *+' conftest.er1 >conftest.err
11053 cat conftest.err >&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); } && {
11056 test -z "$ac_c_werror_flag" ||
11057 test ! -s conftest.err
11058 } && test -s conftest$ac_exeext &&
11059 $as_test_x conftest$ac_exeext; then
11060 ac_cv_func_getspnam=yes
11062 echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11065 ac_cv_func_getspnam=no
11068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11069 conftest$ac_exeext conftest.$ac_ext
11071 { echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
11072 echo "${ECHO_T}$ac_cv_func_getspnam" >&6; }
11073 if test $ac_cv_func_getspnam = yes; then
11076 { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
11077 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; }
11078 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
11079 echo $ECHO_N "(cached) $ECHO_C" >&6
11081 ac_check_lib_save_LIBS=$LIBS
11083 cat >conftest.$ac_ext <<_ACEOF
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h. */
11090 /* Override any GCC internal prototype to avoid an error.
11091 Use char because int might match the return type of a GCC
11092 builtin and then its argument prototype would still apply. */
11100 return getspnam ();
11105 rm -f conftest.$ac_objext conftest$ac_exeext
11106 if { (ac_try="$ac_link"
11107 case "(($ac_try" in
11108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11109 *) ac_try_echo=$ac_try;;
11111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11112 (eval "$ac_link") 2>conftest.er1
11114 grep -v '^ *+' conftest.er1 >conftest.err
11116 cat conftest.err >&5
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); } && {
11119 test -z "$ac_c_werror_flag" ||
11120 test ! -s conftest.err
11121 } && test -s conftest$ac_exeext &&
11122 $as_test_x conftest$ac_exeext; then
11123 ac_cv_lib_gen_getspnam=yes
11125 echo "$as_me: failed program was:" >&5
11126 sed 's/^/| /' conftest.$ac_ext >&5
11128 ac_cv_lib_gen_getspnam=no
11131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11132 conftest$ac_exeext conftest.$ac_ext
11133 LIBS=$ac_check_lib_save_LIBS
11135 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
11136 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; }
11137 if test $ac_cv_lib_gen_getspnam = yes; then
11143 { echo "$as_me:$LINENO: checking for library containing basename" >&5
11144 echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; }
11145 if test "${ac_cv_search_basename+set}" = set; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11148 ac_func_search_save_LIBS=$LIBS
11149 cat >conftest.$ac_ext <<_ACEOF
11152 cat confdefs.h >>conftest.$ac_ext
11153 cat >>conftest.$ac_ext <<_ACEOF
11154 /* end confdefs.h. */
11156 /* Override any GCC internal prototype to avoid an error.
11157 Use char because int might match the return type of a GCC
11158 builtin and then its argument prototype would still apply. */
11166 return basename ();
11171 for ac_lib in '' gen; do
11172 if test -z "$ac_lib"; then
11173 ac_res="none required"
11176 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11178 rm -f conftest.$ac_objext conftest$ac_exeext
11179 if { (ac_try="$ac_link"
11180 case "(($ac_try" in
11181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11182 *) ac_try_echo=$ac_try;;
11184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185 (eval "$ac_link") 2>conftest.er1
11187 grep -v '^ *+' conftest.er1 >conftest.err
11189 cat conftest.err >&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } && {
11192 test -z "$ac_c_werror_flag" ||
11193 test ! -s conftest.err
11194 } && test -s conftest$ac_exeext &&
11195 $as_test_x conftest$ac_exeext; then
11196 ac_cv_search_basename=$ac_res
11198 echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11206 if test "${ac_cv_search_basename+set}" = set; then
11210 if test "${ac_cv_search_basename+set}" = set; then
11213 ac_cv_search_basename=no
11215 rm conftest.$ac_ext
11216 LIBS=$ac_func_search_save_LIBS
11218 { echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5
11219 echo "${ECHO_T}$ac_cv_search_basename" >&6; }
11220 ac_res=$ac_cv_search_basename
11221 if test "$ac_res" != no; then
11222 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11224 cat >>confdefs.h <<\_ACEOF
11225 #define HAVE_BASENAME 1
11232 # Check whether --with-zlib was given.
11233 if test "${with_zlib+set}" = set; then
11234 withval=$with_zlib; if test "x$withval" = "xno" ; then
11235 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
11236 echo "$as_me: error: *** zlib is required ***" >&2;}
11237 { (exit 1); exit 1; }; }
11238 elif test "x$withval" != "xyes"; then
11239 if test -d "$withval/lib"; then
11240 if test -n "${need_dash_r}"; then
11241 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
11243 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
11246 if test -n "${need_dash_r}"; then
11247 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
11249 LDFLAGS="-L${withval} ${LDFLAGS}"
11252 if test -d "$withval/include"; then
11253 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
11255 CPPFLAGS="-I${withval} ${CPPFLAGS}"
11262 if test "${ac_cv_header_zlib_h+set}" = set; then
11263 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11264 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11265 if test "${ac_cv_header_zlib_h+set}" = set; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
11268 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11269 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11271 # Is the header compilable?
11272 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
11273 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
11274 cat >conftest.$ac_ext <<_ACEOF
11277 cat confdefs.h >>conftest.$ac_ext
11278 cat >>conftest.$ac_ext <<_ACEOF
11279 /* end confdefs.h. */
11280 $ac_includes_default
11283 rm -f conftest.$ac_objext
11284 if { (ac_try="$ac_compile"
11285 case "(($ac_try" in
11286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11287 *) ac_try_echo=$ac_try;;
11289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11290 (eval "$ac_compile") 2>conftest.er1
11292 grep -v '^ *+' conftest.er1 >conftest.err
11294 cat conftest.err >&5
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); } && {
11297 test -z "$ac_c_werror_flag" ||
11298 test ! -s conftest.err
11299 } && test -s conftest.$ac_objext; then
11300 ac_header_compiler=yes
11302 echo "$as_me: failed program was:" >&5
11303 sed 's/^/| /' conftest.$ac_ext >&5
11305 ac_header_compiler=no
11308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11309 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11310 echo "${ECHO_T}$ac_header_compiler" >&6; }
11312 # Is the header present?
11313 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
11314 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
11315 cat >conftest.$ac_ext <<_ACEOF
11318 cat confdefs.h >>conftest.$ac_ext
11319 cat >>conftest.$ac_ext <<_ACEOF
11320 /* end confdefs.h. */
11323 if { (ac_try="$ac_cpp conftest.$ac_ext"
11324 case "(($ac_try" in
11325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11326 *) ac_try_echo=$ac_try;;
11328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11331 grep -v '^ *+' conftest.er1 >conftest.err
11333 cat conftest.err >&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } >/dev/null && {
11336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11337 test ! -s conftest.err
11339 ac_header_preproc=yes
11341 echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11344 ac_header_preproc=no
11347 rm -f conftest.err conftest.$ac_ext
11348 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11349 echo "${ECHO_T}$ac_header_preproc" >&6; }
11351 # So? What about this header?
11352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11354 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11355 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11356 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11357 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11358 ac_header_preproc=yes
11361 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11362 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
11364 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
11365 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11366 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11367 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
11368 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11369 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11370 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11371 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11372 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11374 ## ------------------------------------------- ##
11375 ## Report this to openssh-unix-dev@mindrot.org ##
11376 ## ------------------------------------------- ##
11378 ) | sed "s/^/$as_me: WARNING: /" >&2
11381 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11382 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11383 if test "${ac_cv_header_zlib_h+set}" = set; then
11384 echo $ECHO_N "(cached) $ECHO_C" >&6
11386 ac_cv_header_zlib_h=$ac_header_preproc
11388 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11389 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11392 if test $ac_cv_header_zlib_h = yes; then
11395 { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5
11396 echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;}
11397 { (exit 1); exit 1; }; }
11402 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
11403 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
11404 if test "${ac_cv_lib_z_deflate+set}" = set; then
11405 echo $ECHO_N "(cached) $ECHO_C" >&6
11407 ac_check_lib_save_LIBS=$LIBS
11409 cat >conftest.$ac_ext <<_ACEOF
11412 cat confdefs.h >>conftest.$ac_ext
11413 cat >>conftest.$ac_ext <<_ACEOF
11414 /* end confdefs.h. */
11416 /* Override any GCC internal prototype to avoid an error.
11417 Use char because int might match the return type of a GCC
11418 builtin and then its argument prototype would still apply. */
11431 rm -f conftest.$ac_objext conftest$ac_exeext
11432 if { (ac_try="$ac_link"
11433 case "(($ac_try" in
11434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435 *) ac_try_echo=$ac_try;;
11437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11438 (eval "$ac_link") 2>conftest.er1
11440 grep -v '^ *+' conftest.er1 >conftest.err
11442 cat conftest.err >&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); } && {
11445 test -z "$ac_c_werror_flag" ||
11446 test ! -s conftest.err
11447 } && test -s conftest$ac_exeext &&
11448 $as_test_x conftest$ac_exeext; then
11449 ac_cv_lib_z_deflate=yes
11451 echo "$as_me: failed program was:" >&5
11452 sed 's/^/| /' conftest.$ac_ext >&5
11454 ac_cv_lib_z_deflate=no
11457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11458 conftest$ac_exeext conftest.$ac_ext
11459 LIBS=$ac_check_lib_save_LIBS
11461 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
11462 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
11463 if test $ac_cv_lib_z_deflate = yes; then
11464 cat >>confdefs.h <<_ACEOF
11465 #define HAVE_LIBZ 1
11472 saved_CPPFLAGS="$CPPFLAGS"
11473 saved_LDFLAGS="$LDFLAGS"
11475 if test -n "${need_dash_r}"; then
11476 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
11478 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
11480 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
11482 cat >conftest.$ac_ext <<_ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h. */
11489 /* Override any GCC internal prototype to avoid an error.
11490 Use char because int might match the return type of a GCC
11491 builtin and then its argument prototype would still apply. */
11504 rm -f conftest.$ac_objext conftest$ac_exeext
11505 if { (ac_try="$ac_link"
11506 case "(($ac_try" in
11507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508 *) ac_try_echo=$ac_try;;
11510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511 (eval "$ac_link") 2>conftest.er1
11513 grep -v '^ *+' conftest.er1 >conftest.err
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } && {
11518 test -z "$ac_c_werror_flag" ||
11519 test ! -s conftest.err
11520 } && test -s conftest$ac_exeext &&
11521 $as_test_x conftest$ac_exeext; then
11522 cat >>confdefs.h <<\_ACEOF
11523 #define HAVE_LIBZ 1
11527 echo "$as_me: failed program was:" >&5
11528 sed 's/^/| /' conftest.$ac_ext >&5
11531 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
11532 echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
11533 { (exit 1); exit 1; }; }
11538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11539 conftest$ac_exeext conftest.$ac_ext
11546 # Check whether --with-zlib-version-check was given.
11547 if test "${with_zlib_version_check+set}" = set; then
11548 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
11549 zlib_check_nonfatal=1
11556 { echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5
11557 echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6; }
11558 if test "$cross_compiling" = yes; then
11559 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5
11560 echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
11563 cat >conftest.$ac_ext <<_ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h. */
11574 int a=0, b=0, c=0, d=0, n, v;
11575 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
11576 if (n != 3 && n != 4)
11578 v = a*1000000 + b*10000 + c*100 + d;
11579 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
11582 if (a == 1 && b == 1 && c >= 4)
11585 /* 1.2.3 and up are OK */
11593 rm -f conftest$ac_exeext
11594 if { (ac_try="$ac_link"
11595 case "(($ac_try" in
11596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11597 *) ac_try_echo=$ac_try;;
11599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11600 (eval "$ac_link") 2>&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11604 { (case "(($ac_try" in
11605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11606 *) ac_try_echo=$ac_try;;
11608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11609 (eval "$ac_try") 2>&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; }; then
11613 { echo "$as_me:$LINENO: result: no" >&5
11614 echo "${ECHO_T}no" >&6; }
11616 echo "$as_me: program exited with status $ac_status" >&5
11617 echo "$as_me: failed program was:" >&5
11618 sed 's/^/| /' conftest.$ac_ext >&5
11620 ( exit $ac_status )
11621 { echo "$as_me:$LINENO: result: yes" >&5
11622 echo "${ECHO_T}yes" >&6; }
11623 if test -z "$zlib_check_nonfatal" ; then
11624 { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log ***
11625 Your reported zlib version has known security problems. It's possible your
11626 vendor has fixed these problems without changing the version number. If you
11627 are sure this is the case, you can disable the check by running
11628 \"./configure --without-zlib-version-check\".
11629 If you are in doubt, upgrade zlib to version 1.2.3 or greater.
11630 See http://www.gzip.org/zlib/ for details." >&5
11631 echo "$as_me: error: *** zlib too old - check config.log ***
11632 Your reported zlib version has known security problems. It's possible your
11633 vendor has fixed these problems without changing the version number. If you
11634 are sure this is the case, you can disable the check by running
11635 \"./configure --without-zlib-version-check\".
11636 If you are in doubt, upgrade zlib to version 1.2.3 or greater.
11637 See http://www.gzip.org/zlib/ for details." >&2;}
11638 { (exit 1); exit 1; }; }
11640 { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5
11641 echo "$as_me: WARNING: zlib version may have security problems" >&2;}
11645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11650 { echo "$as_me:$LINENO: checking for strcasecmp" >&5
11651 echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
11652 if test "${ac_cv_func_strcasecmp+set}" = set; then
11653 echo $ECHO_N "(cached) $ECHO_C" >&6
11655 cat >conftest.$ac_ext <<_ACEOF
11658 cat confdefs.h >>conftest.$ac_ext
11659 cat >>conftest.$ac_ext <<_ACEOF
11660 /* end confdefs.h. */
11661 /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
11662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11663 #define strcasecmp innocuous_strcasecmp
11665 /* System header to define __stub macros and hopefully few prototypes,
11666 which can conflict with char strcasecmp (); below.
11667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11668 <limits.h> exists even on freestanding compilers. */
11671 # include <limits.h>
11673 # include <assert.h>
11678 /* Override any GCC internal prototype to avoid an error.
11679 Use char because int might match the return type of a GCC
11680 builtin and then its argument prototype would still apply. */
11684 char strcasecmp ();
11685 /* The GNU C library defines this for functions which it implements
11686 to always fail with ENOSYS. Some functions are actually named
11687 something starting with __ and the normal name is an alias. */
11688 #if defined __stub_strcasecmp || defined __stub___strcasecmp
11695 return strcasecmp ();
11700 rm -f conftest.$ac_objext conftest$ac_exeext
11701 if { (ac_try="$ac_link"
11702 case "(($ac_try" in
11703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11704 *) ac_try_echo=$ac_try;;
11706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11707 (eval "$ac_link") 2>conftest.er1
11709 grep -v '^ *+' conftest.er1 >conftest.err
11711 cat conftest.err >&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); } && {
11714 test -z "$ac_c_werror_flag" ||
11715 test ! -s conftest.err
11716 } && test -s conftest$ac_exeext &&
11717 $as_test_x conftest$ac_exeext; then
11718 ac_cv_func_strcasecmp=yes
11720 echo "$as_me: failed program was:" >&5
11721 sed 's/^/| /' conftest.$ac_ext >&5
11723 ac_cv_func_strcasecmp=no
11726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11727 conftest$ac_exeext conftest.$ac_ext
11729 { echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
11730 echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
11731 if test $ac_cv_func_strcasecmp = yes; then
11734 { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
11735 echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; }
11736 if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
11737 echo $ECHO_N "(cached) $ECHO_C" >&6
11739 ac_check_lib_save_LIBS=$LIBS
11740 LIBS="-lresolv $LIBS"
11741 cat >conftest.$ac_ext <<_ACEOF
11744 cat confdefs.h >>conftest.$ac_ext
11745 cat >>conftest.$ac_ext <<_ACEOF
11746 /* end confdefs.h. */
11748 /* Override any GCC internal prototype to avoid an error.
11749 Use char because int might match the return type of a GCC
11750 builtin and then its argument prototype would still apply. */
11754 char strcasecmp ();
11758 return strcasecmp ();
11763 rm -f conftest.$ac_objext conftest$ac_exeext
11764 if { (ac_try="$ac_link"
11765 case "(($ac_try" in
11766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11767 *) ac_try_echo=$ac_try;;
11769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11770 (eval "$ac_link") 2>conftest.er1
11772 grep -v '^ *+' conftest.er1 >conftest.err
11774 cat conftest.err >&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); } && {
11777 test -z "$ac_c_werror_flag" ||
11778 test ! -s conftest.err
11779 } && test -s conftest$ac_exeext &&
11780 $as_test_x conftest$ac_exeext; then
11781 ac_cv_lib_resolv_strcasecmp=yes
11783 echo "$as_me: failed program was:" >&5
11784 sed 's/^/| /' conftest.$ac_ext >&5
11786 ac_cv_lib_resolv_strcasecmp=no
11789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11790 conftest$ac_exeext conftest.$ac_ext
11791 LIBS=$ac_check_lib_save_LIBS
11793 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
11794 echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; }
11795 if test $ac_cv_lib_resolv_strcasecmp = yes; then
11796 LIBS="$LIBS -lresolv"
11803 for ac_func in utimes
11805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11806 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11808 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11809 echo $ECHO_N "(cached) $ECHO_C" >&6
11811 cat >conftest.$ac_ext <<_ACEOF
11814 cat confdefs.h >>conftest.$ac_ext
11815 cat >>conftest.$ac_ext <<_ACEOF
11816 /* end confdefs.h. */
11817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11819 #define $ac_func innocuous_$ac_func
11821 /* System header to define __stub macros and hopefully few prototypes,
11822 which can conflict with char $ac_func (); below.
11823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11824 <limits.h> exists even on freestanding compilers. */
11827 # include <limits.h>
11829 # include <assert.h>
11834 /* Override any GCC internal prototype to avoid an error.
11835 Use char because int might match the return type of a GCC
11836 builtin and then its argument prototype would still apply. */
11841 /* The GNU C library defines this for functions which it implements
11842 to always fail with ENOSYS. Some functions are actually named
11843 something starting with __ and the normal name is an alias. */
11844 #if defined __stub_$ac_func || defined __stub___$ac_func
11851 return $ac_func ();
11856 rm -f conftest.$ac_objext conftest$ac_exeext
11857 if { (ac_try="$ac_link"
11858 case "(($ac_try" in
11859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11860 *) ac_try_echo=$ac_try;;
11862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11863 (eval "$ac_link") 2>conftest.er1
11865 grep -v '^ *+' conftest.er1 >conftest.err
11867 cat conftest.err >&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); } && {
11870 test -z "$ac_c_werror_flag" ||
11871 test ! -s conftest.err
11872 } && test -s conftest$ac_exeext &&
11873 $as_test_x conftest$ac_exeext; then
11874 eval "$as_ac_var=yes"
11876 echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.$ac_ext >&5
11879 eval "$as_ac_var=no"
11882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11883 conftest$ac_exeext conftest.$ac_ext
11885 ac_res=`eval echo '${'$as_ac_var'}'`
11886 { echo "$as_me:$LINENO: result: $ac_res" >&5
11887 echo "${ECHO_T}$ac_res" >&6; }
11888 if test `eval echo '${'$as_ac_var'}'` = yes; then
11889 cat >>confdefs.h <<_ACEOF
11890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11894 { echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
11895 echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6; }
11896 if test "${ac_cv_lib_c89_utimes+set}" = set; then
11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11899 ac_check_lib_save_LIBS=$LIBS
11901 cat >conftest.$ac_ext <<_ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h. */
11908 /* Override any GCC internal prototype to avoid an error.
11909 Use char because int might match the return type of a GCC
11910 builtin and then its argument prototype would still apply. */
11923 rm -f conftest.$ac_objext conftest$ac_exeext
11924 if { (ac_try="$ac_link"
11925 case "(($ac_try" in
11926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11930 (eval "$ac_link") 2>conftest.er1
11932 grep -v '^ *+' conftest.er1 >conftest.err
11934 cat conftest.err >&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); } && {
11937 test -z "$ac_c_werror_flag" ||
11938 test ! -s conftest.err
11939 } && test -s conftest$ac_exeext &&
11940 $as_test_x conftest$ac_exeext; then
11941 ac_cv_lib_c89_utimes=yes
11943 echo "$as_me: failed program was:" >&5
11944 sed 's/^/| /' conftest.$ac_ext >&5
11946 ac_cv_lib_c89_utimes=no
11949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11950 conftest$ac_exeext conftest.$ac_ext
11951 LIBS=$ac_check_lib_save_LIBS
11953 { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
11954 echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6; }
11955 if test $ac_cv_lib_c89_utimes = yes; then
11956 cat >>confdefs.h <<\_ACEOF
11957 #define HAVE_UTIMES 1
11969 for ac_header in libutil.h
11971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11976 echo $ECHO_N "(cached) $ECHO_C" >&6
11978 ac_res=`eval echo '${'$as_ac_Header'}'`
11979 { echo "$as_me:$LINENO: result: $ac_res" >&5
11980 echo "${ECHO_T}$ac_res" >&6; }
11982 # Is the header compilable?
11983 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11984 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11985 cat >conftest.$ac_ext <<_ACEOF
11988 cat confdefs.h >>conftest.$ac_ext
11989 cat >>conftest.$ac_ext <<_ACEOF
11990 /* end confdefs.h. */
11991 $ac_includes_default
11992 #include <$ac_header>
11994 rm -f conftest.$ac_objext
11995 if { (ac_try="$ac_compile"
11996 case "(($ac_try" in
11997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11998 *) ac_try_echo=$ac_try;;
12000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12001 (eval "$ac_compile") 2>conftest.er1
12003 grep -v '^ *+' conftest.er1 >conftest.err
12005 cat conftest.err >&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } && {
12008 test -z "$ac_c_werror_flag" ||
12009 test ! -s conftest.err
12010 } && test -s conftest.$ac_objext; then
12011 ac_header_compiler=yes
12013 echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12016 ac_header_compiler=no
12019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12021 echo "${ECHO_T}$ac_header_compiler" >&6; }
12023 # Is the header present?
12024 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12026 cat >conftest.$ac_ext <<_ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h. */
12032 #include <$ac_header>
12034 if { (ac_try="$ac_cpp conftest.$ac_ext"
12035 case "(($ac_try" in
12036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12037 *) ac_try_echo=$ac_try;;
12039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12042 grep -v '^ *+' conftest.er1 >conftest.err
12044 cat conftest.err >&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); } >/dev/null && {
12047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12048 test ! -s conftest.err
12050 ac_header_preproc=yes
12052 echo "$as_me: failed program was:" >&5
12053 sed 's/^/| /' conftest.$ac_ext >&5
12055 ac_header_preproc=no
12058 rm -f conftest.err conftest.$ac_ext
12059 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12060 echo "${ECHO_T}$ac_header_preproc" >&6; }
12062 # So? What about this header?
12063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12065 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12066 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12068 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12069 ac_header_preproc=yes
12072 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12074 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12075 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12076 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12077 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12078 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12079 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12081 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12082 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12083 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12085 ## ------------------------------------------- ##
12086 ## Report this to openssh-unix-dev@mindrot.org ##
12087 ## ------------------------------------------- ##
12089 ) | sed "s/^/$as_me: WARNING: /" >&2
12092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12095 echo $ECHO_N "(cached) $ECHO_C" >&6
12097 eval "$as_ac_Header=\$ac_header_preproc"
12099 ac_res=`eval echo '${'$as_ac_Header'}'`
12100 { echo "$as_me:$LINENO: result: $ac_res" >&5
12101 echo "${ECHO_T}$ac_res" >&6; }
12104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12105 cat >>confdefs.h <<_ACEOF
12106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12113 { echo "$as_me:$LINENO: checking for library containing login" >&5
12114 echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; }
12115 if test "${ac_cv_search_login+set}" = set; then
12116 echo $ECHO_N "(cached) $ECHO_C" >&6
12118 ac_func_search_save_LIBS=$LIBS
12119 cat >conftest.$ac_ext <<_ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h. */
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. */
12141 for ac_lib in '' util bsd; do
12142 if test -z "$ac_lib"; then
12143 ac_res="none required"
12146 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12148 rm -f conftest.$ac_objext conftest$ac_exeext
12149 if { (ac_try="$ac_link"
12150 case "(($ac_try" in
12151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12152 *) ac_try_echo=$ac_try;;
12154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12155 (eval "$ac_link") 2>conftest.er1
12157 grep -v '^ *+' conftest.er1 >conftest.err
12159 cat conftest.err >&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); } && {
12162 test -z "$ac_c_werror_flag" ||
12163 test ! -s conftest.err
12164 } && test -s conftest$ac_exeext &&
12165 $as_test_x conftest$ac_exeext; then
12166 ac_cv_search_login=$ac_res
12168 echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12176 if test "${ac_cv_search_login+set}" = set; then
12180 if test "${ac_cv_search_login+set}" = set; then
12183 ac_cv_search_login=no
12185 rm conftest.$ac_ext
12186 LIBS=$ac_func_search_save_LIBS
12188 { echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
12189 echo "${ECHO_T}$ac_cv_search_login" >&6; }
12190 ac_res=$ac_cv_search_login
12191 if test "$ac_res" != no; then
12192 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12194 cat >>confdefs.h <<\_ACEOF
12195 #define HAVE_LOGIN 1
12204 for ac_func in fmt_scaled logout updwtmp logwtmp
12206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12207 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12209 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12210 echo $ECHO_N "(cached) $ECHO_C" >&6
12212 cat >conftest.$ac_ext <<_ACEOF
12215 cat confdefs.h >>conftest.$ac_ext
12216 cat >>conftest.$ac_ext <<_ACEOF
12217 /* end confdefs.h. */
12218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12220 #define $ac_func innocuous_$ac_func
12222 /* System header to define __stub macros and hopefully few prototypes,
12223 which can conflict with char $ac_func (); below.
12224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12225 <limits.h> exists even on freestanding compilers. */
12228 # include <limits.h>
12230 # include <assert.h>
12235 /* Override any GCC internal prototype to avoid an error.
12236 Use char because int might match the return type of a GCC
12237 builtin and then its argument prototype would still apply. */
12242 /* The GNU C library defines this for functions which it implements
12243 to always fail with ENOSYS. Some functions are actually named
12244 something starting with __ and the normal name is an alias. */
12245 #if defined __stub_$ac_func || defined __stub___$ac_func
12252 return $ac_func ();
12257 rm -f conftest.$ac_objext conftest$ac_exeext
12258 if { (ac_try="$ac_link"
12259 case "(($ac_try" in
12260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12261 *) ac_try_echo=$ac_try;;
12263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12264 (eval "$ac_link") 2>conftest.er1
12266 grep -v '^ *+' conftest.er1 >conftest.err
12268 cat conftest.err >&5
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); } && {
12271 test -z "$ac_c_werror_flag" ||
12272 test ! -s conftest.err
12273 } && test -s conftest$ac_exeext &&
12274 $as_test_x conftest$ac_exeext; then
12275 eval "$as_ac_var=yes"
12277 echo "$as_me: failed program was:" >&5
12278 sed 's/^/| /' conftest.$ac_ext >&5
12280 eval "$as_ac_var=no"
12283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12284 conftest$ac_exeext conftest.$ac_ext
12286 ac_res=`eval echo '${'$as_ac_var'}'`
12287 { echo "$as_me:$LINENO: result: $ac_res" >&5
12288 echo "${ECHO_T}$ac_res" >&6; }
12289 if test `eval echo '${'$as_ac_var'}'` = yes; then
12290 cat >>confdefs.h <<_ACEOF
12291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12299 for ac_func in strftime
12301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12302 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12304 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12307 cat >conftest.$ac_ext <<_ACEOF
12310 cat confdefs.h >>conftest.$ac_ext
12311 cat >>conftest.$ac_ext <<_ACEOF
12312 /* end confdefs.h. */
12313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12315 #define $ac_func innocuous_$ac_func
12317 /* System header to define __stub macros and hopefully few prototypes,
12318 which can conflict with char $ac_func (); below.
12319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12320 <limits.h> exists even on freestanding compilers. */
12323 # include <limits.h>
12325 # include <assert.h>
12330 /* Override any GCC internal prototype to avoid an error.
12331 Use char because int might match the return type of a GCC
12332 builtin and then its argument prototype would still apply. */
12337 /* The GNU C library defines this for functions which it implements
12338 to always fail with ENOSYS. Some functions are actually named
12339 something starting with __ and the normal name is an alias. */
12340 #if defined __stub_$ac_func || defined __stub___$ac_func
12347 return $ac_func ();
12352 rm -f conftest.$ac_objext conftest$ac_exeext
12353 if { (ac_try="$ac_link"
12354 case "(($ac_try" in
12355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356 *) ac_try_echo=$ac_try;;
12358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359 (eval "$ac_link") 2>conftest.er1
12361 grep -v '^ *+' conftest.er1 >conftest.err
12363 cat conftest.err >&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } && {
12366 test -z "$ac_c_werror_flag" ||
12367 test ! -s conftest.err
12368 } && test -s conftest$ac_exeext &&
12369 $as_test_x conftest$ac_exeext; then
12370 eval "$as_ac_var=yes"
12372 echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12375 eval "$as_ac_var=no"
12378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12379 conftest$ac_exeext conftest.$ac_ext
12381 ac_res=`eval echo '${'$as_ac_var'}'`
12382 { echo "$as_me:$LINENO: result: $ac_res" >&5
12383 echo "${ECHO_T}$ac_res" >&6; }
12384 if test `eval echo '${'$as_ac_var'}'` = yes; then
12385 cat >>confdefs.h <<_ACEOF
12386 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12390 # strftime is in -lintl on SCO UNIX.
12391 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
12392 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
12393 if test "${ac_cv_lib_intl_strftime+set}" = set; then
12394 echo $ECHO_N "(cached) $ECHO_C" >&6
12396 ac_check_lib_save_LIBS=$LIBS
12397 LIBS="-lintl $LIBS"
12398 cat >conftest.$ac_ext <<_ACEOF
12401 cat confdefs.h >>conftest.$ac_ext
12402 cat >>conftest.$ac_ext <<_ACEOF
12403 /* end confdefs.h. */
12405 /* Override any GCC internal prototype to avoid an error.
12406 Use char because int might match the return type of a GCC
12407 builtin and then its argument prototype would still apply. */
12415 return strftime ();
12420 rm -f conftest.$ac_objext conftest$ac_exeext
12421 if { (ac_try="$ac_link"
12422 case "(($ac_try" in
12423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12424 *) ac_try_echo=$ac_try;;
12426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12427 (eval "$ac_link") 2>conftest.er1
12429 grep -v '^ *+' conftest.er1 >conftest.err
12431 cat conftest.err >&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); } && {
12434 test -z "$ac_c_werror_flag" ||
12435 test ! -s conftest.err
12436 } && test -s conftest$ac_exeext &&
12437 $as_test_x conftest$ac_exeext; then
12438 ac_cv_lib_intl_strftime=yes
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12443 ac_cv_lib_intl_strftime=no
12446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12447 conftest$ac_exeext conftest.$ac_ext
12448 LIBS=$ac_check_lib_save_LIBS
12450 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
12451 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
12452 if test $ac_cv_lib_intl_strftime = yes; then
12453 cat >>confdefs.h <<\_ACEOF
12454 #define HAVE_STRFTIME 1
12457 LIBS="-lintl $LIBS"
12464 # Check for ALTDIRFUNC glob() extension
12465 { echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
12466 echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6; }
12467 cat >conftest.$ac_ext <<_ACEOF
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h. */
12475 #ifdef GLOB_ALTDIRFUNC
12480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12481 $EGREP "FOUNDIT" >/dev/null 2>&1; then
12484 cat >>confdefs.h <<\_ACEOF
12485 #define GLOB_HAS_ALTDIRFUNC 1
12488 { echo "$as_me:$LINENO: result: yes" >&5
12489 echo "${ECHO_T}yes" >&6; }
12493 { echo "$as_me:$LINENO: result: no" >&5
12494 echo "${ECHO_T}no" >&6; }
12501 # Check for g.gl_matchc glob() extension
12502 { echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
12503 echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6; }
12504 cat >conftest.$ac_ext <<_ACEOF
12507 cat confdefs.h >>conftest.$ac_ext
12508 cat >>conftest.$ac_ext <<_ACEOF
12509 /* end confdefs.h. */
12514 glob_t g; g.gl_matchc = 1;
12519 rm -f conftest.$ac_objext
12520 if { (ac_try="$ac_compile"
12521 case "(($ac_try" in
12522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523 *) ac_try_echo=$ac_try;;
12525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12526 (eval "$ac_compile") 2>conftest.er1
12528 grep -v '^ *+' conftest.er1 >conftest.err
12530 cat conftest.err >&5
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); } && {
12533 test -z "$ac_c_werror_flag" ||
12534 test ! -s conftest.err
12535 } && test -s conftest.$ac_objext; then
12538 cat >>confdefs.h <<\_ACEOF
12539 #define GLOB_HAS_GL_MATCHC 1
12542 { echo "$as_me:$LINENO: result: yes" >&5
12543 echo "${ECHO_T}yes" >&6; }
12546 echo "$as_me: failed program was:" >&5
12547 sed 's/^/| /' conftest.$ac_ext >&5
12550 { echo "$as_me:$LINENO: result: no" >&5
12551 echo "${ECHO_T}no" >&6; }
12556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12558 # Check for g.gl_statv glob() extension
12559 { echo "$as_me:$LINENO: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5
12560 echo $ECHO_N "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... $ECHO_C" >&6; }
12561 cat >conftest.$ac_ext <<_ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h. */
12572 #ifndef GLOB_KEEPSTAT
12573 #error "glob does not support GLOB_KEEPSTAT extension"
12582 rm -f conftest.$ac_objext
12583 if { (ac_try="$ac_compile"
12584 case "(($ac_try" in
12585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12586 *) ac_try_echo=$ac_try;;
12588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12589 (eval "$ac_compile") 2>conftest.er1
12591 grep -v '^ *+' conftest.er1 >conftest.err
12593 cat conftest.err >&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } && {
12596 test -z "$ac_c_werror_flag" ||
12597 test ! -s conftest.err
12598 } && test -s conftest.$ac_objext; then
12601 cat >>confdefs.h <<\_ACEOF
12602 #define GLOB_HAS_GL_STATV 1
12605 { echo "$as_me:$LINENO: result: yes" >&5
12606 echo "${ECHO_T}yes" >&6; }
12609 echo "$as_me: failed program was:" >&5
12610 sed 's/^/| /' conftest.$ac_ext >&5
12613 { echo "$as_me:$LINENO: result: no" >&5
12614 echo "${ECHO_T}no" >&6; }
12619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12621 { echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5
12622 echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; }
12623 if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then
12624 echo $ECHO_N "(cached) $ECHO_C" >&6
12626 cat >conftest.$ac_ext <<_ACEOF
12629 cat confdefs.h >>conftest.$ac_ext
12630 cat >>conftest.$ac_ext <<_ACEOF
12631 /* end confdefs.h. */
12637 #ifndef GLOB_NOMATCH
12638 (void) GLOB_NOMATCH;
12645 rm -f conftest.$ac_objext
12646 if { (ac_try="$ac_compile"
12647 case "(($ac_try" in
12648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649 *) ac_try_echo=$ac_try;;
12651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12652 (eval "$ac_compile") 2>conftest.er1
12654 grep -v '^ *+' conftest.er1 >conftest.err
12656 cat conftest.err >&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } && {
12659 test -z "$ac_c_werror_flag" ||
12660 test ! -s conftest.err
12661 } && test -s conftest.$ac_objext; then
12662 ac_cv_have_decl_GLOB_NOMATCH=yes
12664 echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12667 ac_cv_have_decl_GLOB_NOMATCH=no
12670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12672 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5
12673 echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; }
12674 if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then
12676 cat >>confdefs.h <<_ACEOF
12677 #define HAVE_DECL_GLOB_NOMATCH 1
12682 cat >>confdefs.h <<_ACEOF
12683 #define HAVE_DECL_GLOB_NOMATCH 0
12691 { echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
12692 echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6; }
12693 if test "$cross_compiling" = yes; then
12695 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
12696 echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
12697 cat >>confdefs.h <<\_ACEOF
12698 #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
12704 cat >conftest.$ac_ext <<_ACEOF
12707 cat confdefs.h >>conftest.$ac_ext
12708 cat >>conftest.$ac_ext <<_ACEOF
12709 /* end confdefs.h. */
12711 #include <sys/types.h>
12712 #include <dirent.h>
12713 int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
12716 rm -f conftest$ac_exeext
12717 if { (ac_try="$ac_link"
12718 case "(($ac_try" in
12719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12720 *) ac_try_echo=$ac_try;;
12722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12723 (eval "$ac_link") 2>&5
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12727 { (case "(($ac_try" in
12728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729 *) ac_try_echo=$ac_try;;
12731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732 (eval "$ac_try") 2>&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); }; }; then
12736 { echo "$as_me:$LINENO: result: yes" >&5
12737 echo "${ECHO_T}yes" >&6; }
12739 echo "$as_me: program exited with status $ac_status" >&5
12740 echo "$as_me: failed program was:" >&5
12741 sed 's/^/| /' conftest.$ac_ext >&5
12743 ( exit $ac_status )
12745 { echo "$as_me:$LINENO: result: no" >&5
12746 echo "${ECHO_T}no" >&6; }
12748 cat >>confdefs.h <<\_ACEOF
12749 #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
12754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12759 { echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5
12760 echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6; }
12761 if test -d "/proc/$$/fd" ; then
12763 cat >>confdefs.h <<\_ACEOF
12764 #define HAVE_PROC_PID 1
12767 { echo "$as_me:$LINENO: result: yes" >&5
12768 echo "${ECHO_T}yes" >&6; }
12770 { echo "$as_me:$LINENO: result: no" >&5
12771 echo "${ECHO_T}no" >&6; }
12774 # Check whether user wants S/Key support
12777 # Check whether --with-skey was given.
12778 if test "${with_skey+set}" = set; then
12779 withval=$with_skey;
12780 if test "x$withval" != "xno" ; then
12782 if test "x$withval" != "xyes" ; then
12783 CPPFLAGS="$CPPFLAGS -I${withval}/include"
12784 LDFLAGS="$LDFLAGS -L${withval}/lib"
12788 cat >>confdefs.h <<\_ACEOF
12792 LIBS="-lskey $LIBS"
12795 { echo "$as_me:$LINENO: checking for s/key support" >&5
12796 echo $ECHO_N "checking for s/key support... $ECHO_C" >&6; }
12797 cat >conftest.$ac_ext <<_ACEOF
12800 cat confdefs.h >>conftest.$ac_ext
12801 cat >>conftest.$ac_ext <<_ACEOF
12802 /* end confdefs.h. */
12806 int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
12809 rm -f conftest.$ac_objext conftest$ac_exeext
12810 if { (ac_try="$ac_link"
12811 case "(($ac_try" in
12812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12813 *) ac_try_echo=$ac_try;;
12815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12816 (eval "$ac_link") 2>conftest.er1
12818 grep -v '^ *+' conftest.er1 >conftest.err
12820 cat conftest.err >&5
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); } && {
12823 test -z "$ac_c_werror_flag" ||
12824 test ! -s conftest.err
12825 } && test -s conftest$ac_exeext &&
12826 $as_test_x conftest$ac_exeext; then
12827 { echo "$as_me:$LINENO: result: yes" >&5
12828 echo "${ECHO_T}yes" >&6; }
12830 echo "$as_me: failed program was:" >&5
12831 sed 's/^/| /' conftest.$ac_ext >&5
12834 { echo "$as_me:$LINENO: result: no" >&5
12835 echo "${ECHO_T}no" >&6; }
12836 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
12837 echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
12838 { (exit 1); exit 1; }; }
12842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12843 conftest$ac_exeext conftest.$ac_ext
12844 { echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5
12845 echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6; }
12846 cat >conftest.$ac_ext <<_ACEOF
12849 cat confdefs.h >>conftest.$ac_ext
12850 cat >>conftest.$ac_ext <<_ACEOF
12851 /* end confdefs.h. */
12857 (void)skeychallenge(NULL,"name","",0);
12862 rm -f conftest.$ac_objext
12863 if { (ac_try="$ac_compile"
12864 case "(($ac_try" in
12865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12866 *) ac_try_echo=$ac_try;;
12868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12869 (eval "$ac_compile") 2>conftest.er1
12871 grep -v '^ *+' conftest.er1 >conftest.err
12873 cat conftest.err >&5
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); } && {
12876 test -z "$ac_c_werror_flag" ||
12877 test ! -s conftest.err
12878 } && test -s conftest.$ac_objext; then
12879 { echo "$as_me:$LINENO: result: yes" >&5
12880 echo "${ECHO_T}yes" >&6; }
12882 cat >>confdefs.h <<\_ACEOF
12883 #define SKEYCHALLENGE_4ARG 1
12887 echo "$as_me: failed program was:" >&5
12888 sed 's/^/| /' conftest.$ac_ext >&5
12890 { echo "$as_me:$LINENO: result: no" >&5
12891 echo "${ECHO_T}no" >&6; }
12895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12902 # Check whether user wants TCP wrappers support
12905 # Check whether --with-tcp-wrappers was given.
12906 if test "${with_tcp_wrappers+set}" = set; then
12907 withval=$with_tcp_wrappers;
12908 if test "x$withval" != "xno" ; then
12910 saved_LDFLAGS="$LDFLAGS"
12911 saved_CPPFLAGS="$CPPFLAGS"
12912 if test -n "${withval}" && \
12913 test "x${withval}" != "xyes"; then
12914 if test -d "${withval}/lib"; then
12915 if test -n "${need_dash_r}"; then
12916 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
12918 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
12921 if test -n "${need_dash_r}"; then
12922 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
12924 LDFLAGS="-L${withval} ${LDFLAGS}"
12927 if test -d "${withval}/include"; then
12928 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
12930 CPPFLAGS="-I${withval} ${CPPFLAGS}"
12933 LIBS="-lwrap $LIBS"
12934 { echo "$as_me:$LINENO: checking for libwrap" >&5
12935 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
12936 cat >conftest.$ac_ext <<_ACEOF
12939 cat confdefs.h >>conftest.$ac_ext
12940 cat >>conftest.$ac_ext <<_ACEOF
12941 /* end confdefs.h. */
12943 #include <sys/types.h>
12944 #include <sys/socket.h>
12945 #include <netinet/in.h>
12947 int deny_severity = 0, allow_severity = 0;
12957 rm -f conftest.$ac_objext conftest$ac_exeext
12958 if { (ac_try="$ac_link"
12959 case "(($ac_try" in
12960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12961 *) ac_try_echo=$ac_try;;
12963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12964 (eval "$ac_link") 2>conftest.er1
12966 grep -v '^ *+' conftest.er1 >conftest.err
12968 cat conftest.err >&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); } && {
12971 test -z "$ac_c_werror_flag" ||
12972 test ! -s conftest.err
12973 } && test -s conftest$ac_exeext &&
12974 $as_test_x conftest$ac_exeext; then
12976 { echo "$as_me:$LINENO: result: yes" >&5
12977 echo "${ECHO_T}yes" >&6; }
12979 cat >>confdefs.h <<\_ACEOF
12983 SSHDLIBS="$SSHDLIBS -lwrap"
12987 echo "$as_me: failed program was:" >&5
12988 sed 's/^/| /' conftest.$ac_ext >&5
12991 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
12992 echo "$as_me: error: *** libwrap missing" >&2;}
12993 { (exit 1); exit 1; }; }
12998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12999 conftest$ac_exeext conftest.$ac_ext
13007 # Check whether user wants libedit support
13010 # Check whether --with-libedit was given.
13011 if test "${with_libedit+set}" = set; then
13012 withval=$with_libedit; if test "x$withval" != "xno" ; then
13013 if test "x$withval" = "xyes" ; then
13014 # Extract the first word of "pkg-config", so it can be a program name with args.
13015 set dummy pkg-config; ac_word=$2
13016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13018 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
13019 echo $ECHO_N "(cached) $ECHO_C" >&6
13023 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
13026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13027 for as_dir in $PATH
13030 test -z "$as_dir" && as_dir=.
13031 for ac_exec_ext in '' $ac_executable_extensions; do
13032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13033 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
13034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13041 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
13045 PKGCONFIG=$ac_cv_path_PKGCONFIG
13046 if test -n "$PKGCONFIG"; then
13047 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
13048 echo "${ECHO_T}$PKGCONFIG" >&6; }
13050 { echo "$as_me:$LINENO: result: no" >&5
13051 echo "${ECHO_T}no" >&6; }
13055 if test "x$PKGCONFIG" != "xno"; then
13056 { echo "$as_me:$LINENO: checking if $PKGCONFIG knows about libedit" >&5
13057 echo $ECHO_N "checking if $PKGCONFIG knows about libedit... $ECHO_C" >&6; }
13058 if "$PKGCONFIG" libedit; then
13059 { echo "$as_me:$LINENO: result: yes" >&5
13060 echo "${ECHO_T}yes" >&6; }
13061 use_pkgconfig_for_libedit=yes
13063 { echo "$as_me:$LINENO: result: no" >&5
13064 echo "${ECHO_T}no" >&6; }
13068 CPPFLAGS="$CPPFLAGS -I${withval}/include"
13069 if test -n "${need_dash_r}"; then
13070 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
13072 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
13075 if test "x$use_pkgconfig_for_libedit" = "xyes"; then
13076 LIBEDIT=`$PKGCONFIG --libs-only-l libedit`
13077 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
13079 LIBEDIT="-ledit -lcurses"
13081 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
13082 { echo "$as_me:$LINENO: checking for el_init in -ledit" >&5
13083 echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; }
13084 if test "${ac_cv_lib_edit_el_init+set}" = set; then
13085 echo $ECHO_N "(cached) $ECHO_C" >&6
13087 ac_check_lib_save_LIBS=$LIBS
13088 LIBS="-ledit $OTHERLIBS
13090 cat >conftest.$ac_ext <<_ACEOF
13093 cat confdefs.h >>conftest.$ac_ext
13094 cat >>conftest.$ac_ext <<_ACEOF
13095 /* end confdefs.h. */
13097 /* Override any GCC internal prototype to avoid an error.
13098 Use char because int might match the return type of a GCC
13099 builtin and then its argument prototype would still apply. */
13112 rm -f conftest.$ac_objext conftest$ac_exeext
13113 if { (ac_try="$ac_link"
13114 case "(($ac_try" in
13115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13116 *) ac_try_echo=$ac_try;;
13118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13119 (eval "$ac_link") 2>conftest.er1
13121 grep -v '^ *+' conftest.er1 >conftest.err
13123 cat conftest.err >&5
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); } && {
13126 test -z "$ac_c_werror_flag" ||
13127 test ! -s conftest.err
13128 } && test -s conftest$ac_exeext &&
13129 $as_test_x conftest$ac_exeext; then
13130 ac_cv_lib_edit_el_init=yes
13132 echo "$as_me: failed program was:" >&5
13133 sed 's/^/| /' conftest.$ac_ext >&5
13135 ac_cv_lib_edit_el_init=no
13138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13139 conftest$ac_exeext conftest.$ac_ext
13140 LIBS=$ac_check_lib_save_LIBS
13142 { echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5
13143 echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6; }
13144 if test $ac_cv_lib_edit_el_init = yes; then
13146 cat >>confdefs.h <<\_ACEOF
13147 #define USE_LIBEDIT 1
13154 { { echo "$as_me:$LINENO: error: libedit not found" >&5
13155 echo "$as_me: error: libedit not found" >&2;}
13156 { (exit 1); exit 1; }; }
13159 { echo "$as_me:$LINENO: checking if libedit version is compatible" >&5
13160 echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6; }
13161 cat >conftest.$ac_ext <<_ACEOF
13164 cat confdefs.h >>conftest.$ac_ext
13165 cat >>conftest.$ac_ext <<_ACEOF
13166 /* end confdefs.h. */
13168 #include <histedit.h>
13172 el_init("", NULL, NULL, NULL);
13177 rm -f conftest.$ac_objext
13178 if { (ac_try="$ac_compile"
13179 case "(($ac_try" in
13180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181 *) ac_try_echo=$ac_try;;
13183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184 (eval "$ac_compile") 2>conftest.er1
13186 grep -v '^ *+' conftest.er1 >conftest.err
13188 cat conftest.err >&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); } && {
13191 test -z "$ac_c_werror_flag" ||
13192 test ! -s conftest.err
13193 } && test -s conftest.$ac_objext; then
13194 { echo "$as_me:$LINENO: result: yes" >&5
13195 echo "${ECHO_T}yes" >&6; }
13197 echo "$as_me: failed program was:" >&5
13198 sed 's/^/| /' conftest.$ac_ext >&5
13200 { echo "$as_me:$LINENO: result: no" >&5
13201 echo "${ECHO_T}no" >&6; }
13202 { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5
13203 echo "$as_me: error: libedit version is not compatible" >&2;}
13204 { (exit 1); exit 1; }; }
13208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13216 # Check whether --with-audit was given.
13217 if test "${with_audit+set}" = set; then
13218 withval=$with_audit;
13219 { echo "$as_me:$LINENO: checking for supported audit module" >&5
13220 echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6; }
13223 { echo "$as_me:$LINENO: result: bsm" >&5
13224 echo "${ECHO_T}bsm" >&6; }
13227 for ac_header in bsm/audit.h
13229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 cat >conftest.$ac_ext <<_ACEOF
13238 cat confdefs.h >>conftest.$ac_ext
13239 cat >>conftest.$ac_ext <<_ACEOF
13240 /* end confdefs.h. */
13248 #include <$ac_header>
13250 rm -f conftest.$ac_objext
13251 if { (ac_try="$ac_compile"
13252 case "(($ac_try" in
13253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254 *) ac_try_echo=$ac_try;;
13256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13257 (eval "$ac_compile") 2>conftest.er1
13259 grep -v '^ *+' conftest.er1 >conftest.err
13261 cat conftest.err >&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); } && {
13264 test -z "$ac_c_werror_flag" ||
13265 test ! -s conftest.err
13266 } && test -s conftest.$ac_objext; then
13267 eval "$as_ac_Header=yes"
13269 echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13272 eval "$as_ac_Header=no"
13275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13277 ac_res=`eval echo '${'$as_ac_Header'}'`
13278 { echo "$as_me:$LINENO: result: $ac_res" >&5
13279 echo "${ECHO_T}$ac_res" >&6; }
13280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13281 cat >>confdefs.h <<_ACEOF
13282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13286 { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5
13287 echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;}
13288 { (exit 1); exit 1; }; }
13294 { echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5
13295 echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6; }
13296 if test "${ac_cv_lib_bsm_getaudit+set}" = set; then
13297 echo $ECHO_N "(cached) $ECHO_C" >&6
13299 ac_check_lib_save_LIBS=$LIBS
13301 cat >conftest.$ac_ext <<_ACEOF
13304 cat confdefs.h >>conftest.$ac_ext
13305 cat >>conftest.$ac_ext <<_ACEOF
13306 /* end confdefs.h. */
13308 /* Override any GCC internal prototype to avoid an error.
13309 Use char because int might match the return type of a GCC
13310 builtin and then its argument prototype would still apply. */
13318 return getaudit ();
13323 rm -f conftest.$ac_objext conftest$ac_exeext
13324 if { (ac_try="$ac_link"
13325 case "(($ac_try" in
13326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327 *) ac_try_echo=$ac_try;;
13329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13330 (eval "$ac_link") 2>conftest.er1
13332 grep -v '^ *+' conftest.er1 >conftest.err
13334 cat conftest.err >&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); } && {
13337 test -z "$ac_c_werror_flag" ||
13338 test ! -s conftest.err
13339 } && test -s conftest$ac_exeext &&
13340 $as_test_x conftest$ac_exeext; then
13341 ac_cv_lib_bsm_getaudit=yes
13343 echo "$as_me: failed program was:" >&5
13344 sed 's/^/| /' conftest.$ac_ext >&5
13346 ac_cv_lib_bsm_getaudit=no
13349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13350 conftest$ac_exeext conftest.$ac_ext
13351 LIBS=$ac_check_lib_save_LIBS
13353 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5
13354 echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6; }
13355 if test $ac_cv_lib_bsm_getaudit = yes; then
13356 cat >>confdefs.h <<_ACEOF
13357 #define HAVE_LIBBSM 1
13363 { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5
13364 echo "$as_me: error: BSM enabled and required library not found" >&2;}
13365 { (exit 1); exit 1; }; }
13369 for ac_func in getaudit
13371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13375 echo $ECHO_N "(cached) $ECHO_C" >&6
13377 cat >conftest.$ac_ext <<_ACEOF
13380 cat confdefs.h >>conftest.$ac_ext
13381 cat >>conftest.$ac_ext <<_ACEOF
13382 /* end confdefs.h. */
13383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13385 #define $ac_func innocuous_$ac_func
13387 /* System header to define __stub macros and hopefully few prototypes,
13388 which can conflict with char $ac_func (); below.
13389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13390 <limits.h> exists even on freestanding compilers. */
13393 # include <limits.h>
13395 # include <assert.h>
13400 /* Override any GCC internal prototype to avoid an error.
13401 Use char because int might match the return type of a GCC
13402 builtin and then its argument prototype would still apply. */
13407 /* The GNU C library defines this for functions which it implements
13408 to always fail with ENOSYS. Some functions are actually named
13409 something starting with __ and the normal name is an alias. */
13410 #if defined __stub_$ac_func || defined __stub___$ac_func
13417 return $ac_func ();
13422 rm -f conftest.$ac_objext conftest$ac_exeext
13423 if { (ac_try="$ac_link"
13424 case "(($ac_try" in
13425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13426 *) ac_try_echo=$ac_try;;
13428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13429 (eval "$ac_link") 2>conftest.er1
13431 grep -v '^ *+' conftest.er1 >conftest.err
13433 cat conftest.err >&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); } && {
13436 test -z "$ac_c_werror_flag" ||
13437 test ! -s conftest.err
13438 } && test -s conftest$ac_exeext &&
13439 $as_test_x conftest$ac_exeext; then
13440 eval "$as_ac_var=yes"
13442 echo "$as_me: failed program was:" >&5
13443 sed 's/^/| /' conftest.$ac_ext >&5
13445 eval "$as_ac_var=no"
13448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13449 conftest$ac_exeext conftest.$ac_ext
13451 ac_res=`eval echo '${'$as_ac_var'}'`
13452 { echo "$as_me:$LINENO: result: $ac_res" >&5
13453 echo "${ECHO_T}$ac_res" >&6; }
13454 if test `eval echo '${'$as_ac_var'}'` = yes; then
13455 cat >>confdefs.h <<_ACEOF
13456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13460 { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5
13461 echo "$as_me: error: BSM enabled and required function not found" >&2;}
13462 { (exit 1); exit 1; }; }
13466 # These are optional
13469 for ac_func in getaudit_addr aug_get_machine
13471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13472 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13474 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13475 echo $ECHO_N "(cached) $ECHO_C" >&6
13477 cat >conftest.$ac_ext <<_ACEOF
13480 cat confdefs.h >>conftest.$ac_ext
13481 cat >>conftest.$ac_ext <<_ACEOF
13482 /* end confdefs.h. */
13483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13485 #define $ac_func innocuous_$ac_func
13487 /* System header to define __stub macros and hopefully few prototypes,
13488 which can conflict with char $ac_func (); below.
13489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13490 <limits.h> exists even on freestanding compilers. */
13493 # include <limits.h>
13495 # include <assert.h>
13500 /* Override any GCC internal prototype to avoid an error.
13501 Use char because int might match the return type of a GCC
13502 builtin and then its argument prototype would still apply. */
13507 /* The GNU C library defines this for functions which it implements
13508 to always fail with ENOSYS. Some functions are actually named
13509 something starting with __ and the normal name is an alias. */
13510 #if defined __stub_$ac_func || defined __stub___$ac_func
13517 return $ac_func ();
13522 rm -f conftest.$ac_objext conftest$ac_exeext
13523 if { (ac_try="$ac_link"
13524 case "(($ac_try" in
13525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13526 *) ac_try_echo=$ac_try;;
13528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13529 (eval "$ac_link") 2>conftest.er1
13531 grep -v '^ *+' conftest.er1 >conftest.err
13533 cat conftest.err >&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); } && {
13536 test -z "$ac_c_werror_flag" ||
13537 test ! -s conftest.err
13538 } && test -s conftest$ac_exeext &&
13539 $as_test_x conftest$ac_exeext; then
13540 eval "$as_ac_var=yes"
13542 echo "$as_me: failed program was:" >&5
13543 sed 's/^/| /' conftest.$ac_ext >&5
13545 eval "$as_ac_var=no"
13548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13549 conftest$ac_exeext conftest.$ac_ext
13551 ac_res=`eval echo '${'$as_ac_var'}'`
13552 { echo "$as_me:$LINENO: result: $ac_res" >&5
13553 echo "${ECHO_T}$ac_res" >&6; }
13554 if test `eval echo '${'$as_ac_var'}'` = yes; then
13555 cat >>confdefs.h <<_ACEOF
13556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13563 cat >>confdefs.h <<\_ACEOF
13564 #define USE_BSM_AUDIT 1
13569 { echo "$as_me:$LINENO: result: linux" >&5
13570 echo "${ECHO_T}linux" >&6; }
13573 for ac_header in libaudit.h
13575 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13577 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13580 echo $ECHO_N "(cached) $ECHO_C" >&6
13582 ac_res=`eval echo '${'$as_ac_Header'}'`
13583 { echo "$as_me:$LINENO: result: $ac_res" >&5
13584 echo "${ECHO_T}$ac_res" >&6; }
13586 # Is the header compilable?
13587 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13588 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13589 cat >conftest.$ac_ext <<_ACEOF
13592 cat confdefs.h >>conftest.$ac_ext
13593 cat >>conftest.$ac_ext <<_ACEOF
13594 /* end confdefs.h. */
13595 $ac_includes_default
13596 #include <$ac_header>
13598 rm -f conftest.$ac_objext
13599 if { (ac_try="$ac_compile"
13600 case "(($ac_try" in
13601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13602 *) ac_try_echo=$ac_try;;
13604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13605 (eval "$ac_compile") 2>conftest.er1
13607 grep -v '^ *+' conftest.er1 >conftest.err
13609 cat conftest.err >&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } && {
13612 test -z "$ac_c_werror_flag" ||
13613 test ! -s conftest.err
13614 } && test -s conftest.$ac_objext; then
13615 ac_header_compiler=yes
13617 echo "$as_me: failed program was:" >&5
13618 sed 's/^/| /' conftest.$ac_ext >&5
13620 ac_header_compiler=no
13623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13624 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13625 echo "${ECHO_T}$ac_header_compiler" >&6; }
13627 # Is the header present?
13628 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13629 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13630 cat >conftest.$ac_ext <<_ACEOF
13633 cat confdefs.h >>conftest.$ac_ext
13634 cat >>conftest.$ac_ext <<_ACEOF
13635 /* end confdefs.h. */
13636 #include <$ac_header>
13638 if { (ac_try="$ac_cpp conftest.$ac_ext"
13639 case "(($ac_try" in
13640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641 *) ac_try_echo=$ac_try;;
13643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13646 grep -v '^ *+' conftest.er1 >conftest.err
13648 cat conftest.err >&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } >/dev/null && {
13651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13652 test ! -s conftest.err
13654 ac_header_preproc=yes
13656 echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13659 ac_header_preproc=no
13662 rm -f conftest.err conftest.$ac_ext
13663 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13664 echo "${ECHO_T}$ac_header_preproc" >&6; }
13666 # So? What about this header?
13667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13673 ac_header_preproc=yes
13676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13679 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13683 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13689 ## ------------------------------------------- ##
13690 ## Report this to openssh-unix-dev@mindrot.org ##
13691 ## ------------------------------------------- ##
13693 ) | sed "s/^/$as_me: WARNING: /" >&2
13696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13699 echo $ECHO_N "(cached) $ECHO_C" >&6
13701 eval "$as_ac_Header=\$ac_header_preproc"
13703 ac_res=`eval echo '${'$as_ac_Header'}'`
13704 { echo "$as_me:$LINENO: result: $ac_res" >&5
13705 echo "${ECHO_T}$ac_res" >&6; }
13708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13709 cat >>confdefs.h <<_ACEOF
13710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13717 SSHDLIBS="$SSHDLIBS -laudit"
13719 cat >>confdefs.h <<\_ACEOF
13720 #define USE_LINUX_AUDIT 1
13726 { echo "$as_me:$LINENO: result: debug" >&5
13727 echo "${ECHO_T}debug" >&6; }
13729 cat >>confdefs.h <<\_ACEOF
13730 #define SSH_AUDIT_EVENTS 1
13735 { echo "$as_me:$LINENO: result: no" >&5
13736 echo "${ECHO_T}no" >&6; }
13739 { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5
13740 echo "$as_me: error: Unknown audit module $withval" >&2;}
13741 { (exit 1); exit 1; }; }
13846 arc4random_uniform \
13941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13942 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13944 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13945 echo $ECHO_N "(cached) $ECHO_C" >&6
13947 cat >conftest.$ac_ext <<_ACEOF
13950 cat confdefs.h >>conftest.$ac_ext
13951 cat >>conftest.$ac_ext <<_ACEOF
13952 /* end confdefs.h. */
13953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13955 #define $ac_func innocuous_$ac_func
13957 /* System header to define __stub macros and hopefully few prototypes,
13958 which can conflict with char $ac_func (); below.
13959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13960 <limits.h> exists even on freestanding compilers. */
13963 # include <limits.h>
13965 # include <assert.h>
13970 /* Override any GCC internal prototype to avoid an error.
13971 Use char because int might match the return type of a GCC
13972 builtin and then its argument prototype would still apply. */
13977 /* The GNU C library defines this for functions which it implements
13978 to always fail with ENOSYS. Some functions are actually named
13979 something starting with __ and the normal name is an alias. */
13980 #if defined __stub_$ac_func || defined __stub___$ac_func
13987 return $ac_func ();
13992 rm -f conftest.$ac_objext conftest$ac_exeext
13993 if { (ac_try="$ac_link"
13994 case "(($ac_try" in
13995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13996 *) ac_try_echo=$ac_try;;
13998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13999 (eval "$ac_link") 2>conftest.er1
14001 grep -v '^ *+' conftest.er1 >conftest.err
14003 cat conftest.err >&5
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); } && {
14006 test -z "$ac_c_werror_flag" ||
14007 test ! -s conftest.err
14008 } && test -s conftest$ac_exeext &&
14009 $as_test_x conftest$ac_exeext; then
14010 eval "$as_ac_var=yes"
14012 echo "$as_me: failed program was:" >&5
14013 sed 's/^/| /' conftest.$ac_ext >&5
14015 eval "$as_ac_var=no"
14018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14019 conftest$ac_exeext conftest.$ac_ext
14021 ac_res=`eval echo '${'$as_ac_var'}'`
14022 { echo "$as_me:$LINENO: result: $ac_res" >&5
14023 echo "${ECHO_T}$ac_res" >&6; }
14024 if test `eval echo '${'$as_ac_var'}'` = yes; then
14025 cat >>confdefs.h <<_ACEOF
14026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14033 cat >conftest.$ac_ext <<_ACEOF
14038 return (isblank('a'));
14042 rm -f conftest.$ac_objext conftest$ac_exeext
14043 if { (ac_try="$ac_link"
14044 case "(($ac_try" in
14045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14046 *) ac_try_echo=$ac_try;;
14048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14049 (eval "$ac_link") 2>conftest.er1
14051 grep -v '^ *+' conftest.er1 >conftest.err
14053 cat conftest.err >&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); } && {
14056 test -z "$ac_c_werror_flag" ||
14057 test ! -s conftest.err
14058 } && test -s conftest$ac_exeext &&
14059 $as_test_x conftest$ac_exeext; then
14061 cat >>confdefs.h <<\_ACEOF
14062 #define HAVE_ISBLANK 1
14067 echo "$as_me: failed program was:" >&5
14068 sed 's/^/| /' conftest.$ac_ext >&5
14073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14074 conftest$ac_exeext conftest.$ac_ext
14076 # PKCS#11 support requires dlopen() and co
14077 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
14078 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
14079 if test "${ac_cv_search_dlopen+set}" = set; then
14080 echo $ECHO_N "(cached) $ECHO_C" >&6
14082 ac_func_search_save_LIBS=$LIBS
14083 cat >conftest.$ac_ext <<_ACEOF
14086 cat confdefs.h >>conftest.$ac_ext
14087 cat >>conftest.$ac_ext <<_ACEOF
14088 /* end confdefs.h. */
14090 /* Override any GCC internal prototype to avoid an error.
14091 Use char because int might match the return type of a GCC
14092 builtin and then its argument prototype would still apply. */
14105 for ac_lib in '' dl; do
14106 if test -z "$ac_lib"; then
14107 ac_res="none required"
14110 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14112 rm -f conftest.$ac_objext conftest$ac_exeext
14113 if { (ac_try="$ac_link"
14114 case "(($ac_try" in
14115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14116 *) ac_try_echo=$ac_try;;
14118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14119 (eval "$ac_link") 2>conftest.er1
14121 grep -v '^ *+' conftest.er1 >conftest.err
14123 cat conftest.err >&5
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); } && {
14126 test -z "$ac_c_werror_flag" ||
14127 test ! -s conftest.err
14128 } && test -s conftest$ac_exeext &&
14129 $as_test_x conftest$ac_exeext; then
14130 ac_cv_search_dlopen=$ac_res
14132 echo "$as_me: failed program was:" >&5
14133 sed 's/^/| /' conftest.$ac_ext >&5
14138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14140 if test "${ac_cv_search_dlopen+set}" = set; then
14144 if test "${ac_cv_search_dlopen+set}" = set; then
14147 ac_cv_search_dlopen=no
14149 rm conftest.$ac_ext
14150 LIBS=$ac_func_search_save_LIBS
14152 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
14153 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
14154 ac_res=$ac_cv_search_dlopen
14155 if test "$ac_res" != no; then
14156 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14158 cat >>confdefs.h <<\_ACEOF
14159 #define ENABLE_PKCS11
14166 # IRIX has a const char return value for gai_strerror()
14168 for ac_func in gai_strerror
14170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14171 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14173 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
14176 cat >conftest.$ac_ext <<_ACEOF
14179 cat confdefs.h >>conftest.$ac_ext
14180 cat >>conftest.$ac_ext <<_ACEOF
14181 /* end confdefs.h. */
14182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14184 #define $ac_func innocuous_$ac_func
14186 /* System header to define __stub macros and hopefully few prototypes,
14187 which can conflict with char $ac_func (); below.
14188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14189 <limits.h> exists even on freestanding compilers. */
14192 # include <limits.h>
14194 # include <assert.h>
14199 /* Override any GCC internal prototype to avoid an error.
14200 Use char because int might match the return type of a GCC
14201 builtin and then its argument prototype would still apply. */
14206 /* The GNU C library defines this for functions which it implements
14207 to always fail with ENOSYS. Some functions are actually named
14208 something starting with __ and the normal name is an alias. */
14209 #if defined __stub_$ac_func || defined __stub___$ac_func
14216 return $ac_func ();
14221 rm -f conftest.$ac_objext conftest$ac_exeext
14222 if { (ac_try="$ac_link"
14223 case "(($ac_try" in
14224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14225 *) ac_try_echo=$ac_try;;
14227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14228 (eval "$ac_link") 2>conftest.er1
14230 grep -v '^ *+' conftest.er1 >conftest.err
14232 cat conftest.err >&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); } && {
14235 test -z "$ac_c_werror_flag" ||
14236 test ! -s conftest.err
14237 } && test -s conftest$ac_exeext &&
14238 $as_test_x conftest$ac_exeext; then
14239 eval "$as_ac_var=yes"
14241 echo "$as_me: failed program was:" >&5
14242 sed 's/^/| /' conftest.$ac_ext >&5
14244 eval "$as_ac_var=no"
14247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14248 conftest$ac_exeext conftest.$ac_ext
14250 ac_res=`eval echo '${'$as_ac_var'}'`
14251 { echo "$as_me:$LINENO: result: $ac_res" >&5
14252 echo "${ECHO_T}$ac_res" >&6; }
14253 if test `eval echo '${'$as_ac_var'}'` = yes; then
14254 cat >>confdefs.h <<_ACEOF
14255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14258 cat >>confdefs.h <<\_ACEOF
14259 #define HAVE_GAI_STRERROR 1
14262 cat >conftest.$ac_ext <<_ACEOF
14265 cat confdefs.h >>conftest.$ac_ext
14266 cat >>conftest.$ac_ext <<_ACEOF
14267 /* end confdefs.h. */
14269 #include <sys/types.h>
14270 #include <sys/socket.h>
14273 const char *gai_strerror(int);
14280 str = gai_strerror(0);
14285 rm -f conftest.$ac_objext
14286 if { (ac_try="$ac_compile"
14287 case "(($ac_try" in
14288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289 *) ac_try_echo=$ac_try;;
14291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14292 (eval "$ac_compile") 2>conftest.er1
14294 grep -v '^ *+' conftest.er1 >conftest.err
14296 cat conftest.err >&5
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); } && {
14299 test -z "$ac_c_werror_flag" ||
14300 test ! -s conftest.err
14301 } && test -s conftest.$ac_objext; then
14304 cat >>confdefs.h <<\_ACEOF
14305 #define HAVE_CONST_GAI_STRERROR_PROTO 1
14309 echo "$as_me: failed program was:" >&5
14310 sed 's/^/| /' conftest.$ac_ext >&5
14315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14320 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
14321 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
14322 if test "${ac_cv_search_nanosleep+set}" = set; then
14323 echo $ECHO_N "(cached) $ECHO_C" >&6
14325 ac_func_search_save_LIBS=$LIBS
14326 cat >conftest.$ac_ext <<_ACEOF
14329 cat confdefs.h >>conftest.$ac_ext
14330 cat >>conftest.$ac_ext <<_ACEOF
14331 /* end confdefs.h. */
14333 /* Override any GCC internal prototype to avoid an error.
14334 Use char because int might match the return type of a GCC
14335 builtin and then its argument prototype would still apply. */
14343 return nanosleep ();
14348 for ac_lib in '' rt posix4; do
14349 if test -z "$ac_lib"; then
14350 ac_res="none required"
14353 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14355 rm -f conftest.$ac_objext conftest$ac_exeext
14356 if { (ac_try="$ac_link"
14357 case "(($ac_try" in
14358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14359 *) ac_try_echo=$ac_try;;
14361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14362 (eval "$ac_link") 2>conftest.er1
14364 grep -v '^ *+' conftest.er1 >conftest.err
14366 cat conftest.err >&5
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); } && {
14369 test -z "$ac_c_werror_flag" ||
14370 test ! -s conftest.err
14371 } && test -s conftest$ac_exeext &&
14372 $as_test_x conftest$ac_exeext; then
14373 ac_cv_search_nanosleep=$ac_res
14375 echo "$as_me: failed program was:" >&5
14376 sed 's/^/| /' conftest.$ac_ext >&5
14381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14383 if test "${ac_cv_search_nanosleep+set}" = set; then
14387 if test "${ac_cv_search_nanosleep+set}" = set; then
14390 ac_cv_search_nanosleep=no
14392 rm conftest.$ac_ext
14393 LIBS=$ac_func_search_save_LIBS
14395 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
14396 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
14397 ac_res=$ac_cv_search_nanosleep
14398 if test "$ac_res" != no; then
14399 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14401 cat >>confdefs.h <<\_ACEOF
14402 #define HAVE_NANOSLEEP 1
14408 { echo "$as_me:$LINENO: checking whether getrusage is declared" >&5
14409 echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6; }
14410 if test "${ac_cv_have_decl_getrusage+set}" = set; then
14411 echo $ECHO_N "(cached) $ECHO_C" >&6
14413 cat >conftest.$ac_ext <<_ACEOF
14416 cat confdefs.h >>conftest.$ac_ext
14417 cat >>conftest.$ac_ext <<_ACEOF
14418 /* end confdefs.h. */
14419 $ac_includes_default
14431 rm -f conftest.$ac_objext
14432 if { (ac_try="$ac_compile"
14433 case "(($ac_try" in
14434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14435 *) ac_try_echo=$ac_try;;
14437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14438 (eval "$ac_compile") 2>conftest.er1
14440 grep -v '^ *+' conftest.er1 >conftest.err
14442 cat conftest.err >&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); } && {
14445 test -z "$ac_c_werror_flag" ||
14446 test ! -s conftest.err
14447 } && test -s conftest.$ac_objext; then
14448 ac_cv_have_decl_getrusage=yes
14450 echo "$as_me: failed program was:" >&5
14451 sed 's/^/| /' conftest.$ac_ext >&5
14453 ac_cv_have_decl_getrusage=no
14456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14458 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5
14459 echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6; }
14460 if test $ac_cv_have_decl_getrusage = yes; then
14462 for ac_func in getrusage
14464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14465 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14467 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14468 echo $ECHO_N "(cached) $ECHO_C" >&6
14470 cat >conftest.$ac_ext <<_ACEOF
14473 cat confdefs.h >>conftest.$ac_ext
14474 cat >>conftest.$ac_ext <<_ACEOF
14475 /* end confdefs.h. */
14476 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14478 #define $ac_func innocuous_$ac_func
14480 /* System header to define __stub macros and hopefully few prototypes,
14481 which can conflict with char $ac_func (); below.
14482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14483 <limits.h> exists even on freestanding compilers. */
14486 # include <limits.h>
14488 # include <assert.h>
14493 /* Override any GCC internal prototype to avoid an error.
14494 Use char because int might match the return type of a GCC
14495 builtin and then its argument prototype would still apply. */
14500 /* The GNU C library defines this for functions which it implements
14501 to always fail with ENOSYS. Some functions are actually named
14502 something starting with __ and the normal name is an alias. */
14503 #if defined __stub_$ac_func || defined __stub___$ac_func
14510 return $ac_func ();
14515 rm -f conftest.$ac_objext conftest$ac_exeext
14516 if { (ac_try="$ac_link"
14517 case "(($ac_try" in
14518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14519 *) ac_try_echo=$ac_try;;
14521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14522 (eval "$ac_link") 2>conftest.er1
14524 grep -v '^ *+' conftest.er1 >conftest.err
14526 cat conftest.err >&5
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); } && {
14529 test -z "$ac_c_werror_flag" ||
14530 test ! -s conftest.err
14531 } && test -s conftest$ac_exeext &&
14532 $as_test_x conftest$ac_exeext; then
14533 eval "$as_ac_var=yes"
14535 echo "$as_me: failed program was:" >&5
14536 sed 's/^/| /' conftest.$ac_ext >&5
14538 eval "$as_ac_var=no"
14541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14542 conftest$ac_exeext conftest.$ac_ext
14544 ac_res=`eval echo '${'$as_ac_var'}'`
14545 { echo "$as_me:$LINENO: result: $ac_res" >&5
14546 echo "${ECHO_T}$ac_res" >&6; }
14547 if test `eval echo '${'$as_ac_var'}'` = yes; then
14548 cat >>confdefs.h <<_ACEOF
14549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14557 { echo "$as_me:$LINENO: checking whether strsep is declared" >&5
14558 echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6; }
14559 if test "${ac_cv_have_decl_strsep+set}" = set; then
14560 echo $ECHO_N "(cached) $ECHO_C" >&6
14562 cat >conftest.$ac_ext <<_ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h. */
14569 #ifdef HAVE_STRING_H
14570 # include <string.h>
14585 rm -f conftest.$ac_objext
14586 if { (ac_try="$ac_compile"
14587 case "(($ac_try" in
14588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14589 *) ac_try_echo=$ac_try;;
14591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14592 (eval "$ac_compile") 2>conftest.er1
14594 grep -v '^ *+' conftest.er1 >conftest.err
14596 cat conftest.err >&5
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); } && {
14599 test -z "$ac_c_werror_flag" ||
14600 test ! -s conftest.err
14601 } && test -s conftest.$ac_objext; then
14602 ac_cv_have_decl_strsep=yes
14604 echo "$as_me: failed program was:" >&5
14605 sed 's/^/| /' conftest.$ac_ext >&5
14607 ac_cv_have_decl_strsep=no
14610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14612 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
14613 echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6; }
14614 if test $ac_cv_have_decl_strsep = yes; then
14616 for ac_func in strsep
14618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14619 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14621 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14622 echo $ECHO_N "(cached) $ECHO_C" >&6
14624 cat >conftest.$ac_ext <<_ACEOF
14627 cat confdefs.h >>conftest.$ac_ext
14628 cat >>conftest.$ac_ext <<_ACEOF
14629 /* end confdefs.h. */
14630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14632 #define $ac_func innocuous_$ac_func
14634 /* System header to define __stub macros and hopefully few prototypes,
14635 which can conflict with char $ac_func (); below.
14636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14637 <limits.h> exists even on freestanding compilers. */
14640 # include <limits.h>
14642 # include <assert.h>
14647 /* Override any GCC internal prototype to avoid an error.
14648 Use char because int might match the return type of a GCC
14649 builtin and then its argument prototype would still apply. */
14654 /* The GNU C library defines this for functions which it implements
14655 to always fail with ENOSYS. Some functions are actually named
14656 something starting with __ and the normal name is an alias. */
14657 #if defined __stub_$ac_func || defined __stub___$ac_func
14664 return $ac_func ();
14669 rm -f conftest.$ac_objext conftest$ac_exeext
14670 if { (ac_try="$ac_link"
14671 case "(($ac_try" in
14672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14673 *) ac_try_echo=$ac_try;;
14675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14676 (eval "$ac_link") 2>conftest.er1
14678 grep -v '^ *+' conftest.er1 >conftest.err
14680 cat conftest.err >&5
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); } && {
14683 test -z "$ac_c_werror_flag" ||
14684 test ! -s conftest.err
14685 } && test -s conftest$ac_exeext &&
14686 $as_test_x conftest$ac_exeext; then
14687 eval "$as_ac_var=yes"
14689 echo "$as_me: failed program was:" >&5
14690 sed 's/^/| /' conftest.$ac_ext >&5
14692 eval "$as_ac_var=no"
14695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14696 conftest$ac_exeext conftest.$ac_ext
14698 ac_res=`eval echo '${'$as_ac_var'}'`
14699 { echo "$as_me:$LINENO: result: $ac_res" >&5
14700 echo "${ECHO_T}$ac_res" >&6; }
14701 if test `eval echo '${'$as_ac_var'}'` = yes; then
14702 cat >>confdefs.h <<_ACEOF
14703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14712 { echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5
14713 echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6; }
14714 if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then
14715 echo $ECHO_N "(cached) $ECHO_C" >&6
14717 cat >conftest.$ac_ext <<_ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14723 #include <termios.h>
14729 #ifndef tcsendbreak
14730 (void) tcsendbreak;
14737 rm -f conftest.$ac_objext
14738 if { (ac_try="$ac_compile"
14739 case "(($ac_try" in
14740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14741 *) ac_try_echo=$ac_try;;
14743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14744 (eval "$ac_compile") 2>conftest.er1
14746 grep -v '^ *+' conftest.er1 >conftest.err
14748 cat conftest.err >&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } && {
14751 test -z "$ac_c_werror_flag" ||
14752 test ! -s conftest.err
14753 } && test -s conftest.$ac_objext; then
14754 ac_cv_have_decl_tcsendbreak=yes
14756 echo "$as_me: failed program was:" >&5
14757 sed 's/^/| /' conftest.$ac_ext >&5
14759 ac_cv_have_decl_tcsendbreak=no
14762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14764 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5
14765 echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6; }
14766 if test $ac_cv_have_decl_tcsendbreak = yes; then
14767 cat >>confdefs.h <<\_ACEOF
14768 #define HAVE_TCSENDBREAK 1
14773 for ac_func in tcsendbreak
14775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14776 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14778 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14779 echo $ECHO_N "(cached) $ECHO_C" >&6
14781 cat >conftest.$ac_ext <<_ACEOF
14784 cat confdefs.h >>conftest.$ac_ext
14785 cat >>conftest.$ac_ext <<_ACEOF
14786 /* end confdefs.h. */
14787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14789 #define $ac_func innocuous_$ac_func
14791 /* System header to define __stub macros and hopefully few prototypes,
14792 which can conflict with char $ac_func (); below.
14793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14794 <limits.h> exists even on freestanding compilers. */
14797 # include <limits.h>
14799 # include <assert.h>
14804 /* Override any GCC internal prototype to avoid an error.
14805 Use char because int might match the return type of a GCC
14806 builtin and then its argument prototype would still apply. */
14811 /* The GNU C library defines this for functions which it implements
14812 to always fail with ENOSYS. Some functions are actually named
14813 something starting with __ and the normal name is an alias. */
14814 #if defined __stub_$ac_func || defined __stub___$ac_func
14821 return $ac_func ();
14826 rm -f conftest.$ac_objext conftest$ac_exeext
14827 if { (ac_try="$ac_link"
14828 case "(($ac_try" in
14829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14830 *) ac_try_echo=$ac_try;;
14832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14833 (eval "$ac_link") 2>conftest.er1
14835 grep -v '^ *+' conftest.er1 >conftest.err
14837 cat conftest.err >&5
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); } && {
14840 test -z "$ac_c_werror_flag" ||
14841 test ! -s conftest.err
14842 } && test -s conftest$ac_exeext &&
14843 $as_test_x conftest$ac_exeext; then
14844 eval "$as_ac_var=yes"
14846 echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14849 eval "$as_ac_var=no"
14852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14853 conftest$ac_exeext conftest.$ac_ext
14855 ac_res=`eval echo '${'$as_ac_var'}'`
14856 { echo "$as_me:$LINENO: result: $ac_res" >&5
14857 echo "${ECHO_T}$ac_res" >&6; }
14858 if test `eval echo '${'$as_ac_var'}'` = yes; then
14859 cat >>confdefs.h <<_ACEOF
14860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14869 { echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
14870 echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; }
14871 if test "${ac_cv_have_decl_h_errno+set}" = set; then
14872 echo $ECHO_N "(cached) $ECHO_C" >&6
14874 cat >conftest.$ac_ext <<_ACEOF
14877 cat confdefs.h >>conftest.$ac_ext
14878 cat >>conftest.$ac_ext <<_ACEOF
14879 /* end confdefs.h. */
14893 rm -f conftest.$ac_objext
14894 if { (ac_try="$ac_compile"
14895 case "(($ac_try" in
14896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897 *) ac_try_echo=$ac_try;;
14899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14900 (eval "$ac_compile") 2>conftest.er1
14902 grep -v '^ *+' conftest.er1 >conftest.err
14904 cat conftest.err >&5
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); } && {
14907 test -z "$ac_c_werror_flag" ||
14908 test ! -s conftest.err
14909 } && test -s conftest.$ac_objext; then
14910 ac_cv_have_decl_h_errno=yes
14912 echo "$as_me: failed program was:" >&5
14913 sed 's/^/| /' conftest.$ac_ext >&5
14915 ac_cv_have_decl_h_errno=no
14918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14920 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
14921 echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; }
14922 if test $ac_cv_have_decl_h_errno = yes; then
14924 cat >>confdefs.h <<_ACEOF
14925 #define HAVE_DECL_H_ERRNO 1
14930 cat >>confdefs.h <<_ACEOF
14931 #define HAVE_DECL_H_ERRNO 0
14939 { echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5
14940 echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; }
14941 if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then
14942 echo $ECHO_N "(cached) $ECHO_C" >&6
14944 cat >conftest.$ac_ext <<_ACEOF
14947 cat confdefs.h >>conftest.$ac_ext
14948 cat >>conftest.$ac_ext <<_ACEOF
14949 /* end confdefs.h. */
14951 #include <sys/types.h>
14952 #include <sys/socket.h>
14966 rm -f conftest.$ac_objext
14967 if { (ac_try="$ac_compile"
14968 case "(($ac_try" in
14969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970 *) ac_try_echo=$ac_try;;
14972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14973 (eval "$ac_compile") 2>conftest.er1
14975 grep -v '^ *+' conftest.er1 >conftest.err
14977 cat conftest.err >&5
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); } && {
14980 test -z "$ac_c_werror_flag" ||
14981 test ! -s conftest.err
14982 } && test -s conftest.$ac_objext; then
14983 ac_cv_have_decl_SHUT_RD=yes
14985 echo "$as_me: failed program was:" >&5
14986 sed 's/^/| /' conftest.$ac_ext >&5
14988 ac_cv_have_decl_SHUT_RD=no
14991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14993 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5
14994 echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; }
14995 if test $ac_cv_have_decl_SHUT_RD = yes; then
14997 cat >>confdefs.h <<_ACEOF
14998 #define HAVE_DECL_SHUT_RD 1
15003 cat >>confdefs.h <<_ACEOF
15004 #define HAVE_DECL_SHUT_RD 0
15012 { echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5
15013 echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; }
15014 if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then
15015 echo $ECHO_N "(cached) $ECHO_C" >&6
15017 cat >conftest.$ac_ext <<_ACEOF
15020 cat confdefs.h >>conftest.$ac_ext
15021 cat >>conftest.$ac_ext <<_ACEOF
15022 /* end confdefs.h. */
15024 #include <sys/types.h>
15025 #ifdef HAVE_SYS_STAT_H
15026 # include <sys/stat.h>
15028 #ifdef HAVE_FCNTL_H
15029 # include <fcntl.h>
15044 rm -f conftest.$ac_objext
15045 if { (ac_try="$ac_compile"
15046 case "(($ac_try" in
15047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048 *) ac_try_echo=$ac_try;;
15050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051 (eval "$ac_compile") 2>conftest.er1
15053 grep -v '^ *+' conftest.er1 >conftest.err
15055 cat conftest.err >&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); } && {
15058 test -z "$ac_c_werror_flag" ||
15059 test ! -s conftest.err
15060 } && test -s conftest.$ac_objext; then
15061 ac_cv_have_decl_O_NONBLOCK=yes
15063 echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.$ac_ext >&5
15066 ac_cv_have_decl_O_NONBLOCK=no
15069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15071 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5
15072 echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; }
15073 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
15075 cat >>confdefs.h <<_ACEOF
15076 #define HAVE_DECL_O_NONBLOCK 1
15081 cat >>confdefs.h <<_ACEOF
15082 #define HAVE_DECL_O_NONBLOCK 0
15090 { echo "$as_me:$LINENO: checking whether writev is declared" >&5
15091 echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; }
15092 if test "${ac_cv_have_decl_writev+set}" = set; then
15093 echo $ECHO_N "(cached) $ECHO_C" >&6
15095 cat >conftest.$ac_ext <<_ACEOF
15098 cat confdefs.h >>conftest.$ac_ext
15099 cat >>conftest.$ac_ext <<_ACEOF
15100 /* end confdefs.h. */
15102 #include <sys/types.h>
15103 #include <sys/uio.h>
15104 #include <unistd.h>
15118 rm -f conftest.$ac_objext
15119 if { (ac_try="$ac_compile"
15120 case "(($ac_try" in
15121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122 *) ac_try_echo=$ac_try;;
15124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125 (eval "$ac_compile") 2>conftest.er1
15127 grep -v '^ *+' conftest.er1 >conftest.err
15129 cat conftest.err >&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); } && {
15132 test -z "$ac_c_werror_flag" ||
15133 test ! -s conftest.err
15134 } && test -s conftest.$ac_objext; then
15135 ac_cv_have_decl_writev=yes
15137 echo "$as_me: failed program was:" >&5
15138 sed 's/^/| /' conftest.$ac_ext >&5
15140 ac_cv_have_decl_writev=no
15143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15145 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5
15146 echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; }
15147 if test $ac_cv_have_decl_writev = yes; then
15149 cat >>confdefs.h <<_ACEOF
15150 #define HAVE_DECL_WRITEV 1
15155 cat >>confdefs.h <<_ACEOF
15156 #define HAVE_DECL_WRITEV 0
15164 { echo "$as_me:$LINENO: checking whether MAXSYMLINKS is declared" >&5
15165 echo $ECHO_N "checking whether MAXSYMLINKS is declared... $ECHO_C" >&6; }
15166 if test "${ac_cv_have_decl_MAXSYMLINKS+set}" = set; then
15167 echo $ECHO_N "(cached) $ECHO_C" >&6
15169 cat >conftest.$ac_ext <<_ACEOF
15172 cat confdefs.h >>conftest.$ac_ext
15173 cat >>conftest.$ac_ext <<_ACEOF
15174 /* end confdefs.h. */
15176 #include <sys/param.h>
15182 #ifndef MAXSYMLINKS
15183 (void) MAXSYMLINKS;
15190 rm -f conftest.$ac_objext
15191 if { (ac_try="$ac_compile"
15192 case "(($ac_try" in
15193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15194 *) ac_try_echo=$ac_try;;
15196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15197 (eval "$ac_compile") 2>conftest.er1
15199 grep -v '^ *+' conftest.er1 >conftest.err
15201 cat conftest.err >&5
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); } && {
15204 test -z "$ac_c_werror_flag" ||
15205 test ! -s conftest.err
15206 } && test -s conftest.$ac_objext; then
15207 ac_cv_have_decl_MAXSYMLINKS=yes
15209 echo "$as_me: failed program was:" >&5
15210 sed 's/^/| /' conftest.$ac_ext >&5
15212 ac_cv_have_decl_MAXSYMLINKS=no
15215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15217 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_MAXSYMLINKS" >&5
15218 echo "${ECHO_T}$ac_cv_have_decl_MAXSYMLINKS" >&6; }
15219 if test $ac_cv_have_decl_MAXSYMLINKS = yes; then
15221 cat >>confdefs.h <<_ACEOF
15222 #define HAVE_DECL_MAXSYMLINKS 1
15227 cat >>confdefs.h <<_ACEOF
15228 #define HAVE_DECL_MAXSYMLINKS 0
15236 { echo "$as_me:$LINENO: checking whether offsetof is declared" >&5
15237 echo $ECHO_N "checking whether offsetof is declared... $ECHO_C" >&6; }
15238 if test "${ac_cv_have_decl_offsetof+set}" = set; then
15239 echo $ECHO_N "(cached) $ECHO_C" >&6
15241 cat >conftest.$ac_ext <<_ACEOF
15244 cat confdefs.h >>conftest.$ac_ext
15245 cat >>conftest.$ac_ext <<_ACEOF
15246 /* end confdefs.h. */
15248 #include <stddef.h>
15262 rm -f conftest.$ac_objext
15263 if { (ac_try="$ac_compile"
15264 case "(($ac_try" in
15265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15266 *) ac_try_echo=$ac_try;;
15268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15269 (eval "$ac_compile") 2>conftest.er1
15271 grep -v '^ *+' conftest.er1 >conftest.err
15273 cat conftest.err >&5
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); } && {
15276 test -z "$ac_c_werror_flag" ||
15277 test ! -s conftest.err
15278 } && test -s conftest.$ac_objext; then
15279 ac_cv_have_decl_offsetof=yes
15281 echo "$as_me: failed program was:" >&5
15282 sed 's/^/| /' conftest.$ac_ext >&5
15284 ac_cv_have_decl_offsetof=no
15287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15289 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_offsetof" >&5
15290 echo "${ECHO_T}$ac_cv_have_decl_offsetof" >&6; }
15291 if test $ac_cv_have_decl_offsetof = yes; then
15293 cat >>confdefs.h <<_ACEOF
15294 #define HAVE_DECL_OFFSETOF 1
15299 cat >>confdefs.h <<_ACEOF
15300 #define HAVE_DECL_OFFSETOF 0
15309 for ac_func in setresuid
15311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15312 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15314 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15315 echo $ECHO_N "(cached) $ECHO_C" >&6
15317 cat >conftest.$ac_ext <<_ACEOF
15320 cat confdefs.h >>conftest.$ac_ext
15321 cat >>conftest.$ac_ext <<_ACEOF
15322 /* end confdefs.h. */
15323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15325 #define $ac_func innocuous_$ac_func
15327 /* System header to define __stub macros and hopefully few prototypes,
15328 which can conflict with char $ac_func (); below.
15329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15330 <limits.h> exists even on freestanding compilers. */
15333 # include <limits.h>
15335 # include <assert.h>
15340 /* Override any GCC internal prototype to avoid an error.
15341 Use char because int might match the return type of a GCC
15342 builtin and then its argument prototype would still apply. */
15347 /* The GNU C library defines this for functions which it implements
15348 to always fail with ENOSYS. Some functions are actually named
15349 something starting with __ and the normal name is an alias. */
15350 #if defined __stub_$ac_func || defined __stub___$ac_func
15357 return $ac_func ();
15362 rm -f conftest.$ac_objext conftest$ac_exeext
15363 if { (ac_try="$ac_link"
15364 case "(($ac_try" in
15365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15366 *) ac_try_echo=$ac_try;;
15368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15369 (eval "$ac_link") 2>conftest.er1
15371 grep -v '^ *+' conftest.er1 >conftest.err
15373 cat conftest.err >&5
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); } && {
15376 test -z "$ac_c_werror_flag" ||
15377 test ! -s conftest.err
15378 } && test -s conftest$ac_exeext &&
15379 $as_test_x conftest$ac_exeext; then
15380 eval "$as_ac_var=yes"
15382 echo "$as_me: failed program was:" >&5
15383 sed 's/^/| /' conftest.$ac_ext >&5
15385 eval "$as_ac_var=no"
15388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15389 conftest$ac_exeext conftest.$ac_ext
15391 ac_res=`eval echo '${'$as_ac_var'}'`
15392 { echo "$as_me:$LINENO: result: $ac_res" >&5
15393 echo "${ECHO_T}$ac_res" >&6; }
15394 if test `eval echo '${'$as_ac_var'}'` = yes; then
15395 cat >>confdefs.h <<_ACEOF
15396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15399 { echo "$as_me:$LINENO: checking if setresuid seems to work" >&5
15400 echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6; }
15401 if test "$cross_compiling" = yes; then
15402 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
15403 echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
15406 cat >conftest.$ac_ext <<_ACEOF
15409 cat confdefs.h >>conftest.$ac_ext
15410 cat >>conftest.$ac_ext <<_ACEOF
15411 /* end confdefs.h. */
15413 #include <stdlib.h>
15415 int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
15418 rm -f conftest$ac_exeext
15419 if { (ac_try="$ac_link"
15420 case "(($ac_try" in
15421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15422 *) ac_try_echo=$ac_try;;
15424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15425 (eval "$ac_link") 2>&5
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15429 { (case "(($ac_try" in
15430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431 *) ac_try_echo=$ac_try;;
15433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15434 (eval "$ac_try") 2>&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); }; }; then
15438 { echo "$as_me:$LINENO: result: yes" >&5
15439 echo "${ECHO_T}yes" >&6; }
15441 echo "$as_me: program exited with status $ac_status" >&5
15442 echo "$as_me: failed program was:" >&5
15443 sed 's/^/| /' conftest.$ac_ext >&5
15445 ( exit $ac_status )
15447 cat >>confdefs.h <<\_ACEOF
15448 #define BROKEN_SETRESUID 1
15451 { echo "$as_me:$LINENO: result: not implemented" >&5
15452 echo "${ECHO_T}not implemented" >&6; }
15454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15464 for ac_func in setresgid
15466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15467 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15470 echo $ECHO_N "(cached) $ECHO_C" >&6
15472 cat >conftest.$ac_ext <<_ACEOF
15475 cat confdefs.h >>conftest.$ac_ext
15476 cat >>conftest.$ac_ext <<_ACEOF
15477 /* end confdefs.h. */
15478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15480 #define $ac_func innocuous_$ac_func
15482 /* System header to define __stub macros and hopefully few prototypes,
15483 which can conflict with char $ac_func (); below.
15484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15485 <limits.h> exists even on freestanding compilers. */
15488 # include <limits.h>
15490 # include <assert.h>
15495 /* Override any GCC internal prototype to avoid an error.
15496 Use char because int might match the return type of a GCC
15497 builtin and then its argument prototype would still apply. */
15502 /* The GNU C library defines this for functions which it implements
15503 to always fail with ENOSYS. Some functions are actually named
15504 something starting with __ and the normal name is an alias. */
15505 #if defined __stub_$ac_func || defined __stub___$ac_func
15512 return $ac_func ();
15517 rm -f conftest.$ac_objext conftest$ac_exeext
15518 if { (ac_try="$ac_link"
15519 case "(($ac_try" in
15520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15521 *) ac_try_echo=$ac_try;;
15523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15524 (eval "$ac_link") 2>conftest.er1
15526 grep -v '^ *+' conftest.er1 >conftest.err
15528 cat conftest.err >&5
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); } && {
15531 test -z "$ac_c_werror_flag" ||
15532 test ! -s conftest.err
15533 } && test -s conftest$ac_exeext &&
15534 $as_test_x conftest$ac_exeext; then
15535 eval "$as_ac_var=yes"
15537 echo "$as_me: failed program was:" >&5
15538 sed 's/^/| /' conftest.$ac_ext >&5
15540 eval "$as_ac_var=no"
15543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15544 conftest$ac_exeext conftest.$ac_ext
15546 ac_res=`eval echo '${'$as_ac_var'}'`
15547 { echo "$as_me:$LINENO: result: $ac_res" >&5
15548 echo "${ECHO_T}$ac_res" >&6; }
15549 if test `eval echo '${'$as_ac_var'}'` = yes; then
15550 cat >>confdefs.h <<_ACEOF
15551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15554 { echo "$as_me:$LINENO: checking if setresgid seems to work" >&5
15555 echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6; }
15556 if test "$cross_compiling" = yes; then
15557 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
15558 echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
15561 cat >conftest.$ac_ext <<_ACEOF
15564 cat confdefs.h >>conftest.$ac_ext
15565 cat >>conftest.$ac_ext <<_ACEOF
15566 /* end confdefs.h. */
15568 #include <stdlib.h>
15570 int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
15573 rm -f conftest$ac_exeext
15574 if { (ac_try="$ac_link"
15575 case "(($ac_try" in
15576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577 *) ac_try_echo=$ac_try;;
15579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580 (eval "$ac_link") 2>&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15584 { (case "(($ac_try" in
15585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586 *) ac_try_echo=$ac_try;;
15588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15589 (eval "$ac_try") 2>&5
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; }; then
15593 { echo "$as_me:$LINENO: result: yes" >&5
15594 echo "${ECHO_T}yes" >&6; }
15596 echo "$as_me: program exited with status $ac_status" >&5
15597 echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15600 ( exit $ac_status )
15602 cat >>confdefs.h <<\_ACEOF
15603 #define BROKEN_SETRESGID 1
15606 { echo "$as_me:$LINENO: result: not implemented" >&5
15607 echo "${ECHO_T}not implemented" >&6; }
15609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15620 for ac_func in gettimeofday time
15622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15623 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15625 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15626 echo $ECHO_N "(cached) $ECHO_C" >&6
15628 cat >conftest.$ac_ext <<_ACEOF
15631 cat confdefs.h >>conftest.$ac_ext
15632 cat >>conftest.$ac_ext <<_ACEOF
15633 /* end confdefs.h. */
15634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15636 #define $ac_func innocuous_$ac_func
15638 /* System header to define __stub macros and hopefully few prototypes,
15639 which can conflict with char $ac_func (); below.
15640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15641 <limits.h> exists even on freestanding compilers. */
15644 # include <limits.h>
15646 # include <assert.h>
15651 /* Override any GCC internal prototype to avoid an error.
15652 Use char because int might match the return type of a GCC
15653 builtin and then its argument prototype would still apply. */
15658 /* The GNU C library defines this for functions which it implements
15659 to always fail with ENOSYS. Some functions are actually named
15660 something starting with __ and the normal name is an alias. */
15661 #if defined __stub_$ac_func || defined __stub___$ac_func
15668 return $ac_func ();
15673 rm -f conftest.$ac_objext conftest$ac_exeext
15674 if { (ac_try="$ac_link"
15675 case "(($ac_try" in
15676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15677 *) ac_try_echo=$ac_try;;
15679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15680 (eval "$ac_link") 2>conftest.er1
15682 grep -v '^ *+' conftest.er1 >conftest.err
15684 cat conftest.err >&5
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); } && {
15687 test -z "$ac_c_werror_flag" ||
15688 test ! -s conftest.err
15689 } && test -s conftest$ac_exeext &&
15690 $as_test_x conftest$ac_exeext; then
15691 eval "$as_ac_var=yes"
15693 echo "$as_me: failed program was:" >&5
15694 sed 's/^/| /' conftest.$ac_ext >&5
15696 eval "$as_ac_var=no"
15699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15700 conftest$ac_exeext conftest.$ac_ext
15702 ac_res=`eval echo '${'$as_ac_var'}'`
15703 { echo "$as_me:$LINENO: result: $ac_res" >&5
15704 echo "${ECHO_T}$ac_res" >&6; }
15705 if test `eval echo '${'$as_ac_var'}'` = yes; then
15706 cat >>confdefs.h <<_ACEOF
15707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15719 for ac_func in endutent getutent getutid getutline pututline setutent
15721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15722 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15725 echo $ECHO_N "(cached) $ECHO_C" >&6
15727 cat >conftest.$ac_ext <<_ACEOF
15730 cat confdefs.h >>conftest.$ac_ext
15731 cat >>conftest.$ac_ext <<_ACEOF
15732 /* end confdefs.h. */
15733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15735 #define $ac_func innocuous_$ac_func
15737 /* System header to define __stub macros and hopefully few prototypes,
15738 which can conflict with char $ac_func (); below.
15739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15740 <limits.h> exists even on freestanding compilers. */
15743 # include <limits.h>
15745 # include <assert.h>
15750 /* Override any GCC internal prototype to avoid an error.
15751 Use char because int might match the return type of a GCC
15752 builtin and then its argument prototype would still apply. */
15757 /* The GNU C library defines this for functions which it implements
15758 to always fail with ENOSYS. Some functions are actually named
15759 something starting with __ and the normal name is an alias. */
15760 #if defined __stub_$ac_func || defined __stub___$ac_func
15767 return $ac_func ();
15772 rm -f conftest.$ac_objext conftest$ac_exeext
15773 if { (ac_try="$ac_link"
15774 case "(($ac_try" in
15775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15776 *) ac_try_echo=$ac_try;;
15778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15779 (eval "$ac_link") 2>conftest.er1
15781 grep -v '^ *+' conftest.er1 >conftest.err
15783 cat conftest.err >&5
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); } && {
15786 test -z "$ac_c_werror_flag" ||
15787 test ! -s conftest.err
15788 } && test -s conftest$ac_exeext &&
15789 $as_test_x conftest$ac_exeext; then
15790 eval "$as_ac_var=yes"
15792 echo "$as_me: failed program was:" >&5
15793 sed 's/^/| /' conftest.$ac_ext >&5
15795 eval "$as_ac_var=no"
15798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15799 conftest$ac_exeext conftest.$ac_ext
15801 ac_res=`eval echo '${'$as_ac_var'}'`
15802 { echo "$as_me:$LINENO: result: $ac_res" >&5
15803 echo "${ECHO_T}$ac_res" >&6; }
15804 if test `eval echo '${'$as_ac_var'}'` = yes; then
15805 cat >>confdefs.h <<_ACEOF
15806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15813 for ac_func in utmpname
15815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15816 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15818 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15819 echo $ECHO_N "(cached) $ECHO_C" >&6
15821 cat >conftest.$ac_ext <<_ACEOF
15824 cat confdefs.h >>conftest.$ac_ext
15825 cat >>conftest.$ac_ext <<_ACEOF
15826 /* end confdefs.h. */
15827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15829 #define $ac_func innocuous_$ac_func
15831 /* System header to define __stub macros and hopefully few prototypes,
15832 which can conflict with char $ac_func (); below.
15833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15834 <limits.h> exists even on freestanding compilers. */
15837 # include <limits.h>
15839 # include <assert.h>
15844 /* Override any GCC internal prototype to avoid an error.
15845 Use char because int might match the return type of a GCC
15846 builtin and then its argument prototype would still apply. */
15851 /* The GNU C library defines this for functions which it implements
15852 to always fail with ENOSYS. Some functions are actually named
15853 something starting with __ and the normal name is an alias. */
15854 #if defined __stub_$ac_func || defined __stub___$ac_func
15861 return $ac_func ();
15866 rm -f conftest.$ac_objext conftest$ac_exeext
15867 if { (ac_try="$ac_link"
15868 case "(($ac_try" in
15869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15870 *) ac_try_echo=$ac_try;;
15872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15873 (eval "$ac_link") 2>conftest.er1
15875 grep -v '^ *+' conftest.er1 >conftest.err
15877 cat conftest.err >&5
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); } && {
15880 test -z "$ac_c_werror_flag" ||
15881 test ! -s conftest.err
15882 } && test -s conftest$ac_exeext &&
15883 $as_test_x conftest$ac_exeext; then
15884 eval "$as_ac_var=yes"
15886 echo "$as_me: failed program was:" >&5
15887 sed 's/^/| /' conftest.$ac_ext >&5
15889 eval "$as_ac_var=no"
15892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15893 conftest$ac_exeext conftest.$ac_ext
15895 ac_res=`eval echo '${'$as_ac_var'}'`
15896 { echo "$as_me:$LINENO: result: $ac_res" >&5
15897 echo "${ECHO_T}$ac_res" >&6; }
15898 if test `eval echo '${'$as_ac_var'}'` = yes; then
15899 cat >>confdefs.h <<_ACEOF
15900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15912 for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline
15914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15915 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15917 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15918 echo $ECHO_N "(cached) $ECHO_C" >&6
15920 cat >conftest.$ac_ext <<_ACEOF
15923 cat confdefs.h >>conftest.$ac_ext
15924 cat >>conftest.$ac_ext <<_ACEOF
15925 /* end confdefs.h. */
15926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15928 #define $ac_func innocuous_$ac_func
15930 /* System header to define __stub macros and hopefully few prototypes,
15931 which can conflict with char $ac_func (); below.
15932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15933 <limits.h> exists even on freestanding compilers. */
15936 # include <limits.h>
15938 # include <assert.h>
15943 /* Override any GCC internal prototype to avoid an error.
15944 Use char because int might match the return type of a GCC
15945 builtin and then its argument prototype would still apply. */
15950 /* The GNU C library defines this for functions which it implements
15951 to always fail with ENOSYS. Some functions are actually named
15952 something starting with __ and the normal name is an alias. */
15953 #if defined __stub_$ac_func || defined __stub___$ac_func
15960 return $ac_func ();
15965 rm -f conftest.$ac_objext conftest$ac_exeext
15966 if { (ac_try="$ac_link"
15967 case "(($ac_try" in
15968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15969 *) ac_try_echo=$ac_try;;
15971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15972 (eval "$ac_link") 2>conftest.er1
15974 grep -v '^ *+' conftest.er1 >conftest.err
15976 cat conftest.err >&5
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); } && {
15979 test -z "$ac_c_werror_flag" ||
15980 test ! -s conftest.err
15981 } && test -s conftest$ac_exeext &&
15982 $as_test_x conftest$ac_exeext; then
15983 eval "$as_ac_var=yes"
15985 echo "$as_me: failed program was:" >&5
15986 sed 's/^/| /' conftest.$ac_ext >&5
15988 eval "$as_ac_var=no"
15991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15992 conftest$ac_exeext conftest.$ac_ext
15994 ac_res=`eval echo '${'$as_ac_var'}'`
15995 { echo "$as_me:$LINENO: result: $ac_res" >&5
15996 echo "${ECHO_T}$ac_res" >&6; }
15997 if test `eval echo '${'$as_ac_var'}'` = yes; then
15998 cat >>confdefs.h <<_ACEOF
15999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16008 for ac_func in setutxdb setutxent utmpxname
16010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16011 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16013 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16014 echo $ECHO_N "(cached) $ECHO_C" >&6
16016 cat >conftest.$ac_ext <<_ACEOF
16019 cat confdefs.h >>conftest.$ac_ext
16020 cat >>conftest.$ac_ext <<_ACEOF
16021 /* end confdefs.h. */
16022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16024 #define $ac_func innocuous_$ac_func
16026 /* System header to define __stub macros and hopefully few prototypes,
16027 which can conflict with char $ac_func (); below.
16028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16029 <limits.h> exists even on freestanding compilers. */
16032 # include <limits.h>
16034 # include <assert.h>
16039 /* Override any GCC internal prototype to avoid an error.
16040 Use char because int might match the return type of a GCC
16041 builtin and then its argument prototype would still apply. */
16046 /* The GNU C library defines this for functions which it implements
16047 to always fail with ENOSYS. Some functions are actually named
16048 something starting with __ and the normal name is an alias. */
16049 #if defined __stub_$ac_func || defined __stub___$ac_func
16056 return $ac_func ();
16061 rm -f conftest.$ac_objext conftest$ac_exeext
16062 if { (ac_try="$ac_link"
16063 case "(($ac_try" in
16064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065 *) ac_try_echo=$ac_try;;
16067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16068 (eval "$ac_link") 2>conftest.er1
16070 grep -v '^ *+' conftest.er1 >conftest.err
16072 cat conftest.err >&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); } && {
16075 test -z "$ac_c_werror_flag" ||
16076 test ! -s conftest.err
16077 } && test -s conftest$ac_exeext &&
16078 $as_test_x conftest$ac_exeext; then
16079 eval "$as_ac_var=yes"
16081 echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16084 eval "$as_ac_var=no"
16087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16088 conftest$ac_exeext conftest.$ac_ext
16090 ac_res=`eval echo '${'$as_ac_var'}'`
16091 { echo "$as_me:$LINENO: result: $ac_res" >&5
16092 echo "${ECHO_T}$ac_res" >&6; }
16093 if test `eval echo '${'$as_ac_var'}'` = yes; then
16094 cat >>confdefs.h <<_ACEOF
16095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16102 for ac_func in getlastlogxbyname
16104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16105 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16107 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16108 echo $ECHO_N "(cached) $ECHO_C" >&6
16110 cat >conftest.$ac_ext <<_ACEOF
16113 cat confdefs.h >>conftest.$ac_ext
16114 cat >>conftest.$ac_ext <<_ACEOF
16115 /* end confdefs.h. */
16116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16118 #define $ac_func innocuous_$ac_func
16120 /* System header to define __stub macros and hopefully few prototypes,
16121 which can conflict with char $ac_func (); below.
16122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16123 <limits.h> exists even on freestanding compilers. */
16126 # include <limits.h>
16128 # include <assert.h>
16133 /* Override any GCC internal prototype to avoid an error.
16134 Use char because int might match the return type of a GCC
16135 builtin and then its argument prototype would still apply. */
16140 /* The GNU C library defines this for functions which it implements
16141 to always fail with ENOSYS. Some functions are actually named
16142 something starting with __ and the normal name is an alias. */
16143 #if defined __stub_$ac_func || defined __stub___$ac_func
16150 return $ac_func ();
16155 rm -f conftest.$ac_objext conftest$ac_exeext
16156 if { (ac_try="$ac_link"
16157 case "(($ac_try" in
16158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16159 *) ac_try_echo=$ac_try;;
16161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16162 (eval "$ac_link") 2>conftest.er1
16164 grep -v '^ *+' conftest.er1 >conftest.err
16166 cat conftest.err >&5
16167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168 (exit $ac_status); } && {
16169 test -z "$ac_c_werror_flag" ||
16170 test ! -s conftest.err
16171 } && test -s conftest$ac_exeext &&
16172 $as_test_x conftest$ac_exeext; then
16173 eval "$as_ac_var=yes"
16175 echo "$as_me: failed program was:" >&5
16176 sed 's/^/| /' conftest.$ac_ext >&5
16178 eval "$as_ac_var=no"
16181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16182 conftest$ac_exeext conftest.$ac_ext
16184 ac_res=`eval echo '${'$as_ac_var'}'`
16185 { echo "$as_me:$LINENO: result: $ac_res" >&5
16186 echo "${ECHO_T}$ac_res" >&6; }
16187 if test `eval echo '${'$as_ac_var'}'` = yes; then
16188 cat >>confdefs.h <<_ACEOF
16189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16196 { echo "$as_me:$LINENO: checking for daemon" >&5
16197 echo $ECHO_N "checking for daemon... $ECHO_C" >&6; }
16198 if test "${ac_cv_func_daemon+set}" = set; then
16199 echo $ECHO_N "(cached) $ECHO_C" >&6
16201 cat >conftest.$ac_ext <<_ACEOF
16204 cat confdefs.h >>conftest.$ac_ext
16205 cat >>conftest.$ac_ext <<_ACEOF
16206 /* end confdefs.h. */
16207 /* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
16208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16209 #define daemon innocuous_daemon
16211 /* System header to define __stub macros and hopefully few prototypes,
16212 which can conflict with char daemon (); below.
16213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16214 <limits.h> exists even on freestanding compilers. */
16217 # include <limits.h>
16219 # include <assert.h>
16224 /* Override any GCC internal prototype to avoid an error.
16225 Use char because int might match the return type of a GCC
16226 builtin and then its argument prototype would still apply. */
16231 /* The GNU C library defines this for functions which it implements
16232 to always fail with ENOSYS. Some functions are actually named
16233 something starting with __ and the normal name is an alias. */
16234 #if defined __stub_daemon || defined __stub___daemon
16246 rm -f conftest.$ac_objext conftest$ac_exeext
16247 if { (ac_try="$ac_link"
16248 case "(($ac_try" in
16249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16250 *) ac_try_echo=$ac_try;;
16252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16253 (eval "$ac_link") 2>conftest.er1
16255 grep -v '^ *+' conftest.er1 >conftest.err
16257 cat conftest.err >&5
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); } && {
16260 test -z "$ac_c_werror_flag" ||
16261 test ! -s conftest.err
16262 } && test -s conftest$ac_exeext &&
16263 $as_test_x conftest$ac_exeext; then
16264 ac_cv_func_daemon=yes
16266 echo "$as_me: failed program was:" >&5
16267 sed 's/^/| /' conftest.$ac_ext >&5
16269 ac_cv_func_daemon=no
16272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16273 conftest$ac_exeext conftest.$ac_ext
16275 { echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
16276 echo "${ECHO_T}$ac_cv_func_daemon" >&6; }
16277 if test $ac_cv_func_daemon = yes; then
16279 cat >>confdefs.h <<\_ACEOF
16280 #define HAVE_DAEMON 1
16284 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
16285 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
16286 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
16287 echo $ECHO_N "(cached) $ECHO_C" >&6
16289 ac_check_lib_save_LIBS=$LIBS
16291 cat >conftest.$ac_ext <<_ACEOF
16294 cat confdefs.h >>conftest.$ac_ext
16295 cat >>conftest.$ac_ext <<_ACEOF
16296 /* end confdefs.h. */
16298 /* Override any GCC internal prototype to avoid an error.
16299 Use char because int might match the return type of a GCC
16300 builtin and then its argument prototype would still apply. */
16313 rm -f conftest.$ac_objext conftest$ac_exeext
16314 if { (ac_try="$ac_link"
16315 case "(($ac_try" in
16316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16317 *) ac_try_echo=$ac_try;;
16319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16320 (eval "$ac_link") 2>conftest.er1
16322 grep -v '^ *+' conftest.er1 >conftest.err
16324 cat conftest.err >&5
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); } && {
16327 test -z "$ac_c_werror_flag" ||
16328 test ! -s conftest.err
16329 } && test -s conftest$ac_exeext &&
16330 $as_test_x conftest$ac_exeext; then
16331 ac_cv_lib_bsd_daemon=yes
16333 echo "$as_me: failed program was:" >&5
16334 sed 's/^/| /' conftest.$ac_ext >&5
16336 ac_cv_lib_bsd_daemon=no
16339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16340 conftest$ac_exeext conftest.$ac_ext
16341 LIBS=$ac_check_lib_save_LIBS
16343 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
16344 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
16345 if test $ac_cv_lib_bsd_daemon = yes; then
16346 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
16347 #define HAVE_DAEMON 1
16356 { echo "$as_me:$LINENO: checking for getpagesize" >&5
16357 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
16358 if test "${ac_cv_func_getpagesize+set}" = set; then
16359 echo $ECHO_N "(cached) $ECHO_C" >&6
16361 cat >conftest.$ac_ext <<_ACEOF
16364 cat confdefs.h >>conftest.$ac_ext
16365 cat >>conftest.$ac_ext <<_ACEOF
16366 /* end confdefs.h. */
16367 /* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize.
16368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16369 #define getpagesize innocuous_getpagesize
16371 /* System header to define __stub macros and hopefully few prototypes,
16372 which can conflict with char getpagesize (); below.
16373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16374 <limits.h> exists even on freestanding compilers. */
16377 # include <limits.h>
16379 # include <assert.h>
16384 /* Override any GCC internal prototype to avoid an error.
16385 Use char because int might match the return type of a GCC
16386 builtin and then its argument prototype would still apply. */
16390 char getpagesize ();
16391 /* The GNU C library defines this for functions which it implements
16392 to always fail with ENOSYS. Some functions are actually named
16393 something starting with __ and the normal name is an alias. */
16394 #if defined __stub_getpagesize || defined __stub___getpagesize
16401 return getpagesize ();
16406 rm -f conftest.$ac_objext conftest$ac_exeext
16407 if { (ac_try="$ac_link"
16408 case "(($ac_try" in
16409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16410 *) ac_try_echo=$ac_try;;
16412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16413 (eval "$ac_link") 2>conftest.er1
16415 grep -v '^ *+' conftest.er1 >conftest.err
16417 cat conftest.err >&5
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); } && {
16420 test -z "$ac_c_werror_flag" ||
16421 test ! -s conftest.err
16422 } && test -s conftest$ac_exeext &&
16423 $as_test_x conftest$ac_exeext; then
16424 ac_cv_func_getpagesize=yes
16426 echo "$as_me: failed program was:" >&5
16427 sed 's/^/| /' conftest.$ac_ext >&5
16429 ac_cv_func_getpagesize=no
16432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16433 conftest$ac_exeext conftest.$ac_ext
16435 { echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
16436 echo "${ECHO_T}$ac_cv_func_getpagesize" >&6; }
16437 if test $ac_cv_func_getpagesize = yes; then
16439 cat >>confdefs.h <<\_ACEOF
16440 #define HAVE_GETPAGESIZE 1
16444 { echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
16445 echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6; }
16446 if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
16447 echo $ECHO_N "(cached) $ECHO_C" >&6
16449 ac_check_lib_save_LIBS=$LIBS
16451 cat >conftest.$ac_ext <<_ACEOF
16454 cat confdefs.h >>conftest.$ac_ext
16455 cat >>conftest.$ac_ext <<_ACEOF
16456 /* end confdefs.h. */
16458 /* Override any GCC internal prototype to avoid an error.
16459 Use char because int might match the return type of a GCC
16460 builtin and then its argument prototype would still apply. */
16464 char getpagesize ();
16468 return getpagesize ();
16473 rm -f conftest.$ac_objext conftest$ac_exeext
16474 if { (ac_try="$ac_link"
16475 case "(($ac_try" in
16476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16477 *) ac_try_echo=$ac_try;;
16479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16480 (eval "$ac_link") 2>conftest.er1
16482 grep -v '^ *+' conftest.er1 >conftest.err
16484 cat conftest.err >&5
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); } && {
16487 test -z "$ac_c_werror_flag" ||
16488 test ! -s conftest.err
16489 } && test -s conftest$ac_exeext &&
16490 $as_test_x conftest$ac_exeext; then
16491 ac_cv_lib_ucb_getpagesize=yes
16493 echo "$as_me: failed program was:" >&5
16494 sed 's/^/| /' conftest.$ac_ext >&5
16496 ac_cv_lib_ucb_getpagesize=no
16499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16500 conftest$ac_exeext conftest.$ac_ext
16501 LIBS=$ac_check_lib_save_LIBS
16503 { echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
16504 echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6; }
16505 if test $ac_cv_lib_ucb_getpagesize = yes; then
16506 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
16507 #define HAVE_GETPAGESIZE 1
16516 # Check for broken snprintf
16517 if test "x$ac_cv_func_snprintf" = "xyes" ; then
16518 { echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
16519 echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; }
16520 if test "$cross_compiling" = yes; then
16521 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
16522 echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
16525 cat >conftest.$ac_ext <<_ACEOF
16528 cat confdefs.h >>conftest.$ac_ext
16529 cat >>conftest.$ac_ext <<_ACEOF
16530 /* end confdefs.h. */
16533 int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
16536 rm -f conftest$ac_exeext
16537 if { (ac_try="$ac_link"
16538 case "(($ac_try" in
16539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16540 *) ac_try_echo=$ac_try;;
16542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16543 (eval "$ac_link") 2>&5
16545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16547 { (case "(($ac_try" in
16548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16549 *) ac_try_echo=$ac_try;;
16551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16552 (eval "$ac_try") 2>&5
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); }; }; then
16556 { echo "$as_me:$LINENO: result: yes" >&5
16557 echo "${ECHO_T}yes" >&6; }
16559 echo "$as_me: program exited with status $ac_status" >&5
16560 echo "$as_me: failed program was:" >&5
16561 sed 's/^/| /' conftest.$ac_ext >&5
16563 ( exit $ac_status )
16565 { echo "$as_me:$LINENO: result: no" >&5
16566 echo "${ECHO_T}no" >&6; }
16568 cat >>confdefs.h <<\_ACEOF
16569 #define BROKEN_SNPRINTF 1
16572 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
16573 echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
16576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16582 # If we don't have a working asprintf, then we strongly depend on vsnprintf
16583 # returning the right thing on overflow: the number of characters it tried to
16584 # create (as per SUSv3)
16585 if test "x$ac_cv_func_asprintf" != "xyes" && \
16586 test "x$ac_cv_func_vsnprintf" = "xyes" ; then
16587 { echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5
16588 echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6; }
16589 if test "$cross_compiling" = yes; then
16590 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5
16591 echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
16594 cat >conftest.$ac_ext <<_ACEOF
16597 cat confdefs.h >>conftest.$ac_ext
16598 cat >>conftest.$ac_ext <<_ACEOF
16599 /* end confdefs.h. */
16601 #include <sys/types.h>
16603 #include <stdarg.h>
16605 int x_snprintf(char *str,size_t count,const char *fmt,...)
16607 size_t ret; va_list ap;
16608 va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap);
16614 exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1);
16617 rm -f conftest$ac_exeext
16618 if { (ac_try="$ac_link"
16619 case "(($ac_try" in
16620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621 *) ac_try_echo=$ac_try;;
16623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624 (eval "$ac_link") 2>&5
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16628 { (case "(($ac_try" in
16629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16630 *) ac_try_echo=$ac_try;;
16632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16633 (eval "$ac_try") 2>&5
16635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636 (exit $ac_status); }; }; then
16637 { echo "$as_me:$LINENO: result: yes" >&5
16638 echo "${ECHO_T}yes" >&6; }
16640 echo "$as_me: program exited with status $ac_status" >&5
16641 echo "$as_me: failed program was:" >&5
16642 sed 's/^/| /' conftest.$ac_ext >&5
16644 ( exit $ac_status )
16646 { echo "$as_me:$LINENO: result: no" >&5
16647 echo "${ECHO_T}no" >&6; }
16649 cat >>confdefs.h <<\_ACEOF
16650 #define BROKEN_SNPRINTF 1
16653 { echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
16654 echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
16657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16663 # On systems where [v]snprintf is broken, but is declared in stdio,
16664 # check that the fmt argument is const char * or just char *.
16665 # This is only useful for when BROKEN_SNPRINTF
16666 { echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5
16667 echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6; }
16668 cat >conftest.$ac_ext <<_ACEOF
16671 cat confdefs.h >>conftest.$ac_ext
16672 cat >>conftest.$ac_ext <<_ACEOF
16673 /* end confdefs.h. */
16675 int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
16676 int main(void) { snprintf(0, 0, 0); }
16679 rm -f conftest.$ac_objext
16680 if { (ac_try="$ac_compile"
16681 case "(($ac_try" in
16682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683 *) ac_try_echo=$ac_try;;
16685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686 (eval "$ac_compile") 2>conftest.er1
16688 grep -v '^ *+' conftest.er1 >conftest.err
16690 cat conftest.err >&5
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); } && {
16693 test -z "$ac_c_werror_flag" ||
16694 test ! -s conftest.err
16695 } && test -s conftest.$ac_objext; then
16696 { echo "$as_me:$LINENO: result: yes" >&5
16697 echo "${ECHO_T}yes" >&6; }
16699 cat >>confdefs.h <<\_ACEOF
16700 #define SNPRINTF_CONST const
16704 echo "$as_me: failed program was:" >&5
16705 sed 's/^/| /' conftest.$ac_ext >&5
16707 { echo "$as_me:$LINENO: result: no" >&5
16708 echo "${ECHO_T}no" >&6; }
16709 cat >>confdefs.h <<\_ACEOF
16710 #define SNPRINTF_CONST /* not const */
16715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16717 # Check for missing getpeereid (or equiv) support
16719 if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
16720 { echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5
16721 echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6; }
16722 cat >conftest.$ac_ext <<_ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h. */
16728 #include <sys/types.h>
16729 #include <sys/socket.h>
16733 int i = SO_PEERCRED;
16738 rm -f conftest.$ac_objext
16739 if { (ac_try="$ac_compile"
16740 case "(($ac_try" in
16741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16742 *) ac_try_echo=$ac_try;;
16744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16745 (eval "$ac_compile") 2>conftest.er1
16747 grep -v '^ *+' conftest.er1 >conftest.err
16749 cat conftest.err >&5
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); } && {
16752 test -z "$ac_c_werror_flag" ||
16753 test ! -s conftest.err
16754 } && test -s conftest.$ac_objext; then
16755 { echo "$as_me:$LINENO: result: yes" >&5
16756 echo "${ECHO_T}yes" >&6; }
16758 cat >>confdefs.h <<\_ACEOF
16759 #define HAVE_SO_PEERCRED 1
16764 echo "$as_me: failed program was:" >&5
16765 sed 's/^/| /' conftest.$ac_ext >&5
16767 { echo "$as_me:$LINENO: result: no" >&5
16768 echo "${ECHO_T}no" >&6; }
16773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16776 if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
16777 { echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5
16778 echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6; }
16779 if test "$cross_compiling" = yes; then
16781 { echo "$as_me:$LINENO: result: yes" >&5
16782 echo "${ECHO_T}yes" >&6; }
16783 cat >>confdefs.h <<\_ACEOF
16784 #define HAVE_STRICT_MKSTEMP 1
16790 cat >conftest.$ac_ext <<_ACEOF
16793 cat confdefs.h >>conftest.$ac_ext
16794 cat >>conftest.$ac_ext <<_ACEOF
16795 /* end confdefs.h. */
16797 #include <stdlib.h>
16798 main() { char template[]="conftest.mkstemp-test";
16799 if (mkstemp(template) == -1)
16801 unlink(template); exit(0);
16805 rm -f conftest$ac_exeext
16806 if { (ac_try="$ac_link"
16807 case "(($ac_try" in
16808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16809 *) ac_try_echo=$ac_try;;
16811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16812 (eval "$ac_link") 2>&5
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16816 { (case "(($ac_try" in
16817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16818 *) ac_try_echo=$ac_try;;
16820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16821 (eval "$ac_try") 2>&5
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); }; }; then
16826 { echo "$as_me:$LINENO: result: no" >&5
16827 echo "${ECHO_T}no" >&6; }
16830 echo "$as_me: program exited with status $ac_status" >&5
16831 echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16834 ( exit $ac_status )
16836 { echo "$as_me:$LINENO: result: yes" >&5
16837 echo "${ECHO_T}yes" >&6; }
16839 cat >>confdefs.h <<\_ACEOF
16840 #define HAVE_STRICT_MKSTEMP 1
16845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16851 if test ! -z "$check_for_openpty_ctty_bug"; then
16852 { echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5
16853 echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6; }
16854 if test "$cross_compiling" = yes; then
16856 { echo "$as_me:$LINENO: result: cross-compiling" >&5
16857 echo "${ECHO_T}cross-compiling" >&6; }
16861 cat >conftest.$ac_ext <<_ACEOF
16864 cat confdefs.h >>conftest.$ac_ext
16865 cat >>conftest.$ac_ext <<_ACEOF
16866 /* end confdefs.h. */
16869 #include <sys/fcntl.h>
16870 #include <sys/types.h>
16871 #include <sys/wait.h>
16877 int fd, ptyfd, ttyfd, status;
16880 if (pid < 0) { /* failed */
16882 } else if (pid > 0) { /* parent */
16883 waitpid(pid, &status, 0);
16884 if (WIFEXITED(status))
16885 exit(WEXITSTATUS(status));
16888 } else { /* child */
16889 close(0); close(1); close(2);
16891 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
16892 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
16894 exit(3); /* Acquired ctty: broken */
16896 exit(0); /* Did not acquire ctty: OK */
16901 rm -f conftest$ac_exeext
16902 if { (ac_try="$ac_link"
16903 case "(($ac_try" in
16904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16905 *) ac_try_echo=$ac_try;;
16907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16908 (eval "$ac_link") 2>&5
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16912 { (case "(($ac_try" in
16913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914 *) ac_try_echo=$ac_try;;
16916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917 (eval "$ac_try") 2>&5
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; }; then
16922 { echo "$as_me:$LINENO: result: yes" >&5
16923 echo "${ECHO_T}yes" >&6; }
16926 echo "$as_me: program exited with status $ac_status" >&5
16927 echo "$as_me: failed program was:" >&5
16928 sed 's/^/| /' conftest.$ac_ext >&5
16930 ( exit $ac_status )
16932 { echo "$as_me:$LINENO: result: no" >&5
16933 echo "${ECHO_T}no" >&6; }
16934 cat >>confdefs.h <<\_ACEOF
16935 #define SSHD_ACQUIRES_CTTY 1
16940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16946 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
16947 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
16948 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
16949 echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
16950 if test "$cross_compiling" = yes; then
16952 { echo "$as_me:$LINENO: result: cross-compiling" >&5
16953 echo "${ECHO_T}cross-compiling" >&6; }
16957 cat >conftest.$ac_ext <<_ACEOF
16960 cat confdefs.h >>conftest.$ac_ext
16961 cat >>conftest.$ac_ext <<_ACEOF
16962 /* end confdefs.h. */
16965 #include <sys/socket.h>
16968 #include <netinet/in.h>
16970 #define TEST_PORT "2222"
16976 struct addrinfo *gai_ai, *ai, hints;
16977 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
16979 memset(&hints, 0, sizeof(hints));
16980 hints.ai_family = PF_UNSPEC;
16981 hints.ai_socktype = SOCK_STREAM;
16982 hints.ai_flags = AI_PASSIVE;
16984 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
16986 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
16990 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
16991 if (ai->ai_family != AF_INET6)
16994 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
16995 sizeof(ntop), strport, sizeof(strport),
16996 NI_NUMERICHOST|NI_NUMERICSERV);
16999 if (err == EAI_SYSTEM)
17000 perror("getnameinfo EAI_SYSTEM");
17002 fprintf(stderr, "getnameinfo failed: %s\n",
17003 gai_strerror(err));
17007 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
17010 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
17011 if (errno == EBADF)
17019 rm -f conftest$ac_exeext
17020 if { (ac_try="$ac_link"
17021 case "(($ac_try" in
17022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17023 *) ac_try_echo=$ac_try;;
17025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17026 (eval "$ac_link") 2>&5
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17030 { (case "(($ac_try" in
17031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032 *) ac_try_echo=$ac_try;;
17034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035 (eval "$ac_try") 2>&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); }; }; then
17040 { echo "$as_me:$LINENO: result: yes" >&5
17041 echo "${ECHO_T}yes" >&6; }
17044 echo "$as_me: program exited with status $ac_status" >&5
17045 echo "$as_me: failed program was:" >&5
17046 sed 's/^/| /' conftest.$ac_ext >&5
17048 ( exit $ac_status )
17050 { echo "$as_me:$LINENO: result: no" >&5
17051 echo "${ECHO_T}no" >&6; }
17052 cat >>confdefs.h <<\_ACEOF
17053 #define BROKEN_GETADDRINFO 1
17058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17064 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
17065 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
17066 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
17067 echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
17068 if test "$cross_compiling" = yes; then
17070 { echo "$as_me:$LINENO: result: cross-compiling" >&5
17071 echo "${ECHO_T}cross-compiling" >&6; }
17075 cat >conftest.$ac_ext <<_ACEOF
17078 cat confdefs.h >>conftest.$ac_ext
17079 cat >>conftest.$ac_ext <<_ACEOF
17080 /* end confdefs.h. */
17083 #include <sys/socket.h>
17086 #include <netinet/in.h>
17088 #define TEST_PORT "2222"
17094 struct addrinfo *gai_ai, *ai, hints;
17095 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
17097 memset(&hints, 0, sizeof(hints));
17098 hints.ai_family = PF_UNSPEC;
17099 hints.ai_socktype = SOCK_STREAM;
17100 hints.ai_flags = AI_PASSIVE;
17102 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
17104 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
17108 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
17109 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
17112 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
17113 sizeof(ntop), strport, sizeof(strport),
17114 NI_NUMERICHOST|NI_NUMERICSERV);
17116 if (ai->ai_family == AF_INET && err != 0) {
17117 perror("getnameinfo");
17125 rm -f conftest$ac_exeext
17126 if { (ac_try="$ac_link"
17127 case "(($ac_try" in
17128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17129 *) ac_try_echo=$ac_try;;
17131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17132 (eval "$ac_link") 2>&5
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17136 { (case "(($ac_try" in
17137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138 *) ac_try_echo=$ac_try;;
17140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141 (eval "$ac_try") 2>&5
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); }; }; then
17146 { echo "$as_me:$LINENO: result: yes" >&5
17147 echo "${ECHO_T}yes" >&6; }
17149 cat >>confdefs.h <<\_ACEOF
17150 #define AIX_GETNAMEINFO_HACK 1
17155 echo "$as_me: program exited with status $ac_status" >&5
17156 echo "$as_me: failed program was:" >&5
17157 sed 's/^/| /' conftest.$ac_ext >&5
17159 ( exit $ac_status )
17161 { echo "$as_me:$LINENO: result: no" >&5
17162 echo "${ECHO_T}no" >&6; }
17163 cat >>confdefs.h <<\_ACEOF
17164 #define BROKEN_GETADDRINFO 1
17169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17175 if test "x$check_for_conflicting_getspnam" = "x1"; then
17176 { echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5
17177 echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6; }
17178 cat >conftest.$ac_ext <<_ACEOF
17180 #include <shadow.h>
17181 int main(void) {exit(0);}
17184 rm -f conftest.$ac_objext
17185 if { (ac_try="$ac_compile"
17186 case "(($ac_try" in
17187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17188 *) ac_try_echo=$ac_try;;
17190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17191 (eval "$ac_compile") 2>conftest.er1
17193 grep -v '^ *+' conftest.er1 >conftest.err
17195 cat conftest.err >&5
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); } && {
17198 test -z "$ac_c_werror_flag" ||
17199 test ! -s conftest.err
17200 } && test -s conftest.$ac_objext; then
17202 { echo "$as_me:$LINENO: result: no" >&5
17203 echo "${ECHO_T}no" >&6; }
17206 echo "$as_me: failed program was:" >&5
17207 sed 's/^/| /' conftest.$ac_ext >&5
17210 { echo "$as_me:$LINENO: result: yes" >&5
17211 echo "${ECHO_T}yes" >&6; }
17213 cat >>confdefs.h <<\_ACEOF
17214 #define GETSPNAM_CONFLICTING_DEFS 1
17221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17224 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17225 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
17226 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17227 echo $ECHO_N "(cached) $ECHO_C" >&6
17229 # Use it with a single arg.
17230 cat >conftest.$ac_ext <<_ACEOF
17233 cat confdefs.h >>conftest.$ac_ext
17234 cat >>conftest.$ac_ext <<_ACEOF
17235 /* end confdefs.h. */
17236 $ac_includes_default
17245 rm -f conftest.$ac_objext
17246 if { (ac_try="$ac_compile"
17247 case "(($ac_try" in
17248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249 *) ac_try_echo=$ac_try;;
17251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17252 (eval "$ac_compile") 2>conftest.er1
17254 grep -v '^ *+' conftest.er1 >conftest.err
17256 cat conftest.err >&5
17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); } && {
17259 test -z "$ac_c_werror_flag" ||
17260 test ! -s conftest.err
17261 } && test -s conftest.$ac_objext; then
17262 ac_cv_func_getpgrp_void=no
17264 echo "$as_me: failed program was:" >&5
17265 sed 's/^/| /' conftest.$ac_ext >&5
17267 ac_cv_func_getpgrp_void=yes
17270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17273 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17274 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
17275 if test $ac_cv_func_getpgrp_void = yes; then
17277 cat >>confdefs.h <<\_ACEOF
17278 #define GETPGRP_VOID 1
17284 # Search for OpenSSL
17285 saved_CPPFLAGS="$CPPFLAGS"
17286 saved_LDFLAGS="$LDFLAGS"
17288 # Check whether --with-ssl-dir was given.
17289 if test "${with_ssl_dir+set}" = set; then
17290 withval=$with_ssl_dir;
17291 if test "x$withval" != "xno" ; then
17294 ./*|../*) withval="`pwd`/$withval"
17296 if test -d "$withval/lib"; then
17297 if test -n "${need_dash_r}"; then
17298 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
17300 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
17302 elif test -d "$withval/lib64"; then
17303 if test -n "${need_dash_r}"; then
17304 LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}"
17306 LDFLAGS="-L${withval}/lib64 ${LDFLAGS}"
17309 if test -n "${need_dash_r}"; then
17310 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
17312 LDFLAGS="-L${withval} ${LDFLAGS}"
17315 if test -d "$withval/include"; then
17316 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
17318 CPPFLAGS="-I${withval} ${CPPFLAGS}"
17325 LIBS="-lcrypto $LIBS"
17326 cat >conftest.$ac_ext <<_ACEOF
17329 cat confdefs.h >>conftest.$ac_ext
17330 cat >>conftest.$ac_ext <<_ACEOF
17331 /* end confdefs.h. */
17333 /* Override any GCC internal prototype to avoid an error.
17334 Use char because int might match the return type of a GCC
17335 builtin and then its argument prototype would still apply. */
17343 return RAND_add ();
17348 rm -f conftest.$ac_objext conftest$ac_exeext
17349 if { (ac_try="$ac_link"
17350 case "(($ac_try" in
17351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17352 *) ac_try_echo=$ac_try;;
17354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17355 (eval "$ac_link") 2>conftest.er1
17357 grep -v '^ *+' conftest.er1 >conftest.err
17359 cat conftest.err >&5
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); } && {
17362 test -z "$ac_c_werror_flag" ||
17363 test ! -s conftest.err
17364 } && test -s conftest$ac_exeext &&
17365 $as_test_x conftest$ac_exeext; then
17367 cat >>confdefs.h <<\_ACEOF
17368 #define HAVE_OPENSSL 1
17372 echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.$ac_ext >&5
17376 if test -n "${need_dash_r}"; then
17377 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
17379 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
17381 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
17382 if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
17383 { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
17384 echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
17385 if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
17386 echo $ECHO_N "(cached) $ECHO_C" >&6
17388 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
17389 echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
17391 # Is the header compilable?
17392 { echo "$as_me:$LINENO: checking openssl/opensslv.h usability" >&5
17393 echo $ECHO_N "checking openssl/opensslv.h usability... $ECHO_C" >&6; }
17394 cat >conftest.$ac_ext <<_ACEOF
17397 cat confdefs.h >>conftest.$ac_ext
17398 cat >>conftest.$ac_ext <<_ACEOF
17399 /* end confdefs.h. */
17400 $ac_includes_default
17401 #include <openssl/opensslv.h>
17403 rm -f conftest.$ac_objext
17404 if { (ac_try="$ac_compile"
17405 case "(($ac_try" in
17406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407 *) ac_try_echo=$ac_try;;
17409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17410 (eval "$ac_compile") 2>conftest.er1
17412 grep -v '^ *+' conftest.er1 >conftest.err
17414 cat conftest.err >&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); } && {
17417 test -z "$ac_c_werror_flag" ||
17418 test ! -s conftest.err
17419 } && test -s conftest.$ac_objext; then
17420 ac_header_compiler=yes
17422 echo "$as_me: failed program was:" >&5
17423 sed 's/^/| /' conftest.$ac_ext >&5
17425 ac_header_compiler=no
17428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17429 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17430 echo "${ECHO_T}$ac_header_compiler" >&6; }
17432 # Is the header present?
17433 { echo "$as_me:$LINENO: checking openssl/opensslv.h presence" >&5
17434 echo $ECHO_N "checking openssl/opensslv.h presence... $ECHO_C" >&6; }
17435 cat >conftest.$ac_ext <<_ACEOF
17438 cat confdefs.h >>conftest.$ac_ext
17439 cat >>conftest.$ac_ext <<_ACEOF
17440 /* end confdefs.h. */
17441 #include <openssl/opensslv.h>
17443 if { (ac_try="$ac_cpp conftest.$ac_ext"
17444 case "(($ac_try" in
17445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17446 *) ac_try_echo=$ac_try;;
17448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17451 grep -v '^ *+' conftest.er1 >conftest.err
17453 cat conftest.err >&5
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); } >/dev/null && {
17456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17457 test ! -s conftest.err
17459 ac_header_preproc=yes
17461 echo "$as_me: failed program was:" >&5
17462 sed 's/^/| /' conftest.$ac_ext >&5
17464 ac_header_preproc=no
17467 rm -f conftest.err conftest.$ac_ext
17468 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17469 echo "${ECHO_T}$ac_header_preproc" >&6; }
17471 # So? What about this header?
17472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17474 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&5
17475 echo "$as_me: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17476 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&5
17477 echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&2;}
17478 ac_header_preproc=yes
17481 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: present but cannot be compiled" >&5
17482 echo "$as_me: WARNING: openssl/opensslv.h: present but cannot be compiled" >&2;}
17483 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&5
17484 echo "$as_me: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&2;}
17485 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&5
17486 echo "$as_me: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&2;}
17487 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&5
17488 echo "$as_me: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&2;}
17489 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&5
17490 echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&2;}
17491 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&5
17492 echo "$as_me: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&2;}
17494 ## ------------------------------------------- ##
17495 ## Report this to openssh-unix-dev@mindrot.org ##
17496 ## ------------------------------------------- ##
17498 ) | sed "s/^/$as_me: WARNING: /" >&2
17501 { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
17502 echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
17503 if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
17504 echo $ECHO_N "(cached) $ECHO_C" >&6
17506 ac_cv_header_openssl_opensslv_h=$ac_header_preproc
17508 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
17509 echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
17512 if test $ac_cv_header_openssl_opensslv_h = yes; then
17515 { { echo "$as_me:$LINENO: error: *** OpenSSL headers missing - please install first or check config.log ***" >&5
17516 echo "$as_me: error: *** OpenSSL headers missing - please install first or check config.log ***" >&2;}
17517 { (exit 1); exit 1; }; }
17521 cat >conftest.$ac_ext <<_ACEOF
17524 cat confdefs.h >>conftest.$ac_ext
17525 cat >>conftest.$ac_ext <<_ACEOF
17526 /* end confdefs.h. */
17528 /* Override any GCC internal prototype to avoid an error.
17529 Use char because int might match the return type of a GCC
17530 builtin and then its argument prototype would still apply. */
17538 return RAND_add ();
17543 rm -f conftest.$ac_objext conftest$ac_exeext
17544 if { (ac_try="$ac_link"
17545 case "(($ac_try" in
17546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17547 *) ac_try_echo=$ac_try;;
17549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17550 (eval "$ac_link") 2>conftest.er1
17552 grep -v '^ *+' conftest.er1 >conftest.err
17554 cat conftest.err >&5
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); } && {
17557 test -z "$ac_c_werror_flag" ||
17558 test ! -s conftest.err
17559 } && test -s conftest$ac_exeext &&
17560 $as_test_x conftest$ac_exeext; then
17561 cat >>confdefs.h <<\_ACEOF
17562 #define HAVE_OPENSSL 1
17566 echo "$as_me: failed program was:" >&5
17567 sed 's/^/| /' conftest.$ac_ext >&5
17570 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
17571 echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
17572 { (exit 1); exit 1; }; }
17577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17578 conftest$ac_exeext conftest.$ac_ext
17583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17584 conftest$ac_exeext conftest.$ac_ext
17586 # Determine OpenSSL header version
17587 { echo "$as_me:$LINENO: checking OpenSSL header version" >&5
17588 echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6; }
17589 if test "$cross_compiling" = yes; then
17591 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
17592 echo "$as_me: WARNING: cross compiling: not checking" >&2;}
17596 cat >conftest.$ac_ext <<_ACEOF
17599 cat confdefs.h >>conftest.$ac_ext
17600 cat >>conftest.$ac_ext <<_ACEOF
17601 /* end confdefs.h. */
17604 #include <string.h>
17605 #include <openssl/opensslv.h>
17606 #define DATA "conftest.sslincver"
17611 fd = fopen(DATA,"w");
17615 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
17622 rm -f conftest$ac_exeext
17623 if { (ac_try="$ac_link"
17624 case "(($ac_try" in
17625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17626 *) ac_try_echo=$ac_try;;
17628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17629 (eval "$ac_link") 2>&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17633 { (case "(($ac_try" in
17634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17635 *) ac_try_echo=$ac_try;;
17637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17638 (eval "$ac_try") 2>&5
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); }; }; then
17643 ssl_header_ver=`cat conftest.sslincver`
17644 { echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
17645 echo "${ECHO_T}$ssl_header_ver" >&6; }
17648 echo "$as_me: program exited with status $ac_status" >&5
17649 echo "$as_me: failed program was:" >&5
17650 sed 's/^/| /' conftest.$ac_ext >&5
17652 ( exit $ac_status )
17654 { echo "$as_me:$LINENO: result: not found" >&5
17655 echo "${ECHO_T}not found" >&6; }
17656 { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
17657 echo "$as_me: error: OpenSSL version header not found." >&2;}
17658 { (exit 1); exit 1; }; }
17661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17666 # Determine OpenSSL library version
17667 { echo "$as_me:$LINENO: checking OpenSSL library version" >&5
17668 echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; }
17669 if test "$cross_compiling" = yes; then
17671 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
17672 echo "$as_me: WARNING: cross compiling: not checking" >&2;}
17676 cat >conftest.$ac_ext <<_ACEOF
17679 cat confdefs.h >>conftest.$ac_ext
17680 cat >>conftest.$ac_ext <<_ACEOF
17681 /* end confdefs.h. */
17684 #include <string.h>
17685 #include <openssl/opensslv.h>
17686 #include <openssl/crypto.h>
17687 #define DATA "conftest.ssllibver"
17692 fd = fopen(DATA,"w");
17696 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
17703 rm -f conftest$ac_exeext
17704 if { (ac_try="$ac_link"
17705 case "(($ac_try" in
17706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17707 *) ac_try_echo=$ac_try;;
17709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17710 (eval "$ac_link") 2>&5
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17714 { (case "(($ac_try" in
17715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17716 *) ac_try_echo=$ac_try;;
17718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17719 (eval "$ac_try") 2>&5
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); }; }; then
17724 ssl_library_ver=`cat conftest.ssllibver`
17725 { echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
17726 echo "${ECHO_T}$ssl_library_ver" >&6; }
17729 echo "$as_me: program exited with status $ac_status" >&5
17730 echo "$as_me: failed program was:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17733 ( exit $ac_status )
17735 { echo "$as_me:$LINENO: result: not found" >&5
17736 echo "${ECHO_T}not found" >&6; }
17737 { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
17738 echo "$as_me: error: OpenSSL library not found." >&2;}
17739 { (exit 1); exit 1; }; }
17742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17748 # Check whether --with-openssl-header-check was given.
17749 if test "${with_openssl_header_check+set}" = set; then
17750 withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then
17751 openssl_check_nonfatal=1
17758 # Sanity check OpenSSL headers
17759 { echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
17760 echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; }
17761 if test "$cross_compiling" = yes; then
17763 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
17764 echo "$as_me: WARNING: cross compiling: not checking" >&2;}
17768 cat >conftest.$ac_ext <<_ACEOF
17771 cat confdefs.h >>conftest.$ac_ext
17772 cat >>conftest.$ac_ext <<_ACEOF
17773 /* end confdefs.h. */
17775 #include <string.h>
17776 #include <openssl/opensslv.h>
17777 int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
17780 rm -f conftest$ac_exeext
17781 if { (ac_try="$ac_link"
17782 case "(($ac_try" in
17783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17784 *) ac_try_echo=$ac_try;;
17786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17787 (eval "$ac_link") 2>&5
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17791 { (case "(($ac_try" in
17792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17793 *) ac_try_echo=$ac_try;;
17795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17796 (eval "$ac_try") 2>&5
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; }; then
17801 { echo "$as_me:$LINENO: result: yes" >&5
17802 echo "${ECHO_T}yes" >&6; }
17805 echo "$as_me: program exited with status $ac_status" >&5
17806 echo "$as_me: failed program was:" >&5
17807 sed 's/^/| /' conftest.$ac_ext >&5
17809 ( exit $ac_status )
17811 { echo "$as_me:$LINENO: result: no" >&5
17812 echo "${ECHO_T}no" >&6; }
17813 if test "x$openssl_check_nonfatal" = "x"; then
17814 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your
17815 library. Check config.log for details.
17816 If you are sure your installation is consistent, you can disable the check
17817 by running \"./configure --without-openssl-header-check\".
17818 Also see contrib/findssl.sh for help identifying header/library mismatches.
17820 echo "$as_me: error: Your OpenSSL headers do not match your
17821 library. Check config.log for details.
17822 If you are sure your installation is consistent, you can disable the check
17823 by running \"./configure --without-openssl-header-check\".
17824 Also see contrib/findssl.sh for help identifying header/library mismatches.
17826 { (exit 1); exit 1; }; }
17828 { echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your
17829 library. Check config.log for details.
17830 Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
17831 echo "$as_me: WARNING: Your OpenSSL headers do not match your
17832 library. Check config.log for details.
17833 Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
17837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17842 { echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5
17843 echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; }
17844 cat >conftest.$ac_ext <<_ACEOF
17847 cat confdefs.h >>conftest.$ac_ext
17848 cat >>conftest.$ac_ext <<_ACEOF
17849 /* end confdefs.h. */
17851 #include <openssl/evp.h>
17852 int main(void) { SSLeay_add_all_algorithms(); }
17855 rm -f conftest.$ac_objext conftest$ac_exeext
17856 if { (ac_try="$ac_link"
17857 case "(($ac_try" in
17858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17859 *) ac_try_echo=$ac_try;;
17861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17862 (eval "$ac_link") 2>conftest.er1
17864 grep -v '^ *+' conftest.er1 >conftest.err
17866 cat conftest.err >&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); } && {
17869 test -z "$ac_c_werror_flag" ||
17870 test ! -s conftest.err
17871 } && test -s conftest$ac_exeext &&
17872 $as_test_x conftest$ac_exeext; then
17874 { echo "$as_me:$LINENO: result: yes" >&5
17875 echo "${ECHO_T}yes" >&6; }
17878 echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.$ac_ext >&5
17882 { echo "$as_me:$LINENO: result: no" >&5
17883 echo "${ECHO_T}no" >&6; }
17886 { echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5
17887 echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; }
17888 cat >conftest.$ac_ext <<_ACEOF
17891 cat confdefs.h >>conftest.$ac_ext
17892 cat >>conftest.$ac_ext <<_ACEOF
17893 /* end confdefs.h. */
17895 #include <openssl/evp.h>
17896 int main(void) { SSLeay_add_all_algorithms(); }
17899 rm -f conftest.$ac_objext conftest$ac_exeext
17900 if { (ac_try="$ac_link"
17901 case "(($ac_try" in
17902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17903 *) ac_try_echo=$ac_try;;
17905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17906 (eval "$ac_link") 2>conftest.er1
17908 grep -v '^ *+' conftest.er1 >conftest.err
17910 cat conftest.err >&5
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); } && {
17913 test -z "$ac_c_werror_flag" ||
17914 test ! -s conftest.err
17915 } && test -s conftest$ac_exeext &&
17916 $as_test_x conftest$ac_exeext; then
17918 { echo "$as_me:$LINENO: result: yes" >&5
17919 echo "${ECHO_T}yes" >&6; }
17922 echo "$as_me: failed program was:" >&5
17923 sed 's/^/| /' conftest.$ac_ext >&5
17926 { echo "$as_me:$LINENO: result: no" >&5
17927 echo "${ECHO_T}no" >&6; }
17933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17934 conftest$ac_exeext conftest.$ac_ext
17939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17940 conftest$ac_exeext conftest.$ac_ext
17946 for ac_func in RSA_generate_key_ex DSA_generate_parameters_ex BN_is_prime_ex RSA_get_default_method
17948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17949 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17952 echo $ECHO_N "(cached) $ECHO_C" >&6
17954 cat >conftest.$ac_ext <<_ACEOF
17957 cat confdefs.h >>conftest.$ac_ext
17958 cat >>conftest.$ac_ext <<_ACEOF
17959 /* end confdefs.h. */
17960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17962 #define $ac_func innocuous_$ac_func
17964 /* System header to define __stub macros and hopefully few prototypes,
17965 which can conflict with char $ac_func (); below.
17966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17967 <limits.h> exists even on freestanding compilers. */
17970 # include <limits.h>
17972 # include <assert.h>
17977 /* Override any GCC internal prototype to avoid an error.
17978 Use char because int might match the return type of a GCC
17979 builtin and then its argument prototype would still apply. */
17984 /* The GNU C library defines this for functions which it implements
17985 to always fail with ENOSYS. Some functions are actually named
17986 something starting with __ and the normal name is an alias. */
17987 #if defined __stub_$ac_func || defined __stub___$ac_func
17994 return $ac_func ();
17999 rm -f conftest.$ac_objext conftest$ac_exeext
18000 if { (ac_try="$ac_link"
18001 case "(($ac_try" in
18002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18003 *) ac_try_echo=$ac_try;;
18005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18006 (eval "$ac_link") 2>conftest.er1
18008 grep -v '^ *+' conftest.er1 >conftest.err
18010 cat conftest.err >&5
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); } && {
18013 test -z "$ac_c_werror_flag" ||
18014 test ! -s conftest.err
18015 } && test -s conftest$ac_exeext &&
18016 $as_test_x conftest$ac_exeext; then
18017 eval "$as_ac_var=yes"
18019 echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18022 eval "$as_ac_var=no"
18025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18026 conftest$ac_exeext conftest.$ac_ext
18028 ac_res=`eval echo '${'$as_ac_var'}'`
18029 { echo "$as_me:$LINENO: result: $ac_res" >&5
18030 echo "${ECHO_T}$ac_res" >&6; }
18031 if test `eval echo '${'$as_ac_var'}'` = yes; then
18032 cat >>confdefs.h <<_ACEOF
18033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18041 # Check whether --with-ssl-engine was given.
18042 if test "${with_ssl_engine+set}" = set; then
18043 withval=$with_ssl_engine; if test "x$withval" != "xno" ; then
18044 { echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5
18045 echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; }
18046 cat >conftest.$ac_ext <<_ACEOF
18049 cat confdefs.h >>conftest.$ac_ext
18050 cat >>conftest.$ac_ext <<_ACEOF
18051 /* end confdefs.h. */
18052 #include <openssl/engine.h>
18057 ENGINE_load_builtin_engines();ENGINE_register_all_complete();
18063 rm -f conftest.$ac_objext
18064 if { (ac_try="$ac_compile"
18065 case "(($ac_try" in
18066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18067 *) ac_try_echo=$ac_try;;
18069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18070 (eval "$ac_compile") 2>conftest.er1
18072 grep -v '^ *+' conftest.er1 >conftest.err
18074 cat conftest.err >&5
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); } && {
18077 test -z "$ac_c_werror_flag" ||
18078 test ! -s conftest.err
18079 } && test -s conftest.$ac_objext; then
18080 { echo "$as_me:$LINENO: result: yes" >&5
18081 echo "${ECHO_T}yes" >&6; }
18083 cat >>confdefs.h <<\_ACEOF
18084 #define USE_OPENSSL_ENGINE 1
18089 echo "$as_me: failed program was:" >&5
18090 sed 's/^/| /' conftest.$ac_ext >&5
18092 { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5
18093 echo "$as_me: error: OpenSSL ENGINE support not found" >&2;}
18094 { (exit 1); exit 1; }; }
18098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18104 # Check for OpenSSL without EVP_aes_{192,256}_cbc
18105 { echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5
18106 echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; }
18107 cat >conftest.$ac_ext <<_ACEOF
18110 cat confdefs.h >>conftest.$ac_ext
18111 cat >>conftest.$ac_ext <<_ACEOF
18112 /* end confdefs.h. */
18114 #include <string.h>
18115 #include <openssl/evp.h>
18116 int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);}
18119 rm -f conftest.$ac_objext conftest$ac_exeext
18120 if { (ac_try="$ac_link"
18121 case "(($ac_try" in
18122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18123 *) ac_try_echo=$ac_try;;
18125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18126 (eval "$ac_link") 2>conftest.er1
18128 grep -v '^ *+' conftest.er1 >conftest.err
18130 cat conftest.err >&5
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); } && {
18133 test -z "$ac_c_werror_flag" ||
18134 test ! -s conftest.err
18135 } && test -s conftest$ac_exeext &&
18136 $as_test_x conftest$ac_exeext; then
18138 { echo "$as_me:$LINENO: result: no" >&5
18139 echo "${ECHO_T}no" >&6; }
18142 echo "$as_me: failed program was:" >&5
18143 sed 's/^/| /' conftest.$ac_ext >&5
18146 { echo "$as_me:$LINENO: result: yes" >&5
18147 echo "${ECHO_T}yes" >&6; }
18149 cat >>confdefs.h <<\_ACEOF
18150 #define OPENSSL_LOBOTOMISED_AES 1
18157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18158 conftest$ac_exeext conftest.$ac_ext
18160 { echo "$as_me:$LINENO: checking if EVP_DigestUpdate returns an int" >&5
18161 echo $ECHO_N "checking if EVP_DigestUpdate returns an int... $ECHO_C" >&6; }
18162 cat >conftest.$ac_ext <<_ACEOF
18165 cat confdefs.h >>conftest.$ac_ext
18166 cat >>conftest.$ac_ext <<_ACEOF
18167 /* end confdefs.h. */
18169 #include <string.h>
18170 #include <openssl/evp.h>
18171 int main(void) { if(EVP_DigestUpdate(NULL, NULL,0)) exit(0); }
18174 rm -f conftest.$ac_objext conftest$ac_exeext
18175 if { (ac_try="$ac_link"
18176 case "(($ac_try" in
18177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18178 *) ac_try_echo=$ac_try;;
18180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18181 (eval "$ac_link") 2>conftest.er1
18183 grep -v '^ *+' conftest.er1 >conftest.err
18185 cat conftest.err >&5
18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187 (exit $ac_status); } && {
18188 test -z "$ac_c_werror_flag" ||
18189 test ! -s conftest.err
18190 } && test -s conftest$ac_exeext &&
18191 $as_test_x conftest$ac_exeext; then
18193 { echo "$as_me:$LINENO: result: yes" >&5
18194 echo "${ECHO_T}yes" >&6; }
18197 echo "$as_me: failed program was:" >&5
18198 sed 's/^/| /' conftest.$ac_ext >&5
18201 { echo "$as_me:$LINENO: result: no" >&5
18202 echo "${ECHO_T}no" >&6; }
18204 cat >>confdefs.h <<\_ACEOF
18205 #define OPENSSL_EVP_DIGESTUPDATE_VOID 1
18212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18213 conftest$ac_exeext conftest.$ac_ext
18215 # Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
18216 # because the system crypt() is more featureful.
18217 if test "x$check_for_libcrypt_before" = "x1"; then
18219 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
18220 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
18221 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
18222 echo $ECHO_N "(cached) $ECHO_C" >&6
18224 ac_check_lib_save_LIBS=$LIBS
18225 LIBS="-lcrypt $LIBS"
18226 cat >conftest.$ac_ext <<_ACEOF
18229 cat confdefs.h >>conftest.$ac_ext
18230 cat >>conftest.$ac_ext <<_ACEOF
18231 /* end confdefs.h. */
18233 /* Override any GCC internal prototype to avoid an error.
18234 Use char because int might match the return type of a GCC
18235 builtin and then its argument prototype would still apply. */
18248 rm -f conftest.$ac_objext conftest$ac_exeext
18249 if { (ac_try="$ac_link"
18250 case "(($ac_try" in
18251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18252 *) ac_try_echo=$ac_try;;
18254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18255 (eval "$ac_link") 2>conftest.er1
18257 grep -v '^ *+' conftest.er1 >conftest.err
18259 cat conftest.err >&5
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); } && {
18262 test -z "$ac_c_werror_flag" ||
18263 test ! -s conftest.err
18264 } && test -s conftest$ac_exeext &&
18265 $as_test_x conftest$ac_exeext; then
18266 ac_cv_lib_crypt_crypt=yes
18268 echo "$as_me: failed program was:" >&5
18269 sed 's/^/| /' conftest.$ac_ext >&5
18271 ac_cv_lib_crypt_crypt=no
18274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18275 conftest$ac_exeext conftest.$ac_ext
18276 LIBS=$ac_check_lib_save_LIBS
18278 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
18279 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
18280 if test $ac_cv_lib_crypt_crypt = yes; then
18281 cat >>confdefs.h <<_ACEOF
18282 #define HAVE_LIBCRYPT 1
18285 LIBS="-lcrypt $LIBS"
18291 # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
18292 # version in OpenSSL.
18293 if test "x$check_for_libcrypt_later" = "x1"; then
18294 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
18295 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
18296 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
18297 echo $ECHO_N "(cached) $ECHO_C" >&6
18299 ac_check_lib_save_LIBS=$LIBS
18300 LIBS="-lcrypt $LIBS"
18301 cat >conftest.$ac_ext <<_ACEOF
18304 cat confdefs.h >>conftest.$ac_ext
18305 cat >>conftest.$ac_ext <<_ACEOF
18306 /* end confdefs.h. */
18308 /* Override any GCC internal prototype to avoid an error.
18309 Use char because int might match the return type of a GCC
18310 builtin and then its argument prototype would still apply. */
18323 rm -f conftest.$ac_objext conftest$ac_exeext
18324 if { (ac_try="$ac_link"
18325 case "(($ac_try" in
18326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18327 *) ac_try_echo=$ac_try;;
18329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18330 (eval "$ac_link") 2>conftest.er1
18332 grep -v '^ *+' conftest.er1 >conftest.err
18334 cat conftest.err >&5
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } && {
18337 test -z "$ac_c_werror_flag" ||
18338 test ! -s conftest.err
18339 } && test -s conftest$ac_exeext &&
18340 $as_test_x conftest$ac_exeext; then
18341 ac_cv_lib_crypt_crypt=yes
18343 echo "$as_me: failed program was:" >&5
18344 sed 's/^/| /' conftest.$ac_ext >&5
18346 ac_cv_lib_crypt_crypt=no
18349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18350 conftest$ac_exeext conftest.$ac_ext
18351 LIBS=$ac_check_lib_save_LIBS
18353 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
18354 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
18355 if test $ac_cv_lib_crypt_crypt = yes; then
18356 LIBS="$LIBS -lcrypt"
18361 # Search for SHA256 support in libc and/or OpenSSL
18364 for ac_func in SHA256_Update EVP_sha256
18366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18367 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18369 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18370 echo $ECHO_N "(cached) $ECHO_C" >&6
18372 cat >conftest.$ac_ext <<_ACEOF
18375 cat confdefs.h >>conftest.$ac_ext
18376 cat >>conftest.$ac_ext <<_ACEOF
18377 /* end confdefs.h. */
18378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18380 #define $ac_func innocuous_$ac_func
18382 /* System header to define __stub macros and hopefully few prototypes,
18383 which can conflict with char $ac_func (); below.
18384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18385 <limits.h> exists even on freestanding compilers. */
18388 # include <limits.h>
18390 # include <assert.h>
18395 /* Override any GCC internal prototype to avoid an error.
18396 Use char because int might match the return type of a GCC
18397 builtin and then its argument prototype would still apply. */
18402 /* The GNU C library defines this for functions which it implements
18403 to always fail with ENOSYS. Some functions are actually named
18404 something starting with __ and the normal name is an alias. */
18405 #if defined __stub_$ac_func || defined __stub___$ac_func
18412 return $ac_func ();
18417 rm -f conftest.$ac_objext conftest$ac_exeext
18418 if { (ac_try="$ac_link"
18419 case "(($ac_try" in
18420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18421 *) ac_try_echo=$ac_try;;
18423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18424 (eval "$ac_link") 2>conftest.er1
18426 grep -v '^ *+' conftest.er1 >conftest.err
18428 cat conftest.err >&5
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); } && {
18431 test -z "$ac_c_werror_flag" ||
18432 test ! -s conftest.err
18433 } && test -s conftest$ac_exeext &&
18434 $as_test_x conftest$ac_exeext; then
18435 eval "$as_ac_var=yes"
18437 echo "$as_me: failed program was:" >&5
18438 sed 's/^/| /' conftest.$ac_ext >&5
18440 eval "$as_ac_var=no"
18443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18444 conftest$ac_exeext conftest.$ac_ext
18446 ac_res=`eval echo '${'$as_ac_var'}'`
18447 { echo "$as_me:$LINENO: result: $ac_res" >&5
18448 echo "${ECHO_T}$ac_res" >&6; }
18449 if test `eval echo '${'$as_ac_var'}'` = yes; then
18450 cat >>confdefs.h <<_ACEOF
18451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18453 TEST_SSH_SHA256=yes
18461 # Check complete ECC support in OpenSSL
18462 { echo "$as_me:$LINENO: checking whether OpenSSL has complete ECC support" >&5
18463 echo $ECHO_N "checking whether OpenSSL has complete ECC support... $ECHO_C" >&6; }
18464 cat >conftest.$ac_ext <<_ACEOF
18467 cat confdefs.h >>conftest.$ac_ext
18468 cat >>conftest.$ac_ext <<_ACEOF
18469 /* end confdefs.h. */
18471 #include <openssl/ec.h>
18472 #include <openssl/ecdh.h>
18473 #include <openssl/ecdsa.h>
18474 #include <openssl/evp.h>
18475 #include <openssl/objects.h>
18476 #include <openssl/opensslv.h>
18477 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
18478 # error "OpenSSL < 0.9.8g has unreliable ECC code"
18481 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
18482 const EVP_MD *m = EVP_sha512(); /* We need this too */
18486 rm -f conftest.$ac_objext conftest$ac_exeext
18487 if { (ac_try="$ac_link"
18488 case "(($ac_try" in
18489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18490 *) ac_try_echo=$ac_try;;
18492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18493 (eval "$ac_link") 2>conftest.er1
18495 grep -v '^ *+' conftest.er1 >conftest.err
18497 cat conftest.err >&5
18498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499 (exit $ac_status); } && {
18500 test -z "$ac_c_werror_flag" ||
18501 test ! -s conftest.err
18502 } && test -s conftest$ac_exeext &&
18503 $as_test_x conftest$ac_exeext; then
18505 { echo "$as_me:$LINENO: result: yes" >&5
18506 echo "${ECHO_T}yes" >&6; }
18508 cat >>confdefs.h <<\_ACEOF
18509 #define OPENSSL_HAS_ECC 1
18516 echo "$as_me: failed program was:" >&5
18517 sed 's/^/| /' conftest.$ac_ext >&5
18520 { echo "$as_me:$LINENO: result: no" >&5
18521 echo "${ECHO_T}no" >&6; }
18523 COMMENT_OUT_ECC="#no ecc#"
18528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18529 conftest$ac_exeext conftest.$ac_ext
18534 { echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5
18535 echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; }
18536 if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then
18537 echo $ECHO_N "(cached) $ECHO_C" >&6
18539 ac_check_lib_save_LIBS=$LIBS
18541 cat >conftest.$ac_ext <<_ACEOF
18544 cat confdefs.h >>conftest.$ac_ext
18545 cat >>conftest.$ac_ext <<_ACEOF
18546 /* end confdefs.h. */
18548 /* Override any GCC internal prototype to avoid an error.
18549 Use char because int might match the return type of a GCC
18550 builtin and then its argument prototype would still apply. */
18554 char ia_openinfo ();
18558 return ia_openinfo ();
18563 rm -f conftest.$ac_objext conftest$ac_exeext
18564 if { (ac_try="$ac_link"
18565 case "(($ac_try" in
18566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18567 *) ac_try_echo=$ac_try;;
18569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18570 (eval "$ac_link") 2>conftest.er1
18572 grep -v '^ *+' conftest.er1 >conftest.err
18574 cat conftest.err >&5
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); } && {
18577 test -z "$ac_c_werror_flag" ||
18578 test ! -s conftest.err
18579 } && test -s conftest$ac_exeext &&
18580 $as_test_x conftest$ac_exeext; then
18581 ac_cv_lib_iaf_ia_openinfo=yes
18583 echo "$as_me: failed program was:" >&5
18584 sed 's/^/| /' conftest.$ac_ext >&5
18586 ac_cv_lib_iaf_ia_openinfo=no
18589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18590 conftest$ac_exeext conftest.$ac_ext
18591 LIBS=$ac_check_lib_save_LIBS
18593 { echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5
18594 echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; }
18595 if test $ac_cv_lib_iaf_ia_openinfo = yes; then
18599 for ac_func in set_id
18601 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18602 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18604 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18605 echo $ECHO_N "(cached) $ECHO_C" >&6
18607 cat >conftest.$ac_ext <<_ACEOF
18610 cat confdefs.h >>conftest.$ac_ext
18611 cat >>conftest.$ac_ext <<_ACEOF
18612 /* end confdefs.h. */
18613 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18615 #define $ac_func innocuous_$ac_func
18617 /* System header to define __stub macros and hopefully few prototypes,
18618 which can conflict with char $ac_func (); below.
18619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18620 <limits.h> exists even on freestanding compilers. */
18623 # include <limits.h>
18625 # include <assert.h>
18630 /* Override any GCC internal prototype to avoid an error.
18631 Use char because int might match the return type of a GCC
18632 builtin and then its argument prototype would still apply. */
18637 /* The GNU C library defines this for functions which it implements
18638 to always fail with ENOSYS. Some functions are actually named
18639 something starting with __ and the normal name is an alias. */
18640 #if defined __stub_$ac_func || defined __stub___$ac_func
18647 return $ac_func ();
18652 rm -f conftest.$ac_objext conftest$ac_exeext
18653 if { (ac_try="$ac_link"
18654 case "(($ac_try" in
18655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18656 *) ac_try_echo=$ac_try;;
18658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18659 (eval "$ac_link") 2>conftest.er1
18661 grep -v '^ *+' conftest.er1 >conftest.err
18663 cat conftest.err >&5
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); } && {
18666 test -z "$ac_c_werror_flag" ||
18667 test ! -s conftest.err
18668 } && test -s conftest$ac_exeext &&
18669 $as_test_x conftest$ac_exeext; then
18670 eval "$as_ac_var=yes"
18672 echo "$as_me: failed program was:" >&5
18673 sed 's/^/| /' conftest.$ac_ext >&5
18675 eval "$as_ac_var=no"
18678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18679 conftest$ac_exeext conftest.$ac_ext
18681 ac_res=`eval echo '${'$as_ac_var'}'`
18682 { echo "$as_me:$LINENO: result: $ac_res" >&5
18683 echo "${ECHO_T}$ac_res" >&6; }
18684 if test `eval echo '${'$as_ac_var'}'` = yes; then
18685 cat >>confdefs.h <<_ACEOF
18686 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18688 SSHDLIBS="$SSHDLIBS -liaf"
18690 cat >>confdefs.h <<\_ACEOF
18691 #define HAVE_LIBIAF 1
18703 ### Configure cryptographic random number support
18705 # Check wheter OpenSSL seeds itself
18706 { echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
18707 echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6; }
18708 if test "$cross_compiling" = yes; then
18710 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
18711 echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
18712 # This is safe, since all recent OpenSSL versions will
18713 # complain at runtime if not seeded correctly.
18714 OPENSSL_SEEDS_ITSELF=yes
18718 cat >conftest.$ac_ext <<_ACEOF
18721 cat confdefs.h >>conftest.$ac_ext
18722 cat >>conftest.$ac_ext <<_ACEOF
18723 /* end confdefs.h. */
18725 #include <string.h>
18726 #include <openssl/rand.h>
18727 int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
18730 rm -f conftest$ac_exeext
18731 if { (ac_try="$ac_link"
18732 case "(($ac_try" in
18733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734 *) ac_try_echo=$ac_try;;
18736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18737 (eval "$ac_link") 2>&5
18739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18741 { (case "(($ac_try" in
18742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18743 *) ac_try_echo=$ac_try;;
18745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18746 (eval "$ac_try") 2>&5
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); }; }; then
18751 OPENSSL_SEEDS_ITSELF=yes
18752 { echo "$as_me:$LINENO: result: yes" >&5
18753 echo "${ECHO_T}yes" >&6; }
18756 echo "$as_me: program exited with status $ac_status" >&5
18757 echo "$as_me: failed program was:" >&5
18758 sed 's/^/| /' conftest.$ac_ext >&5
18760 ( exit $ac_status )
18762 { echo "$as_me:$LINENO: result: no" >&5
18763 echo "${ECHO_T}no" >&6; }
18764 # Default to use of the rand helper if OpenSSL doesn't
18766 USE_RAND_HELPER=yes
18769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18774 # Check for PAM libs
18777 # Check whether --with-pam was given.
18778 if test "${with_pam+set}" = set; then
18780 if test "x$withval" != "xno" ; then
18781 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
18782 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
18783 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
18784 echo "$as_me: error: PAM headers not found" >&2;}
18785 { (exit 1); exit 1; }; }
18790 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18791 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18792 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18793 echo $ECHO_N "(cached) $ECHO_C" >&6
18795 ac_check_lib_save_LIBS=$LIBS
18797 cat >conftest.$ac_ext <<_ACEOF
18800 cat confdefs.h >>conftest.$ac_ext
18801 cat >>conftest.$ac_ext <<_ACEOF
18802 /* end confdefs.h. */
18804 /* Override any GCC internal prototype to avoid an error.
18805 Use char because int might match the return type of a GCC
18806 builtin and then its argument prototype would still apply. */
18819 rm -f conftest.$ac_objext conftest$ac_exeext
18820 if { (ac_try="$ac_link"
18821 case "(($ac_try" in
18822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18823 *) ac_try_echo=$ac_try;;
18825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18826 (eval "$ac_link") 2>conftest.er1
18828 grep -v '^ *+' conftest.er1 >conftest.err
18830 cat conftest.err >&5
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); } && {
18833 test -z "$ac_c_werror_flag" ||
18834 test ! -s conftest.err
18835 } && test -s conftest$ac_exeext &&
18836 $as_test_x conftest$ac_exeext; then
18837 ac_cv_lib_dl_dlopen=yes
18839 echo "$as_me: failed program was:" >&5
18840 sed 's/^/| /' conftest.$ac_ext >&5
18842 ac_cv_lib_dl_dlopen=no
18845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18846 conftest$ac_exeext conftest.$ac_ext
18847 LIBS=$ac_check_lib_save_LIBS
18849 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18850 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18851 if test $ac_cv_lib_dl_dlopen = yes; then
18852 cat >>confdefs.h <<_ACEOF
18853 #define HAVE_LIBDL 1
18861 { echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
18862 echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; }
18863 if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
18864 echo $ECHO_N "(cached) $ECHO_C" >&6
18866 ac_check_lib_save_LIBS=$LIBS
18868 cat >conftest.$ac_ext <<_ACEOF
18871 cat confdefs.h >>conftest.$ac_ext
18872 cat >>conftest.$ac_ext <<_ACEOF
18873 /* end confdefs.h. */
18875 /* Override any GCC internal prototype to avoid an error.
18876 Use char because int might match the return type of a GCC
18877 builtin and then its argument prototype would still apply. */
18881 char pam_set_item ();
18885 return pam_set_item ();
18890 rm -f conftest.$ac_objext conftest$ac_exeext
18891 if { (ac_try="$ac_link"
18892 case "(($ac_try" in
18893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18894 *) ac_try_echo=$ac_try;;
18896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18897 (eval "$ac_link") 2>conftest.er1
18899 grep -v '^ *+' conftest.er1 >conftest.err
18901 cat conftest.err >&5
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); } && {
18904 test -z "$ac_c_werror_flag" ||
18905 test ! -s conftest.err
18906 } && test -s conftest$ac_exeext &&
18907 $as_test_x conftest$ac_exeext; then
18908 ac_cv_lib_pam_pam_set_item=yes
18910 echo "$as_me: failed program was:" >&5
18911 sed 's/^/| /' conftest.$ac_ext >&5
18913 ac_cv_lib_pam_pam_set_item=no
18916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18917 conftest$ac_exeext conftest.$ac_ext
18918 LIBS=$ac_check_lib_save_LIBS
18920 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
18921 echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; }
18922 if test $ac_cv_lib_pam_pam_set_item = yes; then
18923 cat >>confdefs.h <<_ACEOF
18924 #define HAVE_LIBPAM 1
18930 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
18931 echo "$as_me: error: *** libpam missing" >&2;}
18932 { (exit 1); exit 1; }; }
18936 for ac_func in pam_getenvlist
18938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18939 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18941 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18942 echo $ECHO_N "(cached) $ECHO_C" >&6
18944 cat >conftest.$ac_ext <<_ACEOF
18947 cat confdefs.h >>conftest.$ac_ext
18948 cat >>conftest.$ac_ext <<_ACEOF
18949 /* end confdefs.h. */
18950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18952 #define $ac_func innocuous_$ac_func
18954 /* System header to define __stub macros and hopefully few prototypes,
18955 which can conflict with char $ac_func (); below.
18956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18957 <limits.h> exists even on freestanding compilers. */
18960 # include <limits.h>
18962 # include <assert.h>
18967 /* Override any GCC internal prototype to avoid an error.
18968 Use char because int might match the return type of a GCC
18969 builtin and then its argument prototype would still apply. */
18974 /* The GNU C library defines this for functions which it implements
18975 to always fail with ENOSYS. Some functions are actually named
18976 something starting with __ and the normal name is an alias. */
18977 #if defined __stub_$ac_func || defined __stub___$ac_func
18984 return $ac_func ();
18989 rm -f conftest.$ac_objext conftest$ac_exeext
18990 if { (ac_try="$ac_link"
18991 case "(($ac_try" in
18992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18993 *) ac_try_echo=$ac_try;;
18995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18996 (eval "$ac_link") 2>conftest.er1
18998 grep -v '^ *+' conftest.er1 >conftest.err
19000 cat conftest.err >&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); } && {
19003 test -z "$ac_c_werror_flag" ||
19004 test ! -s conftest.err
19005 } && test -s conftest$ac_exeext &&
19006 $as_test_x conftest$ac_exeext; then
19007 eval "$as_ac_var=yes"
19009 echo "$as_me: failed program was:" >&5
19010 sed 's/^/| /' conftest.$ac_ext >&5
19012 eval "$as_ac_var=no"
19015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19016 conftest$ac_exeext conftest.$ac_ext
19018 ac_res=`eval echo '${'$as_ac_var'}'`
19019 { echo "$as_me:$LINENO: result: $ac_res" >&5
19020 echo "${ECHO_T}$ac_res" >&6; }
19021 if test `eval echo '${'$as_ac_var'}'` = yes; then
19022 cat >>confdefs.h <<_ACEOF
19023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19030 for ac_func in pam_putenv
19032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19033 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19035 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19036 echo $ECHO_N "(cached) $ECHO_C" >&6
19038 cat >conftest.$ac_ext <<_ACEOF
19041 cat confdefs.h >>conftest.$ac_ext
19042 cat >>conftest.$ac_ext <<_ACEOF
19043 /* end confdefs.h. */
19044 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19046 #define $ac_func innocuous_$ac_func
19048 /* System header to define __stub macros and hopefully few prototypes,
19049 which can conflict with char $ac_func (); below.
19050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19051 <limits.h> exists even on freestanding compilers. */
19054 # include <limits.h>
19056 # include <assert.h>
19061 /* Override any GCC internal prototype to avoid an error.
19062 Use char because int might match the return type of a GCC
19063 builtin and then its argument prototype would still apply. */
19068 /* The GNU C library defines this for functions which it implements
19069 to always fail with ENOSYS. Some functions are actually named
19070 something starting with __ and the normal name is an alias. */
19071 #if defined __stub_$ac_func || defined __stub___$ac_func
19078 return $ac_func ();
19083 rm -f conftest.$ac_objext conftest$ac_exeext
19084 if { (ac_try="$ac_link"
19085 case "(($ac_try" in
19086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19087 *) ac_try_echo=$ac_try;;
19089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19090 (eval "$ac_link") 2>conftest.er1
19092 grep -v '^ *+' conftest.er1 >conftest.err
19094 cat conftest.err >&5
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); } && {
19097 test -z "$ac_c_werror_flag" ||
19098 test ! -s conftest.err
19099 } && test -s conftest$ac_exeext &&
19100 $as_test_x conftest$ac_exeext; then
19101 eval "$as_ac_var=yes"
19103 echo "$as_me: failed program was:" >&5
19104 sed 's/^/| /' conftest.$ac_ext >&5
19106 eval "$as_ac_var=no"
19109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19110 conftest$ac_exeext conftest.$ac_ext
19112 ac_res=`eval echo '${'$as_ac_var'}'`
19113 { echo "$as_me:$LINENO: result: $ac_res" >&5
19114 echo "${ECHO_T}$ac_res" >&6; }
19115 if test `eval echo '${'$as_ac_var'}'` = yes; then
19116 cat >>confdefs.h <<_ACEOF
19117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19127 SSHDLIBS="$SSHDLIBS -lpam"
19129 cat >>confdefs.h <<\_ACEOF
19134 if test $ac_cv_lib_dl_dlopen = yes; then
19137 # libdl already in LIBS
19140 SSHDLIBS="$SSHDLIBS -ldl"
19150 # Check for older PAM
19151 if test "x$PAM_MSG" = "xyes" ; then
19152 # Check PAM strerror arguments (old PAM)
19153 { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
19154 echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; }
19155 cat >conftest.$ac_ext <<_ACEOF
19158 cat confdefs.h >>conftest.$ac_ext
19159 cat >>conftest.$ac_ext <<_ACEOF
19160 /* end confdefs.h. */
19162 #include <stdlib.h>
19163 #if defined(HAVE_SECURITY_PAM_APPL_H)
19164 #include <security/pam_appl.h>
19165 #elif defined (HAVE_PAM_PAM_APPL_H)
19166 #include <pam/pam_appl.h>
19172 (void)pam_strerror((pam_handle_t *)NULL, -1);
19177 rm -f conftest.$ac_objext
19178 if { (ac_try="$ac_compile"
19179 case "(($ac_try" in
19180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19181 *) ac_try_echo=$ac_try;;
19183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19184 (eval "$ac_compile") 2>conftest.er1
19186 grep -v '^ *+' conftest.er1 >conftest.err
19188 cat conftest.err >&5
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); } && {
19191 test -z "$ac_c_werror_flag" ||
19192 test ! -s conftest.err
19193 } && test -s conftest.$ac_objext; then
19194 { echo "$as_me:$LINENO: result: no" >&5
19195 echo "${ECHO_T}no" >&6; }
19197 echo "$as_me: failed program was:" >&5
19198 sed 's/^/| /' conftest.$ac_ext >&5
19202 cat >>confdefs.h <<\_ACEOF
19203 #define HAVE_OLD_PAM 1
19206 { echo "$as_me:$LINENO: result: yes" >&5
19207 echo "${ECHO_T}yes" >&6; }
19208 PAM_MSG="yes (old library)"
19213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19216 # Do we want to force the use of the rand helper?
19218 # Check whether --with-rand-helper was given.
19219 if test "${with_rand_helper+set}" = set; then
19220 withval=$with_rand_helper;
19221 if test "x$withval" = "xno" ; then
19222 # Force use of OpenSSL's internal RNG, even if
19223 # the previous test showed it to be unseeded.
19224 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
19225 { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
19226 echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
19227 OPENSSL_SEEDS_ITSELF=yes
19231 USE_RAND_HELPER=yes
19237 # Which randomness source do we use?
19238 if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then
19241 cat >>confdefs.h <<\_ACEOF
19242 #define OPENSSL_PRNG_ONLY 1
19245 RAND_MSG="OpenSSL internal ONLY"
19246 INSTALL_SSH_RAND_HELPER=""
19247 elif test ! -z "$USE_RAND_HELPER" ; then
19248 # install rand helper
19249 RAND_MSG="ssh-rand-helper"
19250 INSTALL_SSH_RAND_HELPER="yes"
19254 ### Configuration of ssh-rand-helper
19258 # Check whether --with-prngd-port was given.
19259 if test "${with_prngd_port+set}" = set; then
19260 withval=$with_prngd_port;
19268 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
19269 echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
19270 { (exit 1); exit 1; }; }
19273 if test ! -z "$withval" ; then
19274 PRNGD_PORT="$withval"
19276 cat >>confdefs.h <<_ACEOF
19277 #define PRNGD_PORT $PRNGD_PORT
19286 # PRNGD Unix domain socket
19288 # Check whether --with-prngd-socket was given.
19289 if test "${with_prngd_socket+set}" = set; then
19290 withval=$with_prngd_socket;
19293 withval="/var/run/egd-pool"
19301 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
19302 echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
19303 { (exit 1); exit 1; }; }
19307 if test ! -z "$withval" ; then
19308 if test ! -z "$PRNGD_PORT" ; then
19309 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
19310 echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
19311 { (exit 1); exit 1; }; }
19313 if test ! -r "$withval" ; then
19314 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
19315 echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
19317 PRNGD_SOCKET="$withval"
19319 cat >>confdefs.h <<_ACEOF
19320 #define PRNGD_SOCKET "$PRNGD_SOCKET"
19327 # Check for existing socket only if we don't have a random device already
19328 if test "$USE_RAND_HELPER" = yes ; then
19329 { echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
19330 echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6; }
19331 # Insert other locations here
19332 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
19333 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
19334 PRNGD_SOCKET="$sock"
19335 cat >>confdefs.h <<_ACEOF
19336 #define PRNGD_SOCKET "$PRNGD_SOCKET"
19342 if test ! -z "$PRNGD_SOCKET" ; then
19343 { echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
19344 echo "${ECHO_T}$PRNGD_SOCKET" >&6; }
19346 { echo "$as_me:$LINENO: result: not found" >&5
19347 echo "${ECHO_T}not found" >&6; }
19355 # Change default command timeout for hashing entropy source
19356 entropy_timeout=200
19358 # Check whether --with-entropy-timeout was given.
19359 if test "${with_entropy_timeout+set}" = set; then
19360 withval=$with_entropy_timeout;
19361 if test -n "$withval" && test "x$withval" != "xno" && \
19362 test "x${withval}" != "xyes"; then
19363 entropy_timeout=$withval
19370 cat >>confdefs.h <<_ACEOF
19371 #define ENTROPY_TIMEOUT_MSEC $entropy_timeout
19375 SSH_PRIVSEP_USER=sshd
19377 # Check whether --with-privsep-user was given.
19378 if test "${with_privsep_user+set}" = set; then
19379 withval=$with_privsep_user;
19380 if test -n "$withval" && test "x$withval" != "xno" && \
19381 test "x${withval}" != "xyes"; then
19382 SSH_PRIVSEP_USER=$withval
19389 cat >>confdefs.h <<_ACEOF
19390 #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
19395 # We do this little dance with the search path to insure
19396 # that programs that we select for use by installed programs
19397 # (which may be run by the super-user) come from trusted
19398 # locations before they come from the user's private area.
19399 # This should help avoid accidentally configuring some
19400 # random version of a program in someone's personal bin.
19404 test -h /bin 2> /dev/null && PATH=/usr/bin
19405 test -d /sbin && PATH=$PATH:/sbin
19406 test -d /usr/sbin && PATH=$PATH:/usr/sbin
19407 PATH=$PATH:/etc:$OPATH
19409 # These programs are used by the command hashing source to gather entropy
19411 # Extract the first word of "ls", so it can be a program name with args.
19412 set dummy ls; ac_word=$2
19413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19415 if test "${ac_cv_path_PROG_LS+set}" = set; then
19416 echo $ECHO_N "(cached) $ECHO_C" >&6
19420 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
19423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19424 for as_dir in $PATH
19427 test -z "$as_dir" && as_dir=.
19428 for ac_exec_ext in '' $ac_executable_extensions; do
19429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19430 ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
19431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19441 PROG_LS=$ac_cv_path_PROG_LS
19442 if test -n "$PROG_LS"; then
19443 { echo "$as_me:$LINENO: result: $PROG_LS" >&5
19444 echo "${ECHO_T}$PROG_LS" >&6; }
19446 { echo "$as_me:$LINENO: result: no" >&5
19447 echo "${ECHO_T}no" >&6; }
19451 if test -z "$PROG_LS" ; then
19457 # Extract the first word of "netstat", so it can be a program name with args.
19458 set dummy netstat; ac_word=$2
19459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19461 if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
19462 echo $ECHO_N "(cached) $ECHO_C" >&6
19464 case $PROG_NETSTAT in
19466 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
19469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19470 for as_dir in $PATH
19473 test -z "$as_dir" && as_dir=.
19474 for ac_exec_ext in '' $ac_executable_extensions; do
19475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19476 ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
19477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19487 PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
19488 if test -n "$PROG_NETSTAT"; then
19489 { echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5
19490 echo "${ECHO_T}$PROG_NETSTAT" >&6; }
19492 { echo "$as_me:$LINENO: result: no" >&5
19493 echo "${ECHO_T}no" >&6; }
19497 if test -z "$PROG_NETSTAT" ; then
19498 PROG_NETSTAT="undef"
19503 # Extract the first word of "arp", so it can be a program name with args.
19504 set dummy arp; ac_word=$2
19505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19507 if test "${ac_cv_path_PROG_ARP+set}" = set; then
19508 echo $ECHO_N "(cached) $ECHO_C" >&6
19512 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
19515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19516 for as_dir in $PATH
19519 test -z "$as_dir" && as_dir=.
19520 for ac_exec_ext in '' $ac_executable_extensions; do
19521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19522 ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
19523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19533 PROG_ARP=$ac_cv_path_PROG_ARP
19534 if test -n "$PROG_ARP"; then
19535 { echo "$as_me:$LINENO: result: $PROG_ARP" >&5
19536 echo "${ECHO_T}$PROG_ARP" >&6; }
19538 { echo "$as_me:$LINENO: result: no" >&5
19539 echo "${ECHO_T}no" >&6; }
19543 if test -z "$PROG_ARP" ; then
19549 # Extract the first word of "ifconfig", so it can be a program name with args.
19550 set dummy ifconfig; ac_word=$2
19551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19553 if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
19554 echo $ECHO_N "(cached) $ECHO_C" >&6
19556 case $PROG_IFCONFIG in
19558 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
19561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19562 for as_dir in $PATH
19565 test -z "$as_dir" && as_dir=.
19566 for ac_exec_ext in '' $ac_executable_extensions; do
19567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19568 ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
19569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19579 PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
19580 if test -n "$PROG_IFCONFIG"; then
19581 { echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5
19582 echo "${ECHO_T}$PROG_IFCONFIG" >&6; }
19584 { echo "$as_me:$LINENO: result: no" >&5
19585 echo "${ECHO_T}no" >&6; }
19589 if test -z "$PROG_IFCONFIG" ; then
19590 PROG_IFCONFIG="undef"
19595 # Extract the first word of "jstat", so it can be a program name with args.
19596 set dummy jstat; ac_word=$2
19597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19599 if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
19600 echo $ECHO_N "(cached) $ECHO_C" >&6
19602 case $PROG_JSTAT in
19604 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
19607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19608 for as_dir in $PATH
19611 test -z "$as_dir" && as_dir=.
19612 for ac_exec_ext in '' $ac_executable_extensions; do
19613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19614 ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
19615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19625 PROG_JSTAT=$ac_cv_path_PROG_JSTAT
19626 if test -n "$PROG_JSTAT"; then
19627 { echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5
19628 echo "${ECHO_T}$PROG_JSTAT" >&6; }
19630 { echo "$as_me:$LINENO: result: no" >&5
19631 echo "${ECHO_T}no" >&6; }
19635 if test -z "$PROG_JSTAT" ; then
19641 # Extract the first word of "ps", so it can be a program name with args.
19642 set dummy ps; ac_word=$2
19643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19645 if test "${ac_cv_path_PROG_PS+set}" = set; then
19646 echo $ECHO_N "(cached) $ECHO_C" >&6
19650 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
19653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19654 for as_dir in $PATH
19657 test -z "$as_dir" && as_dir=.
19658 for ac_exec_ext in '' $ac_executable_extensions; do
19659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19660 ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
19661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19671 PROG_PS=$ac_cv_path_PROG_PS
19672 if test -n "$PROG_PS"; then
19673 { echo "$as_me:$LINENO: result: $PROG_PS" >&5
19674 echo "${ECHO_T}$PROG_PS" >&6; }
19676 { echo "$as_me:$LINENO: result: no" >&5
19677 echo "${ECHO_T}no" >&6; }
19681 if test -z "$PROG_PS" ; then
19687 # Extract the first word of "sar", so it can be a program name with args.
19688 set dummy sar; ac_word=$2
19689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19691 if test "${ac_cv_path_PROG_SAR+set}" = set; then
19692 echo $ECHO_N "(cached) $ECHO_C" >&6
19696 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
19699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19700 for as_dir in $PATH
19703 test -z "$as_dir" && as_dir=.
19704 for ac_exec_ext in '' $ac_executable_extensions; do
19705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19706 ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
19707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19717 PROG_SAR=$ac_cv_path_PROG_SAR
19718 if test -n "$PROG_SAR"; then
19719 { echo "$as_me:$LINENO: result: $PROG_SAR" >&5
19720 echo "${ECHO_T}$PROG_SAR" >&6; }
19722 { echo "$as_me:$LINENO: result: no" >&5
19723 echo "${ECHO_T}no" >&6; }
19727 if test -z "$PROG_SAR" ; then
19733 # Extract the first word of "w", so it can be a program name with args.
19734 set dummy w; ac_word=$2
19735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19737 if test "${ac_cv_path_PROG_W+set}" = set; then
19738 echo $ECHO_N "(cached) $ECHO_C" >&6
19742 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
19745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19746 for as_dir in $PATH
19749 test -z "$as_dir" && as_dir=.
19750 for ac_exec_ext in '' $ac_executable_extensions; do
19751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19752 ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
19753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19763 PROG_W=$ac_cv_path_PROG_W
19764 if test -n "$PROG_W"; then
19765 { echo "$as_me:$LINENO: result: $PROG_W" >&5
19766 echo "${ECHO_T}$PROG_W" >&6; }
19768 { echo "$as_me:$LINENO: result: no" >&5
19769 echo "${ECHO_T}no" >&6; }
19773 if test -z "$PROG_W" ; then
19779 # Extract the first word of "who", so it can be a program name with args.
19780 set dummy who; ac_word=$2
19781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19783 if test "${ac_cv_path_PROG_WHO+set}" = set; then
19784 echo $ECHO_N "(cached) $ECHO_C" >&6
19788 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
19791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19792 for as_dir in $PATH
19795 test -z "$as_dir" && as_dir=.
19796 for ac_exec_ext in '' $ac_executable_extensions; do
19797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19798 ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
19799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19809 PROG_WHO=$ac_cv_path_PROG_WHO
19810 if test -n "$PROG_WHO"; then
19811 { echo "$as_me:$LINENO: result: $PROG_WHO" >&5
19812 echo "${ECHO_T}$PROG_WHO" >&6; }
19814 { echo "$as_me:$LINENO: result: no" >&5
19815 echo "${ECHO_T}no" >&6; }
19819 if test -z "$PROG_WHO" ; then
19825 # Extract the first word of "last", so it can be a program name with args.
19826 set dummy last; ac_word=$2
19827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19829 if test "${ac_cv_path_PROG_LAST+set}" = set; then
19830 echo $ECHO_N "(cached) $ECHO_C" >&6
19834 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
19837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19838 for as_dir in $PATH
19841 test -z "$as_dir" && as_dir=.
19842 for ac_exec_ext in '' $ac_executable_extensions; do
19843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19844 ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
19845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19855 PROG_LAST=$ac_cv_path_PROG_LAST
19856 if test -n "$PROG_LAST"; then
19857 { echo "$as_me:$LINENO: result: $PROG_LAST" >&5
19858 echo "${ECHO_T}$PROG_LAST" >&6; }
19860 { echo "$as_me:$LINENO: result: no" >&5
19861 echo "${ECHO_T}no" >&6; }
19865 if test -z "$PROG_LAST" ; then
19871 # Extract the first word of "lastlog", so it can be a program name with args.
19872 set dummy lastlog; ac_word=$2
19873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19875 if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
19876 echo $ECHO_N "(cached) $ECHO_C" >&6
19878 case $PROG_LASTLOG in
19880 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
19883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19884 for as_dir in $PATH
19887 test -z "$as_dir" && as_dir=.
19888 for ac_exec_ext in '' $ac_executable_extensions; do
19889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19890 ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
19891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19901 PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
19902 if test -n "$PROG_LASTLOG"; then
19903 { echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5
19904 echo "${ECHO_T}$PROG_LASTLOG" >&6; }
19906 { echo "$as_me:$LINENO: result: no" >&5
19907 echo "${ECHO_T}no" >&6; }
19911 if test -z "$PROG_LASTLOG" ; then
19912 PROG_LASTLOG="undef"
19917 # Extract the first word of "df", so it can be a program name with args.
19918 set dummy df; ac_word=$2
19919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19921 if test "${ac_cv_path_PROG_DF+set}" = set; then
19922 echo $ECHO_N "(cached) $ECHO_C" >&6
19926 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
19929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19930 for as_dir in $PATH
19933 test -z "$as_dir" && as_dir=.
19934 for ac_exec_ext in '' $ac_executable_extensions; do
19935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19936 ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
19937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19947 PROG_DF=$ac_cv_path_PROG_DF
19948 if test -n "$PROG_DF"; then
19949 { echo "$as_me:$LINENO: result: $PROG_DF" >&5
19950 echo "${ECHO_T}$PROG_DF" >&6; }
19952 { echo "$as_me:$LINENO: result: no" >&5
19953 echo "${ECHO_T}no" >&6; }
19957 if test -z "$PROG_DF" ; then
19963 # Extract the first word of "vmstat", so it can be a program name with args.
19964 set dummy vmstat; ac_word=$2
19965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19967 if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
19968 echo $ECHO_N "(cached) $ECHO_C" >&6
19970 case $PROG_VMSTAT in
19972 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
19975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19976 for as_dir in $PATH
19979 test -z "$as_dir" && as_dir=.
19980 for ac_exec_ext in '' $ac_executable_extensions; do
19981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19982 ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
19983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19993 PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
19994 if test -n "$PROG_VMSTAT"; then
19995 { echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5
19996 echo "${ECHO_T}$PROG_VMSTAT" >&6; }
19998 { echo "$as_me:$LINENO: result: no" >&5
19999 echo "${ECHO_T}no" >&6; }
20003 if test -z "$PROG_VMSTAT" ; then
20004 PROG_VMSTAT="undef"
20009 # Extract the first word of "uptime", so it can be a program name with args.
20010 set dummy uptime; ac_word=$2
20011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20013 if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
20014 echo $ECHO_N "(cached) $ECHO_C" >&6
20016 case $PROG_UPTIME in
20018 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
20021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20022 for as_dir in $PATH
20025 test -z "$as_dir" && as_dir=.
20026 for ac_exec_ext in '' $ac_executable_extensions; do
20027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20028 ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
20029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20039 PROG_UPTIME=$ac_cv_path_PROG_UPTIME
20040 if test -n "$PROG_UPTIME"; then
20041 { echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5
20042 echo "${ECHO_T}$PROG_UPTIME" >&6; }
20044 { echo "$as_me:$LINENO: result: no" >&5
20045 echo "${ECHO_T}no" >&6; }
20049 if test -z "$PROG_UPTIME" ; then
20050 PROG_UPTIME="undef"
20055 # Extract the first word of "ipcs", so it can be a program name with args.
20056 set dummy ipcs; ac_word=$2
20057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20059 if test "${ac_cv_path_PROG_IPCS+set}" = set; then
20060 echo $ECHO_N "(cached) $ECHO_C" >&6
20064 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
20067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20068 for as_dir in $PATH
20071 test -z "$as_dir" && as_dir=.
20072 for ac_exec_ext in '' $ac_executable_extensions; do
20073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20074 ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
20075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20085 PROG_IPCS=$ac_cv_path_PROG_IPCS
20086 if test -n "$PROG_IPCS"; then
20087 { echo "$as_me:$LINENO: result: $PROG_IPCS" >&5
20088 echo "${ECHO_T}$PROG_IPCS" >&6; }
20090 { echo "$as_me:$LINENO: result: no" >&5
20091 echo "${ECHO_T}no" >&6; }
20095 if test -z "$PROG_IPCS" ; then
20101 # Extract the first word of "tail", so it can be a program name with args.
20102 set dummy tail; ac_word=$2
20103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20105 if test "${ac_cv_path_PROG_TAIL+set}" = set; then
20106 echo $ECHO_N "(cached) $ECHO_C" >&6
20110 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
20113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20114 for as_dir in $PATH
20117 test -z "$as_dir" && as_dir=.
20118 for ac_exec_ext in '' $ac_executable_extensions; do
20119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20120 ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
20121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20131 PROG_TAIL=$ac_cv_path_PROG_TAIL
20132 if test -n "$PROG_TAIL"; then
20133 { echo "$as_me:$LINENO: result: $PROG_TAIL" >&5
20134 echo "${ECHO_T}$PROG_TAIL" >&6; }
20136 { echo "$as_me:$LINENO: result: no" >&5
20137 echo "${ECHO_T}no" >&6; }
20141 if test -z "$PROG_TAIL" ; then
20149 # Where does ssh-rand-helper get its randomness from?
20150 INSTALL_SSH_PRNG_CMDS=""
20151 if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
20152 if test ! -z "$PRNGD_PORT" ; then
20153 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
20154 elif test ! -z "$PRNGD_SOCKET" ; then
20155 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
20157 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
20158 RAND_HELPER_CMDHASH=yes
20159 INSTALL_SSH_PRNG_CMDS="yes"
20165 # Cheap hack to ensure NEWS-OS libraries are arranged right.
20166 if test ! -z "$SONY" ; then
20167 LIBS="$LIBS -liberty";
20170 # Check for long long datatypes
20171 { echo "$as_me:$LINENO: checking for long long" >&5
20172 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
20173 if test "${ac_cv_type_long_long+set}" = set; then
20174 echo $ECHO_N "(cached) $ECHO_C" >&6
20176 cat >conftest.$ac_ext <<_ACEOF
20179 cat confdefs.h >>conftest.$ac_ext
20180 cat >>conftest.$ac_ext <<_ACEOF
20181 /* end confdefs.h. */
20182 $ac_includes_default
20183 typedef long long ac__type_new_;
20187 if ((ac__type_new_ *) 0)
20189 if (sizeof (ac__type_new_))
20195 rm -f conftest.$ac_objext
20196 if { (ac_try="$ac_compile"
20197 case "(($ac_try" in
20198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20199 *) ac_try_echo=$ac_try;;
20201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20202 (eval "$ac_compile") 2>conftest.er1
20204 grep -v '^ *+' conftest.er1 >conftest.err
20206 cat conftest.err >&5
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); } && {
20209 test -z "$ac_c_werror_flag" ||
20210 test ! -s conftest.err
20211 } && test -s conftest.$ac_objext; then
20212 ac_cv_type_long_long=yes
20214 echo "$as_me: failed program was:" >&5
20215 sed 's/^/| /' conftest.$ac_ext >&5
20217 ac_cv_type_long_long=no
20220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20222 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20223 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
20224 if test $ac_cv_type_long_long = yes; then
20226 cat >>confdefs.h <<_ACEOF
20227 #define HAVE_LONG_LONG 1
20232 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20233 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20234 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20235 echo $ECHO_N "(cached) $ECHO_C" >&6
20237 cat >conftest.$ac_ext <<_ACEOF
20240 cat confdefs.h >>conftest.$ac_ext
20241 cat >>conftest.$ac_ext <<_ACEOF
20242 /* end confdefs.h. */
20243 $ac_includes_default
20244 typedef unsigned long long ac__type_new_;
20248 if ((ac__type_new_ *) 0)
20250 if (sizeof (ac__type_new_))
20256 rm -f conftest.$ac_objext
20257 if { (ac_try="$ac_compile"
20258 case "(($ac_try" in
20259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20260 *) ac_try_echo=$ac_try;;
20262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20263 (eval "$ac_compile") 2>conftest.er1
20265 grep -v '^ *+' conftest.er1 >conftest.err
20267 cat conftest.err >&5
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); } && {
20270 test -z "$ac_c_werror_flag" ||
20271 test ! -s conftest.err
20272 } && test -s conftest.$ac_objext; then
20273 ac_cv_type_unsigned_long_long=yes
20275 echo "$as_me: failed program was:" >&5
20276 sed 's/^/| /' conftest.$ac_ext >&5
20278 ac_cv_type_unsigned_long_long=no
20281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20283 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20284 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20285 if test $ac_cv_type_unsigned_long_long = yes; then
20287 cat >>confdefs.h <<_ACEOF
20288 #define HAVE_UNSIGNED_LONG_LONG 1
20293 { echo "$as_me:$LINENO: checking for long double" >&5
20294 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
20295 if test "${ac_cv_type_long_double+set}" = set; then
20296 echo $ECHO_N "(cached) $ECHO_C" >&6
20298 cat >conftest.$ac_ext <<_ACEOF
20301 cat confdefs.h >>conftest.$ac_ext
20302 cat >>conftest.$ac_ext <<_ACEOF
20303 /* end confdefs.h. */
20304 $ac_includes_default
20305 typedef long double ac__type_new_;
20309 if ((ac__type_new_ *) 0)
20311 if (sizeof (ac__type_new_))
20317 rm -f conftest.$ac_objext
20318 if { (ac_try="$ac_compile"
20319 case "(($ac_try" in
20320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20321 *) ac_try_echo=$ac_try;;
20323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20324 (eval "$ac_compile") 2>conftest.er1
20326 grep -v '^ *+' conftest.er1 >conftest.err
20328 cat conftest.err >&5
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); } && {
20331 test -z "$ac_c_werror_flag" ||
20332 test ! -s conftest.err
20333 } && test -s conftest.$ac_objext; then
20334 ac_cv_type_long_double=yes
20336 echo "$as_me: failed program was:" >&5
20337 sed 's/^/| /' conftest.$ac_ext >&5
20339 ac_cv_type_long_double=no
20342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20344 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
20345 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
20346 if test $ac_cv_type_long_double = yes; then
20348 cat >>confdefs.h <<_ACEOF
20349 #define HAVE_LONG_DOUBLE 1
20356 # Check datatype sizes
20357 { echo "$as_me:$LINENO: checking for char" >&5
20358 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
20359 if test "${ac_cv_type_char+set}" = set; then
20360 echo $ECHO_N "(cached) $ECHO_C" >&6
20362 cat >conftest.$ac_ext <<_ACEOF
20365 cat confdefs.h >>conftest.$ac_ext
20366 cat >>conftest.$ac_ext <<_ACEOF
20367 /* end confdefs.h. */
20368 $ac_includes_default
20369 typedef char ac__type_new_;
20373 if ((ac__type_new_ *) 0)
20375 if (sizeof (ac__type_new_))
20381 rm -f conftest.$ac_objext
20382 if { (ac_try="$ac_compile"
20383 case "(($ac_try" in
20384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20385 *) ac_try_echo=$ac_try;;
20387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20388 (eval "$ac_compile") 2>conftest.er1
20390 grep -v '^ *+' conftest.er1 >conftest.err
20392 cat conftest.err >&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); } && {
20395 test -z "$ac_c_werror_flag" ||
20396 test ! -s conftest.err
20397 } && test -s conftest.$ac_objext; then
20398 ac_cv_type_char=yes
20400 echo "$as_me: failed program was:" >&5
20401 sed 's/^/| /' conftest.$ac_ext >&5
20406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20408 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
20409 echo "${ECHO_T}$ac_cv_type_char" >&6; }
20411 # The cast to long int works around a bug in the HP C Compiler
20412 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20413 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20414 # This bug is HP SR number 8606223364.
20415 { echo "$as_me:$LINENO: checking size of char" >&5
20416 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
20417 if test "${ac_cv_sizeof_char+set}" = set; then
20418 echo $ECHO_N "(cached) $ECHO_C" >&6
20420 if test "$cross_compiling" = yes; then
20421 # Depending upon the size, compute the lo and hi bounds.
20422 cat >conftest.$ac_ext <<_ACEOF
20425 cat confdefs.h >>conftest.$ac_ext
20426 cat >>conftest.$ac_ext <<_ACEOF
20427 /* end confdefs.h. */
20428 $ac_includes_default
20429 typedef char ac__type_sizeof_;
20433 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20440 rm -f conftest.$ac_objext
20441 if { (ac_try="$ac_compile"
20442 case "(($ac_try" in
20443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20444 *) ac_try_echo=$ac_try;;
20446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20447 (eval "$ac_compile") 2>conftest.er1
20449 grep -v '^ *+' conftest.er1 >conftest.err
20451 cat conftest.err >&5
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); } && {
20454 test -z "$ac_c_werror_flag" ||
20455 test ! -s conftest.err
20456 } && test -s conftest.$ac_objext; then
20459 cat >conftest.$ac_ext <<_ACEOF
20462 cat confdefs.h >>conftest.$ac_ext
20463 cat >>conftest.$ac_ext <<_ACEOF
20464 /* end confdefs.h. */
20465 $ac_includes_default
20466 typedef char ac__type_sizeof_;
20470 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20477 rm -f conftest.$ac_objext
20478 if { (ac_try="$ac_compile"
20479 case "(($ac_try" in
20480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20481 *) ac_try_echo=$ac_try;;
20483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20484 (eval "$ac_compile") 2>conftest.er1
20486 grep -v '^ *+' conftest.er1 >conftest.err
20488 cat conftest.err >&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); } && {
20491 test -z "$ac_c_werror_flag" ||
20492 test ! -s conftest.err
20493 } && test -s conftest.$ac_objext; then
20494 ac_hi=$ac_mid; break
20496 echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.$ac_ext >&5
20499 ac_lo=`expr $ac_mid + 1`
20500 if test $ac_lo -le $ac_mid; then
20504 ac_mid=`expr 2 '*' $ac_mid + 1`
20507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20510 echo "$as_me: failed program was:" >&5
20511 sed 's/^/| /' conftest.$ac_ext >&5
20513 cat >conftest.$ac_ext <<_ACEOF
20516 cat confdefs.h >>conftest.$ac_ext
20517 cat >>conftest.$ac_ext <<_ACEOF
20518 /* end confdefs.h. */
20519 $ac_includes_default
20520 typedef char ac__type_sizeof_;
20524 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20531 rm -f conftest.$ac_objext
20532 if { (ac_try="$ac_compile"
20533 case "(($ac_try" in
20534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20535 *) ac_try_echo=$ac_try;;
20537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20538 (eval "$ac_compile") 2>conftest.er1
20540 grep -v '^ *+' conftest.er1 >conftest.err
20542 cat conftest.err >&5
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); } && {
20545 test -z "$ac_c_werror_flag" ||
20546 test ! -s conftest.err
20547 } && test -s conftest.$ac_objext; then
20550 cat >conftest.$ac_ext <<_ACEOF
20553 cat confdefs.h >>conftest.$ac_ext
20554 cat >>conftest.$ac_ext <<_ACEOF
20555 /* end confdefs.h. */
20556 $ac_includes_default
20557 typedef char ac__type_sizeof_;
20561 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20568 rm -f conftest.$ac_objext
20569 if { (ac_try="$ac_compile"
20570 case "(($ac_try" in
20571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572 *) ac_try_echo=$ac_try;;
20574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20575 (eval "$ac_compile") 2>conftest.er1
20577 grep -v '^ *+' conftest.er1 >conftest.err
20579 cat conftest.err >&5
20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); } && {
20582 test -z "$ac_c_werror_flag" ||
20583 test ! -s conftest.err
20584 } && test -s conftest.$ac_objext; then
20585 ac_lo=$ac_mid; break
20587 echo "$as_me: failed program was:" >&5
20588 sed 's/^/| /' conftest.$ac_ext >&5
20590 ac_hi=`expr '(' $ac_mid ')' - 1`
20591 if test $ac_mid -le $ac_hi; then
20595 ac_mid=`expr 2 '*' $ac_mid`
20598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20601 echo "$as_me: failed program was:" >&5
20602 sed 's/^/| /' conftest.$ac_ext >&5
20607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20611 # Binary search between lo and hi bounds.
20612 while test "x$ac_lo" != "x$ac_hi"; do
20613 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20614 cat >conftest.$ac_ext <<_ACEOF
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h. */
20620 $ac_includes_default
20621 typedef char ac__type_sizeof_;
20625 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20632 rm -f conftest.$ac_objext
20633 if { (ac_try="$ac_compile"
20634 case "(($ac_try" in
20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636 *) ac_try_echo=$ac_try;;
20638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639 (eval "$ac_compile") 2>conftest.er1
20641 grep -v '^ *+' conftest.er1 >conftest.err
20643 cat conftest.err >&5
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); } && {
20646 test -z "$ac_c_werror_flag" ||
20647 test ! -s conftest.err
20648 } && test -s conftest.$ac_objext; then
20651 echo "$as_me: failed program was:" >&5
20652 sed 's/^/| /' conftest.$ac_ext >&5
20654 ac_lo=`expr '(' $ac_mid ')' + 1`
20657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20660 ?*) ac_cv_sizeof_char=$ac_lo;;
20661 '') if test "$ac_cv_type_char" = yes; then
20662 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
20663 See \`config.log' for more details." >&5
20664 echo "$as_me: error: cannot compute sizeof (char)
20665 See \`config.log' for more details." >&2;}
20666 { (exit 77); exit 77; }; }
20668 ac_cv_sizeof_char=0
20672 cat >conftest.$ac_ext <<_ACEOF
20675 cat confdefs.h >>conftest.$ac_ext
20676 cat >>conftest.$ac_ext <<_ACEOF
20677 /* end confdefs.h. */
20678 $ac_includes_default
20679 typedef char ac__type_sizeof_;
20680 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20681 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20683 #include <stdlib.h>
20688 FILE *f = fopen ("conftest.val", "w");
20691 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20693 long int i = longval ();
20694 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20696 fprintf (f, "%ld\n", i);
20700 unsigned long int i = ulongval ();
20701 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20703 fprintf (f, "%lu\n", i);
20705 return ferror (f) || fclose (f) != 0;
20711 rm -f conftest$ac_exeext
20712 if { (ac_try="$ac_link"
20713 case "(($ac_try" in
20714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20715 *) ac_try_echo=$ac_try;;
20717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20718 (eval "$ac_link") 2>&5
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20722 { (case "(($ac_try" in
20723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20724 *) ac_try_echo=$ac_try;;
20726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20727 (eval "$ac_try") 2>&5
20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730 (exit $ac_status); }; }; then
20731 ac_cv_sizeof_char=`cat conftest.val`
20733 echo "$as_me: program exited with status $ac_status" >&5
20734 echo "$as_me: failed program was:" >&5
20735 sed 's/^/| /' conftest.$ac_ext >&5
20737 ( exit $ac_status )
20738 if test "$ac_cv_type_char" = yes; then
20739 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
20740 See \`config.log' for more details." >&5
20741 echo "$as_me: error: cannot compute sizeof (char)
20742 See \`config.log' for more details." >&2;}
20743 { (exit 77); exit 77; }; }
20745 ac_cv_sizeof_char=0
20748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20752 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
20753 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
20757 cat >>confdefs.h <<_ACEOF
20758 #define SIZEOF_CHAR $ac_cv_sizeof_char
20762 { echo "$as_me:$LINENO: checking for short int" >&5
20763 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
20764 if test "${ac_cv_type_short_int+set}" = set; then
20765 echo $ECHO_N "(cached) $ECHO_C" >&6
20767 cat >conftest.$ac_ext <<_ACEOF
20770 cat confdefs.h >>conftest.$ac_ext
20771 cat >>conftest.$ac_ext <<_ACEOF
20772 /* end confdefs.h. */
20773 $ac_includes_default
20774 typedef short int ac__type_new_;
20778 if ((ac__type_new_ *) 0)
20780 if (sizeof (ac__type_new_))
20786 rm -f conftest.$ac_objext
20787 if { (ac_try="$ac_compile"
20788 case "(($ac_try" in
20789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20790 *) ac_try_echo=$ac_try;;
20792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20793 (eval "$ac_compile") 2>conftest.er1
20795 grep -v '^ *+' conftest.er1 >conftest.err
20797 cat conftest.err >&5
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); } && {
20800 test -z "$ac_c_werror_flag" ||
20801 test ! -s conftest.err
20802 } && test -s conftest.$ac_objext; then
20803 ac_cv_type_short_int=yes
20805 echo "$as_me: failed program was:" >&5
20806 sed 's/^/| /' conftest.$ac_ext >&5
20808 ac_cv_type_short_int=no
20811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20813 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
20814 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
20816 # The cast to long int works around a bug in the HP C Compiler
20817 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20818 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20819 # This bug is HP SR number 8606223364.
20820 { echo "$as_me:$LINENO: checking size of short int" >&5
20821 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
20822 if test "${ac_cv_sizeof_short_int+set}" = set; then
20823 echo $ECHO_N "(cached) $ECHO_C" >&6
20825 if test "$cross_compiling" = yes; then
20826 # Depending upon the size, compute the lo and hi bounds.
20827 cat >conftest.$ac_ext <<_ACEOF
20830 cat confdefs.h >>conftest.$ac_ext
20831 cat >>conftest.$ac_ext <<_ACEOF
20832 /* end confdefs.h. */
20833 $ac_includes_default
20834 typedef short int ac__type_sizeof_;
20838 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20845 rm -f conftest.$ac_objext
20846 if { (ac_try="$ac_compile"
20847 case "(($ac_try" in
20848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20849 *) ac_try_echo=$ac_try;;
20851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20852 (eval "$ac_compile") 2>conftest.er1
20854 grep -v '^ *+' conftest.er1 >conftest.err
20856 cat conftest.err >&5
20857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858 (exit $ac_status); } && {
20859 test -z "$ac_c_werror_flag" ||
20860 test ! -s conftest.err
20861 } && test -s conftest.$ac_objext; then
20864 cat >conftest.$ac_ext <<_ACEOF
20867 cat confdefs.h >>conftest.$ac_ext
20868 cat >>conftest.$ac_ext <<_ACEOF
20869 /* end confdefs.h. */
20870 $ac_includes_default
20871 typedef short int ac__type_sizeof_;
20875 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20882 rm -f conftest.$ac_objext
20883 if { (ac_try="$ac_compile"
20884 case "(($ac_try" in
20885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20886 *) ac_try_echo=$ac_try;;
20888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20889 (eval "$ac_compile") 2>conftest.er1
20891 grep -v '^ *+' conftest.er1 >conftest.err
20893 cat conftest.err >&5
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); } && {
20896 test -z "$ac_c_werror_flag" ||
20897 test ! -s conftest.err
20898 } && test -s conftest.$ac_objext; then
20899 ac_hi=$ac_mid; break
20901 echo "$as_me: failed program was:" >&5
20902 sed 's/^/| /' conftest.$ac_ext >&5
20904 ac_lo=`expr $ac_mid + 1`
20905 if test $ac_lo -le $ac_mid; then
20909 ac_mid=`expr 2 '*' $ac_mid + 1`
20912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20915 echo "$as_me: failed program was:" >&5
20916 sed 's/^/| /' conftest.$ac_ext >&5
20918 cat >conftest.$ac_ext <<_ACEOF
20921 cat confdefs.h >>conftest.$ac_ext
20922 cat >>conftest.$ac_ext <<_ACEOF
20923 /* end confdefs.h. */
20924 $ac_includes_default
20925 typedef short int ac__type_sizeof_;
20929 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20936 rm -f conftest.$ac_objext
20937 if { (ac_try="$ac_compile"
20938 case "(($ac_try" in
20939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20940 *) ac_try_echo=$ac_try;;
20942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20943 (eval "$ac_compile") 2>conftest.er1
20945 grep -v '^ *+' conftest.er1 >conftest.err
20947 cat conftest.err >&5
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); } && {
20950 test -z "$ac_c_werror_flag" ||
20951 test ! -s conftest.err
20952 } && test -s conftest.$ac_objext; then
20955 cat >conftest.$ac_ext <<_ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h. */
20961 $ac_includes_default
20962 typedef short int ac__type_sizeof_;
20966 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20973 rm -f conftest.$ac_objext
20974 if { (ac_try="$ac_compile"
20975 case "(($ac_try" in
20976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20977 *) ac_try_echo=$ac_try;;
20979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20980 (eval "$ac_compile") 2>conftest.er1
20982 grep -v '^ *+' conftest.er1 >conftest.err
20984 cat conftest.err >&5
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); } && {
20987 test -z "$ac_c_werror_flag" ||
20988 test ! -s conftest.err
20989 } && test -s conftest.$ac_objext; then
20990 ac_lo=$ac_mid; break
20992 echo "$as_me: failed program was:" >&5
20993 sed 's/^/| /' conftest.$ac_ext >&5
20995 ac_hi=`expr '(' $ac_mid ')' - 1`
20996 if test $ac_mid -le $ac_hi; then
21000 ac_mid=`expr 2 '*' $ac_mid`
21003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21006 echo "$as_me: failed program was:" >&5
21007 sed 's/^/| /' conftest.$ac_ext >&5
21012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21016 # Binary search between lo and hi bounds.
21017 while test "x$ac_lo" != "x$ac_hi"; do
21018 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21019 cat >conftest.$ac_ext <<_ACEOF
21022 cat confdefs.h >>conftest.$ac_ext
21023 cat >>conftest.$ac_ext <<_ACEOF
21024 /* end confdefs.h. */
21025 $ac_includes_default
21026 typedef short int ac__type_sizeof_;
21030 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21037 rm -f conftest.$ac_objext
21038 if { (ac_try="$ac_compile"
21039 case "(($ac_try" in
21040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21041 *) ac_try_echo=$ac_try;;
21043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21044 (eval "$ac_compile") 2>conftest.er1
21046 grep -v '^ *+' conftest.er1 >conftest.err
21048 cat conftest.err >&5
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); } && {
21051 test -z "$ac_c_werror_flag" ||
21052 test ! -s conftest.err
21053 } && test -s conftest.$ac_objext; then
21056 echo "$as_me: failed program was:" >&5
21057 sed 's/^/| /' conftest.$ac_ext >&5
21059 ac_lo=`expr '(' $ac_mid ')' + 1`
21062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21065 ?*) ac_cv_sizeof_short_int=$ac_lo;;
21066 '') if test "$ac_cv_type_short_int" = yes; then
21067 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
21068 See \`config.log' for more details." >&5
21069 echo "$as_me: error: cannot compute sizeof (short int)
21070 See \`config.log' for more details." >&2;}
21071 { (exit 77); exit 77; }; }
21073 ac_cv_sizeof_short_int=0
21077 cat >conftest.$ac_ext <<_ACEOF
21080 cat confdefs.h >>conftest.$ac_ext
21081 cat >>conftest.$ac_ext <<_ACEOF
21082 /* end confdefs.h. */
21083 $ac_includes_default
21084 typedef short int ac__type_sizeof_;
21085 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21086 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21088 #include <stdlib.h>
21093 FILE *f = fopen ("conftest.val", "w");
21096 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21098 long int i = longval ();
21099 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21101 fprintf (f, "%ld\n", i);
21105 unsigned long int i = ulongval ();
21106 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21108 fprintf (f, "%lu\n", i);
21110 return ferror (f) || fclose (f) != 0;
21116 rm -f conftest$ac_exeext
21117 if { (ac_try="$ac_link"
21118 case "(($ac_try" in
21119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21120 *) ac_try_echo=$ac_try;;
21122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21123 (eval "$ac_link") 2>&5
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21127 { (case "(($ac_try" in
21128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129 *) ac_try_echo=$ac_try;;
21131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21132 (eval "$ac_try") 2>&5
21134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135 (exit $ac_status); }; }; then
21136 ac_cv_sizeof_short_int=`cat conftest.val`
21138 echo "$as_me: program exited with status $ac_status" >&5
21139 echo "$as_me: failed program was:" >&5
21140 sed 's/^/| /' conftest.$ac_ext >&5
21142 ( exit $ac_status )
21143 if test "$ac_cv_type_short_int" = yes; then
21144 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
21145 See \`config.log' for more details." >&5
21146 echo "$as_me: error: cannot compute sizeof (short int)
21147 See \`config.log' for more details." >&2;}
21148 { (exit 77); exit 77; }; }
21150 ac_cv_sizeof_short_int=0
21153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21157 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
21158 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
21162 cat >>confdefs.h <<_ACEOF
21163 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
21167 { echo "$as_me:$LINENO: checking for int" >&5
21168 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21169 if test "${ac_cv_type_int+set}" = set; then
21170 echo $ECHO_N "(cached) $ECHO_C" >&6
21172 cat >conftest.$ac_ext <<_ACEOF
21175 cat confdefs.h >>conftest.$ac_ext
21176 cat >>conftest.$ac_ext <<_ACEOF
21177 /* end confdefs.h. */
21178 $ac_includes_default
21179 typedef int ac__type_new_;
21183 if ((ac__type_new_ *) 0)
21185 if (sizeof (ac__type_new_))
21191 rm -f conftest.$ac_objext
21192 if { (ac_try="$ac_compile"
21193 case "(($ac_try" in
21194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21195 *) ac_try_echo=$ac_try;;
21197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21198 (eval "$ac_compile") 2>conftest.er1
21200 grep -v '^ *+' conftest.er1 >conftest.err
21202 cat conftest.err >&5
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); } && {
21205 test -z "$ac_c_werror_flag" ||
21206 test ! -s conftest.err
21207 } && test -s conftest.$ac_objext; then
21210 echo "$as_me: failed program was:" >&5
21211 sed 's/^/| /' conftest.$ac_ext >&5
21216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21218 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21219 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21221 # The cast to long int works around a bug in the HP C Compiler
21222 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21223 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21224 # This bug is HP SR number 8606223364.
21225 { echo "$as_me:$LINENO: checking size of int" >&5
21226 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
21227 if test "${ac_cv_sizeof_int+set}" = set; then
21228 echo $ECHO_N "(cached) $ECHO_C" >&6
21230 if test "$cross_compiling" = yes; then
21231 # Depending upon the size, compute the lo and hi bounds.
21232 cat >conftest.$ac_ext <<_ACEOF
21235 cat confdefs.h >>conftest.$ac_ext
21236 cat >>conftest.$ac_ext <<_ACEOF
21237 /* end confdefs.h. */
21238 $ac_includes_default
21239 typedef int ac__type_sizeof_;
21243 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21250 rm -f conftest.$ac_objext
21251 if { (ac_try="$ac_compile"
21252 case "(($ac_try" in
21253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254 *) ac_try_echo=$ac_try;;
21256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21257 (eval "$ac_compile") 2>conftest.er1
21259 grep -v '^ *+' conftest.er1 >conftest.err
21261 cat conftest.err >&5
21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263 (exit $ac_status); } && {
21264 test -z "$ac_c_werror_flag" ||
21265 test ! -s conftest.err
21266 } && test -s conftest.$ac_objext; then
21269 cat >conftest.$ac_ext <<_ACEOF
21272 cat confdefs.h >>conftest.$ac_ext
21273 cat >>conftest.$ac_ext <<_ACEOF
21274 /* end confdefs.h. */
21275 $ac_includes_default
21276 typedef int ac__type_sizeof_;
21280 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21287 rm -f conftest.$ac_objext
21288 if { (ac_try="$ac_compile"
21289 case "(($ac_try" in
21290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21291 *) ac_try_echo=$ac_try;;
21293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21294 (eval "$ac_compile") 2>conftest.er1
21296 grep -v '^ *+' conftest.er1 >conftest.err
21298 cat conftest.err >&5
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); } && {
21301 test -z "$ac_c_werror_flag" ||
21302 test ! -s conftest.err
21303 } && test -s conftest.$ac_objext; then
21304 ac_hi=$ac_mid; break
21306 echo "$as_me: failed program was:" >&5
21307 sed 's/^/| /' conftest.$ac_ext >&5
21309 ac_lo=`expr $ac_mid + 1`
21310 if test $ac_lo -le $ac_mid; then
21314 ac_mid=`expr 2 '*' $ac_mid + 1`
21317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21320 echo "$as_me: failed program was:" >&5
21321 sed 's/^/| /' conftest.$ac_ext >&5
21323 cat >conftest.$ac_ext <<_ACEOF
21326 cat confdefs.h >>conftest.$ac_ext
21327 cat >>conftest.$ac_ext <<_ACEOF
21328 /* end confdefs.h. */
21329 $ac_includes_default
21330 typedef int ac__type_sizeof_;
21334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21341 rm -f conftest.$ac_objext
21342 if { (ac_try="$ac_compile"
21343 case "(($ac_try" in
21344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21345 *) ac_try_echo=$ac_try;;
21347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21348 (eval "$ac_compile") 2>conftest.er1
21350 grep -v '^ *+' conftest.er1 >conftest.err
21352 cat conftest.err >&5
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); } && {
21355 test -z "$ac_c_werror_flag" ||
21356 test ! -s conftest.err
21357 } && test -s conftest.$ac_objext; then
21360 cat >conftest.$ac_ext <<_ACEOF
21363 cat confdefs.h >>conftest.$ac_ext
21364 cat >>conftest.$ac_ext <<_ACEOF
21365 /* end confdefs.h. */
21366 $ac_includes_default
21367 typedef int ac__type_sizeof_;
21371 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21378 rm -f conftest.$ac_objext
21379 if { (ac_try="$ac_compile"
21380 case "(($ac_try" in
21381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21382 *) ac_try_echo=$ac_try;;
21384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21385 (eval "$ac_compile") 2>conftest.er1
21387 grep -v '^ *+' conftest.er1 >conftest.err
21389 cat conftest.err >&5
21390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21391 (exit $ac_status); } && {
21392 test -z "$ac_c_werror_flag" ||
21393 test ! -s conftest.err
21394 } && test -s conftest.$ac_objext; then
21395 ac_lo=$ac_mid; break
21397 echo "$as_me: failed program was:" >&5
21398 sed 's/^/| /' conftest.$ac_ext >&5
21400 ac_hi=`expr '(' $ac_mid ')' - 1`
21401 if test $ac_mid -le $ac_hi; then
21405 ac_mid=`expr 2 '*' $ac_mid`
21408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21411 echo "$as_me: failed program was:" >&5
21412 sed 's/^/| /' conftest.$ac_ext >&5
21417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21421 # Binary search between lo and hi bounds.
21422 while test "x$ac_lo" != "x$ac_hi"; do
21423 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21424 cat >conftest.$ac_ext <<_ACEOF
21427 cat confdefs.h >>conftest.$ac_ext
21428 cat >>conftest.$ac_ext <<_ACEOF
21429 /* end confdefs.h. */
21430 $ac_includes_default
21431 typedef int ac__type_sizeof_;
21435 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21442 rm -f conftest.$ac_objext
21443 if { (ac_try="$ac_compile"
21444 case "(($ac_try" in
21445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446 *) ac_try_echo=$ac_try;;
21448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21449 (eval "$ac_compile") 2>conftest.er1
21451 grep -v '^ *+' conftest.er1 >conftest.err
21453 cat conftest.err >&5
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); } && {
21456 test -z "$ac_c_werror_flag" ||
21457 test ! -s conftest.err
21458 } && test -s conftest.$ac_objext; then
21461 echo "$as_me: failed program was:" >&5
21462 sed 's/^/| /' conftest.$ac_ext >&5
21464 ac_lo=`expr '(' $ac_mid ')' + 1`
21467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21470 ?*) ac_cv_sizeof_int=$ac_lo;;
21471 '') if test "$ac_cv_type_int" = yes; then
21472 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21473 See \`config.log' for more details." >&5
21474 echo "$as_me: error: cannot compute sizeof (int)
21475 See \`config.log' for more details." >&2;}
21476 { (exit 77); exit 77; }; }
21482 cat >conftest.$ac_ext <<_ACEOF
21485 cat confdefs.h >>conftest.$ac_ext
21486 cat >>conftest.$ac_ext <<_ACEOF
21487 /* end confdefs.h. */
21488 $ac_includes_default
21489 typedef int ac__type_sizeof_;
21490 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21491 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21493 #include <stdlib.h>
21498 FILE *f = fopen ("conftest.val", "w");
21501 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21503 long int i = longval ();
21504 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21506 fprintf (f, "%ld\n", i);
21510 unsigned long int i = ulongval ();
21511 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21513 fprintf (f, "%lu\n", i);
21515 return ferror (f) || fclose (f) != 0;
21521 rm -f conftest$ac_exeext
21522 if { (ac_try="$ac_link"
21523 case "(($ac_try" in
21524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21525 *) ac_try_echo=$ac_try;;
21527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21528 (eval "$ac_link") 2>&5
21530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21532 { (case "(($ac_try" in
21533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21534 *) ac_try_echo=$ac_try;;
21536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21537 (eval "$ac_try") 2>&5
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); }; }; then
21541 ac_cv_sizeof_int=`cat conftest.val`
21543 echo "$as_me: program exited with status $ac_status" >&5
21544 echo "$as_me: failed program was:" >&5
21545 sed 's/^/| /' conftest.$ac_ext >&5
21547 ( exit $ac_status )
21548 if test "$ac_cv_type_int" = yes; then
21549 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21550 See \`config.log' for more details." >&5
21551 echo "$as_me: error: cannot compute sizeof (int)
21552 See \`config.log' for more details." >&2;}
21553 { (exit 77); exit 77; }; }
21558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21562 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21563 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
21567 cat >>confdefs.h <<_ACEOF
21568 #define SIZEOF_INT $ac_cv_sizeof_int
21572 { echo "$as_me:$LINENO: checking for long int" >&5
21573 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
21574 if test "${ac_cv_type_long_int+set}" = set; then
21575 echo $ECHO_N "(cached) $ECHO_C" >&6
21577 cat >conftest.$ac_ext <<_ACEOF
21580 cat confdefs.h >>conftest.$ac_ext
21581 cat >>conftest.$ac_ext <<_ACEOF
21582 /* end confdefs.h. */
21583 $ac_includes_default
21584 typedef long int ac__type_new_;
21588 if ((ac__type_new_ *) 0)
21590 if (sizeof (ac__type_new_))
21596 rm -f conftest.$ac_objext
21597 if { (ac_try="$ac_compile"
21598 case "(($ac_try" in
21599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21600 *) ac_try_echo=$ac_try;;
21602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21603 (eval "$ac_compile") 2>conftest.er1
21605 grep -v '^ *+' conftest.er1 >conftest.err
21607 cat conftest.err >&5
21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609 (exit $ac_status); } && {
21610 test -z "$ac_c_werror_flag" ||
21611 test ! -s conftest.err
21612 } && test -s conftest.$ac_objext; then
21613 ac_cv_type_long_int=yes
21615 echo "$as_me: failed program was:" >&5
21616 sed 's/^/| /' conftest.$ac_ext >&5
21618 ac_cv_type_long_int=no
21621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21623 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
21624 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
21626 # The cast to long int works around a bug in the HP C Compiler
21627 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21628 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21629 # This bug is HP SR number 8606223364.
21630 { echo "$as_me:$LINENO: checking size of long int" >&5
21631 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
21632 if test "${ac_cv_sizeof_long_int+set}" = set; then
21633 echo $ECHO_N "(cached) $ECHO_C" >&6
21635 if test "$cross_compiling" = yes; then
21636 # Depending upon the size, compute the lo and hi bounds.
21637 cat >conftest.$ac_ext <<_ACEOF
21640 cat confdefs.h >>conftest.$ac_ext
21641 cat >>conftest.$ac_ext <<_ACEOF
21642 /* end confdefs.h. */
21643 $ac_includes_default
21644 typedef long int ac__type_sizeof_;
21648 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21655 rm -f conftest.$ac_objext
21656 if { (ac_try="$ac_compile"
21657 case "(($ac_try" in
21658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21659 *) ac_try_echo=$ac_try;;
21661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21662 (eval "$ac_compile") 2>conftest.er1
21664 grep -v '^ *+' conftest.er1 >conftest.err
21666 cat conftest.err >&5
21667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); } && {
21669 test -z "$ac_c_werror_flag" ||
21670 test ! -s conftest.err
21671 } && test -s conftest.$ac_objext; then
21674 cat >conftest.$ac_ext <<_ACEOF
21677 cat confdefs.h >>conftest.$ac_ext
21678 cat >>conftest.$ac_ext <<_ACEOF
21679 /* end confdefs.h. */
21680 $ac_includes_default
21681 typedef long int ac__type_sizeof_;
21685 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21692 rm -f conftest.$ac_objext
21693 if { (ac_try="$ac_compile"
21694 case "(($ac_try" in
21695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21696 *) ac_try_echo=$ac_try;;
21698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21699 (eval "$ac_compile") 2>conftest.er1
21701 grep -v '^ *+' conftest.er1 >conftest.err
21703 cat conftest.err >&5
21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705 (exit $ac_status); } && {
21706 test -z "$ac_c_werror_flag" ||
21707 test ! -s conftest.err
21708 } && test -s conftest.$ac_objext; then
21709 ac_hi=$ac_mid; break
21711 echo "$as_me: failed program was:" >&5
21712 sed 's/^/| /' conftest.$ac_ext >&5
21714 ac_lo=`expr $ac_mid + 1`
21715 if test $ac_lo -le $ac_mid; then
21719 ac_mid=`expr 2 '*' $ac_mid + 1`
21722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21725 echo "$as_me: failed program was:" >&5
21726 sed 's/^/| /' conftest.$ac_ext >&5
21728 cat >conftest.$ac_ext <<_ACEOF
21731 cat confdefs.h >>conftest.$ac_ext
21732 cat >>conftest.$ac_ext <<_ACEOF
21733 /* end confdefs.h. */
21734 $ac_includes_default
21735 typedef long int ac__type_sizeof_;
21739 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21746 rm -f conftest.$ac_objext
21747 if { (ac_try="$ac_compile"
21748 case "(($ac_try" in
21749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21750 *) ac_try_echo=$ac_try;;
21752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21753 (eval "$ac_compile") 2>conftest.er1
21755 grep -v '^ *+' conftest.er1 >conftest.err
21757 cat conftest.err >&5
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); } && {
21760 test -z "$ac_c_werror_flag" ||
21761 test ! -s conftest.err
21762 } && test -s conftest.$ac_objext; then
21765 cat >conftest.$ac_ext <<_ACEOF
21768 cat confdefs.h >>conftest.$ac_ext
21769 cat >>conftest.$ac_ext <<_ACEOF
21770 /* end confdefs.h. */
21771 $ac_includes_default
21772 typedef long int ac__type_sizeof_;
21776 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21783 rm -f conftest.$ac_objext
21784 if { (ac_try="$ac_compile"
21785 case "(($ac_try" in
21786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21787 *) ac_try_echo=$ac_try;;
21789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21790 (eval "$ac_compile") 2>conftest.er1
21792 grep -v '^ *+' conftest.er1 >conftest.err
21794 cat conftest.err >&5
21795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796 (exit $ac_status); } && {
21797 test -z "$ac_c_werror_flag" ||
21798 test ! -s conftest.err
21799 } && test -s conftest.$ac_objext; then
21800 ac_lo=$ac_mid; break
21802 echo "$as_me: failed program was:" >&5
21803 sed 's/^/| /' conftest.$ac_ext >&5
21805 ac_hi=`expr '(' $ac_mid ')' - 1`
21806 if test $ac_mid -le $ac_hi; then
21810 ac_mid=`expr 2 '*' $ac_mid`
21813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21816 echo "$as_me: failed program was:" >&5
21817 sed 's/^/| /' conftest.$ac_ext >&5
21822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21826 # Binary search between lo and hi bounds.
21827 while test "x$ac_lo" != "x$ac_hi"; do
21828 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21829 cat >conftest.$ac_ext <<_ACEOF
21832 cat confdefs.h >>conftest.$ac_ext
21833 cat >>conftest.$ac_ext <<_ACEOF
21834 /* end confdefs.h. */
21835 $ac_includes_default
21836 typedef long int ac__type_sizeof_;
21840 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21847 rm -f conftest.$ac_objext
21848 if { (ac_try="$ac_compile"
21849 case "(($ac_try" in
21850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21851 *) ac_try_echo=$ac_try;;
21853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21854 (eval "$ac_compile") 2>conftest.er1
21856 grep -v '^ *+' conftest.er1 >conftest.err
21858 cat conftest.err >&5
21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 (exit $ac_status); } && {
21861 test -z "$ac_c_werror_flag" ||
21862 test ! -s conftest.err
21863 } && test -s conftest.$ac_objext; then
21866 echo "$as_me: failed program was:" >&5
21867 sed 's/^/| /' conftest.$ac_ext >&5
21869 ac_lo=`expr '(' $ac_mid ')' + 1`
21872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21875 ?*) ac_cv_sizeof_long_int=$ac_lo;;
21876 '') if test "$ac_cv_type_long_int" = yes; then
21877 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
21878 See \`config.log' for more details." >&5
21879 echo "$as_me: error: cannot compute sizeof (long int)
21880 See \`config.log' for more details." >&2;}
21881 { (exit 77); exit 77; }; }
21883 ac_cv_sizeof_long_int=0
21887 cat >conftest.$ac_ext <<_ACEOF
21890 cat confdefs.h >>conftest.$ac_ext
21891 cat >>conftest.$ac_ext <<_ACEOF
21892 /* end confdefs.h. */
21893 $ac_includes_default
21894 typedef long int ac__type_sizeof_;
21895 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21896 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21898 #include <stdlib.h>
21903 FILE *f = fopen ("conftest.val", "w");
21906 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21908 long int i = longval ();
21909 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21911 fprintf (f, "%ld\n", i);
21915 unsigned long int i = ulongval ();
21916 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21918 fprintf (f, "%lu\n", i);
21920 return ferror (f) || fclose (f) != 0;
21926 rm -f conftest$ac_exeext
21927 if { (ac_try="$ac_link"
21928 case "(($ac_try" in
21929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21930 *) ac_try_echo=$ac_try;;
21932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21933 (eval "$ac_link") 2>&5
21935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21937 { (case "(($ac_try" in
21938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21939 *) ac_try_echo=$ac_try;;
21941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21942 (eval "$ac_try") 2>&5
21944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945 (exit $ac_status); }; }; then
21946 ac_cv_sizeof_long_int=`cat conftest.val`
21948 echo "$as_me: program exited with status $ac_status" >&5
21949 echo "$as_me: failed program was:" >&5
21950 sed 's/^/| /' conftest.$ac_ext >&5
21952 ( exit $ac_status )
21953 if test "$ac_cv_type_long_int" = yes; then
21954 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
21955 See \`config.log' for more details." >&5
21956 echo "$as_me: error: cannot compute sizeof (long int)
21957 See \`config.log' for more details." >&2;}
21958 { (exit 77); exit 77; }; }
21960 ac_cv_sizeof_long_int=0
21963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21967 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
21968 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
21972 cat >>confdefs.h <<_ACEOF
21973 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
21977 { echo "$as_me:$LINENO: checking for long long int" >&5
21978 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
21979 if test "${ac_cv_type_long_long_int+set}" = set; then
21980 echo $ECHO_N "(cached) $ECHO_C" >&6
21982 cat >conftest.$ac_ext <<_ACEOF
21985 cat confdefs.h >>conftest.$ac_ext
21986 cat >>conftest.$ac_ext <<_ACEOF
21987 /* end confdefs.h. */
21988 $ac_includes_default
21989 typedef long long int ac__type_new_;
21993 if ((ac__type_new_ *) 0)
21995 if (sizeof (ac__type_new_))
22001 rm -f conftest.$ac_objext
22002 if { (ac_try="$ac_compile"
22003 case "(($ac_try" in
22004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22005 *) ac_try_echo=$ac_try;;
22007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22008 (eval "$ac_compile") 2>conftest.er1
22010 grep -v '^ *+' conftest.er1 >conftest.err
22012 cat conftest.err >&5
22013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014 (exit $ac_status); } && {
22015 test -z "$ac_c_werror_flag" ||
22016 test ! -s conftest.err
22017 } && test -s conftest.$ac_objext; then
22018 ac_cv_type_long_long_int=yes
22020 echo "$as_me: failed program was:" >&5
22021 sed 's/^/| /' conftest.$ac_ext >&5
22023 ac_cv_type_long_long_int=no
22026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22028 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
22029 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
22031 # The cast to long int works around a bug in the HP C Compiler
22032 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22033 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22034 # This bug is HP SR number 8606223364.
22035 { echo "$as_me:$LINENO: checking size of long long int" >&5
22036 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
22037 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
22038 echo $ECHO_N "(cached) $ECHO_C" >&6
22040 if test "$cross_compiling" = yes; then
22041 # Depending upon the size, compute the lo and hi bounds.
22042 cat >conftest.$ac_ext <<_ACEOF
22045 cat confdefs.h >>conftest.$ac_ext
22046 cat >>conftest.$ac_ext <<_ACEOF
22047 /* end confdefs.h. */
22048 $ac_includes_default
22049 typedef long long int ac__type_sizeof_;
22053 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22060 rm -f conftest.$ac_objext
22061 if { (ac_try="$ac_compile"
22062 case "(($ac_try" in
22063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22064 *) ac_try_echo=$ac_try;;
22066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22067 (eval "$ac_compile") 2>conftest.er1
22069 grep -v '^ *+' conftest.er1 >conftest.err
22071 cat conftest.err >&5
22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); } && {
22074 test -z "$ac_c_werror_flag" ||
22075 test ! -s conftest.err
22076 } && test -s conftest.$ac_objext; then
22079 cat >conftest.$ac_ext <<_ACEOF
22082 cat confdefs.h >>conftest.$ac_ext
22083 cat >>conftest.$ac_ext <<_ACEOF
22084 /* end confdefs.h. */
22085 $ac_includes_default
22086 typedef long long int ac__type_sizeof_;
22090 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22097 rm -f conftest.$ac_objext
22098 if { (ac_try="$ac_compile"
22099 case "(($ac_try" in
22100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22101 *) ac_try_echo=$ac_try;;
22103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22104 (eval "$ac_compile") 2>conftest.er1
22106 grep -v '^ *+' conftest.er1 >conftest.err
22108 cat conftest.err >&5
22109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110 (exit $ac_status); } && {
22111 test -z "$ac_c_werror_flag" ||
22112 test ! -s conftest.err
22113 } && test -s conftest.$ac_objext; then
22114 ac_hi=$ac_mid; break
22116 echo "$as_me: failed program was:" >&5
22117 sed 's/^/| /' conftest.$ac_ext >&5
22119 ac_lo=`expr $ac_mid + 1`
22120 if test $ac_lo -le $ac_mid; then
22124 ac_mid=`expr 2 '*' $ac_mid + 1`
22127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22130 echo "$as_me: failed program was:" >&5
22131 sed 's/^/| /' conftest.$ac_ext >&5
22133 cat >conftest.$ac_ext <<_ACEOF
22136 cat confdefs.h >>conftest.$ac_ext
22137 cat >>conftest.$ac_ext <<_ACEOF
22138 /* end confdefs.h. */
22139 $ac_includes_default
22140 typedef long long int ac__type_sizeof_;
22144 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22151 rm -f conftest.$ac_objext
22152 if { (ac_try="$ac_compile"
22153 case "(($ac_try" in
22154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22155 *) ac_try_echo=$ac_try;;
22157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22158 (eval "$ac_compile") 2>conftest.er1
22160 grep -v '^ *+' conftest.er1 >conftest.err
22162 cat conftest.err >&5
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); } && {
22165 test -z "$ac_c_werror_flag" ||
22166 test ! -s conftest.err
22167 } && test -s conftest.$ac_objext; then
22170 cat >conftest.$ac_ext <<_ACEOF
22173 cat confdefs.h >>conftest.$ac_ext
22174 cat >>conftest.$ac_ext <<_ACEOF
22175 /* end confdefs.h. */
22176 $ac_includes_default
22177 typedef long long int ac__type_sizeof_;
22181 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22188 rm -f conftest.$ac_objext
22189 if { (ac_try="$ac_compile"
22190 case "(($ac_try" in
22191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22192 *) ac_try_echo=$ac_try;;
22194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22195 (eval "$ac_compile") 2>conftest.er1
22197 grep -v '^ *+' conftest.er1 >conftest.err
22199 cat conftest.err >&5
22200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 (exit $ac_status); } && {
22202 test -z "$ac_c_werror_flag" ||
22203 test ! -s conftest.err
22204 } && test -s conftest.$ac_objext; then
22205 ac_lo=$ac_mid; break
22207 echo "$as_me: failed program was:" >&5
22208 sed 's/^/| /' conftest.$ac_ext >&5
22210 ac_hi=`expr '(' $ac_mid ')' - 1`
22211 if test $ac_mid -le $ac_hi; then
22215 ac_mid=`expr 2 '*' $ac_mid`
22218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22221 echo "$as_me: failed program was:" >&5
22222 sed 's/^/| /' conftest.$ac_ext >&5
22227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22231 # Binary search between lo and hi bounds.
22232 while test "x$ac_lo" != "x$ac_hi"; do
22233 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22234 cat >conftest.$ac_ext <<_ACEOF
22237 cat confdefs.h >>conftest.$ac_ext
22238 cat >>conftest.$ac_ext <<_ACEOF
22239 /* end confdefs.h. */
22240 $ac_includes_default
22241 typedef long long int ac__type_sizeof_;
22245 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22252 rm -f conftest.$ac_objext
22253 if { (ac_try="$ac_compile"
22254 case "(($ac_try" in
22255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22256 *) ac_try_echo=$ac_try;;
22258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22259 (eval "$ac_compile") 2>conftest.er1
22261 grep -v '^ *+' conftest.er1 >conftest.err
22263 cat conftest.err >&5
22264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265 (exit $ac_status); } && {
22266 test -z "$ac_c_werror_flag" ||
22267 test ! -s conftest.err
22268 } && test -s conftest.$ac_objext; then
22271 echo "$as_me: failed program was:" >&5
22272 sed 's/^/| /' conftest.$ac_ext >&5
22274 ac_lo=`expr '(' $ac_mid ')' + 1`
22277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22280 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
22281 '') if test "$ac_cv_type_long_long_int" = yes; then
22282 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
22283 See \`config.log' for more details." >&5
22284 echo "$as_me: error: cannot compute sizeof (long long int)
22285 See \`config.log' for more details." >&2;}
22286 { (exit 77); exit 77; }; }
22288 ac_cv_sizeof_long_long_int=0
22292 cat >conftest.$ac_ext <<_ACEOF
22295 cat confdefs.h >>conftest.$ac_ext
22296 cat >>conftest.$ac_ext <<_ACEOF
22297 /* end confdefs.h. */
22298 $ac_includes_default
22299 typedef long long int ac__type_sizeof_;
22300 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22301 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22303 #include <stdlib.h>
22308 FILE *f = fopen ("conftest.val", "w");
22311 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22313 long int i = longval ();
22314 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22316 fprintf (f, "%ld\n", i);
22320 unsigned long int i = ulongval ();
22321 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22323 fprintf (f, "%lu\n", i);
22325 return ferror (f) || fclose (f) != 0;
22331 rm -f conftest$ac_exeext
22332 if { (ac_try="$ac_link"
22333 case "(($ac_try" in
22334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22335 *) ac_try_echo=$ac_try;;
22337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22338 (eval "$ac_link") 2>&5
22340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22342 { (case "(($ac_try" in
22343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22344 *) ac_try_echo=$ac_try;;
22346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22347 (eval "$ac_try") 2>&5
22349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22350 (exit $ac_status); }; }; then
22351 ac_cv_sizeof_long_long_int=`cat conftest.val`
22353 echo "$as_me: program exited with status $ac_status" >&5
22354 echo "$as_me: failed program was:" >&5
22355 sed 's/^/| /' conftest.$ac_ext >&5
22357 ( exit $ac_status )
22358 if test "$ac_cv_type_long_long_int" = yes; then
22359 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
22360 See \`config.log' for more details." >&5
22361 echo "$as_me: error: cannot compute sizeof (long long int)
22362 See \`config.log' for more details." >&2;}
22363 { (exit 77); exit 77; }; }
22365 ac_cv_sizeof_long_long_int=0
22368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22372 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
22373 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
22377 cat >>confdefs.h <<_ACEOF
22378 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
22383 # Sanity check long long for some platforms (AIX)
22384 if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
22385 ac_cv_sizeof_long_long_int=0
22388 # compute LLONG_MIN and LLONG_MAX if we don't know them.
22389 if test -z "$have_llong_max"; then
22390 { echo "$as_me:$LINENO: checking for max value of long long" >&5
22391 echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6; }
22392 if test "$cross_compiling" = yes; then
22394 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
22395 echo "$as_me: WARNING: cross compiling: not checking" >&2;}
22399 cat >conftest.$ac_ext <<_ACEOF
22402 cat confdefs.h >>conftest.$ac_ext
22403 cat >>conftest.$ac_ext <<_ACEOF
22404 /* end confdefs.h. */
22407 /* Why is this so damn hard? */
22411 #define __USE_ISOC99
22412 #include <limits.h>
22413 #define DATA "conftest.llminmax"
22414 #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
22417 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
22418 * we do this the hard way.
22421 fprint_ll(FILE *f, long long n)
22424 int l[sizeof(long long) * 8];
22427 if (fprintf(f, "-") < 0)
22429 for (i = 0; n != 0; i++) {
22430 l[i] = my_abs(n % 10);
22434 if (fprintf(f, "%d", l[--i]) < 0)
22437 if (fprintf(f, " ") < 0)
22444 long long i, llmin, llmax = 0;
22446 if((f = fopen(DATA,"w")) == NULL)
22449 #if defined(LLONG_MIN) && defined(LLONG_MAX)
22450 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
22454 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
22455 /* This will work on one's complement and two's complement */
22456 for (i = 1; i > llmax; i <<= 1, i++)
22458 llmin = llmax + 1LL; /* wrap */
22462 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
22463 || llmax - 1 > llmax || llmin == llmax || llmin == 0
22464 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
22465 fprintf(f, "unknown unknown\n");
22469 if (fprint_ll(f, llmin) < 0)
22471 if (fprint_ll(f, llmax) < 0)
22479 rm -f conftest$ac_exeext
22480 if { (ac_try="$ac_link"
22481 case "(($ac_try" in
22482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22483 *) ac_try_echo=$ac_try;;
22485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22486 (eval "$ac_link") 2>&5
22488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22490 { (case "(($ac_try" in
22491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22492 *) ac_try_echo=$ac_try;;
22494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22495 (eval "$ac_try") 2>&5
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); }; }; then
22500 llong_min=`$AWK '{print $1}' conftest.llminmax`
22501 llong_max=`$AWK '{print $2}' conftest.llminmax`
22503 { echo "$as_me:$LINENO: result: $llong_max" >&5
22504 echo "${ECHO_T}$llong_max" >&6; }
22506 cat >>confdefs.h <<_ACEOF
22507 #define LLONG_MAX ${llong_max}LL
22510 { echo "$as_me:$LINENO: checking for min value of long long" >&5
22511 echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6; }
22512 { echo "$as_me:$LINENO: result: $llong_min" >&5
22513 echo "${ECHO_T}$llong_min" >&6; }
22515 cat >>confdefs.h <<_ACEOF
22516 #define LLONG_MIN ${llong_min}LL
22521 echo "$as_me: program exited with status $ac_status" >&5
22522 echo "$as_me: failed program was:" >&5
22523 sed 's/^/| /' conftest.$ac_ext >&5
22525 ( exit $ac_status )
22527 { echo "$as_me:$LINENO: result: not found" >&5
22528 echo "${ECHO_T}not found" >&6; }
22531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22538 # More checks for data types
22539 { echo "$as_me:$LINENO: checking for u_int type" >&5
22540 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
22541 if test "${ac_cv_have_u_int+set}" = set; then
22542 echo $ECHO_N "(cached) $ECHO_C" >&6
22545 cat >conftest.$ac_ext <<_ACEOF
22548 cat confdefs.h >>conftest.$ac_ext
22549 cat >>conftest.$ac_ext <<_ACEOF
22550 /* end confdefs.h. */
22551 #include <sys/types.h>
22560 rm -f conftest.$ac_objext
22561 if { (ac_try="$ac_compile"
22562 case "(($ac_try" in
22563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22564 *) ac_try_echo=$ac_try;;
22566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22567 (eval "$ac_compile") 2>conftest.er1
22569 grep -v '^ *+' conftest.er1 >conftest.err
22571 cat conftest.err >&5
22572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573 (exit $ac_status); } && {
22574 test -z "$ac_c_werror_flag" ||
22575 test ! -s conftest.err
22576 } && test -s conftest.$ac_objext; then
22577 ac_cv_have_u_int="yes"
22579 echo "$as_me: failed program was:" >&5
22580 sed 's/^/| /' conftest.$ac_ext >&5
22582 ac_cv_have_u_int="no"
22586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22589 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
22590 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
22591 if test "x$ac_cv_have_u_int" = "xyes" ; then
22593 cat >>confdefs.h <<\_ACEOF
22594 #define HAVE_U_INT 1
22600 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
22601 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
22602 if test "${ac_cv_have_intxx_t+set}" = set; then
22603 echo $ECHO_N "(cached) $ECHO_C" >&6
22606 cat >conftest.$ac_ext <<_ACEOF
22609 cat confdefs.h >>conftest.$ac_ext
22610 cat >>conftest.$ac_ext <<_ACEOF
22611 /* end confdefs.h. */
22612 #include <sys/types.h>
22616 int8_t a; int16_t b; int32_t c; a = b = c = 1;
22621 rm -f conftest.$ac_objext
22622 if { (ac_try="$ac_compile"
22623 case "(($ac_try" in
22624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22625 *) ac_try_echo=$ac_try;;
22627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22628 (eval "$ac_compile") 2>conftest.er1
22630 grep -v '^ *+' conftest.er1 >conftest.err
22632 cat conftest.err >&5
22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); } && {
22635 test -z "$ac_c_werror_flag" ||
22636 test ! -s conftest.err
22637 } && test -s conftest.$ac_objext; then
22638 ac_cv_have_intxx_t="yes"
22640 echo "$as_me: failed program was:" >&5
22641 sed 's/^/| /' conftest.$ac_ext >&5
22643 ac_cv_have_intxx_t="no"
22647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22650 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
22651 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
22652 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
22654 cat >>confdefs.h <<\_ACEOF
22655 #define HAVE_INTXX_T 1
22661 if (test -z "$have_intxx_t" && \
22662 test "x$ac_cv_header_stdint_h" = "xyes")
22664 { echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
22665 echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6; }
22666 cat >conftest.$ac_ext <<_ACEOF
22669 cat confdefs.h >>conftest.$ac_ext
22670 cat >>conftest.$ac_ext <<_ACEOF
22671 /* end confdefs.h. */
22672 #include <stdint.h>
22676 int8_t a; int16_t b; int32_t c; a = b = c = 1;
22681 rm -f conftest.$ac_objext
22682 if { (ac_try="$ac_compile"
22683 case "(($ac_try" in
22684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22685 *) ac_try_echo=$ac_try;;
22687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22688 (eval "$ac_compile") 2>conftest.er1
22690 grep -v '^ *+' conftest.er1 >conftest.err
22692 cat conftest.err >&5
22693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694 (exit $ac_status); } && {
22695 test -z "$ac_c_werror_flag" ||
22696 test ! -s conftest.err
22697 } && test -s conftest.$ac_objext; then
22699 cat >>confdefs.h <<\_ACEOF
22700 #define HAVE_INTXX_T 1
22703 { echo "$as_me:$LINENO: result: yes" >&5
22704 echo "${ECHO_T}yes" >&6; }
22707 echo "$as_me: failed program was:" >&5
22708 sed 's/^/| /' conftest.$ac_ext >&5
22710 { echo "$as_me:$LINENO: result: no" >&5
22711 echo "${ECHO_T}no" >&6; }
22715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22718 { echo "$as_me:$LINENO: checking for int64_t type" >&5
22719 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
22720 if test "${ac_cv_have_int64_t+set}" = set; then
22721 echo $ECHO_N "(cached) $ECHO_C" >&6
22724 cat >conftest.$ac_ext <<_ACEOF
22727 cat confdefs.h >>conftest.$ac_ext
22728 cat >>conftest.$ac_ext <<_ACEOF
22729 /* end confdefs.h. */
22731 #include <sys/types.h>
22732 #ifdef HAVE_STDINT_H
22733 # include <stdint.h>
22735 #include <sys/socket.h>
22736 #ifdef HAVE_SYS_BITYPES_H
22737 # include <sys/bitypes.h>
22748 rm -f conftest.$ac_objext
22749 if { (ac_try="$ac_compile"
22750 case "(($ac_try" in
22751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22752 *) ac_try_echo=$ac_try;;
22754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22755 (eval "$ac_compile") 2>conftest.er1
22757 grep -v '^ *+' conftest.er1 >conftest.err
22759 cat conftest.err >&5
22760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761 (exit $ac_status); } && {
22762 test -z "$ac_c_werror_flag" ||
22763 test ! -s conftest.err
22764 } && test -s conftest.$ac_objext; then
22765 ac_cv_have_int64_t="yes"
22767 echo "$as_me: failed program was:" >&5
22768 sed 's/^/| /' conftest.$ac_ext >&5
22770 ac_cv_have_int64_t="no"
22774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22777 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
22778 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
22779 if test "x$ac_cv_have_int64_t" = "xyes" ; then
22781 cat >>confdefs.h <<\_ACEOF
22782 #define HAVE_INT64_T 1
22787 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
22788 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
22789 if test "${ac_cv_have_u_intxx_t+set}" = set; then
22790 echo $ECHO_N "(cached) $ECHO_C" >&6
22793 cat >conftest.$ac_ext <<_ACEOF
22796 cat confdefs.h >>conftest.$ac_ext
22797 cat >>conftest.$ac_ext <<_ACEOF
22798 /* end confdefs.h. */
22799 #include <sys/types.h>
22803 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
22808 rm -f conftest.$ac_objext
22809 if { (ac_try="$ac_compile"
22810 case "(($ac_try" in
22811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22812 *) ac_try_echo=$ac_try;;
22814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22815 (eval "$ac_compile") 2>conftest.er1
22817 grep -v '^ *+' conftest.er1 >conftest.err
22819 cat conftest.err >&5
22820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821 (exit $ac_status); } && {
22822 test -z "$ac_c_werror_flag" ||
22823 test ! -s conftest.err
22824 } && test -s conftest.$ac_objext; then
22825 ac_cv_have_u_intxx_t="yes"
22827 echo "$as_me: failed program was:" >&5
22828 sed 's/^/| /' conftest.$ac_ext >&5
22830 ac_cv_have_u_intxx_t="no"
22834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22837 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
22838 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
22839 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
22841 cat >>confdefs.h <<\_ACEOF
22842 #define HAVE_U_INTXX_T 1
22848 if test -z "$have_u_intxx_t" ; then
22849 { echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
22850 echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6; }
22851 cat >conftest.$ac_ext <<_ACEOF
22854 cat confdefs.h >>conftest.$ac_ext
22855 cat >>conftest.$ac_ext <<_ACEOF
22856 /* end confdefs.h. */
22857 #include <sys/socket.h>
22861 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
22866 rm -f conftest.$ac_objext
22867 if { (ac_try="$ac_compile"
22868 case "(($ac_try" in
22869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22870 *) ac_try_echo=$ac_try;;
22872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22873 (eval "$ac_compile") 2>conftest.er1
22875 grep -v '^ *+' conftest.er1 >conftest.err
22877 cat conftest.err >&5
22878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879 (exit $ac_status); } && {
22880 test -z "$ac_c_werror_flag" ||
22881 test ! -s conftest.err
22882 } && test -s conftest.$ac_objext; then
22884 cat >>confdefs.h <<\_ACEOF
22885 #define HAVE_U_INTXX_T 1
22888 { echo "$as_me:$LINENO: result: yes" >&5
22889 echo "${ECHO_T}yes" >&6; }
22892 echo "$as_me: failed program was:" >&5
22893 sed 's/^/| /' conftest.$ac_ext >&5
22895 { echo "$as_me:$LINENO: result: no" >&5
22896 echo "${ECHO_T}no" >&6; }
22900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22903 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
22904 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
22905 if test "${ac_cv_have_u_int64_t+set}" = set; then
22906 echo $ECHO_N "(cached) $ECHO_C" >&6
22909 cat >conftest.$ac_ext <<_ACEOF
22912 cat confdefs.h >>conftest.$ac_ext
22913 cat >>conftest.$ac_ext <<_ACEOF
22914 /* end confdefs.h. */
22915 #include <sys/types.h>
22919 u_int64_t a; a = 1;
22924 rm -f conftest.$ac_objext
22925 if { (ac_try="$ac_compile"
22926 case "(($ac_try" in
22927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22928 *) ac_try_echo=$ac_try;;
22930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22931 (eval "$ac_compile") 2>conftest.er1
22933 grep -v '^ *+' conftest.er1 >conftest.err
22935 cat conftest.err >&5
22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); } && {
22938 test -z "$ac_c_werror_flag" ||
22939 test ! -s conftest.err
22940 } && test -s conftest.$ac_objext; then
22941 ac_cv_have_u_int64_t="yes"
22943 echo "$as_me: failed program was:" >&5
22944 sed 's/^/| /' conftest.$ac_ext >&5
22946 ac_cv_have_u_int64_t="no"
22950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22953 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
22954 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
22955 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
22957 cat >>confdefs.h <<\_ACEOF
22958 #define HAVE_U_INT64_T 1
22964 if test -z "$have_u_int64_t" ; then
22965 { echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
22966 echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6; }
22967 cat >conftest.$ac_ext <<_ACEOF
22970 cat confdefs.h >>conftest.$ac_ext
22971 cat >>conftest.$ac_ext <<_ACEOF
22972 /* end confdefs.h. */
22973 #include <sys/bitypes.h>
22982 rm -f conftest.$ac_objext
22983 if { (ac_try="$ac_compile"
22984 case "(($ac_try" in
22985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22986 *) ac_try_echo=$ac_try;;
22988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22989 (eval "$ac_compile") 2>conftest.er1
22991 grep -v '^ *+' conftest.er1 >conftest.err
22993 cat conftest.err >&5
22994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995 (exit $ac_status); } && {
22996 test -z "$ac_c_werror_flag" ||
22997 test ! -s conftest.err
22998 } && test -s conftest.$ac_objext; then
23000 cat >>confdefs.h <<\_ACEOF
23001 #define HAVE_U_INT64_T 1
23004 { echo "$as_me:$LINENO: result: yes" >&5
23005 echo "${ECHO_T}yes" >&6; }
23008 echo "$as_me: failed program was:" >&5
23009 sed 's/^/| /' conftest.$ac_ext >&5
23011 { echo "$as_me:$LINENO: result: no" >&5
23012 echo "${ECHO_T}no" >&6; }
23016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23019 if test -z "$have_u_intxx_t" ; then
23020 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
23021 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
23022 if test "${ac_cv_have_uintxx_t+set}" = set; then
23023 echo $ECHO_N "(cached) $ECHO_C" >&6
23026 cat >conftest.$ac_ext <<_ACEOF
23029 cat confdefs.h >>conftest.$ac_ext
23030 cat >>conftest.$ac_ext <<_ACEOF
23031 /* end confdefs.h. */
23033 #include <sys/types.h>
23038 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
23043 rm -f conftest.$ac_objext
23044 if { (ac_try="$ac_compile"
23045 case "(($ac_try" in
23046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23047 *) ac_try_echo=$ac_try;;
23049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23050 (eval "$ac_compile") 2>conftest.er1
23052 grep -v '^ *+' conftest.er1 >conftest.err
23054 cat conftest.err >&5
23055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056 (exit $ac_status); } && {
23057 test -z "$ac_c_werror_flag" ||
23058 test ! -s conftest.err
23059 } && test -s conftest.$ac_objext; then
23060 ac_cv_have_uintxx_t="yes"
23062 echo "$as_me: failed program was:" >&5
23063 sed 's/^/| /' conftest.$ac_ext >&5
23065 ac_cv_have_uintxx_t="no"
23069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23072 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
23073 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
23074 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
23076 cat >>confdefs.h <<\_ACEOF
23077 #define HAVE_UINTXX_T 1
23083 if test -z "$have_uintxx_t" ; then
23084 { echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
23085 echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6; }
23086 cat >conftest.$ac_ext <<_ACEOF
23089 cat confdefs.h >>conftest.$ac_ext
23090 cat >>conftest.$ac_ext <<_ACEOF
23091 /* end confdefs.h. */
23092 #include <stdint.h>
23096 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
23101 rm -f conftest.$ac_objext
23102 if { (ac_try="$ac_compile"
23103 case "(($ac_try" in
23104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23105 *) ac_try_echo=$ac_try;;
23107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23108 (eval "$ac_compile") 2>conftest.er1
23110 grep -v '^ *+' conftest.er1 >conftest.err
23112 cat conftest.err >&5
23113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114 (exit $ac_status); } && {
23115 test -z "$ac_c_werror_flag" ||
23116 test ! -s conftest.err
23117 } && test -s conftest.$ac_objext; then
23119 cat >>confdefs.h <<\_ACEOF
23120 #define HAVE_UINTXX_T 1
23123 { echo "$as_me:$LINENO: result: yes" >&5
23124 echo "${ECHO_T}yes" >&6; }
23127 echo "$as_me: failed program was:" >&5
23128 sed 's/^/| /' conftest.$ac_ext >&5
23130 { echo "$as_me:$LINENO: result: no" >&5
23131 echo "${ECHO_T}no" >&6; }
23135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23138 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
23139 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
23141 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
23142 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
23143 cat >conftest.$ac_ext <<_ACEOF
23146 cat confdefs.h >>conftest.$ac_ext
23147 cat >>conftest.$ac_ext <<_ACEOF
23148 /* end confdefs.h. */
23150 #include <sys/bitypes.h>
23156 int8_t a; int16_t b; int32_t c;
23157 u_int8_t e; u_int16_t f; u_int32_t g;
23158 a = b = c = e = f = g = 1;
23164 rm -f conftest.$ac_objext
23165 if { (ac_try="$ac_compile"
23166 case "(($ac_try" in
23167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23168 *) ac_try_echo=$ac_try;;
23170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23171 (eval "$ac_compile") 2>conftest.er1
23173 grep -v '^ *+' conftest.er1 >conftest.err
23175 cat conftest.err >&5
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); } && {
23178 test -z "$ac_c_werror_flag" ||
23179 test ! -s conftest.err
23180 } && test -s conftest.$ac_objext; then
23182 cat >>confdefs.h <<\_ACEOF
23183 #define HAVE_U_INTXX_T 1
23186 cat >>confdefs.h <<\_ACEOF
23187 #define HAVE_INTXX_T 1
23190 { echo "$as_me:$LINENO: result: yes" >&5
23191 echo "${ECHO_T}yes" >&6; }
23194 echo "$as_me: failed program was:" >&5
23195 sed 's/^/| /' conftest.$ac_ext >&5
23197 { echo "$as_me:$LINENO: result: no" >&5
23198 echo "${ECHO_T}no" >&6; }
23202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23206 { echo "$as_me:$LINENO: checking for u_char" >&5
23207 echo $ECHO_N "checking for u_char... $ECHO_C" >&6; }
23208 if test "${ac_cv_have_u_char+set}" = set; then
23209 echo $ECHO_N "(cached) $ECHO_C" >&6
23212 cat >conftest.$ac_ext <<_ACEOF
23215 cat confdefs.h >>conftest.$ac_ext
23216 cat >>conftest.$ac_ext <<_ACEOF
23217 /* end confdefs.h. */
23219 #include <sys/types.h>
23224 u_char foo; foo = 125;
23229 rm -f conftest.$ac_objext
23230 if { (ac_try="$ac_compile"
23231 case "(($ac_try" in
23232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23233 *) ac_try_echo=$ac_try;;
23235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23236 (eval "$ac_compile") 2>conftest.er1
23238 grep -v '^ *+' conftest.er1 >conftest.err
23240 cat conftest.err >&5
23241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23242 (exit $ac_status); } && {
23243 test -z "$ac_c_werror_flag" ||
23244 test ! -s conftest.err
23245 } && test -s conftest.$ac_objext; then
23246 ac_cv_have_u_char="yes"
23248 echo "$as_me: failed program was:" >&5
23249 sed 's/^/| /' conftest.$ac_ext >&5
23251 ac_cv_have_u_char="no"
23255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23258 { echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
23259 echo "${ECHO_T}$ac_cv_have_u_char" >&6; }
23260 if test "x$ac_cv_have_u_char" = "xyes" ; then
23262 cat >>confdefs.h <<\_ACEOF
23263 #define HAVE_U_CHAR 1
23269 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23270 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23271 if test "${ac_cv_type_socklen_t+set}" = set; then
23272 echo $ECHO_N "(cached) $ECHO_C" >&6
23274 cat >conftest.$ac_ext <<_ACEOF
23277 cat confdefs.h >>conftest.$ac_ext
23278 cat >>conftest.$ac_ext <<_ACEOF
23279 /* end confdefs.h. */
23280 #include <sys/types.h>
23281 #include <sys/socket.h>
23283 typedef socklen_t ac__type_new_;
23287 if ((ac__type_new_ *) 0)
23289 if (sizeof (ac__type_new_))
23295 rm -f conftest.$ac_objext
23296 if { (ac_try="$ac_compile"
23297 case "(($ac_try" in
23298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23299 *) ac_try_echo=$ac_try;;
23301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23302 (eval "$ac_compile") 2>conftest.er1
23304 grep -v '^ *+' conftest.er1 >conftest.err
23306 cat conftest.err >&5
23307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308 (exit $ac_status); } && {
23309 test -z "$ac_c_werror_flag" ||
23310 test ! -s conftest.err
23311 } && test -s conftest.$ac_objext; then
23312 ac_cv_type_socklen_t=yes
23314 echo "$as_me: failed program was:" >&5
23315 sed 's/^/| /' conftest.$ac_ext >&5
23317 ac_cv_type_socklen_t=no
23320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23322 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23323 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23324 if test $ac_cv_type_socklen_t = yes; then
23328 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
23329 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
23330 if test "${curl_cv_socklen_t_equiv+set}" = set; then
23331 echo $ECHO_N "(cached) $ECHO_C" >&6
23334 # Systems have either "struct sockaddr *" or
23335 # "void *" as the second argument to getpeername
23336 curl_cv_socklen_t_equiv=
23337 for arg2 in "struct sockaddr" void; do
23338 for t in int size_t unsigned long "unsigned long"; do
23339 cat >conftest.$ac_ext <<_ACEOF
23342 cat confdefs.h >>conftest.$ac_ext
23343 cat >>conftest.$ac_ext <<_ACEOF
23344 /* end confdefs.h. */
23346 #include <sys/types.h>
23347 #include <sys/socket.h>
23349 int getpeername (int, $arg2 *, $t *);
23356 getpeername(0,0,&len);
23362 rm -f conftest.$ac_objext
23363 if { (ac_try="$ac_compile"
23364 case "(($ac_try" in
23365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23366 *) ac_try_echo=$ac_try;;
23368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23369 (eval "$ac_compile") 2>conftest.er1
23371 grep -v '^ *+' conftest.er1 >conftest.err
23373 cat conftest.err >&5
23374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375 (exit $ac_status); } && {
23376 test -z "$ac_c_werror_flag" ||
23377 test ! -s conftest.err
23378 } && test -s conftest.$ac_objext; then
23380 curl_cv_socklen_t_equiv="$t"
23384 echo "$as_me: failed program was:" >&5
23385 sed 's/^/| /' conftest.$ac_ext >&5
23390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23394 if test "x$curl_cv_socklen_t_equiv" = x; then
23395 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
23396 echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
23397 { (exit 1); exit 1; }; }
23402 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
23403 echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
23405 cat >>confdefs.h <<_ACEOF
23406 #define socklen_t $curl_cv_socklen_t_equiv
23413 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
23414 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
23415 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
23416 echo $ECHO_N "(cached) $ECHO_C" >&6
23418 cat >conftest.$ac_ext <<_ACEOF
23421 cat confdefs.h >>conftest.$ac_ext
23422 cat >>conftest.$ac_ext <<_ACEOF
23423 /* end confdefs.h. */
23424 #include <signal.h>
23426 typedef sig_atomic_t ac__type_new_;
23430 if ((ac__type_new_ *) 0)
23432 if (sizeof (ac__type_new_))
23438 rm -f conftest.$ac_objext
23439 if { (ac_try="$ac_compile"
23440 case "(($ac_try" in
23441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23442 *) ac_try_echo=$ac_try;;
23444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23445 (eval "$ac_compile") 2>conftest.er1
23447 grep -v '^ *+' conftest.er1 >conftest.err
23449 cat conftest.err >&5
23450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23451 (exit $ac_status); } && {
23452 test -z "$ac_c_werror_flag" ||
23453 test ! -s conftest.err
23454 } && test -s conftest.$ac_objext; then
23455 ac_cv_type_sig_atomic_t=yes
23457 echo "$as_me: failed program was:" >&5
23458 sed 's/^/| /' conftest.$ac_ext >&5
23460 ac_cv_type_sig_atomic_t=no
23463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23465 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
23466 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
23467 if test $ac_cv_type_sig_atomic_t = yes; then
23469 cat >>confdefs.h <<_ACEOF
23470 #define HAVE_SIG_ATOMIC_T 1
23476 { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
23477 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
23478 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
23479 echo $ECHO_N "(cached) $ECHO_C" >&6
23481 cat >conftest.$ac_ext <<_ACEOF
23484 cat confdefs.h >>conftest.$ac_ext
23485 cat >>conftest.$ac_ext <<_ACEOF
23486 /* end confdefs.h. */
23488 #include <sys/types.h>
23489 #ifdef HAVE_SYS_BITYPES_H
23490 #include <sys/bitypes.h>
23492 #ifdef HAVE_SYS_STATFS_H
23493 #include <sys/statfs.h>
23495 #ifdef HAVE_SYS_STATVFS_H
23496 #include <sys/statvfs.h>
23500 typedef fsblkcnt_t ac__type_new_;
23504 if ((ac__type_new_ *) 0)
23506 if (sizeof (ac__type_new_))
23512 rm -f conftest.$ac_objext
23513 if { (ac_try="$ac_compile"
23514 case "(($ac_try" in
23515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23516 *) ac_try_echo=$ac_try;;
23518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23519 (eval "$ac_compile") 2>conftest.er1
23521 grep -v '^ *+' conftest.er1 >conftest.err
23523 cat conftest.err >&5
23524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525 (exit $ac_status); } && {
23526 test -z "$ac_c_werror_flag" ||
23527 test ! -s conftest.err
23528 } && test -s conftest.$ac_objext; then
23529 ac_cv_type_fsblkcnt_t=yes
23531 echo "$as_me: failed program was:" >&5
23532 sed 's/^/| /' conftest.$ac_ext >&5
23534 ac_cv_type_fsblkcnt_t=no
23537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23539 { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
23540 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
23541 if test $ac_cv_type_fsblkcnt_t = yes; then
23543 cat >>confdefs.h <<_ACEOF
23544 #define HAVE_FSBLKCNT_T 1
23549 { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
23550 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
23551 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
23552 echo $ECHO_N "(cached) $ECHO_C" >&6
23554 cat >conftest.$ac_ext <<_ACEOF
23557 cat confdefs.h >>conftest.$ac_ext
23558 cat >>conftest.$ac_ext <<_ACEOF
23559 /* end confdefs.h. */
23561 #include <sys/types.h>
23562 #ifdef HAVE_SYS_BITYPES_H
23563 #include <sys/bitypes.h>
23565 #ifdef HAVE_SYS_STATFS_H
23566 #include <sys/statfs.h>
23568 #ifdef HAVE_SYS_STATVFS_H
23569 #include <sys/statvfs.h>
23573 typedef fsfilcnt_t ac__type_new_;
23577 if ((ac__type_new_ *) 0)
23579 if (sizeof (ac__type_new_))
23585 rm -f conftest.$ac_objext
23586 if { (ac_try="$ac_compile"
23587 case "(($ac_try" in
23588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23589 *) ac_try_echo=$ac_try;;
23591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23592 (eval "$ac_compile") 2>conftest.er1
23594 grep -v '^ *+' conftest.er1 >conftest.err
23596 cat conftest.err >&5
23597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598 (exit $ac_status); } && {
23599 test -z "$ac_c_werror_flag" ||
23600 test ! -s conftest.err
23601 } && test -s conftest.$ac_objext; then
23602 ac_cv_type_fsfilcnt_t=yes
23604 echo "$as_me: failed program was:" >&5
23605 sed 's/^/| /' conftest.$ac_ext >&5
23607 ac_cv_type_fsfilcnt_t=no
23610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23612 { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
23613 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
23614 if test $ac_cv_type_fsfilcnt_t = yes; then
23616 cat >>confdefs.h <<_ACEOF
23617 #define HAVE_FSFILCNT_T 1
23624 { echo "$as_me:$LINENO: checking for in_addr_t" >&5
23625 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
23626 if test "${ac_cv_type_in_addr_t+set}" = set; then
23627 echo $ECHO_N "(cached) $ECHO_C" >&6
23629 cat >conftest.$ac_ext <<_ACEOF
23632 cat confdefs.h >>conftest.$ac_ext
23633 cat >>conftest.$ac_ext <<_ACEOF
23634 /* end confdefs.h. */
23635 #include <sys/types.h>
23636 #include <netinet/in.h>
23638 typedef in_addr_t ac__type_new_;
23642 if ((ac__type_new_ *) 0)
23644 if (sizeof (ac__type_new_))
23650 rm -f conftest.$ac_objext
23651 if { (ac_try="$ac_compile"
23652 case "(($ac_try" in
23653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23654 *) ac_try_echo=$ac_try;;
23656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23657 (eval "$ac_compile") 2>conftest.er1
23659 grep -v '^ *+' conftest.er1 >conftest.err
23661 cat conftest.err >&5
23662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663 (exit $ac_status); } && {
23664 test -z "$ac_c_werror_flag" ||
23665 test ! -s conftest.err
23666 } && test -s conftest.$ac_objext; then
23667 ac_cv_type_in_addr_t=yes
23669 echo "$as_me: failed program was:" >&5
23670 sed 's/^/| /' conftest.$ac_ext >&5
23672 ac_cv_type_in_addr_t=no
23675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23677 { echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
23678 echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; }
23679 if test $ac_cv_type_in_addr_t = yes; then
23681 cat >>confdefs.h <<_ACEOF
23682 #define HAVE_IN_ADDR_T 1
23687 { echo "$as_me:$LINENO: checking for in_port_t" >&5
23688 echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; }
23689 if test "${ac_cv_type_in_port_t+set}" = set; then
23690 echo $ECHO_N "(cached) $ECHO_C" >&6
23692 cat >conftest.$ac_ext <<_ACEOF
23695 cat confdefs.h >>conftest.$ac_ext
23696 cat >>conftest.$ac_ext <<_ACEOF
23697 /* end confdefs.h. */
23698 #include <sys/types.h>
23699 #include <netinet/in.h>
23701 typedef in_port_t ac__type_new_;
23705 if ((ac__type_new_ *) 0)
23707 if (sizeof (ac__type_new_))
23713 rm -f conftest.$ac_objext
23714 if { (ac_try="$ac_compile"
23715 case "(($ac_try" in
23716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23717 *) ac_try_echo=$ac_try;;
23719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23720 (eval "$ac_compile") 2>conftest.er1
23722 grep -v '^ *+' conftest.er1 >conftest.err
23724 cat conftest.err >&5
23725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726 (exit $ac_status); } && {
23727 test -z "$ac_c_werror_flag" ||
23728 test ! -s conftest.err
23729 } && test -s conftest.$ac_objext; then
23730 ac_cv_type_in_port_t=yes
23732 echo "$as_me: failed program was:" >&5
23733 sed 's/^/| /' conftest.$ac_ext >&5
23735 ac_cv_type_in_port_t=no
23738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23740 { echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
23741 echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; }
23742 if test $ac_cv_type_in_port_t = yes; then
23744 cat >>confdefs.h <<_ACEOF
23745 #define HAVE_IN_PORT_T 1
23752 { echo "$as_me:$LINENO: checking for size_t" >&5
23753 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23754 if test "${ac_cv_have_size_t+set}" = set; then
23755 echo $ECHO_N "(cached) $ECHO_C" >&6
23758 cat >conftest.$ac_ext <<_ACEOF
23761 cat confdefs.h >>conftest.$ac_ext
23762 cat >>conftest.$ac_ext <<_ACEOF
23763 /* end confdefs.h. */
23765 #include <sys/types.h>
23770 size_t foo; foo = 1235;
23775 rm -f conftest.$ac_objext
23776 if { (ac_try="$ac_compile"
23777 case "(($ac_try" in
23778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23779 *) ac_try_echo=$ac_try;;
23781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23782 (eval "$ac_compile") 2>conftest.er1
23784 grep -v '^ *+' conftest.er1 >conftest.err
23786 cat conftest.err >&5
23787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); } && {
23789 test -z "$ac_c_werror_flag" ||
23790 test ! -s conftest.err
23791 } && test -s conftest.$ac_objext; then
23792 ac_cv_have_size_t="yes"
23794 echo "$as_me: failed program was:" >&5
23795 sed 's/^/| /' conftest.$ac_ext >&5
23797 ac_cv_have_size_t="no"
23801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23804 { echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
23805 echo "${ECHO_T}$ac_cv_have_size_t" >&6; }
23806 if test "x$ac_cv_have_size_t" = "xyes" ; then
23808 cat >>confdefs.h <<\_ACEOF
23809 #define HAVE_SIZE_T 1
23814 { echo "$as_me:$LINENO: checking for ssize_t" >&5
23815 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
23816 if test "${ac_cv_have_ssize_t+set}" = set; then
23817 echo $ECHO_N "(cached) $ECHO_C" >&6
23820 cat >conftest.$ac_ext <<_ACEOF
23823 cat confdefs.h >>conftest.$ac_ext
23824 cat >>conftest.$ac_ext <<_ACEOF
23825 /* end confdefs.h. */
23827 #include <sys/types.h>
23832 ssize_t foo; foo = 1235;
23837 rm -f conftest.$ac_objext
23838 if { (ac_try="$ac_compile"
23839 case "(($ac_try" in
23840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23841 *) ac_try_echo=$ac_try;;
23843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23844 (eval "$ac_compile") 2>conftest.er1
23846 grep -v '^ *+' conftest.er1 >conftest.err
23848 cat conftest.err >&5
23849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23850 (exit $ac_status); } && {
23851 test -z "$ac_c_werror_flag" ||
23852 test ! -s conftest.err
23853 } && test -s conftest.$ac_objext; then
23854 ac_cv_have_ssize_t="yes"
23856 echo "$as_me: failed program was:" >&5
23857 sed 's/^/| /' conftest.$ac_ext >&5
23859 ac_cv_have_ssize_t="no"
23863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23866 { echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
23867 echo "${ECHO_T}$ac_cv_have_ssize_t" >&6; }
23868 if test "x$ac_cv_have_ssize_t" = "xyes" ; then
23870 cat >>confdefs.h <<\_ACEOF
23871 #define HAVE_SSIZE_T 1
23876 { echo "$as_me:$LINENO: checking for clock_t" >&5
23877 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
23878 if test "${ac_cv_have_clock_t+set}" = set; then
23879 echo $ECHO_N "(cached) $ECHO_C" >&6
23882 cat >conftest.$ac_ext <<_ACEOF
23885 cat confdefs.h >>conftest.$ac_ext
23886 cat >>conftest.$ac_ext <<_ACEOF
23887 /* end confdefs.h. */
23894 clock_t foo; foo = 1235;
23899 rm -f conftest.$ac_objext
23900 if { (ac_try="$ac_compile"
23901 case "(($ac_try" in
23902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23903 *) ac_try_echo=$ac_try;;
23905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23906 (eval "$ac_compile") 2>conftest.er1
23908 grep -v '^ *+' conftest.er1 >conftest.err
23910 cat conftest.err >&5
23911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); } && {
23913 test -z "$ac_c_werror_flag" ||
23914 test ! -s conftest.err
23915 } && test -s conftest.$ac_objext; then
23916 ac_cv_have_clock_t="yes"
23918 echo "$as_me: failed program was:" >&5
23919 sed 's/^/| /' conftest.$ac_ext >&5
23921 ac_cv_have_clock_t="no"
23925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23928 { echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
23929 echo "${ECHO_T}$ac_cv_have_clock_t" >&6; }
23930 if test "x$ac_cv_have_clock_t" = "xyes" ; then
23932 cat >>confdefs.h <<\_ACEOF
23933 #define HAVE_CLOCK_T 1
23938 { echo "$as_me:$LINENO: checking for sa_family_t" >&5
23939 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
23940 if test "${ac_cv_have_sa_family_t+set}" = set; then
23941 echo $ECHO_N "(cached) $ECHO_C" >&6
23944 cat >conftest.$ac_ext <<_ACEOF
23947 cat confdefs.h >>conftest.$ac_ext
23948 cat >>conftest.$ac_ext <<_ACEOF
23949 /* end confdefs.h. */
23951 #include <sys/types.h>
23952 #include <sys/socket.h>
23957 sa_family_t foo; foo = 1235;
23962 rm -f conftest.$ac_objext
23963 if { (ac_try="$ac_compile"
23964 case "(($ac_try" in
23965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23966 *) ac_try_echo=$ac_try;;
23968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23969 (eval "$ac_compile") 2>conftest.er1
23971 grep -v '^ *+' conftest.er1 >conftest.err
23973 cat conftest.err >&5
23974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975 (exit $ac_status); } && {
23976 test -z "$ac_c_werror_flag" ||
23977 test ! -s conftest.err
23978 } && test -s conftest.$ac_objext; then
23979 ac_cv_have_sa_family_t="yes"
23981 echo "$as_me: failed program was:" >&5
23982 sed 's/^/| /' conftest.$ac_ext >&5
23984 cat >conftest.$ac_ext <<_ACEOF
23987 cat confdefs.h >>conftest.$ac_ext
23988 cat >>conftest.$ac_ext <<_ACEOF
23989 /* end confdefs.h. */
23991 #include <sys/types.h>
23992 #include <sys/socket.h>
23993 #include <netinet/in.h>
23998 sa_family_t foo; foo = 1235;
24003 rm -f conftest.$ac_objext
24004 if { (ac_try="$ac_compile"
24005 case "(($ac_try" in
24006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24007 *) ac_try_echo=$ac_try;;
24009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24010 (eval "$ac_compile") 2>conftest.er1
24012 grep -v '^ *+' conftest.er1 >conftest.err
24014 cat conftest.err >&5
24015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24016 (exit $ac_status); } && {
24017 test -z "$ac_c_werror_flag" ||
24018 test ! -s conftest.err
24019 } && test -s conftest.$ac_objext; then
24020 ac_cv_have_sa_family_t="yes"
24022 echo "$as_me: failed program was:" >&5
24023 sed 's/^/| /' conftest.$ac_ext >&5
24025 ac_cv_have_sa_family_t="no"
24029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24036 { echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
24037 echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6; }
24038 if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
24040 cat >>confdefs.h <<\_ACEOF
24041 #define HAVE_SA_FAMILY_T 1
24046 { echo "$as_me:$LINENO: checking for pid_t" >&5
24047 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24048 if test "${ac_cv_have_pid_t+set}" = set; then
24049 echo $ECHO_N "(cached) $ECHO_C" >&6
24052 cat >conftest.$ac_ext <<_ACEOF
24055 cat confdefs.h >>conftest.$ac_ext
24056 cat >>conftest.$ac_ext <<_ACEOF
24057 /* end confdefs.h. */
24059 #include <sys/types.h>
24064 pid_t foo; foo = 1235;
24069 rm -f conftest.$ac_objext
24070 if { (ac_try="$ac_compile"
24071 case "(($ac_try" in
24072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24073 *) ac_try_echo=$ac_try;;
24075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24076 (eval "$ac_compile") 2>conftest.er1
24078 grep -v '^ *+' conftest.er1 >conftest.err
24080 cat conftest.err >&5
24081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082 (exit $ac_status); } && {
24083 test -z "$ac_c_werror_flag" ||
24084 test ! -s conftest.err
24085 } && test -s conftest.$ac_objext; then
24086 ac_cv_have_pid_t="yes"
24088 echo "$as_me: failed program was:" >&5
24089 sed 's/^/| /' conftest.$ac_ext >&5
24091 ac_cv_have_pid_t="no"
24095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24098 { echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
24099 echo "${ECHO_T}$ac_cv_have_pid_t" >&6; }
24100 if test "x$ac_cv_have_pid_t" = "xyes" ; then
24102 cat >>confdefs.h <<\_ACEOF
24103 #define HAVE_PID_T 1
24108 { echo "$as_me:$LINENO: checking for mode_t" >&5
24109 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
24110 if test "${ac_cv_have_mode_t+set}" = set; then
24111 echo $ECHO_N "(cached) $ECHO_C" >&6
24114 cat >conftest.$ac_ext <<_ACEOF
24117 cat confdefs.h >>conftest.$ac_ext
24118 cat >>conftest.$ac_ext <<_ACEOF
24119 /* end confdefs.h. */
24121 #include <sys/types.h>
24126 mode_t foo; foo = 1235;
24131 rm -f conftest.$ac_objext
24132 if { (ac_try="$ac_compile"
24133 case "(($ac_try" in
24134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24135 *) ac_try_echo=$ac_try;;
24137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24138 (eval "$ac_compile") 2>conftest.er1
24140 grep -v '^ *+' conftest.er1 >conftest.err
24142 cat conftest.err >&5
24143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24144 (exit $ac_status); } && {
24145 test -z "$ac_c_werror_flag" ||
24146 test ! -s conftest.err
24147 } && test -s conftest.$ac_objext; then
24148 ac_cv_have_mode_t="yes"
24150 echo "$as_me: failed program was:" >&5
24151 sed 's/^/| /' conftest.$ac_ext >&5
24153 ac_cv_have_mode_t="no"
24157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24160 { echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
24161 echo "${ECHO_T}$ac_cv_have_mode_t" >&6; }
24162 if test "x$ac_cv_have_mode_t" = "xyes" ; then
24164 cat >>confdefs.h <<\_ACEOF
24165 #define HAVE_MODE_T 1
24171 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
24172 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
24173 if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
24174 echo $ECHO_N "(cached) $ECHO_C" >&6
24177 cat >conftest.$ac_ext <<_ACEOF
24180 cat confdefs.h >>conftest.$ac_ext
24181 cat >>conftest.$ac_ext <<_ACEOF
24182 /* end confdefs.h. */
24184 #include <sys/types.h>
24185 #include <sys/socket.h>
24190 struct sockaddr_storage s;
24195 rm -f conftest.$ac_objext
24196 if { (ac_try="$ac_compile"
24197 case "(($ac_try" in
24198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24199 *) ac_try_echo=$ac_try;;
24201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24202 (eval "$ac_compile") 2>conftest.er1
24204 grep -v '^ *+' conftest.er1 >conftest.err
24206 cat conftest.err >&5
24207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24208 (exit $ac_status); } && {
24209 test -z "$ac_c_werror_flag" ||
24210 test ! -s conftest.err
24211 } && test -s conftest.$ac_objext; then
24212 ac_cv_have_struct_sockaddr_storage="yes"
24214 echo "$as_me: failed program was:" >&5
24215 sed 's/^/| /' conftest.$ac_ext >&5
24217 ac_cv_have_struct_sockaddr_storage="no"
24221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24224 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
24225 echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; }
24226 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
24228 cat >>confdefs.h <<\_ACEOF
24229 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
24234 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
24235 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
24236 if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
24237 echo $ECHO_N "(cached) $ECHO_C" >&6
24240 cat >conftest.$ac_ext <<_ACEOF
24243 cat confdefs.h >>conftest.$ac_ext
24244 cat >>conftest.$ac_ext <<_ACEOF
24245 /* end confdefs.h. */
24247 #include <sys/types.h>
24248 #include <netinet/in.h>
24253 struct sockaddr_in6 s; s.sin6_family = 0;
24258 rm -f conftest.$ac_objext
24259 if { (ac_try="$ac_compile"
24260 case "(($ac_try" in
24261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24262 *) ac_try_echo=$ac_try;;
24264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24265 (eval "$ac_compile") 2>conftest.er1
24267 grep -v '^ *+' conftest.er1 >conftest.err
24269 cat conftest.err >&5
24270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271 (exit $ac_status); } && {
24272 test -z "$ac_c_werror_flag" ||
24273 test ! -s conftest.err
24274 } && test -s conftest.$ac_objext; then
24275 ac_cv_have_struct_sockaddr_in6="yes"
24277 echo "$as_me: failed program was:" >&5
24278 sed 's/^/| /' conftest.$ac_ext >&5
24280 ac_cv_have_struct_sockaddr_in6="no"
24284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24287 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
24288 echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; }
24289 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
24291 cat >>confdefs.h <<\_ACEOF
24292 #define HAVE_STRUCT_SOCKADDR_IN6 1
24297 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
24298 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
24299 if test "${ac_cv_have_struct_in6_addr+set}" = set; then
24300 echo $ECHO_N "(cached) $ECHO_C" >&6
24303 cat >conftest.$ac_ext <<_ACEOF
24306 cat confdefs.h >>conftest.$ac_ext
24307 cat >>conftest.$ac_ext <<_ACEOF
24308 /* end confdefs.h. */
24310 #include <sys/types.h>
24311 #include <netinet/in.h>
24316 struct in6_addr s; s.s6_addr[0] = 0;
24321 rm -f conftest.$ac_objext
24322 if { (ac_try="$ac_compile"
24323 case "(($ac_try" in
24324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24325 *) ac_try_echo=$ac_try;;
24327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24328 (eval "$ac_compile") 2>conftest.er1
24330 grep -v '^ *+' conftest.er1 >conftest.err
24332 cat conftest.err >&5
24333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334 (exit $ac_status); } && {
24335 test -z "$ac_c_werror_flag" ||
24336 test ! -s conftest.err
24337 } && test -s conftest.$ac_objext; then
24338 ac_cv_have_struct_in6_addr="yes"
24340 echo "$as_me: failed program was:" >&5
24341 sed 's/^/| /' conftest.$ac_ext >&5
24343 ac_cv_have_struct_in6_addr="no"
24347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24350 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
24351 echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; }
24352 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
24354 cat >>confdefs.h <<\_ACEOF
24355 #define HAVE_STRUCT_IN6_ADDR 1
24359 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
24360 echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
24361 if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
24362 echo $ECHO_N "(cached) $ECHO_C" >&6
24364 cat >conftest.$ac_ext <<_ACEOF
24367 cat confdefs.h >>conftest.$ac_ext
24368 cat >>conftest.$ac_ext <<_ACEOF
24369 /* end confdefs.h. */
24371 #ifdef HAVE_SYS_TYPES_H
24372 #include <sys/types.h>
24374 #include <netinet/in.h>
24380 static struct sockaddr_in6 ac_aggr;
24381 if (ac_aggr.sin6_scope_id)
24387 rm -f conftest.$ac_objext
24388 if { (ac_try="$ac_compile"
24389 case "(($ac_try" in
24390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24391 *) ac_try_echo=$ac_try;;
24393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24394 (eval "$ac_compile") 2>conftest.er1
24396 grep -v '^ *+' conftest.er1 >conftest.err
24398 cat conftest.err >&5
24399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400 (exit $ac_status); } && {
24401 test -z "$ac_c_werror_flag" ||
24402 test ! -s conftest.err
24403 } && test -s conftest.$ac_objext; then
24404 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
24406 echo "$as_me: failed program was:" >&5
24407 sed 's/^/| /' conftest.$ac_ext >&5
24409 cat >conftest.$ac_ext <<_ACEOF
24412 cat confdefs.h >>conftest.$ac_ext
24413 cat >>conftest.$ac_ext <<_ACEOF
24414 /* end confdefs.h. */
24416 #ifdef HAVE_SYS_TYPES_H
24417 #include <sys/types.h>
24419 #include <netinet/in.h>
24425 static struct sockaddr_in6 ac_aggr;
24426 if (sizeof ac_aggr.sin6_scope_id)
24432 rm -f conftest.$ac_objext
24433 if { (ac_try="$ac_compile"
24434 case "(($ac_try" in
24435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24436 *) ac_try_echo=$ac_try;;
24438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24439 (eval "$ac_compile") 2>conftest.er1
24441 grep -v '^ *+' conftest.er1 >conftest.err
24443 cat conftest.err >&5
24444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445 (exit $ac_status); } && {
24446 test -z "$ac_c_werror_flag" ||
24447 test ! -s conftest.err
24448 } && test -s conftest.$ac_objext; then
24449 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
24451 echo "$as_me: failed program was:" >&5
24452 sed 's/^/| /' conftest.$ac_ext >&5
24454 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
24457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24462 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
24463 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
24464 if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
24466 cat >>confdefs.h <<_ACEOF
24467 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
24475 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
24476 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
24477 if test "${ac_cv_have_struct_addrinfo+set}" = set; then
24478 echo $ECHO_N "(cached) $ECHO_C" >&6
24481 cat >conftest.$ac_ext <<_ACEOF
24484 cat confdefs.h >>conftest.$ac_ext
24485 cat >>conftest.$ac_ext <<_ACEOF
24486 /* end confdefs.h. */
24488 #include <sys/types.h>
24489 #include <sys/socket.h>
24495 struct addrinfo s; s.ai_flags = AI_PASSIVE;
24500 rm -f conftest.$ac_objext
24501 if { (ac_try="$ac_compile"
24502 case "(($ac_try" in
24503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24504 *) ac_try_echo=$ac_try;;
24506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24507 (eval "$ac_compile") 2>conftest.er1
24509 grep -v '^ *+' conftest.er1 >conftest.err
24511 cat conftest.err >&5
24512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24513 (exit $ac_status); } && {
24514 test -z "$ac_c_werror_flag" ||
24515 test ! -s conftest.err
24516 } && test -s conftest.$ac_objext; then
24517 ac_cv_have_struct_addrinfo="yes"
24519 echo "$as_me: failed program was:" >&5
24520 sed 's/^/| /' conftest.$ac_ext >&5
24522 ac_cv_have_struct_addrinfo="no"
24526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24529 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
24530 echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; }
24531 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
24533 cat >>confdefs.h <<\_ACEOF
24534 #define HAVE_STRUCT_ADDRINFO 1
24539 { echo "$as_me:$LINENO: checking for struct timeval" >&5
24540 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
24541 if test "${ac_cv_have_struct_timeval+set}" = set; then
24542 echo $ECHO_N "(cached) $ECHO_C" >&6
24545 cat >conftest.$ac_ext <<_ACEOF
24548 cat confdefs.h >>conftest.$ac_ext
24549 cat >>conftest.$ac_ext <<_ACEOF
24550 /* end confdefs.h. */
24551 #include <sys/time.h>
24555 struct timeval tv; tv.tv_sec = 1;
24560 rm -f conftest.$ac_objext
24561 if { (ac_try="$ac_compile"
24562 case "(($ac_try" in
24563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24564 *) ac_try_echo=$ac_try;;
24566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24567 (eval "$ac_compile") 2>conftest.er1
24569 grep -v '^ *+' conftest.er1 >conftest.err
24571 cat conftest.err >&5
24572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24573 (exit $ac_status); } && {
24574 test -z "$ac_c_werror_flag" ||
24575 test ! -s conftest.err
24576 } && test -s conftest.$ac_objext; then
24577 ac_cv_have_struct_timeval="yes"
24579 echo "$as_me: failed program was:" >&5
24580 sed 's/^/| /' conftest.$ac_ext >&5
24582 ac_cv_have_struct_timeval="no"
24586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24589 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
24590 echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6; }
24591 if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
24593 cat >>confdefs.h <<\_ACEOF
24594 #define HAVE_STRUCT_TIMEVAL 1
24597 have_struct_timeval=1
24600 { echo "$as_me:$LINENO: checking for struct timespec" >&5
24601 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
24602 if test "${ac_cv_type_struct_timespec+set}" = set; then
24603 echo $ECHO_N "(cached) $ECHO_C" >&6
24605 cat >conftest.$ac_ext <<_ACEOF
24608 cat confdefs.h >>conftest.$ac_ext
24609 cat >>conftest.$ac_ext <<_ACEOF
24610 /* end confdefs.h. */
24611 $ac_includes_default
24612 typedef struct timespec ac__type_new_;
24616 if ((ac__type_new_ *) 0)
24618 if (sizeof (ac__type_new_))
24624 rm -f conftest.$ac_objext
24625 if { (ac_try="$ac_compile"
24626 case "(($ac_try" in
24627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24628 *) ac_try_echo=$ac_try;;
24630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24631 (eval "$ac_compile") 2>conftest.er1
24633 grep -v '^ *+' conftest.er1 >conftest.err
24635 cat conftest.err >&5
24636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24637 (exit $ac_status); } && {
24638 test -z "$ac_c_werror_flag" ||
24639 test ! -s conftest.err
24640 } && test -s conftest.$ac_objext; then
24641 ac_cv_type_struct_timespec=yes
24643 echo "$as_me: failed program was:" >&5
24644 sed 's/^/| /' conftest.$ac_ext >&5
24646 ac_cv_type_struct_timespec=no
24649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24651 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
24652 echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
24653 if test $ac_cv_type_struct_timespec = yes; then
24655 cat >>confdefs.h <<_ACEOF
24656 #define HAVE_STRUCT_TIMESPEC 1
24663 # We need int64_t or else certian parts of the compile will fail.
24664 if test "x$ac_cv_have_int64_t" = "xno" && \
24665 test "x$ac_cv_sizeof_long_int" != "x8" && \
24666 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
24667 echo "OpenSSH requires int64_t support. Contact your vendor or install"
24668 echo "an alternative compiler (I.E., GCC) before continuing."
24672 if test "$cross_compiling" = yes; then
24673 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
24674 echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
24677 cat >conftest.$ac_ext <<_ACEOF
24680 cat confdefs.h >>conftest.$ac_ext
24681 cat >>conftest.$ac_ext <<_ACEOF
24682 /* end confdefs.h. */
24685 #include <string.h>
24686 #ifdef HAVE_SNPRINTF
24690 char expected_out[50];
24692 #if (SIZEOF_LONG_INT == 8)
24693 long int num = 0x7fffffffffffffff;
24695 long long num = 0x7fffffffffffffffll;
24697 strcpy(expected_out, "9223372036854775807");
24698 snprintf(buf, mazsize, "%lld", num);
24699 if(strcmp(buf, expected_out) != 0)
24704 main() { exit(0); }
24708 rm -f conftest$ac_exeext
24709 if { (ac_try="$ac_link"
24710 case "(($ac_try" in
24711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24712 *) ac_try_echo=$ac_try;;
24714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24715 (eval "$ac_link") 2>&5
24717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24719 { (case "(($ac_try" in
24720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24721 *) ac_try_echo=$ac_try;;
24723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24724 (eval "$ac_try") 2>&5
24726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727 (exit $ac_status); }; }; then
24730 echo "$as_me: program exited with status $ac_status" >&5
24731 echo "$as_me: failed program was:" >&5
24732 sed 's/^/| /' conftest.$ac_ext >&5
24734 ( exit $ac_status )
24735 cat >>confdefs.h <<\_ACEOF
24736 #define BROKEN_SNPRINTF 1
24740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24747 # look for field 'ut_host' in header 'utmp.h'
24748 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
24749 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
24750 { echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
24751 echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6; }
24752 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24753 echo $ECHO_N "(cached) $ECHO_C" >&6
24756 cat >conftest.$ac_ext <<_ACEOF
24759 cat confdefs.h >>conftest.$ac_ext
24760 cat >>conftest.$ac_ext <<_ACEOF
24761 /* end confdefs.h. */
24765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24766 $EGREP "ut_host" >/dev/null 2>&1; then
24767 eval "$ossh_varname=yes"
24769 eval "$ossh_varname=no"
24775 ossh_result=`eval 'echo $'"$ossh_varname"`
24776 if test -n "`echo $ossh_varname`"; then
24777 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24778 echo "${ECHO_T}$ossh_result" >&6; }
24779 if test "x$ossh_result" = "xyes"; then
24781 cat >>confdefs.h <<\_ACEOF
24782 #define HAVE_HOST_IN_UTMP 1
24787 { echo "$as_me:$LINENO: result: no" >&5
24788 echo "${ECHO_T}no" >&6; }
24792 # look for field 'ut_host' in header 'utmpx.h'
24793 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
24794 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
24795 { echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
24796 echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6; }
24797 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24798 echo $ECHO_N "(cached) $ECHO_C" >&6
24801 cat >conftest.$ac_ext <<_ACEOF
24804 cat confdefs.h >>conftest.$ac_ext
24805 cat >>conftest.$ac_ext <<_ACEOF
24806 /* end confdefs.h. */
24810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24811 $EGREP "ut_host" >/dev/null 2>&1; then
24812 eval "$ossh_varname=yes"
24814 eval "$ossh_varname=no"
24820 ossh_result=`eval 'echo $'"$ossh_varname"`
24821 if test -n "`echo $ossh_varname`"; then
24822 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24823 echo "${ECHO_T}$ossh_result" >&6; }
24824 if test "x$ossh_result" = "xyes"; then
24826 cat >>confdefs.h <<\_ACEOF
24827 #define HAVE_HOST_IN_UTMPX 1
24832 { echo "$as_me:$LINENO: result: no" >&5
24833 echo "${ECHO_T}no" >&6; }
24837 # look for field 'syslen' in header 'utmpx.h'
24838 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
24839 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
24840 { echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
24841 echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6; }
24842 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24843 echo $ECHO_N "(cached) $ECHO_C" >&6
24846 cat >conftest.$ac_ext <<_ACEOF
24849 cat confdefs.h >>conftest.$ac_ext
24850 cat >>conftest.$ac_ext <<_ACEOF
24851 /* end confdefs.h. */
24855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24856 $EGREP "syslen" >/dev/null 2>&1; then
24857 eval "$ossh_varname=yes"
24859 eval "$ossh_varname=no"
24865 ossh_result=`eval 'echo $'"$ossh_varname"`
24866 if test -n "`echo $ossh_varname`"; then
24867 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24868 echo "${ECHO_T}$ossh_result" >&6; }
24869 if test "x$ossh_result" = "xyes"; then
24871 cat >>confdefs.h <<\_ACEOF
24872 #define HAVE_SYSLEN_IN_UTMPX 1
24877 { echo "$as_me:$LINENO: result: no" >&5
24878 echo "${ECHO_T}no" >&6; }
24882 # look for field 'ut_pid' in header 'utmp.h'
24883 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
24884 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
24885 { echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
24886 echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6; }
24887 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24888 echo $ECHO_N "(cached) $ECHO_C" >&6
24891 cat >conftest.$ac_ext <<_ACEOF
24894 cat confdefs.h >>conftest.$ac_ext
24895 cat >>conftest.$ac_ext <<_ACEOF
24896 /* end confdefs.h. */
24900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24901 $EGREP "ut_pid" >/dev/null 2>&1; then
24902 eval "$ossh_varname=yes"
24904 eval "$ossh_varname=no"
24910 ossh_result=`eval 'echo $'"$ossh_varname"`
24911 if test -n "`echo $ossh_varname`"; then
24912 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24913 echo "${ECHO_T}$ossh_result" >&6; }
24914 if test "x$ossh_result" = "xyes"; then
24916 cat >>confdefs.h <<\_ACEOF
24917 #define HAVE_PID_IN_UTMP 1
24922 { echo "$as_me:$LINENO: result: no" >&5
24923 echo "${ECHO_T}no" >&6; }
24927 # look for field 'ut_type' in header 'utmp.h'
24928 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
24929 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
24930 { echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
24931 echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6; }
24932 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24933 echo $ECHO_N "(cached) $ECHO_C" >&6
24936 cat >conftest.$ac_ext <<_ACEOF
24939 cat confdefs.h >>conftest.$ac_ext
24940 cat >>conftest.$ac_ext <<_ACEOF
24941 /* end confdefs.h. */
24945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24946 $EGREP "ut_type" >/dev/null 2>&1; then
24947 eval "$ossh_varname=yes"
24949 eval "$ossh_varname=no"
24955 ossh_result=`eval 'echo $'"$ossh_varname"`
24956 if test -n "`echo $ossh_varname`"; then
24957 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24958 echo "${ECHO_T}$ossh_result" >&6; }
24959 if test "x$ossh_result" = "xyes"; then
24961 cat >>confdefs.h <<\_ACEOF
24962 #define HAVE_TYPE_IN_UTMP 1
24967 { echo "$as_me:$LINENO: result: no" >&5
24968 echo "${ECHO_T}no" >&6; }
24972 # look for field 'ut_type' in header 'utmpx.h'
24973 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
24974 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
24975 { echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
24976 echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6; }
24977 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24978 echo $ECHO_N "(cached) $ECHO_C" >&6
24981 cat >conftest.$ac_ext <<_ACEOF
24984 cat confdefs.h >>conftest.$ac_ext
24985 cat >>conftest.$ac_ext <<_ACEOF
24986 /* end confdefs.h. */
24990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24991 $EGREP "ut_type" >/dev/null 2>&1; then
24992 eval "$ossh_varname=yes"
24994 eval "$ossh_varname=no"
25000 ossh_result=`eval 'echo $'"$ossh_varname"`
25001 if test -n "`echo $ossh_varname`"; then
25002 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25003 echo "${ECHO_T}$ossh_result" >&6; }
25004 if test "x$ossh_result" = "xyes"; then
25006 cat >>confdefs.h <<\_ACEOF
25007 #define HAVE_TYPE_IN_UTMPX 1
25012 { echo "$as_me:$LINENO: result: no" >&5
25013 echo "${ECHO_T}no" >&6; }
25017 # look for field 'ut_tv' in header 'utmp.h'
25018 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25019 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
25020 { echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
25021 echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6; }
25022 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25023 echo $ECHO_N "(cached) $ECHO_C" >&6
25026 cat >conftest.$ac_ext <<_ACEOF
25029 cat confdefs.h >>conftest.$ac_ext
25030 cat >>conftest.$ac_ext <<_ACEOF
25031 /* end confdefs.h. */
25035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25036 $EGREP "ut_tv" >/dev/null 2>&1; then
25037 eval "$ossh_varname=yes"
25039 eval "$ossh_varname=no"
25045 ossh_result=`eval 'echo $'"$ossh_varname"`
25046 if test -n "`echo $ossh_varname`"; then
25047 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25048 echo "${ECHO_T}$ossh_result" >&6; }
25049 if test "x$ossh_result" = "xyes"; then
25051 cat >>confdefs.h <<\_ACEOF
25052 #define HAVE_TV_IN_UTMP 1
25057 { echo "$as_me:$LINENO: result: no" >&5
25058 echo "${ECHO_T}no" >&6; }
25062 # look for field 'ut_id' in header 'utmp.h'
25063 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25064 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
25065 { echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
25066 echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6; }
25067 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25068 echo $ECHO_N "(cached) $ECHO_C" >&6
25071 cat >conftest.$ac_ext <<_ACEOF
25074 cat confdefs.h >>conftest.$ac_ext
25075 cat >>conftest.$ac_ext <<_ACEOF
25076 /* end confdefs.h. */
25080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25081 $EGREP "ut_id" >/dev/null 2>&1; then
25082 eval "$ossh_varname=yes"
25084 eval "$ossh_varname=no"
25090 ossh_result=`eval 'echo $'"$ossh_varname"`
25091 if test -n "`echo $ossh_varname`"; then
25092 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25093 echo "${ECHO_T}$ossh_result" >&6; }
25094 if test "x$ossh_result" = "xyes"; then
25096 cat >>confdefs.h <<\_ACEOF
25097 #define HAVE_ID_IN_UTMP 1
25102 { echo "$as_me:$LINENO: result: no" >&5
25103 echo "${ECHO_T}no" >&6; }
25107 # look for field 'ut_id' in header 'utmpx.h'
25108 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25109 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
25110 { echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
25111 echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6; }
25112 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25113 echo $ECHO_N "(cached) $ECHO_C" >&6
25116 cat >conftest.$ac_ext <<_ACEOF
25119 cat confdefs.h >>conftest.$ac_ext
25120 cat >>conftest.$ac_ext <<_ACEOF
25121 /* end confdefs.h. */
25125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25126 $EGREP "ut_id" >/dev/null 2>&1; then
25127 eval "$ossh_varname=yes"
25129 eval "$ossh_varname=no"
25135 ossh_result=`eval 'echo $'"$ossh_varname"`
25136 if test -n "`echo $ossh_varname`"; then
25137 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25138 echo "${ECHO_T}$ossh_result" >&6; }
25139 if test "x$ossh_result" = "xyes"; then
25141 cat >>confdefs.h <<\_ACEOF
25142 #define HAVE_ID_IN_UTMPX 1
25147 { echo "$as_me:$LINENO: result: no" >&5
25148 echo "${ECHO_T}no" >&6; }
25152 # look for field 'ut_addr' in header 'utmp.h'
25153 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25154 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
25155 { echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
25156 echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6; }
25157 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25158 echo $ECHO_N "(cached) $ECHO_C" >&6
25161 cat >conftest.$ac_ext <<_ACEOF
25164 cat confdefs.h >>conftest.$ac_ext
25165 cat >>conftest.$ac_ext <<_ACEOF
25166 /* end confdefs.h. */
25170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25171 $EGREP "ut_addr" >/dev/null 2>&1; then
25172 eval "$ossh_varname=yes"
25174 eval "$ossh_varname=no"
25180 ossh_result=`eval 'echo $'"$ossh_varname"`
25181 if test -n "`echo $ossh_varname`"; then
25182 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25183 echo "${ECHO_T}$ossh_result" >&6; }
25184 if test "x$ossh_result" = "xyes"; then
25186 cat >>confdefs.h <<\_ACEOF
25187 #define HAVE_ADDR_IN_UTMP 1
25192 { echo "$as_me:$LINENO: result: no" >&5
25193 echo "${ECHO_T}no" >&6; }
25197 # look for field 'ut_addr' in header 'utmpx.h'
25198 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25199 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
25200 { echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
25201 echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6; }
25202 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25203 echo $ECHO_N "(cached) $ECHO_C" >&6
25206 cat >conftest.$ac_ext <<_ACEOF
25209 cat confdefs.h >>conftest.$ac_ext
25210 cat >>conftest.$ac_ext <<_ACEOF
25211 /* end confdefs.h. */
25215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25216 $EGREP "ut_addr" >/dev/null 2>&1; then
25217 eval "$ossh_varname=yes"
25219 eval "$ossh_varname=no"
25225 ossh_result=`eval 'echo $'"$ossh_varname"`
25226 if test -n "`echo $ossh_varname`"; then
25227 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25228 echo "${ECHO_T}$ossh_result" >&6; }
25229 if test "x$ossh_result" = "xyes"; then
25231 cat >>confdefs.h <<\_ACEOF
25232 #define HAVE_ADDR_IN_UTMPX 1
25237 { echo "$as_me:$LINENO: result: no" >&5
25238 echo "${ECHO_T}no" >&6; }
25242 # look for field 'ut_addr_v6' in header 'utmp.h'
25243 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25244 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
25245 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
25246 echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6; }
25247 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25248 echo $ECHO_N "(cached) $ECHO_C" >&6
25251 cat >conftest.$ac_ext <<_ACEOF
25254 cat confdefs.h >>conftest.$ac_ext
25255 cat >>conftest.$ac_ext <<_ACEOF
25256 /* end confdefs.h. */
25260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25261 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
25262 eval "$ossh_varname=yes"
25264 eval "$ossh_varname=no"
25270 ossh_result=`eval 'echo $'"$ossh_varname"`
25271 if test -n "`echo $ossh_varname`"; then
25272 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25273 echo "${ECHO_T}$ossh_result" >&6; }
25274 if test "x$ossh_result" = "xyes"; then
25276 cat >>confdefs.h <<\_ACEOF
25277 #define HAVE_ADDR_V6_IN_UTMP 1
25282 { echo "$as_me:$LINENO: result: no" >&5
25283 echo "${ECHO_T}no" >&6; }
25287 # look for field 'ut_addr_v6' in header 'utmpx.h'
25288 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25289 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
25290 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
25291 echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6; }
25292 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25293 echo $ECHO_N "(cached) $ECHO_C" >&6
25296 cat >conftest.$ac_ext <<_ACEOF
25299 cat confdefs.h >>conftest.$ac_ext
25300 cat >>conftest.$ac_ext <<_ACEOF
25301 /* end confdefs.h. */
25305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25306 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
25307 eval "$ossh_varname=yes"
25309 eval "$ossh_varname=no"
25315 ossh_result=`eval 'echo $'"$ossh_varname"`
25316 if test -n "`echo $ossh_varname`"; then
25317 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25318 echo "${ECHO_T}$ossh_result" >&6; }
25319 if test "x$ossh_result" = "xyes"; then
25321 cat >>confdefs.h <<\_ACEOF
25322 #define HAVE_ADDR_V6_IN_UTMPX 1
25327 { echo "$as_me:$LINENO: result: no" >&5
25328 echo "${ECHO_T}no" >&6; }
25332 # look for field 'ut_exit' in header 'utmp.h'
25333 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25334 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
25335 { echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
25336 echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6; }
25337 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25338 echo $ECHO_N "(cached) $ECHO_C" >&6
25341 cat >conftest.$ac_ext <<_ACEOF
25344 cat confdefs.h >>conftest.$ac_ext
25345 cat >>conftest.$ac_ext <<_ACEOF
25346 /* end confdefs.h. */
25350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25351 $EGREP "ut_exit" >/dev/null 2>&1; then
25352 eval "$ossh_varname=yes"
25354 eval "$ossh_varname=no"
25360 ossh_result=`eval 'echo $'"$ossh_varname"`
25361 if test -n "`echo $ossh_varname`"; then
25362 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25363 echo "${ECHO_T}$ossh_result" >&6; }
25364 if test "x$ossh_result" = "xyes"; then
25366 cat >>confdefs.h <<\_ACEOF
25367 #define HAVE_EXIT_IN_UTMP 1
25372 { echo "$as_me:$LINENO: result: no" >&5
25373 echo "${ECHO_T}no" >&6; }
25377 # look for field 'ut_time' in header 'utmp.h'
25378 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25379 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
25380 { echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
25381 echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6; }
25382 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25383 echo $ECHO_N "(cached) $ECHO_C" >&6
25386 cat >conftest.$ac_ext <<_ACEOF
25389 cat confdefs.h >>conftest.$ac_ext
25390 cat >>conftest.$ac_ext <<_ACEOF
25391 /* end confdefs.h. */
25395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25396 $EGREP "ut_time" >/dev/null 2>&1; then
25397 eval "$ossh_varname=yes"
25399 eval "$ossh_varname=no"
25405 ossh_result=`eval 'echo $'"$ossh_varname"`
25406 if test -n "`echo $ossh_varname`"; then
25407 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25408 echo "${ECHO_T}$ossh_result" >&6; }
25409 if test "x$ossh_result" = "xyes"; then
25411 cat >>confdefs.h <<\_ACEOF
25412 #define HAVE_TIME_IN_UTMP 1
25417 { echo "$as_me:$LINENO: result: no" >&5
25418 echo "${ECHO_T}no" >&6; }
25422 # look for field 'ut_time' in header 'utmpx.h'
25423 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25424 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
25425 { echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
25426 echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6; }
25427 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25428 echo $ECHO_N "(cached) $ECHO_C" >&6
25431 cat >conftest.$ac_ext <<_ACEOF
25434 cat confdefs.h >>conftest.$ac_ext
25435 cat >>conftest.$ac_ext <<_ACEOF
25436 /* end confdefs.h. */
25440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25441 $EGREP "ut_time" >/dev/null 2>&1; then
25442 eval "$ossh_varname=yes"
25444 eval "$ossh_varname=no"
25450 ossh_result=`eval 'echo $'"$ossh_varname"`
25451 if test -n "`echo $ossh_varname`"; then
25452 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25453 echo "${ECHO_T}$ossh_result" >&6; }
25454 if test "x$ossh_result" = "xyes"; then
25456 cat >>confdefs.h <<\_ACEOF
25457 #define HAVE_TIME_IN_UTMPX 1
25462 { echo "$as_me:$LINENO: result: no" >&5
25463 echo "${ECHO_T}no" >&6; }
25467 # look for field 'ut_tv' in header 'utmpx.h'
25468 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25469 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
25470 { echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
25471 echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6; }
25472 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25473 echo $ECHO_N "(cached) $ECHO_C" >&6
25476 cat >conftest.$ac_ext <<_ACEOF
25479 cat confdefs.h >>conftest.$ac_ext
25480 cat >>conftest.$ac_ext <<_ACEOF
25481 /* end confdefs.h. */
25485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25486 $EGREP "ut_tv" >/dev/null 2>&1; then
25487 eval "$ossh_varname=yes"
25489 eval "$ossh_varname=no"
25495 ossh_result=`eval 'echo $'"$ossh_varname"`
25496 if test -n "`echo $ossh_varname`"; then
25497 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25498 echo "${ECHO_T}$ossh_result" >&6; }
25499 if test "x$ossh_result" = "xyes"; then
25501 cat >>confdefs.h <<\_ACEOF
25502 #define HAVE_TV_IN_UTMPX 1
25507 { echo "$as_me:$LINENO: result: no" >&5
25508 echo "${ECHO_T}no" >&6; }
25512 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
25513 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
25514 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
25515 echo $ECHO_N "(cached) $ECHO_C" >&6
25517 cat >conftest.$ac_ext <<_ACEOF
25520 cat confdefs.h >>conftest.$ac_ext
25521 cat >>conftest.$ac_ext <<_ACEOF
25522 /* end confdefs.h. */
25523 $ac_includes_default
25527 static struct stat ac_aggr;
25528 if (ac_aggr.st_blksize)
25534 rm -f conftest.$ac_objext
25535 if { (ac_try="$ac_compile"
25536 case "(($ac_try" in
25537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25538 *) ac_try_echo=$ac_try;;
25540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25541 (eval "$ac_compile") 2>conftest.er1
25543 grep -v '^ *+' conftest.er1 >conftest.err
25545 cat conftest.err >&5
25546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25547 (exit $ac_status); } && {
25548 test -z "$ac_c_werror_flag" ||
25549 test ! -s conftest.err
25550 } && test -s conftest.$ac_objext; then
25551 ac_cv_member_struct_stat_st_blksize=yes
25553 echo "$as_me: failed program was:" >&5
25554 sed 's/^/| /' conftest.$ac_ext >&5
25556 cat >conftest.$ac_ext <<_ACEOF
25559 cat confdefs.h >>conftest.$ac_ext
25560 cat >>conftest.$ac_ext <<_ACEOF
25561 /* end confdefs.h. */
25562 $ac_includes_default
25566 static struct stat ac_aggr;
25567 if (sizeof ac_aggr.st_blksize)
25573 rm -f conftest.$ac_objext
25574 if { (ac_try="$ac_compile"
25575 case "(($ac_try" in
25576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25577 *) ac_try_echo=$ac_try;;
25579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25580 (eval "$ac_compile") 2>conftest.er1
25582 grep -v '^ *+' conftest.er1 >conftest.err
25584 cat conftest.err >&5
25585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586 (exit $ac_status); } && {
25587 test -z "$ac_c_werror_flag" ||
25588 test ! -s conftest.err
25589 } && test -s conftest.$ac_objext; then
25590 ac_cv_member_struct_stat_st_blksize=yes
25592 echo "$as_me: failed program was:" >&5
25593 sed 's/^/| /' conftest.$ac_ext >&5
25595 ac_cv_member_struct_stat_st_blksize=no
25598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25603 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
25604 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
25605 if test $ac_cv_member_struct_stat_st_blksize = yes; then
25607 cat >>confdefs.h <<_ACEOF
25608 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25614 { echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5
25615 echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6; }
25616 if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then
25617 echo $ECHO_N "(cached) $ECHO_C" >&6
25619 cat >conftest.$ac_ext <<_ACEOF
25622 cat confdefs.h >>conftest.$ac_ext
25623 cat >>conftest.$ac_ext <<_ACEOF
25624 /* end confdefs.h. */
25627 #if HAVE_SYS_TYPES_H
25628 # include <sys/types.h>
25630 #include <netinet/in.h>
25631 #include <arpa/nameser.h>
25632 #include <resolv.h>
25638 static struct __res_state ac_aggr;
25639 if (ac_aggr.retrans)
25645 rm -f conftest.$ac_objext
25646 if { (ac_try="$ac_compile"
25647 case "(($ac_try" in
25648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25649 *) ac_try_echo=$ac_try;;
25651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25652 (eval "$ac_compile") 2>conftest.er1
25654 grep -v '^ *+' conftest.er1 >conftest.err
25656 cat conftest.err >&5
25657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25658 (exit $ac_status); } && {
25659 test -z "$ac_c_werror_flag" ||
25660 test ! -s conftest.err
25661 } && test -s conftest.$ac_objext; then
25662 ac_cv_member_struct___res_state_retrans=yes
25664 echo "$as_me: failed program was:" >&5
25665 sed 's/^/| /' conftest.$ac_ext >&5
25667 cat >conftest.$ac_ext <<_ACEOF
25670 cat confdefs.h >>conftest.$ac_ext
25671 cat >>conftest.$ac_ext <<_ACEOF
25672 /* end confdefs.h. */
25675 #if HAVE_SYS_TYPES_H
25676 # include <sys/types.h>
25678 #include <netinet/in.h>
25679 #include <arpa/nameser.h>
25680 #include <resolv.h>
25686 static struct __res_state ac_aggr;
25687 if (sizeof ac_aggr.retrans)
25693 rm -f conftest.$ac_objext
25694 if { (ac_try="$ac_compile"
25695 case "(($ac_try" in
25696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25697 *) ac_try_echo=$ac_try;;
25699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25700 (eval "$ac_compile") 2>conftest.er1
25702 grep -v '^ *+' conftest.er1 >conftest.err
25704 cat conftest.err >&5
25705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706 (exit $ac_status); } && {
25707 test -z "$ac_c_werror_flag" ||
25708 test ! -s conftest.err
25709 } && test -s conftest.$ac_objext; then
25710 ac_cv_member_struct___res_state_retrans=yes
25712 echo "$as_me: failed program was:" >&5
25713 sed 's/^/| /' conftest.$ac_ext >&5
25715 ac_cv_member_struct___res_state_retrans=no
25718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25723 { echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5
25724 echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6; }
25725 if test $ac_cv_member_struct___res_state_retrans = yes; then
25729 cat >>confdefs.h <<\_ACEOF
25730 #define __res_state state
25736 { echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
25737 echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
25738 if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
25739 echo $ECHO_N "(cached) $ECHO_C" >&6
25742 cat >conftest.$ac_ext <<_ACEOF
25745 cat confdefs.h >>conftest.$ac_ext
25746 cat >>conftest.$ac_ext <<_ACEOF
25747 /* end confdefs.h. */
25749 #include <sys/types.h>
25750 #include <sys/socket.h>
25755 struct sockaddr_storage s; s.ss_family = 1;
25760 rm -f conftest.$ac_objext
25761 if { (ac_try="$ac_compile"
25762 case "(($ac_try" in
25763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25764 *) ac_try_echo=$ac_try;;
25766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25767 (eval "$ac_compile") 2>conftest.er1
25769 grep -v '^ *+' conftest.er1 >conftest.err
25771 cat conftest.err >&5
25772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773 (exit $ac_status); } && {
25774 test -z "$ac_c_werror_flag" ||
25775 test ! -s conftest.err
25776 } && test -s conftest.$ac_objext; then
25777 ac_cv_have_ss_family_in_struct_ss="yes"
25779 echo "$as_me: failed program was:" >&5
25780 sed 's/^/| /' conftest.$ac_ext >&5
25782 ac_cv_have_ss_family_in_struct_ss="no"
25785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25788 { echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
25789 echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6; }
25790 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
25792 cat >>confdefs.h <<\_ACEOF
25793 #define HAVE_SS_FAMILY_IN_SS 1
25798 { echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
25799 echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
25800 if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
25801 echo $ECHO_N "(cached) $ECHO_C" >&6
25804 cat >conftest.$ac_ext <<_ACEOF
25807 cat confdefs.h >>conftest.$ac_ext
25808 cat >>conftest.$ac_ext <<_ACEOF
25809 /* end confdefs.h. */
25811 #include <sys/types.h>
25812 #include <sys/socket.h>
25817 struct sockaddr_storage s; s.__ss_family = 1;
25822 rm -f conftest.$ac_objext
25823 if { (ac_try="$ac_compile"
25824 case "(($ac_try" in
25825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25826 *) ac_try_echo=$ac_try;;
25828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25829 (eval "$ac_compile") 2>conftest.er1
25831 grep -v '^ *+' conftest.er1 >conftest.err
25833 cat conftest.err >&5
25834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25835 (exit $ac_status); } && {
25836 test -z "$ac_c_werror_flag" ||
25837 test ! -s conftest.err
25838 } && test -s conftest.$ac_objext; then
25839 ac_cv_have___ss_family_in_struct_ss="yes"
25841 echo "$as_me: failed program was:" >&5
25842 sed 's/^/| /' conftest.$ac_ext >&5
25844 ac_cv_have___ss_family_in_struct_ss="no"
25848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25851 { echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
25852 echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6; }
25853 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
25855 cat >>confdefs.h <<\_ACEOF
25856 #define HAVE___SS_FAMILY_IN_SS 1
25861 { echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5
25862 echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6; }
25863 if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
25864 echo $ECHO_N "(cached) $ECHO_C" >&6
25867 cat >conftest.$ac_ext <<_ACEOF
25870 cat confdefs.h >>conftest.$ac_ext
25871 cat >>conftest.$ac_ext <<_ACEOF
25872 /* end confdefs.h. */
25879 struct passwd p; p.pw_class = 0;
25884 rm -f conftest.$ac_objext
25885 if { (ac_try="$ac_compile"
25886 case "(($ac_try" in
25887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25888 *) ac_try_echo=$ac_try;;
25890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25891 (eval "$ac_compile") 2>conftest.er1
25893 grep -v '^ *+' conftest.er1 >conftest.err
25895 cat conftest.err >&5
25896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25897 (exit $ac_status); } && {
25898 test -z "$ac_c_werror_flag" ||
25899 test ! -s conftest.err
25900 } && test -s conftest.$ac_objext; then
25901 ac_cv_have_pw_class_in_struct_passwd="yes"
25903 echo "$as_me: failed program was:" >&5
25904 sed 's/^/| /' conftest.$ac_ext >&5
25906 ac_cv_have_pw_class_in_struct_passwd="no"
25910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25913 { echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
25914 echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6; }
25915 if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
25917 cat >>confdefs.h <<\_ACEOF
25918 #define HAVE_PW_CLASS_IN_PASSWD 1
25923 { echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5
25924 echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6; }
25925 if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
25926 echo $ECHO_N "(cached) $ECHO_C" >&6
25929 cat >conftest.$ac_ext <<_ACEOF
25932 cat confdefs.h >>conftest.$ac_ext
25933 cat >>conftest.$ac_ext <<_ACEOF
25934 /* end confdefs.h. */
25941 struct passwd p; p.pw_expire = 0;
25946 rm -f conftest.$ac_objext
25947 if { (ac_try="$ac_compile"
25948 case "(($ac_try" in
25949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25950 *) ac_try_echo=$ac_try;;
25952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25953 (eval "$ac_compile") 2>conftest.er1
25955 grep -v '^ *+' conftest.er1 >conftest.err
25957 cat conftest.err >&5
25958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25959 (exit $ac_status); } && {
25960 test -z "$ac_c_werror_flag" ||
25961 test ! -s conftest.err
25962 } && test -s conftest.$ac_objext; then
25963 ac_cv_have_pw_expire_in_struct_passwd="yes"
25965 echo "$as_me: failed program was:" >&5
25966 sed 's/^/| /' conftest.$ac_ext >&5
25968 ac_cv_have_pw_expire_in_struct_passwd="no"
25972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25975 { echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
25976 echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6; }
25977 if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
25979 cat >>confdefs.h <<\_ACEOF
25980 #define HAVE_PW_EXPIRE_IN_PASSWD 1
25985 { echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5
25986 echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6; }
25987 if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
25988 echo $ECHO_N "(cached) $ECHO_C" >&6
25991 cat >conftest.$ac_ext <<_ACEOF
25994 cat confdefs.h >>conftest.$ac_ext
25995 cat >>conftest.$ac_ext <<_ACEOF
25996 /* end confdefs.h. */
26003 struct passwd p; p.pw_change = 0;
26008 rm -f conftest.$ac_objext
26009 if { (ac_try="$ac_compile"
26010 case "(($ac_try" in
26011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26012 *) ac_try_echo=$ac_try;;
26014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26015 (eval "$ac_compile") 2>conftest.er1
26017 grep -v '^ *+' conftest.er1 >conftest.err
26019 cat conftest.err >&5
26020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26021 (exit $ac_status); } && {
26022 test -z "$ac_c_werror_flag" ||
26023 test ! -s conftest.err
26024 } && test -s conftest.$ac_objext; then
26025 ac_cv_have_pw_change_in_struct_passwd="yes"
26027 echo "$as_me: failed program was:" >&5
26028 sed 's/^/| /' conftest.$ac_ext >&5
26030 ac_cv_have_pw_change_in_struct_passwd="no"
26034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26037 { echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
26038 echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6; }
26039 if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
26041 cat >>confdefs.h <<\_ACEOF
26042 #define HAVE_PW_CHANGE_IN_PASSWD 1
26047 { echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
26048 echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; }
26049 if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
26050 echo $ECHO_N "(cached) $ECHO_C" >&6
26053 cat >conftest.$ac_ext <<_ACEOF
26055 #include <sys/types.h>
26056 #include <sys/socket.h>
26057 #include <sys/uio.h>
26059 #ifdef msg_accrights
26060 #error "msg_accrights is a macro"
26064 m.msg_accrights = 0;
26069 rm -f conftest.$ac_objext
26070 if { (ac_try="$ac_compile"
26071 case "(($ac_try" in
26072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26073 *) ac_try_echo=$ac_try;;
26075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26076 (eval "$ac_compile") 2>conftest.er1
26078 grep -v '^ *+' conftest.er1 >conftest.err
26080 cat conftest.err >&5
26081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26082 (exit $ac_status); } && {
26083 test -z "$ac_c_werror_flag" ||
26084 test ! -s conftest.err
26085 } && test -s conftest.$ac_objext; then
26086 ac_cv_have_accrights_in_msghdr="yes"
26088 echo "$as_me: failed program was:" >&5
26089 sed 's/^/| /' conftest.$ac_ext >&5
26091 ac_cv_have_accrights_in_msghdr="no"
26095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26098 { echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
26099 echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; }
26100 if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
26102 cat >>confdefs.h <<\_ACEOF
26103 #define HAVE_ACCRIGHTS_IN_MSGHDR 1
26108 { echo "$as_me:$LINENO: checking if struct statvfs.f_fsid is integral type" >&5
26109 echo $ECHO_N "checking if struct statvfs.f_fsid is integral type... $ECHO_C" >&6; }
26110 cat >conftest.$ac_ext <<_ACEOF
26113 cat confdefs.h >>conftest.$ac_ext
26114 cat >>conftest.$ac_ext <<_ACEOF
26115 /* end confdefs.h. */
26117 #include <sys/types.h>
26118 #include <sys/stat.h>
26119 #ifdef HAVE_SYS_TIME_H
26120 # include <sys/time.h>
26122 #ifdef HAVE_SYS_MOUNT_H
26123 #include <sys/mount.h>
26125 #ifdef HAVE_SYS_STATVFS_H
26126 #include <sys/statvfs.h>
26132 struct statvfs s; s.f_fsid = 0;
26137 rm -f conftest.$ac_objext
26138 if { (ac_try="$ac_compile"
26139 case "(($ac_try" in
26140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26141 *) ac_try_echo=$ac_try;;
26143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26144 (eval "$ac_compile") 2>conftest.er1
26146 grep -v '^ *+' conftest.er1 >conftest.err
26148 cat conftest.err >&5
26149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150 (exit $ac_status); } && {
26151 test -z "$ac_c_werror_flag" ||
26152 test ! -s conftest.err
26153 } && test -s conftest.$ac_objext; then
26154 { echo "$as_me:$LINENO: result: yes" >&5
26155 echo "${ECHO_T}yes" >&6; }
26157 echo "$as_me: failed program was:" >&5
26158 sed 's/^/| /' conftest.$ac_ext >&5
26160 { echo "$as_me:$LINENO: result: no" >&5
26161 echo "${ECHO_T}no" >&6; }
26163 { echo "$as_me:$LINENO: checking if fsid_t has member val" >&5
26164 echo $ECHO_N "checking if fsid_t has member val... $ECHO_C" >&6; }
26165 cat >conftest.$ac_ext <<_ACEOF
26168 cat confdefs.h >>conftest.$ac_ext
26169 cat >>conftest.$ac_ext <<_ACEOF
26170 /* end confdefs.h. */
26172 #include <sys/types.h>
26173 #include <sys/statvfs.h>
26177 fsid_t t; t.val[0] = 0;
26182 rm -f conftest.$ac_objext
26183 if { (ac_try="$ac_compile"
26184 case "(($ac_try" in
26185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26186 *) ac_try_echo=$ac_try;;
26188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26189 (eval "$ac_compile") 2>conftest.er1
26191 grep -v '^ *+' conftest.er1 >conftest.err
26193 cat conftest.err >&5
26194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26195 (exit $ac_status); } && {
26196 test -z "$ac_c_werror_flag" ||
26197 test ! -s conftest.err
26198 } && test -s conftest.$ac_objext; then
26199 { echo "$as_me:$LINENO: result: yes" >&5
26200 echo "${ECHO_T}yes" >&6; }
26202 cat >>confdefs.h <<\_ACEOF
26203 #define FSID_HAS_VAL 1
26207 echo "$as_me: failed program was:" >&5
26208 sed 's/^/| /' conftest.$ac_ext >&5
26210 { echo "$as_me:$LINENO: result: no" >&5
26211 echo "${ECHO_T}no" >&6; }
26214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26216 { echo "$as_me:$LINENO: checking if f_fsid has member __val" >&5
26217 echo $ECHO_N "checking if f_fsid has member __val... $ECHO_C" >&6; }
26218 cat >conftest.$ac_ext <<_ACEOF
26221 cat confdefs.h >>conftest.$ac_ext
26222 cat >>conftest.$ac_ext <<_ACEOF
26223 /* end confdefs.h. */
26225 #include <sys/types.h>
26226 #include <sys/statvfs.h>
26230 fsid_t t; t.__val[0] = 0;
26235 rm -f conftest.$ac_objext
26236 if { (ac_try="$ac_compile"
26237 case "(($ac_try" in
26238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26239 *) ac_try_echo=$ac_try;;
26241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26242 (eval "$ac_compile") 2>conftest.er1
26244 grep -v '^ *+' conftest.er1 >conftest.err
26246 cat conftest.err >&5
26247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248 (exit $ac_status); } && {
26249 test -z "$ac_c_werror_flag" ||
26250 test ! -s conftest.err
26251 } && test -s conftest.$ac_objext; then
26252 { echo "$as_me:$LINENO: result: yes" >&5
26253 echo "${ECHO_T}yes" >&6; }
26255 cat >>confdefs.h <<\_ACEOF
26256 #define FSID_HAS___VAL 1
26260 echo "$as_me: failed program was:" >&5
26261 sed 's/^/| /' conftest.$ac_ext >&5
26263 { echo "$as_me:$LINENO: result: no" >&5
26264 echo "${ECHO_T}no" >&6; }
26267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26273 { echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
26274 echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; }
26275 if test "${ac_cv_have_control_in_msghdr+set}" = set; then
26276 echo $ECHO_N "(cached) $ECHO_C" >&6
26279 cat >conftest.$ac_ext <<_ACEOF
26281 #include <sys/types.h>
26282 #include <sys/socket.h>
26283 #include <sys/uio.h>
26286 #error "msg_control is a macro"
26295 rm -f conftest.$ac_objext
26296 if { (ac_try="$ac_compile"
26297 case "(($ac_try" in
26298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26299 *) ac_try_echo=$ac_try;;
26301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26302 (eval "$ac_compile") 2>conftest.er1
26304 grep -v '^ *+' conftest.er1 >conftest.err
26306 cat conftest.err >&5
26307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26308 (exit $ac_status); } && {
26309 test -z "$ac_c_werror_flag" ||
26310 test ! -s conftest.err
26311 } && test -s conftest.$ac_objext; then
26312 ac_cv_have_control_in_msghdr="yes"
26314 echo "$as_me: failed program was:" >&5
26315 sed 's/^/| /' conftest.$ac_ext >&5
26317 ac_cv_have_control_in_msghdr="no"
26321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26324 { echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
26325 echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; }
26326 if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
26328 cat >>confdefs.h <<\_ACEOF
26329 #define HAVE_CONTROL_IN_MSGHDR 1
26334 { echo "$as_me:$LINENO: checking if libc defines __progname" >&5
26335 echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6; }
26336 if test "${ac_cv_libc_defines___progname+set}" = set; then
26337 echo $ECHO_N "(cached) $ECHO_C" >&6
26340 cat >conftest.$ac_ext <<_ACEOF
26343 cat confdefs.h >>conftest.$ac_ext
26344 cat >>conftest.$ac_ext <<_ACEOF
26345 /* end confdefs.h. */
26350 extern char *__progname; printf("%s", __progname);
26355 rm -f conftest.$ac_objext conftest$ac_exeext
26356 if { (ac_try="$ac_link"
26357 case "(($ac_try" in
26358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26359 *) ac_try_echo=$ac_try;;
26361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26362 (eval "$ac_link") 2>conftest.er1
26364 grep -v '^ *+' conftest.er1 >conftest.err
26366 cat conftest.err >&5
26367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368 (exit $ac_status); } && {
26369 test -z "$ac_c_werror_flag" ||
26370 test ! -s conftest.err
26371 } && test -s conftest$ac_exeext &&
26372 $as_test_x conftest$ac_exeext; then
26373 ac_cv_libc_defines___progname="yes"
26375 echo "$as_me: failed program was:" >&5
26376 sed 's/^/| /' conftest.$ac_ext >&5
26378 ac_cv_libc_defines___progname="no"
26382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26383 conftest$ac_exeext conftest.$ac_ext
26386 { echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
26387 echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6; }
26388 if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
26390 cat >>confdefs.h <<\_ACEOF
26391 #define HAVE___PROGNAME 1
26396 { echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
26397 echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; }
26398 if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
26399 echo $ECHO_N "(cached) $ECHO_C" >&6
26402 cat >conftest.$ac_ext <<_ACEOF
26405 cat confdefs.h >>conftest.$ac_ext
26406 cat >>conftest.$ac_ext <<_ACEOF
26407 /* end confdefs.h. */
26414 printf("%s", __FUNCTION__);
26419 rm -f conftest.$ac_objext conftest$ac_exeext
26420 if { (ac_try="$ac_link"
26421 case "(($ac_try" in
26422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26423 *) ac_try_echo=$ac_try;;
26425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26426 (eval "$ac_link") 2>conftest.er1
26428 grep -v '^ *+' conftest.er1 >conftest.err
26430 cat conftest.err >&5
26431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432 (exit $ac_status); } && {
26433 test -z "$ac_c_werror_flag" ||
26434 test ! -s conftest.err
26435 } && test -s conftest$ac_exeext &&
26436 $as_test_x conftest$ac_exeext; then
26437 ac_cv_cc_implements___FUNCTION__="yes"
26439 echo "$as_me: failed program was:" >&5
26440 sed 's/^/| /' conftest.$ac_ext >&5
26442 ac_cv_cc_implements___FUNCTION__="no"
26446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26447 conftest$ac_exeext conftest.$ac_ext
26450 { echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
26451 echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6; }
26452 if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
26454 cat >>confdefs.h <<\_ACEOF
26455 #define HAVE___FUNCTION__ 1
26460 { echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
26461 echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; }
26462 if test "${ac_cv_cc_implements___func__+set}" = set; then
26463 echo $ECHO_N "(cached) $ECHO_C" >&6
26466 cat >conftest.$ac_ext <<_ACEOF
26469 cat confdefs.h >>conftest.$ac_ext
26470 cat >>conftest.$ac_ext <<_ACEOF
26471 /* end confdefs.h. */
26478 printf("%s", __func__);
26483 rm -f conftest.$ac_objext conftest$ac_exeext
26484 if { (ac_try="$ac_link"
26485 case "(($ac_try" in
26486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26487 *) ac_try_echo=$ac_try;;
26489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26490 (eval "$ac_link") 2>conftest.er1
26492 grep -v '^ *+' conftest.er1 >conftest.err
26494 cat conftest.err >&5
26495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26496 (exit $ac_status); } && {
26497 test -z "$ac_c_werror_flag" ||
26498 test ! -s conftest.err
26499 } && test -s conftest$ac_exeext &&
26500 $as_test_x conftest$ac_exeext; then
26501 ac_cv_cc_implements___func__="yes"
26503 echo "$as_me: failed program was:" >&5
26504 sed 's/^/| /' conftest.$ac_ext >&5
26506 ac_cv_cc_implements___func__="no"
26510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26511 conftest$ac_exeext conftest.$ac_ext
26514 { echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
26515 echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6; }
26516 if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
26518 cat >>confdefs.h <<\_ACEOF
26519 #define HAVE___func__ 1
26524 { echo "$as_me:$LINENO: checking whether va_copy exists" >&5
26525 echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6; }
26526 if test "${ac_cv_have_va_copy+set}" = set; then
26527 echo $ECHO_N "(cached) $ECHO_C" >&6
26530 cat >conftest.$ac_ext <<_ACEOF
26533 cat confdefs.h >>conftest.$ac_ext
26534 cat >>conftest.$ac_ext <<_ACEOF
26535 /* end confdefs.h. */
26536 #include <stdarg.h>
26546 rm -f conftest.$ac_objext conftest$ac_exeext
26547 if { (ac_try="$ac_link"
26548 case "(($ac_try" in
26549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26550 *) ac_try_echo=$ac_try;;
26552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26553 (eval "$ac_link") 2>conftest.er1
26555 grep -v '^ *+' conftest.er1 >conftest.err
26557 cat conftest.err >&5
26558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26559 (exit $ac_status); } && {
26560 test -z "$ac_c_werror_flag" ||
26561 test ! -s conftest.err
26562 } && test -s conftest$ac_exeext &&
26563 $as_test_x conftest$ac_exeext; then
26564 ac_cv_have_va_copy="yes"
26566 echo "$as_me: failed program was:" >&5
26567 sed 's/^/| /' conftest.$ac_ext >&5
26569 ac_cv_have_va_copy="no"
26573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26574 conftest$ac_exeext conftest.$ac_ext
26577 { echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5
26578 echo "${ECHO_T}$ac_cv_have_va_copy" >&6; }
26579 if test "x$ac_cv_have_va_copy" = "xyes" ; then
26581 cat >>confdefs.h <<\_ACEOF
26582 #define HAVE_VA_COPY 1
26587 { echo "$as_me:$LINENO: checking whether __va_copy exists" >&5
26588 echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6; }
26589 if test "${ac_cv_have___va_copy+set}" = set; then
26590 echo $ECHO_N "(cached) $ECHO_C" >&6
26593 cat >conftest.$ac_ext <<_ACEOF
26596 cat confdefs.h >>conftest.$ac_ext
26597 cat >>conftest.$ac_ext <<_ACEOF
26598 /* end confdefs.h. */
26599 #include <stdarg.h>
26609 rm -f conftest.$ac_objext conftest$ac_exeext
26610 if { (ac_try="$ac_link"
26611 case "(($ac_try" in
26612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26613 *) ac_try_echo=$ac_try;;
26615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26616 (eval "$ac_link") 2>conftest.er1
26618 grep -v '^ *+' conftest.er1 >conftest.err
26620 cat conftest.err >&5
26621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26622 (exit $ac_status); } && {
26623 test -z "$ac_c_werror_flag" ||
26624 test ! -s conftest.err
26625 } && test -s conftest$ac_exeext &&
26626 $as_test_x conftest$ac_exeext; then
26627 ac_cv_have___va_copy="yes"
26629 echo "$as_me: failed program was:" >&5
26630 sed 's/^/| /' conftest.$ac_ext >&5
26632 ac_cv_have___va_copy="no"
26636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26637 conftest$ac_exeext conftest.$ac_ext
26640 { echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5
26641 echo "${ECHO_T}$ac_cv_have___va_copy" >&6; }
26642 if test "x$ac_cv_have___va_copy" = "xyes" ; then
26644 cat >>confdefs.h <<\_ACEOF
26645 #define HAVE___VA_COPY 1
26650 { echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
26651 echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6; }
26652 if test "${ac_cv_have_getopt_optreset+set}" = set; then
26653 echo $ECHO_N "(cached) $ECHO_C" >&6
26656 cat >conftest.$ac_ext <<_ACEOF
26659 cat confdefs.h >>conftest.$ac_ext
26660 cat >>conftest.$ac_ext <<_ACEOF
26661 /* end confdefs.h. */
26663 #include <getopt.h>
26668 extern int optreset; optreset = 0;
26673 rm -f conftest.$ac_objext conftest$ac_exeext
26674 if { (ac_try="$ac_link"
26675 case "(($ac_try" in
26676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26677 *) ac_try_echo=$ac_try;;
26679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26680 (eval "$ac_link") 2>conftest.er1
26682 grep -v '^ *+' conftest.er1 >conftest.err
26684 cat conftest.err >&5
26685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26686 (exit $ac_status); } && {
26687 test -z "$ac_c_werror_flag" ||
26688 test ! -s conftest.err
26689 } && test -s conftest$ac_exeext &&
26690 $as_test_x conftest$ac_exeext; then
26691 ac_cv_have_getopt_optreset="yes"
26693 echo "$as_me: failed program was:" >&5
26694 sed 's/^/| /' conftest.$ac_ext >&5
26696 ac_cv_have_getopt_optreset="no"
26700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26701 conftest$ac_exeext conftest.$ac_ext
26704 { echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
26705 echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6; }
26706 if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
26708 cat >>confdefs.h <<\_ACEOF
26709 #define HAVE_GETOPT_OPTRESET 1
26714 { echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
26715 echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6; }
26716 if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
26717 echo $ECHO_N "(cached) $ECHO_C" >&6
26720 cat >conftest.$ac_ext <<_ACEOF
26723 cat confdefs.h >>conftest.$ac_ext
26724 cat >>conftest.$ac_ext <<_ACEOF
26725 /* end confdefs.h. */
26730 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
26735 rm -f conftest.$ac_objext conftest$ac_exeext
26736 if { (ac_try="$ac_link"
26737 case "(($ac_try" in
26738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26739 *) ac_try_echo=$ac_try;;
26741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26742 (eval "$ac_link") 2>conftest.er1
26744 grep -v '^ *+' conftest.er1 >conftest.err
26746 cat conftest.err >&5
26747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26748 (exit $ac_status); } && {
26749 test -z "$ac_c_werror_flag" ||
26750 test ! -s conftest.err
26751 } && test -s conftest$ac_exeext &&
26752 $as_test_x conftest$ac_exeext; then
26753 ac_cv_libc_defines_sys_errlist="yes"
26755 echo "$as_me: failed program was:" >&5
26756 sed 's/^/| /' conftest.$ac_ext >&5
26758 ac_cv_libc_defines_sys_errlist="no"
26762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26763 conftest$ac_exeext conftest.$ac_ext
26766 { echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
26767 echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6; }
26768 if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
26770 cat >>confdefs.h <<\_ACEOF
26771 #define HAVE_SYS_ERRLIST 1
26777 { echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
26778 echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6; }
26779 if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
26780 echo $ECHO_N "(cached) $ECHO_C" >&6
26783 cat >conftest.$ac_ext <<_ACEOF
26786 cat confdefs.h >>conftest.$ac_ext
26787 cat >>conftest.$ac_ext <<_ACEOF
26788 /* end confdefs.h. */
26793 extern int sys_nerr; printf("%i", sys_nerr);
26798 rm -f conftest.$ac_objext conftest$ac_exeext
26799 if { (ac_try="$ac_link"
26800 case "(($ac_try" in
26801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26802 *) ac_try_echo=$ac_try;;
26804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26805 (eval "$ac_link") 2>conftest.er1
26807 grep -v '^ *+' conftest.er1 >conftest.err
26809 cat conftest.err >&5
26810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26811 (exit $ac_status); } && {
26812 test -z "$ac_c_werror_flag" ||
26813 test ! -s conftest.err
26814 } && test -s conftest$ac_exeext &&
26815 $as_test_x conftest$ac_exeext; then
26816 ac_cv_libc_defines_sys_nerr="yes"
26818 echo "$as_me: failed program was:" >&5
26819 sed 's/^/| /' conftest.$ac_ext >&5
26821 ac_cv_libc_defines_sys_nerr="no"
26825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26826 conftest$ac_exeext conftest.$ac_ext
26829 { echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
26830 echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6; }
26831 if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
26833 cat >>confdefs.h <<\_ACEOF
26834 #define HAVE_SYS_NERR 1
26839 # Check libraries needed by DNS fingerprint support
26840 { echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5
26841 echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6; }
26842 if test "${ac_cv_search_getrrsetbyname+set}" = set; then
26843 echo $ECHO_N "(cached) $ECHO_C" >&6
26845 ac_func_search_save_LIBS=$LIBS
26846 cat >conftest.$ac_ext <<_ACEOF
26849 cat confdefs.h >>conftest.$ac_ext
26850 cat >>conftest.$ac_ext <<_ACEOF
26851 /* end confdefs.h. */
26853 /* Override any GCC internal prototype to avoid an error.
26854 Use char because int might match the return type of a GCC
26855 builtin and then its argument prototype would still apply. */
26859 char getrrsetbyname ();
26863 return getrrsetbyname ();
26868 for ac_lib in '' resolv; do
26869 if test -z "$ac_lib"; then
26870 ac_res="none required"
26873 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26875 rm -f conftest.$ac_objext conftest$ac_exeext
26876 if { (ac_try="$ac_link"
26877 case "(($ac_try" in
26878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26879 *) ac_try_echo=$ac_try;;
26881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26882 (eval "$ac_link") 2>conftest.er1
26884 grep -v '^ *+' conftest.er1 >conftest.err
26886 cat conftest.err >&5
26887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26888 (exit $ac_status); } && {
26889 test -z "$ac_c_werror_flag" ||
26890 test ! -s conftest.err
26891 } && test -s conftest$ac_exeext &&
26892 $as_test_x conftest$ac_exeext; then
26893 ac_cv_search_getrrsetbyname=$ac_res
26895 echo "$as_me: failed program was:" >&5
26896 sed 's/^/| /' conftest.$ac_ext >&5
26901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26903 if test "${ac_cv_search_getrrsetbyname+set}" = set; then
26907 if test "${ac_cv_search_getrrsetbyname+set}" = set; then
26910 ac_cv_search_getrrsetbyname=no
26912 rm conftest.$ac_ext
26913 LIBS=$ac_func_search_save_LIBS
26915 { echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5
26916 echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6; }
26917 ac_res=$ac_cv_search_getrrsetbyname
26918 if test "$ac_res" != no; then
26919 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26921 cat >>confdefs.h <<\_ACEOF
26922 #define HAVE_GETRRSETBYNAME 1
26927 # Needed by our getrrsetbyname()
26928 { echo "$as_me:$LINENO: checking for library containing res_query" >&5
26929 echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; }
26930 if test "${ac_cv_search_res_query+set}" = set; then
26931 echo $ECHO_N "(cached) $ECHO_C" >&6
26933 ac_func_search_save_LIBS=$LIBS
26934 cat >conftest.$ac_ext <<_ACEOF
26937 cat confdefs.h >>conftest.$ac_ext
26938 cat >>conftest.$ac_ext <<_ACEOF
26939 /* end confdefs.h. */
26941 /* Override any GCC internal prototype to avoid an error.
26942 Use char because int might match the return type of a GCC
26943 builtin and then its argument prototype would still apply. */
26951 return res_query ();
26956 for ac_lib in '' resolv; do
26957 if test -z "$ac_lib"; then
26958 ac_res="none required"
26961 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26963 rm -f conftest.$ac_objext conftest$ac_exeext
26964 if { (ac_try="$ac_link"
26965 case "(($ac_try" in
26966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26967 *) ac_try_echo=$ac_try;;
26969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26970 (eval "$ac_link") 2>conftest.er1
26972 grep -v '^ *+' conftest.er1 >conftest.err
26974 cat conftest.err >&5
26975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26976 (exit $ac_status); } && {
26977 test -z "$ac_c_werror_flag" ||
26978 test ! -s conftest.err
26979 } && test -s conftest$ac_exeext &&
26980 $as_test_x conftest$ac_exeext; then
26981 ac_cv_search_res_query=$ac_res
26983 echo "$as_me: failed program was:" >&5
26984 sed 's/^/| /' conftest.$ac_ext >&5
26989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26991 if test "${ac_cv_search_res_query+set}" = set; then
26995 if test "${ac_cv_search_res_query+set}" = set; then
26998 ac_cv_search_res_query=no
27000 rm conftest.$ac_ext
27001 LIBS=$ac_func_search_save_LIBS
27003 { echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
27004 echo "${ECHO_T}$ac_cv_search_res_query" >&6; }
27005 ac_res=$ac_cv_search_res_query
27006 if test "$ac_res" != no; then
27007 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27011 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
27012 echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
27013 if test "${ac_cv_search_dn_expand+set}" = set; then
27014 echo $ECHO_N "(cached) $ECHO_C" >&6
27016 ac_func_search_save_LIBS=$LIBS
27017 cat >conftest.$ac_ext <<_ACEOF
27020 cat confdefs.h >>conftest.$ac_ext
27021 cat >>conftest.$ac_ext <<_ACEOF
27022 /* end confdefs.h. */
27024 /* Override any GCC internal prototype to avoid an error.
27025 Use char because int might match the return type of a GCC
27026 builtin and then its argument prototype would still apply. */
27034 return dn_expand ();
27039 for ac_lib in '' resolv; do
27040 if test -z "$ac_lib"; then
27041 ac_res="none required"
27044 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27046 rm -f conftest.$ac_objext conftest$ac_exeext
27047 if { (ac_try="$ac_link"
27048 case "(($ac_try" in
27049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27050 *) ac_try_echo=$ac_try;;
27052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27053 (eval "$ac_link") 2>conftest.er1
27055 grep -v '^ *+' conftest.er1 >conftest.err
27057 cat conftest.err >&5
27058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27059 (exit $ac_status); } && {
27060 test -z "$ac_c_werror_flag" ||
27061 test ! -s conftest.err
27062 } && test -s conftest$ac_exeext &&
27063 $as_test_x conftest$ac_exeext; then
27064 ac_cv_search_dn_expand=$ac_res
27066 echo "$as_me: failed program was:" >&5
27067 sed 's/^/| /' conftest.$ac_ext >&5
27072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27074 if test "${ac_cv_search_dn_expand+set}" = set; then
27078 if test "${ac_cv_search_dn_expand+set}" = set; then
27081 ac_cv_search_dn_expand=no
27083 rm conftest.$ac_ext
27084 LIBS=$ac_func_search_save_LIBS
27086 { echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
27087 echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
27088 ac_res=$ac_cv_search_dn_expand
27089 if test "$ac_res" != no; then
27090 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27094 { echo "$as_me:$LINENO: checking if res_query will link" >&5
27095 echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6; }
27096 cat >conftest.$ac_ext <<_ACEOF
27098 #include "confdefs.h"
27099 #include <sys/types.h>
27100 #include <netinet/in.h>
27101 #include <arpa/nameser.h>
27103 #include <resolv.h>
27106 res_query (0, 0, 0, 0, 0);
27111 rm -f conftest.$ac_objext conftest$ac_exeext
27112 if { (ac_try="$ac_link"
27113 case "(($ac_try" in
27114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27115 *) ac_try_echo=$ac_try;;
27117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27118 (eval "$ac_link") 2>conftest.er1
27120 grep -v '^ *+' conftest.er1 >conftest.err
27122 cat conftest.err >&5
27123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124 (exit $ac_status); } && {
27125 test -z "$ac_c_werror_flag" ||
27126 test ! -s conftest.err
27127 } && test -s conftest$ac_exeext &&
27128 $as_test_x conftest$ac_exeext; then
27129 { echo "$as_me:$LINENO: result: yes" >&5
27130 echo "${ECHO_T}yes" >&6; }
27132 echo "$as_me: failed program was:" >&5
27133 sed 's/^/| /' conftest.$ac_ext >&5
27135 { echo "$as_me:$LINENO: result: no" >&5
27136 echo "${ECHO_T}no" >&6; }
27138 LIBS="$LIBS -lresolv"
27139 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
27140 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
27141 cat >conftest.$ac_ext <<_ACEOF
27143 #include "confdefs.h"
27144 #include <sys/types.h>
27145 #include <netinet/in.h>
27146 #include <arpa/nameser.h>
27148 #include <resolv.h>
27151 res_query (0, 0, 0, 0, 0);
27156 rm -f conftest.$ac_objext conftest$ac_exeext
27157 if { (ac_try="$ac_link"
27158 case "(($ac_try" in
27159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27160 *) ac_try_echo=$ac_try;;
27162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27163 (eval "$ac_link") 2>conftest.er1
27165 grep -v '^ *+' conftest.er1 >conftest.err
27167 cat conftest.err >&5
27168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27169 (exit $ac_status); } && {
27170 test -z "$ac_c_werror_flag" ||
27171 test ! -s conftest.err
27172 } && test -s conftest$ac_exeext &&
27173 $as_test_x conftest$ac_exeext; then
27174 { echo "$as_me:$LINENO: result: yes" >&5
27175 echo "${ECHO_T}yes" >&6; }
27177 echo "$as_me: failed program was:" >&5
27178 sed 's/^/| /' conftest.$ac_ext >&5
27181 { echo "$as_me:$LINENO: result: no" >&5
27182 echo "${ECHO_T}no" >&6; }
27185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27186 conftest$ac_exeext conftest.$ac_ext
27190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27191 conftest$ac_exeext conftest.$ac_ext
27194 for ac_func in _getshort _getlong
27196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27197 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27199 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27200 echo $ECHO_N "(cached) $ECHO_C" >&6
27202 cat >conftest.$ac_ext <<_ACEOF
27205 cat confdefs.h >>conftest.$ac_ext
27206 cat >>conftest.$ac_ext <<_ACEOF
27207 /* end confdefs.h. */
27208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27210 #define $ac_func innocuous_$ac_func
27212 /* System header to define __stub macros and hopefully few prototypes,
27213 which can conflict with char $ac_func (); below.
27214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27215 <limits.h> exists even on freestanding compilers. */
27218 # include <limits.h>
27220 # include <assert.h>
27225 /* Override any GCC internal prototype to avoid an error.
27226 Use char because int might match the return type of a GCC
27227 builtin and then its argument prototype would still apply. */
27232 /* The GNU C library defines this for functions which it implements
27233 to always fail with ENOSYS. Some functions are actually named
27234 something starting with __ and the normal name is an alias. */
27235 #if defined __stub_$ac_func || defined __stub___$ac_func
27242 return $ac_func ();
27247 rm -f conftest.$ac_objext conftest$ac_exeext
27248 if { (ac_try="$ac_link"
27249 case "(($ac_try" in
27250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27251 *) ac_try_echo=$ac_try;;
27253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27254 (eval "$ac_link") 2>conftest.er1
27256 grep -v '^ *+' conftest.er1 >conftest.err
27258 cat conftest.err >&5
27259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27260 (exit $ac_status); } && {
27261 test -z "$ac_c_werror_flag" ||
27262 test ! -s conftest.err
27263 } && test -s conftest$ac_exeext &&
27264 $as_test_x conftest$ac_exeext; then
27265 eval "$as_ac_var=yes"
27267 echo "$as_me: failed program was:" >&5
27268 sed 's/^/| /' conftest.$ac_ext >&5
27270 eval "$as_ac_var=no"
27273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27274 conftest$ac_exeext conftest.$ac_ext
27276 ac_res=`eval echo '${'$as_ac_var'}'`
27277 { echo "$as_me:$LINENO: result: $ac_res" >&5
27278 echo "${ECHO_T}$ac_res" >&6; }
27279 if test `eval echo '${'$as_ac_var'}'` = yes; then
27280 cat >>confdefs.h <<_ACEOF
27281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27287 { echo "$as_me:$LINENO: checking whether _getshort is declared" >&5
27288 echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6; }
27289 if test "${ac_cv_have_decl__getshort+set}" = set; then
27290 echo $ECHO_N "(cached) $ECHO_C" >&6
27292 cat >conftest.$ac_ext <<_ACEOF
27295 cat confdefs.h >>conftest.$ac_ext
27296 cat >>conftest.$ac_ext <<_ACEOF
27297 /* end confdefs.h. */
27298 #include <sys/types.h>
27299 #include <arpa/nameser.h>
27312 rm -f conftest.$ac_objext
27313 if { (ac_try="$ac_compile"
27314 case "(($ac_try" in
27315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27316 *) ac_try_echo=$ac_try;;
27318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27319 (eval "$ac_compile") 2>conftest.er1
27321 grep -v '^ *+' conftest.er1 >conftest.err
27323 cat conftest.err >&5
27324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325 (exit $ac_status); } && {
27326 test -z "$ac_c_werror_flag" ||
27327 test ! -s conftest.err
27328 } && test -s conftest.$ac_objext; then
27329 ac_cv_have_decl__getshort=yes
27331 echo "$as_me: failed program was:" >&5
27332 sed 's/^/| /' conftest.$ac_ext >&5
27334 ac_cv_have_decl__getshort=no
27337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27339 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5
27340 echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6; }
27341 if test $ac_cv_have_decl__getshort = yes; then
27343 cat >>confdefs.h <<_ACEOF
27344 #define HAVE_DECL__GETSHORT 1
27349 cat >>confdefs.h <<_ACEOF
27350 #define HAVE_DECL__GETSHORT 0
27355 { echo "$as_me:$LINENO: checking whether _getlong is declared" >&5
27356 echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6; }
27357 if test "${ac_cv_have_decl__getlong+set}" = set; then
27358 echo $ECHO_N "(cached) $ECHO_C" >&6
27360 cat >conftest.$ac_ext <<_ACEOF
27363 cat confdefs.h >>conftest.$ac_ext
27364 cat >>conftest.$ac_ext <<_ACEOF
27365 /* end confdefs.h. */
27366 #include <sys/types.h>
27367 #include <arpa/nameser.h>
27380 rm -f conftest.$ac_objext
27381 if { (ac_try="$ac_compile"
27382 case "(($ac_try" in
27383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27384 *) ac_try_echo=$ac_try;;
27386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27387 (eval "$ac_compile") 2>conftest.er1
27389 grep -v '^ *+' conftest.er1 >conftest.err
27391 cat conftest.err >&5
27392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27393 (exit $ac_status); } && {
27394 test -z "$ac_c_werror_flag" ||
27395 test ! -s conftest.err
27396 } && test -s conftest.$ac_objext; then
27397 ac_cv_have_decl__getlong=yes
27399 echo "$as_me: failed program was:" >&5
27400 sed 's/^/| /' conftest.$ac_ext >&5
27402 ac_cv_have_decl__getlong=no
27405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27407 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5
27408 echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6; }
27409 if test $ac_cv_have_decl__getlong = yes; then
27411 cat >>confdefs.h <<_ACEOF
27412 #define HAVE_DECL__GETLONG 1
27417 cat >>confdefs.h <<_ACEOF
27418 #define HAVE_DECL__GETLONG 0
27425 { echo "$as_me:$LINENO: checking for HEADER.ad" >&5
27426 echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6; }
27427 if test "${ac_cv_member_HEADER_ad+set}" = set; then
27428 echo $ECHO_N "(cached) $ECHO_C" >&6
27430 cat >conftest.$ac_ext <<_ACEOF
27433 cat confdefs.h >>conftest.$ac_ext
27434 cat >>conftest.$ac_ext <<_ACEOF
27435 /* end confdefs.h. */
27436 #include <arpa/nameser.h>
27441 static HEADER ac_aggr;
27448 rm -f conftest.$ac_objext
27449 if { (ac_try="$ac_compile"
27450 case "(($ac_try" in
27451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27452 *) ac_try_echo=$ac_try;;
27454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27455 (eval "$ac_compile") 2>conftest.er1
27457 grep -v '^ *+' conftest.er1 >conftest.err
27459 cat conftest.err >&5
27460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27461 (exit $ac_status); } && {
27462 test -z "$ac_c_werror_flag" ||
27463 test ! -s conftest.err
27464 } && test -s conftest.$ac_objext; then
27465 ac_cv_member_HEADER_ad=yes
27467 echo "$as_me: failed program was:" >&5
27468 sed 's/^/| /' conftest.$ac_ext >&5
27470 cat >conftest.$ac_ext <<_ACEOF
27473 cat confdefs.h >>conftest.$ac_ext
27474 cat >>conftest.$ac_ext <<_ACEOF
27475 /* end confdefs.h. */
27476 #include <arpa/nameser.h>
27481 static HEADER ac_aggr;
27482 if (sizeof ac_aggr.ad)
27488 rm -f conftest.$ac_objext
27489 if { (ac_try="$ac_compile"
27490 case "(($ac_try" in
27491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27492 *) ac_try_echo=$ac_try;;
27494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27495 (eval "$ac_compile") 2>conftest.er1
27497 grep -v '^ *+' conftest.er1 >conftest.err
27499 cat conftest.err >&5
27500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27501 (exit $ac_status); } && {
27502 test -z "$ac_c_werror_flag" ||
27503 test ! -s conftest.err
27504 } && test -s conftest.$ac_objext; then
27505 ac_cv_member_HEADER_ad=yes
27507 echo "$as_me: failed program was:" >&5
27508 sed 's/^/| /' conftest.$ac_ext >&5
27510 ac_cv_member_HEADER_ad=no
27513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27518 { echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5
27519 echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6; }
27520 if test $ac_cv_member_HEADER_ad = yes; then
27522 cat >>confdefs.h <<\_ACEOF
27523 #define HAVE_HEADER_AD 1
27532 { echo "$as_me:$LINENO: checking if struct __res_state _res is an extern" >&5
27533 echo $ECHO_N "checking if struct __res_state _res is an extern... $ECHO_C" >&6; }
27534 cat >conftest.$ac_ext <<_ACEOF
27537 #if HAVE_SYS_TYPES_H
27538 # include <sys/types.h>
27540 #include <netinet/in.h>
27541 #include <arpa/nameser.h>
27542 #include <resolv.h>
27543 extern struct __res_state _res;
27544 int main() { return 0; }
27547 rm -f conftest.$ac_objext conftest$ac_exeext
27548 if { (ac_try="$ac_link"
27549 case "(($ac_try" in
27550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27551 *) ac_try_echo=$ac_try;;
27553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27554 (eval "$ac_link") 2>conftest.er1
27556 grep -v '^ *+' conftest.er1 >conftest.err
27558 cat conftest.err >&5
27559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27560 (exit $ac_status); } && {
27561 test -z "$ac_c_werror_flag" ||
27562 test ! -s conftest.err
27563 } && test -s conftest$ac_exeext &&
27564 $as_test_x conftest$ac_exeext; then
27565 { echo "$as_me:$LINENO: result: yes" >&5
27566 echo "${ECHO_T}yes" >&6; }
27568 cat >>confdefs.h <<\_ACEOF
27569 #define HAVE__RES_EXTERN 1
27574 echo "$as_me: failed program was:" >&5
27575 sed 's/^/| /' conftest.$ac_ext >&5
27577 { echo "$as_me:$LINENO: result: no" >&5
27578 echo "${ECHO_T}no" >&6; }
27582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27583 conftest$ac_exeext conftest.$ac_ext
27585 # Check whether user wants SELinux support
27589 # Check whether --with-selinux was given.
27590 if test "${with_selinux+set}" = set; then
27591 withval=$with_selinux; if test "x$withval" != "xno" ; then
27594 cat >>confdefs.h <<\_ACEOF
27595 #define WITH_SELINUX 1
27599 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
27600 { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
27601 echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
27602 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
27603 echo $ECHO_N "(cached) $ECHO_C" >&6
27605 { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
27606 echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
27608 # Is the header compilable?
27609 { echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
27610 echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; }
27611 cat >conftest.$ac_ext <<_ACEOF
27614 cat confdefs.h >>conftest.$ac_ext
27615 cat >>conftest.$ac_ext <<_ACEOF
27616 /* end confdefs.h. */
27617 $ac_includes_default
27618 #include <selinux/selinux.h>
27620 rm -f conftest.$ac_objext
27621 if { (ac_try="$ac_compile"
27622 case "(($ac_try" in
27623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27624 *) ac_try_echo=$ac_try;;
27626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27627 (eval "$ac_compile") 2>conftest.er1
27629 grep -v '^ *+' conftest.er1 >conftest.err
27631 cat conftest.err >&5
27632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27633 (exit $ac_status); } && {
27634 test -z "$ac_c_werror_flag" ||
27635 test ! -s conftest.err
27636 } && test -s conftest.$ac_objext; then
27637 ac_header_compiler=yes
27639 echo "$as_me: failed program was:" >&5
27640 sed 's/^/| /' conftest.$ac_ext >&5
27642 ac_header_compiler=no
27645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27646 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27647 echo "${ECHO_T}$ac_header_compiler" >&6; }
27649 # Is the header present?
27650 { echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
27651 echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; }
27652 cat >conftest.$ac_ext <<_ACEOF
27655 cat confdefs.h >>conftest.$ac_ext
27656 cat >>conftest.$ac_ext <<_ACEOF
27657 /* end confdefs.h. */
27658 #include <selinux/selinux.h>
27660 if { (ac_try="$ac_cpp conftest.$ac_ext"
27661 case "(($ac_try" in
27662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27663 *) ac_try_echo=$ac_try;;
27665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27668 grep -v '^ *+' conftest.er1 >conftest.err
27670 cat conftest.err >&5
27671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672 (exit $ac_status); } >/dev/null && {
27673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27674 test ! -s conftest.err
27676 ac_header_preproc=yes
27678 echo "$as_me: failed program was:" >&5
27679 sed 's/^/| /' conftest.$ac_ext >&5
27681 ac_header_preproc=no
27684 rm -f conftest.err conftest.$ac_ext
27685 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27686 echo "${ECHO_T}$ac_header_preproc" >&6; }
27688 # So? What about this header?
27689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27691 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
27692 echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27693 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
27694 echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
27695 ac_header_preproc=yes
27698 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
27699 echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
27700 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
27701 echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
27702 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
27703 echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
27704 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
27705 echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
27706 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
27707 echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
27708 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
27709 echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
27711 ## ------------------------------------------- ##
27712 ## Report this to openssh-unix-dev@mindrot.org ##
27713 ## ------------------------------------------- ##
27715 ) | sed "s/^/$as_me: WARNING: /" >&2
27718 { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
27719 echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
27720 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
27721 echo $ECHO_N "(cached) $ECHO_C" >&6
27723 ac_cv_header_selinux_selinux_h=$ac_header_preproc
27725 { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
27726 echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
27729 if test $ac_cv_header_selinux_selinux_h = yes; then
27732 { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5
27733 echo "$as_me: error: SELinux support requires selinux.h header" >&2;}
27734 { (exit 1); exit 1; }; }
27738 { echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5
27739 echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; }
27740 if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then
27741 echo $ECHO_N "(cached) $ECHO_C" >&6
27743 ac_check_lib_save_LIBS=$LIBS
27744 LIBS="-lselinux $LIBS"
27745 cat >conftest.$ac_ext <<_ACEOF
27748 cat confdefs.h >>conftest.$ac_ext
27749 cat >>conftest.$ac_ext <<_ACEOF
27750 /* end confdefs.h. */
27752 /* Override any GCC internal prototype to avoid an error.
27753 Use char because int might match the return type of a GCC
27754 builtin and then its argument prototype would still apply. */
27758 char setexeccon ();
27762 return setexeccon ();
27767 rm -f conftest.$ac_objext conftest$ac_exeext
27768 if { (ac_try="$ac_link"
27769 case "(($ac_try" in
27770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27771 *) ac_try_echo=$ac_try;;
27773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27774 (eval "$ac_link") 2>conftest.er1
27776 grep -v '^ *+' conftest.er1 >conftest.err
27778 cat conftest.err >&5
27779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27780 (exit $ac_status); } && {
27781 test -z "$ac_c_werror_flag" ||
27782 test ! -s conftest.err
27783 } && test -s conftest$ac_exeext &&
27784 $as_test_x conftest$ac_exeext; then
27785 ac_cv_lib_selinux_setexeccon=yes
27787 echo "$as_me: failed program was:" >&5
27788 sed 's/^/| /' conftest.$ac_ext >&5
27790 ac_cv_lib_selinux_setexeccon=no
27793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27794 conftest$ac_exeext conftest.$ac_ext
27795 LIBS=$ac_check_lib_save_LIBS
27797 { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5
27798 echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; }
27799 if test $ac_cv_lib_selinux_setexeccon = yes; then
27800 LIBSELINUX="-lselinux"
27801 LIBS="$LIBS -lselinux"
27804 { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5
27805 echo "$as_me: error: SELinux support requires libselinux library" >&2;}
27806 { (exit 1); exit 1; }; }
27809 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
27812 for ac_func in getseuserbyname get_default_context_with_level
27814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27815 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27817 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27818 echo $ECHO_N "(cached) $ECHO_C" >&6
27820 cat >conftest.$ac_ext <<_ACEOF
27823 cat confdefs.h >>conftest.$ac_ext
27824 cat >>conftest.$ac_ext <<_ACEOF
27825 /* end confdefs.h. */
27826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27828 #define $ac_func innocuous_$ac_func
27830 /* System header to define __stub macros and hopefully few prototypes,
27831 which can conflict with char $ac_func (); below.
27832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27833 <limits.h> exists even on freestanding compilers. */
27836 # include <limits.h>
27838 # include <assert.h>
27843 /* Override any GCC internal prototype to avoid an error.
27844 Use char because int might match the return type of a GCC
27845 builtin and then its argument prototype would still apply. */
27850 /* The GNU C library defines this for functions which it implements
27851 to always fail with ENOSYS. Some functions are actually named
27852 something starting with __ and the normal name is an alias. */
27853 #if defined __stub_$ac_func || defined __stub___$ac_func
27860 return $ac_func ();
27865 rm -f conftest.$ac_objext conftest$ac_exeext
27866 if { (ac_try="$ac_link"
27867 case "(($ac_try" in
27868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27869 *) ac_try_echo=$ac_try;;
27871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27872 (eval "$ac_link") 2>conftest.er1
27874 grep -v '^ *+' conftest.er1 >conftest.err
27876 cat conftest.err >&5
27877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878 (exit $ac_status); } && {
27879 test -z "$ac_c_werror_flag" ||
27880 test ! -s conftest.err
27881 } && test -s conftest$ac_exeext &&
27882 $as_test_x conftest$ac_exeext; then
27883 eval "$as_ac_var=yes"
27885 echo "$as_me: failed program was:" >&5
27886 sed 's/^/| /' conftest.$ac_ext >&5
27888 eval "$as_ac_var=no"
27891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27892 conftest$ac_exeext conftest.$ac_ext
27894 ac_res=`eval echo '${'$as_ac_var'}'`
27895 { echo "$as_me:$LINENO: result: $ac_res" >&5
27896 echo "${ECHO_T}$ac_res" >&6; }
27897 if test `eval echo '${'$as_ac_var'}'` = yes; then
27898 cat >>confdefs.h <<_ACEOF
27899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27911 # Check whether user wants Kerberos 5 support
27914 # Check whether --with-kerberos5 was given.
27915 if test "${with_kerberos5+set}" = set; then
27916 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
27917 if test "x$withval" = "xyes" ; then
27918 KRB5ROOT="/usr/local"
27920 KRB5ROOT=${withval}
27924 cat >>confdefs.h <<\_ACEOF
27930 # Extract the first word of "krb5-config", so it can be a program name with args.
27931 set dummy krb5-config; ac_word=$2
27932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27934 if test "${ac_cv_path_KRB5CONF+set}" = set; then
27935 echo $ECHO_N "(cached) $ECHO_C" >&6
27939 ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
27942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27943 as_dummy="$KRB5ROOT/bin:$PATH"
27944 for as_dir in $as_dummy
27947 test -z "$as_dir" && as_dir=.
27948 for ac_exec_ext in '' $ac_executable_extensions; do
27949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27950 ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
27951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27958 test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config"
27962 KRB5CONF=$ac_cv_path_KRB5CONF
27963 if test -n "$KRB5CONF"; then
27964 { echo "$as_me:$LINENO: result: $KRB5CONF" >&5
27965 echo "${ECHO_T}$KRB5CONF" >&6; }
27967 { echo "$as_me:$LINENO: result: no" >&5
27968 echo "${ECHO_T}no" >&6; }
27972 if test -x $KRB5CONF ; then
27974 { echo "$as_me:$LINENO: checking for gssapi support" >&5
27975 echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6; }
27976 if $KRB5CONF | grep gssapi >/dev/null ; then
27977 { echo "$as_me:$LINENO: result: yes" >&5
27978 echo "${ECHO_T}yes" >&6; }
27980 cat >>confdefs.h <<\_ACEOF
27986 { echo "$as_me:$LINENO: result: no" >&5
27987 echo "${ECHO_T}no" >&6; }
27990 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
27991 K5LIBS="`$KRB5CONF --libs $k5confopts`"
27992 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
27993 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
27994 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
27995 cat >conftest.$ac_ext <<_ACEOF
27998 cat confdefs.h >>conftest.$ac_ext
27999 cat >>conftest.$ac_ext <<_ACEOF
28000 /* end confdefs.h. */
28005 char *tmp = heimdal_version;
28010 rm -f conftest.$ac_objext
28011 if { (ac_try="$ac_compile"
28012 case "(($ac_try" in
28013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28014 *) ac_try_echo=$ac_try;;
28016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28017 (eval "$ac_compile") 2>conftest.er1
28019 grep -v '^ *+' conftest.er1 >conftest.err
28021 cat conftest.err >&5
28022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023 (exit $ac_status); } && {
28024 test -z "$ac_c_werror_flag" ||
28025 test ! -s conftest.err
28026 } && test -s conftest.$ac_objext; then
28027 { echo "$as_me:$LINENO: result: yes" >&5
28028 echo "${ECHO_T}yes" >&6; }
28030 cat >>confdefs.h <<\_ACEOF
28035 echo "$as_me: failed program was:" >&5
28036 sed 's/^/| /' conftest.$ac_ext >&5
28038 { echo "$as_me:$LINENO: result: no" >&5
28039 echo "${ECHO_T}no" >&6; }
28043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28045 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
28046 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
28047 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
28048 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
28049 cat >conftest.$ac_ext <<_ACEOF
28052 cat confdefs.h >>conftest.$ac_ext
28053 cat >>conftest.$ac_ext <<_ACEOF
28054 /* end confdefs.h. */
28059 char *tmp = heimdal_version;
28064 rm -f conftest.$ac_objext
28065 if { (ac_try="$ac_compile"
28066 case "(($ac_try" in
28067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28068 *) ac_try_echo=$ac_try;;
28070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28071 (eval "$ac_compile") 2>conftest.er1
28073 grep -v '^ *+' conftest.er1 >conftest.err
28075 cat conftest.err >&5
28076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28077 (exit $ac_status); } && {
28078 test -z "$ac_c_werror_flag" ||
28079 test ! -s conftest.err
28080 } && test -s conftest.$ac_objext; then
28081 { echo "$as_me:$LINENO: result: yes" >&5
28082 echo "${ECHO_T}yes" >&6; }
28083 cat >>confdefs.h <<\_ACEOF
28088 K5LIBS="$K5LIBS -lcom_err -lasn1"
28089 { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5
28090 echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; }
28091 if test "${ac_cv_lib_roken_net_write+set}" = set; then
28092 echo $ECHO_N "(cached) $ECHO_C" >&6
28094 ac_check_lib_save_LIBS=$LIBS
28095 LIBS="-lroken $LIBS"
28096 cat >conftest.$ac_ext <<_ACEOF
28099 cat confdefs.h >>conftest.$ac_ext
28100 cat >>conftest.$ac_ext <<_ACEOF
28101 /* end confdefs.h. */
28103 /* Override any GCC internal prototype to avoid an error.
28104 Use char because int might match the return type of a GCC
28105 builtin and then its argument prototype would still apply. */
28113 return net_write ();
28118 rm -f conftest.$ac_objext conftest$ac_exeext
28119 if { (ac_try="$ac_link"
28120 case "(($ac_try" in
28121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28122 *) ac_try_echo=$ac_try;;
28124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28125 (eval "$ac_link") 2>conftest.er1
28127 grep -v '^ *+' conftest.er1 >conftest.err
28129 cat conftest.err >&5
28130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28131 (exit $ac_status); } && {
28132 test -z "$ac_c_werror_flag" ||
28133 test ! -s conftest.err
28134 } && test -s conftest$ac_exeext &&
28135 $as_test_x conftest$ac_exeext; then
28136 ac_cv_lib_roken_net_write=yes
28138 echo "$as_me: failed program was:" >&5
28139 sed 's/^/| /' conftest.$ac_ext >&5
28141 ac_cv_lib_roken_net_write=no
28144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28145 conftest$ac_exeext conftest.$ac_ext
28146 LIBS=$ac_check_lib_save_LIBS
28148 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5
28149 echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6; }
28150 if test $ac_cv_lib_roken_net_write = yes; then
28151 K5LIBS="$K5LIBS -lroken"
28154 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
28155 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
28156 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
28157 echo $ECHO_N "(cached) $ECHO_C" >&6
28159 ac_check_lib_save_LIBS=$LIBS
28161 cat >conftest.$ac_ext <<_ACEOF
28164 cat confdefs.h >>conftest.$ac_ext
28165 cat >>conftest.$ac_ext <<_ACEOF
28166 /* end confdefs.h. */
28168 /* Override any GCC internal prototype to avoid an error.
28169 Use char because int might match the return type of a GCC
28170 builtin and then its argument prototype would still apply. */
28174 char des_cbc_encrypt ();
28178 return des_cbc_encrypt ();
28183 rm -f conftest.$ac_objext conftest$ac_exeext
28184 if { (ac_try="$ac_link"
28185 case "(($ac_try" in
28186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28187 *) ac_try_echo=$ac_try;;
28189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28190 (eval "$ac_link") 2>conftest.er1
28192 grep -v '^ *+' conftest.er1 >conftest.err
28194 cat conftest.err >&5
28195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28196 (exit $ac_status); } && {
28197 test -z "$ac_c_werror_flag" ||
28198 test ! -s conftest.err
28199 } && test -s conftest$ac_exeext &&
28200 $as_test_x conftest$ac_exeext; then
28201 ac_cv_lib_des_des_cbc_encrypt=yes
28203 echo "$as_me: failed program was:" >&5
28204 sed 's/^/| /' conftest.$ac_ext >&5
28206 ac_cv_lib_des_des_cbc_encrypt=no
28209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28210 conftest$ac_exeext conftest.$ac_ext
28211 LIBS=$ac_check_lib_save_LIBS
28213 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
28214 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
28215 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
28216 K5LIBS="$K5LIBS -ldes"
28221 echo "$as_me: failed program was:" >&5
28222 sed 's/^/| /' conftest.$ac_ext >&5
28224 { echo "$as_me:$LINENO: result: no" >&5
28225 echo "${ECHO_T}no" >&6; }
28226 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
28231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28232 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
28233 echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
28234 if test "${ac_cv_search_dn_expand+set}" = set; then
28235 echo $ECHO_N "(cached) $ECHO_C" >&6
28237 ac_func_search_save_LIBS=$LIBS
28238 cat >conftest.$ac_ext <<_ACEOF
28241 cat confdefs.h >>conftest.$ac_ext
28242 cat >>conftest.$ac_ext <<_ACEOF
28243 /* end confdefs.h. */
28245 /* Override any GCC internal prototype to avoid an error.
28246 Use char because int might match the return type of a GCC
28247 builtin and then its argument prototype would still apply. */
28255 return dn_expand ();
28260 for ac_lib in '' resolv; do
28261 if test -z "$ac_lib"; then
28262 ac_res="none required"
28265 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28267 rm -f conftest.$ac_objext conftest$ac_exeext
28268 if { (ac_try="$ac_link"
28269 case "(($ac_try" in
28270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28271 *) ac_try_echo=$ac_try;;
28273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28274 (eval "$ac_link") 2>conftest.er1
28276 grep -v '^ *+' conftest.er1 >conftest.err
28278 cat conftest.err >&5
28279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28280 (exit $ac_status); } && {
28281 test -z "$ac_c_werror_flag" ||
28282 test ! -s conftest.err
28283 } && test -s conftest$ac_exeext &&
28284 $as_test_x conftest$ac_exeext; then
28285 ac_cv_search_dn_expand=$ac_res
28287 echo "$as_me: failed program was:" >&5
28288 sed 's/^/| /' conftest.$ac_ext >&5
28293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28295 if test "${ac_cv_search_dn_expand+set}" = set; then
28299 if test "${ac_cv_search_dn_expand+set}" = set; then
28302 ac_cv_search_dn_expand=no
28304 rm conftest.$ac_ext
28305 LIBS=$ac_func_search_save_LIBS
28307 { echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
28308 echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
28309 ac_res=$ac_cv_search_dn_expand
28310 if test "$ac_res" != no; then
28311 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28316 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
28317 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; }
28318 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
28319 echo $ECHO_N "(cached) $ECHO_C" >&6
28321 ac_check_lib_save_LIBS=$LIBS
28322 LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
28323 cat >conftest.$ac_ext <<_ACEOF
28326 cat confdefs.h >>conftest.$ac_ext
28327 cat >>conftest.$ac_ext <<_ACEOF
28328 /* end confdefs.h. */
28330 /* Override any GCC internal prototype to avoid an error.
28331 Use char because int might match the return type of a GCC
28332 builtin and then its argument prototype would still apply. */
28336 char gss_init_sec_context ();
28340 return gss_init_sec_context ();
28345 rm -f conftest.$ac_objext 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;;
28351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28352 (eval "$ac_link") 2>conftest.er1
28354 grep -v '^ *+' conftest.er1 >conftest.err
28356 cat conftest.err >&5
28357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28358 (exit $ac_status); } && {
28359 test -z "$ac_c_werror_flag" ||
28360 test ! -s conftest.err
28361 } && test -s conftest$ac_exeext &&
28362 $as_test_x conftest$ac_exeext; then
28363 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
28365 echo "$as_me: failed program was:" >&5
28366 sed 's/^/| /' conftest.$ac_ext >&5
28368 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
28371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28372 conftest$ac_exeext conftest.$ac_ext
28373 LIBS=$ac_check_lib_save_LIBS
28375 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
28376 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
28377 if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
28378 cat >>confdefs.h <<\_ACEOF
28382 K5LIBS="-lgssapi_krb5 $K5LIBS"
28384 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
28385 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; }
28386 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
28387 echo $ECHO_N "(cached) $ECHO_C" >&6
28389 ac_check_lib_save_LIBS=$LIBS
28390 LIBS="-lgssapi $K5LIBS $LIBS"
28391 cat >conftest.$ac_ext <<_ACEOF
28394 cat confdefs.h >>conftest.$ac_ext
28395 cat >>conftest.$ac_ext <<_ACEOF
28396 /* end confdefs.h. */
28398 /* Override any GCC internal prototype to avoid an error.
28399 Use char because int might match the return type of a GCC
28400 builtin and then its argument prototype would still apply. */
28404 char gss_init_sec_context ();
28408 return gss_init_sec_context ();
28413 rm -f conftest.$ac_objext conftest$ac_exeext
28414 if { (ac_try="$ac_link"
28415 case "(($ac_try" in
28416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28417 *) ac_try_echo=$ac_try;;
28419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28420 (eval "$ac_link") 2>conftest.er1
28422 grep -v '^ *+' conftest.er1 >conftest.err
28424 cat conftest.err >&5
28425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28426 (exit $ac_status); } && {
28427 test -z "$ac_c_werror_flag" ||
28428 test ! -s conftest.err
28429 } && test -s conftest$ac_exeext &&
28430 $as_test_x conftest$ac_exeext; then
28431 ac_cv_lib_gssapi_gss_init_sec_context=yes
28433 echo "$as_me: failed program was:" >&5
28434 sed 's/^/| /' conftest.$ac_ext >&5
28436 ac_cv_lib_gssapi_gss_init_sec_context=no
28439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28440 conftest$ac_exeext conftest.$ac_ext
28441 LIBS=$ac_check_lib_save_LIBS
28443 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
28444 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
28445 if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
28446 cat >>confdefs.h <<\_ACEOF
28450 K5LIBS="-lgssapi $K5LIBS"
28452 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
28453 echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
28460 if test "${ac_cv_header_gssapi_h+set}" = set; then
28461 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
28462 echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
28463 if test "${ac_cv_header_gssapi_h+set}" = set; then
28464 echo $ECHO_N "(cached) $ECHO_C" >&6
28466 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
28467 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
28469 # Is the header compilable?
28470 { echo "$as_me:$LINENO: checking gssapi.h usability" >&5
28471 echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; }
28472 cat >conftest.$ac_ext <<_ACEOF
28475 cat confdefs.h >>conftest.$ac_ext
28476 cat >>conftest.$ac_ext <<_ACEOF
28477 /* end confdefs.h. */
28478 $ac_includes_default
28479 #include <gssapi.h>
28481 rm -f conftest.$ac_objext
28482 if { (ac_try="$ac_compile"
28483 case "(($ac_try" in
28484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28485 *) ac_try_echo=$ac_try;;
28487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28488 (eval "$ac_compile") 2>conftest.er1
28490 grep -v '^ *+' conftest.er1 >conftest.err
28492 cat conftest.err >&5
28493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28494 (exit $ac_status); } && {
28495 test -z "$ac_c_werror_flag" ||
28496 test ! -s conftest.err
28497 } && test -s conftest.$ac_objext; then
28498 ac_header_compiler=yes
28500 echo "$as_me: failed program was:" >&5
28501 sed 's/^/| /' conftest.$ac_ext >&5
28503 ac_header_compiler=no
28506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28508 echo "${ECHO_T}$ac_header_compiler" >&6; }
28510 # Is the header present?
28511 { echo "$as_me:$LINENO: checking gssapi.h presence" >&5
28512 echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; }
28513 cat >conftest.$ac_ext <<_ACEOF
28516 cat confdefs.h >>conftest.$ac_ext
28517 cat >>conftest.$ac_ext <<_ACEOF
28518 /* end confdefs.h. */
28519 #include <gssapi.h>
28521 if { (ac_try="$ac_cpp conftest.$ac_ext"
28522 case "(($ac_try" in
28523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28524 *) ac_try_echo=$ac_try;;
28526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28529 grep -v '^ *+' conftest.er1 >conftest.err
28531 cat conftest.err >&5
28532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533 (exit $ac_status); } >/dev/null && {
28534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28535 test ! -s conftest.err
28537 ac_header_preproc=yes
28539 echo "$as_me: failed program was:" >&5
28540 sed 's/^/| /' conftest.$ac_ext >&5
28542 ac_header_preproc=no
28545 rm -f conftest.err conftest.$ac_ext
28546 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28547 echo "${ECHO_T}$ac_header_preproc" >&6; }
28549 # So? What about this header?
28550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28552 { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
28553 echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28554 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
28555 echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
28556 ac_header_preproc=yes
28559 { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
28560 echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
28561 { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
28562 echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
28563 { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
28564 echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
28565 { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
28566 echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
28567 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
28568 echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
28569 { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
28570 echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
28572 ## ------------------------------------------- ##
28573 ## Report this to openssh-unix-dev@mindrot.org ##
28574 ## ------------------------------------------- ##
28576 ) | sed "s/^/$as_me: WARNING: /" >&2
28579 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
28580 echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
28581 if test "${ac_cv_header_gssapi_h+set}" = set; then
28582 echo $ECHO_N "(cached) $ECHO_C" >&6
28584 ac_cv_header_gssapi_h=$ac_header_preproc
28586 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
28587 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
28590 if test $ac_cv_header_gssapi_h = yes; then
28593 unset ac_cv_header_gssapi_h
28594 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
28596 for ac_header in gssapi.h
28598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28600 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28603 echo $ECHO_N "(cached) $ECHO_C" >&6
28605 ac_res=`eval echo '${'$as_ac_Header'}'`
28606 { echo "$as_me:$LINENO: result: $ac_res" >&5
28607 echo "${ECHO_T}$ac_res" >&6; }
28609 # Is the header compilable?
28610 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28612 cat >conftest.$ac_ext <<_ACEOF
28615 cat confdefs.h >>conftest.$ac_ext
28616 cat >>conftest.$ac_ext <<_ACEOF
28617 /* end confdefs.h. */
28618 $ac_includes_default
28619 #include <$ac_header>
28621 rm -f conftest.$ac_objext
28622 if { (ac_try="$ac_compile"
28623 case "(($ac_try" in
28624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28625 *) ac_try_echo=$ac_try;;
28627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28628 (eval "$ac_compile") 2>conftest.er1
28630 grep -v '^ *+' conftest.er1 >conftest.err
28632 cat conftest.err >&5
28633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28634 (exit $ac_status); } && {
28635 test -z "$ac_c_werror_flag" ||
28636 test ! -s conftest.err
28637 } && test -s conftest.$ac_objext; then
28638 ac_header_compiler=yes
28640 echo "$as_me: failed program was:" >&5
28641 sed 's/^/| /' conftest.$ac_ext >&5
28643 ac_header_compiler=no
28646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28647 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28648 echo "${ECHO_T}$ac_header_compiler" >&6; }
28650 # Is the header present?
28651 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28653 cat >conftest.$ac_ext <<_ACEOF
28656 cat confdefs.h >>conftest.$ac_ext
28657 cat >>conftest.$ac_ext <<_ACEOF
28658 /* end confdefs.h. */
28659 #include <$ac_header>
28661 if { (ac_try="$ac_cpp conftest.$ac_ext"
28662 case "(($ac_try" in
28663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28664 *) ac_try_echo=$ac_try;;
28666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28669 grep -v '^ *+' conftest.er1 >conftest.err
28671 cat conftest.err >&5
28672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28673 (exit $ac_status); } >/dev/null && {
28674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28675 test ! -s conftest.err
28677 ac_header_preproc=yes
28679 echo "$as_me: failed program was:" >&5
28680 sed 's/^/| /' conftest.$ac_ext >&5
28682 ac_header_preproc=no
28685 rm -f conftest.err conftest.$ac_ext
28686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28687 echo "${ECHO_T}$ac_header_preproc" >&6; }
28689 # So? What about this header?
28690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28696 ac_header_preproc=yes
28699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28702 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28706 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28712 ## ------------------------------------------- ##
28713 ## Report this to openssh-unix-dev@mindrot.org ##
28714 ## ------------------------------------------- ##
28716 ) | sed "s/^/$as_me: WARNING: /" >&2
28719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28722 echo $ECHO_N "(cached) $ECHO_C" >&6
28724 eval "$as_ac_Header=\$ac_header_preproc"
28726 ac_res=`eval echo '${'$as_ac_Header'}'`
28727 { echo "$as_me:$LINENO: result: $ac_res" >&5
28728 echo "${ECHO_T}$ac_res" >&6; }
28731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28732 cat >>confdefs.h <<_ACEOF
28733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28737 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
28738 echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
28751 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
28752 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
28753 { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
28754 echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
28755 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
28756 echo $ECHO_N "(cached) $ECHO_C" >&6
28758 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
28759 echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
28761 # Is the header compilable?
28762 { echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5
28763 echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6; }
28764 cat >conftest.$ac_ext <<_ACEOF
28767 cat confdefs.h >>conftest.$ac_ext
28768 cat >>conftest.$ac_ext <<_ACEOF
28769 /* end confdefs.h. */
28770 $ac_includes_default
28771 #include <gssapi_krb5.h>
28773 rm -f conftest.$ac_objext
28774 if { (ac_try="$ac_compile"
28775 case "(($ac_try" in
28776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28777 *) ac_try_echo=$ac_try;;
28779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28780 (eval "$ac_compile") 2>conftest.er1
28782 grep -v '^ *+' conftest.er1 >conftest.err
28784 cat conftest.err >&5
28785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786 (exit $ac_status); } && {
28787 test -z "$ac_c_werror_flag" ||
28788 test ! -s conftest.err
28789 } && test -s conftest.$ac_objext; then
28790 ac_header_compiler=yes
28792 echo "$as_me: failed program was:" >&5
28793 sed 's/^/| /' conftest.$ac_ext >&5
28795 ac_header_compiler=no
28798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28800 echo "${ECHO_T}$ac_header_compiler" >&6; }
28802 # Is the header present?
28803 { echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5
28804 echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6; }
28805 cat >conftest.$ac_ext <<_ACEOF
28808 cat confdefs.h >>conftest.$ac_ext
28809 cat >>conftest.$ac_ext <<_ACEOF
28810 /* end confdefs.h. */
28811 #include <gssapi_krb5.h>
28813 if { (ac_try="$ac_cpp conftest.$ac_ext"
28814 case "(($ac_try" in
28815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28816 *) ac_try_echo=$ac_try;;
28818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28821 grep -v '^ *+' conftest.er1 >conftest.err
28823 cat conftest.err >&5
28824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28825 (exit $ac_status); } >/dev/null && {
28826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28827 test ! -s conftest.err
28829 ac_header_preproc=yes
28831 echo "$as_me: failed program was:" >&5
28832 sed 's/^/| /' conftest.$ac_ext >&5
28834 ac_header_preproc=no
28837 rm -f conftest.err conftest.$ac_ext
28838 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28839 echo "${ECHO_T}$ac_header_preproc" >&6; }
28841 # So? What about this header?
28842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28844 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
28845 echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28846 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5
28847 echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;}
28848 ac_header_preproc=yes
28851 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5
28852 echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;}
28853 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5
28854 echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;}
28855 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5
28856 echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;}
28857 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5
28858 echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
28859 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5
28860 echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;}
28861 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5
28862 echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;}
28864 ## ------------------------------------------- ##
28865 ## Report this to openssh-unix-dev@mindrot.org ##
28866 ## ------------------------------------------- ##
28868 ) | sed "s/^/$as_me: WARNING: /" >&2
28871 { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
28872 echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
28873 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
28874 echo $ECHO_N "(cached) $ECHO_C" >&6
28876 ac_cv_header_gssapi_krb5_h=$ac_header_preproc
28878 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
28879 echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
28882 if test $ac_cv_header_gssapi_krb5_h = yes; then
28891 if test ! -z "$need_dash_r" ; then
28892 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
28894 if test ! -z "$blibpath" ; then
28895 blibpath="$blibpath:${KRB5ROOT}/lib"
28900 for ac_header in gssapi.h gssapi/gssapi.h
28902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28907 echo $ECHO_N "(cached) $ECHO_C" >&6
28909 ac_res=`eval echo '${'$as_ac_Header'}'`
28910 { echo "$as_me:$LINENO: result: $ac_res" >&5
28911 echo "${ECHO_T}$ac_res" >&6; }
28913 # Is the header compilable?
28914 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28916 cat >conftest.$ac_ext <<_ACEOF
28919 cat confdefs.h >>conftest.$ac_ext
28920 cat >>conftest.$ac_ext <<_ACEOF
28921 /* end confdefs.h. */
28922 $ac_includes_default
28923 #include <$ac_header>
28925 rm -f conftest.$ac_objext
28926 if { (ac_try="$ac_compile"
28927 case "(($ac_try" in
28928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28929 *) ac_try_echo=$ac_try;;
28931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28932 (eval "$ac_compile") 2>conftest.er1
28934 grep -v '^ *+' conftest.er1 >conftest.err
28936 cat conftest.err >&5
28937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938 (exit $ac_status); } && {
28939 test -z "$ac_c_werror_flag" ||
28940 test ! -s conftest.err
28941 } && test -s conftest.$ac_objext; then
28942 ac_header_compiler=yes
28944 echo "$as_me: failed program was:" >&5
28945 sed 's/^/| /' conftest.$ac_ext >&5
28947 ac_header_compiler=no
28950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28951 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28952 echo "${ECHO_T}$ac_header_compiler" >&6; }
28954 # Is the header present?
28955 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28956 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28957 cat >conftest.$ac_ext <<_ACEOF
28960 cat confdefs.h >>conftest.$ac_ext
28961 cat >>conftest.$ac_ext <<_ACEOF
28962 /* end confdefs.h. */
28963 #include <$ac_header>
28965 if { (ac_try="$ac_cpp conftest.$ac_ext"
28966 case "(($ac_try" in
28967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28968 *) ac_try_echo=$ac_try;;
28970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28973 grep -v '^ *+' conftest.er1 >conftest.err
28975 cat conftest.err >&5
28976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977 (exit $ac_status); } >/dev/null && {
28978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28979 test ! -s conftest.err
28981 ac_header_preproc=yes
28983 echo "$as_me: failed program was:" >&5
28984 sed 's/^/| /' conftest.$ac_ext >&5
28986 ac_header_preproc=no
28989 rm -f conftest.err conftest.$ac_ext
28990 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28991 echo "${ECHO_T}$ac_header_preproc" >&6; }
28993 # So? What about this header?
28994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28997 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28999 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29000 ac_header_preproc=yes
29003 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29004 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29005 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29006 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29007 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29008 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29009 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29010 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29013 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29014 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29016 ## ------------------------------------------- ##
29017 ## Report this to openssh-unix-dev@mindrot.org ##
29018 ## ------------------------------------------- ##
29020 ) | sed "s/^/$as_me: WARNING: /" >&2
29023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29026 echo $ECHO_N "(cached) $ECHO_C" >&6
29028 eval "$as_ac_Header=\$ac_header_preproc"
29030 ac_res=`eval echo '${'$as_ac_Header'}'`
29031 { echo "$as_me:$LINENO: result: $ac_res" >&5
29032 echo "${ECHO_T}$ac_res" >&6; }
29035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29036 cat >>confdefs.h <<_ACEOF
29037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29046 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
29048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29053 echo $ECHO_N "(cached) $ECHO_C" >&6
29055 ac_res=`eval echo '${'$as_ac_Header'}'`
29056 { echo "$as_me:$LINENO: result: $ac_res" >&5
29057 echo "${ECHO_T}$ac_res" >&6; }
29059 # Is the header compilable?
29060 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29062 cat >conftest.$ac_ext <<_ACEOF
29065 cat confdefs.h >>conftest.$ac_ext
29066 cat >>conftest.$ac_ext <<_ACEOF
29067 /* end confdefs.h. */
29068 $ac_includes_default
29069 #include <$ac_header>
29071 rm -f conftest.$ac_objext
29072 if { (ac_try="$ac_compile"
29073 case "(($ac_try" in
29074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29075 *) ac_try_echo=$ac_try;;
29077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29078 (eval "$ac_compile") 2>conftest.er1
29080 grep -v '^ *+' conftest.er1 >conftest.err
29082 cat conftest.err >&5
29083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29084 (exit $ac_status); } && {
29085 test -z "$ac_c_werror_flag" ||
29086 test ! -s conftest.err
29087 } && test -s conftest.$ac_objext; then
29088 ac_header_compiler=yes
29090 echo "$as_me: failed program was:" >&5
29091 sed 's/^/| /' conftest.$ac_ext >&5
29093 ac_header_compiler=no
29096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29097 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29098 echo "${ECHO_T}$ac_header_compiler" >&6; }
29100 # Is the header present?
29101 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29103 cat >conftest.$ac_ext <<_ACEOF
29106 cat confdefs.h >>conftest.$ac_ext
29107 cat >>conftest.$ac_ext <<_ACEOF
29108 /* end confdefs.h. */
29109 #include <$ac_header>
29111 if { (ac_try="$ac_cpp conftest.$ac_ext"
29112 case "(($ac_try" in
29113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29114 *) ac_try_echo=$ac_try;;
29116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29119 grep -v '^ *+' conftest.er1 >conftest.err
29121 cat conftest.err >&5
29122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29123 (exit $ac_status); } >/dev/null && {
29124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29125 test ! -s conftest.err
29127 ac_header_preproc=yes
29129 echo "$as_me: failed program was:" >&5
29130 sed 's/^/| /' conftest.$ac_ext >&5
29132 ac_header_preproc=no
29135 rm -f conftest.err conftest.$ac_ext
29136 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29137 echo "${ECHO_T}$ac_header_preproc" >&6; }
29139 # So? What about this header?
29140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29146 ac_header_preproc=yes
29149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29152 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29156 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29162 ## ------------------------------------------- ##
29163 ## Report this to openssh-unix-dev@mindrot.org ##
29164 ## ------------------------------------------- ##
29166 ) | sed "s/^/$as_me: WARNING: /" >&2
29169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29172 echo $ECHO_N "(cached) $ECHO_C" >&6
29174 eval "$as_ac_Header=\$ac_header_preproc"
29176 ac_res=`eval echo '${'$as_ac_Header'}'`
29177 { echo "$as_me:$LINENO: result: $ac_res" >&5
29178 echo "${ECHO_T}$ac_res" >&6; }
29181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29182 cat >>confdefs.h <<_ACEOF
29183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29192 for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
29194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29199 echo $ECHO_N "(cached) $ECHO_C" >&6
29201 ac_res=`eval echo '${'$as_ac_Header'}'`
29202 { echo "$as_me:$LINENO: result: $ac_res" >&5
29203 echo "${ECHO_T}$ac_res" >&6; }
29205 # Is the header compilable?
29206 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29207 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29208 cat >conftest.$ac_ext <<_ACEOF
29211 cat confdefs.h >>conftest.$ac_ext
29212 cat >>conftest.$ac_ext <<_ACEOF
29213 /* end confdefs.h. */
29214 $ac_includes_default
29215 #include <$ac_header>
29217 rm -f conftest.$ac_objext
29218 if { (ac_try="$ac_compile"
29219 case "(($ac_try" in
29220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29221 *) ac_try_echo=$ac_try;;
29223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29224 (eval "$ac_compile") 2>conftest.er1
29226 grep -v '^ *+' conftest.er1 >conftest.err
29228 cat conftest.err >&5
29229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29230 (exit $ac_status); } && {
29231 test -z "$ac_c_werror_flag" ||
29232 test ! -s conftest.err
29233 } && test -s conftest.$ac_objext; then
29234 ac_header_compiler=yes
29236 echo "$as_me: failed program was:" >&5
29237 sed 's/^/| /' conftest.$ac_ext >&5
29239 ac_header_compiler=no
29242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29244 echo "${ECHO_T}$ac_header_compiler" >&6; }
29246 # Is the header present?
29247 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29249 cat >conftest.$ac_ext <<_ACEOF
29252 cat confdefs.h >>conftest.$ac_ext
29253 cat >>conftest.$ac_ext <<_ACEOF
29254 /* end confdefs.h. */
29255 #include <$ac_header>
29257 if { (ac_try="$ac_cpp conftest.$ac_ext"
29258 case "(($ac_try" in
29259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29260 *) ac_try_echo=$ac_try;;
29262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29265 grep -v '^ *+' conftest.er1 >conftest.err
29267 cat conftest.err >&5
29268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269 (exit $ac_status); } >/dev/null && {
29270 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29271 test ! -s conftest.err
29273 ac_header_preproc=yes
29275 echo "$as_me: failed program was:" >&5
29276 sed 's/^/| /' conftest.$ac_ext >&5
29278 ac_header_preproc=no
29281 rm -f conftest.err conftest.$ac_ext
29282 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29283 echo "${ECHO_T}$ac_header_preproc" >&6; }
29285 # So? What about this header?
29286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29292 ac_header_preproc=yes
29295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29298 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29299 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29301 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29302 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29305 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29308 ## ------------------------------------------- ##
29309 ## Report this to openssh-unix-dev@mindrot.org ##
29310 ## ------------------------------------------- ##
29312 ) | sed "s/^/$as_me: WARNING: /" >&2
29315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29318 echo $ECHO_N "(cached) $ECHO_C" >&6
29320 eval "$as_ac_Header=\$ac_header_preproc"
29322 ac_res=`eval echo '${'$as_ac_Header'}'`
29323 { echo "$as_me:$LINENO: result: $ac_res" >&5
29324 echo "${ECHO_T}$ac_res" >&6; }
29327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29328 cat >>confdefs.h <<_ACEOF
29329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29337 LIBS="$LIBS $K5LIBS"
29338 { echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5
29339 echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6; }
29340 if test "${ac_cv_search_k_hasafs+set}" = set; then
29341 echo $ECHO_N "(cached) $ECHO_C" >&6
29343 ac_func_search_save_LIBS=$LIBS
29344 cat >conftest.$ac_ext <<_ACEOF
29347 cat confdefs.h >>conftest.$ac_ext
29348 cat >>conftest.$ac_ext <<_ACEOF
29349 /* end confdefs.h. */
29351 /* Override any GCC internal prototype to avoid an error.
29352 Use char because int might match the return type of a GCC
29353 builtin and then its argument prototype would still apply. */
29361 return k_hasafs ();
29366 for ac_lib in '' kafs; do
29367 if test -z "$ac_lib"; then
29368 ac_res="none required"
29371 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29373 rm -f conftest.$ac_objext conftest$ac_exeext
29374 if { (ac_try="$ac_link"
29375 case "(($ac_try" in
29376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29377 *) ac_try_echo=$ac_try;;
29379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29380 (eval "$ac_link") 2>conftest.er1
29382 grep -v '^ *+' conftest.er1 >conftest.err
29384 cat conftest.err >&5
29385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386 (exit $ac_status); } && {
29387 test -z "$ac_c_werror_flag" ||
29388 test ! -s conftest.err
29389 } && test -s conftest$ac_exeext &&
29390 $as_test_x conftest$ac_exeext; then
29391 ac_cv_search_k_hasafs=$ac_res
29393 echo "$as_me: failed program was:" >&5
29394 sed 's/^/| /' conftest.$ac_ext >&5
29399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29401 if test "${ac_cv_search_k_hasafs+set}" = set; then
29405 if test "${ac_cv_search_k_hasafs+set}" = set; then
29408 ac_cv_search_k_hasafs=no
29410 rm conftest.$ac_ext
29411 LIBS=$ac_func_search_save_LIBS
29413 { echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5
29414 echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6; }
29415 ac_res=$ac_cv_search_k_hasafs
29416 if test "$ac_res" != no; then
29417 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29419 cat >>confdefs.h <<\_ACEOF
29431 # Looking for programs, paths and files
29433 PRIVSEP_PATH=/var/empty
29435 # Check whether --with-privsep-path was given.
29436 if test "${with_privsep_path+set}" = set; then
29437 withval=$with_privsep_path;
29438 if test -n "$withval" && test "x$withval" != "xno" && \
29439 test "x${withval}" != "xyes"; then
29440 PRIVSEP_PATH=$withval
29449 # Check whether --with-xauth was given.
29450 if test "${with_xauth+set}" = set; then
29451 withval=$with_xauth;
29452 if test -n "$withval" && test "x$withval" != "xno" && \
29453 test "x${withval}" != "xyes"; then
29454 xauth_path=$withval
29460 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
29461 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
29462 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
29463 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
29464 # Extract the first word of "xauth", so it can be a program name with args.
29465 set dummy xauth; ac_word=$2
29466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29468 if test "${ac_cv_path_xauth_path+set}" = set; then
29469 echo $ECHO_N "(cached) $ECHO_C" >&6
29471 case $xauth_path in
29473 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
29476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29477 for as_dir in $TestPath
29480 test -z "$as_dir" && as_dir=.
29481 for ac_exec_ext in '' $ac_executable_extensions; do
29482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29483 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
29484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29494 xauth_path=$ac_cv_path_xauth_path
29495 if test -n "$xauth_path"; then
29496 { echo "$as_me:$LINENO: result: $xauth_path" >&5
29497 echo "${ECHO_T}$xauth_path" >&6; }
29499 { echo "$as_me:$LINENO: result: no" >&5
29500 echo "${ECHO_T}no" >&6; }
29504 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
29505 xauth_path="/usr/openwin/bin/xauth"
29513 # Check whether --enable-strip was given.
29514 if test "${enable_strip+set}" = set; then
29515 enableval=$enable_strip;
29516 if test "x$enableval" = "xno" ; then
29525 if test -z "$xauth_path" ; then
29526 XAUTH_PATH="undefined"
29530 cat >>confdefs.h <<_ACEOF
29531 #define XAUTH_PATH "$xauth_path"
29534 XAUTH_PATH=$xauth_path
29538 # Check for mail directory (last resort if we cannot get it from headers)
29539 if test ! -z "$MAIL" ; then
29540 maildir=`dirname $MAIL`
29542 cat >>confdefs.h <<_ACEOF
29543 #define MAIL_DIRECTORY "$maildir"
29548 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
29549 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
29550 echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
29551 disable_ptmx_check=yes
29553 if test -z "$no_dev_ptmx" ; then
29554 if test "x$disable_ptmx_check" != "xyes" ; then
29555 { echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
29556 echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; }
29557 if test "${ac_cv_file___dev_ptmx_+set}" = set; then
29558 echo $ECHO_N "(cached) $ECHO_C" >&6
29560 test "$cross_compiling" = yes &&
29561 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
29562 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
29563 { (exit 1); exit 1; }; }
29564 if test -r ""/dev/ptmx""; then
29565 ac_cv_file___dev_ptmx_=yes
29567 ac_cv_file___dev_ptmx_=no
29570 { echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
29571 echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; }
29572 if test $ac_cv_file___dev_ptmx_ = yes; then
29575 cat >>confdefs.h <<_ACEOF
29576 #define HAVE_DEV_PTMX 1
29587 if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
29588 { echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
29589 echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; }
29590 if test "${ac_cv_file___dev_ptc_+set}" = set; then
29591 echo $ECHO_N "(cached) $ECHO_C" >&6
29593 test "$cross_compiling" = yes &&
29594 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
29595 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
29596 { (exit 1); exit 1; }; }
29597 if test -r ""/dev/ptc""; then
29598 ac_cv_file___dev_ptc_=yes
29600 ac_cv_file___dev_ptc_=no
29603 { echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
29604 echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; }
29605 if test $ac_cv_file___dev_ptc_ = yes; then
29608 cat >>confdefs.h <<_ACEOF
29609 #define HAVE_DEV_PTS_AND_PTC 1
29618 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5
29619 echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
29622 # Options from here on. Some of these are preset by platform above
29624 # Check whether --with-mantype was given.
29625 if test "${with_mantype+set}" = set; then
29626 withval=$with_mantype;
29632 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
29633 echo "$as_me: error: invalid man type: $withval" >&2;}
29634 { (exit 1); exit 1; }; }
29641 if test -z "$MANTYPE"; then
29642 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
29643 for ac_prog in nroff awf
29645 # Extract the first word of "$ac_prog", so it can be a program name with args.
29646 set dummy $ac_prog; ac_word=$2
29647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29649 if test "${ac_cv_path_NROFF+set}" = set; then
29650 echo $ECHO_N "(cached) $ECHO_C" >&6
29654 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
29657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29658 for as_dir in $TestPath
29661 test -z "$as_dir" && as_dir=.
29662 for ac_exec_ext in '' $ac_executable_extensions; do
29663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29664 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
29665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29675 NROFF=$ac_cv_path_NROFF
29676 if test -n "$NROFF"; then
29677 { echo "$as_me:$LINENO: result: $NROFF" >&5
29678 echo "${ECHO_T}$NROFF" >&6; }
29680 { echo "$as_me:$LINENO: result: no" >&5
29681 echo "${ECHO_T}no" >&6; }
29685 test -n "$NROFF" && break
29687 test -n "$NROFF" || NROFF="/bin/false"
29689 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
29691 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
29698 if test "$MANTYPE" = "doc"; then
29701 mansubdir=$MANTYPE;
29705 # Check whether to enable MD5 passwords
29708 # Check whether --with-md5-passwords was given.
29709 if test "${with_md5_passwords+set}" = set; then
29710 withval=$with_md5_passwords;
29711 if test "x$withval" != "xno" ; then
29713 cat >>confdefs.h <<\_ACEOF
29714 #define HAVE_MD5_PASSWORDS 1
29724 # Whether to disable shadow password support
29726 # Check whether --with-shadow was given.
29727 if test "${with_shadow+set}" = set; then
29728 withval=$with_shadow;
29729 if test "x$withval" = "xno" ; then
29730 cat >>confdefs.h <<\_ACEOF
29731 #define DISABLE_SHADOW 1
29741 if test -z "$disable_shadow" ; then
29742 { echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
29743 echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6; }
29744 cat >conftest.$ac_ext <<_ACEOF
29747 cat confdefs.h >>conftest.$ac_ext
29748 cat >>conftest.$ac_ext <<_ACEOF
29749 /* end confdefs.h. */
29751 #include <sys/types.h>
29752 #include <shadow.h>
29758 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
29763 rm -f conftest.$ac_objext
29764 if { (ac_try="$ac_compile"
29765 case "(($ac_try" in
29766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29767 *) ac_try_echo=$ac_try;;
29769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29770 (eval "$ac_compile") 2>conftest.er1
29772 grep -v '^ *+' conftest.er1 >conftest.err
29774 cat conftest.err >&5
29775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29776 (exit $ac_status); } && {
29777 test -z "$ac_c_werror_flag" ||
29778 test ! -s conftest.err
29779 } && test -s conftest.$ac_objext; then
29780 sp_expire_available=yes
29782 echo "$as_me: failed program was:" >&5
29783 sed 's/^/| /' conftest.$ac_ext >&5
29789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29791 if test "x$sp_expire_available" = "xyes" ; then
29792 { echo "$as_me:$LINENO: result: yes" >&5
29793 echo "${ECHO_T}yes" >&6; }
29795 cat >>confdefs.h <<\_ACEOF
29796 #define HAS_SHADOW_EXPIRE 1
29800 { echo "$as_me:$LINENO: result: no" >&5
29801 echo "${ECHO_T}no" >&6; }
29805 # Use ip address instead of hostname in $DISPLAY
29806 if test ! -z "$IPADDR_IN_DISPLAY" ; then
29807 DISPLAY_HACK_MSG="yes"
29809 cat >>confdefs.h <<\_ACEOF
29810 #define IPADDR_IN_DISPLAY 1
29814 DISPLAY_HACK_MSG="no"
29816 # Check whether --with-ipaddr-display was given.
29817 if test "${with_ipaddr_display+set}" = set; then
29818 withval=$with_ipaddr_display;
29819 if test "x$withval" != "xno" ; then
29820 cat >>confdefs.h <<\_ACEOF
29821 #define IPADDR_IN_DISPLAY 1
29824 DISPLAY_HACK_MSG="yes"
29832 # check for /etc/default/login and use it if present.
29833 # Check whether --enable-etc-default-login was given.
29834 if test "${enable_etc_default_login+set}" = set; then
29835 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
29836 { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5
29837 echo "$as_me: /etc/default/login handling disabled" >&6;}
29838 etc_default_login=no
29840 etc_default_login=yes
29843 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
29845 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5
29846 echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
29847 etc_default_login=no
29849 etc_default_login=yes
29855 if test "x$etc_default_login" != "xno"; then
29856 { echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5
29857 echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6; }
29858 if test "${ac_cv_file___etc_default_login_+set}" = set; then
29859 echo $ECHO_N "(cached) $ECHO_C" >&6
29861 test "$cross_compiling" = yes &&
29862 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
29863 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
29864 { (exit 1); exit 1; }; }
29865 if test -r ""/etc/default/login""; then
29866 ac_cv_file___etc_default_login_=yes
29868 ac_cv_file___etc_default_login_=no
29871 { echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5
29872 echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6; }
29873 if test $ac_cv_file___etc_default_login_ = yes; then
29874 external_path_file=/etc/default/login
29877 if test "x$external_path_file" = "x/etc/default/login"; then
29879 cat >>confdefs.h <<\_ACEOF
29880 #define HAVE_ETC_DEFAULT_LOGIN 1
29886 if test $ac_cv_func_login_getcapbool = "yes" && \
29887 test $ac_cv_header_login_cap_h = "yes" ; then
29888 external_path_file=/etc/login.conf
29891 # Whether to mess with the default path
29892 SERVER_PATH_MSG="(default)"
29894 # Check whether --with-default-path was given.
29895 if test "${with_default_path+set}" = set; then
29896 withval=$with_default_path;
29897 if test "x$external_path_file" = "x/etc/login.conf" ; then
29898 { echo "$as_me:$LINENO: WARNING:
29899 --with-default-path=PATH has no effect on this system.
29900 Edit /etc/login.conf instead." >&5
29901 echo "$as_me: WARNING:
29902 --with-default-path=PATH has no effect on this system.
29903 Edit /etc/login.conf instead." >&2;}
29904 elif test "x$withval" != "xno" ; then
29905 if test ! -z "$external_path_file" ; then
29906 { echo "$as_me:$LINENO: WARNING:
29907 --with-default-path=PATH will only be used if PATH is not defined in
29908 $external_path_file ." >&5
29909 echo "$as_me: WARNING:
29910 --with-default-path=PATH will only be used if PATH is not defined in
29911 $external_path_file ." >&2;}
29913 user_path="$withval"
29914 SERVER_PATH_MSG="$withval"
29918 if test "x$external_path_file" = "x/etc/login.conf" ; then
29919 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
29920 echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
29922 if test ! -z "$external_path_file" ; then
29923 { echo "$as_me:$LINENO: WARNING:
29924 If PATH is defined in $external_path_file, ensure the path to scp is included,
29925 otherwise scp will not work." >&5
29926 echo "$as_me: WARNING:
29927 If PATH is defined in $external_path_file, ensure the path to scp is included,
29928 otherwise scp will not work." >&2;}
29930 if test "$cross_compiling" = yes; then
29931 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
29934 cat >conftest.$ac_ext <<_ACEOF
29937 cat confdefs.h >>conftest.$ac_ext
29938 cat >>conftest.$ac_ext <<_ACEOF
29939 /* end confdefs.h. */
29941 /* find out what STDPATH is */
29943 #ifdef HAVE_PATHS_H
29944 # include <paths.h>
29946 #ifndef _PATH_STDPATH
29947 # ifdef _PATH_USERPATH /* Irix */
29948 # define _PATH_STDPATH _PATH_USERPATH
29950 # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
29953 #include <sys/types.h>
29954 #include <sys/stat.h>
29956 #define DATA "conftest.stdpath"
29963 fd = fopen(DATA,"w");
29967 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
29974 rm -f conftest$ac_exeext
29975 if { (ac_try="$ac_link"
29976 case "(($ac_try" in
29977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29978 *) ac_try_echo=$ac_try;;
29980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29981 (eval "$ac_link") 2>&5
29983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29985 { (case "(($ac_try" in
29986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29987 *) ac_try_echo=$ac_try;;
29989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29990 (eval "$ac_try") 2>&5
29992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29993 (exit $ac_status); }; }; then
29994 user_path=`cat conftest.stdpath`
29996 echo "$as_me: program exited with status $ac_status" >&5
29997 echo "$as_me: failed program was:" >&5
29998 sed 's/^/| /' conftest.$ac_ext >&5
30000 ( exit $ac_status )
30001 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
30003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30007 # make sure $bindir is in USER_PATH so scp will work
30008 t_bindir=`eval echo ${bindir}`
30010 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
30013 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
30015 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
30016 if test $? -ne 0 ; then
30017 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
30018 if test $? -ne 0 ; then
30019 user_path=$user_path:$t_bindir
30020 { echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
30021 echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6; }
30028 if test "x$external_path_file" != "x/etc/login.conf" ; then
30030 cat >>confdefs.h <<_ACEOF
30031 #define USER_PATH "$user_path"
30037 # Set superuser path separately to user path
30039 # Check whether --with-superuser-path was given.
30040 if test "${with_superuser_path+set}" = set; then
30041 withval=$with_superuser_path;
30042 if test -n "$withval" && test "x$withval" != "xno" && \
30043 test "x${withval}" != "xyes"; then
30045 cat >>confdefs.h <<_ACEOF
30046 #define SUPERUSER_PATH "$withval"
30049 superuser_path=$withval
30057 { echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
30058 echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6; }
30059 IPV4_IN6_HACK_MSG="no"
30061 # Check whether --with-4in6 was given.
30062 if test "${with_4in6+set}" = set; then
30063 withval=$with_4in6;
30064 if test "x$withval" != "xno" ; then
30065 { echo "$as_me:$LINENO: result: yes" >&5
30066 echo "${ECHO_T}yes" >&6; }
30068 cat >>confdefs.h <<\_ACEOF
30069 #define IPV4_IN_IPV6 1
30072 IPV4_IN6_HACK_MSG="yes"
30074 { echo "$as_me:$LINENO: result: no" >&5
30075 echo "${ECHO_T}no" >&6; }
30080 if test "x$inet6_default_4in6" = "xyes"; then
30081 { echo "$as_me:$LINENO: result: yes (default)" >&5
30082 echo "${ECHO_T}yes (default)" >&6; }
30083 cat >>confdefs.h <<\_ACEOF
30084 #define IPV4_IN_IPV6 1
30087 IPV4_IN6_HACK_MSG="yes"
30089 { echo "$as_me:$LINENO: result: no (default)" >&5
30090 echo "${ECHO_T}no (default)" >&6; }
30097 # Whether to enable BSD auth support
30100 # Check whether --with-bsd-auth was given.
30101 if test "${with_bsd_auth+set}" = set; then
30102 withval=$with_bsd_auth;
30103 if test "x$withval" != "xno" ; then
30105 cat >>confdefs.h <<\_ACEOF
30116 # Where to place sshd.pid
30118 # make sure the directory exists
30119 if test ! -d $piddir ; then
30120 piddir=`eval echo ${sysconfdir}`
30122 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
30127 # Check whether --with-pid-dir was given.
30128 if test "${with_pid_dir+set}" = set; then
30129 withval=$with_pid_dir;
30130 if test -n "$withval" && test "x$withval" != "xno" && \
30131 test "x${withval}" != "xyes"; then
30133 if test ! -d $piddir ; then
30134 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
30135 echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
30144 cat >>confdefs.h <<_ACEOF
30145 #define _PATH_SSH_PIDDIR "$piddir"
30150 # Check whether --enable-lastlog was given.
30151 if test "${enable_lastlog+set}" = set; then
30152 enableval=$enable_lastlog;
30153 if test "x$enableval" = "xno" ; then
30154 cat >>confdefs.h <<\_ACEOF
30155 #define DISABLE_LASTLOG 1
30163 # Check whether --enable-utmp was given.
30164 if test "${enable_utmp+set}" = set; then
30165 enableval=$enable_utmp;
30166 if test "x$enableval" = "xno" ; then
30167 cat >>confdefs.h <<\_ACEOF
30168 #define DISABLE_UTMP 1
30176 # Check whether --enable-utmpx was given.
30177 if test "${enable_utmpx+set}" = set; then
30178 enableval=$enable_utmpx;
30179 if test "x$enableval" = "xno" ; then
30181 cat >>confdefs.h <<\_ACEOF
30182 #define DISABLE_UTMPX 1
30190 # Check whether --enable-wtmp was given.
30191 if test "${enable_wtmp+set}" = set; then
30192 enableval=$enable_wtmp;
30193 if test "x$enableval" = "xno" ; then
30194 cat >>confdefs.h <<\_ACEOF
30195 #define DISABLE_WTMP 1
30203 # Check whether --enable-wtmpx was given.
30204 if test "${enable_wtmpx+set}" = set; then
30205 enableval=$enable_wtmpx;
30206 if test "x$enableval" = "xno" ; then
30208 cat >>confdefs.h <<\_ACEOF
30209 #define DISABLE_WTMPX 1
30217 # Check whether --enable-libutil was given.
30218 if test "${enable_libutil+set}" = set; then
30219 enableval=$enable_libutil;
30220 if test "x$enableval" = "xno" ; then
30221 cat >>confdefs.h <<\_ACEOF
30222 #define DISABLE_LOGIN 1
30230 # Check whether --enable-pututline was given.
30231 if test "${enable_pututline+set}" = set; then
30232 enableval=$enable_pututline;
30233 if test "x$enableval" = "xno" ; then
30235 cat >>confdefs.h <<\_ACEOF
30236 #define DISABLE_PUTUTLINE 1
30244 # Check whether --enable-pututxline was given.
30245 if test "${enable_pututxline+set}" = set; then
30246 enableval=$enable_pututxline;
30247 if test "x$enableval" = "xno" ; then
30249 cat >>confdefs.h <<\_ACEOF
30250 #define DISABLE_PUTUTXLINE 1
30259 # Check whether --with-lastlog was given.
30260 if test "${with_lastlog+set}" = set; then
30261 withval=$with_lastlog;
30262 if test "x$withval" = "xno" ; then
30263 cat >>confdefs.h <<\_ACEOF
30264 #define DISABLE_LASTLOG 1
30267 elif test -n "$withval" && test "x${withval}" != "xyes"; then
30268 conf_lastlog_location=$withval
30276 { echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
30277 echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6; }
30278 cat >conftest.$ac_ext <<_ACEOF
30281 cat confdefs.h >>conftest.$ac_ext
30282 cat >>conftest.$ac_ext <<_ACEOF
30283 /* end confdefs.h. */
30285 #include <sys/types.h>
30287 #ifdef HAVE_LASTLOG_H
30288 # include <lastlog.h>
30290 #ifdef HAVE_PATHS_H
30291 # include <paths.h>
30293 #ifdef HAVE_LOGIN_H
30294 # include <login.h>
30300 char *lastlog = LASTLOG_FILE;
30305 rm -f conftest.$ac_objext
30306 if { (ac_try="$ac_compile"
30307 case "(($ac_try" in
30308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30309 *) ac_try_echo=$ac_try;;
30311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30312 (eval "$ac_compile") 2>conftest.er1
30314 grep -v '^ *+' conftest.er1 >conftest.err
30316 cat conftest.err >&5
30317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30318 (exit $ac_status); } && {
30319 test -z "$ac_c_werror_flag" ||
30320 test ! -s conftest.err
30321 } && test -s conftest.$ac_objext; then
30322 { echo "$as_me:$LINENO: result: yes" >&5
30323 echo "${ECHO_T}yes" >&6; }
30325 echo "$as_me: failed program was:" >&5
30326 sed 's/^/| /' conftest.$ac_ext >&5
30329 { echo "$as_me:$LINENO: result: no" >&5
30330 echo "${ECHO_T}no" >&6; }
30331 { echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
30332 echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; }
30333 cat >conftest.$ac_ext <<_ACEOF
30336 cat confdefs.h >>conftest.$ac_ext
30337 cat >>conftest.$ac_ext <<_ACEOF
30338 /* end confdefs.h. */
30340 #include <sys/types.h>
30342 #ifdef HAVE_LASTLOG_H
30343 # include <lastlog.h>
30345 #ifdef HAVE_PATHS_H
30346 # include <paths.h>
30352 char *lastlog = _PATH_LASTLOG;
30357 rm -f conftest.$ac_objext
30358 if { (ac_try="$ac_compile"
30359 case "(($ac_try" in
30360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30361 *) ac_try_echo=$ac_try;;
30363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30364 (eval "$ac_compile") 2>conftest.er1
30366 grep -v '^ *+' conftest.er1 >conftest.err
30368 cat conftest.err >&5
30369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30370 (exit $ac_status); } && {
30371 test -z "$ac_c_werror_flag" ||
30372 test ! -s conftest.err
30373 } && test -s conftest.$ac_objext; then
30374 { echo "$as_me:$LINENO: result: yes" >&5
30375 echo "${ECHO_T}yes" >&6; }
30377 echo "$as_me: failed program was:" >&5
30378 sed 's/^/| /' conftest.$ac_ext >&5
30381 { echo "$as_me:$LINENO: result: no" >&5
30382 echo "${ECHO_T}no" >&6; }
30383 system_lastlog_path=no
30387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30394 if test -z "$conf_lastlog_location"; then
30395 if test x"$system_lastlog_path" = x"no" ; then
30396 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
30397 if (test -d "$f" || test -f "$f") ; then
30398 conf_lastlog_location=$f
30401 if test -z "$conf_lastlog_location"; then
30402 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
30403 echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
30408 if test -n "$conf_lastlog_location"; then
30410 cat >>confdefs.h <<_ACEOF
30411 #define CONF_LASTLOG_FILE "$conf_lastlog_location"
30416 { echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
30417 echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; }
30418 cat >conftest.$ac_ext <<_ACEOF
30421 cat confdefs.h >>conftest.$ac_ext
30422 cat >>conftest.$ac_ext <<_ACEOF
30423 /* end confdefs.h. */
30425 #include <sys/types.h>
30427 #ifdef HAVE_PATHS_H
30428 # include <paths.h>
30434 char *utmp = UTMP_FILE;
30439 rm -f conftest.$ac_objext
30440 if { (ac_try="$ac_compile"
30441 case "(($ac_try" in
30442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30443 *) ac_try_echo=$ac_try;;
30445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30446 (eval "$ac_compile") 2>conftest.er1
30448 grep -v '^ *+' conftest.er1 >conftest.err
30450 cat conftest.err >&5
30451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30452 (exit $ac_status); } && {
30453 test -z "$ac_c_werror_flag" ||
30454 test ! -s conftest.err
30455 } && test -s conftest.$ac_objext; then
30456 { echo "$as_me:$LINENO: result: yes" >&5
30457 echo "${ECHO_T}yes" >&6; }
30459 echo "$as_me: failed program was:" >&5
30460 sed 's/^/| /' conftest.$ac_ext >&5
30462 { echo "$as_me:$LINENO: result: no" >&5
30463 echo "${ECHO_T}no" >&6; }
30464 system_utmp_path=no
30468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30469 if test -z "$conf_utmp_location"; then
30470 if test x"$system_utmp_path" = x"no" ; then
30471 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
30472 if test -f $f ; then
30473 conf_utmp_location=$f
30476 if test -z "$conf_utmp_location"; then
30477 cat >>confdefs.h <<\_ACEOF
30478 #define DISABLE_UTMP 1
30484 if test -n "$conf_utmp_location"; then
30486 cat >>confdefs.h <<_ACEOF
30487 #define CONF_UTMP_FILE "$conf_utmp_location"
30492 { echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
30493 echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; }
30494 cat >conftest.$ac_ext <<_ACEOF
30497 cat confdefs.h >>conftest.$ac_ext
30498 cat >>conftest.$ac_ext <<_ACEOF
30499 /* end confdefs.h. */
30501 #include <sys/types.h>
30503 #ifdef HAVE_PATHS_H
30504 # include <paths.h>
30510 char *wtmp = WTMP_FILE;
30515 rm -f conftest.$ac_objext
30516 if { (ac_try="$ac_compile"
30517 case "(($ac_try" in
30518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30519 *) ac_try_echo=$ac_try;;
30521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30522 (eval "$ac_compile") 2>conftest.er1
30524 grep -v '^ *+' conftest.er1 >conftest.err
30526 cat conftest.err >&5
30527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30528 (exit $ac_status); } && {
30529 test -z "$ac_c_werror_flag" ||
30530 test ! -s conftest.err
30531 } && test -s conftest.$ac_objext; then
30532 { echo "$as_me:$LINENO: result: yes" >&5
30533 echo "${ECHO_T}yes" >&6; }
30535 echo "$as_me: failed program was:" >&5
30536 sed 's/^/| /' conftest.$ac_ext >&5
30538 { echo "$as_me:$LINENO: result: no" >&5
30539 echo "${ECHO_T}no" >&6; }
30540 system_wtmp_path=no
30544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30545 if test -z "$conf_wtmp_location"; then
30546 if test x"$system_wtmp_path" = x"no" ; then
30547 for f in /usr/adm/wtmp /var/log/wtmp; do
30548 if test -f $f ; then
30549 conf_wtmp_location=$f
30552 if test -z "$conf_wtmp_location"; then
30553 cat >>confdefs.h <<\_ACEOF
30554 #define DISABLE_WTMP 1
30560 if test -n "$conf_wtmp_location"; then
30562 cat >>confdefs.h <<_ACEOF
30563 #define CONF_WTMP_FILE "$conf_wtmp_location"
30569 { echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
30570 echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; }
30571 cat >conftest.$ac_ext <<_ACEOF
30574 cat confdefs.h >>conftest.$ac_ext
30575 cat >>conftest.$ac_ext <<_ACEOF
30576 /* end confdefs.h. */
30578 #include <sys/types.h>
30580 #ifdef HAVE_UTMPX_H
30583 #ifdef HAVE_PATHS_H
30584 # include <paths.h>
30590 char *wtmpx = WTMPX_FILE;
30595 rm -f conftest.$ac_objext
30596 if { (ac_try="$ac_compile"
30597 case "(($ac_try" in
30598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30599 *) ac_try_echo=$ac_try;;
30601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30602 (eval "$ac_compile") 2>conftest.er1
30604 grep -v '^ *+' conftest.er1 >conftest.err
30606 cat conftest.err >&5
30607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30608 (exit $ac_status); } && {
30609 test -z "$ac_c_werror_flag" ||
30610 test ! -s conftest.err
30611 } && test -s conftest.$ac_objext; then
30612 { echo "$as_me:$LINENO: result: yes" >&5
30613 echo "${ECHO_T}yes" >&6; }
30615 echo "$as_me: failed program was:" >&5
30616 sed 's/^/| /' conftest.$ac_ext >&5
30618 { echo "$as_me:$LINENO: result: no" >&5
30619 echo "${ECHO_T}no" >&6; }
30620 system_wtmpx_path=no
30624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30625 if test -z "$conf_wtmpx_location"; then
30626 if test x"$system_wtmpx_path" = x"no" ; then
30627 cat >>confdefs.h <<\_ACEOF
30628 #define DISABLE_WTMPX 1
30634 cat >>confdefs.h <<_ACEOF
30635 #define CONF_WTMPX_FILE "$conf_wtmpx_location"
30641 if test ! -z "$blibpath" ; then
30642 LDFLAGS="$LDFLAGS $blibflags$blibpath"
30643 { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
30644 echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
30647 CFLAGS="$CFLAGS $werror_flags"
30649 if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
30654 { echo "$as_me:$LINENO: checking whether BROKEN_GETADDRINFO is declared" >&5
30655 echo $ECHO_N "checking whether BROKEN_GETADDRINFO is declared... $ECHO_C" >&6; }
30656 if test "${ac_cv_have_decl_BROKEN_GETADDRINFO+set}" = set; then
30657 echo $ECHO_N "(cached) $ECHO_C" >&6
30659 cat >conftest.$ac_ext <<_ACEOF
30662 cat confdefs.h >>conftest.$ac_ext
30663 cat >>conftest.$ac_ext <<_ACEOF
30664 /* end confdefs.h. */
30665 $ac_includes_default
30669 #ifndef BROKEN_GETADDRINFO
30670 (void) BROKEN_GETADDRINFO;
30677 rm -f conftest.$ac_objext
30678 if { (ac_try="$ac_compile"
30679 case "(($ac_try" in
30680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30681 *) ac_try_echo=$ac_try;;
30683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30684 (eval "$ac_compile") 2>conftest.er1
30686 grep -v '^ *+' conftest.er1 >conftest.err
30688 cat conftest.err >&5
30689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30690 (exit $ac_status); } && {
30691 test -z "$ac_c_werror_flag" ||
30692 test ! -s conftest.err
30693 } && test -s conftest.$ac_objext; then
30694 ac_cv_have_decl_BROKEN_GETADDRINFO=yes
30696 echo "$as_me: failed program was:" >&5
30697 sed 's/^/| /' conftest.$ac_ext >&5
30699 ac_cv_have_decl_BROKEN_GETADDRINFO=no
30702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30704 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_BROKEN_GETADDRINFO" >&5
30705 echo "${ECHO_T}$ac_cv_have_decl_BROKEN_GETADDRINFO" >&6; }
30706 if test $ac_cv_have_decl_BROKEN_GETADDRINFO = yes; then
30710 TEST_SSH_IPV6=$TEST_SSH_IPV6
30714 ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile ssh_prng_cmds survey.sh"
30716 cat >confcache <<\_ACEOF
30717 # This file is a shell script that caches the results of configure
30718 # tests run on this system so they can be shared between configure
30719 # scripts and configure runs, see configure's option --config-cache.
30720 # It is not useful on other systems. If it contains results you don't
30721 # want to keep, you may remove or edit it.
30723 # config.status only pays attention to the cache file if you give it
30724 # the --recheck option to rerun configure.
30726 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30727 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30728 # following values.
30732 # The following way of writing the cache mishandles newlines in values,
30733 # but we know of no workaround that is simple, portable, and efficient.
30734 # So, we kill variables containing newlines.
30735 # Ultrix sh set writes to stderr and can't be redirected directly,
30736 # and sets the high bit in the cache file unless we assign to the vars.
30738 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30739 eval ac_val=\$$ac_var
30743 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30744 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30747 _ | IFS | as_nl) ;; #(
30748 *) $as_unset $ac_var ;;
30754 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30755 *${as_nl}ac_space=\ *)
30756 # `set' does not quote correctly, so add quotes (double-quote
30757 # substitution turns \\\\ into \\, and sed turns \\ into \).
30760 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30763 # `set' quotes correctly as required by POSIX, so do not add quotes.
30764 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30773 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30775 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30777 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30778 if test -w "$cache_file"; then
30779 test "x$cache_file" != "x/dev/null" &&
30780 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30781 echo "$as_me: updating cache $cache_file" >&6;}
30782 cat confcache >$cache_file
30784 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30785 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30790 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30791 # Let make expand exec_prefix.
30792 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30794 DEFS=-DHAVE_CONFIG_H
30798 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30799 # 1. Remove the extension, and $U if already installed.
30800 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30801 ac_i=`echo "$ac_i" | sed "$ac_script"`
30802 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30803 # will be set to the directory where LIBOBJS objects are built.
30804 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30805 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30807 LIBOBJS=$ac_libobjs
30809 LTLIBOBJS=$ac_ltlibobjs
30813 : ${CONFIG_STATUS=./config.status}
30814 ac_clean_files_save=$ac_clean_files
30815 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30816 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30817 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30818 cat >$CONFIG_STATUS <<_ACEOF
30820 # Generated by $as_me.
30821 # Run this file to recreate the current configuration.
30822 # Compiler output produced by configure, useful for debugging
30823 # configure, is in config.log if it exists.
30826 ac_cs_recheck=false
30828 SHELL=\${CONFIG_SHELL-$SHELL}
30831 cat >>$CONFIG_STATUS <<\_ACEOF
30832 ## --------------------- ##
30833 ## M4sh Initialization. ##
30834 ## --------------------- ##
30836 # Be more Bourne compatible
30837 DUALCASE=1; export DUALCASE # for MKS sh
30838 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30841 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30842 # is contrary to our usage. Disable this feature.
30843 alias -g '${1+"$@"}'='"$@"'
30844 setopt NO_GLOB_SUBST
30846 case `(set -o) 2>/dev/null` in
30847 *posix*) set -o posix ;;
30856 # Avoid depending upon Character Ranges.
30857 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30858 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30859 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30860 as_cr_digits='0123456789'
30861 as_cr_alnum=$as_cr_Letters$as_cr_digits
30863 # The user is always right.
30864 if test "${PATH_SEPARATOR+set}" != set; then
30865 echo "#! /bin/sh" >conf$$.sh
30866 echo "exit 0" >>conf$$.sh
30868 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30876 # Support unset when possible.
30877 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30885 # We need space, tab and new line, in precisely that order. Quoting is
30886 # there to prevent editors from complaining about space-tab.
30887 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30888 # splitting by setting IFS to empty value.)
30893 # Find who we are. Look in the path if we contain no directory separator.
30895 *[\\/]* ) as_myself=$0 ;;
30896 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30897 for as_dir in $PATH
30900 test -z "$as_dir" && as_dir=.
30901 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30907 # We did not find ourselves, most probably we were run as `sh COMMAND'
30908 # in which case we are not to be found in the path.
30909 if test "x$as_myself" = x; then
30912 if test ! -f "$as_myself"; then
30913 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30914 { (exit 1); exit 1; }
30917 # Work around bugs in pre-3.0 UWIN ksh.
30918 for as_var in ENV MAIL MAILPATH
30919 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30927 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30928 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30929 LC_TELEPHONE LC_TIME
30931 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30932 eval $as_var=C; export $as_var
30934 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30938 # Required to use basename.
30939 if expr a : '\(a\)' >/dev/null 2>&1 &&
30940 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30946 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30947 as_basename=basename
30953 # Name of the executable.
30954 as_me=`$as_basename -- "$0" ||
30955 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30956 X"$0" : 'X\(//\)$' \| \
30957 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30959 sed '/^.*\/\([^/][^/]*\)\/*$/{
30978 as_lineno_1=$LINENO
30979 as_lineno_2=$LINENO
30980 test "x$as_lineno_1" != "x$as_lineno_2" &&
30981 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30983 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30984 # uniformly replaced by the line number. The first 'sed' inserts a
30985 # line-number line after each line using $LINENO; the second 'sed'
30986 # does the real work. The second script uses 'N' to pair each
30987 # line-number line with the line containing $LINENO, and appends
30988 # trailing '-' during substitution so that $LINENO is not a special
30989 # case at line end.
30990 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30991 # scripts with optimization help from Paolo Bonzini. Blame Lee
30992 # E. McMahon (1931-1989) for sed's syntax. :-)
31004 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
31007 ' >$as_me.lineno &&
31008 chmod +x "$as_me.lineno" ||
31009 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
31010 { (exit 1); exit 1; }; }
31012 # Don't try to exec as it changes $[0], causing all sort of problems
31013 # (the dirname of $[0] is not the place where we might find the
31014 # original and so on. Autoconf is especially sensitive to this).
31015 . "./$as_me.lineno"
31016 # Exit status is that of the last command.
31021 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31027 ECHO_C= ECHO_N= ECHO_T=
31028 case `echo -n x` in
31030 case `echo 'x\c'` in
31031 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31038 if expr a : '\(a\)' >/dev/null 2>&1 &&
31039 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31045 rm -f conf$$ conf$$.exe conf$$.file
31046 if test -d conf$$.dir; then
31047 rm -f conf$$.dir/conf$$.file
31053 if ln -s conf$$.file conf$$ 2>/dev/null; then
31055 # ... but there are two gotchas:
31056 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31057 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31058 # In both cases, we have to default to `cp -p'.
31059 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31061 elif ln conf$$.file conf$$ 2>/dev/null; then
31066 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31067 rmdir conf$$.dir 2>/dev/null
31069 if mkdir -p . 2>/dev/null; then
31072 test -d ./-p && rmdir ./-p
31076 if test -x / >/dev/null 2>&1; then
31077 as_test_x='test -x'
31079 if ls -dL / >/dev/null 2>&1; then
31086 if test -d "$1"; then
31092 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
31093 ???[sx]*):;;*)false;;esac;fi
31097 as_executable_p=$as_test_x
31099 # Sed expression to map a string onto a valid CPP name.
31100 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31102 # Sed expression to map a string onto a valid variable name.
31103 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31108 # Save the log message, to keep $[0] and so on meaningful, and to
31109 # report actual input values of CONFIG_FILES etc. instead of their
31110 # values after options handling.
31112 This file was extended by OpenSSH $as_me Portable, which was
31113 generated by GNU Autoconf 2.61. Invocation command line was
31115 CONFIG_FILES = $CONFIG_FILES
31116 CONFIG_HEADERS = $CONFIG_HEADERS
31117 CONFIG_LINKS = $CONFIG_LINKS
31118 CONFIG_COMMANDS = $CONFIG_COMMANDS
31121 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31126 cat >>$CONFIG_STATUS <<_ACEOF
31127 # Files that config.status was made for.
31128 config_files="$ac_config_files"
31129 config_headers="$ac_config_headers"
31133 cat >>$CONFIG_STATUS <<\_ACEOF
31135 \`$as_me' instantiates files from templates according to the
31136 current configuration.
31138 Usage: $0 [OPTIONS] [FILE]...
31140 -h, --help print this help, then exit
31141 -V, --version print version number and configuration settings, then exit
31142 -q, --quiet do not print progress messages
31143 -d, --debug don't remove temporary files
31144 --recheck update $as_me by reconfiguring in the same conditions
31145 --file=FILE[:TEMPLATE]
31146 instantiate the configuration file FILE
31147 --header=FILE[:TEMPLATE]
31148 instantiate the configuration header FILE
31150 Configuration files:
31153 Configuration headers:
31156 Report bugs to <bug-autoconf@gnu.org>."
31159 cat >>$CONFIG_STATUS <<_ACEOF
31161 OpenSSH config.status Portable
31162 configured by $0, generated by GNU Autoconf 2.61,
31163 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31165 Copyright (C) 2006 Free Software Foundation, Inc.
31166 This config.status script is free software; the Free Software Foundation
31167 gives unlimited permission to copy, distribute and modify it."
31174 cat >>$CONFIG_STATUS <<\_ACEOF
31175 # If no file are specified by the user, then we need to provide default
31176 # value. By we need to know if files were specified by the user.
31182 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31183 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31194 # Handling of the options.
31195 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31197 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31198 echo "$ac_cs_version"; exit ;;
31199 --debug | --debu | --deb | --de | --d | -d )
31201 --file | --fil | --fi | --f )
31203 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31204 ac_need_defaults=false;;
31205 --header | --heade | --head | --hea )
31207 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31208 ac_need_defaults=false;;
31210 # Conflict between --help and --header
31211 { echo "$as_me: error: ambiguous option: $1
31212 Try \`$0 --help' for more information." >&2
31213 { (exit 1); exit 1; }; };;
31214 --help | --hel | -h )
31215 echo "$ac_cs_usage"; exit ;;
31216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31217 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31220 # This is an error.
31221 -*) { echo "$as_me: error: unrecognized option: $1
31222 Try \`$0 --help' for more information." >&2
31223 { (exit 1); exit 1; }; } ;;
31225 *) ac_config_targets="$ac_config_targets $1"
31226 ac_need_defaults=false ;;
31232 ac_configure_extra_args=
31234 if $ac_cs_silent; then
31236 ac_configure_extra_args="$ac_configure_extra_args --silent"
31240 cat >>$CONFIG_STATUS <<_ACEOF
31241 if \$ac_cs_recheck; then
31242 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31243 CONFIG_SHELL=$SHELL
31244 export CONFIG_SHELL
31245 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31249 cat >>$CONFIG_STATUS <<\_ACEOF
31253 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31254 ## Running $as_me. ##
31260 cat >>$CONFIG_STATUS <<_ACEOF
31263 cat >>$CONFIG_STATUS <<\_ACEOF
31265 # Handling of arguments.
31266 for ac_config_target in $ac_config_targets
31268 case $ac_config_target in
31269 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
31270 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31271 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
31272 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
31273 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
31274 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
31275 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
31276 "ssh_prng_cmds") CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
31277 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
31279 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31280 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31281 { (exit 1); exit 1; }; };;
31286 # If the user did not use the arguments to specify the items to instantiate,
31287 # then the envvar interface is used. Set only those that are not.
31288 # We use the long form for the default assignment because of an extremely
31289 # bizarre bug on SunOS 4.1.3.
31290 if $ac_need_defaults; then
31291 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31292 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31295 # Have a temporary directory for convenience. Make it in the build tree
31296 # simply because there is no reason against having it here, and in addition,
31297 # creating and moving files from /tmp can sometimes cause problems.
31298 # Hook for its removal unless debugging.
31299 # Note that there is a small window in which the directory will not be cleaned:
31300 # after its creation but before its name has been assigned to `$tmp'.
31304 trap 'exit_status=$?
31305 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31307 trap '{ (exit 1); exit 1; }' 1 2 13 15
31309 # Create a (secure) tmp directory for tmp files.
31312 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31313 test -n "$tmp" && test -d "$tmp"
31316 tmp=./conf$$-$RANDOM
31317 (umask 077 && mkdir "$tmp")
31320 echo "$me: cannot create a temporary directory in ." >&2
31321 { (exit 1); exit 1; }
31325 # Set up the sed scripts for CONFIG_FILES section.
31328 # No need to generate the scripts if there are no CONFIG_FILES.
31329 # This happens for instance when ./config.status config.h
31330 if test -n "$CONFIG_FILES"; then
31337 for ac_last_try in false false false false false :; do
31338 cat >conf$$subs.sed <<_ACEOF
31339 SHELL!$SHELL$ac_delim
31340 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31341 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31342 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31343 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31344 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31345 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31346 exec_prefix!$exec_prefix$ac_delim
31347 prefix!$prefix$ac_delim
31348 program_transform_name!$program_transform_name$ac_delim
31349 bindir!$bindir$ac_delim
31350 sbindir!$sbindir$ac_delim
31351 libexecdir!$libexecdir$ac_delim
31352 datarootdir!$datarootdir$ac_delim
31353 datadir!$datadir$ac_delim
31354 sysconfdir!$sysconfdir$ac_delim
31355 sharedstatedir!$sharedstatedir$ac_delim
31356 localstatedir!$localstatedir$ac_delim
31357 includedir!$includedir$ac_delim
31358 oldincludedir!$oldincludedir$ac_delim
31359 docdir!$docdir$ac_delim
31360 infodir!$infodir$ac_delim
31361 htmldir!$htmldir$ac_delim
31362 dvidir!$dvidir$ac_delim
31363 pdfdir!$pdfdir$ac_delim
31364 psdir!$psdir$ac_delim
31365 libdir!$libdir$ac_delim
31366 localedir!$localedir$ac_delim
31367 mandir!$mandir$ac_delim
31368 DEFS!$DEFS$ac_delim
31369 ECHO_C!$ECHO_C$ac_delim
31370 ECHO_N!$ECHO_N$ac_delim
31371 ECHO_T!$ECHO_T$ac_delim
31372 LIBS!$LIBS$ac_delim
31373 build_alias!$build_alias$ac_delim
31374 host_alias!$host_alias$ac_delim
31375 target_alias!$target_alias$ac_delim
31377 CFLAGS!$CFLAGS$ac_delim
31378 LDFLAGS!$LDFLAGS$ac_delim
31379 CPPFLAGS!$CPPFLAGS$ac_delim
31380 ac_ct_CC!$ac_ct_CC$ac_delim
31381 EXEEXT!$EXEEXT$ac_delim
31382 OBJEXT!$OBJEXT$ac_delim
31383 build!$build$ac_delim
31384 build_cpu!$build_cpu$ac_delim
31385 build_vendor!$build_vendor$ac_delim
31386 build_os!$build_os$ac_delim
31387 host!$host$ac_delim
31388 host_cpu!$host_cpu$ac_delim
31389 host_vendor!$host_vendor$ac_delim
31390 host_os!$host_os$ac_delim
31392 GREP!$GREP$ac_delim
31393 EGREP!$EGREP$ac_delim
31395 RANLIB!$RANLIB$ac_delim
31396 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31397 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31398 INSTALL_DATA!$INSTALL_DATA$ac_delim
31401 KILL!$KILL$ac_delim
31402 PERL!$PERL$ac_delim
31405 TEST_MINUS_S_SH!$TEST_MINUS_S_SH$ac_delim
31407 GROFF!$GROFF$ac_delim
31408 NROFF!$NROFF$ac_delim
31409 MANDOC!$MANDOC$ac_delim
31410 TEST_SHELL!$TEST_SHELL$ac_delim
31411 MANFMT!$MANFMT$ac_delim
31412 PATH_GROUPADD_PROG!$PATH_GROUPADD_PROG$ac_delim
31413 PATH_USERADD_PROG!$PATH_USERADD_PROG$ac_delim
31414 MAKE_PACKAGE_SUPPORTED!$MAKE_PACKAGE_SUPPORTED$ac_delim
31415 STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim
31416 LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim
31417 PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim
31419 SSHDLIBS!$SSHDLIBS$ac_delim
31420 PKGCONFIG!$PKGCONFIG$ac_delim
31421 LIBEDIT!$LIBEDIT$ac_delim
31422 TEST_SSH_SHA256!$TEST_SSH_SHA256$ac_delim
31423 TEST_SSH_ECC!$TEST_SSH_ECC$ac_delim
31424 COMMENT_OUT_ECC!$COMMENT_OUT_ECC$ac_delim
31425 INSTALL_SSH_RAND_HELPER!$INSTALL_SSH_RAND_HELPER$ac_delim
31426 SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim
31427 PROG_LS!$PROG_LS$ac_delim
31428 PROG_NETSTAT!$PROG_NETSTAT$ac_delim
31429 PROG_ARP!$PROG_ARP$ac_delim
31430 PROG_IFCONFIG!$PROG_IFCONFIG$ac_delim
31431 PROG_JSTAT!$PROG_JSTAT$ac_delim
31432 PROG_PS!$PROG_PS$ac_delim
31433 PROG_SAR!$PROG_SAR$ac_delim
31434 PROG_W!$PROG_W$ac_delim
31435 PROG_WHO!$PROG_WHO$ac_delim
31438 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31440 elif $ac_last_try; then
31441 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31442 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31443 { (exit 1); exit 1; }; }
31445 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31449 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31450 if test -n "$ac_eof"; then
31451 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31452 ac_eof=`expr $ac_eof + 1`
31455 cat >>$CONFIG_STATUS <<_ACEOF
31456 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31457 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31460 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31461 s/^/s,@/; s/!/@,|#_!!_#|/
31464 s/'"$ac_delim"'$/,g/; t
31466 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31467 ' >>$CONFIG_STATUS <conf$$subs.sed
31468 rm -f conf$$subs.sed
31469 cat >>$CONFIG_STATUS <<_ACEOF
31475 for ac_last_try in false false false false false :; do
31476 cat >conf$$subs.sed <<_ACEOF
31477 PROG_LAST!$PROG_LAST$ac_delim
31478 PROG_LASTLOG!$PROG_LASTLOG$ac_delim
31479 PROG_DF!$PROG_DF$ac_delim
31480 PROG_VMSTAT!$PROG_VMSTAT$ac_delim
31481 PROG_UPTIME!$PROG_UPTIME$ac_delim
31482 PROG_IPCS!$PROG_IPCS$ac_delim
31483 PROG_TAIL!$PROG_TAIL$ac_delim
31484 INSTALL_SSH_PRNG_CMDS!$INSTALL_SSH_PRNG_CMDS$ac_delim
31485 KRB5CONF!$KRB5CONF$ac_delim
31486 PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim
31487 xauth_path!$xauth_path$ac_delim
31488 STRIP_OPT!$STRIP_OPT$ac_delim
31489 XAUTH_PATH!$XAUTH_PATH$ac_delim
31490 MANTYPE!$MANTYPE$ac_delim
31491 mansubdir!$mansubdir$ac_delim
31492 user_path!$user_path$ac_delim
31493 piddir!$piddir$ac_delim
31494 TEST_SSH_IPV6!$TEST_SSH_IPV6$ac_delim
31495 LIBOBJS!$LIBOBJS$ac_delim
31496 LTLIBOBJS!$LTLIBOBJS$ac_delim
31499 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 20; then
31501 elif $ac_last_try; then
31502 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31503 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31504 { (exit 1); exit 1; }; }
31506 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31510 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31511 if test -n "$ac_eof"; then
31512 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31513 ac_eof=`expr $ac_eof + 1`
31516 cat >>$CONFIG_STATUS <<_ACEOF
31517 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31518 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31521 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31522 s/^/s,@/; s/!/@,|#_!!_#|/
31525 s/'"$ac_delim"'$/,g/; t
31527 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31528 ' >>$CONFIG_STATUS <conf$$subs.sed
31529 rm -f conf$$subs.sed
31530 cat >>$CONFIG_STATUS <<_ACEOF
31537 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31538 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31539 # trailing colons and then remove the whole line if VPATH becomes empty
31540 # (actually we leave an empty line to preserve line numbers).
31541 if test "x$srcdir" = x.; then
31542 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31543 s/:*\$(srcdir):*/:/
31544 s/:*\${srcdir}:*/:/
31546 s/^\([^=]*=[ ]*\):*/\1/
31552 cat >>$CONFIG_STATUS <<\_ACEOF
31553 fi # test -n "$CONFIG_FILES"
31556 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
31559 :[FHLC]) ac_mode=$ac_tag; continue;;
31561 case $ac_mode$ac_tag in
31563 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31564 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31565 { (exit 1); exit 1; }; };;
31566 :[FH]-) ac_tag=-:-;;
31567 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31584 -) ac_f="$tmp/stdin";;
31585 *) # Look for the file first in the build tree, then in the source tree
31586 # (if the path is not absolute). The absolute path cannot be DOS-style,
31587 # because $ac_f cannot contain `:'.
31591 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31593 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31594 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31595 { (exit 1); exit 1; }; };;
31597 ac_file_inputs="$ac_file_inputs $ac_f"
31600 # Let's still pretend it is `configure' which instantiates (i.e., don't
31601 # use $as_me), people would be surprised to read:
31602 # /* config.h. Generated by config.status. */
31603 configure_input="Generated from "`IFS=:
31604 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31605 if test x"$ac_file" != x-; then
31606 configure_input="$ac_file. $configure_input"
31607 { echo "$as_me:$LINENO: creating $ac_file" >&5
31608 echo "$as_me: creating $ac_file" >&6;}
31612 *:-:* | *:-) cat >"$tmp/stdin";;
31617 ac_dir=`$as_dirname -- "$ac_file" ||
31618 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31619 X"$ac_file" : 'X\(//\)[^/]' \| \
31620 X"$ac_file" : 'X\(//\)$' \| \
31621 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31627 /^X\(\/\/\)[^/].*/{
31642 -*) as_dir=./$as_dir;;
31644 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31648 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31649 *) as_qdir=$as_dir;;
31651 as_dirs="'$as_qdir' $as_dirs"
31652 as_dir=`$as_dirname -- "$as_dir" ||
31653 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31654 X"$as_dir" : 'X\(//\)[^/]' \| \
31655 X"$as_dir" : 'X\(//\)$' \| \
31656 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31662 /^X\(\/\/\)[^/].*/{
31675 test -d "$as_dir" && break
31677 test -z "$as_dirs" || eval "mkdir $as_dirs"
31678 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31679 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31680 { (exit 1); exit 1; }; }; }
31684 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31686 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31687 # A ".." for each directory in $ac_dir_suffix.
31688 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31689 case $ac_top_builddir_sub in
31690 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31691 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31694 ac_abs_top_builddir=$ac_pwd
31695 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31696 # for backward compatibility:
31697 ac_top_builddir=$ac_top_build_prefix
31700 .) # We are building in place.
31702 ac_top_srcdir=$ac_top_builddir_sub
31703 ac_abs_top_srcdir=$ac_pwd ;;
31704 [\\/]* | ?:[\\/]* ) # Absolute name.
31705 ac_srcdir=$srcdir$ac_dir_suffix;
31706 ac_top_srcdir=$srcdir
31707 ac_abs_top_srcdir=$srcdir ;;
31708 *) # Relative name.
31709 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31710 ac_top_srcdir=$ac_top_build_prefix$srcdir
31711 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31713 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31723 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31724 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31728 cat >>$CONFIG_STATUS <<\_ACEOF
31729 # If the template does not know about datarootdir, expand it.
31730 # FIXME: This hack should be removed a few years after 2.60.
31731 ac_datarootdir_hack=; ac_datarootdir_seen=
31733 case `sed -n '/datarootdir/ {
31742 ' $ac_file_inputs` in
31743 *datarootdir*) ac_datarootdir_seen=yes;;
31744 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31745 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31746 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31748 cat >>$CONFIG_STATUS <<_ACEOF
31749 ac_datarootdir_hack='
31750 s&@datadir@&$datadir&g
31751 s&@docdir@&$docdir&g
31752 s&@infodir@&$infodir&g
31753 s&@localedir@&$localedir&g
31754 s&@mandir@&$mandir&g
31755 s&\\\${datarootdir}&$datarootdir&g' ;;
31759 # Neutralize VPATH when `$srcdir' = `.'.
31760 # Shell code in configure.ac might set extrasub.
31761 # FIXME: do we really want to maintain this feature?
31762 cat >>$CONFIG_STATUS <<_ACEOF
31766 cat >>$CONFIG_STATUS <<\_ACEOF
31768 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31769 s&@configure_input@&$configure_input&;t t
31770 s&@top_builddir@&$ac_top_builddir_sub&;t t
31771 s&@srcdir@&$ac_srcdir&;t t
31772 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31773 s&@top_srcdir@&$ac_top_srcdir&;t t
31774 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31775 s&@builddir@&$ac_builddir&;t t
31776 s&@abs_builddir@&$ac_abs_builddir&;t t
31777 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31778 s&@INSTALL@&$ac_INSTALL&;t t
31779 $ac_datarootdir_hack
31780 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
31782 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31783 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31784 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31785 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31786 which seems to be undefined. Please make sure it is defined." >&5
31787 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31788 which seems to be undefined. Please make sure it is defined." >&2;}
31792 -) cat "$tmp/out"; rm -f "$tmp/out";;
31793 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31802 # Transform confdefs.h into a sed script `conftest.defines', that
31803 # substitutes the proper values into config.h.in to produce config.h.
31804 rm -f conftest.defines conftest.tail
31805 # First, append a space to every undef/define line, to ease matching.
31806 echo 's/$/ /' >conftest.defines
31807 # Then, protect against being on the right side of a sed subst, or in
31808 # an unquoted here document, in config.status. If some macros were
31809 # called several times there might be several #defines for the same
31810 # symbol, which is useless. But do not sort them, since the last
31811 # AC_DEFINE must be honored.
31812 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31813 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31814 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31815 # PARAMS is the parameter list in the macro definition--in most cases, it's
31816 # just an empty string.
31817 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
31818 ac_dB='\\)[ (].*,\\1define\\2'
31826 s/^[ ]*#[ ]*define[ ][ ]*//
31831 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31832 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31833 ' >>conftest.defines
31835 # Remove the space that was appended to ease matching.
31836 # Then replace #undef with comments. This is necessary, for
31837 # example, in the case of _POSIX_SOURCE, which is predefined and required
31838 # on some systems where configure will not decide to define it.
31839 # (The regexp can be short, since the line contains either #define or #undef.)
31841 s,^[ #]*u.*,/* & */,' >>conftest.defines
31843 # Break up conftest.defines:
31844 ac_max_sed_lines=50
31846 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31847 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31848 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31850 ac_in='$ac_file_inputs'
31851 ac_out='"$tmp/out1"'
31852 ac_nxt='"$tmp/out2"'
31856 # Write a here document:
31857 cat >>$CONFIG_STATUS <<_ACEOF
31858 # First, check the format of the line:
31859 cat >"\$tmp/defines.sed" <<\\CEOF
31860 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
31861 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
31865 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31867 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31868 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31869 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31870 grep . conftest.tail >/dev/null || break
31871 rm -f conftest.defines
31872 mv conftest.tail conftest.defines
31874 rm -f conftest.defines conftest.tail
31876 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31877 cat >>$CONFIG_STATUS <<\_ACEOF
31878 if test x"$ac_file" != x-; then
31879 echo "/* $configure_input */" >"$tmp/config.h"
31880 cat "$ac_result" >>"$tmp/config.h"
31881 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31882 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31883 echo "$as_me: $ac_file is unchanged" >&6;}
31886 mv "$tmp/config.h" $ac_file
31889 echo "/* $configure_input */"
31901 { (exit 0); exit 0; }
31903 chmod +x $CONFIG_STATUS
31904 ac_clean_files=$ac_clean_files_save
31907 # configure is writing to config.log, and then calls config.status.
31908 # config.status does its own redirection, appending to config.log.
31909 # Unfortunately, on DOS this fails, as config.log is still kept open
31910 # by configure, so config.status won't be able to write to it; its
31911 # output is simply discarded. So we exec the FD to /dev/null,
31912 # effectively closing config.log, so it can be properly (re)opened and
31913 # appended to by config.status. When coming back to configure, we
31914 # need to make the FD available again.
31915 if test "$no_create" != yes; then
31917 ac_config_status_args=
31918 test "$silent" = yes &&
31919 ac_config_status_args="$ac_config_status_args --quiet"
31921 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31923 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31924 # would make configure fail if this is the last instruction.
31925 $ac_cs_success || { (exit 1); exit 1; }
31929 # Print summary of options
31931 # Someone please show me a better way :)
31932 A=`eval echo ${prefix}` ; A=`eval echo ${A}`
31933 B=`eval echo ${bindir}` ; B=`eval echo ${B}`
31934 C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
31935 D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
31936 E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
31937 F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
31938 G=`eval echo ${piddir}` ; G=`eval echo ${G}`
31939 H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
31940 I=`eval echo ${user_path}` ; I=`eval echo ${I}`
31941 J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
31944 echo "OpenSSH has been configured with the following options:"
31945 echo " User binaries: $B"
31946 echo " System binaries: $C"
31947 echo " Configuration files: $D"
31948 echo " Askpass program: $E"
31949 echo " Manual pages: $F"
31950 echo " PID file: $G"
31951 echo " Privilege separation chroot path: $H"
31952 if test "x$external_path_file" = "x/etc/login.conf" ; then
31953 echo " At runtime, sshd will use the path defined in $external_path_file"
31954 echo " Make sure the path to scp is present, otherwise scp will not work"
31956 echo " sshd default user PATH: $I"
31957 if test ! -z "$external_path_file"; then
31958 echo " (If PATH is set in $external_path_file it will be used instead. If"
31959 echo " used, ensure the path to scp is present, otherwise scp will not work.)"
31962 if test ! -z "$superuser_path" ; then
31963 echo " sshd superuser user PATH: $J"
31965 echo " Manpage format: $MANTYPE"
31966 echo " PAM support: $PAM_MSG"
31967 echo " OSF SIA support: $SIA_MSG"
31968 echo " KerberosV support: $KRB5_MSG"
31969 echo " SELinux support: $SELINUX_MSG"
31970 echo " Smartcard support: $SCARD_MSG"
31971 echo " S/KEY support: $SKEY_MSG"
31972 echo " TCP Wrappers support: $TCPW_MSG"
31973 echo " MD5 password support: $MD5_MSG"
31974 echo " libedit support: $LIBEDIT_MSG"
31975 echo " Solaris process contract support: $SPC_MSG"
31976 echo " Solaris project support: $SP_MSG"
31977 echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
31978 echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
31979 echo " BSD Auth support: $BSD_AUTH_MSG"
31980 echo " Random number source: $RAND_MSG"
31981 if test ! -z "$USE_RAND_HELPER" ; then
31982 echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
31987 echo " Host: ${host}"
31988 echo " Compiler: ${CC}"
31989 echo " Compiler flags: ${CFLAGS}"
31990 echo "Preprocessor flags: ${CPPFLAGS}"
31991 echo " Linker flags: ${LDFLAGS}"
31992 echo " Libraries: ${LIBS}"
31993 if test ! -z "${SSHDLIBS}"; then
31994 echo " +for sshd: ${SSHDLIBS}"
31999 if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
32000 echo "SVR4 style packages are supported with \"make package\""
32004 if test "x$PAM_MSG" = "xyes" ; then
32005 echo "PAM is enabled. You may need to install a PAM control file "
32006 echo "for sshd, otherwise password authentication may fail. "
32007 echo "Example PAM control files can be found in the contrib/ "
32008 echo "subdirectory"
32012 if test ! -z "$RAND_HELPER_CMDHASH" ; then
32013 echo "WARNING: you are using the builtin random number collection "
32014 echo "service. Please read WARNING.RNG and request that your OS "
32015 echo "vendor includes kernel-based random number collection in "
32016 echo "future versions of your OS."
32020 if test ! -z "$NO_PEERCHECK" ; then
32021 echo "WARNING: the operating system that you are using does not"
32022 echo "appear to support getpeereid(), getpeerucred() or the"
32023 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
32024 echo "enforce security checks to prevent unauthorised connections to"
32025 echo "ssh-agent. Their absence increases the risk that a malicious"
32026 echo "user can connect to your agent."
32030 if test "$AUDIT_MODULE" = "bsm" ; then
32031 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
32032 echo "See the Solaris section in README.platform for details."