2 # From configure.ac Revision: 1.427 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.67 for OpenSSH Portable.
6 # Report bugs to <openssh-unix-dev@mindrot.org>.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
71 as_echo_n='sh -c $as_echo_n_body as_echo'
74 as_echo='sh -c $as_echo_body as_echo'
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
94 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir=.
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
222 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
227 if test x$as_have_required = xno; then :
228 $as_echo "$0: This script requires a shell more modern than all"
229 $as_echo "$0: the shells that I found on your system."
230 if test x${ZSH_VERSION+set} = xset ; then
231 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
232 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
234 $as_echo "$0: Please tell bug-autoconf@gnu.org and
235 $0: openssh-unix-dev@mindrot.org about your system,
236 $0: including any error possibly output before this
237 $0: message. Then install a modern shell, or manually run
238 $0: the script under such a shell if you do have one."
244 SHELL=${CONFIG_SHELL-/bin/sh}
246 # Unset more variables known to interfere with behavior of common tools.
247 CLICOLOR_FORCE= GREP_OPTIONS=
248 unset CLICOLOR_FORCE GREP_OPTIONS
250 ## --------------------- ##
251 ## M4sh Shell Functions. ##
252 ## --------------------- ##
255 # Portably unset VAR.
258 { eval $1=; unset $1;}
262 # as_fn_set_status STATUS
263 # -----------------------
264 # Set $? to STATUS, without forking.
272 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
282 # Create "$as_dir" as a directory, including parents if necessary.
287 -*) as_dir=./$as_dir;;
289 test -d "$as_dir" || eval $as_mkdir_p || {
293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 as_dirs="'$as_qdir' $as_dirs"
297 as_dir=`$as_dirname -- "$as_dir" ||
298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299 X"$as_dir" : 'X\(//\)[^/]' \| \
300 X"$as_dir" : 'X\(//\)$' \| \
301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302 $as_echo X"$as_dir" |
303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320 test -d "$as_dir" && break
322 test -z "$as_dirs" || eval "mkdir $as_dirs"
323 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
327 # as_fn_append VAR VALUE
328 # ----------------------
329 # Append the text in VALUE to the end of the definition contained in VAR. Take
330 # advantage of any shell optimizations that allow amortized linear growth over
331 # repeated appends, instead of the typical quadratic growth present in naive
333 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334 eval 'as_fn_append ()
347 # Perform arithmetic evaluation on the ARGs, and store the result in the
348 # global $as_val. Take advantage of shells that can avoid forks. The arguments
349 # must be portable across $(()) and expr.
350 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 as_val=`expr "$@" || test $? -eq 1`
363 # as_fn_error STATUS ERROR [LINENO LOG_FD]
364 # ----------------------------------------
365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367 # script with STATUS, using 1 if that was 0.
370 as_status=$1; test $as_status -eq 0 && as_status=1
372 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
375 $as_echo "$as_me: error: $2" >&2
376 as_fn_exit $as_status
379 if expr a : '\(a\)' >/dev/null 2>&1 &&
380 test "X`expr 00001 : '.*\(...\)'`" = X001; then
386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
398 as_me=`$as_basename -- "$0" ||
399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400 X"$0" : 'X\(//\)$' \| \
401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
403 sed '/^.*\/\([^/][^/]*\)\/*$/{
417 # Avoid depending upon Character Ranges.
418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421 as_cr_digits='0123456789'
422 as_cr_alnum=$as_cr_Letters$as_cr_digits
425 as_lineno_1=$LINENO as_lineno_1a=$LINENO
426 as_lineno_2=$LINENO as_lineno_2a=$LINENO
427 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
445 chmod +x "$as_me.lineno" ||
446 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
448 # Don't try to exec as it changes $[0], causing all sort of problems
449 # (the dirname of $[0] is not the place where we might find the
450 # original and so on. Autoconf is especially sensitive to this).
452 # Exit status is that of the last command.
456 ECHO_C= ECHO_N= ECHO_T=
457 case `echo -n x` in #(((((
459 case `echo 'xy\c'` in
460 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
469 rm -f conf$$ conf$$.exe conf$$.file
470 if test -d conf$$.dir; then
471 rm -f conf$$.dir/conf$$.file
474 mkdir conf$$.dir 2>/dev/null
476 if (echo >conf$$.file) 2>/dev/null; then
477 if ln -s conf$$.file conf$$ 2>/dev/null; then
479 # ... but there are two gotchas:
480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482 # In both cases, we have to default to `cp -p'.
483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
485 elif ln conf$$.file conf$$ 2>/dev/null; then
493 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494 rmdir conf$$.dir 2>/dev/null
496 if mkdir -p . 2>/dev/null; then
497 as_mkdir_p='mkdir -p "$as_dir"'
499 test -d ./-p && rmdir ./-p
503 if test -x / >/dev/null 2>&1; then
506 if ls -dL / >/dev/null 2>&1; then
513 if test -d "$1"; then
519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520 ???[sx]*):;;*)false;;esac;fi
524 as_executable_p=$as_test_x
526 # Sed expression to map a string onto a valid CPP name.
527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
529 # Sed expression to map a string onto a valid variable name.
530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533 test -n "$DJDIR" || exec 7<&0 </dev/null
537 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
538 # so uname gets run too.
539 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544 ac_default_prefix=/usr/local
546 ac_config_libobj_dir=.
553 # Identity of this package.
554 PACKAGE_NAME='OpenSSH'
555 PACKAGE_TARNAME='openssh'
556 PACKAGE_VERSION='Portable'
557 PACKAGE_STRING='OpenSSH Portable'
558 PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
561 ac_unique_file="ssh.c"
562 # Factoring default headers for most tests.
563 ac_includes_default="\
565 #ifdef HAVE_SYS_TYPES_H
566 # include <sys/types.h>
568 #ifdef HAVE_SYS_STAT_H
569 # include <sys/stat.h>
575 # ifdef HAVE_STDLIB_H
580 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 #ifdef HAVE_STRINGS_H
586 # include <strings.h>
588 #ifdef HAVE_INTTYPES_H
589 # include <inttypes.h>
598 ac_subst_vars='LTLIBOBJS
612 INSTALL_SSH_PRNG_CMDS
630 INSTALL_SSH_RAND_HELPER
635 LOGIN_PROGRAM_FALLBACK
637 MAKE_PACKAGE_SUPPORTED
699 program_transform_name
712 enable_option_checking
721 with_solaris_contracts
724 with_zlib_version_check
730 with_openssl_header_check
749 enable_etc_default_login
765 ac_precious_vars='build_alias
776 # Initialize some variables set by options.
778 ac_init_version=false
779 ac_unrecognized_opts=
781 # The variables have the same names as the options, with
782 # dashes changed to underlines.
790 program_transform_name=s,x,x,
798 # Installation directory options.
799 # These are left unexpanded so users can "make install exec_prefix=/foo"
800 # and all the variables that are supposed to be based on exec_prefix
801 # by default will actually change.
802 # Use braces instead of parens because sh, perl, etc. also accept them.
803 # (The list follows the same order as the GNU Coding Standards.)
804 bindir='${exec_prefix}/bin'
805 sbindir='${exec_prefix}/sbin'
806 libexecdir='${exec_prefix}/libexec'
807 datarootdir='${prefix}/share'
808 datadir='${datarootdir}'
809 sysconfdir='${prefix}/etc'
810 sharedstatedir='${prefix}/com'
811 localstatedir='${prefix}/var'
812 includedir='${prefix}/include'
813 oldincludedir='/usr/include'
814 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
815 infodir='${datarootdir}/info'
820 libdir='${exec_prefix}/lib'
821 localedir='${datarootdir}/locale'
822 mandir='${datarootdir}/man'
828 # If the previous option needs an argument, assign it.
829 if test -n "$ac_prev"; then
830 eval $ac_prev=\$ac_option
836 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841 # Accept the important Cygnus configure options, so we can diagnose typos.
843 case $ac_dashdash$ac_option in
847 -bindir | --bindir | --bindi | --bind | --bin | --bi)
849 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
852 -build | --build | --buil | --bui | --bu)
853 ac_prev=build_alias ;;
854 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
855 build_alias=$ac_optarg ;;
857 -cache-file | --cache-file | --cache-fil | --cache-fi \
858 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
859 ac_prev=cache_file ;;
860 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
861 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
862 cache_file=$ac_optarg ;;
865 cache_file=config.cache ;;
867 -datadir | --datadir | --datadi | --datad)
869 -datadir=* | --datadir=* | --datadi=* | --datad=*)
870 datadir=$ac_optarg ;;
872 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
873 | --dataroo | --dataro | --datar)
874 ac_prev=datarootdir ;;
875 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
876 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
877 datarootdir=$ac_optarg ;;
879 -disable-* | --disable-*)
880 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
881 # Reject names that are not valid shell variable names.
882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883 as_fn_error $? "invalid feature name: $ac_useropt"
884 ac_useropt_orig=$ac_useropt
885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886 case $ac_user_opts in
890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
891 ac_unrecognized_sep=', ';;
893 eval enable_$ac_useropt=no ;;
895 -docdir | --docdir | --docdi | --doc | --do)
897 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
900 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
902 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
905 -enable-* | --enable-*)
906 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
907 # Reject names that are not valid shell variable names.
908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909 as_fn_error $? "invalid feature name: $ac_useropt"
910 ac_useropt_orig=$ac_useropt
911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912 case $ac_user_opts in
916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
917 ac_unrecognized_sep=', ';;
919 eval enable_$ac_useropt=\$ac_optarg ;;
921 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
922 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
923 | --exec | --exe | --ex)
924 ac_prev=exec_prefix ;;
925 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
926 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
927 | --exec=* | --exe=* | --ex=*)
928 exec_prefix=$ac_optarg ;;
930 -gas | --gas | --ga | --g)
931 # Obsolete; use --with-gas.
934 -help | --help | --hel | --he | -h)
936 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
937 ac_init_help=recursive ;;
938 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
939 ac_init_help=short ;;
941 -host | --host | --hos | --ho)
942 ac_prev=host_alias ;;
943 -host=* | --host=* | --hos=* | --ho=*)
944 host_alias=$ac_optarg ;;
946 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950 htmldir=$ac_optarg ;;
952 -includedir | --includedir | --includedi | --included | --include \
953 | --includ | --inclu | --incl | --inc)
954 ac_prev=includedir ;;
955 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
956 | --includ=* | --inclu=* | --incl=* | --inc=*)
957 includedir=$ac_optarg ;;
959 -infodir | --infodir | --infodi | --infod | --info | --inf)
961 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
962 infodir=$ac_optarg ;;
964 -libdir | --libdir | --libdi | --libd)
966 -libdir=* | --libdir=* | --libdi=* | --libd=*)
969 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
970 | --libexe | --libex | --libe)
971 ac_prev=libexecdir ;;
972 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
973 | --libexe=* | --libex=* | --libe=*)
974 libexecdir=$ac_optarg ;;
976 -localedir | --localedir | --localedi | --localed | --locale)
978 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
979 localedir=$ac_optarg ;;
981 -localstatedir | --localstatedir | --localstatedi | --localstated \
982 | --localstate | --localstat | --localsta | --localst | --locals)
983 ac_prev=localstatedir ;;
984 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
985 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
986 localstatedir=$ac_optarg ;;
988 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
994 # Obsolete; use --without-fp.
997 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
998 | --no-cr | --no-c | -n)
1001 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1002 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1006 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1007 | --oldin | --oldi | --old | --ol | --o)
1008 ac_prev=oldincludedir ;;
1009 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1010 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1011 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1012 oldincludedir=$ac_optarg ;;
1014 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1017 prefix=$ac_optarg ;;
1019 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1020 | --program-pre | --program-pr | --program-p)
1021 ac_prev=program_prefix ;;
1022 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1023 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1024 program_prefix=$ac_optarg ;;
1026 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1027 | --program-suf | --program-su | --program-s)
1028 ac_prev=program_suffix ;;
1029 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1030 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1031 program_suffix=$ac_optarg ;;
1033 -program-transform-name | --program-transform-name \
1034 | --program-transform-nam | --program-transform-na \
1035 | --program-transform-n | --program-transform- \
1036 | --program-transform | --program-transfor \
1037 | --program-transfo | --program-transf \
1038 | --program-trans | --program-tran \
1039 | --progr-tra | --program-tr | --program-t)
1040 ac_prev=program_transform_name ;;
1041 -program-transform-name=* | --program-transform-name=* \
1042 | --program-transform-nam=* | --program-transform-na=* \
1043 | --program-transform-n=* | --program-transform-=* \
1044 | --program-transform=* | --program-transfor=* \
1045 | --program-transfo=* | --program-transf=* \
1046 | --program-trans=* | --program-tran=* \
1047 | --progr-tra=* | --program-tr=* | --program-t=*)
1048 program_transform_name=$ac_optarg ;;
1050 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1053 pdfdir=$ac_optarg ;;
1055 -psdir | --psdir | --psdi | --psd | --ps)
1057 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061 | -silent | --silent | --silen | --sile | --sil)
1064 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1066 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1068 sbindir=$ac_optarg ;;
1070 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1071 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1072 | --sharedst | --shareds | --shared | --share | --shar \
1074 ac_prev=sharedstatedir ;;
1075 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1076 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1077 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1079 sharedstatedir=$ac_optarg ;;
1081 -site | --site | --sit)
1083 -site=* | --site=* | --sit=*)
1086 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1088 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1089 srcdir=$ac_optarg ;;
1091 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1092 | --syscon | --sysco | --sysc | --sys | --sy)
1093 ac_prev=sysconfdir ;;
1094 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1095 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1096 sysconfdir=$ac_optarg ;;
1098 -target | --target | --targe | --targ | --tar | --ta | --t)
1099 ac_prev=target_alias ;;
1100 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1101 target_alias=$ac_optarg ;;
1103 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1106 -version | --version | --versio | --versi | --vers | -V)
1107 ac_init_version=: ;;
1110 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113 as_fn_error $? "invalid package name: $ac_useropt"
1114 ac_useropt_orig=$ac_useropt
1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1121 ac_unrecognized_sep=', ';;
1123 eval with_$ac_useropt=\$ac_optarg ;;
1125 -without-* | --without-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error $? "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1139 eval with_$ac_useropt=no ;;
1142 # Obsolete; use --with-x.
1145 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1146 | --x-incl | --x-inc | --x-in | --x-i)
1147 ac_prev=x_includes ;;
1148 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1149 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1150 x_includes=$ac_optarg ;;
1152 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1153 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1154 ac_prev=x_libraries ;;
1155 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1156 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1157 x_libraries=$ac_optarg ;;
1159 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1160 Try \`$0 --help' for more information"
1164 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1165 # Reject names that are not valid shell variable names.
1166 case $ac_envvar in #(
1167 '' | [0-9]* | *[!_$as_cr_alnum]* )
1168 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1170 eval $ac_envvar=\$ac_optarg
1171 export $ac_envvar ;;
1174 # FIXME: should be removed in autoconf 3.0.
1175 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1176 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1177 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1178 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1184 if test -n "$ac_prev"; then
1185 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1186 as_fn_error $? "missing argument to $ac_option"
1189 if test -n "$ac_unrecognized_opts"; then
1190 case $enable_option_checking in
1192 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1193 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1197 # Check all directory arguments for consistency.
1198 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1199 datadir sysconfdir sharedstatedir localstatedir includedir \
1200 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1201 libdir localedir mandir
1203 eval ac_val=\$$ac_var
1204 # Remove trailing slashes.
1207 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1208 eval $ac_var=\$ac_val;;
1210 # Be sure to have absolute directory names.
1212 [\\/$]* | ?:[\\/]* ) continue;;
1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1218 # There might be people who depend on the old broken behavior: `$host'
1219 # used to hold the argument of --host etc.
1220 # FIXME: To remove some day.
1223 target=$target_alias
1225 # FIXME: To remove some day.
1226 if test "x$host_alias" != x; then
1227 if test "x$build_alias" = x; then
1228 cross_compiling=maybe
1229 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1230 If a cross compiler is detected then cross compile mode will be used" >&2
1231 elif test "x$build_alias" != "x$host_alias"; then
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239 test "$silent" = yes && exec 6>/dev/null
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245 as_fn_error $? "working directory cannot be determined"
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247 as_fn_error $? "pwd does not report name of working directory"
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
1253 # Try the directory containing this script, then the parent directory.
1254 ac_confdir=`$as_dirname -- "$as_myself" ||
1255 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$as_myself" : 'X\(//\)[^/]' \| \
1257 X"$as_myself" : 'X\(//\)$' \| \
1258 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1259 $as_echo X"$as_myself" |
1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1282 ac_srcdir_defaulted=no
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1292 # When building in place, set srcdir=.
1293 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 # Remove unnecessary trailing slashes from srcdir.
1297 # Double slashes in file names in object file debugging info
1298 # mess up M-x gdb in Emacs.
1300 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 for ac_var in $ac_precious_vars; do
1303 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_env_${ac_var}_value=\$${ac_var}
1305 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310 # Report the --help message.
1312 if test "$ac_init_help" = "long"; then
1313 # Omit some internal or obsolete options to make the list less imposing.
1314 # This message is too long to be a string in the A/UX 3.1 sh.
1316 \`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1318 Usage: $0 [OPTION]... [VAR=VALUE]...
1320 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321 VAR=VALUE. See below for descriptions of some of the useful variables.
1323 Defaults for the options are specified in brackets.
1326 -h, --help display this help and exit
1327 --help=short display options specific to this package
1328 --help=recursive display the short help of all the included packages
1329 -V, --version display version information and exit
1330 -q, --quiet, --silent do not print \`checking ...' messages
1331 --cache-file=FILE cache test results in FILE [disabled]
1332 -C, --config-cache alias for \`--cache-file=config.cache'
1333 -n, --no-create do not create output files
1334 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1336 Installation directories:
1337 --prefix=PREFIX install architecture-independent files in PREFIX
1338 [$ac_default_prefix]
1339 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1342 By default, \`make install' will install all the files in
1343 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1344 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345 for instance \`--prefix=\$HOME'.
1347 For better control, use the options below.
1349 Fine tuning of the installation directories:
1350 --bindir=DIR user executables [EPREFIX/bin]
1351 --sbindir=DIR system admin executables [EPREFIX/sbin]
1352 --libexecdir=DIR program executables [EPREFIX/libexec]
1353 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1354 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1355 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1356 --libdir=DIR object code libraries [EPREFIX/lib]
1357 --includedir=DIR C header files [PREFIX/include]
1358 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1359 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1360 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1361 --infodir=DIR info documentation [DATAROOTDIR/info]
1362 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1363 --mandir=DIR man documentation [DATAROOTDIR/man]
1364 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1365 --htmldir=DIR html documentation [DOCDIR]
1366 --dvidir=DIR dvi documentation [DOCDIR]
1367 --pdfdir=DIR pdf documentation [DOCDIR]
1368 --psdir=DIR ps documentation [DOCDIR]
1374 --build=BUILD configure for building on BUILD [guessed]
1375 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 if test -n "$ac_init_help"; then
1380 case $ac_init_help in
1381 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1386 --disable-option-checking ignore unrecognized --enable/--with options
1387 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1388 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1389 --disable-largefile omit support for large files
1390 --disable-strip Disable calling strip(1) on install
1391 --disable-etc-default-login Disable using PATH from /etc/default/login no
1392 --disable-lastlog disable use of lastlog even if detected no
1393 --disable-utmp disable use of utmp even if detected no
1394 --disable-utmpx disable use of utmpx even if detected no
1395 --disable-wtmp disable use of wtmp even if detected no
1396 --disable-wtmpx disable use of wtmpx even if detected no
1397 --disable-libutil disable use of libutil (login() etc.) no
1398 --disable-pututline disable use of pututline() etc. (uwtmp) no
1399 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1402 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1403 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1404 --without-stackprotect Don't use compiler's stack protection
1405 --without-rpath Disable auto-added -R linker paths
1406 --with-cflags Specify additional flags to pass to compiler
1407 --with-cppflags Specify additional flags to pass to preprocessor
1408 --with-ldflags Specify additional flags to pass to linker
1409 --with-libs Specify additional libraries to link with
1410 --with-Werror Build main code with -Werror
1411 --with-solaris-contracts Enable Solaris process contracts (experimental)
1412 --with-osfsia Enable Digital Unix SIA
1413 --with-zlib=PATH Use zlib in PATH
1414 --without-zlib-version-check Disable zlib version check
1415 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1416 --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
1417 --with-libedit[=PATH] Enable libedit support for sftp
1418 --with-audit=module Enable EXPERIMENTAL audit support (modules=debug,bsm)
1419 --with-ssl-dir=PATH Specify path to OpenSSL installation
1420 --without-openssl-header-check Disable OpenSSL version consistency check
1421 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1422 --with-pam Enable PAM support
1423 --with-rand-helper Use subprocess to gather strong randomness
1424 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1425 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1426 --with-entropy-timeout Specify entropy gathering command timeout (msec)
1427 --with-privsep-user=user Specify non-privileged user for privilege separation
1428 --with-sectok Enable smartcard support using libsectok
1429 --with-opensc[=PFX] Enable smartcard support using OpenSC (optionally in PATH)
1430 --with-selinux Enable SELinux support
1431 --with-kerberos5=PATH Enable Kerberos 5 support
1432 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1433 --with-xauth=PATH Specify path to xauth program
1434 --with-mantype=man|cat|doc Set man page type
1435 --with-md5-passwords Enable use of MD5 passwords
1436 --without-shadow Disable shadow password support
1437 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
1438 --with-default-path= Specify default \$PATH environment for server
1439 --with-superuser-path= Specify different path for super-user
1440 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1441 --with-bsd-auth Enable BSD auth support
1442 --with-pid-dir=PATH Specify location of ssh.pid file
1443 --with-lastlog=FILE|DIR specify lastlog location common locations
1445 Some influential environment variables:
1446 CC C compiler command
1447 CFLAGS C compiler flags
1448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1449 nonstandard directory <lib dir>
1450 LIBS libraries to pass to the linker, e.g. -l<library>
1451 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1452 you have headers in a nonstandard directory <include dir>
1455 Use these variables to override the choices made by `configure' or to help
1456 it to find libraries and programs with nonstandard names/locations.
1458 Report bugs to <openssh-unix-dev@mindrot.org>.
1463 if test "$ac_init_help" = "recursive"; then
1464 # If there are subdirs, report their specific --help.
1465 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1466 test -d "$ac_dir" ||
1467 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1472 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1475 # A ".." for each directory in $ac_dir_suffix.
1476 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1477 case $ac_top_builddir_sub in
1478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1482 ac_abs_top_builddir=$ac_pwd
1483 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1484 # for backward compatibility:
1485 ac_top_builddir=$ac_top_build_prefix
1488 .) # We are building in place.
1490 ac_top_srcdir=$ac_top_builddir_sub
1491 ac_abs_top_srcdir=$ac_pwd ;;
1492 [\\/]* | ?:[\\/]* ) # Absolute name.
1493 ac_srcdir=$srcdir$ac_dir_suffix;
1494 ac_top_srcdir=$srcdir
1495 ac_abs_top_srcdir=$srcdir ;;
1497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1498 ac_top_srcdir=$ac_top_build_prefix$srcdir
1499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1501 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1503 cd "$ac_dir" || { ac_status=$?; continue; }
1504 # Check for guested configure.
1505 if test -f "$ac_srcdir/configure.gnu"; then
1507 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1508 elif test -f "$ac_srcdir/configure"; then
1510 $SHELL "$ac_srcdir/configure" --help=recursive
1512 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514 cd "$ac_pwd" || { ac_status=$?; break; }
1518 test -n "$ac_init_help" && exit $ac_status
1519 if $ac_init_version; then
1521 OpenSSH configure Portable
1522 generated by GNU Autoconf 2.67
1524 Copyright (C) 2010 Free Software Foundation, Inc.
1525 This configure script is free software; the Free Software Foundation
1526 gives unlimited permission to copy, distribute and modify it.
1531 ## ------------------------ ##
1532 ## Autoconf initialization. ##
1533 ## ------------------------ ##
1535 # ac_fn_c_try_compile LINENO
1536 # --------------------------
1537 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1538 ac_fn_c_try_compile ()
1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541 rm -f conftest.$ac_objext
1542 if { { ac_try="$ac_compile"
1544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1545 *) ac_try_echo=$ac_try;;
1547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548 $as_echo "$ac_try_echo"; } >&5
1549 (eval "$ac_compile") 2>conftest.err
1551 if test -s conftest.err; then
1552 grep -v '^ *+' conftest.err >conftest.er1
1553 cat conftest.er1 >&5
1554 mv -f conftest.er1 conftest.err
1556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557 test $ac_status = 0; } && {
1558 test -z "$ac_c_werror_flag" ||
1559 test ! -s conftest.err
1560 } && test -s conftest.$ac_objext; then :
1563 $as_echo "$as_me: failed program was:" >&5
1564 sed 's/^/| /' conftest.$ac_ext >&5
1568 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1569 as_fn_set_status $ac_retval
1571 } # ac_fn_c_try_compile
1573 # ac_fn_c_try_run LINENO
1574 # ----------------------
1575 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1576 # that executables *can* be run.
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 if { { ac_try="$ac_link"
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_link") 2>&5
1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1591 { { case "(($ac_try" in
1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593 *) ac_try_echo=$ac_try;;
1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 $as_echo "$ac_try_echo"; } >&5
1597 (eval "$ac_try") 2>&5
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; }; }; then :
1603 $as_echo "$as_me: program exited with status $ac_status" >&5
1604 $as_echo "$as_me: failed program was:" >&5
1605 sed 's/^/| /' conftest.$ac_ext >&5
1607 ac_retval=$ac_status
1609 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1610 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1611 as_fn_set_status $ac_retval
1615 # ac_fn_c_try_cpp LINENO
1616 # ----------------------
1617 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 if { { ac_try="$ac_cpp conftest.$ac_ext"
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1630 if test -s conftest.err; then
1631 grep -v '^ *+' conftest.err >conftest.er1
1632 cat conftest.er1 >&5
1633 mv -f conftest.er1 conftest.err
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } > conftest.i && {
1637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1638 test ! -s conftest.err
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1647 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1648 as_fn_set_status $ac_retval
1652 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1653 # -------------------------------------------------------
1654 # Tests whether HEADER exists and can be compiled using the include files in
1655 # INCLUDES, setting the cache variable VAR accordingly.
1656 ac_fn_c_check_header_compile ()
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660 $as_echo_n "checking for $2... " >&6; }
1661 if eval "test \"\${$3+set}\"" = set; then :
1662 $as_echo_n "(cached) " >&6
1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665 /* end confdefs.h. */
1669 if ac_fn_c_try_compile "$LINENO"; then :
1674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678 $as_echo "$ac_res" >&6; }
1679 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1681 } # ac_fn_c_check_header_compile
1683 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1684 # ---------------------------------------------
1685 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1687 ac_fn_c_check_decl ()
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 as_decl_name=`echo $2|sed 's/ *(.*//'`
1691 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1693 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1694 if eval "test \"\${$3+set}\"" = set; then :
1695 $as_echo_n "(cached) " >&6
1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698 /* end confdefs.h. */
1703 #ifndef $as_decl_name
1705 (void) $as_decl_use;
1707 (void) $as_decl_name;
1715 if ac_fn_c_try_compile "$LINENO"; then :
1720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1724 $as_echo "$ac_res" >&6; }
1725 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1727 } # ac_fn_c_check_decl
1729 # ac_fn_c_try_link LINENO
1730 # -----------------------
1731 # Try to link conftest.$ac_ext, and return whether this succeeded.
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 rm -f conftest.$ac_objext conftest$ac_exeext
1736 if { { ac_try="$ac_link"
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_link") 2>conftest.err
1745 if test -s conftest.err; then
1746 grep -v '^ *+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && {
1752 test -z "$ac_c_werror_flag" ||
1753 test ! -s conftest.err
1754 } && test -s conftest$ac_exeext && {
1755 test "$cross_compiling" = yes ||
1756 $as_test_x conftest$ac_exeext
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1765 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1766 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1767 # interfere with the next link command; also delete a directory that is
1768 # left behind by Apple's compiler. We do this before executing the actions.
1769 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1770 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1771 as_fn_set_status $ac_retval
1773 } # ac_fn_c_try_link
1775 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1776 # -------------------------------------------------------
1777 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1778 # the include files in INCLUDES and setting the cache variable VAR
1780 ac_fn_c_check_header_mongrel ()
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 if eval "test \"\${$3+set}\"" = set; then :
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 $as_echo_n "checking for $2... " >&6; }
1786 if eval "test \"\${$3+set}\"" = set; then :
1787 $as_echo_n "(cached) " >&6
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791 $as_echo "$ac_res" >&6; }
1793 # Is the header compilable?
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1795 $as_echo_n "checking $2 usability... " >&6; }
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1801 if ac_fn_c_try_compile "$LINENO"; then :
1802 ac_header_compiler=yes
1804 ac_header_compiler=no
1806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1808 $as_echo "$ac_header_compiler" >&6; }
1810 # Is the header present?
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1812 $as_echo_n "checking $2 presence... " >&6; }
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1817 if ac_fn_c_try_cpp "$LINENO"; then :
1818 ac_header_preproc=yes
1820 ac_header_preproc=no
1822 rm -f conftest.err conftest.i conftest.$ac_ext
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1824 $as_echo "$ac_header_preproc" >&6; }
1826 # So? What about this header?
1827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1830 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1832 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1836 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1838 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1840 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1842 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1844 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1845 ( $as_echo "## ------------------------------------------- ##
1846 ## Report this to openssh-unix-dev@mindrot.org ##
1847 ## ------------------------------------------- ##"
1848 ) | sed "s/^/$as_me: WARNING: /" >&2
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval "test \"\${$3+set}\"" = set; then :
1854 $as_echo_n "(cached) " >&6
1856 eval "$3=\$ac_header_compiler"
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1864 } # ac_fn_c_check_header_mongrel
1866 # ac_fn_c_check_func LINENO FUNC VAR
1867 # ----------------------------------
1868 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1869 ac_fn_c_check_func ()
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873 $as_echo_n "checking for $2... " >&6; }
1874 if eval "test \"\${$3+set}\"" = set; then :
1875 $as_echo_n "(cached) " >&6
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1879 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1881 #define $2 innocuous_$2
1883 /* System header to define __stub macros and hopefully few prototypes,
1884 which can conflict with char $2 (); below.
1885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1886 <limits.h> exists even on freestanding compilers. */
1889 # include <limits.h>
1891 # include <assert.h>
1896 /* Override any GCC internal prototype to avoid an error.
1897 Use char because int might match the return type of a GCC
1898 builtin and then its argument prototype would still apply. */
1903 /* The GNU C library defines this for functions which it implements
1904 to always fail with ENOSYS. Some functions are actually named
1905 something starting with __ and the normal name is an alias. */
1906 #if defined __stub_$2 || defined __stub___$2
1918 if ac_fn_c_try_link "$LINENO"; then :
1923 rm -f core conftest.err conftest.$ac_objext \
1924 conftest$ac_exeext conftest.$ac_ext
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1929 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1931 } # ac_fn_c_check_func
1933 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1934 # -------------------------------------------
1935 # Tests whether TYPE exists after having included INCLUDES, setting cache
1936 # variable VAR accordingly.
1937 ac_fn_c_check_type ()
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941 $as_echo_n "checking for $2... " >&6; }
1942 if eval "test \"\${$3+set}\"" = set; then :
1943 $as_echo_n "(cached) " >&6
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1958 if ac_fn_c_try_compile "$LINENO"; then :
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1971 if ac_fn_c_try_compile "$LINENO"; then :
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1985 } # ac_fn_c_check_type
1987 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1988 # --------------------------------------------
1989 # Tries to find the compile-time value of EXPR in a program that includes
1990 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1992 ac_fn_c_compute_int ()
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 if test "$cross_compiling" = yes; then
1996 # Depending upon the size, compute the lo and hi bounds.
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
2003 static int test_array [1 - 2 * !(($2) >= 0)];
2010 if ac_fn_c_try_compile "$LINENO"; then :
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2019 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027 ac_hi=$ac_mid; break
2029 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2030 if test $ac_lo -le $ac_mid; then
2034 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2045 static int test_array [1 - 2 * !(($2) < 0)];
2052 if ac_fn_c_try_compile "$LINENO"; then :
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2061 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2068 if ac_fn_c_try_compile "$LINENO"; then :
2069 ac_lo=$ac_mid; break
2071 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2072 if test $ac_mid -le $ac_hi; then
2076 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086 # Binary search between lo and hi bounds.
2087 while test "x$ac_lo" != "x$ac_hi"; do
2088 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2095 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2102 if ac_fn_c_try_compile "$LINENO"; then :
2105 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2117 static long int longval () { return $2; }
2118 static unsigned long int ulongval () { return $2; }
2125 FILE *f = fopen ("conftest.val", "w");
2130 long int i = longval ();
2133 fprintf (f, "%ld", i);
2137 unsigned long int i = ulongval ();
2140 fprintf (f, "%lu", i);
2142 /* Do not output a trailing newline, as this causes \r\n confusion
2143 on some platforms. */
2144 return ferror (f) || fclose (f) != 0;
2150 if ac_fn_c_try_run "$LINENO"; then :
2151 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2156 conftest.$ac_objext conftest.beam conftest.$ac_ext
2160 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2161 as_fn_set_status $ac_retval
2163 } # ac_fn_c_compute_int
2165 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2166 # ----------------------------------------------------
2167 # Tries to find if the field MEMBER exists in type AGGR, after including
2168 # INCLUDES, setting cache variable VAR accordingly.
2169 ac_fn_c_check_member ()
2171 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2173 $as_echo_n "checking for $2.$3... " >&6; }
2174 if eval "test \"\${$4+set}\"" = set; then :
2175 $as_echo_n "(cached) " >&6
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2190 if ac_fn_c_try_compile "$LINENO"; then :
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2200 if (sizeof ac_aggr.$3)
2206 if ac_fn_c_try_compile "$LINENO"; then :
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2217 $as_echo "$ac_res" >&6; }
2218 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2220 } # ac_fn_c_check_member
2221 cat >config.log <<_ACEOF
2222 This file contains any messages produced by compilers while
2223 running configure, to aid debugging if configure makes a mistake.
2225 It was created by OpenSSH $as_me Portable, which was
2226 generated by GNU Autoconf 2.67. Invocation command line was
2238 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2239 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2240 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2241 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2242 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2244 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2245 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2247 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2248 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2249 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2250 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2251 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2252 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2253 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 test -z "$as_dir" && as_dir=.
2262 $as_echo "PATH: $as_dir"
2278 # Keep a trace of the command line.
2279 # Strip out --no-create and --no-recursion so they do not pile up.
2280 # Strip out --silent because we don't want to record it for future runs.
2281 # Also quote any args containing shell meta-characters.
2282 # Make two passes to allow for proper duplicate-argument suppression.
2286 ac_must_keep_next=false
2292 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2294 | -silent | --silent | --silen | --sile | --sil)
2297 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2300 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2302 as_fn_append ac_configure_args1 " '$ac_arg'"
2303 if test $ac_must_keep_next = true; then
2304 ac_must_keep_next=false # Got value, back to normal.
2307 *=* | --config-cache | -C | -disable-* | --disable-* \
2308 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2309 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2310 | -with-* | --with-* | -without-* | --without-* | --x)
2311 case "$ac_configure_args0 " in
2312 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2315 -* ) ac_must_keep_next=true ;;
2318 as_fn_append ac_configure_args " '$ac_arg'"
2323 { ac_configure_args0=; unset ac_configure_args0;}
2324 { ac_configure_args1=; unset ac_configure_args1;}
2326 # When interrupted or exit'd, cleanup temporary files, and complete
2327 # config.log. We remove comments because anyway the quotes in there
2328 # would cause problems or look ugly.
2329 # WARNING: Use '\'' to represent an apostrophe within the trap.
2330 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2331 trap 'exit_status=$?
2332 # Save into config.log some information that might help in debugging.
2336 $as_echo "## ---------------- ##
2337 ## Cache variables. ##
2338 ## ---------------- ##"
2340 # The following way of writing the cache mishandles newlines in values,
2342 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2343 eval ac_val=\$$ac_var
2347 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2348 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2351 _ | IFS | as_nl) ;; #(
2352 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2353 *) { eval $ac_var=; unset $ac_var;} ;;
2358 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2359 *${as_nl}ac_space=\ *)
2361 "s/'\''/'\''\\\\'\'''\''/g;
2362 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2365 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2372 $as_echo "## ----------------- ##
2373 ## Output variables. ##
2374 ## ----------------- ##"
2376 for ac_var in $ac_subst_vars
2378 eval ac_val=\$$ac_var
2380 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2382 $as_echo "$ac_var='\''$ac_val'\''"
2386 if test -n "$ac_subst_files"; then
2387 $as_echo "## ------------------- ##
2388 ## File substitutions. ##
2389 ## ------------------- ##"
2391 for ac_var in $ac_subst_files
2393 eval ac_val=\$$ac_var
2395 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2397 $as_echo "$ac_var='\''$ac_val'\''"
2402 if test -s confdefs.h; then
2403 $as_echo "## ----------- ##
2410 test "$ac_signal" != 0 &&
2411 $as_echo "$as_me: caught signal $ac_signal"
2412 $as_echo "$as_me: exit $exit_status"
2414 rm -f core *.core core.conftest.* &&
2415 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2418 for ac_signal in 1 2 13 15; do
2419 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2423 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2424 rm -f -r conftest* confdefs.h
2426 $as_echo "/* confdefs.h */" > confdefs.h
2428 # Predefined preprocessor variables.
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_NAME "$PACKAGE_NAME"
2434 cat >>confdefs.h <<_ACEOF
2435 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2438 cat >>confdefs.h <<_ACEOF
2439 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2442 cat >>confdefs.h <<_ACEOF
2443 #define PACKAGE_STRING "$PACKAGE_STRING"
2446 cat >>confdefs.h <<_ACEOF
2447 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2450 cat >>confdefs.h <<_ACEOF
2451 #define PACKAGE_URL "$PACKAGE_URL"
2455 # Let the site file select an alternate cache file if it wants to.
2456 # Prefer an explicitly selected file to automatically selected ones.
2459 if test -n "$CONFIG_SITE"; then
2460 # We do not want a PATH search for config.site.
2461 case $CONFIG_SITE in #((
2462 -*) ac_site_file1=./$CONFIG_SITE;;
2463 */*) ac_site_file1=$CONFIG_SITE;;
2464 *) ac_site_file1=./$CONFIG_SITE;;
2466 elif test "x$prefix" != xNONE; then
2467 ac_site_file1=$prefix/share/config.site
2468 ac_site_file2=$prefix/etc/config.site
2470 ac_site_file1=$ac_default_prefix/share/config.site
2471 ac_site_file2=$ac_default_prefix/etc/config.site
2473 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2475 test "x$ac_site_file" = xNONE && continue
2476 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2478 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2479 sed 's/^/| /' "$ac_site_file" >&5
2481 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2483 as_fn_error $? "failed to load site script $ac_site_file
2484 See \`config.log' for more details" "$LINENO" 5 ; }
2488 if test -r "$cache_file"; then
2489 # Some versions of bash will fail to source /dev/null (special files
2490 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2491 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2493 $as_echo "$as_me: loading cache $cache_file" >&6;}
2495 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2496 *) . "./$cache_file";;
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2501 $as_echo "$as_me: creating cache $cache_file" >&6;}
2505 # Check that the precious variables saved in the cache have kept the same
2507 ac_cache_corrupted=false
2508 for ac_var in $ac_precious_vars; do
2509 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2510 eval ac_new_set=\$ac_env_${ac_var}_set
2511 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2512 eval ac_new_val=\$ac_env_${ac_var}_value
2513 case $ac_old_set,$ac_new_set in
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2516 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2517 ac_cache_corrupted=: ;;
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2520 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2521 ac_cache_corrupted=: ;;
2524 if test "x$ac_old_val" != "x$ac_new_val"; then
2525 # differences in whitespace do not lead to failure.
2526 ac_old_val_w=`echo x $ac_old_val`
2527 ac_new_val_w=`echo x $ac_new_val`
2528 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2530 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2531 ac_cache_corrupted=:
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2534 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2535 eval $ac_var=\$ac_old_val
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2538 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2540 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2543 # Pass precious variables to config.status.
2544 if test "$ac_new_set" = set; then
2546 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2547 *) ac_arg=$ac_var=$ac_new_val ;;
2549 case " $ac_configure_args " in
2550 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2551 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2555 if $ac_cache_corrupted; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2559 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2560 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2562 ## -------------------- ##
2563 ## Main body of script. ##
2564 ## -------------------- ##
2567 ac_cpp='$CPP $CPPFLAGS'
2568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2576 ac_config_headers="$ac_config_headers config.h"
2579 ac_cpp='$CPP $CPPFLAGS'
2580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2583 if test -n "$ac_tool_prefix"; then
2584 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2585 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2587 $as_echo_n "checking for $ac_word... " >&6; }
2588 if test "${ac_cv_prog_CC+set}" = set; then :
2589 $as_echo_n "(cached) " >&6
2591 if test -n "$CC"; then
2592 ac_cv_prog_CC="$CC" # Let the user override the test.
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 test -z "$as_dir" && as_dir=.
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2601 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2612 if test -n "$CC"; then
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2614 $as_echo "$CC" >&6; }
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2617 $as_echo "no" >&6; }
2622 if test -z "$ac_cv_prog_CC"; then
2624 # Extract the first word of "gcc", so it can be a program name with args.
2625 set dummy gcc; ac_word=$2
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2627 $as_echo_n "checking for $ac_word... " >&6; }
2628 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2629 $as_echo_n "(cached) " >&6
2631 if test -n "$ac_ct_CC"; then
2632 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641 ac_cv_prog_ac_ct_CC="gcc"
2642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2652 if test -n "$ac_ct_CC"; then
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2654 $as_echo "$ac_ct_CC" >&6; }
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2657 $as_echo "no" >&6; }
2660 if test "x$ac_ct_CC" = x; then
2663 case $cross_compiling:$ac_tool_warned in
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2667 ac_tool_warned=yes ;;
2675 if test -z "$CC"; then
2676 if test -n "$ac_tool_prefix"; then
2677 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2678 set dummy ${ac_tool_prefix}cc; ac_word=$2
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680 $as_echo_n "checking for $ac_word... " >&6; }
2681 if test "${ac_cv_prog_CC+set}" = set; then :
2682 $as_echo_n "(cached) " >&6
2684 if test -n "$CC"; then
2685 ac_cv_prog_CC="$CC" # Let the user override the test.
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2694 ac_cv_prog_CC="${ac_tool_prefix}cc"
2695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 if test -n "$CC"; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2707 $as_echo "$CC" >&6; }
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710 $as_echo "no" >&6; }
2716 if test -z "$CC"; then
2717 # Extract the first word of "cc", so it can be a program name with args.
2718 set dummy cc; ac_word=$2
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721 if test "${ac_cv_prog_CC+set}" = set; then :
2722 $as_echo_n "(cached) " >&6
2724 if test -n "$CC"; then
2725 ac_cv_prog_CC="$CC" # Let the user override the test.
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 test -z "$as_dir" && as_dir=.
2733 for ac_exec_ext in '' $ac_executable_extensions; do
2734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2735 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2736 ac_prog_rejected=yes
2740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 if test $ac_prog_rejected = yes; then
2748 # We found a bogon in the path, so make sure we never use it.
2749 set dummy $ac_cv_prog_CC
2751 if test $# != 0; then
2752 # We chose a different compiler from the bogus one.
2753 # However, it has the same basename, so the bogon will be chosen
2754 # first if we set CC to just the basename; use the full file name.
2756 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2762 if test -n "$CC"; then
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2764 $as_echo "$CC" >&6; }
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 $as_echo "no" >&6; }
2772 if test -z "$CC"; then
2773 if test -n "$ac_tool_prefix"; then
2774 for ac_prog in cl.exe
2776 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2777 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779 $as_echo_n "checking for $ac_word... " >&6; }
2780 if test "${ac_cv_prog_CC+set}" = set; then :
2781 $as_echo_n "(cached) " >&6
2783 if test -n "$CC"; then
2784 ac_cv_prog_CC="$CC" # Let the user override the test.
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2793 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 if test -n "$CC"; then
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2806 $as_echo "$CC" >&6; }
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809 $as_echo "no" >&6; }
2813 test -n "$CC" && break
2816 if test -z "$CC"; then
2818 for ac_prog in cl.exe
2820 # Extract the first word of "$ac_prog", so it can be a program name with args.
2821 set dummy $ac_prog; ac_word=$2
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2823 $as_echo_n "checking for $ac_word... " >&6; }
2824 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2825 $as_echo_n "(cached) " >&6
2827 if test -n "$ac_ct_CC"; then
2828 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2837 ac_cv_prog_ac_ct_CC="$ac_prog"
2838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2848 if test -n "$ac_ct_CC"; then
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2850 $as_echo "$ac_ct_CC" >&6; }
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2853 $as_echo "no" >&6; }
2857 test -n "$ac_ct_CC" && break
2860 if test "x$ac_ct_CC" = x; then
2863 case $cross_compiling:$ac_tool_warned in
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2867 ac_tool_warned=yes ;;
2876 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2878 as_fn_error $? "no acceptable C compiler found in \$PATH
2879 See \`config.log' for more details" "$LINENO" 5 ; }
2881 # Provide some information about the compiler.
2882 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2885 for ac_option in --version -v -V -qversion; do
2886 { { ac_try="$ac_compiler $ac_option >&5"
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2892 $as_echo "$ac_try_echo"; } >&5
2893 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2895 if test -s conftest.err; then
2897 ... rest of stderr output deleted ...
2898 10q' conftest.err >conftest.er1
2899 cat conftest.er1 >&5
2901 rm -f conftest.er1 conftest.err
2902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2903 test $ac_status = 0; }
2906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2907 /* end confdefs.h. */
2917 ac_clean_files_save=$ac_clean_files
2918 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2919 # Try to create an executable without -o first, disregard a.out.
2920 # It will help us diagnose broken compilers, and finding out an intuition
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2923 $as_echo_n "checking whether the C compiler works... " >&6; }
2924 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2926 # The possible output files:
2927 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2930 for ac_file in $ac_files
2933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2934 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2939 if { { ac_try="$ac_link_default"
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2945 $as_echo "$ac_try_echo"; } >&5
2946 (eval "$ac_link_default") 2>&5
2948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2949 test $ac_status = 0; }; then :
2950 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2951 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2952 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2953 # so that the user can short-circuit this test for compilers unknown to
2955 for ac_file in $ac_files ''
2957 test -f "$ac_file" || continue
2959 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2962 # We found the default executable, but exeext='' is most
2966 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2968 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2970 # We set ac_cv_exeext here because the later test for it is not
2971 # safe: cross compilers may not add the suffix if given an `-o'
2972 # argument, so we may need to know it at that point already.
2973 # Even if this section looks crufty: it has the advantage of
2980 test "$ac_cv_exeext" = no && ac_cv_exeext=
2985 if test -z "$ac_file"; then :
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987 $as_echo "no" >&6; }
2988 $as_echo "$as_me: failed program was:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2993 as_fn_error 77 "C compiler cannot create executables
2994 See \`config.log' for more details" "$LINENO" 5 ; }
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2997 $as_echo "yes" >&6; }
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3000 $as_echo_n "checking for C compiler default output file name... " >&6; }
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3002 $as_echo "$ac_file" >&6; }
3003 ac_exeext=$ac_cv_exeext
3005 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3006 ac_clean_files=$ac_clean_files_save
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3008 $as_echo_n "checking for suffix of executables... " >&6; }
3009 if { { ac_try="$ac_link"
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3015 $as_echo "$ac_try_echo"; } >&5
3016 (eval "$ac_link") 2>&5
3018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3019 test $ac_status = 0; }; then :
3020 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3021 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3022 # work properly (i.e., refer to `conftest.exe'), while it won't with
3024 for ac_file in conftest.exe conftest conftest.*; do
3025 test -f "$ac_file" || continue
3027 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3028 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3034 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3036 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3037 See \`config.log' for more details" "$LINENO" 5 ; }
3039 rm -f conftest conftest$ac_cv_exeext
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3041 $as_echo "$ac_cv_exeext" >&6; }
3043 rm -f conftest.$ac_ext
3044 EXEEXT=$ac_cv_exeext
3046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3047 /* end confdefs.h. */
3052 FILE *f = fopen ("conftest.out", "w");
3053 return ferror (f) || fclose (f) != 0;
3059 ac_clean_files="$ac_clean_files conftest.out"
3060 # Check that the compiler produces executables we can run. If not, either
3061 # the compiler is broken, or we cross compile.
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3063 $as_echo_n "checking whether we are cross compiling... " >&6; }
3064 if test "$cross_compiling" != yes; then
3065 { { ac_try="$ac_link"
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3071 $as_echo "$ac_try_echo"; } >&5
3072 (eval "$ac_link") 2>&5
3074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3075 test $ac_status = 0; }
3076 if { ac_try='./conftest$ac_cv_exeext'
3077 { { case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3082 $as_echo "$ac_try_echo"; } >&5
3083 (eval "$ac_try") 2>&5
3085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3086 test $ac_status = 0; }; }; then
3089 if test "$cross_compiling" = maybe; then
3092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3094 as_fn_error $? "cannot run C compiled programs.
3095 If you meant to cross compile, use \`--host'.
3096 See \`config.log' for more details" "$LINENO" 5 ; }
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3101 $as_echo "$cross_compiling" >&6; }
3103 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3104 ac_clean_files=$ac_clean_files_save
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3106 $as_echo_n "checking for suffix of object files... " >&6; }
3107 if test "${ac_cv_objext+set}" = set; then :
3108 $as_echo_n "(cached) " >&6
3110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3111 /* end confdefs.h. */
3121 rm -f conftest.o conftest.obj
3122 if { { ac_try="$ac_compile"
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3128 $as_echo "$ac_try_echo"; } >&5
3129 (eval "$ac_compile") 2>&5
3131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3132 test $ac_status = 0; }; then :
3133 for ac_file in conftest.o conftest.obj conftest.*; do
3134 test -f "$ac_file" || continue;
3136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3137 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3142 $as_echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.$ac_ext >&5
3145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3147 as_fn_error $? "cannot compute suffix of object files: cannot compile
3148 See \`config.log' for more details" "$LINENO" 5 ; }
3150 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3153 $as_echo "$ac_cv_objext" >&6; }
3154 OBJEXT=$ac_cv_objext
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3157 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3158 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3159 $as_echo_n "(cached) " >&6
3161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162 /* end confdefs.h. */
3175 if ac_fn_c_try_compile "$LINENO"; then :
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3185 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3186 if test $ac_compiler_gnu = yes; then
3191 ac_test_CFLAGS=${CFLAGS+set}
3192 ac_save_CFLAGS=$CFLAGS
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3194 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3195 if test "${ac_cv_prog_cc_g+set}" = set; then :
3196 $as_echo_n "(cached) " >&6
3198 ac_save_c_werror_flag=$ac_c_werror_flag
3199 ac_c_werror_flag=yes
3202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3203 /* end confdefs.h. */
3213 if ac_fn_c_try_compile "$LINENO"; then :
3217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218 /* end confdefs.h. */
3228 if ac_fn_c_try_compile "$LINENO"; then :
3231 ac_c_werror_flag=$ac_save_c_werror_flag
3233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234 /* end confdefs.h. */
3244 if ac_fn_c_try_compile "$LINENO"; then :
3247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3252 ac_c_werror_flag=$ac_save_c_werror_flag
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3255 $as_echo "$ac_cv_prog_cc_g" >&6; }
3256 if test "$ac_test_CFLAGS" = set; then
3257 CFLAGS=$ac_save_CFLAGS
3258 elif test $ac_cv_prog_cc_g = yes; then
3259 if test "$GCC" = yes; then
3265 if test "$GCC" = yes; then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3272 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3273 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3274 $as_echo_n "(cached) " >&6
3276 ac_cv_prog_cc_c89=no
3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h. */
3282 #include <sys/types.h>
3283 #include <sys/stat.h>
3284 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3285 struct buf { int x; };
3286 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3287 static char *e (p, i)
3293 static char *f (char * (*g) (char **, int), char **p, ...)
3298 s = g (p, va_arg (v,int));
3303 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3304 function prototypes and stuff, but not '\xHH' hex character constants.
3305 These don't provoke an error unfortunately, instead are silently treated
3306 as 'x'. The following induces an error, until -std is added to get
3307 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3308 array size at least. It's necessary to write '\x00'==0 to get something
3309 that's true only with -std. */
3310 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3312 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3313 inside strings and character constants. */
3315 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3317 int test (int i, double x);
3318 struct s1 {int (*f) (int a);};
3319 struct s2 {int (*f) (double a);};
3320 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3326 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3331 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3332 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3334 CC="$ac_save_CC $ac_arg"
3335 if ac_fn_c_try_compile "$LINENO"; then :
3336 ac_cv_prog_cc_c89=$ac_arg
3338 rm -f core conftest.err conftest.$ac_objext
3339 test "x$ac_cv_prog_cc_c89" != "xno" && break
3341 rm -f conftest.$ac_ext
3346 case "x$ac_cv_prog_cc_c89" in
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3349 $as_echo "none needed" >&6; } ;;
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3352 $as_echo "unsupported" >&6; } ;;
3354 CC="$CC $ac_cv_prog_cc_c89"
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3356 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3358 if test "x$ac_cv_prog_cc_c89" != xno; then :
3363 ac_cpp='$CPP $CPPFLAGS'
3364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3369 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3370 if test -f "$ac_dir/install-sh"; then
3372 ac_install_sh="$ac_aux_dir/install-sh -c"
3374 elif test -f "$ac_dir/install.sh"; then
3376 ac_install_sh="$ac_aux_dir/install.sh -c"
3378 elif test -f "$ac_dir/shtool"; then
3380 ac_install_sh="$ac_aux_dir/shtool install -c"
3384 if test -z "$ac_aux_dir"; then
3385 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3388 # These three variables are undocumented and unsupported,
3389 # and are intended to be withdrawn in a future Autoconf release.
3390 # They can cause serious problems if a builder's source tree is in a directory
3391 # whose full name contains unusual characters.
3392 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3393 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3394 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3397 # Make sure we can run config.sub.
3398 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3399 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3402 $as_echo_n "checking build system type... " >&6; }
3403 if test "${ac_cv_build+set}" = set; then :
3404 $as_echo_n "(cached) " >&6
3406 ac_build_alias=$build_alias
3407 test "x$ac_build_alias" = x &&
3408 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3409 test "x$ac_build_alias" = x &&
3410 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3411 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3412 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3416 $as_echo "$ac_cv_build" >&6; }
3417 case $ac_cv_build in
3419 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3422 ac_save_IFS=$IFS; IFS='-'
3428 # Remember, the first character of IFS is used to create $*,
3429 # except with old shells:
3432 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3436 $as_echo_n "checking host system type... " >&6; }
3437 if test "${ac_cv_host+set}" = set; then :
3438 $as_echo_n "(cached) " >&6
3440 if test "x$host_alias" = x; then
3441 ac_cv_host=$ac_cv_build
3443 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3444 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3449 $as_echo "$ac_cv_host" >&6; }
3452 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3455 ac_save_IFS=$IFS; IFS='-'
3461 # Remember, the first character of IFS is used to create $*,
3462 # except with old shells:
3465 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3470 ac_cpp='$CPP $CPPFLAGS'
3471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3475 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3476 # On Suns, sometimes $CPP names a directory.
3477 if test -n "$CPP" && test -d "$CPP"; then
3480 if test -z "$CPP"; then
3481 if test "${ac_cv_prog_CPP+set}" = set; then :
3482 $as_echo_n "(cached) " >&6
3484 # Double quotes because CPP needs to be expanded
3485 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3488 for ac_c_preproc_warn_flag in '' yes
3490 # Use a header file that comes with gcc, so configuring glibc
3491 # with a fresh cross-compiler works.
3492 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3493 # <limits.h> exists even on freestanding compilers.
3494 # On the NeXT, cc -E runs the code through the compiler's parser,
3495 # not just through cpp. "Syntax error" is here to catch this case.
3496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3497 /* end confdefs.h. */
3499 # include <limits.h>
3501 # include <assert.h>
3505 if ac_fn_c_try_cpp "$LINENO"; then :
3508 # Broken: fails on valid input.
3511 rm -f conftest.err conftest.i conftest.$ac_ext
3513 # OK, works on sane cases. Now check whether nonexistent headers
3514 # can be detected and how.
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3517 #include <ac_nonexistent.h>
3519 if ac_fn_c_try_cpp "$LINENO"; then :
3520 # Broken: success on invalid input.
3523 # Passes both tests.
3527 rm -f conftest.err conftest.i conftest.$ac_ext
3530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3531 rm -f conftest.i conftest.err conftest.$ac_ext
3532 if $ac_preproc_ok; then :
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3545 $as_echo "$CPP" >&6; }
3547 for ac_c_preproc_warn_flag in '' yes
3549 # Use a header file that comes with gcc, so configuring glibc
3550 # with a fresh cross-compiler works.
3551 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3552 # <limits.h> exists even on freestanding compilers.
3553 # On the NeXT, cc -E runs the code through the compiler's parser,
3554 # not just through cpp. "Syntax error" is here to catch this case.
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3558 # include <limits.h>
3560 # include <assert.h>
3564 if ac_fn_c_try_cpp "$LINENO"; then :
3567 # Broken: fails on valid input.
3570 rm -f conftest.err conftest.i conftest.$ac_ext
3572 # OK, works on sane cases. Now check whether nonexistent headers
3573 # can be detected and how.
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3576 #include <ac_nonexistent.h>
3578 if ac_fn_c_try_cpp "$LINENO"; then :
3579 # Broken: success on invalid input.
3582 # Passes both tests.
3586 rm -f conftest.err conftest.i conftest.$ac_ext
3589 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3590 rm -f conftest.i conftest.err conftest.$ac_ext
3591 if $ac_preproc_ok; then :
3594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3596 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3597 See \`config.log' for more details" "$LINENO" 5 ; }
3601 ac_cpp='$CPP $CPPFLAGS'
3602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3608 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3609 if test "${ac_cv_path_GREP+set}" = set; then :
3610 $as_echo_n "(cached) " >&6
3612 if test -z "$GREP"; then
3613 ac_path_GREP_found=false
3614 # Loop through the user's path and test for each of PROGNAME-LIST
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3619 test -z "$as_dir" && as_dir=.
3620 for ac_prog in grep ggrep; do
3621 for ac_exec_ext in '' $ac_executable_extensions; do
3622 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3623 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3624 # Check for GNU ac_path_GREP and select it if it is found.
3625 # Check for GNU $ac_path_GREP
3626 case `"$ac_path_GREP" --version 2>&1` in
3628 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3631 $as_echo_n 0123456789 >"conftest.in"
3634 cat "conftest.in" "conftest.in" >"conftest.tmp"
3635 mv "conftest.tmp" "conftest.in"
3636 cp "conftest.in" "conftest.nl"
3637 $as_echo 'GREP' >> "conftest.nl"
3638 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3639 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3640 as_fn_arith $ac_count + 1 && ac_count=$as_val
3641 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3642 # Best one so far, save it but keep looking for a better one
3643 ac_cv_path_GREP="$ac_path_GREP"
3644 ac_path_GREP_max=$ac_count
3646 # 10*(2^10) chars as input seems more than enough
3647 test $ac_count -gt 10 && break
3649 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3652 $ac_path_GREP_found && break 3
3657 if test -z "$ac_cv_path_GREP"; then
3658 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3661 ac_cv_path_GREP=$GREP
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3666 $as_echo "$ac_cv_path_GREP" >&6; }
3667 GREP="$ac_cv_path_GREP"
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3671 $as_echo_n "checking for egrep... " >&6; }
3672 if test "${ac_cv_path_EGREP+set}" = set; then :
3673 $as_echo_n "(cached) " >&6
3675 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3676 then ac_cv_path_EGREP="$GREP -E"
3678 if test -z "$EGREP"; then
3679 ac_path_EGREP_found=false
3680 # Loop through the user's path and test for each of PROGNAME-LIST
3681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3685 test -z "$as_dir" && as_dir=.
3686 for ac_prog in egrep; do
3687 for ac_exec_ext in '' $ac_executable_extensions; do
3688 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3689 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3690 # Check for GNU ac_path_EGREP and select it if it is found.
3691 # Check for GNU $ac_path_EGREP
3692 case `"$ac_path_EGREP" --version 2>&1` in
3694 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3697 $as_echo_n 0123456789 >"conftest.in"
3700 cat "conftest.in" "conftest.in" >"conftest.tmp"
3701 mv "conftest.tmp" "conftest.in"
3702 cp "conftest.in" "conftest.nl"
3703 $as_echo 'EGREP' >> "conftest.nl"
3704 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3705 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3706 as_fn_arith $ac_count + 1 && ac_count=$as_val
3707 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3708 # Best one so far, save it but keep looking for a better one
3709 ac_cv_path_EGREP="$ac_path_EGREP"
3710 ac_path_EGREP_max=$ac_count
3712 # 10*(2^10) chars as input seems more than enough
3713 test $ac_count -gt 10 && break
3715 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3718 $ac_path_EGREP_found && break 3
3723 if test -z "$ac_cv_path_EGREP"; then
3724 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3727 ac_cv_path_EGREP=$EGREP
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3733 $as_echo "$ac_cv_path_EGREP" >&6; }
3734 EGREP="$ac_cv_path_EGREP"
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3738 $as_echo_n "checking for ANSI C header files... " >&6; }
3739 if test "${ac_cv_header_stdc+set}" = set; then :
3740 $as_echo_n "(cached) " >&6
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3757 if ac_fn_c_try_compile "$LINENO"; then :
3758 ac_cv_header_stdc=yes
3760 ac_cv_header_stdc=no
3762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3764 if test $ac_cv_header_stdc = yes; then
3765 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3772 $EGREP "memchr" >/dev/null 2>&1; then :
3775 ac_cv_header_stdc=no
3781 if test $ac_cv_header_stdc = yes; then
3782 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h. */
3788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3789 $EGREP "free" >/dev/null 2>&1; then :
3792 ac_cv_header_stdc=no
3798 if test $ac_cv_header_stdc = yes; then
3799 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3800 if test "$cross_compiling" = yes; then :
3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h. */
3807 #if ((' ' & 0x0FF) == 0x020)
3808 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3809 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3811 # define ISLOWER(c) \
3812 (('a' <= (c) && (c) <= 'i') \
3813 || ('j' <= (c) && (c) <= 'r') \
3814 || ('s' <= (c) && (c) <= 'z'))
3815 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3818 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3823 for (i = 0; i < 256; i++)
3824 if (XOR (islower (i), ISLOWER (i))
3825 || toupper (i) != TOUPPER (i))
3830 if ac_fn_c_try_run "$LINENO"; then :
3833 ac_cv_header_stdc=no
3835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3836 conftest.$ac_objext conftest.beam conftest.$ac_ext
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3842 $as_echo "$ac_cv_header_stdc" >&6; }
3843 if test $ac_cv_header_stdc = yes; then
3845 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3849 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3850 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3851 inttypes.h stdint.h unistd.h
3853 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3854 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3856 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3857 cat >>confdefs.h <<_ACEOF
3858 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3867 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3868 if test "${ac_cv_c_bigendian+set}" = set; then :
3869 $as_echo_n "(cached) " >&6
3871 ac_cv_c_bigendian=unknown
3872 # See if we're dealing with a universal compiler.
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3875 #ifndef __APPLE_CC__
3876 not a universal capable compiler
3881 if ac_fn_c_try_compile "$LINENO"; then :
3883 # Check for potential -arch flags. It is not universal unless
3884 # there are at least two -arch flags with different values.
3887 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3888 if test -n "$ac_prev"; then
3890 i?86 | x86_64 | ppc | ppc64)
3891 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3894 ac_cv_c_bigendian=universal
3900 elif test "x$ac_word" = "x-arch"; then
3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 if test $ac_cv_c_bigendian = unknown; then
3907 # See if sys/param.h defines the BYTE_ORDER macro.
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h. */
3910 #include <sys/types.h>
3911 #include <sys/param.h>
3916 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3917 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3926 if ac_fn_c_try_compile "$LINENO"; then :
3927 # It does; now see whether it defined to BIG_ENDIAN or not.
3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929 /* end confdefs.h. */
3930 #include <sys/types.h>
3931 #include <sys/param.h>
3936 #if BYTE_ORDER != BIG_ENDIAN
3944 if ac_fn_c_try_compile "$LINENO"; then :
3945 ac_cv_c_bigendian=yes
3947 ac_cv_c_bigendian=no
3949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3953 if test $ac_cv_c_bigendian = unknown; then
3954 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3962 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3970 if ac_fn_c_try_compile "$LINENO"; then :
3971 # It does; now see whether it defined to _BIG_ENDIAN or not.
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3987 if ac_fn_c_try_compile "$LINENO"; then :
3988 ac_cv_c_bigendian=yes
3990 ac_cv_c_bigendian=no
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3996 if test $ac_cv_c_bigendian = unknown; then
3997 # Compile a test program.
3998 if test "$cross_compiling" = yes; then :
3999 # Try to guess by grepping values from an object file.
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4002 short int ascii_mm[] =
4003 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4004 short int ascii_ii[] =
4005 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4006 int use_ascii (int i) {
4007 return ascii_mm[i] + ascii_ii[i];
4009 short int ebcdic_ii[] =
4010 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4011 short int ebcdic_mm[] =
4012 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4013 int use_ebcdic (int i) {
4014 return ebcdic_mm[i] + ebcdic_ii[i];
4021 return use_ascii (foo) == use_ebcdic (foo);
4026 if ac_fn_c_try_compile "$LINENO"; then :
4027 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4028 ac_cv_c_bigendian=yes
4030 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4031 if test "$ac_cv_c_bigendian" = unknown; then
4032 ac_cv_c_bigendian=no
4034 # finding both strings is unlikely to happen, but who knows?
4035 ac_cv_c_bigendian=unknown
4039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4043 $ac_includes_default
4048 /* Are we little or big endian? From Harbison&Steele. */
4052 char c[sizeof (long int)];
4055 return u.c[sizeof (long int) - 1] == 1;
4061 if ac_fn_c_try_run "$LINENO"; then :
4062 ac_cv_c_bigendian=no
4064 ac_cv_c_bigendian=yes
4066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4067 conftest.$ac_objext conftest.beam conftest.$ac_ext
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4073 $as_echo "$ac_cv_c_bigendian" >&6; }
4074 case $ac_cv_c_bigendian in #(
4076 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4082 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4086 as_fn_error $? "unknown endianness
4087 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4091 # Checks for programs.
4092 for ac_prog in gawk mawk nawk awk
4094 # Extract the first word of "$ac_prog", so it can be a program name with args.
4095 set dummy $ac_prog; ac_word=$2
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4097 $as_echo_n "checking for $ac_word... " >&6; }
4098 if test "${ac_cv_prog_AWK+set}" = set; then :
4099 $as_echo_n "(cached) " >&6
4101 if test -n "$AWK"; then
4102 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 test -z "$as_dir" && as_dir=.
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4111 ac_cv_prog_AWK="$ac_prog"
4112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4122 if test -n "$AWK"; then
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4124 $as_echo "$AWK" >&6; }
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127 $as_echo "no" >&6; }
4131 test -n "$AWK" && break
4135 ac_cpp='$CPP $CPPFLAGS'
4136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4140 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4141 # On Suns, sometimes $CPP names a directory.
4142 if test -n "$CPP" && test -d "$CPP"; then
4145 if test -z "$CPP"; then
4146 if test "${ac_cv_prog_CPP+set}" = set; then :
4147 $as_echo_n "(cached) " >&6
4149 # Double quotes because CPP needs to be expanded
4150 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4153 for ac_c_preproc_warn_flag in '' yes
4155 # Use a header file that comes with gcc, so configuring glibc
4156 # with a fresh cross-compiler works.
4157 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4158 # <limits.h> exists even on freestanding compilers.
4159 # On the NeXT, cc -E runs the code through the compiler's parser,
4160 # not just through cpp. "Syntax error" is here to catch this case.
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4164 # include <limits.h>
4166 # include <assert.h>
4170 if ac_fn_c_try_cpp "$LINENO"; then :
4173 # Broken: fails on valid input.
4176 rm -f conftest.err conftest.i conftest.$ac_ext
4178 # OK, works on sane cases. Now check whether nonexistent headers
4179 # can be detected and how.
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4182 #include <ac_nonexistent.h>
4184 if ac_fn_c_try_cpp "$LINENO"; then :
4185 # Broken: success on invalid input.
4188 # Passes both tests.
4192 rm -f conftest.err conftest.i conftest.$ac_ext
4195 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4196 rm -f conftest.i conftest.err conftest.$ac_ext
4197 if $ac_preproc_ok; then :
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4210 $as_echo "$CPP" >&6; }
4212 for ac_c_preproc_warn_flag in '' yes
4214 # Use a header file that comes with gcc, so configuring glibc
4215 # with a fresh cross-compiler works.
4216 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4217 # <limits.h> exists even on freestanding compilers.
4218 # On the NeXT, cc -E runs the code through the compiler's parser,
4219 # not just through cpp. "Syntax error" is here to catch this case.
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4223 # include <limits.h>
4225 # include <assert.h>
4229 if ac_fn_c_try_cpp "$LINENO"; then :
4232 # Broken: fails on valid input.
4235 rm -f conftest.err conftest.i conftest.$ac_ext
4237 # OK, works on sane cases. Now check whether nonexistent headers
4238 # can be detected and how.
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4241 #include <ac_nonexistent.h>
4243 if ac_fn_c_try_cpp "$LINENO"; then :
4244 # Broken: success on invalid input.
4247 # Passes both tests.
4251 rm -f conftest.err conftest.i conftest.$ac_ext
4254 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4255 rm -f conftest.i conftest.err conftest.$ac_ext
4256 if $ac_preproc_ok; then :
4259 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4261 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4262 See \`config.log' for more details" "$LINENO" 5 ; }
4266 ac_cpp='$CPP $CPPFLAGS'
4267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4271 if test -n "$ac_tool_prefix"; then
4272 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4273 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4275 $as_echo_n "checking for $ac_word... " >&6; }
4276 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4277 $as_echo_n "(cached) " >&6
4279 if test -n "$RANLIB"; then
4280 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286 test -z "$as_dir" && as_dir=.
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4289 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 RANLIB=$ac_cv_prog_RANLIB
4300 if test -n "$RANLIB"; then
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4302 $as_echo "$RANLIB" >&6; }
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4305 $as_echo "no" >&6; }
4310 if test -z "$ac_cv_prog_RANLIB"; then
4311 ac_ct_RANLIB=$RANLIB
4312 # Extract the first word of "ranlib", so it can be a program name with args.
4313 set dummy ranlib; ac_word=$2
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4315 $as_echo_n "checking for $ac_word... " >&6; }
4316 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4317 $as_echo_n "(cached) " >&6
4319 if test -n "$ac_ct_RANLIB"; then
4320 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 test -z "$as_dir" && as_dir=.
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4329 ac_cv_prog_ac_ct_RANLIB="ranlib"
4330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4339 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4340 if test -n "$ac_ct_RANLIB"; then
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4342 $as_echo "$ac_ct_RANLIB" >&6; }
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4345 $as_echo "no" >&6; }
4348 if test "x$ac_ct_RANLIB" = x; then
4351 case $cross_compiling:$ac_tool_warned in
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4355 ac_tool_warned=yes ;;
4357 RANLIB=$ac_ct_RANLIB
4360 RANLIB="$ac_cv_prog_RANLIB"
4363 # Find a good install program. We prefer a C program (faster),
4364 # so one script is as good as another. But avoid the broken or
4365 # incompatible versions:
4366 # SysV /etc/install, /usr/sbin/install
4367 # SunOS /usr/etc/install
4368 # IRIX /sbin/install
4370 # AmigaOS /C/install, which installs bootblocks on floppy discs
4371 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4372 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4373 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4374 # OS/2's system install, which has a completely different semantic
4375 # ./install, which can be erroneously created by make from ./install.sh.
4376 # Reject install programs that cannot install multiple files.
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4378 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4379 if test -z "$INSTALL"; then
4380 if test "${ac_cv_path_install+set}" = set; then :
4381 $as_echo_n "(cached) " >&6
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 test -z "$as_dir" && as_dir=.
4388 # Account for people who put trailing slashes in PATH elements.
4389 case $as_dir/ in #((
4390 ./ | .// | /[cC]/* | \
4391 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4392 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4395 # OSF1 and SCO ODT 3.0 have their own names for install.
4396 # Don't use installbsd from OSF since it installs stuff as root
4398 for ac_prog in ginstall scoinst install; do
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4401 if test $ac_prog = install &&
4402 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4403 # AIX install. It has an incompatible calling convention.
4405 elif test $ac_prog = install &&
4406 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4407 # program-specific install script used by HP pwplus--don't use.
4410 rm -rf conftest.one conftest.two conftest.dir
4411 echo one > conftest.one
4412 echo two > conftest.two
4414 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4415 test -s conftest.one && test -s conftest.two &&
4416 test -s conftest.dir/conftest.one &&
4417 test -s conftest.dir/conftest.two
4419 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4432 rm -rf conftest.one conftest.two conftest.dir
4435 if test "${ac_cv_path_install+set}" = set; then
4436 INSTALL=$ac_cv_path_install
4438 # As a last resort, use the slow shell script. Don't cache a
4439 # value for INSTALL within a source directory, because that will
4440 # break other packages using the cache if that directory is
4441 # removed, or if the value is a relative name.
4442 INSTALL=$ac_install_sh
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4446 $as_echo "$INSTALL" >&6; }
4448 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4449 # It thinks the first close brace ends the variable substitution.
4450 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4452 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4454 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4457 $as_echo_n "checking for egrep... " >&6; }
4458 if test "${ac_cv_path_EGREP+set}" = set; then :
4459 $as_echo_n "(cached) " >&6
4461 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4462 then ac_cv_path_EGREP="$GREP -E"
4464 if test -z "$EGREP"; then
4465 ac_path_EGREP_found=false
4466 # Loop through the user's path and test for each of PROGNAME-LIST
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4471 test -z "$as_dir" && as_dir=.
4472 for ac_prog in egrep; do
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4475 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4476 # Check for GNU ac_path_EGREP and select it if it is found.
4477 # Check for GNU $ac_path_EGREP
4478 case `"$ac_path_EGREP" --version 2>&1` in
4480 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4483 $as_echo_n 0123456789 >"conftest.in"
4486 cat "conftest.in" "conftest.in" >"conftest.tmp"
4487 mv "conftest.tmp" "conftest.in"
4488 cp "conftest.in" "conftest.nl"
4489 $as_echo 'EGREP' >> "conftest.nl"
4490 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4491 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4492 as_fn_arith $ac_count + 1 && ac_count=$as_val
4493 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4494 # Best one so far, save it but keep looking for a better one
4495 ac_cv_path_EGREP="$ac_path_EGREP"
4496 ac_path_EGREP_max=$ac_count
4498 # 10*(2^10) chars as input seems more than enough
4499 test $ac_count -gt 10 && break
4501 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4504 $ac_path_EGREP_found && break 3
4509 if test -z "$ac_cv_path_EGREP"; then
4510 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4513 ac_cv_path_EGREP=$EGREP
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4519 $as_echo "$ac_cv_path_EGREP" >&6; }
4520 EGREP="$ac_cv_path_EGREP"
4523 # Extract the first word of "ar", so it can be a program name with args.
4524 set dummy ar; ac_word=$2
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4526 $as_echo_n "checking for $ac_word... " >&6; }
4527 if test "${ac_cv_path_AR+set}" = set; then :
4528 $as_echo_n "(cached) " >&6
4532 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 if test -n "$AR"; then
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4556 $as_echo "$AR" >&6; }
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 $as_echo "no" >&6; }
4563 # Extract the first word of "cat", so it can be a program name with args.
4564 set dummy cat; ac_word=$2
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4566 $as_echo_n "checking for $ac_word... " >&6; }
4567 if test "${ac_cv_path_CAT+set}" = set; then :
4568 $as_echo_n "(cached) " >&6
4572 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4582 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4594 if test -n "$CAT"; then
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4596 $as_echo "$CAT" >&6; }
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599 $as_echo "no" >&6; }
4603 # Extract the first word of "kill", so it can be a program name with args.
4604 set dummy kill; ac_word=$2
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606 $as_echo_n "checking for $ac_word... " >&6; }
4607 if test "${ac_cv_path_KILL+set}" = set; then :
4608 $as_echo_n "(cached) " >&6
4612 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4622 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4633 KILL=$ac_cv_path_KILL
4634 if test -n "$KILL"; then
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5
4636 $as_echo "$KILL" >&6; }
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4639 $as_echo "no" >&6; }
4643 for ac_prog in perl5 perl
4645 # Extract the first word of "$ac_prog", so it can be a program name with args.
4646 set dummy $ac_prog; ac_word=$2
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648 $as_echo_n "checking for $ac_word... " >&6; }
4649 if test "${ac_cv_path_PERL+set}" = set; then :
4650 $as_echo_n "(cached) " >&6
4654 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 PERL=$ac_cv_path_PERL
4676 if test -n "$PERL"; then
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4678 $as_echo "$PERL" >&6; }
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681 $as_echo "no" >&6; }
4685 test -n "$PERL" && break
4688 # Extract the first word of "sed", so it can be a program name with args.
4689 set dummy sed; ac_word=$2
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4691 $as_echo_n "checking for $ac_word... " >&6; }
4692 if test "${ac_cv_path_SED+set}" = set; then :
4693 $as_echo_n "(cached) " >&6
4697 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4707 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 if test -n "$SED"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4721 $as_echo "$SED" >&6; }
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724 $as_echo "no" >&6; }
4729 # Extract the first word of "ent", so it can be a program name with args.
4730 set dummy ent; ac_word=$2
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4732 $as_echo_n "checking for $ac_word... " >&6; }
4733 if test "${ac_cv_path_ENT+set}" = set; then :
4734 $as_echo_n "(cached) " >&6
4738 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4748 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4760 if test -n "$ENT"; then
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5
4762 $as_echo "$ENT" >&6; }
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4765 $as_echo "no" >&6; }
4770 # Extract the first word of "bash", so it can be a program name with args.
4771 set dummy bash; ac_word=$2
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773 $as_echo_n "checking for $ac_word... " >&6; }
4774 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then :
4775 $as_echo_n "(cached) " >&6
4777 case $TEST_MINUS_S_SH in
4779 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4789 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4800 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4801 if test -n "$TEST_MINUS_S_SH"; then
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4803 $as_echo "$TEST_MINUS_S_SH" >&6; }
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4806 $as_echo "no" >&6; }
4810 # Extract the first word of "ksh", so it can be a program name with args.
4811 set dummy ksh; ac_word=$2
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813 $as_echo_n "checking for $ac_word... " >&6; }
4814 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then :
4815 $as_echo_n "(cached) " >&6
4817 case $TEST_MINUS_S_SH in
4819 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 test -z "$as_dir" && as_dir=.
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4829 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4841 if test -n "$TEST_MINUS_S_SH"; then
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4843 $as_echo "$TEST_MINUS_S_SH" >&6; }
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846 $as_echo "no" >&6; }
4850 # Extract the first word of "sh", so it can be a program name with args.
4851 set dummy sh; ac_word=$2
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4853 $as_echo_n "checking for $ac_word... " >&6; }
4854 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then :
4855 $as_echo_n "(cached) " >&6
4857 case $TEST_MINUS_S_SH in
4859 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4881 if test -n "$TEST_MINUS_S_SH"; then
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4883 $as_echo "$TEST_MINUS_S_SH" >&6; }
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 $as_echo "no" >&6; }
4890 # Extract the first word of "sh", so it can be a program name with args.
4891 set dummy sh; ac_word=$2
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4893 $as_echo_n "checking for $ac_word... " >&6; }
4894 if test "${ac_cv_path_SH+set}" = set; then :
4895 $as_echo_n "(cached) " >&6
4899 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4909 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 if test -n "$SH"; then
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
4923 $as_echo "$SH" >&6; }
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926 $as_echo "no" >&6; }
4933 # Extract the first word of "groupadd", so it can be a program name with args.
4934 set dummy groupadd; ac_word=$2
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4936 $as_echo_n "checking for $ac_word... " >&6; }
4937 if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then :
4938 $as_echo_n "(cached) " >&6
4940 case $PATH_GROUPADD_PROG in
4942 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4949 test -z "$as_dir" && as_dir=.
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4952 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
4964 PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
4965 if test -n "$PATH_GROUPADD_PROG"; then
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5
4967 $as_echo "$PATH_GROUPADD_PROG" >&6; }
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970 $as_echo "no" >&6; }
4974 # Extract the first word of "useradd", so it can be a program name with args.
4975 set dummy useradd; ac_word=$2
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4977 $as_echo_n "checking for $ac_word... " >&6; }
4978 if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then :
4979 $as_echo_n "(cached) " >&6
4981 case $PATH_USERADD_PROG in
4983 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4990 test -z "$as_dir" && as_dir=.
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4993 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
5005 PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
5006 if test -n "$PATH_USERADD_PROG"; then
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5
5008 $as_echo "$PATH_USERADD_PROG" >&6; }
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011 $as_echo "no" >&6; }
5015 # Extract the first word of "pkgmk", so it can be a program name with args.
5016 set dummy pkgmk; ac_word=$2
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018 $as_echo_n "checking for $ac_word... " >&6; }
5019 if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then :
5020 $as_echo_n "(cached) " >&6
5022 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5023 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 test -z "$as_dir" && as_dir=.
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5032 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
5033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
5043 MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
5044 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5
5046 $as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; }
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049 $as_echo "no" >&6; }
5053 if test -x /sbin/sh; then
5054 STARTUP_SCRIPT_SHELL=/sbin/sh
5057 STARTUP_SCRIPT_SHELL=/bin/sh
5062 # Check whether --enable-largefile was given.
5063 if test "${enable_largefile+set}" = set; then :
5064 enableval=$enable_largefile;
5067 if test "$enable_largefile" != no; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5070 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5071 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5072 $as_echo_n "(cached) " >&6
5074 ac_cv_sys_largefile_CC=no
5075 if test "$GCC" != yes; then
5078 # IRIX 6.2 and later do not support large files by default,
5079 # so use the C compiler's -n32 option if that helps.
5080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5081 /* end confdefs.h. */
5082 #include <sys/types.h>
5083 /* Check that off_t can represent 2**63 - 1 correctly.
5084 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5085 since some C++ compilers masquerading as C compilers
5086 incorrectly reject 9223372036854775807. */
5087 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5088 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5089 && LARGE_OFF_T % 2147483647 == 1)
5099 if ac_fn_c_try_compile "$LINENO"; then :
5102 rm -f core conftest.err conftest.$ac_objext
5104 if ac_fn_c_try_compile "$LINENO"; then :
5105 ac_cv_sys_largefile_CC=' -n32'; break
5107 rm -f core conftest.err conftest.$ac_objext
5111 rm -f conftest.$ac_ext
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5115 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5116 if test "$ac_cv_sys_largefile_CC" != no; then
5117 CC=$CC$ac_cv_sys_largefile_CC
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5121 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5122 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5123 $as_echo_n "(cached) " >&6
5126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127 /* end confdefs.h. */
5128 #include <sys/types.h>
5129 /* Check that off_t can represent 2**63 - 1 correctly.
5130 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5131 since some C++ compilers masquerading as C compilers
5132 incorrectly reject 9223372036854775807. */
5133 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5134 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5135 && LARGE_OFF_T % 2147483647 == 1)
5145 if ac_fn_c_try_compile "$LINENO"; then :
5146 ac_cv_sys_file_offset_bits=no; break
5148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h. */
5151 #define _FILE_OFFSET_BITS 64
5152 #include <sys/types.h>
5153 /* Check that off_t can represent 2**63 - 1 correctly.
5154 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5155 since some C++ compilers masquerading as C compilers
5156 incorrectly reject 9223372036854775807. */
5157 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5158 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5159 && LARGE_OFF_T % 2147483647 == 1)
5169 if ac_fn_c_try_compile "$LINENO"; then :
5170 ac_cv_sys_file_offset_bits=64; break
5172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5173 ac_cv_sys_file_offset_bits=unknown
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5178 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5179 case $ac_cv_sys_file_offset_bits in #(
5182 cat >>confdefs.h <<_ACEOF
5183 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5188 if test $ac_cv_sys_file_offset_bits = unknown; then
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5190 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5191 if test "${ac_cv_sys_large_files+set}" = set; then :
5192 $as_echo_n "(cached) " >&6
5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196 /* end confdefs.h. */
5197 #include <sys/types.h>
5198 /* Check that off_t can represent 2**63 - 1 correctly.
5199 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5200 since some C++ compilers masquerading as C compilers
5201 incorrectly reject 9223372036854775807. */
5202 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5203 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5204 && LARGE_OFF_T % 2147483647 == 1)
5214 if ac_fn_c_try_compile "$LINENO"; then :
5215 ac_cv_sys_large_files=no; break
5217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219 /* end confdefs.h. */
5220 #define _LARGE_FILES 1
5221 #include <sys/types.h>
5222 /* Check that off_t can represent 2**63 - 1 correctly.
5223 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5224 since some C++ compilers masquerading as C compilers
5225 incorrectly reject 9223372036854775807. */
5226 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5227 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5228 && LARGE_OFF_T % 2147483647 == 1)
5238 if ac_fn_c_try_compile "$LINENO"; then :
5239 ac_cv_sys_large_files=1; break
5241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5242 ac_cv_sys_large_files=unknown
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5247 $as_echo "$ac_cv_sys_large_files" >&6; }
5248 case $ac_cv_sys_large_files in #(
5251 cat >>confdefs.h <<_ACEOF
5252 #define _LARGE_FILES $ac_cv_sys_large_files
5261 if test -z "$AR" ; then
5262 as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5
5265 # Use LOGIN_PROGRAM from environment if possible
5266 if test ! -z "$LOGIN_PROGRAM" ; then
5268 cat >>confdefs.h <<_ACEOF
5269 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5274 # Extract the first word of "login", so it can be a program name with args.
5275 set dummy login; ac_word=$2
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277 $as_echo_n "checking for $ac_word... " >&6; }
5278 if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then :
5279 $as_echo_n "(cached) " >&6
5281 case $LOGIN_PROGRAM_FALLBACK in
5283 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290 test -z "$as_dir" && as_dir=.
5291 for ac_exec_ext in '' $ac_executable_extensions; do
5292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5293 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5304 LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5305 if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOGIN_PROGRAM_FALLBACK" >&5
5307 $as_echo "$LOGIN_PROGRAM_FALLBACK" >&6; }
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5310 $as_echo "no" >&6; }
5314 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5315 cat >>confdefs.h <<_ACEOF
5316 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5322 # Extract the first word of "passwd", so it can be a program name with args.
5323 set dummy passwd; ac_word=$2
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5325 $as_echo_n "checking for $ac_word... " >&6; }
5326 if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then :
5327 $as_echo_n "(cached) " >&6
5329 case $PATH_PASSWD_PROG in
5331 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5353 if test -n "$PATH_PASSWD_PROG"; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5
5355 $as_echo "$PATH_PASSWD_PROG" >&6; }
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5362 if test ! -z "$PATH_PASSWD_PROG" ; then
5364 cat >>confdefs.h <<_ACEOF
5365 #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5370 if test -z "$LD" ; then
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5376 $as_echo_n "checking for inline... " >&6; }
5377 if test "${ac_cv_c_inline+set}" = set; then :
5378 $as_echo_n "(cached) " >&6
5381 for ac_kw in inline __inline__ __inline; do
5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383 /* end confdefs.h. */
5386 static $ac_kw foo_t static_foo () {return 0; }
5387 $ac_kw foo_t foo () {return 0; }
5391 if ac_fn_c_try_compile "$LINENO"; then :
5392 ac_cv_c_inline=$ac_kw
5394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5395 test "$ac_cv_c_inline" != no && break
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5400 $as_echo "$ac_cv_c_inline" >&6; }
5402 case $ac_cv_c_inline in
5405 case $ac_cv_c_inline in
5407 *) ac_val=$ac_cv_c_inline;;
5409 cat >>confdefs.h <<_ACEOF
5411 #define inline $ac_val
5418 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5420 if test "x$ac_cv_have_decl_LLONG_MAX" = x""yes; then :
5425 use_stack_protector=1
5427 # Check whether --with-stackprotect was given.
5428 if test "${with_stackprotect+set}" = set; then :
5429 withval=$with_stackprotect;
5430 if test "x$withval" = "xno"; then
5431 use_stack_protector=0
5436 if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5437 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized"
5438 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
5440 1.*) no_attrib_nonnull=1 ;;
5442 CFLAGS="$CFLAGS -Wsign-compare"
5445 2.*) no_attrib_nonnull=1 ;;
5446 3.*) CFLAGS="$CFLAGS -Wsign-compare -Wformat-security" ;;
5447 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign -Wformat-security" ;;
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5
5452 $as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; }
5453 saved_CFLAGS="$CFLAGS"
5454 CFLAGS="$CFLAGS -fno-builtin-memset"
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5459 int main(void){char b[10]; memset(b, 0, sizeof(b));}
5462 if ac_fn_c_try_link "$LINENO"; then :
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5464 $as_echo "yes" >&6; }
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 $as_echo "no" >&6; }
5468 CFLAGS="$saved_CFLAGS"
5471 rm -f core conftest.err conftest.$ac_objext \
5472 conftest$ac_exeext conftest.$ac_ext
5474 # -fstack-protector-all doesn't always work for some GCC versions
5475 # and/or platforms, so we test if we can. If it's not supported
5476 # on a given platform gcc will emit a warning so we use -Werror.
5477 if test "x$use_stack_protector" = "x1"; then
5478 for t in -fstack-protector-all -fstack-protector; do
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5
5480 $as_echo_n "checking if $CC supports $t... " >&6; }
5481 saved_CFLAGS="$CFLAGS"
5482 saved_LDFLAGS="$LDFLAGS"
5483 CFLAGS="$CFLAGS $t -Werror"
5484 LDFLAGS="$LDFLAGS $t -Werror"
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h. */
5489 int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;}
5492 if ac_fn_c_try_link "$LINENO"; then :
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5494 $as_echo "yes" >&6; }
5495 CFLAGS="$saved_CFLAGS $t"
5496 LDFLAGS="$saved_LDFLAGS $t"
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5
5498 $as_echo_n "checking if $t works... " >&6; }
5499 if test "$cross_compiling" = yes; then :
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5
5501 $as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h. */
5509 int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;}
5512 if ac_fn_c_try_run "$LINENO"; then :
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5514 $as_echo "yes" >&6; }
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5521 conftest.$ac_objext conftest.beam conftest.$ac_ext
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527 $as_echo "no" >&6; }
5530 rm -f core conftest.err conftest.$ac_objext \
5531 conftest$ac_exeext conftest.$ac_ext
5532 CFLAGS="$saved_CFLAGS"
5533 LDFLAGS="$saved_LDFLAGS"
5537 if test -z "$have_llong_max"; then
5538 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
5539 unset ac_cv_have_decl_LLONG_MAX
5540 saved_CFLAGS="$CFLAGS"
5541 CFLAGS="$CFLAGS -std=gnu99"
5542 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5545 if test "x$ac_cv_have_decl_LLONG_MAX" = x""yes; then :
5548 CFLAGS="$saved_CFLAGS"
5554 if test "x$no_attrib_nonnull" != "x1" ; then
5556 $as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h
5561 # Check whether --with-rpath was given.
5562 if test "${with_rpath+set}" = set; then :
5563 withval=$with_rpath;
5564 if test "x$withval" = "xno" ; then
5567 if test "x$withval" = "xyes" ; then
5575 # Allow user to specify flags
5577 # Check whether --with-cflags was given.
5578 if test "${with_cflags+set}" = set; then :
5579 withval=$with_cflags;
5580 if test -n "$withval" && test "x$withval" != "xno" && \
5581 test "x${withval}" != "xyes"; then
5582 CFLAGS="$CFLAGS $withval"
5589 # Check whether --with-cppflags was given.
5590 if test "${with_cppflags+set}" = set; then :
5591 withval=$with_cppflags;
5592 if test -n "$withval" && test "x$withval" != "xno" && \
5593 test "x${withval}" != "xyes"; then
5594 CPPFLAGS="$CPPFLAGS $withval"
5601 # Check whether --with-ldflags was given.
5602 if test "${with_ldflags+set}" = set; then :
5603 withval=$with_ldflags;
5604 if test -n "$withval" && test "x$withval" != "xno" && \
5605 test "x${withval}" != "xyes"; then
5606 LDFLAGS="$LDFLAGS $withval"
5613 # Check whether --with-libs was given.
5614 if test "${with_libs+set}" = set; then :
5616 if test -n "$withval" && test "x$withval" != "xno" && \
5617 test "x${withval}" != "xyes"; then
5618 LIBS="$LIBS $withval"
5625 # Check whether --with-Werror was given.
5626 if test "${with_Werror+set}" = set; then :
5627 withval=$with_Werror;
5628 if test -n "$withval" && test "x$withval" != "xno"; then
5629 werror_flags="-Werror"
5630 if test "x${withval}" != "xyes"; then
5631 werror_flags="$withval"
5665 security/pam_appl.h \
5705 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5706 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5707 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5708 cat >>confdefs.h <<_ACEOF
5709 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5717 # lastlog.h requires sys/time.h to be included first on Solaris
5718 for ac_header in lastlog.h
5720 ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "
5721 #ifdef HAVE_SYS_TIME_H
5722 # include <sys/time.h>
5726 if test "x$ac_cv_header_lastlog_h" = x""yes; then :
5727 cat >>confdefs.h <<_ACEOF
5728 #define HAVE_LASTLOG_H 1
5736 # sys/ptms.h requires sys/stream.h to be included first on Solaris
5737 for ac_header in sys/ptms.h
5739 ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" "
5740 #ifdef HAVE_SYS_STREAM_H
5741 # include <sys/stream.h>
5745 if test "x$ac_cv_header_sys_ptms_h" = x""yes; then :
5746 cat >>confdefs.h <<_ACEOF
5747 #define HAVE_SYS_PTMS_H 1
5755 # login_cap.h requires sys/types.h on NetBSD
5756 for ac_header in login_cap.h
5758 ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "
5759 #include <sys/types.h>
5762 if test "x$ac_cv_header_login_cap_h" = x""yes; then :
5763 cat >>confdefs.h <<_ACEOF
5764 #define HAVE_LOGIN_CAP_H 1
5772 # older BSDs need sys/param.h before sys/mount.h
5773 for ac_header in sys/mount.h
5775 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "
5776 #include <sys/param.h>
5779 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
5780 cat >>confdefs.h <<_ACEOF
5781 #define HAVE_SYS_MOUNT_H 1
5789 # Messages for features tested for in target-specific section
5793 # Check for some target-specific stuff
5796 # Some versions of VAC won't allow macro redefinitions at
5797 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
5798 # particularly with older versions of vac or xlc.
5799 # It also throws errors about null macro argments, but these are
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5
5802 $as_echo_n "checking if compiler allows macro redefinitions... " >&6; }
5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h. */
5806 #define testmacro foo
5807 #define testmacro bar
5808 int main(void) { exit(0); }
5811 if ac_fn_c_try_compile "$LINENO"; then :
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5813 $as_echo "yes" >&6; }
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5816 $as_echo "no" >&6; }
5817 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
5818 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
5819 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
5820 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
5824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5
5827 $as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; }
5828 if (test -z "$blibpath"); then
5829 blibpath="/usr/lib:/lib"
5831 saved_LDFLAGS="$LDFLAGS"
5832 if test "$GCC" = "yes"; then
5833 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
5835 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
5837 for tryflags in $flags ;do
5838 if (test -z "$blibflags"); then
5839 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5851 if ac_fn_c_try_link "$LINENO"; then :
5854 rm -f core conftest.err conftest.$ac_objext \
5855 conftest$ac_exeext conftest.$ac_ext
5858 if (test -z "$blibflags"); then
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5860 $as_echo "not found" >&6; }
5861 as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5
5864 $as_echo "$blibflags" >&6; }
5866 LDFLAGS="$saved_LDFLAGS"
5867 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
5868 if test "x$ac_cv_func_authenticate" = x""yes; then :
5870 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5
5874 $as_echo_n "checking for authenticate in -ls... " >&6; }
5875 if test "${ac_cv_lib_s_authenticate+set}" = set; then :
5876 $as_echo_n "(cached) " >&6
5878 ac_check_lib_save_LIBS=$LIBS
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881 /* end confdefs.h. */
5883 /* Override any GCC internal prototype to avoid an error.
5884 Use char because int might match the return type of a GCC
5885 builtin and then its argument prototype would still apply. */
5889 char authenticate ();
5893 return authenticate ();
5898 if ac_fn_c_try_link "$LINENO"; then :
5899 ac_cv_lib_s_authenticate=yes
5901 ac_cv_lib_s_authenticate=no
5903 rm -f core conftest.err conftest.$ac_objext \
5904 conftest$ac_exeext conftest.$ac_ext
5905 LIBS=$ac_check_lib_save_LIBS
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5
5908 $as_echo "$ac_cv_lib_s_authenticate" >&6; }
5909 if test "x$ac_cv_lib_s_authenticate" = x""yes; then :
5910 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
5919 ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h>
5921 if test "x$ac_cv_have_decl_authenticate" = x""yes; then :
5927 cat >>confdefs.h <<_ACEOF
5928 #define HAVE_DECL_AUTHENTICATE $ac_have_decl
5930 ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h>
5932 if test "x$ac_cv_have_decl_loginrestrictions" = x""yes; then :
5938 cat >>confdefs.h <<_ACEOF
5939 #define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl
5941 ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h>
5943 if test "x$ac_cv_have_decl_loginsuccess" = x""yes; then :
5949 cat >>confdefs.h <<_ACEOF
5950 #define HAVE_DECL_LOGINSUCCESS $ac_have_decl
5952 ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h>
5954 if test "x$ac_cv_have_decl_passwdexpired" = x""yes; then :
5960 cat >>confdefs.h <<_ACEOF
5961 #define HAVE_DECL_PASSWDEXPIRED $ac_have_decl
5963 ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h>
5965 if test "x$ac_cv_have_decl_setauthdb" = x""yes; then :
5971 cat >>confdefs.h <<_ACEOF
5972 #define HAVE_DECL_SETAUTHDB $ac_have_decl
5975 ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h>
5978 if test "x$ac_cv_have_decl_loginfailed" = x""yes; then :
5984 cat >>confdefs.h <<_ACEOF
5985 #define HAVE_DECL_LOGINFAILED $ac_have_decl
5987 if test $ac_have_decl = 1; then :
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5
5989 $as_echo_n "checking if loginfailed takes 4 arguments... " >&6; }
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5992 #include <usersec.h>
5996 (void)loginfailed("user","host","tty",0);
6001 if ac_fn_c_try_compile "$LINENO"; then :
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6003 $as_echo "yes" >&6; }
6005 $as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6009 $as_echo "no" >&6; }
6012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6015 for ac_func in getgrset setauthdb
6017 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6018 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6019 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6020 cat >>confdefs.h <<_ACEOF
6021 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6027 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
6031 if test "x$ac_cv_have_decl_F_CLOSEM" = x""yes; then :
6033 $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
6037 check_for_aix_broken_getaddrinfo=1
6039 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
6042 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6045 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6048 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6051 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
6054 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6057 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6060 $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
6063 $as_echo "#define PTY_ZEROREAD 1" >>confdefs.h
6067 check_for_libcrypt_later=1
6068 LIBS="$LIBS /usr/lib/textreadmode.o"
6070 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
6073 $as_echo "#define USE_PIPES 1" >>confdefs.h
6076 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
6079 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
6082 $as_echo "#define NO_IPPORT_RESERVED_CONCEPT 1" >>confdefs.h
6085 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
6088 $as_echo "#define SSH_IOBUFSZ 65536" >>confdefs.h
6093 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
6095 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6097 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6099 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5
6104 $as_echo_n "checking if we have working getaddrinfo... " >&6; }
6105 if test "$cross_compiling" = yes; then :
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5
6107 $as_echo "assume it is working" >&6; }
6109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110 /* end confdefs.h. */
6111 #include <mach-o/dyld.h>
6112 main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
6118 if ac_fn_c_try_run "$LINENO"; then :
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5
6120 $as_echo "working" >&6; }
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
6123 $as_echo "buggy" >&6; }
6125 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
6128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6129 conftest.$ac_objext conftest.beam conftest.$ac_ext
6132 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6134 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6136 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6139 $as_echo "#define BROKEN_GLOB 1" >>confdefs.h
6142 cat >>confdefs.h <<_ACEOF
6143 #define BIND_8_COMPAT 1
6147 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6150 $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
6153 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have the Security Authorization Session API" >&5
6156 $as_echo_n "checking if we have the Security Authorization Session API... " >&6; }
6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6159 #include <Security/AuthSession.h>
6163 SessionCreate(0, 0);
6168 if ac_fn_c_try_compile "$LINENO"; then :
6169 ac_cv_use_security_session_api="yes"
6171 $as_echo "#define USE_SECURITY_SESSION_API 1" >>confdefs.h
6173 LIBS="$LIBS -framework Security"
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6175 $as_echo "yes" >&6; }
6177 ac_cv_use_security_session_api="no"
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6179 $as_echo "no" >&6; }
6181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have an in-memory credentials cache" >&5
6183 $as_echo_n "checking if we have an in-memory credentials cache... " >&6; }
6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h. */
6186 #include <Kerberos/Kerberos.h>
6191 (void) cc_initialize (&c, 0, NULL, NULL);
6196 if ac_fn_c_try_compile "$LINENO"; then :
6198 $as_echo "#define USE_CCAPI 1" >>confdefs.h
6200 LIBS="$LIBS -framework Security"
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6202 $as_echo "yes" >&6; }
6203 if test "x$ac_cv_use_security_session_api" = "xno"; then
6204 as_fn_error $? "*** Need a security framework to use the credentials cache API ***" "$LINENO" 5
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6208 $as_echo "no" >&6; }
6211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6213 ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default"
6214 if test "x$ac_cv_have_decl_AU_IPv4" = x""yes; then :
6218 $as_echo "#define AU_IPv4 0" >>confdefs.h
6220 #include <bsm/audit.h>
6222 $as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h
6229 SSHDLIBS="$SSHDLIBS -lcrypt"
6232 # first we define all of the options common to all HP-UX releases
6233 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
6234 IPADDR_IN_DISPLAY=yes
6235 $as_echo "#define USE_PIPES 1" >>confdefs.h
6238 $as_echo "#define LOGIN_NO_ENDOPT 1" >>confdefs.h
6240 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6243 $as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h
6245 $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h
6247 MAIL="/var/mail/username"
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5
6250 $as_echo_n "checking for t_error in -lxnet... " >&6; }
6251 if test "${ac_cv_lib_xnet_t_error+set}" = set; then :
6252 $as_echo_n "(cached) " >&6
6254 ac_check_lib_save_LIBS=$LIBS
6256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257 /* end confdefs.h. */
6259 /* Override any GCC internal prototype to avoid an error.
6260 Use char because int might match the return type of a GCC
6261 builtin and then its argument prototype would still apply. */
6274 if ac_fn_c_try_link "$LINENO"; then :
6275 ac_cv_lib_xnet_t_error=yes
6277 ac_cv_lib_xnet_t_error=no
6279 rm -f core conftest.err conftest.$ac_objext \
6280 conftest$ac_exeext conftest.$ac_ext
6281 LIBS=$ac_check_lib_save_LIBS
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5
6284 $as_echo "$ac_cv_lib_xnet_t_error" >&6; }
6285 if test "x$ac_cv_lib_xnet_t_error" = x""yes; then :
6286 cat >>confdefs.h <<_ACEOF
6287 #define HAVE_LIBXNET 1
6293 as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5
6297 # next, we define all of the options specific to major releases
6300 if test -z "$GCC"; then
6301 CFLAGS="$CFLAGS -Ae"
6306 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
6309 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
6312 $as_echo "#define USE_BTMP 1" >>confdefs.h
6314 check_for_hpux_broken_getaddrinfo=1
6315 check_for_conflicting_getspnam=1
6319 # lastly, we define options specific to minor releases
6323 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
6325 disable_ptmx_check=yes
6326 LIBS="$LIBS -lsecpw"
6331 PATH="$PATH:/usr/etc"
6333 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
6335 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6337 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6339 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6342 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
6344 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6348 PATH="$PATH:/usr/etc"
6350 $as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h
6353 $as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h
6356 $as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h
6358 ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob"
6359 if test "x$ac_cv_func_jlimit_startjob" = x""yes; then :
6361 $as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h
6365 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
6367 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6369 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6371 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6374 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
6376 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
6378 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6381 *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6382 check_for_libcrypt_later=1
6383 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
6385 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
6387 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6390 $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
6393 $as_echo "#define USE_BTMP 1" >>confdefs.h
6398 check_for_libcrypt_later=1
6399 check_for_openpty_ctty_bug=1
6401 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
6404 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
6406 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6409 $as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h
6412 $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
6414 $as_echo "#define USE_BTMP 1" >>confdefs.h
6416 inet6_default_4in6=yes
6420 $as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h
6424 # tun(4) forwarding compat code
6425 for ac_header in linux/if_tun.h
6427 ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
6428 if test "x$ac_cv_header_linux_if_tun_h" = x""yes; then :
6429 cat >>confdefs.h <<_ACEOF
6430 #define HAVE_LINUX_IF_TUN_H 1
6437 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
6439 $as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h
6442 $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
6445 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6449 $as_echo "#define OOM_ADJUST 1" >>confdefs.h
6452 mips-sony-bsd|mips-sony-newsos4)
6454 $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
6459 check_for_libcrypt_before=1
6460 if test "x$withval" != "xno" ; then
6464 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6466 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
6467 if test "x$ac_cv_header_net_if_tap_h" = x""yes; then :
6471 $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
6477 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6481 check_for_libcrypt_later=1
6483 $as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h
6486 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6488 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
6489 if test "x$ac_cv_header_net_if_tap_h" = x""yes; then :
6493 $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
6499 $as_echo "#define BROKEN_GLOB 1" >>confdefs.h
6503 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6505 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6507 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6511 conf_lastlog_location="/usr/adm/lastlog"
6512 conf_utmp_location=/etc/utmp
6513 conf_wtmp_location=/usr/adm/wtmp
6514 MAIL=/usr/spool/mail
6516 $as_echo "#define HAVE_NEXT 1" >>confdefs.h
6518 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
6520 $as_echo "#define USE_PIPES 1" >>confdefs.h
6523 $as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h
6528 $as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h
6531 $as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h
6534 $as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h
6537 $as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h
6541 if test "x$withval" != "xno" ; then
6544 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
6546 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6549 $as_echo "#define LOGIN_NEEDS_TERM 1" >>confdefs.h
6551 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
6554 $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
6556 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6558 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
6560 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
6563 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
6566 $as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h
6568 external_path_file=/etc/default/login
6569 # hardwire lastlog location (can't detect it on some versions)
6570 conf_lastlog_location="/var/adm/lastlog"
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5
6572 $as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; }
6573 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
6574 if test "$sol2ver" -ge 8; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6576 $as_echo "yes" >&6; }
6577 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
6580 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584 $as_echo "no" >&6; }
6587 # Check whether --with-solaris-contracts was given.
6588 if test "${with_solaris_contracts+set}" = set; then :
6589 withval=$with_solaris_contracts;
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5
6591 $as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; }
6592 if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then :
6593 $as_echo_n "(cached) " >&6
6595 ac_check_lib_save_LIBS=$LIBS
6596 LIBS="-lcontract $LIBS"
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6600 /* Override any GCC internal prototype to avoid an error.
6601 Use char because int might match the return type of a GCC
6602 builtin and then its argument prototype would still apply. */
6606 char ct_tmpl_activate ();
6610 return ct_tmpl_activate ();
6615 if ac_fn_c_try_link "$LINENO"; then :
6616 ac_cv_lib_contract_ct_tmpl_activate=yes
6618 ac_cv_lib_contract_ct_tmpl_activate=no
6620 rm -f core conftest.err conftest.$ac_objext \
6621 conftest$ac_exeext conftest.$ac_ext
6622 LIBS=$ac_check_lib_save_LIBS
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
6625 $as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
6626 if test "x$ac_cv_lib_contract_ct_tmpl_activate" = x""yes; then :
6628 $as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h
6630 SSHDLIBS="$SSHDLIBS -lcontract"
6640 CPPFLAGS="$CPPFLAGS -DSUNOS4"
6641 for ac_func in getpwanam
6643 ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam"
6644 if test "x$ac_cv_func_getpwanam" = x""yes; then :
6645 cat >>confdefs.h <<_ACEOF
6646 #define HAVE_GETPWANAM 1
6652 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
6654 conf_utmp_location=/etc/utmp
6655 conf_wtmp_location=/var/adm/wtmp
6656 conf_lastlog_location=/var/adm/lastlog
6657 $as_echo "#define USE_PIPES 1" >>confdefs.h
6662 $as_echo "#define USE_PIPES 1" >>confdefs.h
6664 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
6666 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6668 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6670 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6674 # /usr/ucblib MUST NOT be searched on ReliantUNIX
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
6676 $as_echo_n "checking for dlsym in -ldl... " >&6; }
6677 if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
6678 $as_echo_n "(cached) " >&6
6680 ac_check_lib_save_LIBS=$LIBS
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6685 /* Override any GCC internal prototype to avoid an error.
6686 Use char because int might match the return type of a GCC
6687 builtin and then its argument prototype would still apply. */
6700 if ac_fn_c_try_link "$LINENO"; then :
6701 ac_cv_lib_dl_dlsym=yes
6703 ac_cv_lib_dl_dlsym=no
6705 rm -f core conftest.err conftest.$ac_objext \
6706 conftest$ac_exeext conftest.$ac_ext
6707 LIBS=$ac_check_lib_save_LIBS
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
6710 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
6711 if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
6712 cat >>confdefs.h <<_ACEOF
6713 #define HAVE_LIBDL 1
6720 # -lresolv needs to be at the end of LIBS or DNS lookups break
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
6722 $as_echo_n "checking for res_query in -lresolv... " >&6; }
6723 if test "${ac_cv_lib_resolv_res_query+set}" = set; then :
6724 $as_echo_n "(cached) " >&6
6726 ac_check_lib_save_LIBS=$LIBS
6727 LIBS="-lresolv $LIBS"
6728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729 /* end confdefs.h. */
6731 /* Override any GCC internal prototype to avoid an error.
6732 Use char because int might match the return type of a GCC
6733 builtin and then its argument prototype would still apply. */
6741 return res_query ();
6746 if ac_fn_c_try_link "$LINENO"; then :
6747 ac_cv_lib_resolv_res_query=yes
6749 ac_cv_lib_resolv_res_query=no
6751 rm -f core conftest.err conftest.$ac_objext \
6752 conftest$ac_exeext conftest.$ac_ext
6753 LIBS=$ac_check_lib_save_LIBS
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5
6756 $as_echo "$ac_cv_lib_resolv_res_query" >&6; }
6757 if test "x$ac_cv_lib_resolv_res_query" = x""yes; then :
6758 LIBS="$LIBS -lresolv"
6761 IPADDR_IN_DISPLAY=yes
6762 $as_echo "#define USE_PIPES 1" >>confdefs.h
6764 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
6766 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6768 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6770 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6772 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
6774 external_path_file=/etc/default/login
6775 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
6776 # Attention: always take care to bind libsocket and libnsl before libc,
6777 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
6779 # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
6781 $as_echo "#define USE_PIPES 1" >>confdefs.h
6783 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6785 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6787 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6790 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
6792 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6795 # UnixWare 7.x, OpenUNIX 8
6798 $as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h
6800 $as_echo "#define USE_PIPES 1" >>confdefs.h
6802 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6804 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6806 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6808 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
6811 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
6812 TEST_SHELL=/u95/bin/sh
6814 $as_echo "#define BROKEN_LIBIAF 1" >>confdefs.h
6816 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5
6819 $as_echo_n "checking for getluid in -lprot... " >&6; }
6820 if test "${ac_cv_lib_prot_getluid+set}" = set; then :
6821 $as_echo_n "(cached) " >&6
6823 ac_check_lib_save_LIBS=$LIBS
6825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h. */
6828 /* Override any GCC internal prototype to avoid an error.
6829 Use char because int might match the return type of a GCC
6830 builtin and then its argument prototype would still apply. */
6843 if ac_fn_c_try_link "$LINENO"; then :
6844 ac_cv_lib_prot_getluid=yes
6846 ac_cv_lib_prot_getluid=no
6848 rm -f core conftest.err conftest.$ac_objext \
6849 conftest$ac_exeext conftest.$ac_ext
6850 LIBS=$ac_check_lib_save_LIBS
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5
6853 $as_echo "$ac_cv_lib_prot_getluid" >&6; }
6854 if test "x$ac_cv_lib_prot_getluid" = x""yes; then :
6856 for ac_func in getluid setluid
6858 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6859 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6860 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6861 cat >>confdefs.h <<_ACEOF
6862 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6868 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
6870 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
6876 *) $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6878 check_for_libcrypt_later=1
6884 # SCO UNIX and OEM versions of SCO UNIX
6886 as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5
6888 # SCO OpenServer 5.x
6890 if test -z "$GCC"; then
6891 CFLAGS="$CFLAGS -belf"
6893 LIBS="$LIBS -lprot -lx -ltinfo -lm"
6895 $as_echo "#define USE_PIPES 1" >>confdefs.h
6897 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
6899 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
6901 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
6903 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6905 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6907 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6909 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
6911 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
6913 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
6915 for ac_func in getluid setluid
6917 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6918 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6919 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6920 cat >>confdefs.h <<_ACEOF
6921 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6932 $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
6934 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6936 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6938 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6940 $as_echo "#define USE_PIPES 1" >>confdefs.h
6942 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
6945 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
6949 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6951 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6953 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6955 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
6957 $as_echo "#define USE_PIPES 1" >>confdefs.h
6959 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
6962 LIBS="$LIBS -lgen -lacid -ldb"
6966 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6968 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6970 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6972 $as_echo "#define USE_PIPES 1" >>confdefs.h
6974 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
6976 $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
6978 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
6979 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5
6984 $as_echo_n "checking for Digital Unix SIA... " >&6; }
6987 # Check whether --with-osfsia was given.
6988 if test "${with_osfsia+set}" = set; then :
6989 withval=$with_osfsia;
6990 if test "x$withval" = "xno" ; then
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6992 $as_echo "disabled" >&6; }
6998 if test -z "$no_osfsia" ; then
6999 if test -f /etc/sia/matrix.conf; then
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7001 $as_echo "yes" >&6; }
7003 $as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h
7006 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
7008 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7010 LIBS="$LIBS -lsecurity -ldb -lm -laud"
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014 $as_echo "no" >&6; }
7016 $as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h
7020 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7022 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7024 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7026 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7029 $as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h
7034 $as_echo "#define USE_PIPES 1" >>confdefs.h
7036 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
7039 $as_echo "#define MISSING_NFDBITS 1" >>confdefs.h
7042 $as_echo "#define MISSING_HOWMANY 1" >>confdefs.h
7045 $as_echo "#define MISSING_FD_MASK 1" >>confdefs.h
7047 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
7049 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7052 $as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h
7054 enable_etc_default_login=no # has incompatible /etc/default/login
7057 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7065 $as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h
7068 $as_echo "#define BROKEN_MMAP 1" >>confdefs.h
7070 $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
7073 $as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h
7078 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
7079 $as_echo "#define MISSING_HOWMANY 1" >>confdefs.h
7082 $as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5
7088 $as_echo_n "checking compiler and flags for sanity... " >&6; }
7089 if test "$cross_compiling" = yes; then :
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5
7091 $as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
7094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095 /* end confdefs.h. */
7098 int main(){exit(0);}
7101 if ac_fn_c_try_run "$LINENO"; then :
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7103 $as_echo "yes" >&6; }
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7107 $as_echo "no" >&6; }
7108 as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5
7111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7112 conftest.$ac_objext conftest.beam conftest.$ac_ext
7116 # Checks for libraries.
7117 ac_fn_c_check_func "$LINENO" "yp_match" "ac_cv_func_yp_match"
7118 if test "x$ac_cv_func_yp_match" = x""yes; then :
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5
7122 $as_echo_n "checking for yp_match in -lnsl... " >&6; }
7123 if test "${ac_cv_lib_nsl_yp_match+set}" = set; then :
7124 $as_echo_n "(cached) " >&6
7126 ac_check_lib_save_LIBS=$LIBS
7128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7129 /* end confdefs.h. */
7131 /* Override any GCC internal prototype to avoid an error.
7132 Use char because int might match the return type of a GCC
7133 builtin and then its argument prototype would still apply. */
7146 if ac_fn_c_try_link "$LINENO"; then :
7147 ac_cv_lib_nsl_yp_match=yes
7149 ac_cv_lib_nsl_yp_match=no
7151 rm -f core conftest.err conftest.$ac_objext \
7152 conftest$ac_exeext conftest.$ac_ext
7153 LIBS=$ac_check_lib_save_LIBS
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5
7156 $as_echo "$ac_cv_lib_nsl_yp_match" >&6; }
7157 if test "x$ac_cv_lib_nsl_yp_match" = x""yes; then :
7158 cat >>confdefs.h <<_ACEOF
7159 #define HAVE_LIBNSL 1
7168 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
7169 if test "x$ac_cv_func_setsockopt" = x""yes; then :
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
7173 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
7174 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then :
7175 $as_echo_n "(cached) " >&6
7177 ac_check_lib_save_LIBS=$LIBS
7178 LIBS="-lsocket $LIBS"
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h. */
7182 /* Override any GCC internal prototype to avoid an error.
7183 Use char because int might match the return type of a GCC
7184 builtin and then its argument prototype would still apply. */
7192 return setsockopt ();
7197 if ac_fn_c_try_link "$LINENO"; then :
7198 ac_cv_lib_socket_setsockopt=yes
7200 ac_cv_lib_socket_setsockopt=no
7202 rm -f core conftest.err conftest.$ac_objext \
7203 conftest$ac_exeext conftest.$ac_ext
7204 LIBS=$ac_check_lib_save_LIBS
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
7207 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
7208 if test "x$ac_cv_lib_socket_setsockopt" = x""yes; then :
7209 cat >>confdefs.h <<_ACEOF
7210 #define HAVE_LIBSOCKET 1
7213 LIBS="-lsocket $LIBS"
7220 for ac_func in dirname
7222 ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
7223 if test "x$ac_cv_func_dirname" = x""yes; then :
7224 cat >>confdefs.h <<_ACEOF
7225 #define HAVE_DIRNAME 1
7227 for ac_header in libgen.h
7229 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
7230 if test "x$ac_cv_header_libgen_h" = x""yes; then :
7231 cat >>confdefs.h <<_ACEOF
7232 #define HAVE_LIBGEN_H 1
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5
7242 $as_echo_n "checking for dirname in -lgen... " >&6; }
7243 if test "${ac_cv_lib_gen_dirname+set}" = set; then :
7244 $as_echo_n "(cached) " >&6
7246 ac_check_lib_save_LIBS=$LIBS
7248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7249 /* end confdefs.h. */
7251 /* Override any GCC internal prototype to avoid an error.
7252 Use char because int might match the return type of a GCC
7253 builtin and then its argument prototype would still apply. */
7266 if ac_fn_c_try_link "$LINENO"; then :
7267 ac_cv_lib_gen_dirname=yes
7269 ac_cv_lib_gen_dirname=no
7271 rm -f core conftest.err conftest.$ac_objext \
7272 conftest$ac_exeext conftest.$ac_ext
7273 LIBS=$ac_check_lib_save_LIBS
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5
7276 $as_echo "$ac_cv_lib_gen_dirname" >&6; }
7277 if test "x$ac_cv_lib_gen_dirname" = x""yes; then :
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5
7280 $as_echo_n "checking for broken dirname... " >&6; }
7281 if test "${ac_cv_have_broken_dirname+set}" = set; then :
7282 $as_echo_n "(cached) " >&6
7287 if test "$cross_compiling" = yes; then :
7288 ac_cv_have_broken_dirname="no"
7290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h. */
7296 int main(int argc, char **argv) {
7299 strncpy(buf,"/etc", 32);
7301 if (!s || strncmp(s, "/", 32) != 0) {
7309 if ac_fn_c_try_run "$LINENO"; then :
7310 ac_cv_have_broken_dirname="no"
7312 ac_cv_have_broken_dirname="yes"
7314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7315 conftest.$ac_objext conftest.beam conftest.$ac_ext
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5
7322 $as_echo "$ac_cv_have_broken_dirname" >&6; }
7323 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
7325 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
7327 for ac_header in libgen.h
7329 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
7330 if test "x$ac_cv_header_libgen_h" = x""yes; then :
7331 cat >>confdefs.h <<_ACEOF
7332 #define HAVE_LIBGEN_H 1
7348 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
7349 if test "x$ac_cv_func_getspnam" = x""yes; then :
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5
7353 $as_echo_n "checking for getspnam in -lgen... " >&6; }
7354 if test "${ac_cv_lib_gen_getspnam+set}" = set; then :
7355 $as_echo_n "(cached) " >&6
7357 ac_check_lib_save_LIBS=$LIBS
7359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360 /* end confdefs.h. */
7362 /* Override any GCC internal prototype to avoid an error.
7363 Use char because int might match the return type of a GCC
7364 builtin and then its argument prototype would still apply. */
7377 if ac_fn_c_try_link "$LINENO"; then :
7378 ac_cv_lib_gen_getspnam=yes
7380 ac_cv_lib_gen_getspnam=no
7382 rm -f core conftest.err conftest.$ac_objext \
7383 conftest$ac_exeext conftest.$ac_ext
7384 LIBS=$ac_check_lib_save_LIBS
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5
7387 $as_echo "$ac_cv_lib_gen_getspnam" >&6; }
7388 if test "x$ac_cv_lib_gen_getspnam" = x""yes; then :
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5
7395 $as_echo_n "checking for library containing basename... " >&6; }
7396 if test "${ac_cv_search_basename+set}" = set; then :
7397 $as_echo_n "(cached) " >&6
7399 ac_func_search_save_LIBS=$LIBS
7400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401 /* end confdefs.h. */
7403 /* Override any GCC internal prototype to avoid an error.
7404 Use char because int might match the return type of a GCC
7405 builtin and then its argument prototype would still apply. */
7418 for ac_lib in '' gen; do
7419 if test -z "$ac_lib"; then
7420 ac_res="none required"
7423 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7425 if ac_fn_c_try_link "$LINENO"; then :
7426 ac_cv_search_basename=$ac_res
7428 rm -f core conftest.err conftest.$ac_objext \
7430 if test "${ac_cv_search_basename+set}" = set; then :
7434 if test "${ac_cv_search_basename+set}" = set; then :
7437 ac_cv_search_basename=no
7440 LIBS=$ac_func_search_save_LIBS
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5
7443 $as_echo "$ac_cv_search_basename" >&6; }
7444 ac_res=$ac_cv_search_basename
7445 if test "$ac_res" != no; then :
7446 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7448 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
7454 # Check whether --with-zlib was given.
7455 if test "${with_zlib+set}" = set; then :
7456 withval=$with_zlib; if test "x$withval" = "xno" ; then
7457 as_fn_error $? "*** zlib is required ***" "$LINENO" 5
7458 elif test "x$withval" != "xyes"; then
7459 if test -d "$withval/lib"; then
7460 if test -n "${need_dash_r}"; then
7461 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
7463 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
7466 if test -n "${need_dash_r}"; then
7467 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
7469 LDFLAGS="-L${withval} ${LDFLAGS}"
7472 if test -d "$withval/include"; then
7473 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
7475 CPPFLAGS="-I${withval} ${CPPFLAGS}"
7482 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7483 if test "x$ac_cv_header_zlib_h" = x""yes; then :
7486 as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
7491 $as_echo_n "checking for deflate in -lz... " >&6; }
7492 if test "${ac_cv_lib_z_deflate+set}" = set; then :
7493 $as_echo_n "(cached) " >&6
7495 ac_check_lib_save_LIBS=$LIBS
7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498 /* end confdefs.h. */
7500 /* Override any GCC internal prototype to avoid an error.
7501 Use char because int might match the return type of a GCC
7502 builtin and then its argument prototype would still apply. */
7515 if ac_fn_c_try_link "$LINENO"; then :
7516 ac_cv_lib_z_deflate=yes
7518 ac_cv_lib_z_deflate=no
7520 rm -f core conftest.err conftest.$ac_objext \
7521 conftest$ac_exeext conftest.$ac_ext
7522 LIBS=$ac_check_lib_save_LIBS
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
7525 $as_echo "$ac_cv_lib_z_deflate" >&6; }
7526 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
7527 cat >>confdefs.h <<_ACEOF
7535 saved_CPPFLAGS="$CPPFLAGS"
7536 saved_LDFLAGS="$LDFLAGS"
7538 if test -n "${need_dash_r}"; then
7539 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
7541 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
7543 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h. */
7548 /* Override any GCC internal prototype to avoid an error.
7549 Use char because int might match the return type of a GCC
7550 builtin and then its argument prototype would still apply. */
7563 if ac_fn_c_try_link "$LINENO"; then :
7564 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
7568 as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5
7572 rm -f core conftest.err conftest.$ac_objext \
7573 conftest$ac_exeext conftest.$ac_ext
7580 # Check whether --with-zlib-version-check was given.
7581 if test "${with_zlib_version_check+set}" = set; then :
7582 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
7583 zlib_check_nonfatal=1
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5
7591 $as_echo_n "checking for possibly buggy zlib... " >&6; }
7592 if test "$cross_compiling" = yes; then :
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5
7594 $as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
7597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7598 /* end confdefs.h. */
7604 int a=0, b=0, c=0, d=0, n, v;
7605 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
7606 if (n != 3 && n != 4)
7608 v = a*1000000 + b*10000 + c*100 + d;
7609 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
7612 if (a == 1 && b == 1 && c >= 4)
7615 /* 1.2.3 and up are OK */
7623 if ac_fn_c_try_run "$LINENO"; then :
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7625 $as_echo "no" >&6; }
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7628 $as_echo "yes" >&6; }
7629 if test -z "$zlib_check_nonfatal" ; then
7630 as_fn_error $? "*** zlib too old - check config.log ***
7631 Your reported zlib version has known security problems. It's possible your
7632 vendor has fixed these problems without changing the version number. If you
7633 are sure this is the case, you can disable the check by running
7634 \"./configure --without-zlib-version-check\".
7635 If you are in doubt, upgrade zlib to version 1.2.3 or greater.
7636 See http://www.gzip.org/zlib/ for details." "$LINENO" 5
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5
7639 $as_echo "$as_me: WARNING: zlib version may have security problems" >&2;}
7643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7644 conftest.$ac_objext conftest.beam conftest.$ac_ext
7648 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
7649 if test "x$ac_cv_func_strcasecmp" = x""yes; then :
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5
7653 $as_echo_n "checking for strcasecmp in -lresolv... " >&6; }
7654 if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then :
7655 $as_echo_n "(cached) " >&6
7657 ac_check_lib_save_LIBS=$LIBS
7658 LIBS="-lresolv $LIBS"
7659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7660 /* end confdefs.h. */
7662 /* Override any GCC internal prototype to avoid an error.
7663 Use char because int might match the return type of a GCC
7664 builtin and then its argument prototype would still apply. */
7672 return strcasecmp ();
7677 if ac_fn_c_try_link "$LINENO"; then :
7678 ac_cv_lib_resolv_strcasecmp=yes
7680 ac_cv_lib_resolv_strcasecmp=no
7682 rm -f core conftest.err conftest.$ac_objext \
7683 conftest$ac_exeext conftest.$ac_ext
7684 LIBS=$ac_check_lib_save_LIBS
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5
7687 $as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; }
7688 if test "x$ac_cv_lib_resolv_strcasecmp" = x""yes; then :
7689 LIBS="$LIBS -lresolv"
7695 for ac_func in utimes
7697 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
7698 if test "x$ac_cv_func_utimes" = x""yes; then :
7699 cat >>confdefs.h <<_ACEOF
7700 #define HAVE_UTIMES 1
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5
7705 $as_echo_n "checking for utimes in -lc89... " >&6; }
7706 if test "${ac_cv_lib_c89_utimes+set}" = set; then :
7707 $as_echo_n "(cached) " >&6
7709 ac_check_lib_save_LIBS=$LIBS
7711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712 /* end confdefs.h. */
7714 /* Override any GCC internal prototype to avoid an error.
7715 Use char because int might match the return type of a GCC
7716 builtin and then its argument prototype would still apply. */
7729 if ac_fn_c_try_link "$LINENO"; then :
7730 ac_cv_lib_c89_utimes=yes
7732 ac_cv_lib_c89_utimes=no
7734 rm -f core conftest.err conftest.$ac_objext \
7735 conftest$ac_exeext conftest.$ac_ext
7736 LIBS=$ac_check_lib_save_LIBS
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5
7739 $as_echo "$ac_cv_lib_c89_utimes" >&6; }
7740 if test "x$ac_cv_lib_c89_utimes" = x""yes; then :
7741 $as_echo "#define HAVE_UTIMES 1" >>confdefs.h
7751 for ac_header in libutil.h
7753 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
7754 if test "x$ac_cv_header_libutil_h" = x""yes; then :
7755 cat >>confdefs.h <<_ACEOF
7756 #define HAVE_LIBUTIL_H 1
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5
7764 $as_echo_n "checking for library containing login... " >&6; }
7765 if test "${ac_cv_search_login+set}" = set; then :
7766 $as_echo_n "(cached) " >&6
7768 ac_func_search_save_LIBS=$LIBS
7769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7770 /* end confdefs.h. */
7772 /* Override any GCC internal prototype to avoid an error.
7773 Use char because int might match the return type of a GCC
7774 builtin and then its argument prototype would still apply. */
7787 for ac_lib in '' util bsd; do
7788 if test -z "$ac_lib"; then
7789 ac_res="none required"
7792 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7794 if ac_fn_c_try_link "$LINENO"; then :
7795 ac_cv_search_login=$ac_res
7797 rm -f core conftest.err conftest.$ac_objext \
7799 if test "${ac_cv_search_login+set}" = set; then :
7803 if test "${ac_cv_search_login+set}" = set; then :
7806 ac_cv_search_login=no
7809 LIBS=$ac_func_search_save_LIBS
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5
7812 $as_echo "$ac_cv_search_login" >&6; }
7813 ac_res=$ac_cv_search_login
7814 if test "$ac_res" != no; then :
7815 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7817 $as_echo "#define HAVE_LOGIN 1" >>confdefs.h
7821 for ac_func in fmt_scaled logout updwtmp logwtmp
7823 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7824 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7825 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7826 cat >>confdefs.h <<_ACEOF
7827 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7834 for ac_func in strftime
7836 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
7837 if test "x$ac_cv_func_strftime" = x""yes; then :
7838 cat >>confdefs.h <<_ACEOF
7839 #define HAVE_STRFTIME 1
7843 # strftime is in -lintl on SCO UNIX.
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
7845 $as_echo_n "checking for strftime in -lintl... " >&6; }
7846 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
7847 $as_echo_n "(cached) " >&6
7849 ac_check_lib_save_LIBS=$LIBS
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */
7854 /* Override any GCC internal prototype to avoid an error.
7855 Use char because int might match the return type of a GCC
7856 builtin and then its argument prototype would still apply. */
7869 if ac_fn_c_try_link "$LINENO"; then :
7870 ac_cv_lib_intl_strftime=yes
7872 ac_cv_lib_intl_strftime=no
7874 rm -f core conftest.err conftest.$ac_objext \
7875 conftest$ac_exeext conftest.$ac_ext
7876 LIBS=$ac_check_lib_save_LIBS
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
7879 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
7880 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
7881 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
7890 # Check for ALTDIRFUNC glob() extension
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5
7892 $as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; }
7893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894 /* end confdefs.h. */
7897 #ifdef GLOB_ALTDIRFUNC
7902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7903 $EGREP "FOUNDIT" >/dev/null 2>&1; then :
7906 $as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7909 $as_echo "yes" >&6; }
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7921 # Check for g.gl_matchc glob() extension
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5
7923 $as_echo_n "checking for gl_matchc field in glob_t... " >&6; }
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7930 glob_t g; g.gl_matchc = 1;
7935 if ac_fn_c_try_compile "$LINENO"; then :
7938 $as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7941 $as_echo "yes" >&6; }
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946 $as_echo "no" >&6; }
7950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7952 ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h>
7954 if test "x$ac_cv_have_decl_GLOB_NOMATCH" = x""yes; then :
7960 cat >>confdefs.h <<_ACEOF
7961 #define HAVE_DECL_GLOB_NOMATCH $ac_have_decl
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5
7966 $as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; }
7967 if test "$cross_compiling" = yes; then :
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
7970 $as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
7971 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977 /* end confdefs.h. */
7979 #include <sys/types.h>
7981 int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
7984 if ac_fn_c_try_run "$LINENO"; then :
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7986 $as_echo "yes" >&6; }
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7990 $as_echo "no" >&6; }
7992 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
7996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7997 conftest.$ac_objext conftest.beam conftest.$ac_ext
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5
8002 $as_echo_n "checking for /proc/pid/fd directory... " >&6; }
8003 if test -d "/proc/$$/fd" ; then
8005 $as_echo "#define HAVE_PROC_PID 1" >>confdefs.h
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8008 $as_echo "yes" >&6; }
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8014 # Check whether user wants S/Key support
8017 # Check whether --with-skey was given.
8018 if test "${with_skey+set}" = set; then :
8020 if test "x$withval" != "xno" ; then
8022 if test "x$withval" != "xyes" ; then
8023 CPPFLAGS="$CPPFLAGS -I${withval}/include"
8024 LDFLAGS="$LDFLAGS -L${withval}/lib"
8028 $as_echo "#define SKEY 1" >>confdefs.h
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for s/key support" >&5
8034 $as_echo_n "checking for s/key support... " >&6; }
8035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h. */
8040 int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
8043 if ac_fn_c_try_link "$LINENO"; then :
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8045 $as_echo "yes" >&6; }
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049 $as_echo "no" >&6; }
8050 as_fn_error $? "** Incomplete or missing s/key libraries." "$LINENO" 5
8053 rm -f core conftest.err conftest.$ac_objext \
8054 conftest$ac_exeext conftest.$ac_ext
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if skeychallenge takes 4 arguments" >&5
8056 $as_echo_n "checking if skeychallenge takes 4 arguments... " >&6; }
8057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8058 /* end confdefs.h. */
8064 (void)skeychallenge(NULL,"name","",0);
8069 if ac_fn_c_try_compile "$LINENO"; then :
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8071 $as_echo "yes" >&6; }
8073 $as_echo "#define SKEYCHALLENGE_4ARG 1" >>confdefs.h
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8077 $as_echo "no" >&6; }
8080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8087 # Check whether user wants TCP wrappers support
8090 # Check whether --with-tcp-wrappers was given.
8091 if test "${with_tcp_wrappers+set}" = set; then :
8092 withval=$with_tcp_wrappers;
8093 if test "x$withval" != "xno" ; then
8095 saved_LDFLAGS="$LDFLAGS"
8096 saved_CPPFLAGS="$CPPFLAGS"
8097 if test -n "${withval}" && \
8098 test "x${withval}" != "xyes"; then
8099 if test -d "${withval}/lib"; then
8100 if test -n "${need_dash_r}"; then
8101 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8103 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8106 if test -n "${need_dash_r}"; then
8107 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8109 LDFLAGS="-L${withval} ${LDFLAGS}"
8112 if test -d "${withval}/include"; then
8113 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8115 CPPFLAGS="-I${withval} ${CPPFLAGS}"
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
8120 $as_echo_n "checking for libwrap... " >&6; }
8121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8122 /* end confdefs.h. */
8124 #include <sys/types.h>
8125 #include <sys/socket.h>
8126 #include <netinet/in.h>
8128 int deny_severity = 0, allow_severity = 0;
8138 if ac_fn_c_try_link "$LINENO"; then :
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8141 $as_echo "yes" >&6; }
8143 $as_echo "#define LIBWRAP 1" >>confdefs.h
8145 SSHDLIBS="$SSHDLIBS -lwrap"
8150 as_fn_error $? "*** libwrap missing" "$LINENO" 5
8154 rm -f core conftest.err conftest.$ac_objext \
8155 conftest$ac_exeext conftest.$ac_ext
8163 # Check whether user wants libedit support
8166 # Check whether --with-libedit was given.
8167 if test "${with_libedit+set}" = set; then :
8168 withval=$with_libedit; if test "x$withval" != "xno" ; then
8169 if test "x$withval" != "xyes"; then
8170 CPPFLAGS="$CPPFLAGS -I${withval}/include"
8171 if test -n "${need_dash_r}"; then
8172 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8174 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5
8178 $as_echo_n "checking for el_init in -ledit... " >&6; }
8179 if test "${ac_cv_lib_edit_el_init+set}" = set; then :
8180 $as_echo_n "(cached) " >&6
8182 ac_check_lib_save_LIBS=$LIBS
8183 LIBS="-ledit -lcurses
8185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8186 /* end confdefs.h. */
8188 /* Override any GCC internal prototype to avoid an error.
8189 Use char because int might match the return type of a GCC
8190 builtin and then its argument prototype would still apply. */
8203 if ac_fn_c_try_link "$LINENO"; then :
8204 ac_cv_lib_edit_el_init=yes
8206 ac_cv_lib_edit_el_init=no
8208 rm -f core conftest.err conftest.$ac_objext \
8209 conftest$ac_exeext conftest.$ac_ext
8210 LIBS=$ac_check_lib_save_LIBS
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5
8213 $as_echo "$ac_cv_lib_edit_el_init" >&6; }
8214 if test "x$ac_cv_lib_edit_el_init" = x""yes; then :
8216 $as_echo "#define USE_LIBEDIT 1" >>confdefs.h
8218 LIBEDIT="-ledit -lcurses"
8223 as_fn_error $? "libedit not found" "$LINENO" 5
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5
8227 $as_echo_n "checking if libedit version is compatible... " >&6; }
8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h. */
8231 #include <histedit.h>
8235 el_init("", NULL, NULL, NULL);
8240 if ac_fn_c_try_compile "$LINENO"; then :
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8242 $as_echo "yes" >&6; }
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8245 $as_echo "no" >&6; }
8246 as_fn_error $? "libedit version is not compatible" "$LINENO" 5
8249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8257 # Check whether --with-audit was given.
8258 if test "${with_audit+set}" = set; then :
8259 withval=$with_audit;
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5
8261 $as_echo_n "checking for supported audit module... " >&6; }
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5
8265 $as_echo "bsm" >&6; }
8267 for ac_header in bsm/audit.h
8269 ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" "
8276 if test "x$ac_cv_header_bsm_audit_h" = x""yes; then :
8277 cat >>confdefs.h <<_ACEOF
8278 #define HAVE_BSM_AUDIT_H 1
8282 as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5
8288 $as_echo_n "checking for getaudit in -lbsm... " >&6; }
8289 if test "${ac_cv_lib_bsm_getaudit+set}" = set; then :
8290 $as_echo_n "(cached) " >&6
8292 ac_check_lib_save_LIBS=$LIBS
8294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8295 /* end confdefs.h. */
8297 /* Override any GCC internal prototype to avoid an error.
8298 Use char because int might match the return type of a GCC
8299 builtin and then its argument prototype would still apply. */
8312 if ac_fn_c_try_link "$LINENO"; then :
8313 ac_cv_lib_bsm_getaudit=yes
8315 ac_cv_lib_bsm_getaudit=no
8317 rm -f core conftest.err conftest.$ac_objext \
8318 conftest$ac_exeext conftest.$ac_ext
8319 LIBS=$ac_check_lib_save_LIBS
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5
8322 $as_echo "$ac_cv_lib_bsm_getaudit" >&6; }
8323 if test "x$ac_cv_lib_bsm_getaudit" = x""yes; then :
8324 cat >>confdefs.h <<_ACEOF
8325 #define HAVE_LIBBSM 1
8331 as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5
8334 for ac_func in getaudit
8336 ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit"
8337 if test "x$ac_cv_func_getaudit" = x""yes; then :
8338 cat >>confdefs.h <<_ACEOF
8339 #define HAVE_GETAUDIT 1
8343 as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5
8347 # These are optional
8348 for ac_func in getaudit_addr aug_get_machine
8350 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8351 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8352 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8353 cat >>confdefs.h <<_ACEOF
8354 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8361 $as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
8367 $as_echo "debug" >&6; }
8369 $as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8374 $as_echo "no" >&6; }
8377 as_fn_error $? "Unknown audit module $withval" "$LINENO" 5
8387 arc4random_uniform \
8476 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8477 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8478 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8479 cat >>confdefs.h <<_ACEOF
8480 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8487 # IRIX has a const char return value for gai_strerror()
8488 for ac_func in gai_strerror
8490 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
8491 if test "x$ac_cv_func_gai_strerror" = x""yes; then :
8492 cat >>confdefs.h <<_ACEOF
8493 #define HAVE_GAI_STRERROR 1
8496 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
8498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499 /* end confdefs.h. */
8501 #include <sys/types.h>
8502 #include <sys/socket.h>
8505 const char *gai_strerror(int);
8512 str = gai_strerror(0);
8517 if ac_fn_c_try_compile "$LINENO"; then :
8520 $as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h
8523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
8529 $as_echo_n "checking for library containing nanosleep... " >&6; }
8530 if test "${ac_cv_search_nanosleep+set}" = set; then :
8531 $as_echo_n "(cached) " >&6
8533 ac_func_search_save_LIBS=$LIBS
8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8535 /* end confdefs.h. */
8537 /* Override any GCC internal prototype to avoid an error.
8538 Use char because int might match the return type of a GCC
8539 builtin and then its argument prototype would still apply. */
8547 return nanosleep ();
8552 for ac_lib in '' rt posix4; do
8553 if test -z "$ac_lib"; then
8554 ac_res="none required"
8557 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8559 if ac_fn_c_try_link "$LINENO"; then :
8560 ac_cv_search_nanosleep=$ac_res
8562 rm -f core conftest.err conftest.$ac_objext \
8564 if test "${ac_cv_search_nanosleep+set}" = set; then :
8568 if test "${ac_cv_search_nanosleep+set}" = set; then :
8571 ac_cv_search_nanosleep=no
8574 LIBS=$ac_func_search_save_LIBS
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
8577 $as_echo "$ac_cv_search_nanosleep" >&6; }
8578 ac_res=$ac_cv_search_nanosleep
8579 if test "$ac_res" != no; then :
8580 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8582 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
8587 ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default"
8588 if test "x$ac_cv_have_decl_getrusage" = x""yes; then :
8589 for ac_func in getrusage
8591 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
8592 if test "x$ac_cv_func_getrusage" = x""yes; then :
8593 cat >>confdefs.h <<_ACEOF
8594 #define HAVE_GETRUSAGE 1
8602 ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "
8603 #ifdef HAVE_STRING_H
8604 # include <string.h>
8608 if test "x$ac_cv_have_decl_strsep" = x""yes; then :
8609 for ac_func in strsep
8611 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
8612 if test "x$ac_cv_func_strsep" = x""yes; then :
8613 cat >>confdefs.h <<_ACEOF
8614 #define HAVE_STRSEP 1
8623 ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h>
8626 if test "x$ac_cv_have_decl_tcsendbreak" = x""yes; then :
8627 $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h
8630 for ac_func in tcsendbreak
8632 ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak"
8633 if test "x$ac_cv_func_tcsendbreak" = x""yes; then :
8634 cat >>confdefs.h <<_ACEOF
8635 #define HAVE_TCSENDBREAK 1
8644 ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h>
8646 if test "x$ac_cv_have_decl_h_errno" = x""yes; then :
8652 cat >>confdefs.h <<_ACEOF
8653 #define HAVE_DECL_H_ERRNO $ac_have_decl
8657 ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" "
8658 #include <sys/types.h>
8659 #include <sys/socket.h>
8662 if test "x$ac_cv_have_decl_SHUT_RD" = x""yes; then :
8668 cat >>confdefs.h <<_ACEOF
8669 #define HAVE_DECL_SHUT_RD $ac_have_decl
8673 ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "
8674 #include <sys/types.h>
8675 #ifdef HAVE_SYS_STAT_H
8676 # include <sys/stat.h>
8683 if test "x$ac_cv_have_decl_O_NONBLOCK" = x""yes; then :
8689 cat >>confdefs.h <<_ACEOF
8690 #define HAVE_DECL_O_NONBLOCK $ac_have_decl
8694 ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" "
8695 #include <sys/types.h>
8696 #include <sys/uio.h>
8700 if test "x$ac_cv_have_decl_writev" = x""yes; then :
8706 cat >>confdefs.h <<_ACEOF
8707 #define HAVE_DECL_WRITEV $ac_have_decl
8711 ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" "
8712 #include <sys/param.h>
8715 if test "x$ac_cv_have_decl_MAXSYMLINKS" = x""yes; then :
8721 cat >>confdefs.h <<_ACEOF
8722 #define HAVE_DECL_MAXSYMLINKS $ac_have_decl
8726 ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" "
8730 if test "x$ac_cv_have_decl_offsetof" = x""yes; then :
8736 cat >>confdefs.h <<_ACEOF
8737 #define HAVE_DECL_OFFSETOF $ac_have_decl
8741 for ac_func in setresuid
8743 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
8744 if test "x$ac_cv_func_setresuid" = x""yes; then :
8745 cat >>confdefs.h <<_ACEOF
8746 #define HAVE_SETRESUID 1
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5
8750 $as_echo_n "checking if setresuid seems to work... " >&6; }
8751 if test "$cross_compiling" = yes; then :
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
8753 $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
8756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8757 /* end confdefs.h. */
8761 int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
8764 if ac_fn_c_try_run "$LINENO"; then :
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8766 $as_echo "yes" >&6; }
8769 $as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
8772 $as_echo "not implemented" >&6; }
8774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8775 conftest.$ac_objext conftest.beam conftest.$ac_ext
8783 for ac_func in setresgid
8785 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
8786 if test "x$ac_cv_func_setresgid" = x""yes; then :
8787 cat >>confdefs.h <<_ACEOF
8788 #define HAVE_SETRESGID 1
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5
8792 $as_echo_n "checking if setresgid seems to work... " >&6; }
8793 if test "$cross_compiling" = yes; then :
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
8795 $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
8798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8799 /* end confdefs.h. */
8803 int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
8806 if ac_fn_c_try_run "$LINENO"; then :
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8808 $as_echo "yes" >&6; }
8811 $as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
8814 $as_echo "not implemented" >&6; }
8816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8817 conftest.$ac_objext conftest.beam conftest.$ac_ext
8825 for ac_func in gettimeofday time
8827 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8828 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8829 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8830 cat >>confdefs.h <<_ACEOF
8831 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8837 for ac_func in endutent getutent getutid getutline pututline setutent
8839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8840 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8841 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8842 cat >>confdefs.h <<_ACEOF
8843 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8849 for ac_func in utmpname
8851 ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname"
8852 if test "x$ac_cv_func_utmpname" = x""yes; then :
8853 cat >>confdefs.h <<_ACEOF
8854 #define HAVE_UTMPNAME 1
8860 for ac_func in endutxent getutxent getutxid getutxline pututxline
8862 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8863 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8864 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8865 cat >>confdefs.h <<_ACEOF
8866 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8872 for ac_func in setutxent utmpxname
8874 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8875 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8876 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8877 cat >>confdefs.h <<_ACEOF
8878 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8884 for ac_func in getlastlogxbyname
8886 ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname"
8887 if test "x$ac_cv_func_getlastlogxbyname" = x""yes; then :
8888 cat >>confdefs.h <<_ACEOF
8889 #define HAVE_GETLASTLOGXBYNAME 1
8896 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
8897 if test "x$ac_cv_func_daemon" = x""yes; then :
8899 $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5
8903 $as_echo_n "checking for daemon in -lbsd... " >&6; }
8904 if test "${ac_cv_lib_bsd_daemon+set}" = set; then :
8905 $as_echo_n "(cached) " >&6
8907 ac_check_lib_save_LIBS=$LIBS
8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8912 /* Override any GCC internal prototype to avoid an error.
8913 Use char because int might match the return type of a GCC
8914 builtin and then its argument prototype would still apply. */
8927 if ac_fn_c_try_link "$LINENO"; then :
8928 ac_cv_lib_bsd_daemon=yes
8930 ac_cv_lib_bsd_daemon=no
8932 rm -f core conftest.err conftest.$ac_objext \
8933 conftest$ac_exeext conftest.$ac_ext
8934 LIBS=$ac_check_lib_save_LIBS
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5
8937 $as_echo "$ac_cv_lib_bsd_daemon" >&6; }
8938 if test "x$ac_cv_lib_bsd_daemon" = x""yes; then :
8939 LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
8947 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8948 if test "x$ac_cv_func_getpagesize" = x""yes; then :
8950 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5
8954 $as_echo_n "checking for getpagesize in -lucb... " >&6; }
8955 if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then :
8956 $as_echo_n "(cached) " >&6
8958 ac_check_lib_save_LIBS=$LIBS
8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h. */
8963 /* Override any GCC internal prototype to avoid an error.
8964 Use char because int might match the return type of a GCC
8965 builtin and then its argument prototype would still apply. */
8969 char getpagesize ();
8973 return getpagesize ();
8978 if ac_fn_c_try_link "$LINENO"; then :
8979 ac_cv_lib_ucb_getpagesize=yes
8981 ac_cv_lib_ucb_getpagesize=no
8983 rm -f core conftest.err conftest.$ac_objext \
8984 conftest$ac_exeext conftest.$ac_ext
8985 LIBS=$ac_check_lib_save_LIBS
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5
8988 $as_echo "$ac_cv_lib_ucb_getpagesize" >&6; }
8989 if test "x$ac_cv_lib_ucb_getpagesize" = x""yes; then :
8990 LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
8998 # Check for broken snprintf
8999 if test "x$ac_cv_func_snprintf" = "xyes" ; then
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5
9001 $as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; }
9002 if test "$cross_compiling" = yes; then :
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
9004 $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008 /* end confdefs.h. */
9011 int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
9014 if ac_fn_c_try_run "$LINENO"; then :
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9016 $as_echo "yes" >&6; }
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9020 $as_echo "no" >&6; }
9022 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
9025 $as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
9028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9029 conftest.$ac_objext conftest.beam conftest.$ac_ext
9034 # If we don't have a working asprintf, then we strongly depend on vsnprintf
9035 # returning the right thing on overflow: the number of characters it tried to
9036 # create (as per SUSv3)
9037 if test "x$ac_cv_func_asprintf" != "xyes" && \
9038 test "x$ac_cv_func_vsnprintf" = "xyes" ; then
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5
9040 $as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; }
9041 if test "$cross_compiling" = yes; then :
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5
9043 $as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h. */
9049 #include <sys/types.h>
9053 int x_snprintf(char *str,size_t count,const char *fmt,...)
9055 size_t ret; va_list ap;
9056 va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap);
9062 exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1);
9065 if ac_fn_c_try_run "$LINENO"; then :
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9067 $as_echo "yes" >&6; }
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9071 $as_echo "no" >&6; }
9073 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
9076 $as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
9079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9080 conftest.$ac_objext conftest.beam conftest.$ac_ext
9085 # On systems where [v]snprintf is broken, but is declared in stdio,
9086 # check that the fmt argument is const char * or just char *.
9087 # This is only useful for when BROKEN_SNPRINTF
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5
9089 $as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; }
9090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9091 /* end confdefs.h. */
9093 int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
9094 int main(void) { snprintf(0, 0, 0); }
9097 if ac_fn_c_try_compile "$LINENO"; then :
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9099 $as_echo "yes" >&6; }
9101 $as_echo "#define SNPRINTF_CONST const" >>confdefs.h
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9105 $as_echo "no" >&6; }
9106 $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h
9109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9111 # Check for missing getpeereid (or equiv) support
9113 if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5
9115 $as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; }
9116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h. */
9118 #include <sys/types.h>
9119 #include <sys/socket.h>
9123 int i = SO_PEERCRED;
9128 if ac_fn_c_try_compile "$LINENO"; then :
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9130 $as_echo "yes" >&6; }
9132 $as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9137 $as_echo "no" >&6; }
9141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9144 if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5
9146 $as_echo_n "checking for (overly) strict mkstemp... " >&6; }
9147 if test "$cross_compiling" = yes; then :
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9150 $as_echo "yes" >&6; }
9151 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
9156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157 /* end confdefs.h. */
9160 main() { char template[]="conftest.mkstemp-test";
9161 if (mkstemp(template) == -1)
9163 unlink(template); exit(0);
9167 if ac_fn_c_try_run "$LINENO"; then :
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9170 $as_echo "no" >&6; }
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9175 $as_echo "yes" >&6; }
9177 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
9181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9182 conftest.$ac_objext conftest.beam conftest.$ac_ext
9187 if test ! -z "$check_for_openpty_ctty_bug"; then
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5
9189 $as_echo_n "checking if openpty correctly handles controlling tty... " >&6; }
9190 if test "$cross_compiling" = yes; then :
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
9193 $as_echo "cross-compiling" >&6; }
9197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9198 /* end confdefs.h. */
9201 #include <sys/fcntl.h>
9202 #include <sys/types.h>
9203 #include <sys/wait.h>
9209 int fd, ptyfd, ttyfd, status;
9212 if (pid < 0) { /* failed */
9214 } else if (pid > 0) { /* parent */
9215 waitpid(pid, &status, 0);
9216 if (WIFEXITED(status))
9217 exit(WEXITSTATUS(status));
9220 } else { /* child */
9221 close(0); close(1); close(2);
9223 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
9224 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
9226 exit(3); /* Acquired ctty: broken */
9228 exit(0); /* Did not acquire ctty: OK */
9233 if ac_fn_c_try_run "$LINENO"; then :
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9236 $as_echo "yes" >&6; }
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9241 $as_echo "no" >&6; }
9242 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
9246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9247 conftest.$ac_objext conftest.beam conftest.$ac_ext
9252 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
9253 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
9255 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
9256 if test "$cross_compiling" = yes; then :
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
9259 $as_echo "cross-compiling" >&6; }
9263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h. */
9267 #include <sys/socket.h>
9270 #include <netinet/in.h>
9272 #define TEST_PORT "2222"
9278 struct addrinfo *gai_ai, *ai, hints;
9279 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
9281 memset(&hints, 0, sizeof(hints));
9282 hints.ai_family = PF_UNSPEC;
9283 hints.ai_socktype = SOCK_STREAM;
9284 hints.ai_flags = AI_PASSIVE;
9286 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
9288 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
9292 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
9293 if (ai->ai_family != AF_INET6)
9296 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
9297 sizeof(ntop), strport, sizeof(strport),
9298 NI_NUMERICHOST|NI_NUMERICSERV);
9301 if (err == EAI_SYSTEM)
9302 perror("getnameinfo EAI_SYSTEM");
9304 fprintf(stderr, "getnameinfo failed: %s\n",
9309 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
9312 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
9321 if ac_fn_c_try_run "$LINENO"; then :
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9324 $as_echo "yes" >&6; }
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9329 $as_echo "no" >&6; }
9330 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
9334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9335 conftest.$ac_objext conftest.beam conftest.$ac_ext
9340 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
9341 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
9343 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
9344 if test "$cross_compiling" = yes; then :
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
9347 $as_echo "cross-compiling" >&6; }
9351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h. */
9355 #include <sys/socket.h>
9358 #include <netinet/in.h>
9360 #define TEST_PORT "2222"
9366 struct addrinfo *gai_ai, *ai, hints;
9367 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
9369 memset(&hints, 0, sizeof(hints));
9370 hints.ai_family = PF_UNSPEC;
9371 hints.ai_socktype = SOCK_STREAM;
9372 hints.ai_flags = AI_PASSIVE;
9374 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
9376 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
9380 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
9381 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
9384 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
9385 sizeof(ntop), strport, sizeof(strport),
9386 NI_NUMERICHOST|NI_NUMERICSERV);
9388 if (ai->ai_family == AF_INET && err != 0) {
9389 perror("getnameinfo");
9397 if ac_fn_c_try_run "$LINENO"; then :
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9400 $as_echo "yes" >&6; }
9402 $as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9408 $as_echo "no" >&6; }
9409 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
9413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9414 conftest.$ac_objext conftest.beam conftest.$ac_ext
9419 if test "x$check_for_conflicting_getspnam" = "x1"; then
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5
9421 $as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; }
9422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9423 /* end confdefs.h. */
9426 int main(void) {exit(0);}
9429 if ac_fn_c_try_compile "$LINENO"; then :
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9432 $as_echo "no" >&6; }
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9437 $as_echo "yes" >&6; }
9439 $as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h
9444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
9448 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
9449 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
9450 $as_echo_n "(cached) " >&6
9452 # Use it with a single arg.
9453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9454 /* end confdefs.h. */
9455 $ac_includes_default
9464 if ac_fn_c_try_compile "$LINENO"; then :
9465 ac_cv_func_getpgrp_void=no
9467 ac_cv_func_getpgrp_void=yes
9469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
9473 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
9474 if test $ac_cv_func_getpgrp_void = yes; then
9476 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
9481 # Search for OpenSSL
9482 saved_CPPFLAGS="$CPPFLAGS"
9483 saved_LDFLAGS="$LDFLAGS"
9485 # Check whether --with-ssl-dir was given.
9486 if test "${with_ssl_dir+set}" = set; then :
9487 withval=$with_ssl_dir;
9488 if test "x$withval" != "xno" ; then
9491 ./*|../*) withval="`pwd`/$withval"
9493 if test -d "$withval/lib"; then
9494 if test -n "${need_dash_r}"; then
9495 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
9497 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
9500 if test -n "${need_dash_r}"; then
9501 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
9503 LDFLAGS="-L${withval} ${LDFLAGS}"
9506 if test -d "$withval/include"; then
9507 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
9509 CPPFLAGS="-I${withval} ${CPPFLAGS}"
9516 LIBS="/usr/lib/libcrypto.a -ldl $LIBS"
9517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518 /* end confdefs.h. */
9520 /* Override any GCC internal prototype to avoid an error.
9521 Use char because int might match the return type of a GCC
9522 builtin and then its argument prototype would still apply. */
9535 if ac_fn_c_try_link "$LINENO"; then :
9537 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
9541 if test -n "${need_dash_r}"; then
9542 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
9544 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
9546 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
9547 ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
9548 if test "x$ac_cv_header_openssl_opensslv_h" = x""yes; then :
9551 as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5
9555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9556 /* end confdefs.h. */
9558 /* Override any GCC internal prototype to avoid an error.
9559 Use char because int might match the return type of a GCC
9560 builtin and then its argument prototype would still apply. */
9573 if ac_fn_c_try_link "$LINENO"; then :
9574 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
9578 as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5
9582 rm -f core conftest.err conftest.$ac_objext \
9583 conftest$ac_exeext conftest.$ac_ext
9587 rm -f core conftest.err conftest.$ac_objext \
9588 conftest$ac_exeext conftest.$ac_ext
9590 # Determine OpenSSL header version
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5
9592 $as_echo_n "checking OpenSSL header version... " >&6; }
9593 if test "$cross_compiling" = yes; then :
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
9596 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
9600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601 /* end confdefs.h. */
9605 #include <openssl/opensslv.h>
9606 #define DATA "conftest.sslincver"
9611 fd = fopen(DATA,"w");
9615 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
9622 if ac_fn_c_try_run "$LINENO"; then :
9624 ssl_header_ver=`cat conftest.sslincver`
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5
9626 $as_echo "$ssl_header_ver" >&6; }
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9631 $as_echo "not found" >&6; }
9632 as_fn_error $? "OpenSSL version header not found." "$LINENO" 5
9635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9636 conftest.$ac_objext conftest.beam conftest.$ac_ext
9640 # Determine OpenSSL library version
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5
9642 $as_echo_n "checking OpenSSL library version... " >&6; }
9643 if test "$cross_compiling" = yes; then :
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
9646 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
9650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9651 /* end confdefs.h. */
9655 #include <openssl/opensslv.h>
9656 #include <openssl/crypto.h>
9657 #define DATA "conftest.ssllibver"
9662 fd = fopen(DATA,"w");
9666 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
9673 if ac_fn_c_try_run "$LINENO"; then :
9675 ssl_library_ver=`cat conftest.ssllibver`
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5
9677 $as_echo "$ssl_library_ver" >&6; }
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9682 $as_echo "not found" >&6; }
9683 as_fn_error $? "OpenSSL library not found." "$LINENO" 5
9686 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9687 conftest.$ac_objext conftest.beam conftest.$ac_ext
9692 # Check whether --with-openssl-header-check was given.
9693 if test "${with_openssl_header_check+set}" = set; then :
9694 withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then
9695 openssl_check_nonfatal=1
9702 # Sanity check OpenSSL headers
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5
9704 $as_echo_n "checking whether OpenSSL's headers match the library... " >&6; }
9705 if test "$cross_compiling" = yes; then :
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
9708 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
9712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9713 /* end confdefs.h. */
9716 #include <openssl/opensslv.h>
9717 int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
9720 if ac_fn_c_try_run "$LINENO"; then :
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9723 $as_echo "yes" >&6; }
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9728 $as_echo "no" >&6; }
9729 if test "x$openssl_check_nonfatal" = "x"; then
9730 as_fn_error $? "Your OpenSSL headers do not match your
9731 library. Check config.log for details.
9732 If you are sure your installation is consistent, you can disable the check
9733 by running \"./configure --without-openssl-header-check\".
9734 Also see contrib/findssl.sh for help identifying header/library mismatches.
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your
9738 library. Check config.log for details.
9739 Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
9740 $as_echo "$as_me: WARNING: Your OpenSSL headers do not match your
9741 library. Check config.log for details.
9742 Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
9746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9747 conftest.$ac_objext conftest.beam conftest.$ac_ext
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5
9752 $as_echo_n "checking if programs using OpenSSL functions will link... " >&6; }
9753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754 /* end confdefs.h. */
9756 #include <openssl/evp.h>
9757 int main(void) { SSLeay_add_all_algorithms(); }
9760 if ac_fn_c_try_link "$LINENO"; then :
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9763 $as_echo "yes" >&6; }
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9768 $as_echo "no" >&6; }
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5
9772 $as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; }
9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h. */
9776 #include <openssl/evp.h>
9777 int main(void) { SSLeay_add_all_algorithms(); }
9780 if ac_fn_c_try_link "$LINENO"; then :
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9783 $as_echo "yes" >&6; }
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9788 $as_echo "no" >&6; }
9793 rm -f core conftest.err conftest.$ac_objext \
9794 conftest$ac_exeext conftest.$ac_ext
9798 rm -f core conftest.err conftest.$ac_objext \
9799 conftest$ac_exeext conftest.$ac_ext
9802 # Check whether --with-ssl-engine was given.
9803 if test "${with_ssl_engine+set}" = set; then :
9804 withval=$with_ssl_engine; if test "x$withval" != "xno" ; then
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5
9806 $as_echo_n "checking for OpenSSL ENGINE support... " >&6; }
9807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9808 /* end confdefs.h. */
9809 #include <openssl/engine.h>
9814 ENGINE_load_builtin_engines();ENGINE_register_all_complete();
9820 if ac_fn_c_try_compile "$LINENO"; then :
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9822 $as_echo "yes" >&6; }
9824 $as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h
9828 as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5
9831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9837 # Check for OpenSSL without EVP_aes_{192,256}_cbc
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5
9839 $as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; }
9840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9841 /* end confdefs.h. */
9844 #include <openssl/evp.h>
9845 int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);}
9848 if ac_fn_c_try_link "$LINENO"; then :
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9851 $as_echo "no" >&6; }
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9856 $as_echo "yes" >&6; }
9858 $as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h
9863 rm -f core conftest.err conftest.$ac_objext \
9864 conftest$ac_exeext conftest.$ac_ext
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5
9867 $as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; }
9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869 /* end confdefs.h. */
9872 #include <openssl/evp.h>
9873 int main(void) { if(EVP_DigestUpdate(NULL, NULL,0)) exit(0); }
9876 if ac_fn_c_try_link "$LINENO"; then :
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9879 $as_echo "yes" >&6; }
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9884 $as_echo "no" >&6; }
9886 $as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h
9891 rm -f core conftest.err conftest.$ac_objext \
9892 conftest$ac_exeext conftest.$ac_ext
9894 # Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
9895 # because the system crypt() is more featureful.
9896 if test "x$check_for_libcrypt_before" = "x1"; then
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
9898 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
9899 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
9900 $as_echo_n "(cached) " >&6
9902 ac_check_lib_save_LIBS=$LIBS
9903 LIBS="-lcrypt $LIBS"
9904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9905 /* end confdefs.h. */
9907 /* Override any GCC internal prototype to avoid an error.
9908 Use char because int might match the return type of a GCC
9909 builtin and then its argument prototype would still apply. */
9922 if ac_fn_c_try_link "$LINENO"; then :
9923 ac_cv_lib_crypt_crypt=yes
9925 ac_cv_lib_crypt_crypt=no
9927 rm -f core conftest.err conftest.$ac_objext \
9928 conftest$ac_exeext conftest.$ac_ext
9929 LIBS=$ac_check_lib_save_LIBS
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
9932 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
9933 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
9934 cat >>confdefs.h <<_ACEOF
9935 #define HAVE_LIBCRYPT 1
9938 LIBS="-lcrypt $LIBS"
9944 # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
9945 # version in OpenSSL.
9946 if test "x$check_for_libcrypt_later" = "x1"; then
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
9948 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
9949 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
9950 $as_echo_n "(cached) " >&6
9952 ac_check_lib_save_LIBS=$LIBS
9953 LIBS="-lcrypt $LIBS"
9954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955 /* end confdefs.h. */
9957 /* Override any GCC internal prototype to avoid an error.
9958 Use char because int might match the return type of a GCC
9959 builtin and then its argument prototype would still apply. */
9972 if ac_fn_c_try_link "$LINENO"; then :
9973 ac_cv_lib_crypt_crypt=yes
9975 ac_cv_lib_crypt_crypt=no
9977 rm -f core conftest.err conftest.$ac_objext \
9978 conftest$ac_exeext conftest.$ac_ext
9979 LIBS=$ac_check_lib_save_LIBS
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
9982 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
9983 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
9984 LIBS="$LIBS -lcrypt"
9989 # Search for SHA256 support in libc and/or OpenSSL
9990 for ac_func in SHA256_Update EVP_sha256
9992 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9993 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9994 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9995 cat >>confdefs.h <<_ACEOF
9996 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5
10005 $as_echo_n "checking for ia_openinfo in -liaf... " >&6; }
10006 if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then :
10007 $as_echo_n "(cached) " >&6
10009 ac_check_lib_save_LIBS=$LIBS
10011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10012 /* end confdefs.h. */
10014 /* Override any GCC internal prototype to avoid an error.
10015 Use char because int might match the return type of a GCC
10016 builtin and then its argument prototype would still apply. */
10020 char ia_openinfo ();
10024 return ia_openinfo ();
10029 if ac_fn_c_try_link "$LINENO"; then :
10030 ac_cv_lib_iaf_ia_openinfo=yes
10032 ac_cv_lib_iaf_ia_openinfo=no
10034 rm -f core conftest.err conftest.$ac_objext \
10035 conftest$ac_exeext conftest.$ac_ext
10036 LIBS=$ac_check_lib_save_LIBS
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5
10039 $as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; }
10040 if test "x$ac_cv_lib_iaf_ia_openinfo" = x""yes; then :
10043 for ac_func in set_id
10045 ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id"
10046 if test "x$ac_cv_func_set_id" = x""yes; then :
10047 cat >>confdefs.h <<_ACEOF
10048 #define HAVE_SET_ID 1
10050 SSHDLIBS="$SSHDLIBS -liaf"
10052 $as_echo "#define HAVE_LIBIAF 1" >>confdefs.h
10063 ### Configure cryptographic random number support
10065 # Check wheter OpenSSL seeds itself
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5
10067 $as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; }
10068 if test "$cross_compiling" = yes; then :
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
10071 $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
10072 # This is safe, since all recent OpenSSL versions will
10073 # complain at runtime if not seeded correctly.
10074 OPENSSL_SEEDS_ITSELF=yes
10078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079 /* end confdefs.h. */
10081 #include <string.h>
10082 #include <openssl/rand.h>
10083 int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
10086 if ac_fn_c_try_run "$LINENO"; then :
10088 OPENSSL_SEEDS_ITSELF=yes
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10090 $as_echo "yes" >&6; }
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10095 $as_echo "no" >&6; }
10096 # Default to use of the rand helper if OpenSSL doesn't
10098 USE_RAND_HELPER=yes
10101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10102 conftest.$ac_objext conftest.beam conftest.$ac_ext
10106 # Check for PAM libs
10109 # Check whether --with-pam was given.
10110 if test "${with_pam+set}" = set; then :
10112 if test "x$withval" != "xno" ; then
10113 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
10114 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
10115 as_fn_error $? "PAM headers not found" "$LINENO" 5
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10120 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10121 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10122 $as_echo_n "(cached) " >&6
10124 ac_check_lib_save_LIBS=$LIBS
10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10129 /* Override any GCC internal prototype to avoid an error.
10130 Use char because int might match the return type of a GCC
10131 builtin and then its argument prototype would still apply. */
10144 if ac_fn_c_try_link "$LINENO"; then :
10145 ac_cv_lib_dl_dlopen=yes
10147 ac_cv_lib_dl_dlopen=no
10149 rm -f core conftest.err conftest.$ac_objext \
10150 conftest$ac_exeext conftest.$ac_ext
10151 LIBS=$ac_check_lib_save_LIBS
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10154 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10155 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10156 cat >>confdefs.h <<_ACEOF
10157 #define HAVE_LIBDL 1
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
10165 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
10166 if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then :
10167 $as_echo_n "(cached) " >&6
10169 ac_check_lib_save_LIBS=$LIBS
10171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10172 /* end confdefs.h. */
10174 /* Override any GCC internal prototype to avoid an error.
10175 Use char because int might match the return type of a GCC
10176 builtin and then its argument prototype would still apply. */
10180 char pam_set_item ();
10184 return pam_set_item ();
10189 if ac_fn_c_try_link "$LINENO"; then :
10190 ac_cv_lib_pam_pam_set_item=yes
10192 ac_cv_lib_pam_pam_set_item=no
10194 rm -f core conftest.err conftest.$ac_objext \
10195 conftest$ac_exeext conftest.$ac_ext
10196 LIBS=$ac_check_lib_save_LIBS
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
10199 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
10200 if test "x$ac_cv_lib_pam_pam_set_item" = x""yes; then :
10201 cat >>confdefs.h <<_ACEOF
10202 #define HAVE_LIBPAM 1
10208 as_fn_error $? "*** libpam missing" "$LINENO" 5
10211 for ac_func in pam_getenvlist
10213 ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
10214 if test "x$ac_cv_func_pam_getenvlist" = x""yes; then :
10215 cat >>confdefs.h <<_ACEOF
10216 #define HAVE_PAM_GETENVLIST 1
10222 for ac_func in pam_putenv
10224 ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv"
10225 if test "x$ac_cv_func_pam_putenv" = x""yes; then :
10226 cat >>confdefs.h <<_ACEOF
10227 #define HAVE_PAM_PUTENV 1
10237 SSHDLIBS="$SSHDLIBS -lpam"
10239 $as_echo "#define USE_PAM 1" >>confdefs.h
10242 if test $ac_cv_lib_dl_dlopen = yes; then
10245 # libdl already in LIBS
10248 SSHDLIBS="$SSHDLIBS -ldl"
10258 # Check for older PAM
10259 if test "x$PAM_MSG" = "xyes" ; then
10260 # Check PAM strerror arguments (old PAM)
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5
10262 $as_echo_n "checking whether pam_strerror takes only one argument... " >&6; }
10263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10264 /* end confdefs.h. */
10266 #include <stdlib.h>
10267 #if defined(HAVE_SECURITY_PAM_APPL_H)
10268 #include <security/pam_appl.h>
10269 #elif defined (HAVE_PAM_PAM_APPL_H)
10270 #include <pam/pam_appl.h>
10276 (void)pam_strerror((pam_handle_t *)NULL, -1);
10281 if ac_fn_c_try_compile "$LINENO"; then :
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10283 $as_echo "no" >&6; }
10287 $as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10290 $as_echo "yes" >&6; }
10291 PAM_MSG="yes (old library)"
10295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10298 # Do we want to force the use of the rand helper?
10300 # Check whether --with-rand-helper was given.
10301 if test "${with_rand_helper+set}" = set; then :
10302 withval=$with_rand_helper;
10303 if test "x$withval" = "xno" ; then
10304 # Force use of OpenSSL's internal RNG, even if
10305 # the previous test showed it to be unseeded.
10306 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
10308 $as_echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
10309 OPENSSL_SEEDS_ITSELF=yes
10313 USE_RAND_HELPER=yes
10319 # Which randomness source do we use?
10320 if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then
10323 $as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h
10325 RAND_MSG="OpenSSL internal ONLY"
10326 INSTALL_SSH_RAND_HELPER=""
10327 elif test ! -z "$USE_RAND_HELPER" ; then
10328 # install rand helper
10329 RAND_MSG="ssh-rand-helper"
10330 INSTALL_SSH_RAND_HELPER="yes"
10334 ### Configuration of ssh-rand-helper
10338 # Check whether --with-prngd-port was given.
10339 if test "${with_prngd_port+set}" = set; then :
10340 withval=$with_prngd_port;
10348 as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5
10351 if test ! -z "$withval" ; then
10352 PRNGD_PORT="$withval"
10354 cat >>confdefs.h <<_ACEOF
10355 #define PRNGD_PORT $PRNGD_PORT
10364 # PRNGD Unix domain socket
10366 # Check whether --with-prngd-socket was given.
10367 if test "${with_prngd_socket+set}" = set; then :
10368 withval=$with_prngd_socket;
10371 withval="/var/run/egd-pool"
10379 as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5
10383 if test ! -z "$withval" ; then
10384 if test ! -z "$PRNGD_PORT" ; then
10385 as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5
10387 if test ! -r "$withval" ; then
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5
10389 $as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
10391 PRNGD_SOCKET="$withval"
10393 cat >>confdefs.h <<_ACEOF
10394 #define PRNGD_SOCKET "$PRNGD_SOCKET"
10401 # Check for existing socket only if we don't have a random device already
10402 if test "$USE_RAND_HELPER" = yes ; then
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5
10404 $as_echo_n "checking for PRNGD/EGD socket... " >&6; }
10405 # Insert other locations here
10406 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
10407 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
10408 PRNGD_SOCKET="$sock"
10409 cat >>confdefs.h <<_ACEOF
10410 #define PRNGD_SOCKET "$PRNGD_SOCKET"
10416 if test ! -z "$PRNGD_SOCKET" ; then
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5
10418 $as_echo "$PRNGD_SOCKET" >&6; }
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10421 $as_echo "not found" >&6; }
10429 # Change default command timeout for hashing entropy source
10430 entropy_timeout=200
10432 # Check whether --with-entropy-timeout was given.
10433 if test "${with_entropy_timeout+set}" = set; then :
10434 withval=$with_entropy_timeout;
10435 if test -n "$withval" && test "x$withval" != "xno" && \
10436 test "x${withval}" != "xyes"; then
10437 entropy_timeout=$withval
10444 cat >>confdefs.h <<_ACEOF
10445 #define ENTROPY_TIMEOUT_MSEC $entropy_timeout
10449 SSH_PRIVSEP_USER=sshd
10451 # Check whether --with-privsep-user was given.
10452 if test "${with_privsep_user+set}" = set; then :
10453 withval=$with_privsep_user;
10454 if test -n "$withval" && test "x$withval" != "xno" && \
10455 test "x${withval}" != "xyes"; then
10456 SSH_PRIVSEP_USER=$withval
10463 cat >>confdefs.h <<_ACEOF
10464 #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
10469 # We do this little dance with the search path to insure
10470 # that programs that we select for use by installed programs
10471 # (which may be run by the super-user) come from trusted
10472 # locations before they come from the user's private area.
10473 # This should help avoid accidentally configuring some
10474 # random version of a program in someone's personal bin.
10478 test -h /bin 2> /dev/null && PATH=/usr/bin
10479 test -d /sbin && PATH=$PATH:/sbin
10480 test -d /usr/sbin && PATH=$PATH:/usr/sbin
10481 PATH=$PATH:/etc:$OPATH
10483 # These programs are used by the command hashing source to gather entropy
10485 # Extract the first word of "ls", so it can be a program name with args.
10486 set dummy ls; ac_word=$2
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10488 $as_echo_n "checking for $ac_word... " >&6; }
10489 if test "${ac_cv_path_PROG_LS+set}" = set; then :
10490 $as_echo_n "(cached) " >&6
10494 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
10497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10498 for as_dir in $PATH
10501 test -z "$as_dir" && as_dir=.
10502 for ac_exec_ext in '' $ac_executable_extensions; do
10503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10504 ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
10505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10515 PROG_LS=$ac_cv_path_PROG_LS
10516 if test -n "$PROG_LS"; then
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_LS" >&5
10518 $as_echo "$PROG_LS" >&6; }
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10521 $as_echo "no" >&6; }
10525 if test -z "$PROG_LS" ; then
10531 # Extract the first word of "netstat", so it can be a program name with args.
10532 set dummy netstat; ac_word=$2
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10534 $as_echo_n "checking for $ac_word... " >&6; }
10535 if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then :
10536 $as_echo_n "(cached) " >&6
10538 case $PROG_NETSTAT in
10540 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
10543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544 for as_dir in $PATH
10547 test -z "$as_dir" && as_dir=.
10548 for ac_exec_ext in '' $ac_executable_extensions; do
10549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10550 ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
10551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10561 PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
10562 if test -n "$PROG_NETSTAT"; then
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_NETSTAT" >&5
10564 $as_echo "$PROG_NETSTAT" >&6; }
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10567 $as_echo "no" >&6; }
10571 if test -z "$PROG_NETSTAT" ; then
10572 PROG_NETSTAT="undef"
10577 # Extract the first word of "arp", so it can be a program name with args.
10578 set dummy arp; ac_word=$2
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10580 $as_echo_n "checking for $ac_word... " >&6; }
10581 if test "${ac_cv_path_PROG_ARP+set}" = set; then :
10582 $as_echo_n "(cached) " >&6
10586 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
10589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10590 for as_dir in $PATH
10593 test -z "$as_dir" && as_dir=.
10594 for ac_exec_ext in '' $ac_executable_extensions; do
10595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10596 ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
10597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10607 PROG_ARP=$ac_cv_path_PROG_ARP
10608 if test -n "$PROG_ARP"; then
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_ARP" >&5
10610 $as_echo "$PROG_ARP" >&6; }
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10613 $as_echo "no" >&6; }
10617 if test -z "$PROG_ARP" ; then
10623 # Extract the first word of "ifconfig", so it can be a program name with args.
10624 set dummy ifconfig; ac_word=$2
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10626 $as_echo_n "checking for $ac_word... " >&6; }
10627 if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then :
10628 $as_echo_n "(cached) " >&6
10630 case $PROG_IFCONFIG in
10632 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
10635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10636 for as_dir in $PATH
10639 test -z "$as_dir" && as_dir=.
10640 for ac_exec_ext in '' $ac_executable_extensions; do
10641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10642 ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
10643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10653 PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
10654 if test -n "$PROG_IFCONFIG"; then
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_IFCONFIG" >&5
10656 $as_echo "$PROG_IFCONFIG" >&6; }
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10659 $as_echo "no" >&6; }
10663 if test -z "$PROG_IFCONFIG" ; then
10664 PROG_IFCONFIG="undef"
10669 # Extract the first word of "jstat", so it can be a program name with args.
10670 set dummy jstat; ac_word=$2
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10672 $as_echo_n "checking for $ac_word... " >&6; }
10673 if test "${ac_cv_path_PROG_JSTAT+set}" = set; then :
10674 $as_echo_n "(cached) " >&6
10676 case $PROG_JSTAT in
10678 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
10681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10682 for as_dir in $PATH
10685 test -z "$as_dir" && as_dir=.
10686 for ac_exec_ext in '' $ac_executable_extensions; do
10687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10688 ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
10689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10699 PROG_JSTAT=$ac_cv_path_PROG_JSTAT
10700 if test -n "$PROG_JSTAT"; then
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_JSTAT" >&5
10702 $as_echo "$PROG_JSTAT" >&6; }
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10705 $as_echo "no" >&6; }
10709 if test -z "$PROG_JSTAT" ; then
10715 # Extract the first word of "ps", so it can be a program name with args.
10716 set dummy ps; ac_word=$2
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10718 $as_echo_n "checking for $ac_word... " >&6; }
10719 if test "${ac_cv_path_PROG_PS+set}" = set; then :
10720 $as_echo_n "(cached) " >&6
10724 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
10727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10728 for as_dir in $PATH
10731 test -z "$as_dir" && as_dir=.
10732 for ac_exec_ext in '' $ac_executable_extensions; do
10733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10734 ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
10735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10745 PROG_PS=$ac_cv_path_PROG_PS
10746 if test -n "$PROG_PS"; then
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_PS" >&5
10748 $as_echo "$PROG_PS" >&6; }
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10751 $as_echo "no" >&6; }
10755 if test -z "$PROG_PS" ; then
10761 # Extract the first word of "sar", so it can be a program name with args.
10762 set dummy sar; ac_word=$2
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10764 $as_echo_n "checking for $ac_word... " >&6; }
10765 if test "${ac_cv_path_PROG_SAR+set}" = set; then :
10766 $as_echo_n "(cached) " >&6
10770 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
10773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10774 for as_dir in $PATH
10777 test -z "$as_dir" && as_dir=.
10778 for ac_exec_ext in '' $ac_executable_extensions; do
10779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10780 ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
10781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10791 PROG_SAR=$ac_cv_path_PROG_SAR
10792 if test -n "$PROG_SAR"; then
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_SAR" >&5
10794 $as_echo "$PROG_SAR" >&6; }
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10797 $as_echo "no" >&6; }
10801 if test -z "$PROG_SAR" ; then
10807 # Extract the first word of "w", so it can be a program name with args.
10808 set dummy w; ac_word=$2
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10810 $as_echo_n "checking for $ac_word... " >&6; }
10811 if test "${ac_cv_path_PROG_W+set}" = set; then :
10812 $as_echo_n "(cached) " >&6
10816 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
10819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10820 for as_dir in $PATH
10823 test -z "$as_dir" && as_dir=.
10824 for ac_exec_ext in '' $ac_executable_extensions; do
10825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10826 ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
10827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10837 PROG_W=$ac_cv_path_PROG_W
10838 if test -n "$PROG_W"; then
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_W" >&5
10840 $as_echo "$PROG_W" >&6; }
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10843 $as_echo "no" >&6; }
10847 if test -z "$PROG_W" ; then
10853 # Extract the first word of "who", so it can be a program name with args.
10854 set dummy who; ac_word=$2
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10856 $as_echo_n "checking for $ac_word... " >&6; }
10857 if test "${ac_cv_path_PROG_WHO+set}" = set; then :
10858 $as_echo_n "(cached) " >&6
10862 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
10865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10866 for as_dir in $PATH
10869 test -z "$as_dir" && as_dir=.
10870 for ac_exec_ext in '' $ac_executable_extensions; do
10871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10872 ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
10873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10883 PROG_WHO=$ac_cv_path_PROG_WHO
10884 if test -n "$PROG_WHO"; then
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_WHO" >&5
10886 $as_echo "$PROG_WHO" >&6; }
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10889 $as_echo "no" >&6; }
10893 if test -z "$PROG_WHO" ; then
10899 # Extract the first word of "last", so it can be a program name with args.
10900 set dummy last; ac_word=$2
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10902 $as_echo_n "checking for $ac_word... " >&6; }
10903 if test "${ac_cv_path_PROG_LAST+set}" = set; then :
10904 $as_echo_n "(cached) " >&6
10908 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
10911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10912 for as_dir in $PATH
10915 test -z "$as_dir" && as_dir=.
10916 for ac_exec_ext in '' $ac_executable_extensions; do
10917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10918 ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
10919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10929 PROG_LAST=$ac_cv_path_PROG_LAST
10930 if test -n "$PROG_LAST"; then
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_LAST" >&5
10932 $as_echo "$PROG_LAST" >&6; }
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10935 $as_echo "no" >&6; }
10939 if test -z "$PROG_LAST" ; then
10945 # Extract the first word of "lastlog", so it can be a program name with args.
10946 set dummy lastlog; ac_word=$2
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10948 $as_echo_n "checking for $ac_word... " >&6; }
10949 if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then :
10950 $as_echo_n "(cached) " >&6
10952 case $PROG_LASTLOG in
10954 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
10957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10958 for as_dir in $PATH
10961 test -z "$as_dir" && as_dir=.
10962 for ac_exec_ext in '' $ac_executable_extensions; do
10963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10964 ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
10965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10975 PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
10976 if test -n "$PROG_LASTLOG"; then
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_LASTLOG" >&5
10978 $as_echo "$PROG_LASTLOG" >&6; }
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10981 $as_echo "no" >&6; }
10985 if test -z "$PROG_LASTLOG" ; then
10986 PROG_LASTLOG="undef"
10991 # Extract the first word of "df", so it can be a program name with args.
10992 set dummy df; ac_word=$2
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10994 $as_echo_n "checking for $ac_word... " >&6; }
10995 if test "${ac_cv_path_PROG_DF+set}" = set; then :
10996 $as_echo_n "(cached) " >&6
11000 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
11003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11004 for as_dir in $PATH
11007 test -z "$as_dir" && as_dir=.
11008 for ac_exec_ext in '' $ac_executable_extensions; do
11009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11010 ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
11011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11021 PROG_DF=$ac_cv_path_PROG_DF
11022 if test -n "$PROG_DF"; then
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_DF" >&5
11024 $as_echo "$PROG_DF" >&6; }
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11027 $as_echo "no" >&6; }
11031 if test -z "$PROG_DF" ; then
11037 # Extract the first word of "vmstat", so it can be a program name with args.
11038 set dummy vmstat; ac_word=$2
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11040 $as_echo_n "checking for $ac_word... " >&6; }
11041 if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then :
11042 $as_echo_n "(cached) " >&6
11044 case $PROG_VMSTAT in
11046 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
11049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11050 for as_dir in $PATH
11053 test -z "$as_dir" && as_dir=.
11054 for ac_exec_ext in '' $ac_executable_extensions; do
11055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11056 ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
11057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11067 PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
11068 if test -n "$PROG_VMSTAT"; then
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_VMSTAT" >&5
11070 $as_echo "$PROG_VMSTAT" >&6; }
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11073 $as_echo "no" >&6; }
11077 if test -z "$PROG_VMSTAT" ; then
11078 PROG_VMSTAT="undef"
11083 # Extract the first word of "uptime", so it can be a program name with args.
11084 set dummy uptime; ac_word=$2
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11086 $as_echo_n "checking for $ac_word... " >&6; }
11087 if test "${ac_cv_path_PROG_UPTIME+set}" = set; then :
11088 $as_echo_n "(cached) " >&6
11090 case $PROG_UPTIME in
11092 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
11095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11096 for as_dir in $PATH
11099 test -z "$as_dir" && as_dir=.
11100 for ac_exec_ext in '' $ac_executable_extensions; do
11101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11102 ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
11103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11113 PROG_UPTIME=$ac_cv_path_PROG_UPTIME
11114 if test -n "$PROG_UPTIME"; then
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_UPTIME" >&5
11116 $as_echo "$PROG_UPTIME" >&6; }
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11119 $as_echo "no" >&6; }
11123 if test -z "$PROG_UPTIME" ; then
11124 PROG_UPTIME="undef"
11129 # Extract the first word of "ipcs", so it can be a program name with args.
11130 set dummy ipcs; ac_word=$2
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11132 $as_echo_n "checking for $ac_word... " >&6; }
11133 if test "${ac_cv_path_PROG_IPCS+set}" = set; then :
11134 $as_echo_n "(cached) " >&6
11138 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
11141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11142 for as_dir in $PATH
11145 test -z "$as_dir" && as_dir=.
11146 for ac_exec_ext in '' $ac_executable_extensions; do
11147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11148 ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
11149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11159 PROG_IPCS=$ac_cv_path_PROG_IPCS
11160 if test -n "$PROG_IPCS"; then
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_IPCS" >&5
11162 $as_echo "$PROG_IPCS" >&6; }
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11165 $as_echo "no" >&6; }
11169 if test -z "$PROG_IPCS" ; then
11175 # Extract the first word of "tail", so it can be a program name with args.
11176 set dummy tail; ac_word=$2
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11178 $as_echo_n "checking for $ac_word... " >&6; }
11179 if test "${ac_cv_path_PROG_TAIL+set}" = set; then :
11180 $as_echo_n "(cached) " >&6
11184 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
11187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188 for as_dir in $PATH
11191 test -z "$as_dir" && as_dir=.
11192 for ac_exec_ext in '' $ac_executable_extensions; do
11193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11194 ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
11195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11205 PROG_TAIL=$ac_cv_path_PROG_TAIL
11206 if test -n "$PROG_TAIL"; then
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_TAIL" >&5
11208 $as_echo "$PROG_TAIL" >&6; }
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11211 $as_echo "no" >&6; }
11215 if test -z "$PROG_TAIL" ; then
11223 # Where does ssh-rand-helper get its randomness from?
11224 INSTALL_SSH_PRNG_CMDS=""
11225 if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
11226 if test ! -z "$PRNGD_PORT" ; then
11227 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
11228 elif test ! -z "$PRNGD_SOCKET" ; then
11229 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
11231 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
11232 RAND_HELPER_CMDHASH=yes
11233 INSTALL_SSH_PRNG_CMDS="yes"
11239 # Cheap hack to ensure NEWS-OS libraries are arranged right.
11240 if test ! -z "$SONY" ; then
11241 LIBS="$LIBS -liberty";
11244 # Check for long long datatypes
11245 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
11246 if test "x$ac_cv_type_long_long" = x""yes; then :
11248 cat >>confdefs.h <<_ACEOF
11249 #define HAVE_LONG_LONG 1
11254 ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
11255 if test "x$ac_cv_type_unsigned_long_long" = x""yes; then :
11257 cat >>confdefs.h <<_ACEOF
11258 #define HAVE_UNSIGNED_LONG_LONG 1
11263 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
11264 if test "x$ac_cv_type_long_double" = x""yes; then :
11266 cat >>confdefs.h <<_ACEOF
11267 #define HAVE_LONG_DOUBLE 1
11274 # Check datatype sizes
11275 # The cast to long int works around a bug in the HP C Compiler
11276 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11277 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11278 # This bug is HP SR number 8606223364.
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
11280 $as_echo_n "checking size of char... " >&6; }
11281 if test "${ac_cv_sizeof_char+set}" = set; then :
11282 $as_echo_n "(cached) " >&6
11284 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
11287 if test "$ac_cv_type_char" = yes; then
11288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11290 as_fn_error 77 "cannot compute sizeof (char)
11291 See \`config.log' for more details" "$LINENO" 5 ; }
11293 ac_cv_sizeof_char=0
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
11299 $as_echo "$ac_cv_sizeof_char" >&6; }
11303 cat >>confdefs.h <<_ACEOF
11304 #define SIZEOF_CHAR $ac_cv_sizeof_char
11308 # The cast to long int works around a bug in the HP C Compiler
11309 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11310 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11311 # This bug is HP SR number 8606223364.
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
11313 $as_echo_n "checking size of short int... " >&6; }
11314 if test "${ac_cv_sizeof_short_int+set}" = set; then :
11315 $as_echo_n "(cached) " >&6
11317 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
11320 if test "$ac_cv_type_short_int" = yes; then
11321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11323 as_fn_error 77 "cannot compute sizeof (short int)
11324 See \`config.log' for more details" "$LINENO" 5 ; }
11326 ac_cv_sizeof_short_int=0
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
11332 $as_echo "$ac_cv_sizeof_short_int" >&6; }
11336 cat >>confdefs.h <<_ACEOF
11337 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
11341 # The cast to long int works around a bug in the HP C Compiler
11342 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11343 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11344 # This bug is HP SR number 8606223364.
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
11346 $as_echo_n "checking size of int... " >&6; }
11347 if test "${ac_cv_sizeof_int+set}" = set; then :
11348 $as_echo_n "(cached) " >&6
11350 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
11353 if test "$ac_cv_type_int" = yes; then
11354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11356 as_fn_error 77 "cannot compute sizeof (int)
11357 See \`config.log' for more details" "$LINENO" 5 ; }
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
11365 $as_echo "$ac_cv_sizeof_int" >&6; }
11369 cat >>confdefs.h <<_ACEOF
11370 #define SIZEOF_INT $ac_cv_sizeof_int
11374 # The cast to long int works around a bug in the HP C Compiler
11375 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11376 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11377 # This bug is HP SR number 8606223364.
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
11379 $as_echo_n "checking size of long int... " >&6; }
11380 if test "${ac_cv_sizeof_long_int+set}" = set; then :
11381 $as_echo_n "(cached) " >&6
11383 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
11386 if test "$ac_cv_type_long_int" = yes; then
11387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11389 as_fn_error 77 "cannot compute sizeof (long int)
11390 See \`config.log' for more details" "$LINENO" 5 ; }
11392 ac_cv_sizeof_long_int=0
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
11398 $as_echo "$ac_cv_sizeof_long_int" >&6; }
11402 cat >>confdefs.h <<_ACEOF
11403 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
11407 # The cast to long int works around a bug in the HP C Compiler
11408 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11409 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11410 # This bug is HP SR number 8606223364.
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
11412 $as_echo_n "checking size of long long int... " >&6; }
11413 if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
11414 $as_echo_n "(cached) " >&6
11416 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
11419 if test "$ac_cv_type_long_long_int" = yes; then
11420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11422 as_fn_error 77 "cannot compute sizeof (long long int)
11423 See \`config.log' for more details" "$LINENO" 5 ; }
11425 ac_cv_sizeof_long_long_int=0
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
11431 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
11435 cat >>confdefs.h <<_ACEOF
11436 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
11441 # Sanity check long long for some platforms (AIX)
11442 if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
11443 ac_cv_sizeof_long_long_int=0
11446 # compute LLONG_MIN and LLONG_MAX if we don't know them.
11447 if test -z "$have_llong_max"; then
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5
11449 $as_echo_n "checking for max value of long long... " >&6; }
11450 if test "$cross_compiling" = yes; then :
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
11453 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
11457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11458 /* end confdefs.h. */
11461 /* Why is this so damn hard? */
11465 #define __USE_ISOC99
11466 #include <limits.h>
11467 #define DATA "conftest.llminmax"
11468 #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
11471 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
11472 * we do this the hard way.
11475 fprint_ll(FILE *f, long long n)
11478 int l[sizeof(long long) * 8];
11481 if (fprintf(f, "-") < 0)
11483 for (i = 0; n != 0; i++) {
11484 l[i] = my_abs(n % 10);
11488 if (fprintf(f, "%d", l[--i]) < 0)
11491 if (fprintf(f, " ") < 0)
11498 long long i, llmin, llmax = 0;
11500 if((f = fopen(DATA,"w")) == NULL)
11503 #if defined(LLONG_MIN) && defined(LLONG_MAX)
11504 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
11508 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
11509 /* This will work on one's complement and two's complement */
11510 for (i = 1; i > llmax; i <<= 1, i++)
11512 llmin = llmax + 1LL; /* wrap */
11516 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
11517 || llmax - 1 > llmax || llmin == llmax || llmin == 0
11518 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
11519 fprintf(f, "unknown unknown\n");
11523 if (fprint_ll(f, llmin) < 0)
11525 if (fprint_ll(f, llmax) < 0)
11533 if ac_fn_c_try_run "$LINENO"; then :
11535 llong_min=`$AWK '{print $1}' conftest.llminmax`
11536 llong_max=`$AWK '{print $2}' conftest.llminmax`
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5
11539 $as_echo "$llong_max" >&6; }
11541 cat >>confdefs.h <<_ACEOF
11542 #define LLONG_MAX ${llong_max}LL
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5
11546 $as_echo_n "checking for min value of long long... " >&6; }
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5
11548 $as_echo "$llong_min" >&6; }
11550 cat >>confdefs.h <<_ACEOF
11551 #define LLONG_MIN ${llong_min}LL
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11558 $as_echo "not found" >&6; }
11561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11562 conftest.$ac_objext conftest.beam conftest.$ac_ext
11568 # More checks for data types
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
11570 $as_echo_n "checking for u_int type... " >&6; }
11571 if test "${ac_cv_have_u_int+set}" = set; then :
11572 $as_echo_n "(cached) " >&6
11575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576 /* end confdefs.h. */
11577 #include <sys/types.h>
11586 if ac_fn_c_try_compile "$LINENO"; then :
11587 ac_cv_have_u_int="yes"
11589 ac_cv_have_u_int="no"
11592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
11596 $as_echo "$ac_cv_have_u_int" >&6; }
11597 if test "x$ac_cv_have_u_int" = "xyes" ; then
11599 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
11605 $as_echo_n "checking for intXX_t types... " >&6; }
11606 if test "${ac_cv_have_intxx_t+set}" = set; then :
11607 $as_echo_n "(cached) " >&6
11610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11611 /* end confdefs.h. */
11612 #include <sys/types.h>
11616 int8_t a; int16_t b; int32_t c; a = b = c = 1;
11621 if ac_fn_c_try_compile "$LINENO"; then :
11622 ac_cv_have_intxx_t="yes"
11624 ac_cv_have_intxx_t="no"
11627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
11631 $as_echo "$ac_cv_have_intxx_t" >&6; }
11632 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
11634 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
11639 if (test -z "$have_intxx_t" && \
11640 test "x$ac_cv_header_stdint_h" = "xyes")
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5
11643 $as_echo_n "checking for intXX_t types in stdint.h... " >&6; }
11644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11645 /* end confdefs.h. */
11646 #include <stdint.h>
11650 int8_t a; int16_t b; int32_t c; a = b = c = 1;
11655 if ac_fn_c_try_compile "$LINENO"; then :
11657 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11660 $as_echo "yes" >&6; }
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11664 $as_echo "no" >&6; }
11667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
11671 $as_echo_n "checking for int64_t type... " >&6; }
11672 if test "${ac_cv_have_int64_t+set}" = set; then :
11673 $as_echo_n "(cached) " >&6
11676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11677 /* end confdefs.h. */
11679 #include <sys/types.h>
11680 #ifdef HAVE_STDINT_H
11681 # include <stdint.h>
11683 #include <sys/socket.h>
11684 #ifdef HAVE_SYS_BITYPES_H
11685 # include <sys/bitypes.h>
11696 if ac_fn_c_try_compile "$LINENO"; then :
11697 ac_cv_have_int64_t="yes"
11699 ac_cv_have_int64_t="no"
11702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
11706 $as_echo "$ac_cv_have_int64_t" >&6; }
11707 if test "x$ac_cv_have_int64_t" = "xyes" ; then
11709 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
11714 $as_echo_n "checking for u_intXX_t types... " >&6; }
11715 if test "${ac_cv_have_u_intxx_t+set}" = set; then :
11716 $as_echo_n "(cached) " >&6
11719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11720 /* end confdefs.h. */
11721 #include <sys/types.h>
11725 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11730 if ac_fn_c_try_compile "$LINENO"; then :
11731 ac_cv_have_u_intxx_t="yes"
11733 ac_cv_have_u_intxx_t="no"
11736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
11740 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
11741 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
11743 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
11748 if test -z "$have_u_intxx_t" ; then
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5
11750 $as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; }
11751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11752 /* end confdefs.h. */
11753 #include <sys/socket.h>
11757 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11762 if ac_fn_c_try_compile "$LINENO"; then :
11764 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11767 $as_echo "yes" >&6; }
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11771 $as_echo "no" >&6; }
11774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
11778 $as_echo_n "checking for u_int64_t types... " >&6; }
11779 if test "${ac_cv_have_u_int64_t+set}" = set; then :
11780 $as_echo_n "(cached) " >&6
11783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11784 /* end confdefs.h. */
11785 #include <sys/types.h>
11789 u_int64_t a; a = 1;
11794 if ac_fn_c_try_compile "$LINENO"; then :
11795 ac_cv_have_u_int64_t="yes"
11797 ac_cv_have_u_int64_t="no"
11800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
11804 $as_echo "$ac_cv_have_u_int64_t" >&6; }
11805 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
11807 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
11812 if test -z "$have_u_int64_t" ; then
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5
11814 $as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; }
11815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816 /* end confdefs.h. */
11817 #include <sys/bitypes.h>
11826 if ac_fn_c_try_compile "$LINENO"; then :
11828 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11831 $as_echo "yes" >&6; }
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11835 $as_echo "no" >&6; }
11838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11841 if test -z "$have_u_intxx_t" ; then
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
11843 $as_echo_n "checking for uintXX_t types... " >&6; }
11844 if test "${ac_cv_have_uintxx_t+set}" = set; then :
11845 $as_echo_n "(cached) " >&6
11848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11849 /* end confdefs.h. */
11851 #include <sys/types.h>
11856 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
11861 if ac_fn_c_try_compile "$LINENO"; then :
11862 ac_cv_have_uintxx_t="yes"
11864 ac_cv_have_uintxx_t="no"
11867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
11871 $as_echo "$ac_cv_have_uintxx_t" >&6; }
11872 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
11874 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
11879 if test -z "$have_uintxx_t" ; then
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5
11881 $as_echo_n "checking for uintXX_t types in stdint.h... " >&6; }
11882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11883 /* end confdefs.h. */
11884 #include <stdint.h>
11888 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
11893 if ac_fn_c_try_compile "$LINENO"; then :
11895 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11898 $as_echo "yes" >&6; }
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902 $as_echo "no" >&6; }
11905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11908 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
11909 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
11912 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
11913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11914 /* end confdefs.h. */
11916 #include <sys/bitypes.h>
11922 int8_t a; int16_t b; int32_t c;
11923 u_int8_t e; u_int16_t f; u_int32_t g;
11924 a = b = c = e = f = g = 1;
11930 if ac_fn_c_try_compile "$LINENO"; then :
11932 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
11934 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11937 $as_echo "yes" >&6; }
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11941 $as_echo "no" >&6; }
11944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5
11949 $as_echo_n "checking for u_char... " >&6; }
11950 if test "${ac_cv_have_u_char+set}" = set; then :
11951 $as_echo_n "(cached) " >&6
11954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11955 /* end confdefs.h. */
11957 #include <sys/types.h>
11962 u_char foo; foo = 125;
11967 if ac_fn_c_try_compile "$LINENO"; then :
11968 ac_cv_have_u_char="yes"
11970 ac_cv_have_u_char="no"
11973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5
11977 $as_echo "$ac_cv_have_u_char" >&6; }
11978 if test "x$ac_cv_have_u_char" = "xyes" ; then
11980 $as_echo "#define HAVE_U_CHAR 1" >>confdefs.h
11985 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11986 #include <sys/socket.h>
11988 if test "x$ac_cv_type_socklen_t" = x""yes; then :
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
11993 $as_echo_n "checking for socklen_t equivalent... " >&6; }
11994 if test "${curl_cv_socklen_t_equiv+set}" = set; then :
11995 $as_echo_n "(cached) " >&6
11998 # Systems have either "struct sockaddr *" or
11999 # "void *" as the second argument to getpeername
12000 curl_cv_socklen_t_equiv=
12001 for arg2 in "struct sockaddr" void; do
12002 for t in int size_t unsigned long "unsigned long"; do
12003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12004 /* end confdefs.h. */
12006 #include <sys/types.h>
12007 #include <sys/socket.h>
12009 int getpeername (int, $arg2 *, $t *);
12016 getpeername(0,0,&len);
12022 if ac_fn_c_try_compile "$LINENO"; then :
12024 curl_cv_socklen_t_equiv="$t"
12028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12032 if test "x$curl_cv_socklen_t_equiv" = x; then
12033 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
12039 $as_echo "$curl_cv_socklen_t_equiv" >&6; }
12041 cat >>confdefs.h <<_ACEOF
12042 #define socklen_t $curl_cv_socklen_t_equiv
12049 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
12051 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then :
12053 cat >>confdefs.h <<_ACEOF
12054 #define HAVE_SIG_ATOMIC_T 1
12060 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "
12061 #include <sys/types.h>
12062 #ifdef HAVE_SYS_BITYPES_H
12063 #include <sys/bitypes.h>
12065 #ifdef HAVE_SYS_STATFS_H
12066 #include <sys/statfs.h>
12068 #ifdef HAVE_SYS_STATVFS_H
12069 #include <sys/statvfs.h>
12073 if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
12075 cat >>confdefs.h <<_ACEOF
12076 #define HAVE_FSBLKCNT_T 1
12081 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "
12082 #include <sys/types.h>
12083 #ifdef HAVE_SYS_BITYPES_H
12084 #include <sys/bitypes.h>
12086 #ifdef HAVE_SYS_STATFS_H
12087 #include <sys/statfs.h>
12089 #ifdef HAVE_SYS_STATVFS_H
12090 #include <sys/statvfs.h>
12094 if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
12096 cat >>confdefs.h <<_ACEOF
12097 #define HAVE_FSFILCNT_T 1
12104 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h>
12105 #include <netinet/in.h>
12107 if test "x$ac_cv_type_in_addr_t" = x""yes; then :
12109 cat >>confdefs.h <<_ACEOF
12110 #define HAVE_IN_ADDR_T 1
12115 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
12116 #include <netinet/in.h>
12118 if test "x$ac_cv_type_in_port_t" = x""yes; then :
12120 cat >>confdefs.h <<_ACEOF
12121 #define HAVE_IN_PORT_T 1
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
12129 $as_echo_n "checking for size_t... " >&6; }
12130 if test "${ac_cv_have_size_t+set}" = set; then :
12131 $as_echo_n "(cached) " >&6
12134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135 /* end confdefs.h. */
12137 #include <sys/types.h>
12142 size_t foo; foo = 1235;
12147 if ac_fn_c_try_compile "$LINENO"; then :
12148 ac_cv_have_size_t="yes"
12150 ac_cv_have_size_t="no"
12153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5
12157 $as_echo "$ac_cv_have_size_t" >&6; }
12158 if test "x$ac_cv_have_size_t" = "xyes" ; then
12160 $as_echo "#define HAVE_SIZE_T 1" >>confdefs.h
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
12165 $as_echo_n "checking for ssize_t... " >&6; }
12166 if test "${ac_cv_have_ssize_t+set}" = set; then :
12167 $as_echo_n "(cached) " >&6
12170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12171 /* end confdefs.h. */
12173 #include <sys/types.h>
12178 ssize_t foo; foo = 1235;
12183 if ac_fn_c_try_compile "$LINENO"; then :
12184 ac_cv_have_ssize_t="yes"
12186 ac_cv_have_ssize_t="no"
12189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5
12193 $as_echo "$ac_cv_have_ssize_t" >&6; }
12194 if test "x$ac_cv_have_ssize_t" = "xyes" ; then
12196 $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12201 $as_echo_n "checking for clock_t... " >&6; }
12202 if test "${ac_cv_have_clock_t+set}" = set; then :
12203 $as_echo_n "(cached) " >&6
12206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12207 /* end confdefs.h. */
12214 clock_t foo; foo = 1235;
12219 if ac_fn_c_try_compile "$LINENO"; then :
12220 ac_cv_have_clock_t="yes"
12222 ac_cv_have_clock_t="no"
12225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5
12229 $as_echo "$ac_cv_have_clock_t" >&6; }
12230 if test "x$ac_cv_have_clock_t" = "xyes" ; then
12232 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5
12237 $as_echo_n "checking for sa_family_t... " >&6; }
12238 if test "${ac_cv_have_sa_family_t+set}" = set; then :
12239 $as_echo_n "(cached) " >&6
12242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12243 /* end confdefs.h. */
12245 #include <sys/types.h>
12246 #include <sys/socket.h>
12251 sa_family_t foo; foo = 1235;
12256 if ac_fn_c_try_compile "$LINENO"; then :
12257 ac_cv_have_sa_family_t="yes"
12259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12260 /* end confdefs.h. */
12262 #include <sys/types.h>
12263 #include <sys/socket.h>
12264 #include <netinet/in.h>
12269 sa_family_t foo; foo = 1235;
12274 if ac_fn_c_try_compile "$LINENO"; then :
12275 ac_cv_have_sa_family_t="yes"
12277 ac_cv_have_sa_family_t="no"
12280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5
12287 $as_echo "$ac_cv_have_sa_family_t" >&6; }
12288 if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
12290 $as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5
12295 $as_echo_n "checking for pid_t... " >&6; }
12296 if test "${ac_cv_have_pid_t+set}" = set; then :
12297 $as_echo_n "(cached) " >&6
12300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12301 /* end confdefs.h. */
12303 #include <sys/types.h>
12308 pid_t foo; foo = 1235;
12313 if ac_fn_c_try_compile "$LINENO"; then :
12314 ac_cv_have_pid_t="yes"
12316 ac_cv_have_pid_t="no"
12319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5
12323 $as_echo "$ac_cv_have_pid_t" >&6; }
12324 if test "x$ac_cv_have_pid_t" = "xyes" ; then
12326 $as_echo "#define HAVE_PID_T 1" >>confdefs.h
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5
12331 $as_echo_n "checking for mode_t... " >&6; }
12332 if test "${ac_cv_have_mode_t+set}" = set; then :
12333 $as_echo_n "(cached) " >&6
12336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12337 /* end confdefs.h. */
12339 #include <sys/types.h>
12344 mode_t foo; foo = 1235;
12349 if ac_fn_c_try_compile "$LINENO"; then :
12350 ac_cv_have_mode_t="yes"
12352 ac_cv_have_mode_t="no"
12355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5
12359 $as_echo "$ac_cv_have_mode_t" >&6; }
12360 if test "x$ac_cv_have_mode_t" = "xyes" ; then
12362 $as_echo "#define HAVE_MODE_T 1" >>confdefs.h
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
12368 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
12369 if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then :
12370 $as_echo_n "(cached) " >&6
12373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12374 /* end confdefs.h. */
12376 #include <sys/types.h>
12377 #include <sys/socket.h>
12382 struct sockaddr_storage s;
12387 if ac_fn_c_try_compile "$LINENO"; then :
12388 ac_cv_have_struct_sockaddr_storage="yes"
12390 ac_cv_have_struct_sockaddr_storage="no"
12393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5
12397 $as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; }
12398 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
12400 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
12405 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
12406 if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then :
12407 $as_echo_n "(cached) " >&6
12410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12411 /* end confdefs.h. */
12413 #include <sys/types.h>
12414 #include <netinet/in.h>
12419 struct sockaddr_in6 s; s.sin6_family = 0;
12424 if ac_fn_c_try_compile "$LINENO"; then :
12425 ac_cv_have_struct_sockaddr_in6="yes"
12427 ac_cv_have_struct_sockaddr_in6="no"
12430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5
12434 $as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; }
12435 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
12437 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
12442 $as_echo_n "checking for struct in6_addr... " >&6; }
12443 if test "${ac_cv_have_struct_in6_addr+set}" = set; then :
12444 $as_echo_n "(cached) " >&6
12447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12448 /* end confdefs.h. */
12450 #include <sys/types.h>
12451 #include <netinet/in.h>
12456 struct in6_addr s; s.s6_addr[0] = 0;
12461 if ac_fn_c_try_compile "$LINENO"; then :
12462 ac_cv_have_struct_in6_addr="yes"
12464 ac_cv_have_struct_in6_addr="no"
12467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5
12471 $as_echo "$ac_cv_have_struct_in6_addr" >&6; }
12472 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
12474 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
12477 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
12478 #ifdef HAVE_SYS_TYPES_H
12479 #include <sys/types.h>
12481 #include <netinet/in.h>
12484 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
12486 cat >>confdefs.h <<_ACEOF
12487 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
12496 $as_echo_n "checking for struct addrinfo... " >&6; }
12497 if test "${ac_cv_have_struct_addrinfo+set}" = set; then :
12498 $as_echo_n "(cached) " >&6
12501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12502 /* end confdefs.h. */
12504 #include <sys/types.h>
12505 #include <sys/socket.h>
12511 struct addrinfo s; s.ai_flags = AI_PASSIVE;
12516 if ac_fn_c_try_compile "$LINENO"; then :
12517 ac_cv_have_struct_addrinfo="yes"
12519 ac_cv_have_struct_addrinfo="no"
12522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5
12526 $as_echo "$ac_cv_have_struct_addrinfo" >&6; }
12527 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
12529 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
12534 $as_echo_n "checking for struct timeval... " >&6; }
12535 if test "${ac_cv_have_struct_timeval+set}" = set; then :
12536 $as_echo_n "(cached) " >&6
12539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540 /* end confdefs.h. */
12541 #include <sys/time.h>
12545 struct timeval tv; tv.tv_sec = 1;
12550 if ac_fn_c_try_compile "$LINENO"; then :
12551 ac_cv_have_struct_timeval="yes"
12553 ac_cv_have_struct_timeval="no"
12556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5
12560 $as_echo "$ac_cv_have_struct_timeval" >&6; }
12561 if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
12563 $as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
12565 have_struct_timeval=1
12568 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
12569 if test "x$ac_cv_type_struct_timespec" = x""yes; then :
12571 cat >>confdefs.h <<_ACEOF
12572 #define HAVE_STRUCT_TIMESPEC 1
12579 # We need int64_t or else certian parts of the compile will fail.
12580 if test "x$ac_cv_have_int64_t" = "xno" && \
12581 test "x$ac_cv_sizeof_long_int" != "x8" && \
12582 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
12583 echo "OpenSSH requires int64_t support. Contact your vendor or install"
12584 echo "an alternative compiler (I.E., GCC) before continuing."
12588 if test "$cross_compiling" = yes; then :
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
12590 $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
12593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12594 /* end confdefs.h. */
12597 #include <string.h>
12598 #ifdef HAVE_SNPRINTF
12602 char expected_out[50];
12604 #if (SIZEOF_LONG_INT == 8)
12605 long int num = 0x7fffffffffffffff;
12607 long long num = 0x7fffffffffffffffll;
12609 strcpy(expected_out, "9223372036854775807");
12610 snprintf(buf, mazsize, "%lld", num);
12611 if(strcmp(buf, expected_out) != 0)
12616 main() { exit(0); }
12620 if ac_fn_c_try_run "$LINENO"; then :
12623 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
12626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12627 conftest.$ac_objext conftest.beam conftest.$ac_ext
12633 # look for field 'ut_host' in header 'utmp.h'
12634 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12635 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5
12637 $as_echo_n "checking for ut_host field in utmp.h... " >&6; }
12638 if eval "test \"\${$ossh_varname+set}\"" = set; then :
12639 $as_echo_n "(cached) " >&6
12642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12643 /* end confdefs.h. */
12647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12648 $EGREP "ut_host" >/dev/null 2>&1; then :
12649 eval "$ossh_varname=yes"
12651 eval "$ossh_varname=no"
12657 ossh_result=`eval 'echo $'"$ossh_varname"`
12658 if test -n "`echo $ossh_varname`"; then
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12660 $as_echo "$ossh_result" >&6; }
12661 if test "x$ossh_result" = "xyes"; then
12663 $as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12668 $as_echo "no" >&6; }
12672 # look for field 'ut_host' in header 'utmpx.h'
12673 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12674 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5
12676 $as_echo_n "checking for ut_host field in utmpx.h... " >&6; }
12677 if eval "test \"\${$ossh_varname+set}\"" = set; then :
12678 $as_echo_n "(cached) " >&6
12681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12682 /* end confdefs.h. */
12686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12687 $EGREP "ut_host" >/dev/null 2>&1; then :
12688 eval "$ossh_varname=yes"
12690 eval "$ossh_varname=no"
12696 ossh_result=`eval 'echo $'"$ossh_varname"`
12697 if test -n "`echo $ossh_varname`"; then
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12699 $as_echo "$ossh_result" >&6; }
12700 if test "x$ossh_result" = "xyes"; then
12702 $as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12707 $as_echo "no" >&6; }
12711 # look for field 'syslen' in header 'utmpx.h'
12712 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12713 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5
12715 $as_echo_n "checking for syslen field in utmpx.h... " >&6; }
12716 if eval "test \"\${$ossh_varname+set}\"" = set; then :
12717 $as_echo_n "(cached) " >&6
12720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12721 /* end confdefs.h. */
12725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12726 $EGREP "syslen" >/dev/null 2>&1; then :
12727 eval "$ossh_varname=yes"
12729 eval "$ossh_varname=no"
12735 ossh_result=`eval 'echo $'"$ossh_varname"`
12736 if test -n "`echo $ossh_varname`"; then
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12738 $as_echo "$ossh_result" >&6; }
12739 if test "x$ossh_result" = "xyes"; then
12741 $as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746 $as_echo "no" >&6; }
12750 # look for field 'ut_pid' in header 'utmp.h'
12751 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12752 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5
12754 $as_echo_n "checking for ut_pid field in utmp.h... " >&6; }
12755 if eval "test \"\${$ossh_varname+set}\"" = set; then :
12756 $as_echo_n "(cached) " >&6
12759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h. */
12764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12765 $EGREP "ut_pid" >/dev/null 2>&1; then :
12766 eval "$ossh_varname=yes"
12768 eval "$ossh_varname=no"
12774 ossh_result=`eval 'echo $'"$ossh_varname"`
12775 if test -n "`echo $ossh_varname`"; then
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12777 $as_echo "$ossh_result" >&6; }
12778 if test "x$ossh_result" = "xyes"; then
12780 $as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12785 $as_echo "no" >&6; }
12789 # look for field 'ut_type' in header 'utmp.h'
12790 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12791 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5
12793 $as_echo_n "checking for ut_type field in utmp.h... " >&6; }
12794 if eval "test \"\${$ossh_varname+set}\"" = set; then :
12795 $as_echo_n "(cached) " >&6
12798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799 /* end confdefs.h. */
12803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12804 $EGREP "ut_type" >/dev/null 2>&1; then :
12805 eval "$ossh_varname=yes"
12807 eval "$ossh_varname=no"
12813 ossh_result=`eval 'echo $'"$ossh_varname"`
12814 if test -n "`echo $ossh_varname`"; then
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12816 $as_echo "$ossh_result" >&6; }
12817 if test "x$ossh_result" = "xyes"; then
12819 $as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12824 $as_echo "no" >&6; }
12828 # look for field 'ut_type' in header 'utmpx.h'
12829 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12830 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5
12832 $as_echo_n "checking for ut_type field in utmpx.h... " >&6; }
12833 if eval "test \"\${$ossh_varname+set}\"" = set; then :
12834 $as_echo_n "(cached) " >&6
12837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12838 /* end confdefs.h. */
12842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12843 $EGREP "ut_type" >/dev/null 2>&1; then :
12844 eval "$ossh_varname=yes"
12846 eval "$ossh_varname=no"
12852 ossh_result=`eval 'echo $'"$ossh_varname"`
12853 if test -n "`echo $ossh_varname`"; then
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12855 $as_echo "$ossh_result" >&6; }
12856 if test "x$ossh_result" = "xyes"; then
12858 $as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12863 $as_echo "no" >&6; }
12867 # look for field 'ut_tv' in header 'utmp.h'
12868 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12869 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5
12871 $as_echo_n "checking for ut_tv field in utmp.h... " >&6; }
12872 if eval "test \"\${$ossh_varname+set}\"" = set; then :
12873 $as_echo_n "(cached) " >&6
12876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h. */
12881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12882 $EGREP "ut_tv" >/dev/null 2>&1; then :
12883 eval "$ossh_varname=yes"
12885 eval "$ossh_varname=no"
12891 ossh_result=`eval 'echo $'"$ossh_varname"`
12892 if test -n "`echo $ossh_varname`"; then
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12894 $as_echo "$ossh_result" >&6; }
12895 if test "x$ossh_result" = "xyes"; then
12897 $as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12902 $as_echo "no" >&6; }
12906 # look for field 'ut_id' in header 'utmp.h'
12907 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12908 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5
12910 $as_echo_n "checking for ut_id field in utmp.h... " >&6; }
12911 if eval "test \"\${$ossh_varname+set}\"" = set; then :
12912 $as_echo_n "(cached) " >&6
12915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12916 /* end confdefs.h. */
12920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12921 $EGREP "ut_id" >/dev/null 2>&1; then :
12922 eval "$ossh_varname=yes"
12924 eval "$ossh_varname=no"
12930 ossh_result=`eval 'echo $'"$ossh_varname"`
12931 if test -n "`echo $ossh_varname`"; then
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12933 $as_echo "$ossh_result" >&6; }
12934 if test "x$ossh_result" = "xyes"; then
12936 $as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12941 $as_echo "no" >&6; }
12945 # look for field 'ut_id' in header 'utmpx.h'
12946 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12947 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5
12949 $as_echo_n "checking for ut_id field in utmpx.h... " >&6; }
12950 if eval "test \"\${$ossh_varname+set}\"" = set; then :
12951 $as_echo_n "(cached) " >&6
12954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12955 /* end confdefs.h. */
12959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12960 $EGREP "ut_id" >/dev/null 2>&1; then :
12961 eval "$ossh_varname=yes"
12963 eval "$ossh_varname=no"
12969 ossh_result=`eval 'echo $'"$ossh_varname"`
12970 if test -n "`echo $ossh_varname`"; then
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12972 $as_echo "$ossh_result" >&6; }
12973 if test "x$ossh_result" = "xyes"; then
12975 $as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12980 $as_echo "no" >&6; }
12984 # look for field 'ut_addr' in header 'utmp.h'
12985 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12986 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5
12988 $as_echo_n "checking for ut_addr field in utmp.h... " >&6; }
12989 if eval "test \"\${$ossh_varname+set}\"" = set; then :
12990 $as_echo_n "(cached) " >&6
12993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12994 /* end confdefs.h. */
12998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12999 $EGREP "ut_addr" >/dev/null 2>&1; then :
13000 eval "$ossh_varname=yes"
13002 eval "$ossh_varname=no"
13008 ossh_result=`eval 'echo $'"$ossh_varname"`
13009 if test -n "`echo $ossh_varname`"; then
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13011 $as_echo "$ossh_result" >&6; }
13012 if test "x$ossh_result" = "xyes"; then
13014 $as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13019 $as_echo "no" >&6; }
13023 # look for field 'ut_addr' in header 'utmpx.h'
13024 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13025 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5
13027 $as_echo_n "checking for ut_addr field in utmpx.h... " >&6; }
13028 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13029 $as_echo_n "(cached) " >&6
13032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h. */
13037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13038 $EGREP "ut_addr" >/dev/null 2>&1; then :
13039 eval "$ossh_varname=yes"
13041 eval "$ossh_varname=no"
13047 ossh_result=`eval 'echo $'"$ossh_varname"`
13048 if test -n "`echo $ossh_varname`"; then
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13050 $as_echo "$ossh_result" >&6; }
13051 if test "x$ossh_result" = "xyes"; then
13053 $as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13058 $as_echo "no" >&6; }
13062 # look for field 'ut_addr_v6' in header 'utmp.h'
13063 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13064 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5
13066 $as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; }
13067 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13068 $as_echo_n "(cached) " >&6
13071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13072 /* end confdefs.h. */
13076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13077 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
13078 eval "$ossh_varname=yes"
13080 eval "$ossh_varname=no"
13086 ossh_result=`eval 'echo $'"$ossh_varname"`
13087 if test -n "`echo $ossh_varname`"; then
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13089 $as_echo "$ossh_result" >&6; }
13090 if test "x$ossh_result" = "xyes"; then
13092 $as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13097 $as_echo "no" >&6; }
13101 # look for field 'ut_addr_v6' in header 'utmpx.h'
13102 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13103 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5
13105 $as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; }
13106 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13107 $as_echo_n "(cached) " >&6
13110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13111 /* end confdefs.h. */
13115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13116 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
13117 eval "$ossh_varname=yes"
13119 eval "$ossh_varname=no"
13125 ossh_result=`eval 'echo $'"$ossh_varname"`
13126 if test -n "`echo $ossh_varname`"; then
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13128 $as_echo "$ossh_result" >&6; }
13129 if test "x$ossh_result" = "xyes"; then
13131 $as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13136 $as_echo "no" >&6; }
13140 # look for field 'ut_exit' in header 'utmp.h'
13141 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13142 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5
13144 $as_echo_n "checking for ut_exit field in utmp.h... " >&6; }
13145 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13146 $as_echo_n "(cached) " >&6
13149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13150 /* end confdefs.h. */
13154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13155 $EGREP "ut_exit" >/dev/null 2>&1; then :
13156 eval "$ossh_varname=yes"
13158 eval "$ossh_varname=no"
13164 ossh_result=`eval 'echo $'"$ossh_varname"`
13165 if test -n "`echo $ossh_varname`"; then
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13167 $as_echo "$ossh_result" >&6; }
13168 if test "x$ossh_result" = "xyes"; then
13170 $as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13175 $as_echo "no" >&6; }
13179 # look for field 'ut_time' in header 'utmp.h'
13180 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13181 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5
13183 $as_echo_n "checking for ut_time field in utmp.h... " >&6; }
13184 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13185 $as_echo_n "(cached) " >&6
13188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13189 /* end confdefs.h. */
13193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13194 $EGREP "ut_time" >/dev/null 2>&1; then :
13195 eval "$ossh_varname=yes"
13197 eval "$ossh_varname=no"
13203 ossh_result=`eval 'echo $'"$ossh_varname"`
13204 if test -n "`echo $ossh_varname`"; then
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13206 $as_echo "$ossh_result" >&6; }
13207 if test "x$ossh_result" = "xyes"; then
13209 $as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13214 $as_echo "no" >&6; }
13218 # look for field 'ut_time' in header 'utmpx.h'
13219 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13220 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5
13222 $as_echo_n "checking for ut_time field in utmpx.h... " >&6; }
13223 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13224 $as_echo_n "(cached) " >&6
13227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228 /* end confdefs.h. */
13232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13233 $EGREP "ut_time" >/dev/null 2>&1; then :
13234 eval "$ossh_varname=yes"
13236 eval "$ossh_varname=no"
13242 ossh_result=`eval 'echo $'"$ossh_varname"`
13243 if test -n "`echo $ossh_varname`"; then
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13245 $as_echo "$ossh_result" >&6; }
13246 if test "x$ossh_result" = "xyes"; then
13248 $as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13253 $as_echo "no" >&6; }
13257 # look for field 'ut_tv' in header 'utmpx.h'
13258 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13259 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5
13261 $as_echo_n "checking for ut_tv field in utmpx.h... " >&6; }
13262 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13263 $as_echo_n "(cached) " >&6
13266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13267 /* end confdefs.h. */
13271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13272 $EGREP "ut_tv" >/dev/null 2>&1; then :
13273 eval "$ossh_varname=yes"
13275 eval "$ossh_varname=no"
13281 ossh_result=`eval 'echo $'"$ossh_varname"`
13282 if test -n "`echo $ossh_varname`"; then
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13284 $as_echo "$ossh_result" >&6; }
13285 if test "x$ossh_result" = "xyes"; then
13287 $as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13292 $as_echo "no" >&6; }
13296 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13297 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
13299 cat >>confdefs.h <<_ACEOF
13300 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13306 ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" "
13308 #if HAVE_SYS_TYPES_H
13309 # include <sys/types.h>
13311 #include <netinet/in.h>
13312 #include <arpa/nameser.h>
13313 #include <resolv.h>
13316 if test "x$ac_cv_member_struct___res_state_retrans" = x""yes; then :
13320 $as_echo "#define __res_state state" >>confdefs.h
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5
13326 $as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; }
13327 if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then :
13328 $as_echo_n "(cached) " >&6
13331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13332 /* end confdefs.h. */
13334 #include <sys/types.h>
13335 #include <sys/socket.h>
13340 struct sockaddr_storage s; s.ss_family = 1;
13345 if ac_fn_c_try_compile "$LINENO"; then :
13346 ac_cv_have_ss_family_in_struct_ss="yes"
13348 ac_cv_have_ss_family_in_struct_ss="no"
13350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5
13354 $as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; }
13355 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
13357 $as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5
13362 $as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; }
13363 if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then :
13364 $as_echo_n "(cached) " >&6
13367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13368 /* end confdefs.h. */
13370 #include <sys/types.h>
13371 #include <sys/socket.h>
13376 struct sockaddr_storage s; s.__ss_family = 1;
13381 if ac_fn_c_try_compile "$LINENO"; then :
13382 ac_cv_have___ss_family_in_struct_ss="yes"
13384 ac_cv_have___ss_family_in_struct_ss="no"
13387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5
13391 $as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; }
13392 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
13394 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_class field in struct passwd" >&5
13399 $as_echo_n "checking for pw_class field in struct passwd... " >&6; }
13400 if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then :
13401 $as_echo_n "(cached) " >&6
13404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13405 /* end confdefs.h. */
13412 struct passwd p; p.pw_class = 0;
13417 if ac_fn_c_try_compile "$LINENO"; then :
13418 ac_cv_have_pw_class_in_struct_passwd="yes"
13420 ac_cv_have_pw_class_in_struct_passwd="no"
13423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
13427 $as_echo "$ac_cv_have_pw_class_in_struct_passwd" >&6; }
13428 if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
13430 $as_echo "#define HAVE_PW_CLASS_IN_PASSWD 1" >>confdefs.h
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_expire field in struct passwd" >&5
13435 $as_echo_n "checking for pw_expire field in struct passwd... " >&6; }
13436 if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then :
13437 $as_echo_n "(cached) " >&6
13440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13441 /* end confdefs.h. */
13448 struct passwd p; p.pw_expire = 0;
13453 if ac_fn_c_try_compile "$LINENO"; then :
13454 ac_cv_have_pw_expire_in_struct_passwd="yes"
13456 ac_cv_have_pw_expire_in_struct_passwd="no"
13459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
13463 $as_echo "$ac_cv_have_pw_expire_in_struct_passwd" >&6; }
13464 if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
13466 $as_echo "#define HAVE_PW_EXPIRE_IN_PASSWD 1" >>confdefs.h
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_change field in struct passwd" >&5
13471 $as_echo_n "checking for pw_change field in struct passwd... " >&6; }
13472 if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then :
13473 $as_echo_n "(cached) " >&6
13476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13477 /* end confdefs.h. */
13484 struct passwd p; p.pw_change = 0;
13489 if ac_fn_c_try_compile "$LINENO"; then :
13490 ac_cv_have_pw_change_in_struct_passwd="yes"
13492 ac_cv_have_pw_change_in_struct_passwd="no"
13495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
13499 $as_echo "$ac_cv_have_pw_change_in_struct_passwd" >&6; }
13500 if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
13502 $as_echo "#define HAVE_PW_CHANGE_IN_PASSWD 1" >>confdefs.h
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5
13507 $as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; }
13508 if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then :
13509 $as_echo_n "(cached) " >&6
13512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513 /* end confdefs.h. */
13515 #include <sys/types.h>
13516 #include <sys/socket.h>
13517 #include <sys/uio.h>
13519 #ifdef msg_accrights
13520 #error "msg_accrights is a macro"
13524 m.msg_accrights = 0;
13529 if ac_fn_c_try_compile "$LINENO"; then :
13530 ac_cv_have_accrights_in_msghdr="yes"
13532 ac_cv_have_accrights_in_msghdr="no"
13535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5
13539 $as_echo "$ac_cv_have_accrights_in_msghdr" >&6; }
13540 if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
13542 $as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5
13547 $as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; }
13548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13549 /* end confdefs.h. */
13551 #include <sys/types.h>
13552 #include <sys/stat.h>
13553 #ifdef HAVE_SYS_TIME_H
13554 # include <sys/time.h>
13556 #ifdef HAVE_SYS_MOUNT_H
13557 #include <sys/mount.h>
13559 #ifdef HAVE_SYS_STATVFS_H
13560 #include <sys/statvfs.h>
13566 struct statvfs s; s.f_fsid = 0;
13571 if ac_fn_c_try_compile "$LINENO"; then :
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13573 $as_echo "yes" >&6; }
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13576 $as_echo "no" >&6; }
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5
13579 $as_echo_n "checking if fsid_t has member val... " >&6; }
13580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13581 /* end confdefs.h. */
13583 #include <sys/types.h>
13584 #include <sys/statvfs.h>
13588 fsid_t t; t.val[0] = 0;
13593 if ac_fn_c_try_compile "$LINENO"; then :
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13595 $as_echo "yes" >&6; }
13597 $as_echo "#define FSID_HAS_VAL 1" >>confdefs.h
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13601 $as_echo "no" >&6; }
13603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5
13606 $as_echo_n "checking if f_fsid has member __val... " >&6; }
13607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13608 /* end confdefs.h. */
13610 #include <sys/types.h>
13611 #include <sys/statvfs.h>
13615 fsid_t t; t.__val[0] = 0;
13620 if ac_fn_c_try_compile "$LINENO"; then :
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13622 $as_echo "yes" >&6; }
13624 $as_echo "#define FSID_HAS___VAL 1" >>confdefs.h
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13628 $as_echo "no" >&6; }
13630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5
13636 $as_echo_n "checking for msg_control field in struct msghdr... " >&6; }
13637 if test "${ac_cv_have_control_in_msghdr+set}" = set; then :
13638 $as_echo_n "(cached) " >&6
13641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13642 /* end confdefs.h. */
13644 #include <sys/types.h>
13645 #include <sys/socket.h>
13646 #include <sys/uio.h>
13649 #error "msg_control is a macro"
13658 if ac_fn_c_try_compile "$LINENO"; then :
13659 ac_cv_have_control_in_msghdr="yes"
13661 ac_cv_have_control_in_msghdr="no"
13664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5
13668 $as_echo "$ac_cv_have_control_in_msghdr" >&6; }
13669 if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
13671 $as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5
13676 $as_echo_n "checking if libc defines __progname... " >&6; }
13677 if test "${ac_cv_libc_defines___progname+set}" = set; then :
13678 $as_echo_n "(cached) " >&6
13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h. */
13687 extern char *__progname; printf("%s", __progname);
13692 if ac_fn_c_try_link "$LINENO"; then :
13693 ac_cv_libc_defines___progname="yes"
13695 ac_cv_libc_defines___progname="no"
13698 rm -f core conftest.err conftest.$ac_objext \
13699 conftest$ac_exeext conftest.$ac_ext
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5
13703 $as_echo "$ac_cv_libc_defines___progname" >&6; }
13704 if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
13706 $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5
13711 $as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; }
13712 if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then :
13713 $as_echo_n "(cached) " >&6
13716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13717 /* end confdefs.h. */
13724 printf("%s", __FUNCTION__);
13729 if ac_fn_c_try_link "$LINENO"; then :
13730 ac_cv_cc_implements___FUNCTION__="yes"
13732 ac_cv_cc_implements___FUNCTION__="no"
13735 rm -f core conftest.err conftest.$ac_objext \
13736 conftest$ac_exeext conftest.$ac_ext
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5
13740 $as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; }
13741 if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
13743 $as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5
13748 $as_echo_n "checking whether $CC implements __func__... " >&6; }
13749 if test "${ac_cv_cc_implements___func__+set}" = set; then :
13750 $as_echo_n "(cached) " >&6
13753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13754 /* end confdefs.h. */
13761 printf("%s", __func__);
13766 if ac_fn_c_try_link "$LINENO"; then :
13767 ac_cv_cc_implements___func__="yes"
13769 ac_cv_cc_implements___func__="no"
13772 rm -f core conftest.err conftest.$ac_objext \
13773 conftest$ac_exeext conftest.$ac_ext
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5
13777 $as_echo "$ac_cv_cc_implements___func__" >&6; }
13778 if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
13780 $as_echo "#define HAVE___func__ 1" >>confdefs.h
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5
13785 $as_echo_n "checking whether va_copy exists... " >&6; }
13786 if test "${ac_cv_have_va_copy+set}" = set; then :
13787 $as_echo_n "(cached) " >&6
13790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13791 /* end confdefs.h. */
13792 #include <stdarg.h>
13802 if ac_fn_c_try_link "$LINENO"; then :
13803 ac_cv_have_va_copy="yes"
13805 ac_cv_have_va_copy="no"
13808 rm -f core conftest.err conftest.$ac_objext \
13809 conftest$ac_exeext conftest.$ac_ext
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5
13813 $as_echo "$ac_cv_have_va_copy" >&6; }
13814 if test "x$ac_cv_have_va_copy" = "xyes" ; then
13816 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5
13821 $as_echo_n "checking whether __va_copy exists... " >&6; }
13822 if test "${ac_cv_have___va_copy+set}" = set; then :
13823 $as_echo_n "(cached) " >&6
13826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827 /* end confdefs.h. */
13828 #include <stdarg.h>
13838 if ac_fn_c_try_link "$LINENO"; then :
13839 ac_cv_have___va_copy="yes"
13841 ac_cv_have___va_copy="no"
13844 rm -f core conftest.err conftest.$ac_objext \
13845 conftest$ac_exeext conftest.$ac_ext
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5
13849 $as_echo "$ac_cv_have___va_copy" >&6; }
13850 if test "x$ac_cv_have___va_copy" = "xyes" ; then
13852 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5
13857 $as_echo_n "checking whether getopt has optreset support... " >&6; }
13858 if test "${ac_cv_have_getopt_optreset+set}" = set; then :
13859 $as_echo_n "(cached) " >&6
13862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13863 /* end confdefs.h. */
13865 #include <getopt.h>
13870 extern int optreset; optreset = 0;
13875 if ac_fn_c_try_link "$LINENO"; then :
13876 ac_cv_have_getopt_optreset="yes"
13878 ac_cv_have_getopt_optreset="no"
13881 rm -f core conftest.err conftest.$ac_objext \
13882 conftest$ac_exeext conftest.$ac_ext
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5
13886 $as_echo "$ac_cv_have_getopt_optreset" >&6; }
13887 if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
13889 $as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5
13894 $as_echo_n "checking if libc defines sys_errlist... " >&6; }
13895 if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then :
13896 $as_echo_n "(cached) " >&6
13899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13900 /* end confdefs.h. */
13905 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
13910 if ac_fn_c_try_link "$LINENO"; then :
13911 ac_cv_libc_defines_sys_errlist="yes"
13913 ac_cv_libc_defines_sys_errlist="no"
13916 rm -f core conftest.err conftest.$ac_objext \
13917 conftest$ac_exeext conftest.$ac_ext
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5
13921 $as_echo "$ac_cv_libc_defines_sys_errlist" >&6; }
13922 if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
13924 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5
13930 $as_echo_n "checking if libc defines sys_nerr... " >&6; }
13931 if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then :
13932 $as_echo_n "(cached) " >&6
13935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13936 /* end confdefs.h. */
13941 extern int sys_nerr; printf("%i", sys_nerr);
13946 if ac_fn_c_try_link "$LINENO"; then :
13947 ac_cv_libc_defines_sys_nerr="yes"
13949 ac_cv_libc_defines_sys_nerr="no"
13952 rm -f core conftest.err conftest.$ac_objext \
13953 conftest$ac_exeext conftest.$ac_ext
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5
13957 $as_echo "$ac_cv_libc_defines_sys_nerr" >&6; }
13958 if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
13960 $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
13965 # Check whether user wants sectok support
13967 # Check whether --with-sectok was given.
13968 if test "${with_sectok+set}" = set; then :
13969 withval=$with_sectok;
13970 if test "x$withval" != "xno" ; then
13971 if test "x$withval" != "xyes" ; then
13972 CPPFLAGS="$CPPFLAGS -I${withval}"
13973 LDFLAGS="$LDFLAGS -L${withval}"
13974 if test ! -z "$need_dash_r" ; then
13975 LDFLAGS="$LDFLAGS -R${withval}"
13977 if test ! -z "$blibpath" ; then
13978 blibpath="$blibpath:${withval}"
13981 for ac_header in sectok.h
13983 ac_fn_c_check_header_mongrel "$LINENO" "sectok.h" "ac_cv_header_sectok_h" "$ac_includes_default"
13984 if test "x$ac_cv_header_sectok_h" = x""yes; then :
13985 cat >>confdefs.h <<_ACEOF
13986 #define HAVE_SECTOK_H 1
13993 if test "$ac_cv_header_sectok_h" != yes; then
13994 as_fn_error $? "Can't find sectok.h" "$LINENO" 5
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sectok_open in -lsectok" >&5
13997 $as_echo_n "checking for sectok_open in -lsectok... " >&6; }
13998 if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then :
13999 $as_echo_n "(cached) " >&6
14001 ac_check_lib_save_LIBS=$LIBS
14002 LIBS="-lsectok $LIBS"
14003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14004 /* end confdefs.h. */
14006 /* Override any GCC internal prototype to avoid an error.
14007 Use char because int might match the return type of a GCC
14008 builtin and then its argument prototype would still apply. */
14012 char sectok_open ();
14016 return sectok_open ();
14021 if ac_fn_c_try_link "$LINENO"; then :
14022 ac_cv_lib_sectok_sectok_open=yes
14024 ac_cv_lib_sectok_sectok_open=no
14026 rm -f core conftest.err conftest.$ac_objext \
14027 conftest$ac_exeext conftest.$ac_ext
14028 LIBS=$ac_check_lib_save_LIBS
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sectok_sectok_open" >&5
14031 $as_echo "$ac_cv_lib_sectok_sectok_open" >&6; }
14032 if test "x$ac_cv_lib_sectok_sectok_open" = x""yes; then :
14033 cat >>confdefs.h <<_ACEOF
14034 #define HAVE_LIBSECTOK 1
14037 LIBS="-lsectok $LIBS"
14041 if test "$ac_cv_lib_sectok_sectok_open" != yes; then
14042 as_fn_error $? "Can't find libsectok" "$LINENO" 5
14045 $as_echo "#define SMARTCARD 1" >>confdefs.h
14048 $as_echo "#define USE_SECTOK 1" >>confdefs.h
14050 SCARD_MSG="yes, using sectok"
14057 # Check whether user wants OpenSC support
14060 # Check whether --with-opensc was given.
14061 if test "${with_opensc+set}" = set; then :
14062 withval=$with_opensc;
14063 if test "x$withval" != "xno" ; then
14064 if test "x$withval" != "xyes" ; then
14065 OPENSC_CONFIG=$withval/bin/opensc-config
14067 # Extract the first word of "opensc-config", so it can be a program name with args.
14068 set dummy opensc-config; ac_word=$2
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14070 $as_echo_n "checking for $ac_word... " >&6; }
14071 if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then :
14072 $as_echo_n "(cached) " >&6
14074 case $OPENSC_CONFIG in
14076 ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
14079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14080 for as_dir in $PATH
14083 test -z "$as_dir" && as_dir=.
14084 for ac_exec_ext in '' $ac_executable_extensions; do
14085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14086 ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14094 test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
14098 OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
14099 if test -n "$OPENSC_CONFIG"; then
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSC_CONFIG" >&5
14101 $as_echo "$OPENSC_CONFIG" >&6; }
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14104 $as_echo "no" >&6; }
14109 if test "$OPENSC_CONFIG" != "no"; then
14110 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
14111 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
14112 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
14113 LIBS="$LIBS $LIBOPENSC_LIBS"
14114 $as_echo "#define SMARTCARD 1" >>confdefs.h
14117 $as_echo "#define USE_OPENSC 1" >>confdefs.h
14119 SCARD_MSG="yes, using OpenSC"
14127 # Check libraries needed by DNS fingerprint support
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5
14129 $as_echo_n "checking for library containing getrrsetbyname... " >&6; }
14130 if test "${ac_cv_search_getrrsetbyname+set}" = set; then :
14131 $as_echo_n "(cached) " >&6
14133 ac_func_search_save_LIBS=$LIBS
14134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14135 /* end confdefs.h. */
14137 /* Override any GCC internal prototype to avoid an error.
14138 Use char because int might match the return type of a GCC
14139 builtin and then its argument prototype would still apply. */
14143 char getrrsetbyname ();
14147 return getrrsetbyname ();
14152 for ac_lib in '' resolv; do
14153 if test -z "$ac_lib"; then
14154 ac_res="none required"
14157 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14159 if ac_fn_c_try_link "$LINENO"; then :
14160 ac_cv_search_getrrsetbyname=$ac_res
14162 rm -f core conftest.err conftest.$ac_objext \
14164 if test "${ac_cv_search_getrrsetbyname+set}" = set; then :
14168 if test "${ac_cv_search_getrrsetbyname+set}" = set; then :
14171 ac_cv_search_getrrsetbyname=no
14173 rm conftest.$ac_ext
14174 LIBS=$ac_func_search_save_LIBS
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5
14177 $as_echo "$ac_cv_search_getrrsetbyname" >&6; }
14178 ac_res=$ac_cv_search_getrrsetbyname
14179 if test "$ac_res" != no; then :
14180 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14182 $as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h
14186 # Needed by our getrrsetbyname()
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
14188 $as_echo_n "checking for library containing res_query... " >&6; }
14189 if test "${ac_cv_search_res_query+set}" = set; then :
14190 $as_echo_n "(cached) " >&6
14192 ac_func_search_save_LIBS=$LIBS
14193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14194 /* end confdefs.h. */
14196 /* Override any GCC internal prototype to avoid an error.
14197 Use char because int might match the return type of a GCC
14198 builtin and then its argument prototype would still apply. */
14206 return res_query ();
14211 for ac_lib in '' resolv; do
14212 if test -z "$ac_lib"; then
14213 ac_res="none required"
14216 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14218 if ac_fn_c_try_link "$LINENO"; then :
14219 ac_cv_search_res_query=$ac_res
14221 rm -f core conftest.err conftest.$ac_objext \
14223 if test "${ac_cv_search_res_query+set}" = set; then :
14227 if test "${ac_cv_search_res_query+set}" = set; then :
14230 ac_cv_search_res_query=no
14232 rm conftest.$ac_ext
14233 LIBS=$ac_func_search_save_LIBS
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
14236 $as_echo "$ac_cv_search_res_query" >&6; }
14237 ac_res=$ac_cv_search_res_query
14238 if test "$ac_res" != no; then :
14239 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
14244 $as_echo_n "checking for library containing dn_expand... " >&6; }
14245 if test "${ac_cv_search_dn_expand+set}" = set; then :
14246 $as_echo_n "(cached) " >&6
14248 ac_func_search_save_LIBS=$LIBS
14249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250 /* end confdefs.h. */
14252 /* Override any GCC internal prototype to avoid an error.
14253 Use char because int might match the return type of a GCC
14254 builtin and then its argument prototype would still apply. */
14262 return dn_expand ();
14267 for ac_lib in '' resolv; do
14268 if test -z "$ac_lib"; then
14269 ac_res="none required"
14272 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14274 if ac_fn_c_try_link "$LINENO"; then :
14275 ac_cv_search_dn_expand=$ac_res
14277 rm -f core conftest.err conftest.$ac_objext \
14279 if test "${ac_cv_search_dn_expand+set}" = set; then :
14283 if test "${ac_cv_search_dn_expand+set}" = set; then :
14286 ac_cv_search_dn_expand=no
14288 rm conftest.$ac_ext
14289 LIBS=$ac_func_search_save_LIBS
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
14292 $as_echo "$ac_cv_search_dn_expand" >&6; }
14293 ac_res=$ac_cv_search_dn_expand
14294 if test "$ac_res" != no; then :
14295 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5
14300 $as_echo_n "checking if res_query will link... " >&6; }
14301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14302 /* end confdefs.h. */
14304 #include "confdefs.h"
14305 #include <sys/types.h>
14306 #include <netinet/in.h>
14307 #include <arpa/nameser.h>
14309 #include <resolv.h>
14312 res_query (0, 0, 0, 0, 0);
14317 if ac_fn_c_try_link "$LINENO"; then :
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14319 $as_echo "yes" >&6; }
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14322 $as_echo "no" >&6; }
14324 LIBS="$LIBS -lresolv"
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
14326 $as_echo_n "checking for res_query in -lresolv... " >&6; }
14327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14328 /* end confdefs.h. */
14330 #include "confdefs.h"
14331 #include <sys/types.h>
14332 #include <netinet/in.h>
14333 #include <arpa/nameser.h>
14335 #include <resolv.h>
14338 res_query (0, 0, 0, 0, 0);
14343 if ac_fn_c_try_link "$LINENO"; then :
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14345 $as_echo "yes" >&6; }
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14349 $as_echo "no" >&6; }
14351 rm -f core conftest.err conftest.$ac_objext \
14352 conftest$ac_exeext conftest.$ac_ext
14355 rm -f core conftest.err conftest.$ac_objext \
14356 conftest$ac_exeext conftest.$ac_ext
14357 for ac_func in _getshort _getlong
14359 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14360 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14361 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14362 cat >>confdefs.h <<_ACEOF
14363 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14369 ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h>
14370 #include <arpa/nameser.h>
14372 if test "x$ac_cv_have_decl__getshort" = x""yes; then :
14378 cat >>confdefs.h <<_ACEOF
14379 #define HAVE_DECL__GETSHORT $ac_have_decl
14381 ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h>
14382 #include <arpa/nameser.h>
14384 if test "x$ac_cv_have_decl__getlong" = x""yes; then :
14390 cat >>confdefs.h <<_ACEOF
14391 #define HAVE_DECL__GETLONG $ac_have_decl
14394 ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h>
14396 if test "x$ac_cv_member_HEADER_ad" = x""yes; then :
14398 $as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5
14407 $as_echo_n "checking if struct __res_state _res is an extern... " >&6; }
14408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14409 /* end confdefs.h. */
14412 #if HAVE_SYS_TYPES_H
14413 # include <sys/types.h>
14415 #include <netinet/in.h>
14416 #include <arpa/nameser.h>
14417 #include <resolv.h>
14418 extern struct __res_state _res;
14419 int main() { return 0; }
14422 if ac_fn_c_try_link "$LINENO"; then :
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14424 $as_echo "yes" >&6; }
14426 $as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14431 $as_echo "no" >&6; }
14434 rm -f core conftest.err conftest.$ac_objext \
14435 conftest$ac_exeext conftest.$ac_ext
14437 # Check whether user wants SELinux support
14441 # Check whether --with-selinux was given.
14442 if test "${with_selinux+set}" = set; then :
14443 withval=$with_selinux; if test "x$withval" != "xno" ; then
14446 $as_echo "#define WITH_SELINUX 1" >>confdefs.h
14449 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
14450 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
14453 as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5
14458 $as_echo_n "checking for setexeccon in -lselinux... " >&6; }
14459 if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then :
14460 $as_echo_n "(cached) " >&6
14462 ac_check_lib_save_LIBS=$LIBS
14463 LIBS="-lselinux $LIBS"
14464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14465 /* end confdefs.h. */
14467 /* Override any GCC internal prototype to avoid an error.
14468 Use char because int might match the return type of a GCC
14469 builtin and then its argument prototype would still apply. */
14473 char setexeccon ();
14477 return setexeccon ();
14482 if ac_fn_c_try_link "$LINENO"; then :
14483 ac_cv_lib_selinux_setexeccon=yes
14485 ac_cv_lib_selinux_setexeccon=no
14487 rm -f core conftest.err conftest.$ac_objext \
14488 conftest$ac_exeext conftest.$ac_ext
14489 LIBS=$ac_check_lib_save_LIBS
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5
14492 $as_echo "$ac_cv_lib_selinux_setexeccon" >&6; }
14493 if test "x$ac_cv_lib_selinux_setexeccon" = x""yes; then :
14494 LIBSELINUX="-lselinux"
14495 LIBS="$LIBS -lselinux"
14498 as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5
14501 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
14502 for ac_func in getseuserbyname get_default_context_with_level
14504 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14505 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14506 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14507 cat >>confdefs.h <<_ACEOF
14508 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14520 # Check whether user wants Kerberos 5 support
14523 # Check whether --with-kerberos5 was given.
14524 if test "${with_kerberos5+set}" = set; then :
14525 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
14526 if test "x$withval" = "xyes" ; then
14527 KRB5ROOT="/usr/local"
14529 KRB5ROOT=${withval}
14533 $as_echo "#define KRB5 1" >>confdefs.h
14537 # Extract the first word of "krb5-config", so it can be a program name with args.
14538 set dummy krb5-config; ac_word=$2
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14540 $as_echo_n "checking for $ac_word... " >&6; }
14541 if test "${ac_cv_path_KRB5CONF+set}" = set; then :
14542 $as_echo_n "(cached) " >&6
14546 ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
14549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14550 as_dummy="$KRB5ROOT/bin:$PATH"
14551 for as_dir in $as_dummy
14554 test -z "$as_dir" && as_dir=.
14555 for ac_exec_ext in '' $ac_executable_extensions; do
14556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14557 ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
14558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14565 test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config"
14569 KRB5CONF=$ac_cv_path_KRB5CONF
14570 if test -n "$KRB5CONF"; then
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5
14572 $as_echo "$KRB5CONF" >&6; }
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14575 $as_echo "no" >&6; }
14579 if test -x $KRB5CONF ; then
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5
14582 $as_echo_n "checking for gssapi support... " >&6; }
14583 if $KRB5CONF | grep gssapi >/dev/null ; then
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14585 $as_echo "yes" >&6; }
14587 $as_echo "#define GSSAPI 1" >>confdefs.h
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14592 $as_echo "no" >&6; }
14595 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
14596 K5LIBS="`$KRB5CONF --libs $k5confopts`"
14597 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
14599 $as_echo_n "checking whether we are using Heimdal... " >&6; }
14600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14601 /* end confdefs.h. */
14606 char *tmp = heimdal_version;
14611 if ac_fn_c_try_compile "$LINENO"; then :
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14613 $as_echo "yes" >&6; }
14615 $as_echo "#define HEIMDAL 1" >>confdefs.h
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14619 $as_echo "no" >&6; }
14622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14624 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
14625 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
14627 $as_echo_n "checking whether we are using Heimdal... " >&6; }
14628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14629 /* end confdefs.h. */
14634 char *tmp = heimdal_version;
14639 if ac_fn_c_try_compile "$LINENO"; then :
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14641 $as_echo "yes" >&6; }
14642 $as_echo "#define HEIMDAL 1" >>confdefs.h
14644 K5LIBS="-lkrb5 -ldes"
14645 K5LIBS="$K5LIBS -lcom_err -lasn1"
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5
14647 $as_echo_n "checking for net_write in -lroken... " >&6; }
14648 if test "${ac_cv_lib_roken_net_write+set}" = set; then :
14649 $as_echo_n "(cached) " >&6
14651 ac_check_lib_save_LIBS=$LIBS
14652 LIBS="-lroken $LIBS"
14653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14654 /* end confdefs.h. */
14656 /* Override any GCC internal prototype to avoid an error.
14657 Use char because int might match the return type of a GCC
14658 builtin and then its argument prototype would still apply. */
14666 return net_write ();
14671 if ac_fn_c_try_link "$LINENO"; then :
14672 ac_cv_lib_roken_net_write=yes
14674 ac_cv_lib_roken_net_write=no
14676 rm -f core conftest.err conftest.$ac_objext \
14677 conftest$ac_exeext conftest.$ac_ext
14678 LIBS=$ac_check_lib_save_LIBS
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5
14681 $as_echo "$ac_cv_lib_roken_net_write" >&6; }
14682 if test "x$ac_cv_lib_roken_net_write" = x""yes; then :
14683 K5LIBS="$K5LIBS -lroken"
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14689 $as_echo "no" >&6; }
14690 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
14694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
14696 $as_echo_n "checking for library containing dn_expand... " >&6; }
14697 if test "${ac_cv_search_dn_expand+set}" = set; then :
14698 $as_echo_n "(cached) " >&6
14700 ac_func_search_save_LIBS=$LIBS
14701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14702 /* end confdefs.h. */
14704 /* Override any GCC internal prototype to avoid an error.
14705 Use char because int might match the return type of a GCC
14706 builtin and then its argument prototype would still apply. */
14714 return dn_expand ();
14719 for ac_lib in '' resolv; do
14720 if test -z "$ac_lib"; then
14721 ac_res="none required"
14724 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14726 if ac_fn_c_try_link "$LINENO"; then :
14727 ac_cv_search_dn_expand=$ac_res
14729 rm -f core conftest.err conftest.$ac_objext \
14731 if test "${ac_cv_search_dn_expand+set}" = set; then :
14735 if test "${ac_cv_search_dn_expand+set}" = set; then :
14738 ac_cv_search_dn_expand=no
14740 rm conftest.$ac_ext
14741 LIBS=$ac_func_search_save_LIBS
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
14744 $as_echo "$ac_cv_search_dn_expand" >&6; }
14745 ac_res=$ac_cv_search_dn_expand
14746 if test "$ac_res" != no; then :
14747 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5
14753 $as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; }
14754 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then :
14755 $as_echo_n "(cached) " >&6
14757 ac_check_lib_save_LIBS=$LIBS
14758 LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
14759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14760 /* end confdefs.h. */
14762 /* Override any GCC internal prototype to avoid an error.
14763 Use char because int might match the return type of a GCC
14764 builtin and then its argument prototype would still apply. */
14768 char gss_init_sec_context ();
14772 return gss_init_sec_context ();
14777 if ac_fn_c_try_link "$LINENO"; then :
14778 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
14780 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
14782 rm -f core conftest.err conftest.$ac_objext \
14783 conftest$ac_exeext conftest.$ac_ext
14784 LIBS=$ac_check_lib_save_LIBS
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
14787 $as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
14788 if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = x""yes; then :
14789 $as_echo "#define GSSAPI 1" >>confdefs.h
14791 K5LIBS="-lgssapi_krb5 $K5LIBS"
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5
14794 $as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; }
14795 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then :
14796 $as_echo_n "(cached) " >&6
14798 ac_check_lib_save_LIBS=$LIBS
14799 LIBS="-lgssapi $K5LIBS $LIBS"
14800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14801 /* end confdefs.h. */
14803 /* Override any GCC internal prototype to avoid an error.
14804 Use char because int might match the return type of a GCC
14805 builtin and then its argument prototype would still apply. */
14809 char gss_init_sec_context ();
14813 return gss_init_sec_context ();
14818 if ac_fn_c_try_link "$LINENO"; then :
14819 ac_cv_lib_gssapi_gss_init_sec_context=yes
14821 ac_cv_lib_gssapi_gss_init_sec_context=no
14823 rm -f core conftest.err conftest.$ac_objext \
14824 conftest$ac_exeext conftest.$ac_ext
14825 LIBS=$ac_check_lib_save_LIBS
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
14828 $as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
14829 if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = x""yes; then :
14830 $as_echo "#define GSSAPI 1" >>confdefs.h
14832 K5LIBS="-lgssapi $K5LIBS"
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
14835 $as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
14842 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
14843 if test "x$ac_cv_header_gssapi_h" = x""yes; then :
14846 unset ac_cv_header_gssapi_h
14847 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
14848 for ac_header in gssapi.h
14850 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
14851 if test "x$ac_cv_header_gssapi_h" = x""yes; then :
14852 cat >>confdefs.h <<_ACEOF
14853 #define HAVE_GSSAPI_H 1
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
14858 $as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
14871 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
14872 ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default"
14873 if test "x$ac_cv_header_gssapi_krb5_h" = x""yes; then :
14882 if test ! -z "$need_dash_r" ; then
14883 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
14885 if test ! -z "$blibpath" ; then
14886 blibpath="$blibpath:${KRB5ROOT}/lib"
14889 for ac_header in gssapi.h gssapi/gssapi.h
14891 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14892 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14893 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14894 cat >>confdefs.h <<_ACEOF
14895 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14902 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
14904 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14905 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14906 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14907 cat >>confdefs.h <<_ACEOF
14908 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14915 for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
14917 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14918 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14919 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14920 cat >>confdefs.h <<_ACEOF
14921 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14929 LIBS="$LIBS $K5LIBS"
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5
14931 $as_echo_n "checking for library containing k_hasafs... " >&6; }
14932 if test "${ac_cv_search_k_hasafs+set}" = set; then :
14933 $as_echo_n "(cached) " >&6
14935 ac_func_search_save_LIBS=$LIBS
14936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14937 /* end confdefs.h. */
14939 /* Override any GCC internal prototype to avoid an error.
14940 Use char because int might match the return type of a GCC
14941 builtin and then its argument prototype would still apply. */
14949 return k_hasafs ();
14954 for ac_lib in '' kafs; do
14955 if test -z "$ac_lib"; then
14956 ac_res="none required"
14959 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14961 if ac_fn_c_try_link "$LINENO"; then :
14962 ac_cv_search_k_hasafs=$ac_res
14964 rm -f core conftest.err conftest.$ac_objext \
14966 if test "${ac_cv_search_k_hasafs+set}" = set; then :
14970 if test "${ac_cv_search_k_hasafs+set}" = set; then :
14973 ac_cv_search_k_hasafs=no
14975 rm conftest.$ac_ext
14976 LIBS=$ac_func_search_save_LIBS
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5
14979 $as_echo "$ac_cv_search_k_hasafs" >&6; }
14980 ac_res=$ac_cv_search_k_hasafs
14981 if test "$ac_res" != no; then :
14982 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14984 $as_echo "#define USE_AFS 1" >>confdefs.h
14994 # Looking for programs, paths and files
14996 PRIVSEP_PATH=/var/empty
14998 # Check whether --with-privsep-path was given.
14999 if test "${with_privsep_path+set}" = set; then :
15000 withval=$with_privsep_path;
15001 if test -n "$withval" && test "x$withval" != "xno" && \
15002 test "x${withval}" != "xyes"; then
15003 PRIVSEP_PATH=$withval
15012 # Check whether --with-xauth was given.
15013 if test "${with_xauth+set}" = set; then :
15014 withval=$with_xauth;
15015 if test -n "$withval" && test "x$withval" != "xno" && \
15016 test "x${withval}" != "xyes"; then
15017 xauth_path=$withval
15023 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
15024 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
15025 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
15026 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
15027 # Extract the first word of "xauth", so it can be a program name with args.
15028 set dummy xauth; ac_word=$2
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15030 $as_echo_n "checking for $ac_word... " >&6; }
15031 if test "${ac_cv_path_xauth_path+set}" = set; then :
15032 $as_echo_n "(cached) " >&6
15034 case $xauth_path in
15036 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
15039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15040 for as_dir in $TestPath
15043 test -z "$as_dir" && as_dir=.
15044 for ac_exec_ext in '' $ac_executable_extensions; do
15045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15046 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
15047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15057 xauth_path=$ac_cv_path_xauth_path
15058 if test -n "$xauth_path"; then
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5
15060 $as_echo "$xauth_path" >&6; }
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15063 $as_echo "no" >&6; }
15067 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
15068 xauth_path="/usr/openwin/bin/xauth"
15076 # Check whether --enable-strip was given.
15077 if test "${enable_strip+set}" = set; then :
15078 enableval=$enable_strip;
15079 if test "x$enableval" = "xno" ; then
15088 if test -z "$xauth_path" ; then
15089 XAUTH_PATH="undefined"
15093 cat >>confdefs.h <<_ACEOF
15094 #define XAUTH_PATH "$xauth_path"
15097 XAUTH_PATH=$xauth_path
15101 # Check for mail directory (last resort if we cannot get it from headers)
15102 if test ! -z "$MAIL" ; then
15103 maildir=`dirname $MAIL`
15105 cat >>confdefs.h <<_ACEOF
15106 #define MAIL_DIRECTORY "$maildir"
15111 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
15113 $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
15114 disable_ptmx_check=yes
15116 if test -z "$no_dev_ptmx" ; then
15117 if test "x$disable_ptmx_check" != "xyes" ; then
15118 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh`
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5
15120 $as_echo_n "checking for \"/dev/ptmx\"... " >&6; }
15121 if eval "test \"\${$as_ac_File+set}\"" = set; then :
15122 $as_echo_n "(cached) " >&6
15124 test "$cross_compiling" = yes &&
15125 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15126 if test -r ""/dev/ptmx""; then
15127 eval "$as_ac_File=yes"
15129 eval "$as_ac_File=no"
15132 eval ac_res=\$$as_ac_File
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15134 $as_echo "$ac_res" >&6; }
15135 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15138 cat >>confdefs.h <<_ACEOF
15139 #define HAVE_DEV_PTMX 1
15150 if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
15151 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh`
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5
15153 $as_echo_n "checking for \"/dev/ptc\"... " >&6; }
15154 if eval "test \"\${$as_ac_File+set}\"" = set; then :
15155 $as_echo_n "(cached) " >&6
15157 test "$cross_compiling" = yes &&
15158 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15159 if test -r ""/dev/ptc""; then
15160 eval "$as_ac_File=yes"
15162 eval "$as_ac_File=no"
15165 eval ac_res=\$$as_ac_File
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15167 $as_echo "$ac_res" >&6; }
15168 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15171 cat >>confdefs.h <<_ACEOF
15172 #define HAVE_DEV_PTS_AND_PTC 1
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5
15182 $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
15185 # Options from here on. Some of these are preset by platform above
15187 # Check whether --with-mantype was given.
15188 if test "${with_mantype+set}" = set; then :
15189 withval=$with_mantype;
15195 as_fn_error $? "invalid man type: $withval" "$LINENO" 5
15202 if test -z "$MANTYPE"; then
15203 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
15204 for ac_prog in nroff awf
15206 # Extract the first word of "$ac_prog", so it can be a program name with args.
15207 set dummy $ac_prog; ac_word=$2
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15209 $as_echo_n "checking for $ac_word... " >&6; }
15210 if test "${ac_cv_path_NROFF+set}" = set; then :
15211 $as_echo_n "(cached) " >&6
15215 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
15218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15219 for as_dir in $TestPath
15222 test -z "$as_dir" && as_dir=.
15223 for ac_exec_ext in '' $ac_executable_extensions; do
15224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15225 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
15226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15236 NROFF=$ac_cv_path_NROFF
15237 if test -n "$NROFF"; then
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
15239 $as_echo "$NROFF" >&6; }
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15242 $as_echo "no" >&6; }
15246 test -n "$NROFF" && break
15248 test -n "$NROFF" || NROFF="/bin/false"
15250 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
15252 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
15259 if test "$MANTYPE" = "doc"; then
15262 mansubdir=$MANTYPE;
15266 # Check whether to enable MD5 passwords
15269 # Check whether --with-md5-passwords was given.
15270 if test "${with_md5_passwords+set}" = set; then :
15271 withval=$with_md5_passwords;
15272 if test "x$withval" != "xno" ; then
15274 $as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h
15283 # Whether to disable shadow password support
15285 # Check whether --with-shadow was given.
15286 if test "${with_shadow+set}" = set; then :
15287 withval=$with_shadow;
15288 if test "x$withval" = "xno" ; then
15289 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
15298 if test -z "$disable_shadow" ; then
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5
15300 $as_echo_n "checking if the systems has expire shadow information... " >&6; }
15301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15302 /* end confdefs.h. */
15304 #include <sys/types.h>
15305 #include <shadow.h>
15311 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
15316 if ac_fn_c_try_compile "$LINENO"; then :
15317 sp_expire_available=yes
15319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15321 if test "x$sp_expire_available" = "xyes" ; then
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15323 $as_echo "yes" >&6; }
15325 $as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15329 $as_echo "no" >&6; }
15333 # Use ip address instead of hostname in $DISPLAY
15334 if test ! -z "$IPADDR_IN_DISPLAY" ; then
15335 DISPLAY_HACK_MSG="yes"
15337 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
15340 DISPLAY_HACK_MSG="no"
15342 # Check whether --with-ipaddr-display was given.
15343 if test "${with_ipaddr_display+set}" = set; then :
15344 withval=$with_ipaddr_display;
15345 if test "x$withval" != "xno" ; then
15346 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
15348 DISPLAY_HACK_MSG="yes"
15356 # check for /etc/default/login and use it if present.
15357 # Check whether --enable-etc-default-login was given.
15358 if test "${enable_etc_default_login+set}" = set; then :
15359 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5
15361 $as_echo "$as_me: /etc/default/login handling disabled" >&6;}
15362 etc_default_login=no
15364 etc_default_login=yes
15367 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5
15370 $as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
15371 etc_default_login=no
15373 etc_default_login=yes
15379 if test "x$etc_default_login" != "xno"; then
15380 as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh`
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5
15382 $as_echo_n "checking for \"/etc/default/login\"... " >&6; }
15383 if eval "test \"\${$as_ac_File+set}\"" = set; then :
15384 $as_echo_n "(cached) " >&6
15386 test "$cross_compiling" = yes &&
15387 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15388 if test -r ""/etc/default/login""; then
15389 eval "$as_ac_File=yes"
15391 eval "$as_ac_File=no"
15394 eval ac_res=\$$as_ac_File
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15396 $as_echo "$ac_res" >&6; }
15397 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15398 external_path_file=/etc/default/login
15401 if test "x$external_path_file" = "x/etc/default/login"; then
15403 $as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h
15408 if test $ac_cv_func_login_getcapbool = "yes" && \
15409 test $ac_cv_header_login_cap_h = "yes" ; then
15410 external_path_file=/etc/login.conf
15413 # Whether to mess with the default path
15414 SERVER_PATH_MSG="(default)"
15416 # Check whether --with-default-path was given.
15417 if test "${with_default_path+set}" = set; then :
15418 withval=$with_default_path;
15419 if test "x$external_path_file" = "x/etc/login.conf" ; then
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15421 --with-default-path=PATH has no effect on this system.
15422 Edit /etc/login.conf instead." >&5
15423 $as_echo "$as_me: WARNING:
15424 --with-default-path=PATH has no effect on this system.
15425 Edit /etc/login.conf instead." >&2;}
15426 elif test "x$withval" != "xno" ; then
15427 if test ! -z "$external_path_file" ; then
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15429 --with-default-path=PATH will only be used if PATH is not defined in
15430 $external_path_file ." >&5
15431 $as_echo "$as_me: WARNING:
15432 --with-default-path=PATH will only be used if PATH is not defined in
15433 $external_path_file ." >&2;}
15435 user_path="$withval"
15436 SERVER_PATH_MSG="$withval"
15440 if test "x$external_path_file" = "x/etc/login.conf" ; then
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
15442 $as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
15444 if test ! -z "$external_path_file" ; then
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15446 If PATH is defined in $external_path_file, ensure the path to scp is included,
15447 otherwise scp will not work." >&5
15448 $as_echo "$as_me: WARNING:
15449 If PATH is defined in $external_path_file, ensure the path to scp is included,
15450 otherwise scp will not work." >&2;}
15452 if test "$cross_compiling" = yes; then :
15453 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
15456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15457 /* end confdefs.h. */
15459 /* find out what STDPATH is */
15461 #ifdef HAVE_PATHS_H
15462 # include <paths.h>
15464 #ifndef _PATH_STDPATH
15465 # ifdef _PATH_USERPATH /* Irix */
15466 # define _PATH_STDPATH _PATH_USERPATH
15468 # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
15471 #include <sys/types.h>
15472 #include <sys/stat.h>
15474 #define DATA "conftest.stdpath"
15481 fd = fopen(DATA,"w");
15485 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
15492 if ac_fn_c_try_run "$LINENO"; then :
15493 user_path=`cat conftest.stdpath`
15495 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
15497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15498 conftest.$ac_objext conftest.beam conftest.$ac_ext
15501 # make sure $bindir is in USER_PATH so scp will work
15502 t_bindir=`eval echo ${bindir}`
15504 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
15507 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
15509 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
15510 if test $? -ne 0 ; then
15511 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
15512 if test $? -ne 0 ; then
15513 user_path=$user_path:$t_bindir
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5
15515 $as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; }
15522 if test "x$external_path_file" != "x/etc/login.conf" ; then
15524 cat >>confdefs.h <<_ACEOF
15525 #define USER_PATH "$user_path"
15531 # Set superuser path separately to user path
15533 # Check whether --with-superuser-path was given.
15534 if test "${with_superuser_path+set}" = set; then :
15535 withval=$with_superuser_path;
15536 if test -n "$withval" && test "x$withval" != "xno" && \
15537 test "x${withval}" != "xyes"; then
15539 cat >>confdefs.h <<_ACEOF
15540 #define SUPERUSER_PATH "$withval"
15543 superuser_path=$withval
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
15552 $as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; }
15553 IPV4_IN6_HACK_MSG="no"
15555 # Check whether --with-4in6 was given.
15556 if test "${with_4in6+set}" = set; then :
15557 withval=$with_4in6;
15558 if test "x$withval" != "xno" ; then
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15560 $as_echo "yes" >&6; }
15562 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
15564 IPV4_IN6_HACK_MSG="yes"
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15567 $as_echo "no" >&6; }
15572 if test "x$inet6_default_4in6" = "xyes"; then
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
15574 $as_echo "yes (default)" >&6; }
15575 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
15577 IPV4_IN6_HACK_MSG="yes"
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
15580 $as_echo "no (default)" >&6; }
15587 # Whether to enable BSD auth support
15590 # Check whether --with-bsd-auth was given.
15591 if test "${with_bsd_auth+set}" = set; then :
15592 withval=$with_bsd_auth;
15593 if test "x$withval" != "xno" ; then
15595 $as_echo "#define BSD_AUTH 1" >>confdefs.h
15604 # Where to place sshd.pid
15606 # make sure the directory exists
15607 if test ! -d $piddir ; then
15608 piddir=`eval echo ${sysconfdir}`
15610 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
15615 # Check whether --with-pid-dir was given.
15616 if test "${with_pid_dir+set}" = set; then :
15617 withval=$with_pid_dir;
15618 if test -n "$withval" && test "x$withval" != "xno" && \
15619 test "x${withval}" != "xyes"; then
15621 if test ! -d $piddir ; then
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5
15623 $as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
15632 cat >>confdefs.h <<_ACEOF
15633 #define _PATH_SSH_PIDDIR "$piddir"
15638 # Check whether --enable-lastlog was given.
15639 if test "${enable_lastlog+set}" = set; then :
15640 enableval=$enable_lastlog;
15641 if test "x$enableval" = "xno" ; then
15642 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
15649 # Check whether --enable-utmp was given.
15650 if test "${enable_utmp+set}" = set; then :
15651 enableval=$enable_utmp;
15652 if test "x$enableval" = "xno" ; then
15653 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
15660 # Check whether --enable-utmpx was given.
15661 if test "${enable_utmpx+set}" = set; then :
15662 enableval=$enable_utmpx;
15663 if test "x$enableval" = "xno" ; then
15665 $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
15672 # Check whether --enable-wtmp was given.
15673 if test "${enable_wtmp+set}" = set; then :
15674 enableval=$enable_wtmp;
15675 if test "x$enableval" = "xno" ; then
15676 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
15683 # Check whether --enable-wtmpx was given.
15684 if test "${enable_wtmpx+set}" = set; then :
15685 enableval=$enable_wtmpx;
15686 if test "x$enableval" = "xno" ; then
15688 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
15695 # Check whether --enable-libutil was given.
15696 if test "${enable_libutil+set}" = set; then :
15697 enableval=$enable_libutil;
15698 if test "x$enableval" = "xno" ; then
15699 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
15706 # Check whether --enable-pututline was given.
15707 if test "${enable_pututline+set}" = set; then :
15708 enableval=$enable_pututline;
15709 if test "x$enableval" = "xno" ; then
15711 $as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h
15718 # Check whether --enable-pututxline was given.
15719 if test "${enable_pututxline+set}" = set; then :
15720 enableval=$enable_pututxline;
15721 if test "x$enableval" = "xno" ; then
15723 $as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h
15731 # Check whether --with-lastlog was given.
15732 if test "${with_lastlog+set}" = set; then :
15733 withval=$with_lastlog;
15734 if test "x$withval" = "xno" ; then
15735 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
15737 elif test -n "$withval" && test "x${withval}" != "xyes"; then
15738 conf_lastlog_location=$withval
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5
15747 $as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; }
15748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15749 /* end confdefs.h. */
15751 #include <sys/types.h>
15753 #ifdef HAVE_LASTLOG_H
15754 # include <lastlog.h>
15756 #ifdef HAVE_PATHS_H
15757 # include <paths.h>
15759 #ifdef HAVE_LOGIN_H
15760 # include <login.h>
15766 char *lastlog = LASTLOG_FILE;
15771 if ac_fn_c_try_compile "$LINENO"; then :
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15773 $as_echo "yes" >&6; }
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15777 $as_echo "no" >&6; }
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5
15779 $as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; }
15780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15781 /* end confdefs.h. */
15783 #include <sys/types.h>
15785 #ifdef HAVE_LASTLOG_H
15786 # include <lastlog.h>
15788 #ifdef HAVE_PATHS_H
15789 # include <paths.h>
15795 char *lastlog = _PATH_LASTLOG;
15800 if ac_fn_c_try_compile "$LINENO"; then :
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15802 $as_echo "yes" >&6; }
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15806 $as_echo "no" >&6; }
15807 system_lastlog_path=no
15810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15816 if test -z "$conf_lastlog_location"; then
15817 if test x"$system_lastlog_path" = x"no" ; then
15818 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
15819 if (test -d "$f" || test -f "$f") ; then
15820 conf_lastlog_location=$f
15823 if test -z "$conf_lastlog_location"; then
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5
15825 $as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
15830 if test -n "$conf_lastlog_location"; then
15832 cat >>confdefs.h <<_ACEOF
15833 #define CONF_LASTLOG_FILE "$conf_lastlog_location"
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5
15839 $as_echo_n "checking if your system defines UTMP_FILE... " >&6; }
15840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15841 /* end confdefs.h. */
15843 #include <sys/types.h>
15845 #ifdef HAVE_PATHS_H
15846 # include <paths.h>
15852 char *utmp = UTMP_FILE;
15857 if ac_fn_c_try_compile "$LINENO"; then :
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15859 $as_echo "yes" >&6; }
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15862 $as_echo "no" >&6; }
15863 system_utmp_path=no
15866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15867 if test -z "$conf_utmp_location"; then
15868 if test x"$system_utmp_path" = x"no" ; then
15869 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
15870 if test -f $f ; then
15871 conf_utmp_location=$f
15874 if test -z "$conf_utmp_location"; then
15875 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
15880 if test -n "$conf_utmp_location"; then
15882 cat >>confdefs.h <<_ACEOF
15883 #define CONF_UTMP_FILE "$conf_utmp_location"
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5
15889 $as_echo_n "checking if your system defines WTMP_FILE... " >&6; }
15890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15891 /* end confdefs.h. */
15893 #include <sys/types.h>
15895 #ifdef HAVE_PATHS_H
15896 # include <paths.h>
15902 char *wtmp = WTMP_FILE;
15907 if ac_fn_c_try_compile "$LINENO"; then :
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15909 $as_echo "yes" >&6; }
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15912 $as_echo "no" >&6; }
15913 system_wtmp_path=no
15916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15917 if test -z "$conf_wtmp_location"; then
15918 if test x"$system_wtmp_path" = x"no" ; then
15919 for f in /usr/adm/wtmp /var/log/wtmp; do
15920 if test -f $f ; then
15921 conf_wtmp_location=$f
15924 if test -z "$conf_wtmp_location"; then
15925 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
15930 if test -n "$conf_wtmp_location"; then
15932 cat >>confdefs.h <<_ACEOF
15933 #define CONF_WTMP_FILE "$conf_wtmp_location"
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMPX_FILE" >&5
15940 $as_echo_n "checking if your system defines UTMPX_FILE... " >&6; }
15941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15942 /* end confdefs.h. */
15944 #include <sys/types.h>
15946 #ifdef HAVE_UTMPX_H
15949 #ifdef HAVE_PATHS_H
15950 # include <paths.h>
15956 char *utmpx = UTMPX_FILE;
15961 if ac_fn_c_try_compile "$LINENO"; then :
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15963 $as_echo "yes" >&6; }
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15966 $as_echo "no" >&6; }
15967 system_utmpx_path=no
15970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15971 if test -z "$conf_utmpx_location"; then
15972 if test x"$system_utmpx_path" = x"no" ; then
15973 $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
15978 cat >>confdefs.h <<_ACEOF
15979 #define CONF_UTMPX_FILE "$conf_utmpx_location"
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5
15985 $as_echo_n "checking if your system defines WTMPX_FILE... " >&6; }
15986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15987 /* end confdefs.h. */
15989 #include <sys/types.h>
15991 #ifdef HAVE_UTMPX_H
15994 #ifdef HAVE_PATHS_H
15995 # include <paths.h>
16001 char *wtmpx = WTMPX_FILE;
16006 if ac_fn_c_try_compile "$LINENO"; then :
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16008 $as_echo "yes" >&6; }
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16011 $as_echo "no" >&6; }
16012 system_wtmpx_path=no
16015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16016 if test -z "$conf_wtmpx_location"; then
16017 if test x"$system_wtmpx_path" = x"no" ; then
16018 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
16023 cat >>confdefs.h <<_ACEOF
16024 #define CONF_WTMPX_FILE "$conf_wtmpx_location"
16030 if test ! -z "$blibpath" ; then
16031 LDFLAGS="$LDFLAGS $blibflags$blibpath"
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
16033 $as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
16036 CFLAGS="$CFLAGS $werror_flags"
16038 if grep "#define BROKEN_GETADDRINFO 1" confdefs.h >/dev/null || \
16039 test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
16048 ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile scard/Makefile ssh_prng_cmds survey.sh"
16050 cat >confcache <<\_ACEOF
16051 # This file is a shell script that caches the results of configure
16052 # tests run on this system so they can be shared between configure
16053 # scripts and configure runs, see configure's option --config-cache.
16054 # It is not useful on other systems. If it contains results you don't
16055 # want to keep, you may remove or edit it.
16057 # config.status only pays attention to the cache file if you give it
16058 # the --recheck option to rerun configure.
16060 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16061 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16062 # following values.
16066 # The following way of writing the cache mishandles newlines in values,
16067 # but we know of no workaround that is simple, portable, and efficient.
16068 # So, we kill variables containing newlines.
16069 # Ultrix sh set writes to stderr and can't be redirected directly,
16070 # and sets the high bit in the cache file unless we assign to the vars.
16072 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16073 eval ac_val=\$$ac_var
16077 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16078 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16081 _ | IFS | as_nl) ;; #(
16082 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16083 *) { eval $ac_var=; unset $ac_var;} ;;
16089 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16090 *${as_nl}ac_space=\ *)
16091 # `set' does not quote correctly, so add quotes: double-quote
16092 # substitution turns \\\\ into \\, and sed turns \\ into \.
16095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16098 # `set' quotes correctly as required by POSIX, so do not add quotes.
16099 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16108 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16110 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16112 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16113 if test -w "$cache_file"; then
16114 test "x$cache_file" != "x/dev/null" &&
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16116 $as_echo "$as_me: updating cache $cache_file" >&6;}
16117 cat confcache >$cache_file
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16120 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16125 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16126 # Let make expand exec_prefix.
16127 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16129 DEFS=-DHAVE_CONFIG_H
16134 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16135 # 1. Remove the extension, and $U if already installed.
16136 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16137 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16138 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16139 # will be set to the directory where LIBOBJS objects are built.
16140 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16141 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16143 LIBOBJS=$ac_libobjs
16145 LTLIBOBJS=$ac_ltlibobjs
16150 : ${CONFIG_STATUS=./config.status}
16152 ac_clean_files_save=$ac_clean_files
16153 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16155 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16157 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16159 # Generated by $as_me.
16160 # Run this file to recreate the current configuration.
16161 # Compiler output produced by configure, useful for debugging
16162 # configure, is in config.log if it exists.
16165 ac_cs_recheck=false
16168 SHELL=\${CONFIG_SHELL-$SHELL}
16171 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16172 ## -------------------- ##
16173 ## M4sh Initialization. ##
16174 ## -------------------- ##
16176 # Be more Bourne compatible
16177 DUALCASE=1; export DUALCASE # for MKS sh
16178 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16181 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16182 # is contrary to our usage. Disable this feature.
16183 alias -g '${1+"$@"}'='"$@"'
16184 setopt NO_GLOB_SUBST
16186 case `(set -o) 2>/dev/null` in #(
16198 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16199 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16200 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16201 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16202 # Prefer a ksh shell builtin over an external printf program on Solaris,
16203 # but without wasting forks for bash or zsh.
16204 if test -z "$BASH_VERSION$ZSH_VERSION" \
16205 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16206 as_echo='print -r --'
16207 as_echo_n='print -rn --'
16208 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16209 as_echo='printf %s\n'
16210 as_echo_n='printf %s'
16212 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16213 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16214 as_echo_n='/usr/ucb/echo -n'
16216 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16217 as_echo_n_body='eval
16221 expr "X$arg" : "X\\(.*\\)$as_nl";
16222 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16224 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16226 export as_echo_n_body
16227 as_echo_n='sh -c $as_echo_n_body as_echo'
16229 export as_echo_body
16230 as_echo='sh -c $as_echo_body as_echo'
16233 # The user is always right.
16234 if test "${PATH_SEPARATOR+set}" != set; then
16236 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16237 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16244 # We need space, tab and new line, in precisely that order. Quoting is
16245 # there to prevent editors from complaining about space-tab.
16246 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16247 # splitting by setting IFS to empty value.)
16250 # Find who we are. Look in the path if we contain no directory separator.
16252 *[\\/]* ) as_myself=$0 ;;
16253 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16254 for as_dir in $PATH
16257 test -z "$as_dir" && as_dir=.
16258 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16264 # We did not find ourselves, most probably we were run as `sh COMMAND'
16265 # in which case we are not to be found in the path.
16266 if test "x$as_myself" = x; then
16269 if test ! -f "$as_myself"; then
16270 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16274 # Unset variables that we do not need and which cause bugs (e.g. in
16275 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16276 # suppresses any "Segmentation fault" message there. '((' could
16277 # trigger a bug in pdksh 5.2.14.
16278 for as_var in BASH_ENV ENV MAIL MAILPATH
16279 do eval test x\${$as_var+set} = xset \
16280 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16293 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16296 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16297 # ----------------------------------------
16298 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16299 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16300 # script with STATUS, using 1 if that was 0.
16303 as_status=$1; test $as_status -eq 0 && as_status=1
16305 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16306 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16308 $as_echo "$as_me: error: $2" >&2
16309 as_fn_exit $as_status
16313 # as_fn_set_status STATUS
16314 # -----------------------
16315 # Set $? to STATUS, without forking.
16316 as_fn_set_status ()
16319 } # as_fn_set_status
16321 # as_fn_exit STATUS
16322 # -----------------
16323 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16327 as_fn_set_status $1
16333 # Portably unset VAR.
16336 { eval $1=; unset $1;}
16338 as_unset=as_fn_unset
16339 # as_fn_append VAR VALUE
16340 # ----------------------
16341 # Append the text in VALUE to the end of the definition contained in VAR. Take
16342 # advantage of any shell optimizations that allow amortized linear growth over
16343 # repeated appends, instead of the typical quadratic growth present in naive
16345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16346 eval 'as_fn_append ()
16357 # as_fn_arith ARG...
16358 # ------------------
16359 # Perform arithmetic evaluation on the ARGs, and store the result in the
16360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16361 # must be portable across $(()) and expr.
16362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16363 eval 'as_fn_arith ()
16370 as_val=`expr "$@" || test $? -eq 1`
16375 if expr a : '\(a\)' >/dev/null 2>&1 &&
16376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16383 as_basename=basename
16388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16394 as_me=`$as_basename -- "$0" ||
16395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16396 X"$0" : 'X\(//\)$' \| \
16397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16399 sed '/^.*\/\([^/][^/]*\)\/*$/{
16413 # Avoid depending upon Character Ranges.
16414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16417 as_cr_digits='0123456789'
16418 as_cr_alnum=$as_cr_Letters$as_cr_digits
16420 ECHO_C= ECHO_N= ECHO_T=
16421 case `echo -n x` in #(((((
16423 case `echo 'xy\c'` in
16424 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16426 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16433 rm -f conf$$ conf$$.exe conf$$.file
16434 if test -d conf$$.dir; then
16435 rm -f conf$$.dir/conf$$.file
16438 mkdir conf$$.dir 2>/dev/null
16440 if (echo >conf$$.file) 2>/dev/null; then
16441 if ln -s conf$$.file conf$$ 2>/dev/null; then
16443 # ... but there are two gotchas:
16444 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16445 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16446 # In both cases, we have to default to `cp -p'.
16447 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16449 elif ln conf$$.file conf$$ 2>/dev/null; then
16457 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16458 rmdir conf$$.dir 2>/dev/null
16463 # Create "$as_dir" as a directory, including parents if necessary.
16468 -*) as_dir=./$as_dir;;
16470 test -d "$as_dir" || eval $as_mkdir_p || {
16474 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16475 *) as_qdir=$as_dir;;
16477 as_dirs="'$as_qdir' $as_dirs"
16478 as_dir=`$as_dirname -- "$as_dir" ||
16479 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16480 X"$as_dir" : 'X\(//\)[^/]' \| \
16481 X"$as_dir" : 'X\(//\)$' \| \
16482 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16483 $as_echo X"$as_dir" |
16484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16488 /^X\(\/\/\)[^/].*/{
16501 test -d "$as_dir" && break
16503 test -z "$as_dirs" || eval "mkdir $as_dirs"
16504 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16508 if mkdir -p . 2>/dev/null; then
16509 as_mkdir_p='mkdir -p "$as_dir"'
16511 test -d ./-p && rmdir ./-p
16515 if test -x / >/dev/null 2>&1; then
16516 as_test_x='test -x'
16518 if ls -dL / >/dev/null 2>&1; then
16525 if test -d "$1"; then
16531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16532 ???[sx]*):;;*)false;;esac;fi
16536 as_executable_p=$as_test_x
16538 # Sed expression to map a string onto a valid CPP name.
16539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16541 # Sed expression to map a string onto a valid variable name.
16542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16546 ## ----------------------------------- ##
16547 ## Main body of $CONFIG_STATUS script. ##
16548 ## ----------------------------------- ##
16550 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16553 # Save the log message, to keep $0 and so on meaningful, and to
16554 # report actual input values of CONFIG_FILES etc. instead of their
16555 # values after options handling.
16557 This file was extended by OpenSSH $as_me Portable, which was
16558 generated by GNU Autoconf 2.67. Invocation command line was
16560 CONFIG_FILES = $CONFIG_FILES
16561 CONFIG_HEADERS = $CONFIG_HEADERS
16562 CONFIG_LINKS = $CONFIG_LINKS
16563 CONFIG_COMMANDS = $CONFIG_COMMANDS
16566 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16571 case $ac_config_files in *"
16572 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16575 case $ac_config_headers in *"
16576 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16581 # Files that config.status was made for.
16582 config_files="$ac_config_files"
16583 config_headers="$ac_config_headers"
16587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16589 \`$as_me' instantiates files and other configuration actions
16590 from templates according to the current configuration. Unless the files
16591 and actions are specified as TAGs, all are instantiated by default.
16593 Usage: $0 [OPTION]... [TAG]...
16595 -h, --help print this help, then exit
16596 -V, --version print version number and configuration settings, then exit
16597 --config print configuration, then exit
16598 -q, --quiet, --silent
16599 do not print progress messages
16600 -d, --debug don't remove temporary files
16601 --recheck update $as_me by reconfiguring in the same conditions
16602 --file=FILE[:TEMPLATE]
16603 instantiate the configuration file FILE
16604 --header=FILE[:TEMPLATE]
16605 instantiate the configuration header FILE
16607 Configuration files:
16610 Configuration headers:
16613 Report bugs to <openssh-unix-dev@mindrot.org>."
16616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16617 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16619 OpenSSH config.status Portable
16620 configured by $0, generated by GNU Autoconf 2.67,
16621 with options \\"\$ac_cs_config\\"
16623 Copyright (C) 2010 Free Software Foundation, Inc.
16624 This config.status script is free software; the Free Software Foundation
16625 gives unlimited permission to copy, distribute and modify it."
16631 test -n "\$AWK" || AWK=awk
16634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16635 # The default lists apply if the user does not specify any file.
16641 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16642 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16646 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16658 # Handling of the options.
16659 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16661 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16662 $as_echo "$ac_cs_version"; exit ;;
16663 --config | --confi | --conf | --con | --co | --c )
16664 $as_echo "$ac_cs_config"; exit ;;
16665 --debug | --debu | --deb | --de | --d | -d )
16667 --file | --fil | --fi | --f )
16670 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16671 '') as_fn_error $? "missing file argument" ;;
16673 as_fn_append CONFIG_FILES " '$ac_optarg'"
16674 ac_need_defaults=false;;
16675 --header | --heade | --head | --hea )
16678 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16680 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16681 ac_need_defaults=false;;
16683 # Conflict between --help and --header
16684 as_fn_error $? "ambiguous option: \`$1'
16685 Try \`$0 --help' for more information.";;
16686 --help | --hel | -h )
16687 $as_echo "$ac_cs_usage"; exit ;;
16688 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16689 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16692 # This is an error.
16693 -*) as_fn_error $? "unrecognized option: \`$1'
16694 Try \`$0 --help' for more information." ;;
16696 *) as_fn_append ac_config_targets " $1"
16697 ac_need_defaults=false ;;
16703 ac_configure_extra_args=
16705 if $ac_cs_silent; then
16707 ac_configure_extra_args="$ac_configure_extra_args --silent"
16711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16712 if \$ac_cs_recheck; then
16713 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16715 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16716 CONFIG_SHELL='$SHELL'
16717 export CONFIG_SHELL
16722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16726 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16727 ## Running $as_me. ##
16733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16738 # Handling of arguments.
16739 for ac_config_target in $ac_config_targets
16741 case $ac_config_target in
16742 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16743 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16744 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
16745 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
16746 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
16747 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
16748 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
16749 "scard/Makefile") CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;;
16750 "ssh_prng_cmds") CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
16751 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
16753 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
16758 # If the user did not use the arguments to specify the items to instantiate,
16759 # then the envvar interface is used. Set only those that are not.
16760 # We use the long form for the default assignment because of an extremely
16761 # bizarre bug on SunOS 4.1.3.
16762 if $ac_need_defaults; then
16763 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16764 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16767 # Have a temporary directory for convenience. Make it in the build tree
16768 # simply because there is no reason against having it here, and in addition,
16769 # creating and moving files from /tmp can sometimes cause problems.
16770 # Hook for its removal unless debugging.
16771 # Note that there is a small window in which the directory will not be cleaned:
16772 # after its creation but before its name has been assigned to `$tmp'.
16776 trap 'exit_status=$?
16777 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16779 trap 'as_fn_exit 1' 1 2 13 15
16781 # Create a (secure) tmp directory for tmp files.
16784 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16785 test -n "$tmp" && test -d "$tmp"
16788 tmp=./conf$$-$RANDOM
16789 (umask 077 && mkdir "$tmp")
16790 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16792 # Set up the scripts for CONFIG_FILES section.
16793 # No need to generate them if there are no CONFIG_FILES.
16794 # This happens for instance with `./config.status config.h'.
16795 if test -n "$CONFIG_FILES"; then
16798 ac_cr=`echo X | tr X '\015'`
16799 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16800 # But we know of no other shell where ac_cr would be empty at this
16801 # point, so we can use a bashism as a fallback.
16802 if test "x$ac_cr" = x; then
16803 eval ac_cr=\$\'\\r\'
16805 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16806 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16809 ac_cs_awk_cr=$ac_cr
16812 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16817 echo "cat >conf$$subs.awk <<_ACEOF" &&
16818 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16820 } >conf$$subs.sh ||
16821 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16822 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16824 for ac_last_try in false false false false false :; do
16825 . ./conf$$subs.sh ||
16826 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16828 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16829 if test $ac_delim_n = $ac_delim_num; then
16831 elif $ac_last_try; then
16832 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16834 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16837 rm -f conf$$subs.sh
16839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16840 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16844 s/^/S["/; s/!.*/"]=/
16854 s/\(.\{148\}\)..*/\1/
16856 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16861 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16868 s/\(.\{148\}\)..*/\1/
16870 s/["\\]/\\&/g; s/^/"/; s/$/"/
16874 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16879 ' <conf$$subs.awk | sed '
16884 ' >>$CONFIG_STATUS || ac_write_fail=1
16885 rm -f conf$$subs.awk
16886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16888 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16889 for (key in S) S_is_set[key] = 1
16895 nfields = split(line, field, "@")
16897 len = length(field[1])
16898 for (i = 2; i < nfields; i++) {
16900 keylen = length(key)
16901 if (S_is_set[key]) {
16903 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16904 len += length(value) + length(field[++i])
16915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16916 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16917 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16920 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16921 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16924 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16925 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16926 # trailing colons and then remove the whole line if VPATH becomes empty
16927 # (actually we leave an empty line to preserve line numbers).
16928 if test "x$srcdir" = x.; then
16929 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16948 fi # test -n "$CONFIG_FILES"
16950 # Set up the scripts for CONFIG_HEADERS section.
16951 # No need to generate them if there are no CONFIG_HEADERS.
16952 # This happens for instance with `./config.status Makefile'.
16953 if test -n "$CONFIG_HEADERS"; then
16954 cat >"$tmp/defines.awk" <<\_ACAWK ||
16958 # Transform confdefs.h into an awk script `defines.awk', embedded as
16959 # here-document in config.status, that substitutes the proper values into
16960 # config.h.in to produce config.h.
16962 # Create a delimiter string that does not exist in confdefs.h, to ease
16963 # handling of long lines.
16965 for ac_last_try in false false :; do
16966 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16967 if test -z "$ac_t"; then
16969 elif $ac_last_try; then
16970 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16972 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16976 # For the awk script, D is an array of macro values keyed by name,
16977 # likewise P contains macro parameters if any. Preserve backslash
16978 # newline sequences.
16980 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16982 s/.\{148\}/&'"$ac_delim"'/g
16985 s/^[ ]*#[ ]*define[ ][ ]*/ /
16992 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16994 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16998 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16999 D["\1"]=" \3\\\\\\n"\\/p
17001 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17006 s/.\{148\}/&'"$ac_delim"'/g
17011 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17014 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17016 ' <confdefs.h | sed '
17017 s/'"$ac_delim"'/"\\\
17018 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17021 for (key in D) D_is_set[key] = 1
17024 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17026 split(line, arg, " ")
17027 if (arg[1] == "#") {
17031 defundef = substr(arg[1], 2)
17034 split(mac1, mac2, "(") #)
17036 prefix = substr(line, 1, index(line, defundef) - 1)
17037 if (D_is_set[macro]) {
17038 # Preserve the white space surrounding the "#".
17039 print prefix "define", macro P[macro] D[macro]
17042 # Replace #undef with comments. This is necessary, for example,
17043 # in the case of _POSIX_SOURCE, which is predefined and required
17044 # on some systems where configure will not decide to define it.
17045 if (defundef == "undef") {
17046 print "/*", prefix defundef, macro, "*/"
17054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17055 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17056 fi # test -n "$CONFIG_HEADERS"
17059 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
17064 :[FHLC]) ac_mode=$ac_tag; continue;;
17066 case $ac_mode$ac_tag in
17068 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
17069 :[FH]-) ac_tag=-:-;;
17070 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17087 -) ac_f="$tmp/stdin";;
17088 *) # Look for the file first in the build tree, then in the source tree
17089 # (if the path is not absolute). The absolute path cannot be DOS-style,
17090 # because $ac_f cannot contain `:'.
17094 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17096 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
17098 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17099 as_fn_append ac_file_inputs " '$ac_f'"
17102 # Let's still pretend it is `configure' which instantiates (i.e., don't
17103 # use $as_me), people would be surprised to read:
17104 # /* config.h. Generated by config.status. */
17105 configure_input='Generated from '`
17106 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17108 if test x"$ac_file" != x-; then
17109 configure_input="$ac_file. $configure_input"
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17111 $as_echo "$as_me: creating $ac_file" >&6;}
17113 # Neutralize special characters interpreted by sed in replacement strings.
17114 case $configure_input in #(
17115 *\&* | *\|* | *\\* )
17116 ac_sed_conf_input=`$as_echo "$configure_input" |
17117 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17118 *) ac_sed_conf_input=$configure_input;;
17122 *:-:* | *:-) cat >"$tmp/stdin" \
17123 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17128 ac_dir=`$as_dirname -- "$ac_file" ||
17129 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17130 X"$ac_file" : 'X\(//\)[^/]' \| \
17131 X"$ac_file" : 'X\(//\)$' \| \
17132 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17133 $as_echo X"$ac_file" |
17134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17138 /^X\(\/\/\)[^/].*/{
17151 as_dir="$ac_dir"; as_fn_mkdir_p
17155 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17157 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17158 # A ".." for each directory in $ac_dir_suffix.
17159 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17160 case $ac_top_builddir_sub in
17161 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17162 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17165 ac_abs_top_builddir=$ac_pwd
17166 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17167 # for backward compatibility:
17168 ac_top_builddir=$ac_top_build_prefix
17171 .) # We are building in place.
17173 ac_top_srcdir=$ac_top_builddir_sub
17174 ac_abs_top_srcdir=$ac_pwd ;;
17175 [\\/]* | ?:[\\/]* ) # Absolute name.
17176 ac_srcdir=$srcdir$ac_dir_suffix;
17177 ac_top_srcdir=$srcdir
17178 ac_abs_top_srcdir=$srcdir ;;
17179 *) # Relative name.
17180 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17181 ac_top_srcdir=$ac_top_build_prefix$srcdir
17182 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17184 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17194 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17195 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17200 # If the template does not know about datarootdir, expand it.
17201 # FIXME: This hack should be removed a few years after 2.60.
17202 ac_datarootdir_hack=; ac_datarootdir_seen=
17213 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17214 *datarootdir*) ac_datarootdir_seen=yes;;
17215 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17217 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17220 ac_datarootdir_hack='
17221 s&@datadir@&$datadir&g
17222 s&@docdir@&$docdir&g
17223 s&@infodir@&$infodir&g
17224 s&@localedir@&$localedir&g
17225 s&@mandir@&$mandir&g
17226 s&\\\${datarootdir}&$datarootdir&g' ;;
17230 # Neutralize VPATH when `$srcdir' = `.'.
17231 # Shell code in configure.ac might set extrasub.
17232 # FIXME: do we really want to maintain this feature?
17233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17234 ac_sed_extra="$ac_vpsub
17237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17239 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17240 s|@configure_input@|$ac_sed_conf_input|;t t
17241 s&@top_builddir@&$ac_top_builddir_sub&;t t
17242 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17243 s&@srcdir@&$ac_srcdir&;t t
17244 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17245 s&@top_srcdir@&$ac_top_srcdir&;t t
17246 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17247 s&@builddir@&$ac_builddir&;t t
17248 s&@abs_builddir@&$ac_abs_builddir&;t t
17249 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17250 s&@INSTALL@&$ac_INSTALL&;t t
17251 $ac_datarootdir_hack
17253 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17254 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17256 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17257 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17258 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17260 which seems to be undefined. Please make sure it is defined" >&5
17261 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17262 which seems to be undefined. Please make sure it is defined" >&2;}
17266 -) cat "$tmp/out" && rm -f "$tmp/out";;
17267 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17269 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17275 if test x"$ac_file" != x-; then
17277 $as_echo "/* $configure_input */" \
17278 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17279 } >"$tmp/config.h" \
17280 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17281 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17283 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17286 mv "$tmp/config.h" "$ac_file" \
17287 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17290 $as_echo "/* $configure_input */" \
17291 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17292 || as_fn_error $? "could not create -" "$LINENO" 5
17304 ac_clean_files=$ac_clean_files_save
17306 test $ac_write_fail = 0 ||
17307 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17310 # configure is writing to config.log, and then calls config.status.
17311 # config.status does its own redirection, appending to config.log.
17312 # Unfortunately, on DOS this fails, as config.log is still kept open
17313 # by configure, so config.status won't be able to write to it; its
17314 # output is simply discarded. So we exec the FD to /dev/null,
17315 # effectively closing config.log, so it can be properly (re)opened and
17316 # appended to by config.status. When coming back to configure, we
17317 # need to make the FD available again.
17318 if test "$no_create" != yes; then
17320 ac_config_status_args=
17321 test "$silent" = yes &&
17322 ac_config_status_args="$ac_config_status_args --quiet"
17324 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17326 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17327 # would make configure fail if this is the last instruction.
17328 $ac_cs_success || as_fn_exit 1
17330 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17332 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17336 # Print summary of options
17338 # Someone please show me a better way :)
17339 A=`eval echo ${prefix}` ; A=`eval echo ${A}`
17340 B=`eval echo ${bindir}` ; B=`eval echo ${B}`
17341 C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
17342 D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
17343 E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
17344 F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
17345 G=`eval echo ${piddir}` ; G=`eval echo ${G}`
17346 H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
17347 I=`eval echo ${user_path}` ; I=`eval echo ${I}`
17348 J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
17351 echo "OpenSSH has been configured with the following options:"
17352 echo " User binaries: $B"
17353 echo " System binaries: $C"
17354 echo " Configuration files: $D"
17355 echo " Askpass program: $E"
17356 echo " Manual pages: $F"
17357 echo " PID file: $G"
17358 echo " Privilege separation chroot path: $H"
17359 if test "x$external_path_file" = "x/etc/login.conf" ; then
17360 echo " At runtime, sshd will use the path defined in $external_path_file"
17361 echo " Make sure the path to scp is present, otherwise scp will not work"
17363 echo " sshd default user PATH: $I"
17364 if test ! -z "$external_path_file"; then
17365 echo " (If PATH is set in $external_path_file it will be used instead. If"
17366 echo " used, ensure the path to scp is present, otherwise scp will not work.)"
17369 if test ! -z "$superuser_path" ; then
17370 echo " sshd superuser user PATH: $J"
17372 echo " Manpage format: $MANTYPE"
17373 echo " PAM support: $PAM_MSG"
17374 echo " OSF SIA support: $SIA_MSG"
17375 echo " KerberosV support: $KRB5_MSG"
17376 echo " SELinux support: $SELINUX_MSG"
17377 echo " Smartcard support: $SCARD_MSG"
17378 echo " S/KEY support: $SKEY_MSG"
17379 echo " TCP Wrappers support: $TCPW_MSG"
17380 echo " MD5 password support: $MD5_MSG"
17381 echo " libedit support: $LIBEDIT_MSG"
17382 echo " Solaris process contract support: $SPC_MSG"
17383 echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
17384 echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
17385 echo " BSD Auth support: $BSD_AUTH_MSG"
17386 echo " Random number source: $RAND_MSG"
17387 if test ! -z "$USE_RAND_HELPER" ; then
17388 echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
17393 echo " Host: ${host}"
17394 echo " Compiler: ${CC}"
17395 echo " Compiler flags: ${CFLAGS}"
17396 echo "Preprocessor flags: ${CPPFLAGS}"
17397 echo " Linker flags: ${LDFLAGS}"
17398 echo " Libraries: ${LIBS}"
17399 if test ! -z "${SSHDLIBS}"; then
17400 echo " +for sshd: ${SSHDLIBS}"
17405 if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
17406 echo "SVR4 style packages are supported with \"make package\""
17410 if test "x$PAM_MSG" = "xyes" ; then
17411 echo "PAM is enabled. You may need to install a PAM control file "
17412 echo "for sshd, otherwise password authentication may fail. "
17413 echo "Example PAM control files can be found in the contrib/ "
17414 echo "subdirectory"
17418 if test ! -z "$RAND_HELPER_CMDHASH" ; then
17419 echo "WARNING: you are using the builtin random number collection "
17420 echo "service. Please read WARNING.RNG and request that your OS "
17421 echo "vendor includes kernel-based random number collection in "
17422 echo "future versions of your OS."
17426 if test ! -z "$NO_PEERCHECK" ; then
17427 echo "WARNING: the operating system that you are using does not"
17428 echo "appear to support getpeereid(), getpeerucred() or the"
17429 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
17430 echo "enforce security checks to prevent unauthorised connections to"
17431 echo "ssh-agent. Their absence increases the risk that a malicious"
17432 echo "user can connect to your agent."
17436 if test "$AUDIT_MODULE" = "bsm" ; then
17437 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
17438 echo "See the Solaris section in README.platform for details."