2 # From configure.ac Revision: 1.469.4.1 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.68 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.
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
114 if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there. '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
144 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145 # is contrary to our usage. Disable this feature.
146 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 case \`(set -o) 2>/dev/null\` in #(
157 as_required="as_fn_return () { (exit \$1); }
158 as_fn_success () { as_fn_return 0; }
159 as_fn_failure () { as_fn_return 1; }
160 as_fn_ret_success () { return 0; }
161 as_fn_ret_failure () { return 1; }
164 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
171 exitcode=1; echo positional parameters were not saved.
173 test x\$exitcode = x0 || exit 1"
174 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test \$(( 1 + 1 )) = 2 || exit 1"
179 if (eval "$as_required") 2>/dev/null; then :
184 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
189 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 test -z "$as_dir" && as_dir=.
196 for as_base in sh bash ksh sh5; do
197 # Try only shells that exist, to save several forks.
198 as_shell=$as_dir/$as_base
199 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
200 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 CONFIG_SHELL=$as_shell as_have_required=yes
202 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
211 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
212 CONFIG_SHELL=$SHELL as_have_required=yes
217 if test "x$CONFIG_SHELL" != x; then :
218 # We cannot yet assume a decent shell, so we have to provide a
219 # neutralization value for shells without unset; and this also
220 # works around shells that cannot unset nonexistent variables.
221 # Preserve -v and -x to the replacement shell.
224 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
227 *v*x* | *x*v* ) as_opts=-vx ;;
232 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
235 if test x$as_have_required = xno; then :
236 $as_echo "$0: This script requires a shell more modern than all"
237 $as_echo "$0: the shells that I found on your system."
238 if test x${ZSH_VERSION+set} = xset ; then
239 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
240 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
242 $as_echo "$0: Please tell bug-autoconf@gnu.org and
243 $0: openssh-unix-dev@mindrot.org about your system,
244 $0: including any error possibly output before this
245 $0: message. Then install a modern shell, or manually run
246 $0: the script under such a shell if you do have one."
252 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
263 # Portably unset VAR.
266 { eval $1=; unset $1;}
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
290 # Create "$as_dir" as a directory, including parents if necessary.
295 -*) as_dir=./$as_dir;;
297 test -d "$as_dir" || eval $as_mkdir_p || {
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
328 test -d "$as_dir" && break
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 as_val=`expr "$@" || test $? -eq 1`
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
378 as_status=$1; test $as_status -eq 0 && as_status=1
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
460 # Exit status is that of the last command.
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
482 mkdir conf$$.dir 2>/dev/null
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
493 elif ln conf$$.file conf$$ 2>/dev/null; then
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
507 test -d ./-p && rmdir ./-p
511 if test -x / >/dev/null 2>&1; then
514 if ls -dL / >/dev/null 2>&1; then
521 if test -d "$1"; then
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
532 as_executable_p=$as_test_x
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 test -n "$DJDIR" || exec 7<&0 </dev/null
545 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546 # so uname gets run too.
547 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
552 ac_default_prefix=/usr/local
554 ac_config_libobj_dir=.
561 # Identity of this package.
562 PACKAGE_NAME='OpenSSH'
563 PACKAGE_TARNAME='openssh'
564 PACKAGE_VERSION='Portable'
565 PACKAGE_STRING='OpenSSH Portable'
566 PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
569 ac_unique_file="ssh.c"
570 # Factoring default headers for most tests.
571 ac_includes_default="\
573 #ifdef HAVE_SYS_TYPES_H
574 # include <sys/types.h>
576 #ifdef HAVE_SYS_STAT_H
577 # include <sys/stat.h>
583 # ifdef HAVE_STDLIB_H
588 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
593 #ifdef HAVE_STRINGS_H
594 # include <strings.h>
596 #ifdef HAVE_INTTYPES_H
597 # include <inttypes.h>
606 ac_subst_vars='LTLIBOBJS
620 INSTALL_SSH_PRNG_CMDS
638 INSTALL_SSH_RAND_HELPER
646 LOGIN_PROGRAM_FALLBACK
648 MAKE_PACKAGE_SUPPORTED
714 program_transform_name
727 enable_option_checking
736 with_solaris_contracts
737 with_solaris_projects
740 with_zlib_version_check
746 with_openssl_header_check
763 enable_etc_default_login
779 ac_precious_vars='build_alias
790 # Initialize some variables set by options.
792 ac_init_version=false
793 ac_unrecognized_opts=
795 # The variables have the same names as the options, with
796 # dashes changed to underlines.
804 program_transform_name=s,x,x,
812 # Installation directory options.
813 # These are left unexpanded so users can "make install exec_prefix=/foo"
814 # and all the variables that are supposed to be based on exec_prefix
815 # by default will actually change.
816 # Use braces instead of parens because sh, perl, etc. also accept them.
817 # (The list follows the same order as the GNU Coding Standards.)
818 bindir='${exec_prefix}/bin'
819 sbindir='${exec_prefix}/sbin'
820 libexecdir='${exec_prefix}/libexec'
821 datarootdir='${prefix}/share'
822 datadir='${datarootdir}'
823 sysconfdir='${prefix}/etc'
824 sharedstatedir='${prefix}/com'
825 localstatedir='${prefix}/var'
826 includedir='${prefix}/include'
827 oldincludedir='/usr/include'
828 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
829 infodir='${datarootdir}/info'
834 libdir='${exec_prefix}/lib'
835 localedir='${datarootdir}/locale'
836 mandir='${datarootdir}/man'
842 # If the previous option needs an argument, assign it.
843 if test -n "$ac_prev"; then
844 eval $ac_prev=\$ac_option
850 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
855 # Accept the important Cygnus configure options, so we can diagnose typos.
857 case $ac_dashdash$ac_option in
861 -bindir | --bindir | --bindi | --bind | --bin | --bi)
863 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 -build | --build | --buil | --bui | --bu)
867 ac_prev=build_alias ;;
868 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
869 build_alias=$ac_optarg ;;
871 -cache-file | --cache-file | --cache-fil | --cache-fi \
872 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
873 ac_prev=cache_file ;;
874 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
875 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
876 cache_file=$ac_optarg ;;
879 cache_file=config.cache ;;
881 -datadir | --datadir | --datadi | --datad)
883 -datadir=* | --datadir=* | --datadi=* | --datad=*)
884 datadir=$ac_optarg ;;
886 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
887 | --dataroo | --dataro | --datar)
888 ac_prev=datarootdir ;;
889 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
890 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
891 datarootdir=$ac_optarg ;;
893 -disable-* | --disable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error $? "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
907 eval enable_$ac_useropt=no ;;
909 -docdir | --docdir | --docdi | --doc | --do)
911 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 -enable-* | --enable-*)
920 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 as_fn_error $? "invalid feature name: $ac_useropt"
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
933 eval enable_$ac_useropt=\$ac_optarg ;;
935 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
936 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
937 | --exec | --exe | --ex)
938 ac_prev=exec_prefix ;;
939 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
940 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
941 | --exec=* | --exe=* | --ex=*)
942 exec_prefix=$ac_optarg ;;
944 -gas | --gas | --ga | --g)
945 # Obsolete; use --with-gas.
948 -help | --help | --hel | --he | -h)
950 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
951 ac_init_help=recursive ;;
952 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
953 ac_init_help=short ;;
955 -host | --host | --hos | --ho)
956 ac_prev=host_alias ;;
957 -host=* | --host=* | --hos=* | --ho=*)
958 host_alias=$ac_optarg ;;
960 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
962 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
964 htmldir=$ac_optarg ;;
966 -includedir | --includedir | --includedi | --included | --include \
967 | --includ | --inclu | --incl | --inc)
968 ac_prev=includedir ;;
969 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
970 | --includ=* | --inclu=* | --incl=* | --inc=*)
971 includedir=$ac_optarg ;;
973 -infodir | --infodir | --infodi | --infod | --info | --inf)
975 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
976 infodir=$ac_optarg ;;
978 -libdir | --libdir | --libdi | --libd)
980 -libdir=* | --libdir=* | --libdi=* | --libd=*)
983 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
984 | --libexe | --libex | --libe)
985 ac_prev=libexecdir ;;
986 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
987 | --libexe=* | --libex=* | --libe=*)
988 libexecdir=$ac_optarg ;;
990 -localedir | --localedir | --localedi | --localed | --locale)
992 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
993 localedir=$ac_optarg ;;
995 -localstatedir | --localstatedir | --localstatedi | --localstated \
996 | --localstate | --localstat | --localsta | --localst | --locals)
997 ac_prev=localstatedir ;;
998 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
999 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1000 localstatedir=$ac_optarg ;;
1002 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1004 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1005 mandir=$ac_optarg ;;
1007 -nfp | --nfp | --nf)
1008 # Obsolete; use --without-fp.
1011 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1012 | --no-cr | --no-c | -n)
1015 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1016 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1020 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1021 | --oldin | --oldi | --old | --ol | --o)
1022 ac_prev=oldincludedir ;;
1023 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1024 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1025 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1026 oldincludedir=$ac_optarg ;;
1028 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1030 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1031 prefix=$ac_optarg ;;
1033 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1034 | --program-pre | --program-pr | --program-p)
1035 ac_prev=program_prefix ;;
1036 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1037 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1038 program_prefix=$ac_optarg ;;
1040 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1041 | --program-suf | --program-su | --program-s)
1042 ac_prev=program_suffix ;;
1043 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1044 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1045 program_suffix=$ac_optarg ;;
1047 -program-transform-name | --program-transform-name \
1048 | --program-transform-nam | --program-transform-na \
1049 | --program-transform-n | --program-transform- \
1050 | --program-transform | --program-transfor \
1051 | --program-transfo | --program-transf \
1052 | --program-trans | --program-tran \
1053 | --progr-tra | --program-tr | --program-t)
1054 ac_prev=program_transform_name ;;
1055 -program-transform-name=* | --program-transform-name=* \
1056 | --program-transform-nam=* | --program-transform-na=* \
1057 | --program-transform-n=* | --program-transform-=* \
1058 | --program-transform=* | --program-transfor=* \
1059 | --program-transfo=* | --program-transf=* \
1060 | --program-trans=* | --program-tran=* \
1061 | --progr-tra=* | --program-tr=* | --program-t=*)
1062 program_transform_name=$ac_optarg ;;
1064 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1066 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1067 pdfdir=$ac_optarg ;;
1069 -psdir | --psdir | --psdi | --psd | --ps)
1071 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075 | -silent | --silent | --silen | --sile | --sil)
1078 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1080 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1082 sbindir=$ac_optarg ;;
1084 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1085 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1086 | --sharedst | --shareds | --shared | --share | --shar \
1088 ac_prev=sharedstatedir ;;
1089 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1090 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1091 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1093 sharedstatedir=$ac_optarg ;;
1095 -site | --site | --sit)
1097 -site=* | --site=* | --sit=*)
1100 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1102 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1103 srcdir=$ac_optarg ;;
1105 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1106 | --syscon | --sysco | --sysc | --sys | --sy)
1107 ac_prev=sysconfdir ;;
1108 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1109 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1110 sysconfdir=$ac_optarg ;;
1112 -target | --target | --targe | --targ | --tar | --ta | --t)
1113 ac_prev=target_alias ;;
1114 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1115 target_alias=$ac_optarg ;;
1117 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120 -version | --version | --versio | --versi | --vers | -V)
1121 ac_init_version=: ;;
1124 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127 as_fn_error $? "invalid package name: $ac_useropt"
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1137 eval with_$ac_useropt=\$ac_optarg ;;
1139 -without-* | --without-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1153 eval with_$ac_useropt=no ;;
1156 # Obsolete; use --with-x.
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1173 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1174 Try \`$0 --help' for more information"
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
1180 case $ac_envvar in #(
1181 '' | [0-9]* | *[!_$as_cr_alnum]* )
1182 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1184 eval $ac_envvar=\$ac_optarg
1185 export $ac_envvar ;;
1188 # FIXME: should be removed in autoconf 3.0.
1189 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1198 if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200 as_fn_error $? "missing argument to $ac_option"
1203 if test -n "$ac_unrecognized_opts"; then
1204 case $enable_option_checking in
1206 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211 # Check all directory arguments for consistency.
1212 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213 datadir sysconfdir sharedstatedir localstatedir includedir \
1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215 libdir localedir mandir
1217 eval ac_val=\$$ac_var
1218 # Remove trailing slashes.
1221 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1222 eval $ac_var=\$ac_val;;
1224 # Be sure to have absolute directory names.
1226 [\\/$]* | ?:[\\/]* ) continue;;
1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1229 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1237 target=$target_alias
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241 if test "x$build_alias" = x; then
1242 cross_compiling=maybe
1243 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1244 If a cross compiler is detected then cross compile mode will be used" >&2
1245 elif test "x$build_alias" != "x$host_alias"; then
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253 test "$silent" = yes && exec 6>/dev/null
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259 as_fn_error $? "working directory cannot be determined"
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 as_fn_error $? "pwd does not report name of working directory"
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$as_myself" ||
1269 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$as_myself" : 'X\(//\)[^/]' \| \
1271 X"$as_myself" : 'X\(//\)$' \| \
1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273 $as_echo X"$as_myself" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1296 ac_srcdir_defaulted=no
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1302 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316 for ac_var in $ac_precious_vars; do
1317 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_${ac_var}_value=\$${ac_var}
1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324 # Report the --help message.
1326 if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1330 \`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE. See below for descriptions of some of the useful variables.
1337 Defaults for the options are specified in brackets.
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
1344 -q, --quiet, --silent do not print \`checking ...' messages
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1350 Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
1352 [$ac_default_prefix]
1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1361 For better control, use the options below.
1363 Fine tuning of the installation directories:
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
1388 --build=BUILD configure for building on BUILD [guessed]
1389 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1393 if test -n "$ac_init_help"; then
1394 case $ac_init_help in
1395 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1400 --disable-option-checking ignore unrecognized --enable/--with options
1401 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1402 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1403 --disable-largefile omit support for large files
1404 --disable-strip Disable calling strip(1) on install
1405 --disable-etc-default-login Disable using PATH from /etc/default/login no
1406 --disable-lastlog disable use of lastlog even if detected no
1407 --disable-utmp disable use of utmp even if detected no
1408 --disable-utmpx disable use of utmpx even if detected no
1409 --disable-wtmp disable use of wtmp even if detected no
1410 --disable-wtmpx disable use of wtmpx even if detected no
1411 --disable-libutil disable use of libutil (login() etc.) no
1412 --disable-pututline disable use of pututline() etc. (uwtmp) no
1413 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1416 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1417 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1418 --without-stackprotect Don't use compiler's stack protection
1419 --without-rpath Disable auto-added -R linker paths
1420 --with-cflags Specify additional flags to pass to compiler
1421 --with-cppflags Specify additional flags to pass to preprocessor
1422 --with-ldflags Specify additional flags to pass to linker
1423 --with-libs Specify additional libraries to link with
1424 --with-Werror Build main code with -Werror
1425 --with-solaris-contracts Enable Solaris process contracts (experimental)
1426 --with-solaris-projects Enable Solaris projects (experimental)
1427 --with-osfsia Enable Digital Unix SIA
1428 --with-zlib=PATH Use zlib in PATH
1429 --without-zlib-version-check Disable zlib version check
1430 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1431 --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
1432 --with-libedit[=PATH] Enable libedit support for sftp
1433 --with-audit=module Enable audit support (modules=debug,bsm,linux)
1434 --with-ssl-dir=PATH Specify path to OpenSSL installation
1435 --without-openssl-header-check Disable OpenSSL version consistency check
1436 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1437 --with-pam Enable PAM support
1438 --with-rand-helper Use subprocess to gather strong randomness
1439 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1440 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1441 --with-entropy-timeout Specify entropy gathering command timeout (msec)
1442 --with-privsep-user=user Specify non-privileged user for privilege separation
1443 --with-selinux Enable SELinux support
1444 --with-kerberos5=PATH Enable Kerberos 5 support
1445 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1446 --with-xauth=PATH Specify path to xauth program
1447 --with-mantype=man|cat|doc Set man page type
1448 --with-md5-passwords Enable use of MD5 passwords
1449 --without-shadow Disable shadow password support
1450 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
1451 --with-default-path= Specify default \$PATH environment for server
1452 --with-superuser-path= Specify different path for super-user
1453 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1454 --with-bsd-auth Enable BSD auth support
1455 --with-pid-dir=PATH Specify location of ssh.pid file
1456 --with-lastlog=FILE|DIR specify lastlog location common locations
1458 Some influential environment variables:
1459 CC C compiler command
1460 CFLAGS C compiler flags
1461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1462 nonstandard directory <lib dir>
1463 LIBS libraries to pass to the linker, e.g. -l<library>
1464 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1465 you have headers in a nonstandard directory <include dir>
1468 Use these variables to override the choices made by `configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1471 Report bugs to <openssh-unix-dev@mindrot.org>.
1476 if test "$ac_init_help" = "recursive"; then
1477 # If there are subdirs, report their specific --help.
1478 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479 test -d "$ac_dir" ||
1480 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1488 # A ".." for each directory in $ac_dir_suffix.
1489 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1490 case $ac_top_builddir_sub in
1491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1501 .) # We are building in place.
1503 ac_top_srcdir=$ac_top_builddir_sub
1504 ac_abs_top_srcdir=$ac_pwd ;;
1505 [\\/]* | ?:[\\/]* ) # Absolute name.
1506 ac_srcdir=$srcdir$ac_dir_suffix;
1507 ac_top_srcdir=$srcdir
1508 ac_abs_top_srcdir=$srcdir ;;
1510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511 ac_top_srcdir=$ac_top_build_prefix$srcdir
1512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1516 cd "$ac_dir" || { ac_status=$?; continue; }
1517 # Check for guested configure.
1518 if test -f "$ac_srcdir/configure.gnu"; then
1520 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521 elif test -f "$ac_srcdir/configure"; then
1523 $SHELL "$ac_srcdir/configure" --help=recursive
1525 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1527 cd "$ac_pwd" || { ac_status=$?; break; }
1531 test -n "$ac_init_help" && exit $ac_status
1532 if $ac_init_version; then
1534 OpenSSH configure Portable
1535 generated by GNU Autoconf 2.68
1537 Copyright (C) 2010 Free Software Foundation, Inc.
1538 This configure script is free software; the Free Software Foundation
1539 gives unlimited permission to copy, distribute and modify it.
1544 ## ------------------------ ##
1545 ## Autoconf initialization. ##
1546 ## ------------------------ ##
1548 # ac_fn_c_try_compile LINENO
1549 # --------------------------
1550 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1551 ac_fn_c_try_compile ()
1553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554 rm -f conftest.$ac_objext
1555 if { { ac_try="$ac_compile"
1557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558 *) ac_try_echo=$ac_try;;
1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 $as_echo "$ac_try_echo"; } >&5
1562 (eval "$ac_compile") 2>conftest.err
1564 if test -s conftest.err; then
1565 grep -v '^ *+' conftest.err >conftest.er1
1566 cat conftest.er1 >&5
1567 mv -f conftest.er1 conftest.err
1569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570 test $ac_status = 0; } && {
1571 test -z "$ac_c_werror_flag" ||
1572 test ! -s conftest.err
1573 } && test -s conftest.$ac_objext; then :
1576 $as_echo "$as_me: failed program was:" >&5
1577 sed 's/^/| /' conftest.$ac_ext >&5
1581 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1582 as_fn_set_status $ac_retval
1584 } # ac_fn_c_try_compile
1586 # ac_fn_c_try_run LINENO
1587 # ----------------------
1588 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1589 # that executables *can* be run.
1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593 if { { ac_try="$ac_link"
1595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596 *) ac_try_echo=$ac_try;;
1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599 $as_echo "$ac_try_echo"; } >&5
1600 (eval "$ac_link") 2>&5
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1604 { { case "(($ac_try" in
1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606 *) ac_try_echo=$ac_try;;
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610 (eval "$ac_try") 2>&5
1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613 test $ac_status = 0; }; }; then :
1616 $as_echo "$as_me: program exited with status $ac_status" >&5
1617 $as_echo "$as_me: failed program was:" >&5
1618 sed 's/^/| /' conftest.$ac_ext >&5
1620 ac_retval=$ac_status
1622 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1628 # ac_fn_c_try_cpp LINENO
1629 # ----------------------
1630 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 if { { ac_try="$ac_cpp conftest.$ac_ext"
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1643 if test -s conftest.err; then
1644 grep -v '^ *+' conftest.err >conftest.er1
1645 cat conftest.er1 >&5
1646 mv -f conftest.er1 conftest.err
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } > conftest.i && {
1650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1651 test ! -s conftest.err
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 as_fn_set_status $ac_retval
1665 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1666 # -------------------------------------------------------
1667 # Tests whether HEADER exists and can be compiled using the include files in
1668 # INCLUDES, setting the cache variable VAR accordingly.
1669 ac_fn_c_check_header_compile ()
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673 $as_echo_n "checking for $2... " >&6; }
1674 if eval \${$3+:} false; then :
1675 $as_echo_n "(cached) " >&6
1677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678 /* end confdefs.h. */
1682 if ac_fn_c_try_compile "$LINENO"; then :
1687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1691 $as_echo "$ac_res" >&6; }
1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694 } # ac_fn_c_check_header_compile
1696 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1697 # ---------------------------------------------
1698 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1700 ac_fn_c_check_decl ()
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 as_decl_name=`echo $2|sed 's/ *(.*//'`
1704 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1706 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1707 if eval \${$3+:} false; then :
1708 $as_echo_n "(cached) " >&6
1710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1711 /* end confdefs.h. */
1716 #ifndef $as_decl_name
1718 (void) $as_decl_use;
1720 (void) $as_decl_name;
1728 if ac_fn_c_try_compile "$LINENO"; then :
1733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737 $as_echo "$ac_res" >&6; }
1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 } # ac_fn_c_check_decl
1742 # ac_fn_c_try_link LINENO
1743 # -----------------------
1744 # Try to link conftest.$ac_ext, and return whether this succeeded.
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 rm -f conftest.$ac_objext conftest$ac_exeext
1749 if { { ac_try="$ac_link"
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_link") 2>conftest.err
1758 if test -s conftest.err; then
1759 grep -v '^ *+' conftest.err >conftest.er1
1760 cat conftest.er1 >&5
1761 mv -f conftest.er1 conftest.err
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; } && {
1765 test -z "$ac_c_werror_flag" ||
1766 test ! -s conftest.err
1767 } && test -s conftest$ac_exeext && {
1768 test "$cross_compiling" = yes ||
1769 $as_test_x conftest$ac_exeext
1773 $as_echo "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1778 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1779 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1780 # interfere with the next link command; also delete a directory that is
1781 # left behind by Apple's compiler. We do this before executing the actions.
1782 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 as_fn_set_status $ac_retval
1786 } # ac_fn_c_try_link
1788 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1789 # -------------------------------------------------------
1790 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1791 # the include files in INCLUDES and setting the cache variable VAR
1793 ac_fn_c_check_header_mongrel ()
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 if eval \${$3+:} false; then :
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if eval \${$3+:} false; then :
1800 $as_echo_n "(cached) " >&6
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 $as_echo "$ac_res" >&6; }
1806 # Is the header compilable?
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1808 $as_echo_n "checking $2 usability... " >&6; }
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h. */
1814 if ac_fn_c_try_compile "$LINENO"; then :
1815 ac_header_compiler=yes
1817 ac_header_compiler=no
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1821 $as_echo "$ac_header_compiler" >&6; }
1823 # Is the header present?
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1825 $as_echo_n "checking $2 presence... " >&6; }
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1830 if ac_fn_c_try_cpp "$LINENO"; then :
1831 ac_header_preproc=yes
1833 ac_header_preproc=no
1835 rm -f conftest.err conftest.i conftest.$ac_ext
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1837 $as_echo "$ac_header_preproc" >&6; }
1839 # So? What about this header?
1840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1843 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1845 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1849 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1851 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1853 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1855 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1858 ( $as_echo "## ------------------------------------------- ##
1859 ## Report this to openssh-unix-dev@mindrot.org ##
1860 ## ------------------------------------------- ##"
1861 ) | sed "s/^/$as_me: WARNING: /" >&2
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865 $as_echo_n "checking for $2... " >&6; }
1866 if eval \${$3+:} false; then :
1867 $as_echo_n "(cached) " >&6
1869 eval "$3=\$ac_header_compiler"
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873 $as_echo "$ac_res" >&6; }
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877 } # ac_fn_c_check_header_mongrel
1879 # ac_fn_c_check_func LINENO FUNC VAR
1880 # ----------------------------------
1881 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1882 ac_fn_c_check_func ()
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886 $as_echo_n "checking for $2... " >&6; }
1887 if eval \${$3+:} false; then :
1888 $as_echo_n "(cached) " >&6
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h. */
1892 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1894 #define $2 innocuous_$2
1896 /* System header to define __stub macros and hopefully few prototypes,
1897 which can conflict with char $2 (); below.
1898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1899 <limits.h> exists even on freestanding compilers. */
1902 # include <limits.h>
1904 # include <assert.h>
1909 /* Override any GCC internal prototype to avoid an error.
1910 Use char because int might match the return type of a GCC
1911 builtin and then its argument prototype would still apply. */
1916 /* The GNU C library defines this for functions which it implements
1917 to always fail with ENOSYS. Some functions are actually named
1918 something starting with __ and the normal name is an alias. */
1919 #if defined __stub_$2 || defined __stub___$2
1931 if ac_fn_c_try_link "$LINENO"; then :
1936 rm -f core conftest.err conftest.$ac_objext \
1937 conftest$ac_exeext conftest.$ac_ext
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944 } # ac_fn_c_check_func
1946 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1947 # -------------------------------------------
1948 # Tests whether TYPE exists after having included INCLUDES, setting cache
1949 # variable VAR accordingly.
1950 ac_fn_c_check_type ()
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954 $as_echo_n "checking for $2... " >&6; }
1955 if eval \${$3+:} false; then :
1956 $as_echo_n "(cached) " >&6
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1984 if ac_fn_c_try_compile "$LINENO"; then :
1989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998 } # ac_fn_c_check_type
2000 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2001 # --------------------------------------------
2002 # Tries to find the compile-time value of EXPR in a program that includes
2003 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2005 ac_fn_c_compute_int ()
2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008 if test "$cross_compiling" = yes; then
2009 # Depending upon the size, compute the lo and hi bounds.
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2016 static int test_array [1 - 2 * !(($2) >= 0)];
2023 if ac_fn_c_try_compile "$LINENO"; then :
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2032 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040 ac_hi=$ac_mid; break
2042 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2043 if test $ac_lo -le $ac_mid; then
2047 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2058 static int test_array [1 - 2 * !(($2) < 0)];
2065 if ac_fn_c_try_compile "$LINENO"; then :
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h. */
2074 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2081 if ac_fn_c_try_compile "$LINENO"; then :
2082 ac_lo=$ac_mid; break
2084 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2085 if test $ac_mid -le $ac_hi; then
2089 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 # Binary search between lo and hi bounds.
2100 while test "x$ac_lo" != "x$ac_hi"; do
2101 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2108 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2115 if ac_fn_c_try_compile "$LINENO"; then :
2118 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2130 static long int longval () { return $2; }
2131 static unsigned long int ulongval () { return $2; }
2138 FILE *f = fopen ("conftest.val", "w");
2143 long int i = longval ();
2146 fprintf (f, "%ld", i);
2150 unsigned long int i = ulongval ();
2153 fprintf (f, "%lu", i);
2155 /* Do not output a trailing newline, as this causes \r\n confusion
2156 on some platforms. */
2157 return ferror (f) || fclose (f) != 0;
2163 if ac_fn_c_try_run "$LINENO"; then :
2164 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2169 conftest.$ac_objext conftest.beam conftest.$ac_ext
2173 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2174 as_fn_set_status $ac_retval
2176 } # ac_fn_c_compute_int
2178 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2179 # ----------------------------------------------------
2180 # Tries to find if the field MEMBER exists in type AGGR, after including
2181 # INCLUDES, setting cache variable VAR accordingly.
2182 ac_fn_c_check_member ()
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2186 $as_echo_n "checking for $2.$3... " >&6; }
2187 if eval \${$4+:} false; then :
2188 $as_echo_n "(cached) " >&6
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2203 if ac_fn_c_try_compile "$LINENO"; then :
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2213 if (sizeof ac_aggr.$3)
2219 if ac_fn_c_try_compile "$LINENO"; then :
2224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2230 $as_echo "$ac_res" >&6; }
2231 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2233 } # ac_fn_c_check_member
2234 cat >config.log <<_ACEOF
2235 This file contains any messages produced by compilers while
2236 running configure, to aid debugging if configure makes a mistake.
2238 It was created by OpenSSH $as_me Portable, which was
2239 generated by GNU Autoconf 2.68. Invocation command line was
2251 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2252 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2253 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2254 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2255 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2257 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2258 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2260 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2261 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2262 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2263 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2264 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2265 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2266 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274 test -z "$as_dir" && as_dir=.
2275 $as_echo "PATH: $as_dir"
2291 # Keep a trace of the command line.
2292 # Strip out --no-create and --no-recursion so they do not pile up.
2293 # Strip out --silent because we don't want to record it for future runs.
2294 # Also quote any args containing shell meta-characters.
2295 # Make two passes to allow for proper duplicate-argument suppression.
2299 ac_must_keep_next=false
2305 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2307 | -silent | --silent | --silen | --sile | --sil)
2310 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2313 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2315 as_fn_append ac_configure_args1 " '$ac_arg'"
2316 if test $ac_must_keep_next = true; then
2317 ac_must_keep_next=false # Got value, back to normal.
2320 *=* | --config-cache | -C | -disable-* | --disable-* \
2321 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2322 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2323 | -with-* | --with-* | -without-* | --without-* | --x)
2324 case "$ac_configure_args0 " in
2325 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2328 -* ) ac_must_keep_next=true ;;
2331 as_fn_append ac_configure_args " '$ac_arg'"
2336 { ac_configure_args0=; unset ac_configure_args0;}
2337 { ac_configure_args1=; unset ac_configure_args1;}
2339 # When interrupted or exit'd, cleanup temporary files, and complete
2340 # config.log. We remove comments because anyway the quotes in there
2341 # would cause problems or look ugly.
2342 # WARNING: Use '\'' to represent an apostrophe within the trap.
2343 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2344 trap 'exit_status=$?
2345 # Save into config.log some information that might help in debugging.
2349 $as_echo "## ---------------- ##
2350 ## Cache variables. ##
2351 ## ---------------- ##"
2353 # The following way of writing the cache mishandles newlines in values,
2355 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2356 eval ac_val=\$$ac_var
2360 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2361 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2364 _ | IFS | as_nl) ;; #(
2365 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2366 *) { eval $ac_var=; unset $ac_var;} ;;
2371 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2372 *${as_nl}ac_space=\ *)
2374 "s/'\''/'\''\\\\'\'''\''/g;
2375 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2378 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2385 $as_echo "## ----------------- ##
2386 ## Output variables. ##
2387 ## ----------------- ##"
2389 for ac_var in $ac_subst_vars
2391 eval ac_val=\$$ac_var
2393 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2395 $as_echo "$ac_var='\''$ac_val'\''"
2399 if test -n "$ac_subst_files"; then
2400 $as_echo "## ------------------- ##
2401 ## File substitutions. ##
2402 ## ------------------- ##"
2404 for ac_var in $ac_subst_files
2406 eval ac_val=\$$ac_var
2408 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2410 $as_echo "$ac_var='\''$ac_val'\''"
2415 if test -s confdefs.h; then
2416 $as_echo "## ----------- ##
2423 test "$ac_signal" != 0 &&
2424 $as_echo "$as_me: caught signal $ac_signal"
2425 $as_echo "$as_me: exit $exit_status"
2427 rm -f core *.core core.conftest.* &&
2428 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2431 for ac_signal in 1 2 13 15; do
2432 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2436 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2437 rm -f -r conftest* confdefs.h
2439 $as_echo "/* confdefs.h */" > confdefs.h
2441 # Predefined preprocessor variables.
2443 cat >>confdefs.h <<_ACEOF
2444 #define PACKAGE_NAME "$PACKAGE_NAME"
2447 cat >>confdefs.h <<_ACEOF
2448 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2451 cat >>confdefs.h <<_ACEOF
2452 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2455 cat >>confdefs.h <<_ACEOF
2456 #define PACKAGE_STRING "$PACKAGE_STRING"
2459 cat >>confdefs.h <<_ACEOF
2460 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2463 cat >>confdefs.h <<_ACEOF
2464 #define PACKAGE_URL "$PACKAGE_URL"
2468 # Let the site file select an alternate cache file if it wants to.
2469 # Prefer an explicitly selected file to automatically selected ones.
2472 if test -n "$CONFIG_SITE"; then
2473 # We do not want a PATH search for config.site.
2474 case $CONFIG_SITE in #((
2475 -*) ac_site_file1=./$CONFIG_SITE;;
2476 */*) ac_site_file1=$CONFIG_SITE;;
2477 *) ac_site_file1=./$CONFIG_SITE;;
2479 elif test "x$prefix" != xNONE; then
2480 ac_site_file1=$prefix/share/config.site
2481 ac_site_file2=$prefix/etc/config.site
2483 ac_site_file1=$ac_default_prefix/share/config.site
2484 ac_site_file2=$ac_default_prefix/etc/config.site
2486 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2488 test "x$ac_site_file" = xNONE && continue
2489 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2491 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2492 sed 's/^/| /' "$ac_site_file" >&5
2494 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2496 as_fn_error $? "failed to load site script $ac_site_file
2497 See \`config.log' for more details" "$LINENO" 5; }
2501 if test -r "$cache_file"; then
2502 # Some versions of bash will fail to source /dev/null (special files
2503 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2504 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2506 $as_echo "$as_me: loading cache $cache_file" >&6;}
2508 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2509 *) . "./$cache_file";;
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2514 $as_echo "$as_me: creating cache $cache_file" >&6;}
2518 # Check that the precious variables saved in the cache have kept the same
2520 ac_cache_corrupted=false
2521 for ac_var in $ac_precious_vars; do
2522 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2523 eval ac_new_set=\$ac_env_${ac_var}_set
2524 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2525 eval ac_new_val=\$ac_env_${ac_var}_value
2526 case $ac_old_set,$ac_new_set in
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2529 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2530 ac_cache_corrupted=: ;;
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2533 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2534 ac_cache_corrupted=: ;;
2537 if test "x$ac_old_val" != "x$ac_new_val"; then
2538 # differences in whitespace do not lead to failure.
2539 ac_old_val_w=`echo x $ac_old_val`
2540 ac_new_val_w=`echo x $ac_new_val`
2541 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2543 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2544 ac_cache_corrupted=:
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2547 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2548 eval $ac_var=\$ac_old_val
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2551 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2553 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2556 # Pass precious variables to config.status.
2557 if test "$ac_new_set" = set; then
2559 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2560 *) ac_arg=$ac_var=$ac_new_val ;;
2562 case " $ac_configure_args " in
2563 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2564 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2568 if $ac_cache_corrupted; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2572 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2573 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2575 ## -------------------- ##
2576 ## Main body of script. ##
2577 ## -------------------- ##
2580 ac_cpp='$CPP $CPPFLAGS'
2581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2592 ac_config_headers="$ac_config_headers config.h"
2595 ac_cpp='$CPP $CPPFLAGS'
2596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2599 if test -n "$ac_tool_prefix"; then
2600 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2601 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2603 $as_echo_n "checking for $ac_word... " >&6; }
2604 if ${ac_cv_prog_CC+:} false; then :
2605 $as_echo_n "(cached) " >&6
2607 if test -n "$CC"; then
2608 ac_cv_prog_CC="$CC" # Let the user override the test.
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
2616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2617 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 if test -n "$CC"; then
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2630 $as_echo "$CC" >&6; }
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2633 $as_echo "no" >&6; }
2638 if test -z "$ac_cv_prog_CC"; then
2640 # Extract the first word of "gcc", so it can be a program name with args.
2641 set dummy gcc; ac_word=$2
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2643 $as_echo_n "checking for $ac_word... " >&6; }
2644 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2645 $as_echo_n "(cached) " >&6
2647 if test -n "$ac_ct_CC"; then
2648 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657 ac_cv_prog_ac_ct_CC="gcc"
2658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2668 if test -n "$ac_ct_CC"; then
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2670 $as_echo "$ac_ct_CC" >&6; }
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2673 $as_echo "no" >&6; }
2676 if test "x$ac_ct_CC" = x; then
2679 case $cross_compiling:$ac_tool_warned in
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2683 ac_tool_warned=yes ;;
2691 if test -z "$CC"; then
2692 if test -n "$ac_tool_prefix"; then
2693 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2694 set dummy ${ac_tool_prefix}cc; ac_word=$2
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2696 $as_echo_n "checking for $ac_word... " >&6; }
2697 if ${ac_cv_prog_CC+:} false; then :
2698 $as_echo_n "(cached) " >&6
2700 if test -n "$CC"; then
2701 ac_cv_prog_CC="$CC" # Let the user override the test.
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2710 ac_cv_prog_CC="${ac_tool_prefix}cc"
2711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 if test -n "$CC"; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2723 $as_echo "$CC" >&6; }
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 $as_echo "no" >&6; }
2732 if test -z "$CC"; then
2733 # Extract the first word of "cc", so it can be a program name with args.
2734 set dummy cc; ac_word=$2
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2736 $as_echo_n "checking for $ac_word... " >&6; }
2737 if ${ac_cv_prog_CC+:} false; then :
2738 $as_echo_n "(cached) " >&6
2740 if test -n "$CC"; then
2741 ac_cv_prog_CC="$CC" # Let the user override the test.
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2751 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2752 ac_prog_rejected=yes
2756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2763 if test $ac_prog_rejected = yes; then
2764 # We found a bogon in the path, so make sure we never use it.
2765 set dummy $ac_cv_prog_CC
2767 if test $# != 0; then
2768 # We chose a different compiler from the bogus one.
2769 # However, it has the same basename, so the bogon will be chosen
2770 # first if we set CC to just the basename; use the full file name.
2772 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2778 if test -n "$CC"; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2780 $as_echo "$CC" >&6; }
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783 $as_echo "no" >&6; }
2788 if test -z "$CC"; then
2789 if test -n "$ac_tool_prefix"; then
2790 for ac_prog in cl.exe
2792 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2793 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2795 $as_echo_n "checking for $ac_word... " >&6; }
2796 if ${ac_cv_prog_CC+:} false; then :
2797 $as_echo_n "(cached) " >&6
2799 if test -n "$CC"; then
2800 ac_cv_prog_CC="$CC" # Let the user override the test.
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 test -z "$as_dir" && as_dir=.
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2809 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 if test -n "$CC"; then
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2822 $as_echo "$CC" >&6; }
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825 $as_echo "no" >&6; }
2829 test -n "$CC" && break
2832 if test -z "$CC"; then
2834 for ac_prog in cl.exe
2836 # Extract the first word of "$ac_prog", so it can be a program name with args.
2837 set dummy $ac_prog; ac_word=$2
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839 $as_echo_n "checking for $ac_word... " >&6; }
2840 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2841 $as_echo_n "(cached) " >&6
2843 if test -n "$ac_ct_CC"; then
2844 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2853 ac_cv_prog_ac_ct_CC="$ac_prog"
2854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2864 if test -n "$ac_ct_CC"; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2866 $as_echo "$ac_ct_CC" >&6; }
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2873 test -n "$ac_ct_CC" && break
2876 if test "x$ac_ct_CC" = x; then
2879 case $cross_compiling:$ac_tool_warned in
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2883 ac_tool_warned=yes ;;
2892 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2894 as_fn_error $? "no acceptable C compiler found in \$PATH
2895 See \`config.log' for more details" "$LINENO" 5; }
2897 # Provide some information about the compiler.
2898 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2901 for ac_option in --version -v -V -qversion; do
2902 { { ac_try="$ac_compiler $ac_option >&5"
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2908 $as_echo "$ac_try_echo"; } >&5
2909 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2911 if test -s conftest.err; then
2913 ... rest of stderr output deleted ...
2914 10q' conftest.err >conftest.er1
2915 cat conftest.er1 >&5
2917 rm -f conftest.er1 conftest.err
2918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2919 test $ac_status = 0; }
2922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2923 /* end confdefs.h. */
2933 ac_clean_files_save=$ac_clean_files
2934 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2935 # Try to create an executable without -o first, disregard a.out.
2936 # It will help us diagnose broken compilers, and finding out an intuition
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2939 $as_echo_n "checking whether the C compiler works... " >&6; }
2940 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2942 # The possible output files:
2943 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2946 for ac_file in $ac_files
2949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2950 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2955 if { { ac_try="$ac_link_default"
2957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958 *) ac_try_echo=$ac_try;;
2960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2961 $as_echo "$ac_try_echo"; } >&5
2962 (eval "$ac_link_default") 2>&5
2964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2965 test $ac_status = 0; }; then :
2966 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2967 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2968 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2969 # so that the user can short-circuit this test for compilers unknown to
2971 for ac_file in $ac_files ''
2973 test -f "$ac_file" || continue
2975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2978 # We found the default executable, but exeext='' is most
2982 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2984 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2986 # We set ac_cv_exeext here because the later test for it is not
2987 # safe: cross compilers may not add the suffix if given an `-o'
2988 # argument, so we may need to know it at that point already.
2989 # Even if this section looks crufty: it has the advantage of
2996 test "$ac_cv_exeext" = no && ac_cv_exeext=
3001 if test -z "$ac_file"; then :
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003 $as_echo "no" >&6; }
3004 $as_echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3009 as_fn_error 77 "C compiler cannot create executables
3010 See \`config.log' for more details" "$LINENO" 5; }
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3013 $as_echo "yes" >&6; }
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3016 $as_echo_n "checking for C compiler default output file name... " >&6; }
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3018 $as_echo "$ac_file" >&6; }
3019 ac_exeext=$ac_cv_exeext
3021 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3022 ac_clean_files=$ac_clean_files_save
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3024 $as_echo_n "checking for suffix of executables... " >&6; }
3025 if { { ac_try="$ac_link"
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3031 $as_echo "$ac_try_echo"; } >&5
3032 (eval "$ac_link") 2>&5
3034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3035 test $ac_status = 0; }; then :
3036 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3037 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3038 # work properly (i.e., refer to `conftest.exe'), while it won't with
3040 for ac_file in conftest.exe conftest conftest.*; do
3041 test -f "$ac_file" || continue
3043 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3044 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3052 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3053 See \`config.log' for more details" "$LINENO" 5; }
3055 rm -f conftest conftest$ac_cv_exeext
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3057 $as_echo "$ac_cv_exeext" >&6; }
3059 rm -f conftest.$ac_ext
3060 EXEEXT=$ac_cv_exeext
3062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3063 /* end confdefs.h. */
3068 FILE *f = fopen ("conftest.out", "w");
3069 return ferror (f) || fclose (f) != 0;
3075 ac_clean_files="$ac_clean_files conftest.out"
3076 # Check that the compiler produces executables we can run. If not, either
3077 # the compiler is broken, or we cross compile.
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3079 $as_echo_n "checking whether we are cross compiling... " >&6; }
3080 if test "$cross_compiling" != yes; then
3081 { { ac_try="$ac_link"
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3087 $as_echo "$ac_try_echo"; } >&5
3088 (eval "$ac_link") 2>&5
3090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3091 test $ac_status = 0; }
3092 if { ac_try='./conftest$ac_cv_exeext'
3093 { { case "(($ac_try" in
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3097 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3098 $as_echo "$ac_try_echo"; } >&5
3099 (eval "$ac_try") 2>&5
3101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3102 test $ac_status = 0; }; }; then
3105 if test "$cross_compiling" = maybe; then
3108 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3110 as_fn_error $? "cannot run C compiled programs.
3111 If you meant to cross compile, use \`--host'.
3112 See \`config.log' for more details" "$LINENO" 5; }
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3117 $as_echo "$cross_compiling" >&6; }
3119 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3120 ac_clean_files=$ac_clean_files_save
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3122 $as_echo_n "checking for suffix of object files... " >&6; }
3123 if ${ac_cv_objext+:} false; then :
3124 $as_echo_n "(cached) " >&6
3126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3127 /* end confdefs.h. */
3137 rm -f conftest.o conftest.obj
3138 if { { ac_try="$ac_compile"
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3144 $as_echo "$ac_try_echo"; } >&5
3145 (eval "$ac_compile") 2>&5
3147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3148 test $ac_status = 0; }; then :
3149 for ac_file in conftest.o conftest.obj conftest.*; do
3150 test -f "$ac_file" || continue;
3152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3153 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3158 $as_echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3163 as_fn_error $? "cannot compute suffix of object files: cannot compile
3164 See \`config.log' for more details" "$LINENO" 5; }
3166 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3169 $as_echo "$ac_cv_objext" >&6; }
3170 OBJEXT=$ac_cv_objext
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3173 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3174 if ${ac_cv_c_compiler_gnu+:} false; then :
3175 $as_echo_n "(cached) " >&6
3177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178 /* end confdefs.h. */
3191 if ac_fn_c_try_compile "$LINENO"; then :
3196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3201 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3202 if test $ac_compiler_gnu = yes; then
3207 ac_test_CFLAGS=${CFLAGS+set}
3208 ac_save_CFLAGS=$CFLAGS
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3210 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3211 if ${ac_cv_prog_cc_g+:} false; then :
3212 $as_echo_n "(cached) " >&6
3214 ac_save_c_werror_flag=$ac_c_werror_flag
3215 ac_c_werror_flag=yes
3218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3219 /* end confdefs.h. */
3229 if ac_fn_c_try_compile "$LINENO"; then :
3233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234 /* end confdefs.h. */
3244 if ac_fn_c_try_compile "$LINENO"; then :
3247 ac_c_werror_flag=$ac_save_c_werror_flag
3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h. */
3260 if ac_fn_c_try_compile "$LINENO"; then :
3263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268 ac_c_werror_flag=$ac_save_c_werror_flag
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3271 $as_echo "$ac_cv_prog_cc_g" >&6; }
3272 if test "$ac_test_CFLAGS" = set; then
3273 CFLAGS=$ac_save_CFLAGS
3274 elif test $ac_cv_prog_cc_g = yes; then
3275 if test "$GCC" = yes; then
3281 if test "$GCC" = yes; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3288 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3289 if ${ac_cv_prog_cc_c89+:} false; then :
3290 $as_echo_n "(cached) " >&6
3292 ac_cv_prog_cc_c89=no
3294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295 /* end confdefs.h. */
3298 #include <sys/types.h>
3299 #include <sys/stat.h>
3300 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3301 struct buf { int x; };
3302 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3303 static char *e (p, i)
3309 static char *f (char * (*g) (char **, int), char **p, ...)
3314 s = g (p, va_arg (v,int));
3319 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3320 function prototypes and stuff, but not '\xHH' hex character constants.
3321 These don't provoke an error unfortunately, instead are silently treated
3322 as 'x'. The following induces an error, until -std is added to get
3323 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3324 array size at least. It's necessary to write '\x00'==0 to get something
3325 that's true only with -std. */
3326 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3328 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3329 inside strings and character constants. */
3331 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3333 int test (int i, double x);
3334 struct s1 {int (*f) (int a);};
3335 struct s2 {int (*f) (double a);};
3336 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3342 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3347 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3348 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3350 CC="$ac_save_CC $ac_arg"
3351 if ac_fn_c_try_compile "$LINENO"; then :
3352 ac_cv_prog_cc_c89=$ac_arg
3354 rm -f core conftest.err conftest.$ac_objext
3355 test "x$ac_cv_prog_cc_c89" != "xno" && break
3357 rm -f conftest.$ac_ext
3362 case "x$ac_cv_prog_cc_c89" in
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3365 $as_echo "none needed" >&6; } ;;
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3368 $as_echo "unsupported" >&6; } ;;
3370 CC="$CC $ac_cv_prog_cc_c89"
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3372 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3374 if test "x$ac_cv_prog_cc_c89" != xno; then :
3379 ac_cpp='$CPP $CPPFLAGS'
3380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3386 if test -f "$ac_dir/install-sh"; then
3388 ac_install_sh="$ac_aux_dir/install-sh -c"
3390 elif test -f "$ac_dir/install.sh"; then
3392 ac_install_sh="$ac_aux_dir/install.sh -c"
3394 elif test -f "$ac_dir/shtool"; then
3396 ac_install_sh="$ac_aux_dir/shtool install -c"
3400 if test -z "$ac_aux_dir"; then
3401 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3404 # These three variables are undocumented and unsupported,
3405 # and are intended to be withdrawn in a future Autoconf release.
3406 # They can cause serious problems if a builder's source tree is in a directory
3407 # whose full name contains unusual characters.
3408 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3409 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3410 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3413 # Make sure we can run config.sub.
3414 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3415 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3418 $as_echo_n "checking build system type... " >&6; }
3419 if ${ac_cv_build+:} false; then :
3420 $as_echo_n "(cached) " >&6
3422 ac_build_alias=$build_alias
3423 test "x$ac_build_alias" = x &&
3424 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3425 test "x$ac_build_alias" = x &&
3426 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3427 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3428 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3432 $as_echo "$ac_cv_build" >&6; }
3433 case $ac_cv_build in
3435 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3438 ac_save_IFS=$IFS; IFS='-'
3444 # Remember, the first character of IFS is used to create $*,
3445 # except with old shells:
3448 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3452 $as_echo_n "checking host system type... " >&6; }
3453 if ${ac_cv_host+:} false; then :
3454 $as_echo_n "(cached) " >&6
3456 if test "x$host_alias" = x; then
3457 ac_cv_host=$ac_cv_build
3459 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3460 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3465 $as_echo "$ac_cv_host" >&6; }
3468 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3471 ac_save_IFS=$IFS; IFS='-'
3477 # Remember, the first character of IFS is used to create $*,
3478 # except with old shells:
3481 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3491 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3492 # On Suns, sometimes $CPP names a directory.
3493 if test -n "$CPP" && test -d "$CPP"; then
3496 if test -z "$CPP"; then
3497 if ${ac_cv_prog_CPP+:} false; then :
3498 $as_echo_n "(cached) " >&6
3500 # Double quotes because CPP needs to be expanded
3501 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3504 for ac_c_preproc_warn_flag in '' yes
3506 # Use a header file that comes with gcc, so configuring glibc
3507 # with a fresh cross-compiler works.
3508 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3509 # <limits.h> exists even on freestanding compilers.
3510 # On the NeXT, cc -E runs the code through the compiler's parser,
3511 # not just through cpp. "Syntax error" is here to catch this case.
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3515 # include <limits.h>
3517 # include <assert.h>
3521 if ac_fn_c_try_cpp "$LINENO"; then :
3524 # Broken: fails on valid input.
3527 rm -f conftest.err conftest.i conftest.$ac_ext
3529 # OK, works on sane cases. Now check whether nonexistent headers
3530 # can be detected and how.
3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532 /* end confdefs.h. */
3533 #include <ac_nonexistent.h>
3535 if ac_fn_c_try_cpp "$LINENO"; then :
3536 # Broken: success on invalid input.
3539 # Passes both tests.
3543 rm -f conftest.err conftest.i conftest.$ac_ext
3546 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3547 rm -f conftest.i conftest.err conftest.$ac_ext
3548 if $ac_preproc_ok; then :
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3561 $as_echo "$CPP" >&6; }
3563 for ac_c_preproc_warn_flag in '' yes
3565 # Use a header file that comes with gcc, so configuring glibc
3566 # with a fresh cross-compiler works.
3567 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3568 # <limits.h> exists even on freestanding compilers.
3569 # On the NeXT, cc -E runs the code through the compiler's parser,
3570 # not just through cpp. "Syntax error" is here to catch this case.
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h. */
3574 # include <limits.h>
3576 # include <assert.h>
3580 if ac_fn_c_try_cpp "$LINENO"; then :
3583 # Broken: fails on valid input.
3586 rm -f conftest.err conftest.i conftest.$ac_ext
3588 # OK, works on sane cases. Now check whether nonexistent headers
3589 # can be detected and how.
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h. */
3592 #include <ac_nonexistent.h>
3594 if ac_fn_c_try_cpp "$LINENO"; then :
3595 # Broken: success on invalid input.
3598 # Passes both tests.
3602 rm -f conftest.err conftest.i conftest.$ac_ext
3605 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3606 rm -f conftest.i conftest.err conftest.$ac_ext
3607 if $ac_preproc_ok; then :
3610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3613 See \`config.log' for more details" "$LINENO" 5; }
3617 ac_cpp='$CPP $CPPFLAGS'
3618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3624 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3625 if ${ac_cv_path_GREP+:} false; then :
3626 $as_echo_n "(cached) " >&6
3628 if test -z "$GREP"; then
3629 ac_path_GREP_found=false
3630 # Loop through the user's path and test for each of PROGNAME-LIST
3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3635 test -z "$as_dir" && as_dir=.
3636 for ac_prog in grep ggrep; do
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3639 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3640 # Check for GNU ac_path_GREP and select it if it is found.
3641 # Check for GNU $ac_path_GREP
3642 case `"$ac_path_GREP" --version 2>&1` in
3644 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3647 $as_echo_n 0123456789 >"conftest.in"
3650 cat "conftest.in" "conftest.in" >"conftest.tmp"
3651 mv "conftest.tmp" "conftest.in"
3652 cp "conftest.in" "conftest.nl"
3653 $as_echo 'GREP' >> "conftest.nl"
3654 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3655 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3656 as_fn_arith $ac_count + 1 && ac_count=$as_val
3657 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3658 # Best one so far, save it but keep looking for a better one
3659 ac_cv_path_GREP="$ac_path_GREP"
3660 ac_path_GREP_max=$ac_count
3662 # 10*(2^10) chars as input seems more than enough
3663 test $ac_count -gt 10 && break
3665 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3668 $ac_path_GREP_found && break 3
3673 if test -z "$ac_cv_path_GREP"; then
3674 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3677 ac_cv_path_GREP=$GREP
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3682 $as_echo "$ac_cv_path_GREP" >&6; }
3683 GREP="$ac_cv_path_GREP"
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3687 $as_echo_n "checking for egrep... " >&6; }
3688 if ${ac_cv_path_EGREP+:} false; then :
3689 $as_echo_n "(cached) " >&6
3691 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3692 then ac_cv_path_EGREP="$GREP -E"
3694 if test -z "$EGREP"; then
3695 ac_path_EGREP_found=false
3696 # Loop through the user's path and test for each of PROGNAME-LIST
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3701 test -z "$as_dir" && as_dir=.
3702 for ac_prog in egrep; do
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3705 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3706 # Check for GNU ac_path_EGREP and select it if it is found.
3707 # Check for GNU $ac_path_EGREP
3708 case `"$ac_path_EGREP" --version 2>&1` in
3710 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3713 $as_echo_n 0123456789 >"conftest.in"
3716 cat "conftest.in" "conftest.in" >"conftest.tmp"
3717 mv "conftest.tmp" "conftest.in"
3718 cp "conftest.in" "conftest.nl"
3719 $as_echo 'EGREP' >> "conftest.nl"
3720 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3721 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3722 as_fn_arith $ac_count + 1 && ac_count=$as_val
3723 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3724 # Best one so far, save it but keep looking for a better one
3725 ac_cv_path_EGREP="$ac_path_EGREP"
3726 ac_path_EGREP_max=$ac_count
3728 # 10*(2^10) chars as input seems more than enough
3729 test $ac_count -gt 10 && break
3731 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3734 $ac_path_EGREP_found && break 3
3739 if test -z "$ac_cv_path_EGREP"; then
3740 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3743 ac_cv_path_EGREP=$EGREP
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3749 $as_echo "$ac_cv_path_EGREP" >&6; }
3750 EGREP="$ac_cv_path_EGREP"
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3754 $as_echo_n "checking for ANSI C header files... " >&6; }
3755 if ${ac_cv_header_stdc+:} false; then :
3756 $as_echo_n "(cached) " >&6
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h. */
3773 if ac_fn_c_try_compile "$LINENO"; then :
3774 ac_cv_header_stdc=yes
3776 ac_cv_header_stdc=no
3778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3780 if test $ac_cv_header_stdc = yes; then
3781 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3788 $EGREP "memchr" >/dev/null 2>&1; then :
3791 ac_cv_header_stdc=no
3797 if test $ac_cv_header_stdc = yes; then
3798 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h. */
3804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3805 $EGREP "free" >/dev/null 2>&1; then :
3808 ac_cv_header_stdc=no
3814 if test $ac_cv_header_stdc = yes; then
3815 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3816 if test "$cross_compiling" = yes; then :
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3823 #if ((' ' & 0x0FF) == 0x020)
3824 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3825 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3827 # define ISLOWER(c) \
3828 (('a' <= (c) && (c) <= 'i') \
3829 || ('j' <= (c) && (c) <= 'r') \
3830 || ('s' <= (c) && (c) <= 'z'))
3831 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3834 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3839 for (i = 0; i < 256; i++)
3840 if (XOR (islower (i), ISLOWER (i))
3841 || toupper (i) != TOUPPER (i))
3846 if ac_fn_c_try_run "$LINENO"; then :
3849 ac_cv_header_stdc=no
3851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3852 conftest.$ac_objext conftest.beam conftest.$ac_ext
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3858 $as_echo "$ac_cv_header_stdc" >&6; }
3859 if test $ac_cv_header_stdc = yes; then
3861 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3865 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3866 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3867 inttypes.h stdint.h unistd.h
3869 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3870 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3872 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3873 cat >>confdefs.h <<_ACEOF
3874 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3883 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3884 if ${ac_cv_c_bigendian+:} false; then :
3885 $as_echo_n "(cached) " >&6
3887 ac_cv_c_bigendian=unknown
3888 # See if we're dealing with a universal compiler.
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h. */
3891 #ifndef __APPLE_CC__
3892 not a universal capable compiler
3897 if ac_fn_c_try_compile "$LINENO"; then :
3899 # Check for potential -arch flags. It is not universal unless
3900 # there are at least two -arch flags with different values.
3903 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3904 if test -n "$ac_prev"; then
3906 i?86 | x86_64 | ppc | ppc64)
3907 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3910 ac_cv_c_bigendian=universal
3916 elif test "x$ac_word" = "x-arch"; then
3921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922 if test $ac_cv_c_bigendian = unknown; then
3923 # See if sys/param.h defines the BYTE_ORDER macro.
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3926 #include <sys/types.h>
3927 #include <sys/param.h>
3932 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3933 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3942 if ac_fn_c_try_compile "$LINENO"; then :
3943 # It does; now see whether it defined to BIG_ENDIAN or not.
3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h. */
3946 #include <sys/types.h>
3947 #include <sys/param.h>
3952 #if BYTE_ORDER != BIG_ENDIAN
3960 if ac_fn_c_try_compile "$LINENO"; then :
3961 ac_cv_c_bigendian=yes
3963 ac_cv_c_bigendian=no
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969 if test $ac_cv_c_bigendian = unknown; then
3970 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972 /* end confdefs.h. */
3978 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3986 if ac_fn_c_try_compile "$LINENO"; then :
3987 # It does; now see whether it defined to _BIG_ENDIAN or not.
3988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h. */
4003 if ac_fn_c_try_compile "$LINENO"; then :
4004 ac_cv_c_bigendian=yes
4006 ac_cv_c_bigendian=no
4008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012 if test $ac_cv_c_bigendian = unknown; then
4013 # Compile a test program.
4014 if test "$cross_compiling" = yes; then :
4015 # Try to guess by grepping values from an object file.
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4018 short int ascii_mm[] =
4019 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4020 short int ascii_ii[] =
4021 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4022 int use_ascii (int i) {
4023 return ascii_mm[i] + ascii_ii[i];
4025 short int ebcdic_ii[] =
4026 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4027 short int ebcdic_mm[] =
4028 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4029 int use_ebcdic (int i) {
4030 return ebcdic_mm[i] + ebcdic_ii[i];
4037 return use_ascii (foo) == use_ebcdic (foo);
4042 if ac_fn_c_try_compile "$LINENO"; then :
4043 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4044 ac_cv_c_bigendian=yes
4046 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4047 if test "$ac_cv_c_bigendian" = unknown; then
4048 ac_cv_c_bigendian=no
4050 # finding both strings is unlikely to happen, but who knows?
4051 ac_cv_c_bigendian=unknown
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4059 $ac_includes_default
4064 /* Are we little or big endian? From Harbison&Steele. */
4068 char c[sizeof (long int)];
4071 return u.c[sizeof (long int) - 1] == 1;
4077 if ac_fn_c_try_run "$LINENO"; then :
4078 ac_cv_c_bigendian=no
4080 ac_cv_c_bigendian=yes
4082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4083 conftest.$ac_objext conftest.beam conftest.$ac_ext
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4089 $as_echo "$ac_cv_c_bigendian" >&6; }
4090 case $ac_cv_c_bigendian in #(
4092 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4098 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4102 as_fn_error $? "unknown endianness
4103 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4107 # Checks for programs.
4108 for ac_prog in gawk mawk nawk awk
4110 # Extract the first word of "$ac_prog", so it can be a program name with args.
4111 set dummy $ac_prog; ac_word=$2
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4113 $as_echo_n "checking for $ac_word... " >&6; }
4114 if ${ac_cv_prog_AWK+:} false; then :
4115 $as_echo_n "(cached) " >&6
4117 if test -n "$AWK"; then
4118 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 test -z "$as_dir" && as_dir=.
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4127 ac_cv_prog_AWK="$ac_prog"
4128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 if test -n "$AWK"; then
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4140 $as_echo "$AWK" >&6; }
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143 $as_echo "no" >&6; }
4147 test -n "$AWK" && break
4151 ac_cpp='$CPP $CPPFLAGS'
4152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4156 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4157 # On Suns, sometimes $CPP names a directory.
4158 if test -n "$CPP" && test -d "$CPP"; then
4161 if test -z "$CPP"; then
4162 if ${ac_cv_prog_CPP+:} false; then :
4163 $as_echo_n "(cached) " >&6
4165 # Double quotes because CPP needs to be expanded
4166 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4169 for ac_c_preproc_warn_flag in '' yes
4171 # Use a header file that comes with gcc, so configuring glibc
4172 # with a fresh cross-compiler works.
4173 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4174 # <limits.h> exists even on freestanding compilers.
4175 # On the NeXT, cc -E runs the code through the compiler's parser,
4176 # not just through cpp. "Syntax error" is here to catch this case.
4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h. */
4180 # include <limits.h>
4182 # include <assert.h>
4186 if ac_fn_c_try_cpp "$LINENO"; then :
4189 # Broken: fails on valid input.
4192 rm -f conftest.err conftest.i conftest.$ac_ext
4194 # OK, works on sane cases. Now check whether nonexistent headers
4195 # can be detected and how.
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4198 #include <ac_nonexistent.h>
4200 if ac_fn_c_try_cpp "$LINENO"; then :
4201 # Broken: success on invalid input.
4204 # Passes both tests.
4208 rm -f conftest.err conftest.i conftest.$ac_ext
4211 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4212 rm -f conftest.i conftest.err conftest.$ac_ext
4213 if $ac_preproc_ok; then :
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4226 $as_echo "$CPP" >&6; }
4228 for ac_c_preproc_warn_flag in '' yes
4230 # Use a header file that comes with gcc, so configuring glibc
4231 # with a fresh cross-compiler works.
4232 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4233 # <limits.h> exists even on freestanding compilers.
4234 # On the NeXT, cc -E runs the code through the compiler's parser,
4235 # not just through cpp. "Syntax error" is here to catch this case.
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4239 # include <limits.h>
4241 # include <assert.h>
4245 if ac_fn_c_try_cpp "$LINENO"; then :
4248 # Broken: fails on valid input.
4251 rm -f conftest.err conftest.i conftest.$ac_ext
4253 # OK, works on sane cases. Now check whether nonexistent headers
4254 # can be detected and how.
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4257 #include <ac_nonexistent.h>
4259 if ac_fn_c_try_cpp "$LINENO"; then :
4260 # Broken: success on invalid input.
4263 # Passes both tests.
4267 rm -f conftest.err conftest.i conftest.$ac_ext
4270 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4271 rm -f conftest.i conftest.err conftest.$ac_ext
4272 if $ac_preproc_ok; then :
4275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4277 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4278 See \`config.log' for more details" "$LINENO" 5; }
4282 ac_cpp='$CPP $CPPFLAGS'
4283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4287 if test -n "$ac_tool_prefix"; then
4288 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4289 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4291 $as_echo_n "checking for $ac_word... " >&6; }
4292 if ${ac_cv_prog_RANLIB+:} false; then :
4293 $as_echo_n "(cached) " >&6
4295 if test -n "$RANLIB"; then
4296 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 test -z "$as_dir" && as_dir=.
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4305 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4315 RANLIB=$ac_cv_prog_RANLIB
4316 if test -n "$RANLIB"; then
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4318 $as_echo "$RANLIB" >&6; }
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4326 if test -z "$ac_cv_prog_RANLIB"; then
4327 ac_ct_RANLIB=$RANLIB
4328 # Extract the first word of "ranlib", so it can be a program name with args.
4329 set dummy ranlib; ac_word=$2
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4331 $as_echo_n "checking for $ac_word... " >&6; }
4332 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4333 $as_echo_n "(cached) " >&6
4335 if test -n "$ac_ct_RANLIB"; then
4336 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 test -z "$as_dir" && as_dir=.
4343 for ac_exec_ext in '' $ac_executable_extensions; do
4344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4345 ac_cv_prog_ac_ct_RANLIB="ranlib"
4346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4355 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4356 if test -n "$ac_ct_RANLIB"; then
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4358 $as_echo "$ac_ct_RANLIB" >&6; }
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361 $as_echo "no" >&6; }
4364 if test "x$ac_ct_RANLIB" = x; then
4367 case $cross_compiling:$ac_tool_warned in
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4371 ac_tool_warned=yes ;;
4373 RANLIB=$ac_ct_RANLIB
4376 RANLIB="$ac_cv_prog_RANLIB"
4379 # Find a good install program. We prefer a C program (faster),
4380 # so one script is as good as another. But avoid the broken or
4381 # incompatible versions:
4382 # SysV /etc/install, /usr/sbin/install
4383 # SunOS /usr/etc/install
4384 # IRIX /sbin/install
4386 # AmigaOS /C/install, which installs bootblocks on floppy discs
4387 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4388 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4389 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4390 # OS/2's system install, which has a completely different semantic
4391 # ./install, which can be erroneously created by make from ./install.sh.
4392 # Reject install programs that cannot install multiple files.
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4394 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4395 if test -z "$INSTALL"; then
4396 if ${ac_cv_path_install+:} false; then :
4397 $as_echo_n "(cached) " >&6
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 test -z "$as_dir" && as_dir=.
4404 # Account for people who put trailing slashes in PATH elements.
4405 case $as_dir/ in #((
4406 ./ | .// | /[cC]/* | \
4407 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4408 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4411 # OSF1 and SCO ODT 3.0 have their own names for install.
4412 # Don't use installbsd from OSF since it installs stuff as root
4414 for ac_prog in ginstall scoinst install; do
4415 for ac_exec_ext in '' $ac_executable_extensions; do
4416 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4417 if test $ac_prog = install &&
4418 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4419 # AIX install. It has an incompatible calling convention.
4421 elif test $ac_prog = install &&
4422 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4423 # program-specific install script used by HP pwplus--don't use.
4426 rm -rf conftest.one conftest.two conftest.dir
4427 echo one > conftest.one
4428 echo two > conftest.two
4430 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4431 test -s conftest.one && test -s conftest.two &&
4432 test -s conftest.dir/conftest.one &&
4433 test -s conftest.dir/conftest.two
4435 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4448 rm -rf conftest.one conftest.two conftest.dir
4451 if test "${ac_cv_path_install+set}" = set; then
4452 INSTALL=$ac_cv_path_install
4454 # As a last resort, use the slow shell script. Don't cache a
4455 # value for INSTALL within a source directory, because that will
4456 # break other packages using the cache if that directory is
4457 # removed, or if the value is a relative name.
4458 INSTALL=$ac_install_sh
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4462 $as_echo "$INSTALL" >&6; }
4464 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4465 # It thinks the first close brace ends the variable substitution.
4466 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4468 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4470 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4473 $as_echo_n "checking for egrep... " >&6; }
4474 if ${ac_cv_path_EGREP+:} false; then :
4475 $as_echo_n "(cached) " >&6
4477 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4478 then ac_cv_path_EGREP="$GREP -E"
4480 if test -z "$EGREP"; then
4481 ac_path_EGREP_found=false
4482 # Loop through the user's path and test for each of PROGNAME-LIST
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4487 test -z "$as_dir" && as_dir=.
4488 for ac_prog in egrep; do
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4491 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4492 # Check for GNU ac_path_EGREP and select it if it is found.
4493 # Check for GNU $ac_path_EGREP
4494 case `"$ac_path_EGREP" --version 2>&1` in
4496 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4499 $as_echo_n 0123456789 >"conftest.in"
4502 cat "conftest.in" "conftest.in" >"conftest.tmp"
4503 mv "conftest.tmp" "conftest.in"
4504 cp "conftest.in" "conftest.nl"
4505 $as_echo 'EGREP' >> "conftest.nl"
4506 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4507 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4508 as_fn_arith $ac_count + 1 && ac_count=$as_val
4509 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4510 # Best one so far, save it but keep looking for a better one
4511 ac_cv_path_EGREP="$ac_path_EGREP"
4512 ac_path_EGREP_max=$ac_count
4514 # 10*(2^10) chars as input seems more than enough
4515 test $ac_count -gt 10 && break
4517 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4520 $ac_path_EGREP_found && break 3
4525 if test -z "$ac_cv_path_EGREP"; then
4526 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4529 ac_cv_path_EGREP=$EGREP
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4535 $as_echo "$ac_cv_path_EGREP" >&6; }
4536 EGREP="$ac_cv_path_EGREP"
4539 # Extract the first word of "ar", so it can be a program name with args.
4540 set dummy ar; ac_word=$2
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4542 $as_echo_n "checking for $ac_word... " >&6; }
4543 if ${ac_cv_path_AR+:} false; then :
4544 $as_echo_n "(cached) " >&6
4548 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 test -z "$as_dir" && as_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4558 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 if test -n "$AR"; then
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4572 $as_echo "$AR" >&6; }
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4575 $as_echo "no" >&6; }
4579 # Extract the first word of "cat", so it can be a program name with args.
4580 set dummy cat; ac_word=$2
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4582 $as_echo_n "checking for $ac_word... " >&6; }
4583 if ${ac_cv_path_CAT+:} false; then :
4584 $as_echo_n "(cached) " >&6
4588 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 test -z "$as_dir" && as_dir=.
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4598 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 if test -n "$CAT"; then
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4612 $as_echo "$CAT" >&6; }
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4615 $as_echo "no" >&6; }
4619 # Extract the first word of "kill", so it can be a program name with args.
4620 set dummy kill; ac_word=$2
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4622 $as_echo_n "checking for $ac_word... " >&6; }
4623 if ${ac_cv_path_KILL+:} false; then :
4624 $as_echo_n "(cached) " >&6
4628 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 test -z "$as_dir" && as_dir=.
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4638 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4649 KILL=$ac_cv_path_KILL
4650 if test -n "$KILL"; then
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5
4652 $as_echo "$KILL" >&6; }
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4655 $as_echo "no" >&6; }
4659 for ac_prog in perl5 perl
4661 # Extract the first word of "$ac_prog", so it can be a program name with args.
4662 set dummy $ac_prog; ac_word=$2
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4664 $as_echo_n "checking for $ac_word... " >&6; }
4665 if ${ac_cv_path_PERL+:} false; then :
4666 $as_echo_n "(cached) " >&6
4670 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4680 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 PERL=$ac_cv_path_PERL
4692 if test -n "$PERL"; then
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4694 $as_echo "$PERL" >&6; }
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4697 $as_echo "no" >&6; }
4701 test -n "$PERL" && break
4704 # Extract the first word of "sed", so it can be a program name with args.
4705 set dummy sed; ac_word=$2
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4707 $as_echo_n "checking for $ac_word... " >&6; }
4708 if ${ac_cv_path_SED+:} false; then :
4709 $as_echo_n "(cached) " >&6
4713 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4723 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 if test -n "$SED"; then
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4737 $as_echo "$SED" >&6; }
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4740 $as_echo "no" >&6; }
4745 # Extract the first word of "ent", so it can be a program name with args.
4746 set dummy ent; ac_word=$2
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4748 $as_echo_n "checking for $ac_word... " >&6; }
4749 if ${ac_cv_path_ENT+:} false; then :
4750 $as_echo_n "(cached) " >&6
4754 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 test -z "$as_dir" && as_dir=.
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4764 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4776 if test -n "$ENT"; then
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5
4778 $as_echo "$ENT" >&6; }
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4781 $as_echo "no" >&6; }
4786 # Extract the first word of "bash", so it can be a program name with args.
4787 set dummy bash; ac_word=$2
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789 $as_echo_n "checking for $ac_word... " >&6; }
4790 if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4791 $as_echo_n "(cached) " >&6
4793 case $TEST_MINUS_S_SH in
4795 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 test -z "$as_dir" && as_dir=.
4803 for ac_exec_ext in '' $ac_executable_extensions; do
4804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4805 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4817 if test -n "$TEST_MINUS_S_SH"; then
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4819 $as_echo "$TEST_MINUS_S_SH" >&6; }
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4822 $as_echo "no" >&6; }
4826 # Extract the first word of "ksh", so it can be a program name with args.
4827 set dummy ksh; ac_word=$2
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829 $as_echo_n "checking for $ac_word... " >&6; }
4830 if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4831 $as_echo_n "(cached) " >&6
4833 case $TEST_MINUS_S_SH in
4835 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4845 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4856 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4857 if test -n "$TEST_MINUS_S_SH"; then
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4859 $as_echo "$TEST_MINUS_S_SH" >&6; }
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4862 $as_echo "no" >&6; }
4866 # Extract the first word of "sh", so it can be a program name with args.
4867 set dummy sh; ac_word=$2
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869 $as_echo_n "checking for $ac_word... " >&6; }
4870 if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4871 $as_echo_n "(cached) " >&6
4873 case $TEST_MINUS_S_SH in
4875 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882 test -z "$as_dir" && as_dir=.
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4885 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4896 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4897 if test -n "$TEST_MINUS_S_SH"; then
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4899 $as_echo "$TEST_MINUS_S_SH" >&6; }
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4902 $as_echo "no" >&6; }
4906 # Extract the first word of "sh", so it can be a program name with args.
4907 set dummy sh; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if ${ac_cv_path_SH+:} false; then :
4911 $as_echo_n "(cached) " >&6
4915 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4925 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 if test -n "$SH"; then
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
4939 $as_echo "$SH" >&6; }
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942 $as_echo "no" >&6; }
4946 # Extract the first word of "groff", so it can be a program name with args.
4947 set dummy groff; ac_word=$2
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949 $as_echo_n "checking for $ac_word... " >&6; }
4950 if ${ac_cv_path_GROFF+:} false; then :
4951 $as_echo_n "(cached) " >&6
4955 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 test -z "$as_dir" && as_dir=.
4963 for ac_exec_ext in '' $ac_executable_extensions; do
4964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4965 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
4966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4976 GROFF=$ac_cv_path_GROFF
4977 if test -n "$GROFF"; then
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
4979 $as_echo "$GROFF" >&6; }
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982 $as_echo "no" >&6; }
4986 # Extract the first word of "nroff", so it can be a program name with args.
4987 set dummy nroff; ac_word=$2
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4989 $as_echo_n "checking for $ac_word... " >&6; }
4990 if ${ac_cv_path_NROFF+:} false; then :
4991 $as_echo_n "(cached) " >&6
4995 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 test -z "$as_dir" && as_dir=.
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5005 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
5006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 NROFF=$ac_cv_path_NROFF
5017 if test -n "$NROFF"; then
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
5019 $as_echo "$NROFF" >&6; }
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 $as_echo "no" >&6; }
5026 # Extract the first word of "mandoc", so it can be a program name with args.
5027 set dummy mandoc; ac_word=$2
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029 $as_echo_n "checking for $ac_word... " >&6; }
5030 if ${ac_cv_path_MANDOC+:} false; then :
5031 $as_echo_n "(cached) " >&6
5035 ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path.
5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 test -z "$as_dir" && as_dir=.
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5045 ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext"
5046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 MANDOC=$ac_cv_path_MANDOC
5057 if test -n "$MANDOC"; then
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5
5059 $as_echo "$MANDOC" >&6; }
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 $as_echo "no" >&6; }
5069 if test "x$MANDOC" != "x" ; then
5071 elif test "x$NROFF" != "x" ; then
5072 MANFMT="$NROFF -mandoc"
5073 elif test "x$GROFF" != "x" ; then
5074 MANFMT="$GROFF -mandoc -Tascii"
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatted found" >&5
5077 $as_echo "$as_me: WARNING: no manpage formatted found" >&2;}
5082 # Extract the first word of "groupadd", so it can be a program name with args.
5083 set dummy groupadd; ac_word=$2
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5085 $as_echo_n "checking for $ac_word... " >&6; }
5086 if ${ac_cv_path_PATH_GROUPADD_PROG+:} false; then :
5087 $as_echo_n "(cached) " >&6
5089 case $PATH_GROUPADD_PROG in
5091 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5098 test -z "$as_dir" && as_dir=.
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5101 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5109 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
5113 PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
5114 if test -n "$PATH_GROUPADD_PROG"; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5
5116 $as_echo "$PATH_GROUPADD_PROG" >&6; }
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119 $as_echo "no" >&6; }
5123 # Extract the first word of "useradd", so it can be a program name with args.
5124 set dummy useradd; ac_word=$2
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126 $as_echo_n "checking for $ac_word... " >&6; }
5127 if ${ac_cv_path_PATH_USERADD_PROG+:} false; then :
5128 $as_echo_n "(cached) " >&6
5130 case $PATH_USERADD_PROG in
5132 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5139 test -z "$as_dir" && as_dir=.
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5142 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
5154 PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
5155 if test -n "$PATH_USERADD_PROG"; then
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5
5157 $as_echo "$PATH_USERADD_PROG" >&6; }
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5164 # Extract the first word of "pkgmk", so it can be a program name with args.
5165 set dummy pkgmk; ac_word=$2
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167 $as_echo_n "checking for $ac_word... " >&6; }
5168 if ${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+:} false; then :
5169 $as_echo_n "(cached) " >&6
5171 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5172 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5181 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
5182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
5192 MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
5193 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5
5195 $as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; }
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198 $as_echo "no" >&6; }
5202 if test -x /sbin/sh; then
5203 STARTUP_SCRIPT_SHELL=/sbin/sh
5206 STARTUP_SCRIPT_SHELL=/bin/sh
5211 # Check whether --enable-largefile was given.
5212 if test "${enable_largefile+set}" = set; then :
5213 enableval=$enable_largefile;
5216 if test "$enable_largefile" != no; then
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5219 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5220 if ${ac_cv_sys_largefile_CC+:} false; then :
5221 $as_echo_n "(cached) " >&6
5223 ac_cv_sys_largefile_CC=no
5224 if test "$GCC" != yes; then
5227 # IRIX 6.2 and later do not support large files by default,
5228 # so use the C compiler's -n32 option if that helps.
5229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5230 /* end confdefs.h. */
5231 #include <sys/types.h>
5232 /* Check that off_t can represent 2**63 - 1 correctly.
5233 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5234 since some C++ compilers masquerading as C compilers
5235 incorrectly reject 9223372036854775807. */
5236 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5237 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5238 && LARGE_OFF_T % 2147483647 == 1)
5248 if ac_fn_c_try_compile "$LINENO"; then :
5251 rm -f core conftest.err conftest.$ac_objext
5253 if ac_fn_c_try_compile "$LINENO"; then :
5254 ac_cv_sys_largefile_CC=' -n32'; break
5256 rm -f core conftest.err conftest.$ac_objext
5260 rm -f conftest.$ac_ext
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5264 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5265 if test "$ac_cv_sys_largefile_CC" != no; then
5266 CC=$CC$ac_cv_sys_largefile_CC
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5270 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5271 if ${ac_cv_sys_file_offset_bits+:} false; then :
5272 $as_echo_n "(cached) " >&6
5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h. */
5277 #include <sys/types.h>
5278 /* Check that off_t can represent 2**63 - 1 correctly.
5279 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5280 since some C++ compilers masquerading as C compilers
5281 incorrectly reject 9223372036854775807. */
5282 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5283 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5284 && LARGE_OFF_T % 2147483647 == 1)
5294 if ac_fn_c_try_compile "$LINENO"; then :
5295 ac_cv_sys_file_offset_bits=no; break
5297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5300 #define _FILE_OFFSET_BITS 64
5301 #include <sys/types.h>
5302 /* Check that off_t can represent 2**63 - 1 correctly.
5303 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5304 since some C++ compilers masquerading as C compilers
5305 incorrectly reject 9223372036854775807. */
5306 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5307 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5308 && LARGE_OFF_T % 2147483647 == 1)
5318 if ac_fn_c_try_compile "$LINENO"; then :
5319 ac_cv_sys_file_offset_bits=64; break
5321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322 ac_cv_sys_file_offset_bits=unknown
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5327 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5328 case $ac_cv_sys_file_offset_bits in #(
5331 cat >>confdefs.h <<_ACEOF
5332 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5337 if test $ac_cv_sys_file_offset_bits = unknown; then
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5339 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5340 if ${ac_cv_sys_large_files+:} false; then :
5341 $as_echo_n "(cached) " >&6
5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h. */
5346 #include <sys/types.h>
5347 /* Check that off_t can represent 2**63 - 1 correctly.
5348 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5349 since some C++ compilers masquerading as C compilers
5350 incorrectly reject 9223372036854775807. */
5351 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5352 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5353 && LARGE_OFF_T % 2147483647 == 1)
5363 if ac_fn_c_try_compile "$LINENO"; then :
5364 ac_cv_sys_large_files=no; break
5366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5369 #define _LARGE_FILES 1
5370 #include <sys/types.h>
5371 /* Check that off_t can represent 2**63 - 1 correctly.
5372 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5373 since some C++ compilers masquerading as C compilers
5374 incorrectly reject 9223372036854775807. */
5375 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5376 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5377 && LARGE_OFF_T % 2147483647 == 1)
5387 if ac_fn_c_try_compile "$LINENO"; then :
5388 ac_cv_sys_large_files=1; break
5390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391 ac_cv_sys_large_files=unknown
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5396 $as_echo "$ac_cv_sys_large_files" >&6; }
5397 case $ac_cv_sys_large_files in #(
5400 cat >>confdefs.h <<_ACEOF
5401 #define _LARGE_FILES $ac_cv_sys_large_files
5410 if test -z "$AR" ; then
5411 as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5
5414 # Use LOGIN_PROGRAM from environment if possible
5415 if test ! -z "$LOGIN_PROGRAM" ; then
5417 cat >>confdefs.h <<_ACEOF
5418 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5423 # Extract the first word of "login", so it can be a program name with args.
5424 set dummy login; ac_word=$2
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5426 $as_echo_n "checking for $ac_word... " >&6; }
5427 if ${ac_cv_path_LOGIN_PROGRAM_FALLBACK+:} false; then :
5428 $as_echo_n "(cached) " >&6
5430 case $LOGIN_PROGRAM_FALLBACK in
5432 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439 test -z "$as_dir" && as_dir=.
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5442 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5453 LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5454 if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOGIN_PROGRAM_FALLBACK" >&5
5456 $as_echo "$LOGIN_PROGRAM_FALLBACK" >&6; }
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459 $as_echo "no" >&6; }
5463 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5464 cat >>confdefs.h <<_ACEOF
5465 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5471 # Extract the first word of "passwd", so it can be a program name with args.
5472 set dummy passwd; ac_word=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if ${ac_cv_path_PATH_PASSWD_PROG+:} false; then :
5476 $as_echo_n "(cached) " >&6
5478 case $PATH_PASSWD_PROG in
5480 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5490 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5501 PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5502 if test -n "$PATH_PASSWD_PROG"; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5
5504 $as_echo "$PATH_PASSWD_PROG" >&6; }
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507 $as_echo "no" >&6; }
5511 if test ! -z "$PATH_PASSWD_PROG" ; then
5513 cat >>confdefs.h <<_ACEOF
5514 #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5519 if test -z "$LD" ; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5525 $as_echo_n "checking for inline... " >&6; }
5526 if ${ac_cv_c_inline+:} false; then :
5527 $as_echo_n "(cached) " >&6
5530 for ac_kw in inline __inline__ __inline; do
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5535 static $ac_kw foo_t static_foo () {return 0; }
5536 $ac_kw foo_t foo () {return 0; }
5540 if ac_fn_c_try_compile "$LINENO"; then :
5541 ac_cv_c_inline=$ac_kw
5543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5544 test "$ac_cv_c_inline" != no && break
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5549 $as_echo "$ac_cv_c_inline" >&6; }
5551 case $ac_cv_c_inline in
5554 case $ac_cv_c_inline in
5556 *) ac_val=$ac_cv_c_inline;;
5558 cat >>confdefs.h <<_ACEOF
5560 #define inline $ac_val
5567 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5569 if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
5574 use_stack_protector=1
5576 # Check whether --with-stackprotect was given.
5577 if test "${with_stackprotect+set}" = set; then :
5578 withval=$with_stackprotect;
5579 if test "x$withval" = "xno"; then
5580 use_stack_protector=0
5586 if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5589 $as_echo_n "checking if $CC supports -Wall... " >&6; }
5590 saved_CFLAGS="$CFLAGS"
5591 CFLAGS="$CFLAGS -Wall"
5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5594 void main(void) { return 0; }
5596 if ac_fn_c_try_compile "$LINENO"; then :
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5598 $as_echo "yes" >&6; }
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601 $as_echo "no" >&6; }
5602 CFLAGS="$saved_CFLAGS"
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5609 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5610 saved_CFLAGS="$CFLAGS"
5611 CFLAGS="$CFLAGS -Wpointer-arith"
5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h. */
5614 void main(void) { return 0; }
5616 if ac_fn_c_try_compile "$LINENO"; then :
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5618 $as_echo "yes" >&6; }
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621 $as_echo "no" >&6; }
5622 CFLAGS="$saved_CFLAGS"
5625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5629 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5630 saved_CFLAGS="$CFLAGS"
5631 CFLAGS="$CFLAGS -Wuninitialized"
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h. */
5634 void main(void) { return 0; }
5636 if ac_fn_c_try_compile "$LINENO"; then :
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5638 $as_echo "yes" >&6; }
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641 $as_echo "no" >&6; }
5642 CFLAGS="$saved_CFLAGS"
5645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsign-compare" >&5
5649 $as_echo_n "checking if $CC supports -Wsign-compare... " >&6; }
5650 saved_CFLAGS="$CFLAGS"
5651 CFLAGS="$CFLAGS -Wsign-compare"
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5654 void main(void) { return 0; }
5656 if ac_fn_c_try_compile "$LINENO"; then :
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5658 $as_echo "yes" >&6; }
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661 $as_echo "no" >&6; }
5662 CFLAGS="$saved_CFLAGS"
5665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat-security" >&5
5669 $as_echo_n "checking if $CC supports -Wformat-security... " >&6; }
5670 saved_CFLAGS="$CFLAGS"
5671 CFLAGS="$CFLAGS -Wformat-security"
5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673 /* end confdefs.h. */
5674 void main(void) { return 0; }
5676 if ac_fn_c_try_compile "$LINENO"; then :
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5678 $as_echo "yes" >&6; }
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681 $as_echo "no" >&6; }
5682 CFLAGS="$saved_CFLAGS"
5685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-pointer-sign" >&5
5689 $as_echo_n "checking if $CC supports -Wno-pointer-sign... " >&6; }
5690 saved_CFLAGS="$CFLAGS"
5691 CFLAGS="$CFLAGS -Wno-pointer-sign"
5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5694 void main(void) { return 0; }
5696 if ac_fn_c_try_compile "$LINENO"; then :
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5698 $as_echo "yes" >&6; }
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5701 $as_echo "no" >&6; }
5702 CFLAGS="$saved_CFLAGS"
5705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-unused-result" >&5
5709 $as_echo_n "checking if $CC supports -Wno-unused-result... " >&6; }
5710 saved_CFLAGS="$CFLAGS"
5711 CFLAGS="$CFLAGS -Wno-unused-result"
5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713 /* end confdefs.h. */
5714 void main(void) { return 0; }
5716 if ac_fn_c_try_compile "$LINENO"; then :
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5718 $as_echo "yes" >&6; }
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5721 $as_echo "no" >&6; }
5722 CFLAGS="$saved_CFLAGS"
5725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fno-strict-aliasing" >&5
5729 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
5730 saved_CFLAGS="$CFLAGS"
5731 CFLAGS="$CFLAGS -fno-strict-aliasing"
5732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5733 /* end confdefs.h. */
5734 void main(void) { return 0; }
5736 if ac_fn_c_try_compile "$LINENO"; then :
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5738 $as_echo "yes" >&6; }
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741 $as_echo "no" >&6; }
5742 CFLAGS="$saved_CFLAGS"
5745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
5748 $as_echo_n "checking gcc version... " >&6; }
5749 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
5751 1.*) no_attrib_nonnull=1 ;;
5755 2.*) no_attrib_nonnull=1 ;;
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5
5759 $as_echo "$GCC_VER" >&6; }
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5
5762 $as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; }
5763 saved_CFLAGS="$CFLAGS"
5764 CFLAGS="$CFLAGS -fno-builtin-memset"
5765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766 /* end confdefs.h. */
5769 int main(void){char b[10]; memset(b, 0, sizeof(b));}
5772 if ac_fn_c_try_link "$LINENO"; then :
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5774 $as_echo "yes" >&6; }
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5777 $as_echo "no" >&6; }
5778 CFLAGS="$saved_CFLAGS"
5781 rm -f core conftest.err conftest.$ac_objext \
5782 conftest$ac_exeext conftest.$ac_ext
5784 # -fstack-protector-all doesn't always work for some GCC versions
5785 # and/or platforms, so we test if we can. If it's not supported
5786 # on a given platform gcc will emit a warning so we use -Werror.
5787 if test "x$use_stack_protector" = "x1"; then
5788 for t in -fstack-protector-all -fstack-protector; do
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5
5790 $as_echo_n "checking if $CC supports $t... " >&6; }
5791 saved_CFLAGS="$CFLAGS"
5792 saved_LDFLAGS="$LDFLAGS"
5793 CFLAGS="$CFLAGS $t -Werror"
5794 LDFLAGS="$LDFLAGS $t -Werror"
5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h. */
5799 int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;}
5802 if ac_fn_c_try_link "$LINENO"; then :
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5804 $as_echo "yes" >&6; }
5805 CFLAGS="$saved_CFLAGS $t"
5806 LDFLAGS="$saved_LDFLAGS $t"
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5
5808 $as_echo_n "checking if $t works... " >&6; }
5809 if test "$cross_compiling" = yes; then :
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5
5811 $as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816 /* end confdefs.h. */
5819 int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;}
5822 if ac_fn_c_try_run "$LINENO"; then :
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5824 $as_echo "yes" >&6; }
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828 $as_echo "no" >&6; }
5830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5831 conftest.$ac_objext conftest.beam conftest.$ac_ext
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837 $as_echo "no" >&6; }
5840 rm -f core conftest.err conftest.$ac_objext \
5841 conftest$ac_exeext conftest.$ac_ext
5842 CFLAGS="$saved_CFLAGS"
5843 LDFLAGS="$saved_LDFLAGS"
5847 if test -z "$have_llong_max"; then
5848 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
5849 unset ac_cv_have_decl_LLONG_MAX
5850 saved_CFLAGS="$CFLAGS"
5851 CFLAGS="$CFLAGS -std=gnu99"
5852 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5855 if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
5858 CFLAGS="$saved_CFLAGS"
5864 if test "x$no_attrib_nonnull" != "x1" ; then
5866 $as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h
5871 # Check whether --with-rpath was given.
5872 if test "${with_rpath+set}" = set; then :
5873 withval=$with_rpath;
5874 if test "x$withval" = "xno" ; then
5877 if test "x$withval" = "xyes" ; then
5885 # Allow user to specify flags
5887 # Check whether --with-cflags was given.
5888 if test "${with_cflags+set}" = set; then :
5889 withval=$with_cflags;
5890 if test -n "$withval" && test "x$withval" != "xno" && \
5891 test "x${withval}" != "xyes"; then
5892 CFLAGS="$CFLAGS $withval"
5899 # Check whether --with-cppflags was given.
5900 if test "${with_cppflags+set}" = set; then :
5901 withval=$with_cppflags;
5902 if test -n "$withval" && test "x$withval" != "xno" && \
5903 test "x${withval}" != "xyes"; then
5904 CPPFLAGS="$CPPFLAGS $withval"
5911 # Check whether --with-ldflags was given.
5912 if test "${with_ldflags+set}" = set; then :
5913 withval=$with_ldflags;
5914 if test -n "$withval" && test "x$withval" != "xno" && \
5915 test "x${withval}" != "xyes"; then
5916 LDFLAGS="$LDFLAGS $withval"
5923 # Check whether --with-libs was given.
5924 if test "${with_libs+set}" = set; then :
5926 if test -n "$withval" && test "x$withval" != "xno" && \
5927 test "x${withval}" != "xyes"; then
5928 LIBS="$LIBS $withval"
5935 # Check whether --with-Werror was given.
5936 if test "${with_Werror+set}" = set; then :
5937 withval=$with_Werror;
5938 if test -n "$withval" && test "x$withval" != "xno"; then
5939 werror_flags="-Werror"
5940 if test "x${withval}" != "xyes"; then
5941 werror_flags="$withval"
5975 security/pam_appl.h \
6015 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6016 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6017 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6018 cat >>confdefs.h <<_ACEOF
6019 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6027 # lastlog.h requires sys/time.h to be included first on Solaris
6028 for ac_header in lastlog.h
6030 ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "
6031 #ifdef HAVE_SYS_TIME_H
6032 # include <sys/time.h>
6036 if test "x$ac_cv_header_lastlog_h" = xyes; then :
6037 cat >>confdefs.h <<_ACEOF
6038 #define HAVE_LASTLOG_H 1
6046 # sys/ptms.h requires sys/stream.h to be included first on Solaris
6047 for ac_header in sys/ptms.h
6049 ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" "
6050 #ifdef HAVE_SYS_STREAM_H
6051 # include <sys/stream.h>
6055 if test "x$ac_cv_header_sys_ptms_h" = xyes; then :
6056 cat >>confdefs.h <<_ACEOF
6057 #define HAVE_SYS_PTMS_H 1
6065 # login_cap.h requires sys/types.h on NetBSD
6066 for ac_header in login_cap.h
6068 ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "
6069 #include <sys/types.h>
6072 if test "x$ac_cv_header_login_cap_h" = xyes; then :
6073 cat >>confdefs.h <<_ACEOF
6074 #define HAVE_LOGIN_CAP_H 1
6082 # older BSDs need sys/param.h before sys/mount.h
6083 for ac_header in sys/mount.h
6085 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "
6086 #include <sys/param.h>
6089 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6090 cat >>confdefs.h <<_ACEOF
6091 #define HAVE_SYS_MOUNT_H 1
6099 # Messages for features tested for in target-specific section
6104 # Check for some target-specific stuff
6107 # Some versions of VAC won't allow macro redefinitions at
6108 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
6109 # particularly with older versions of vac or xlc.
6110 # It also throws errors about null macro argments, but these are
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5
6113 $as_echo_n "checking if compiler allows macro redefinitions... " >&6; }
6114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6115 /* end confdefs.h. */
6117 #define testmacro foo
6118 #define testmacro bar
6119 int main(void) { exit(0); }
6122 if ac_fn_c_try_compile "$LINENO"; then :
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6124 $as_echo "yes" >&6; }
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6127 $as_echo "no" >&6; }
6128 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
6129 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
6130 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6131 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5
6138 $as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; }
6139 if (test -z "$blibpath"); then
6140 blibpath="/usr/lib:/lib"
6142 saved_LDFLAGS="$LDFLAGS"
6143 if test "$GCC" = "yes"; then
6144 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
6146 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
6148 for tryflags in $flags ;do
6149 if (test -z "$blibflags"); then
6150 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
6151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152 /* end confdefs.h. */
6162 if ac_fn_c_try_link "$LINENO"; then :
6165 rm -f core conftest.err conftest.$ac_objext \
6166 conftest$ac_exeext conftest.$ac_ext
6169 if (test -z "$blibflags"); then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6171 $as_echo "not found" >&6; }
6172 as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5
6175 $as_echo "$blibflags" >&6; }
6177 LDFLAGS="$saved_LDFLAGS"
6178 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
6179 if test "x$ac_cv_func_authenticate" = xyes; then :
6181 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5
6185 $as_echo_n "checking for authenticate in -ls... " >&6; }
6186 if ${ac_cv_lib_s_authenticate+:} false; then :
6187 $as_echo_n "(cached) " >&6
6189 ac_check_lib_save_LIBS=$LIBS
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6194 /* Override any GCC internal prototype to avoid an error.
6195 Use char because int might match the return type of a GCC
6196 builtin and then its argument prototype would still apply. */
6200 char authenticate ();
6204 return authenticate ();
6209 if ac_fn_c_try_link "$LINENO"; then :
6210 ac_cv_lib_s_authenticate=yes
6212 ac_cv_lib_s_authenticate=no
6214 rm -f core conftest.err conftest.$ac_objext \
6215 conftest$ac_exeext conftest.$ac_ext
6216 LIBS=$ac_check_lib_save_LIBS
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5
6219 $as_echo "$ac_cv_lib_s_authenticate" >&6; }
6220 if test "x$ac_cv_lib_s_authenticate" = xyes; then :
6221 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
6230 ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h>
6232 if test "x$ac_cv_have_decl_authenticate" = xyes; then :
6238 cat >>confdefs.h <<_ACEOF
6239 #define HAVE_DECL_AUTHENTICATE $ac_have_decl
6241 ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h>
6243 if test "x$ac_cv_have_decl_loginrestrictions" = xyes; then :
6249 cat >>confdefs.h <<_ACEOF
6250 #define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl
6252 ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h>
6254 if test "x$ac_cv_have_decl_loginsuccess" = xyes; then :
6260 cat >>confdefs.h <<_ACEOF
6261 #define HAVE_DECL_LOGINSUCCESS $ac_have_decl
6263 ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h>
6265 if test "x$ac_cv_have_decl_passwdexpired" = xyes; then :
6271 cat >>confdefs.h <<_ACEOF
6272 #define HAVE_DECL_PASSWDEXPIRED $ac_have_decl
6274 ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h>
6276 if test "x$ac_cv_have_decl_setauthdb" = xyes; then :
6282 cat >>confdefs.h <<_ACEOF
6283 #define HAVE_DECL_SETAUTHDB $ac_have_decl
6286 ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h>
6289 if test "x$ac_cv_have_decl_loginfailed" = xyes; then :
6295 cat >>confdefs.h <<_ACEOF
6296 #define HAVE_DECL_LOGINFAILED $ac_have_decl
6298 if test $ac_have_decl = 1; then :
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5
6300 $as_echo_n "checking if loginfailed takes 4 arguments... " >&6; }
6301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302 /* end confdefs.h. */
6303 #include <usersec.h>
6307 (void)loginfailed("user","host","tty",0);
6312 if ac_fn_c_try_compile "$LINENO"; then :
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6314 $as_echo "yes" >&6; }
6316 $as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320 $as_echo "no" >&6; }
6323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326 for ac_func in getgrset setauthdb
6328 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6329 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6330 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6331 cat >>confdefs.h <<_ACEOF
6332 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6338 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
6342 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
6344 $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
6348 check_for_aix_broken_getaddrinfo=1
6350 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
6353 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6356 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6359 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6362 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
6365 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6368 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6371 $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
6374 $as_echo "#define PTY_ZEROREAD 1" >>confdefs.h
6378 check_for_libcrypt_later=1
6379 LIBS="$LIBS /usr/lib/textreadmode.o"
6381 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
6384 $as_echo "#define USE_PIPES 1" >>confdefs.h
6387 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
6390 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
6393 $as_echo "#define NO_IPPORT_RESERVED_CONCEPT 1" >>confdefs.h
6396 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
6399 $as_echo "#define SSH_IOBUFSZ 65535" >>confdefs.h
6402 $as_echo "#define FILESYSTEM_NO_BACKSLASH 1" >>confdefs.h
6407 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
6409 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6411 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6413 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5
6418 $as_echo_n "checking if we have working getaddrinfo... " >&6; }
6419 if test "$cross_compiling" = yes; then :
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5
6421 $as_echo "assume it is working" >&6; }
6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h. */
6425 #include <mach-o/dyld.h>
6426 main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
6432 if ac_fn_c_try_run "$LINENO"; then :
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5
6434 $as_echo "working" >&6; }
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
6437 $as_echo "buggy" >&6; }
6439 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
6442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6443 conftest.$ac_objext conftest.beam conftest.$ac_ext
6446 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6448 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6450 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6453 $as_echo "#define BROKEN_GLOB 1" >>confdefs.h
6456 cat >>confdefs.h <<_ACEOF
6457 #define BIND_8_COMPAT 1
6461 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6464 $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
6467 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6470 ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default"
6471 if test "x$ac_cv_have_decl_AU_IPv4" = xyes; then :
6475 $as_echo "#define AU_IPv4 0" >>confdefs.h
6477 #include <bsm/audit.h>
6479 $as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h
6486 SSHDLIBS="$SSHDLIBS -lcrypt"
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
6491 $as_echo_n "checking for socket in -lnetwork... " >&6; }
6492 if ${ac_cv_lib_network_socket+:} false; then :
6493 $as_echo_n "(cached) " >&6
6495 ac_check_lib_save_LIBS=$LIBS
6496 LIBS="-lnetwork $LIBS"
6497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498 /* end confdefs.h. */
6500 /* Override any GCC internal prototype to avoid an error.
6501 Use char because int might match the return type of a GCC
6502 builtin and then its argument prototype would still apply. */
6515 if ac_fn_c_try_link "$LINENO"; then :
6516 ac_cv_lib_network_socket=yes
6518 ac_cv_lib_network_socket=no
6520 rm -f core conftest.err conftest.$ac_objext \
6521 conftest$ac_exeext conftest.$ac_ext
6522 LIBS=$ac_check_lib_save_LIBS
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
6525 $as_echo "$ac_cv_lib_network_socket" >&6; }
6526 if test "x$ac_cv_lib_network_socket" = xyes; then :
6527 cat >>confdefs.h <<_ACEOF
6528 #define HAVE_LIBNETWORK 1
6531 LIBS="-lnetwork $LIBS"
6535 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
6540 # first we define all of the options common to all HP-UX releases
6541 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
6542 IPADDR_IN_DISPLAY=yes
6543 $as_echo "#define USE_PIPES 1" >>confdefs.h
6546 $as_echo "#define LOGIN_NO_ENDOPT 1" >>confdefs.h
6548 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6551 $as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h
6553 $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h
6555 MAIL="/var/mail/username"
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5
6558 $as_echo_n "checking for t_error in -lxnet... " >&6; }
6559 if ${ac_cv_lib_xnet_t_error+:} false; then :
6560 $as_echo_n "(cached) " >&6
6562 ac_check_lib_save_LIBS=$LIBS
6564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565 /* end confdefs.h. */
6567 /* Override any GCC internal prototype to avoid an error.
6568 Use char because int might match the return type of a GCC
6569 builtin and then its argument prototype would still apply. */
6582 if ac_fn_c_try_link "$LINENO"; then :
6583 ac_cv_lib_xnet_t_error=yes
6585 ac_cv_lib_xnet_t_error=no
6587 rm -f core conftest.err conftest.$ac_objext \
6588 conftest$ac_exeext conftest.$ac_ext
6589 LIBS=$ac_check_lib_save_LIBS
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5
6592 $as_echo "$ac_cv_lib_xnet_t_error" >&6; }
6593 if test "x$ac_cv_lib_xnet_t_error" = xyes; then :
6594 cat >>confdefs.h <<_ACEOF
6595 #define HAVE_LIBXNET 1
6601 as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5
6605 # next, we define all of the options specific to major releases
6608 if test -z "$GCC"; then
6609 CFLAGS="$CFLAGS -Ae"
6614 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
6617 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
6620 $as_echo "#define USE_BTMP 1" >>confdefs.h
6622 check_for_hpux_broken_getaddrinfo=1
6623 check_for_conflicting_getspnam=1
6627 # lastly, we define options specific to minor releases
6631 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
6633 disable_ptmx_check=yes
6634 LIBS="$LIBS -lsecpw"
6639 PATH="$PATH:/usr/etc"
6641 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
6643 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6645 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6647 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6650 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
6652 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6656 PATH="$PATH:/usr/etc"
6658 $as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h
6661 $as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h
6664 $as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h
6666 ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob"
6667 if test "x$ac_cv_func_jlimit_startjob" = xyes; then :
6669 $as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h
6673 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
6675 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6677 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6679 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6682 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
6684 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
6686 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6689 *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6690 check_for_libcrypt_later=1
6691 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
6693 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
6695 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6698 $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
6701 $as_echo "#define USE_BTMP 1" >>confdefs.h
6706 check_for_libcrypt_later=1
6707 check_for_openpty_ctty_bug=1
6709 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
6712 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
6714 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6717 $as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h
6720 $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
6722 $as_echo "#define USE_BTMP 1" >>confdefs.h
6725 $as_echo "#define LINUX_OOM_ADJUST 1" >>confdefs.h
6727 inet6_default_4in6=yes
6731 $as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h
6735 # tun(4) forwarding compat code
6736 for ac_header in linux/if_tun.h
6738 ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
6739 if test "x$ac_cv_header_linux_if_tun_h" = xyes; then :
6740 cat >>confdefs.h <<_ACEOF
6741 #define HAVE_LINUX_IF_TUN_H 1
6748 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
6750 $as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h
6753 $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
6756 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6760 mips-sony-bsd|mips-sony-newsos4)
6762 $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
6767 check_for_libcrypt_before=1
6768 if test "x$withval" != "xno" ; then
6772 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6774 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
6775 if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
6779 $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
6785 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6789 check_for_libcrypt_later=1
6791 $as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h
6794 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6796 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
6797 if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
6801 $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
6807 $as_echo "#define BROKEN_GLOB 1" >>confdefs.h
6811 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6813 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6815 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6819 conf_lastlog_location="/usr/adm/lastlog"
6820 conf_utmp_location=/etc/utmp
6821 conf_wtmp_location=/usr/adm/wtmp
6822 MAIL=/usr/spool/mail
6824 $as_echo "#define HAVE_NEXT 1" >>confdefs.h
6826 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
6828 $as_echo "#define USE_PIPES 1" >>confdefs.h
6831 $as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h
6836 $as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h
6839 $as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h
6842 $as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h
6845 $as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h
6849 if test "x$withval" != "xno" ; then
6852 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
6854 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6857 $as_echo "#define LOGIN_NEEDS_TERM 1" >>confdefs.h
6859 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
6862 $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
6864 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6866 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
6868 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
6871 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
6874 $as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h
6876 external_path_file=/etc/default/login
6877 # hardwire lastlog location (can't detect it on some versions)
6878 conf_lastlog_location="/var/adm/lastlog"
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5
6880 $as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; }
6881 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
6882 if test "$sol2ver" -ge 8; then
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6884 $as_echo "yes" >&6; }
6885 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
6888 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892 $as_echo "no" >&6; }
6895 # Check whether --with-solaris-contracts was given.
6896 if test "${with_solaris_contracts+set}" = set; then :
6897 withval=$with_solaris_contracts;
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5
6899 $as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; }
6900 if ${ac_cv_lib_contract_ct_tmpl_activate+:} false; then :
6901 $as_echo_n "(cached) " >&6
6903 ac_check_lib_save_LIBS=$LIBS
6904 LIBS="-lcontract $LIBS"
6905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906 /* end confdefs.h. */
6908 /* Override any GCC internal prototype to avoid an error.
6909 Use char because int might match the return type of a GCC
6910 builtin and then its argument prototype would still apply. */
6914 char ct_tmpl_activate ();
6918 return ct_tmpl_activate ();
6923 if ac_fn_c_try_link "$LINENO"; then :
6924 ac_cv_lib_contract_ct_tmpl_activate=yes
6926 ac_cv_lib_contract_ct_tmpl_activate=no
6928 rm -f core conftest.err conftest.$ac_objext \
6929 conftest$ac_exeext conftest.$ac_ext
6930 LIBS=$ac_check_lib_save_LIBS
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
6933 $as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
6934 if test "x$ac_cv_lib_contract_ct_tmpl_activate" = xyes; then :
6936 $as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h
6938 SSHDLIBS="$SSHDLIBS -lcontract"
6946 # Check whether --with-solaris-projects was given.
6947 if test "${with_solaris_projects+set}" = set; then :
6948 withval=$with_solaris_projects;
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
6950 $as_echo_n "checking for setproject in -lproject... " >&6; }
6951 if ${ac_cv_lib_project_setproject+:} false; then :
6952 $as_echo_n "(cached) " >&6
6954 ac_check_lib_save_LIBS=$LIBS
6955 LIBS="-lproject $LIBS"
6956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957 /* end confdefs.h. */
6959 /* Override any GCC internal prototype to avoid an error.
6960 Use char because int might match the return type of a GCC
6961 builtin and then its argument prototype would still apply. */
6969 return setproject ();
6974 if ac_fn_c_try_link "$LINENO"; then :
6975 ac_cv_lib_project_setproject=yes
6977 ac_cv_lib_project_setproject=no
6979 rm -f core conftest.err conftest.$ac_objext \
6980 conftest$ac_exeext conftest.$ac_ext
6981 LIBS=$ac_check_lib_save_LIBS
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
6984 $as_echo "$ac_cv_lib_project_setproject" >&6; }
6985 if test "x$ac_cv_lib_project_setproject" = xyes; then :
6987 $as_echo "#define USE_SOLARIS_PROJECTS 1" >>confdefs.h
6989 SSHDLIBS="$SSHDLIBS -lproject"
6998 CPPFLAGS="$CPPFLAGS -DSUNOS4"
6999 for ac_func in getpwanam
7001 ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam"
7002 if test "x$ac_cv_func_getpwanam" = xyes; then :
7003 cat >>confdefs.h <<_ACEOF
7004 #define HAVE_GETPWANAM 1
7010 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7012 conf_utmp_location=/etc/utmp
7013 conf_wtmp_location=/var/adm/wtmp
7014 conf_lastlog_location=/var/adm/lastlog
7015 $as_echo "#define USE_PIPES 1" >>confdefs.h
7020 $as_echo "#define USE_PIPES 1" >>confdefs.h
7022 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7024 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7026 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7028 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7032 # /usr/ucblib MUST NOT be searched on ReliantUNIX
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
7034 $as_echo_n "checking for dlsym in -ldl... " >&6; }
7035 if ${ac_cv_lib_dl_dlsym+:} false; then :
7036 $as_echo_n "(cached) " >&6
7038 ac_check_lib_save_LIBS=$LIBS
7040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7041 /* end confdefs.h. */
7043 /* Override any GCC internal prototype to avoid an error.
7044 Use char because int might match the return type of a GCC
7045 builtin and then its argument prototype would still apply. */
7058 if ac_fn_c_try_link "$LINENO"; then :
7059 ac_cv_lib_dl_dlsym=yes
7061 ac_cv_lib_dl_dlsym=no
7063 rm -f core conftest.err conftest.$ac_objext \
7064 conftest$ac_exeext conftest.$ac_ext
7065 LIBS=$ac_check_lib_save_LIBS
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
7068 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
7069 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
7070 cat >>confdefs.h <<_ACEOF
7071 #define HAVE_LIBDL 1
7078 # -lresolv needs to be at the end of LIBS or DNS lookups break
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
7080 $as_echo_n "checking for res_query in -lresolv... " >&6; }
7081 if ${ac_cv_lib_resolv_res_query+:} false; then :
7082 $as_echo_n "(cached) " >&6
7084 ac_check_lib_save_LIBS=$LIBS
7085 LIBS="-lresolv $LIBS"
7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7087 /* end confdefs.h. */
7089 /* Override any GCC internal prototype to avoid an error.
7090 Use char because int might match the return type of a GCC
7091 builtin and then its argument prototype would still apply. */
7099 return res_query ();
7104 if ac_fn_c_try_link "$LINENO"; then :
7105 ac_cv_lib_resolv_res_query=yes
7107 ac_cv_lib_resolv_res_query=no
7109 rm -f core conftest.err conftest.$ac_objext \
7110 conftest$ac_exeext conftest.$ac_ext
7111 LIBS=$ac_check_lib_save_LIBS
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5
7114 $as_echo "$ac_cv_lib_resolv_res_query" >&6; }
7115 if test "x$ac_cv_lib_resolv_res_query" = xyes; then :
7116 LIBS="$LIBS -lresolv"
7119 IPADDR_IN_DISPLAY=yes
7120 $as_echo "#define USE_PIPES 1" >>confdefs.h
7122 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
7124 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7126 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7128 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7130 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7132 external_path_file=/etc/default/login
7133 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
7134 # Attention: always take care to bind libsocket and libnsl before libc,
7135 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
7137 # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
7139 $as_echo "#define USE_PIPES 1" >>confdefs.h
7141 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7143 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7145 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7148 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7150 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7153 # UnixWare 7.x, OpenUNIX 8
7155 CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf"
7157 $as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h
7159 $as_echo "#define USE_PIPES 1" >>confdefs.h
7161 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7163 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7165 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7167 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7169 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7172 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
7173 TEST_SHELL=/u95/bin/sh
7175 $as_echo "#define BROKEN_LIBIAF 1" >>confdefs.h
7177 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5
7180 $as_echo_n "checking for getluid in -lprot... " >&6; }
7181 if ${ac_cv_lib_prot_getluid+:} false; then :
7182 $as_echo_n "(cached) " >&6
7184 ac_check_lib_save_LIBS=$LIBS
7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h. */
7189 /* Override any GCC internal prototype to avoid an error.
7190 Use char because int might match the return type of a GCC
7191 builtin and then its argument prototype would still apply. */
7204 if ac_fn_c_try_link "$LINENO"; then :
7205 ac_cv_lib_prot_getluid=yes
7207 ac_cv_lib_prot_getluid=no
7209 rm -f core conftest.err conftest.$ac_objext \
7210 conftest$ac_exeext conftest.$ac_ext
7211 LIBS=$ac_check_lib_save_LIBS
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5
7214 $as_echo "$ac_cv_lib_prot_getluid" >&6; }
7215 if test "x$ac_cv_lib_prot_getluid" = xyes; then :
7217 for ac_func in getluid setluid
7219 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7220 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7221 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7222 cat >>confdefs.h <<_ACEOF
7223 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7229 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
7231 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
7237 *) $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7239 check_for_libcrypt_later=1
7245 # SCO UNIX and OEM versions of SCO UNIX
7247 as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5
7249 # SCO OpenServer 5.x
7251 if test -z "$GCC"; then
7252 CFLAGS="$CFLAGS -belf"
7254 LIBS="$LIBS -lprot -lx -ltinfo -lm"
7256 $as_echo "#define USE_PIPES 1" >>confdefs.h
7258 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
7260 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
7262 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7264 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7266 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7268 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7270 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7272 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7274 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7276 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7278 for ac_func in getluid setluid
7280 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7281 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7282 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7283 cat >>confdefs.h <<_ACEOF
7284 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7295 $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
7297 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7299 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7301 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7303 $as_echo "#define USE_PIPES 1" >>confdefs.h
7305 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7308 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
7312 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7314 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7316 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7318 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7320 $as_echo "#define USE_PIPES 1" >>confdefs.h
7322 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7325 LIBS="$LIBS -lgen -lacid -ldb"
7329 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7331 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7333 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7335 $as_echo "#define USE_PIPES 1" >>confdefs.h
7337 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7339 $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
7341 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
7342 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5
7347 $as_echo_n "checking for Digital Unix SIA... " >&6; }
7350 # Check whether --with-osfsia was given.
7351 if test "${with_osfsia+set}" = set; then :
7352 withval=$with_osfsia;
7353 if test "x$withval" = "xno" ; then
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7355 $as_echo "disabled" >&6; }
7361 if test -z "$no_osfsia" ; then
7362 if test -f /etc/sia/matrix.conf; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7364 $as_echo "yes" >&6; }
7366 $as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h
7369 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
7371 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7373 LIBS="$LIBS -lsecurity -ldb -lm -laud"
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7379 $as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h
7383 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7385 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7387 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7389 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7392 $as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h
7397 $as_echo "#define USE_PIPES 1" >>confdefs.h
7399 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
7402 $as_echo "#define MISSING_NFDBITS 1" >>confdefs.h
7405 $as_echo "#define MISSING_HOWMANY 1" >>confdefs.h
7408 $as_echo "#define MISSING_FD_MASK 1" >>confdefs.h
7410 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
7412 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7415 $as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h
7417 enable_etc_default_login=no # has incompatible /etc/default/login
7420 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7428 $as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h
7431 $as_echo "#define BROKEN_MMAP 1" >>confdefs.h
7433 $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
7436 $as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h
7441 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
7442 $as_echo "#define MISSING_HOWMANY 1" >>confdefs.h
7445 $as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5
7451 $as_echo_n "checking compiler and flags for sanity... " >&6; }
7452 if test "$cross_compiling" = yes; then :
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5
7454 $as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458 /* end confdefs.h. */
7461 int main(){exit(0);}
7464 if ac_fn_c_try_run "$LINENO"; then :
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7466 $as_echo "yes" >&6; }
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7470 $as_echo "no" >&6; }
7471 as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5
7474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7475 conftest.$ac_objext conftest.beam conftest.$ac_ext
7479 # Checks for libraries.
7480 ac_fn_c_check_func "$LINENO" "yp_match" "ac_cv_func_yp_match"
7481 if test "x$ac_cv_func_yp_match" = xyes; then :
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5
7485 $as_echo_n "checking for yp_match in -lnsl... " >&6; }
7486 if ${ac_cv_lib_nsl_yp_match+:} false; then :
7487 $as_echo_n "(cached) " >&6
7489 ac_check_lib_save_LIBS=$LIBS
7491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492 /* end confdefs.h. */
7494 /* Override any GCC internal prototype to avoid an error.
7495 Use char because int might match the return type of a GCC
7496 builtin and then its argument prototype would still apply. */
7509 if ac_fn_c_try_link "$LINENO"; then :
7510 ac_cv_lib_nsl_yp_match=yes
7512 ac_cv_lib_nsl_yp_match=no
7514 rm -f core conftest.err conftest.$ac_objext \
7515 conftest$ac_exeext conftest.$ac_ext
7516 LIBS=$ac_check_lib_save_LIBS
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5
7519 $as_echo "$ac_cv_lib_nsl_yp_match" >&6; }
7520 if test "x$ac_cv_lib_nsl_yp_match" = xyes; then :
7521 cat >>confdefs.h <<_ACEOF
7522 #define HAVE_LIBNSL 1
7531 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
7532 if test "x$ac_cv_func_setsockopt" = xyes; then :
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
7536 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
7537 if ${ac_cv_lib_socket_setsockopt+:} false; then :
7538 $as_echo_n "(cached) " >&6
7540 ac_check_lib_save_LIBS=$LIBS
7541 LIBS="-lsocket $LIBS"
7542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h. */
7545 /* Override any GCC internal prototype to avoid an error.
7546 Use char because int might match the return type of a GCC
7547 builtin and then its argument prototype would still apply. */
7555 return setsockopt ();
7560 if ac_fn_c_try_link "$LINENO"; then :
7561 ac_cv_lib_socket_setsockopt=yes
7563 ac_cv_lib_socket_setsockopt=no
7565 rm -f core conftest.err conftest.$ac_objext \
7566 conftest$ac_exeext conftest.$ac_ext
7567 LIBS=$ac_check_lib_save_LIBS
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
7570 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
7571 if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
7572 cat >>confdefs.h <<_ACEOF
7573 #define HAVE_LIBSOCKET 1
7576 LIBS="-lsocket $LIBS"
7583 for ac_func in dirname
7585 ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
7586 if test "x$ac_cv_func_dirname" = xyes; then :
7587 cat >>confdefs.h <<_ACEOF
7588 #define HAVE_DIRNAME 1
7590 for ac_header in libgen.h
7592 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
7593 if test "x$ac_cv_header_libgen_h" = xyes; then :
7594 cat >>confdefs.h <<_ACEOF
7595 #define HAVE_LIBGEN_H 1
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5
7605 $as_echo_n "checking for dirname in -lgen... " >&6; }
7606 if ${ac_cv_lib_gen_dirname+:} false; then :
7607 $as_echo_n "(cached) " >&6
7609 ac_check_lib_save_LIBS=$LIBS
7611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7612 /* end confdefs.h. */
7614 /* Override any GCC internal prototype to avoid an error.
7615 Use char because int might match the return type of a GCC
7616 builtin and then its argument prototype would still apply. */
7629 if ac_fn_c_try_link "$LINENO"; then :
7630 ac_cv_lib_gen_dirname=yes
7632 ac_cv_lib_gen_dirname=no
7634 rm -f core conftest.err conftest.$ac_objext \
7635 conftest$ac_exeext conftest.$ac_ext
7636 LIBS=$ac_check_lib_save_LIBS
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5
7639 $as_echo "$ac_cv_lib_gen_dirname" >&6; }
7640 if test "x$ac_cv_lib_gen_dirname" = xyes; then :
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5
7643 $as_echo_n "checking for broken dirname... " >&6; }
7644 if ${ac_cv_have_broken_dirname+:} false; then :
7645 $as_echo_n "(cached) " >&6
7650 if test "$cross_compiling" = yes; then :
7651 ac_cv_have_broken_dirname="no"
7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h. */
7659 int main(int argc, char **argv) {
7662 strncpy(buf,"/etc", 32);
7664 if (!s || strncmp(s, "/", 32) != 0) {
7672 if ac_fn_c_try_run "$LINENO"; then :
7673 ac_cv_have_broken_dirname="no"
7675 ac_cv_have_broken_dirname="yes"
7677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7678 conftest.$ac_objext conftest.beam conftest.$ac_ext
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5
7685 $as_echo "$ac_cv_have_broken_dirname" >&6; }
7686 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
7688 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
7690 for ac_header in libgen.h
7692 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
7693 if test "x$ac_cv_header_libgen_h" = xyes; then :
7694 cat >>confdefs.h <<_ACEOF
7695 #define HAVE_LIBGEN_H 1
7711 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
7712 if test "x$ac_cv_func_getspnam" = xyes; then :
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5
7716 $as_echo_n "checking for getspnam in -lgen... " >&6; }
7717 if ${ac_cv_lib_gen_getspnam+:} false; then :
7718 $as_echo_n "(cached) " >&6
7720 ac_check_lib_save_LIBS=$LIBS
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h. */
7725 /* Override any GCC internal prototype to avoid an error.
7726 Use char because int might match the return type of a GCC
7727 builtin and then its argument prototype would still apply. */
7740 if ac_fn_c_try_link "$LINENO"; then :
7741 ac_cv_lib_gen_getspnam=yes
7743 ac_cv_lib_gen_getspnam=no
7745 rm -f core conftest.err conftest.$ac_objext \
7746 conftest$ac_exeext conftest.$ac_ext
7747 LIBS=$ac_check_lib_save_LIBS
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5
7750 $as_echo "$ac_cv_lib_gen_getspnam" >&6; }
7751 if test "x$ac_cv_lib_gen_getspnam" = xyes; then :
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5
7758 $as_echo_n "checking for library containing basename... " >&6; }
7759 if ${ac_cv_search_basename+:} false; then :
7760 $as_echo_n "(cached) " >&6
7762 ac_func_search_save_LIBS=$LIBS
7763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764 /* end confdefs.h. */
7766 /* Override any GCC internal prototype to avoid an error.
7767 Use char because int might match the return type of a GCC
7768 builtin and then its argument prototype would still apply. */
7781 for ac_lib in '' gen; do
7782 if test -z "$ac_lib"; then
7783 ac_res="none required"
7786 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7788 if ac_fn_c_try_link "$LINENO"; then :
7789 ac_cv_search_basename=$ac_res
7791 rm -f core conftest.err conftest.$ac_objext \
7793 if ${ac_cv_search_basename+:} false; then :
7797 if ${ac_cv_search_basename+:} false; then :
7800 ac_cv_search_basename=no
7803 LIBS=$ac_func_search_save_LIBS
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5
7806 $as_echo "$ac_cv_search_basename" >&6; }
7807 ac_res=$ac_cv_search_basename
7808 if test "$ac_res" != no; then :
7809 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7811 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
7817 # Check whether --with-zlib was given.
7818 if test "${with_zlib+set}" = set; then :
7819 withval=$with_zlib; if test "x$withval" = "xno" ; then
7820 as_fn_error $? "*** zlib is required ***" "$LINENO" 5
7821 elif test "x$withval" != "xyes"; then
7822 if test -d "$withval/lib"; then
7823 if test -n "${need_dash_r}"; then
7824 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
7826 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
7829 if test -n "${need_dash_r}"; then
7830 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
7832 LDFLAGS="-L${withval} ${LDFLAGS}"
7835 if test -d "$withval/include"; then
7836 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
7838 CPPFLAGS="-I${withval} ${CPPFLAGS}"
7845 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7846 if test "x$ac_cv_header_zlib_h" = xyes; then :
7849 as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
7854 $as_echo_n "checking for deflate in -lz... " >&6; }
7855 if ${ac_cv_lib_z_deflate+:} false; then :
7856 $as_echo_n "(cached) " >&6
7858 ac_check_lib_save_LIBS=$LIBS
7860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861 /* end confdefs.h. */
7863 /* Override any GCC internal prototype to avoid an error.
7864 Use char because int might match the return type of a GCC
7865 builtin and then its argument prototype would still apply. */
7878 if ac_fn_c_try_link "$LINENO"; then :
7879 ac_cv_lib_z_deflate=yes
7881 ac_cv_lib_z_deflate=no
7883 rm -f core conftest.err conftest.$ac_objext \
7884 conftest$ac_exeext conftest.$ac_ext
7885 LIBS=$ac_check_lib_save_LIBS
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
7888 $as_echo "$ac_cv_lib_z_deflate" >&6; }
7889 if test "x$ac_cv_lib_z_deflate" = xyes; then :
7890 cat >>confdefs.h <<_ACEOF
7898 saved_CPPFLAGS="$CPPFLAGS"
7899 saved_LDFLAGS="$LDFLAGS"
7901 if test -n "${need_dash_r}"; then
7902 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
7904 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
7906 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
7908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909 /* end confdefs.h. */
7911 /* Override any GCC internal prototype to avoid an error.
7912 Use char because int might match the return type of a GCC
7913 builtin and then its argument prototype would still apply. */
7926 if ac_fn_c_try_link "$LINENO"; then :
7927 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
7931 as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5
7935 rm -f core conftest.err conftest.$ac_objext \
7936 conftest$ac_exeext conftest.$ac_ext
7943 # Check whether --with-zlib-version-check was given.
7944 if test "${with_zlib_version_check+set}" = set; then :
7945 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
7946 zlib_check_nonfatal=1
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5
7954 $as_echo_n "checking for possibly buggy zlib... " >&6; }
7955 if test "$cross_compiling" = yes; then :
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5
7957 $as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
7960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961 /* end confdefs.h. */
7967 int a=0, b=0, c=0, d=0, n, v;
7968 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
7969 if (n != 3 && n != 4)
7971 v = a*1000000 + b*10000 + c*100 + d;
7972 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
7975 if (a == 1 && b == 1 && c >= 4)
7978 /* 1.2.3 and up are OK */
7986 if ac_fn_c_try_run "$LINENO"; then :
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7988 $as_echo "no" >&6; }
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7991 $as_echo "yes" >&6; }
7992 if test -z "$zlib_check_nonfatal" ; then
7993 as_fn_error $? "*** zlib too old - check config.log ***
7994 Your reported zlib version has known security problems. It's possible your
7995 vendor has fixed these problems without changing the version number. If you
7996 are sure this is the case, you can disable the check by running
7997 \"./configure --without-zlib-version-check\".
7998 If you are in doubt, upgrade zlib to version 1.2.3 or greater.
7999 See http://www.gzip.org/zlib/ for details." "$LINENO" 5
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5
8002 $as_echo "$as_me: WARNING: zlib version may have security problems" >&2;}
8006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8007 conftest.$ac_objext conftest.beam conftest.$ac_ext
8011 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
8012 if test "x$ac_cv_func_strcasecmp" = xyes; then :
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5
8016 $as_echo_n "checking for strcasecmp in -lresolv... " >&6; }
8017 if ${ac_cv_lib_resolv_strcasecmp+:} false; then :
8018 $as_echo_n "(cached) " >&6
8020 ac_check_lib_save_LIBS=$LIBS
8021 LIBS="-lresolv $LIBS"
8022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8023 /* end confdefs.h. */
8025 /* Override any GCC internal prototype to avoid an error.
8026 Use char because int might match the return type of a GCC
8027 builtin and then its argument prototype would still apply. */
8035 return strcasecmp ();
8040 if ac_fn_c_try_link "$LINENO"; then :
8041 ac_cv_lib_resolv_strcasecmp=yes
8043 ac_cv_lib_resolv_strcasecmp=no
8045 rm -f core conftest.err conftest.$ac_objext \
8046 conftest$ac_exeext conftest.$ac_ext
8047 LIBS=$ac_check_lib_save_LIBS
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5
8050 $as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; }
8051 if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then :
8052 LIBS="$LIBS -lresolv"
8058 for ac_func in utimes
8060 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
8061 if test "x$ac_cv_func_utimes" = xyes; then :
8062 cat >>confdefs.h <<_ACEOF
8063 #define HAVE_UTIMES 1
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5
8068 $as_echo_n "checking for utimes in -lc89... " >&6; }
8069 if ${ac_cv_lib_c89_utimes+:} false; then :
8070 $as_echo_n "(cached) " >&6
8072 ac_check_lib_save_LIBS=$LIBS
8074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075 /* end confdefs.h. */
8077 /* Override any GCC internal prototype to avoid an error.
8078 Use char because int might match the return type of a GCC
8079 builtin and then its argument prototype would still apply. */
8092 if ac_fn_c_try_link "$LINENO"; then :
8093 ac_cv_lib_c89_utimes=yes
8095 ac_cv_lib_c89_utimes=no
8097 rm -f core conftest.err conftest.$ac_objext \
8098 conftest$ac_exeext conftest.$ac_ext
8099 LIBS=$ac_check_lib_save_LIBS
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5
8102 $as_echo "$ac_cv_lib_c89_utimes" >&6; }
8103 if test "x$ac_cv_lib_c89_utimes" = xyes; then :
8104 $as_echo "#define HAVE_UTIMES 1" >>confdefs.h
8114 for ac_header in libutil.h
8116 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
8117 if test "x$ac_cv_header_libutil_h" = xyes; then :
8118 cat >>confdefs.h <<_ACEOF
8119 #define HAVE_LIBUTIL_H 1
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5
8127 $as_echo_n "checking for library containing login... " >&6; }
8128 if ${ac_cv_search_login+:} false; then :
8129 $as_echo_n "(cached) " >&6
8131 ac_func_search_save_LIBS=$LIBS
8132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8133 /* end confdefs.h. */
8135 /* Override any GCC internal prototype to avoid an error.
8136 Use char because int might match the return type of a GCC
8137 builtin and then its argument prototype would still apply. */
8150 for ac_lib in '' util bsd; do
8151 if test -z "$ac_lib"; then
8152 ac_res="none required"
8155 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8157 if ac_fn_c_try_link "$LINENO"; then :
8158 ac_cv_search_login=$ac_res
8160 rm -f core conftest.err conftest.$ac_objext \
8162 if ${ac_cv_search_login+:} false; then :
8166 if ${ac_cv_search_login+:} false; then :
8169 ac_cv_search_login=no
8172 LIBS=$ac_func_search_save_LIBS
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5
8175 $as_echo "$ac_cv_search_login" >&6; }
8176 ac_res=$ac_cv_search_login
8177 if test "$ac_res" != no; then :
8178 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8180 $as_echo "#define HAVE_LOGIN 1" >>confdefs.h
8184 for ac_func in fmt_scaled logout updwtmp logwtmp
8186 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8187 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8188 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8189 cat >>confdefs.h <<_ACEOF
8190 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8197 for ac_func in strftime
8199 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
8200 if test "x$ac_cv_func_strftime" = xyes; then :
8201 cat >>confdefs.h <<_ACEOF
8202 #define HAVE_STRFTIME 1
8206 # strftime is in -lintl on SCO UNIX.
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
8208 $as_echo_n "checking for strftime in -lintl... " >&6; }
8209 if ${ac_cv_lib_intl_strftime+:} false; then :
8210 $as_echo_n "(cached) " >&6
8212 ac_check_lib_save_LIBS=$LIBS
8214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h. */
8217 /* Override any GCC internal prototype to avoid an error.
8218 Use char because int might match the return type of a GCC
8219 builtin and then its argument prototype would still apply. */
8232 if ac_fn_c_try_link "$LINENO"; then :
8233 ac_cv_lib_intl_strftime=yes
8235 ac_cv_lib_intl_strftime=no
8237 rm -f core conftest.err conftest.$ac_objext \
8238 conftest$ac_exeext conftest.$ac_ext
8239 LIBS=$ac_check_lib_save_LIBS
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
8242 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
8243 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
8244 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
8253 # Check for ALTDIRFUNC glob() extension
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5
8255 $as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; }
8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257 /* end confdefs.h. */
8260 #ifdef GLOB_ALTDIRFUNC
8265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8266 $EGREP "FOUNDIT" >/dev/null 2>&1; then :
8269 $as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8272 $as_echo "yes" >&6; }
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8284 # Check for g.gl_matchc glob() extension
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5
8286 $as_echo_n "checking for gl_matchc field in glob_t... " >&6; }
8287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h. */
8293 glob_t g; g.gl_matchc = 1;
8298 if ac_fn_c_try_compile "$LINENO"; then :
8301 $as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8304 $as_echo "yes" >&6; }
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8309 $as_echo "no" >&6; }
8313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8315 # Check for g.gl_statv glob() extension
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5
8317 $as_echo_n "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... " >&6; }
8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h. */
8325 #ifndef GLOB_KEEPSTAT
8326 #error "glob does not support GLOB_KEEPSTAT extension"
8335 if ac_fn_c_try_compile "$LINENO"; then :
8338 $as_echo "#define GLOB_HAS_GL_STATV 1" >>confdefs.h
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8341 $as_echo "yes" >&6; }
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346 $as_echo "no" >&6; }
8350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8352 ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h>
8354 if test "x$ac_cv_have_decl_GLOB_NOMATCH" = xyes; then :
8360 cat >>confdefs.h <<_ACEOF
8361 #define HAVE_DECL_GLOB_NOMATCH $ac_have_decl
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5
8366 $as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; }
8367 if test "$cross_compiling" = yes; then :
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
8370 $as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
8371 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
8376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377 /* end confdefs.h. */
8379 #include <sys/types.h>
8381 int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
8384 if ac_fn_c_try_run "$LINENO"; then :
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8386 $as_echo "yes" >&6; }
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390 $as_echo "no" >&6; }
8392 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
8396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8397 conftest.$ac_objext conftest.beam conftest.$ac_ext
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5
8402 $as_echo_n "checking for /proc/pid/fd directory... " >&6; }
8403 if test -d "/proc/$$/fd" ; then
8405 $as_echo "#define HAVE_PROC_PID 1" >>confdefs.h
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8408 $as_echo "yes" >&6; }
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8411 $as_echo "no" >&6; }
8414 # Check whether user wants S/Key support
8417 # Check whether --with-skey was given.
8418 if test "${with_skey+set}" = set; then :
8420 if test "x$withval" != "xno" ; then
8422 if test "x$withval" != "xyes" ; then
8423 CPPFLAGS="$CPPFLAGS -I${withval}/include"
8424 LDFLAGS="$LDFLAGS -L${withval}/lib"
8428 $as_echo "#define SKEY 1" >>confdefs.h
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for s/key support" >&5
8434 $as_echo_n "checking for s/key support... " >&6; }
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8440 int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
8443 if ac_fn_c_try_link "$LINENO"; then :
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8445 $as_echo "yes" >&6; }
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8449 $as_echo "no" >&6; }
8450 as_fn_error $? "** Incomplete or missing s/key libraries." "$LINENO" 5
8453 rm -f core conftest.err conftest.$ac_objext \
8454 conftest$ac_exeext conftest.$ac_ext
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if skeychallenge takes 4 arguments" >&5
8456 $as_echo_n "checking if skeychallenge takes 4 arguments... " >&6; }
8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458 /* end confdefs.h. */
8464 (void)skeychallenge(NULL,"name","",0);
8469 if ac_fn_c_try_compile "$LINENO"; then :
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8471 $as_echo "yes" >&6; }
8473 $as_echo "#define SKEYCHALLENGE_4ARG 1" >>confdefs.h
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8477 $as_echo "no" >&6; }
8480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8487 # Check whether user wants TCP wrappers support
8490 # Check whether --with-tcp-wrappers was given.
8491 if test "${with_tcp_wrappers+set}" = set; then :
8492 withval=$with_tcp_wrappers;
8493 if test "x$withval" != "xno" ; then
8495 saved_LDFLAGS="$LDFLAGS"
8496 saved_CPPFLAGS="$CPPFLAGS"
8497 if test -n "${withval}" && \
8498 test "x${withval}" != "xyes"; then
8499 if test -d "${withval}/lib"; then
8500 if test -n "${need_dash_r}"; then
8501 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8503 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8506 if test -n "${need_dash_r}"; then
8507 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8509 LDFLAGS="-L${withval} ${LDFLAGS}"
8512 if test -d "${withval}/include"; then
8513 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8515 CPPFLAGS="-I${withval} ${CPPFLAGS}"
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
8520 $as_echo_n "checking for libwrap... " >&6; }
8521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h. */
8524 #include <sys/types.h>
8525 #include <sys/socket.h>
8526 #include <netinet/in.h>
8528 int deny_severity = 0, allow_severity = 0;
8538 if ac_fn_c_try_link "$LINENO"; then :
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8541 $as_echo "yes" >&6; }
8543 $as_echo "#define LIBWRAP 1" >>confdefs.h
8545 SSHDLIBS="$SSHDLIBS -lwrap"
8550 as_fn_error $? "*** libwrap missing" "$LINENO" 5
8554 rm -f core conftest.err conftest.$ac_objext \
8555 conftest$ac_exeext conftest.$ac_ext
8563 # Check whether user wants libedit support
8566 # Check whether --with-libedit was given.
8567 if test "${with_libedit+set}" = set; then :
8568 withval=$with_libedit; if test "x$withval" != "xno" ; then
8569 if test "x$withval" = "xyes" ; then
8570 # Extract the first word of "pkg-config", so it can be a program name with args.
8571 set dummy pkg-config; ac_word=$2
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8573 $as_echo_n "checking for $ac_word... " >&6; }
8574 if ${ac_cv_path_PKGCONFIG+:} false; then :
8575 $as_echo_n "(cached) " >&6
8579 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
8582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8586 test -z "$as_dir" && as_dir=.
8587 for ac_exec_ext in '' $ac_executable_extensions; do
8588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8589 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
8590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8597 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
8601 PKGCONFIG=$ac_cv_path_PKGCONFIG
8602 if test -n "$PKGCONFIG"; then
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
8604 $as_echo "$PKGCONFIG" >&6; }
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8607 $as_echo "no" >&6; }
8611 if test "x$PKGCONFIG" != "xno"; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5
8613 $as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; }
8614 if "$PKGCONFIG" libedit; then
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8616 $as_echo "yes" >&6; }
8617 use_pkgconfig_for_libedit=yes
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8620 $as_echo "no" >&6; }
8624 CPPFLAGS="$CPPFLAGS -I${withval}/include"
8625 if test -n "${need_dash_r}"; then
8626 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8628 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8631 if test "x$use_pkgconfig_for_libedit" = "xyes"; then
8632 LIBEDIT=`$PKGCONFIG --libs-only-l libedit`
8633 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
8635 LIBEDIT="-ledit -lcurses"
8637 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5
8639 $as_echo_n "checking for el_init in -ledit... " >&6; }
8640 if ${ac_cv_lib_edit_el_init+:} false; then :
8641 $as_echo_n "(cached) " >&6
8643 ac_check_lib_save_LIBS=$LIBS
8644 LIBS="-ledit $OTHERLIBS
8646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647 /* end confdefs.h. */
8649 /* Override any GCC internal prototype to avoid an error.
8650 Use char because int might match the return type of a GCC
8651 builtin and then its argument prototype would still apply. */
8664 if ac_fn_c_try_link "$LINENO"; then :
8665 ac_cv_lib_edit_el_init=yes
8667 ac_cv_lib_edit_el_init=no
8669 rm -f core conftest.err conftest.$ac_objext \
8670 conftest$ac_exeext conftest.$ac_ext
8671 LIBS=$ac_check_lib_save_LIBS
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5
8674 $as_echo "$ac_cv_lib_edit_el_init" >&6; }
8675 if test "x$ac_cv_lib_edit_el_init" = xyes; then :
8677 $as_echo "#define USE_LIBEDIT 1" >>confdefs.h
8683 as_fn_error $? "libedit not found" "$LINENO" 5
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5
8687 $as_echo_n "checking if libedit version is compatible... " >&6; }
8688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689 /* end confdefs.h. */
8691 #include <histedit.h>
8695 el_init("", NULL, NULL, NULL);
8700 if ac_fn_c_try_compile "$LINENO"; then :
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8702 $as_echo "yes" >&6; }
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8705 $as_echo "no" >&6; }
8706 as_fn_error $? "libedit version is not compatible" "$LINENO" 5
8709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8717 # Check whether --with-audit was given.
8718 if test "${with_audit+set}" = set; then :
8719 withval=$with_audit;
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5
8721 $as_echo_n "checking for supported audit module... " >&6; }
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5
8725 $as_echo "bsm" >&6; }
8727 for ac_header in bsm/audit.h
8729 ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" "
8736 if test "x$ac_cv_header_bsm_audit_h" = xyes; then :
8737 cat >>confdefs.h <<_ACEOF
8738 #define HAVE_BSM_AUDIT_H 1
8742 as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5
8748 $as_echo_n "checking for getaudit in -lbsm... " >&6; }
8749 if ${ac_cv_lib_bsm_getaudit+:} false; then :
8750 $as_echo_n "(cached) " >&6
8752 ac_check_lib_save_LIBS=$LIBS
8754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755 /* end confdefs.h. */
8757 /* Override any GCC internal prototype to avoid an error.
8758 Use char because int might match the return type of a GCC
8759 builtin and then its argument prototype would still apply. */
8772 if ac_fn_c_try_link "$LINENO"; then :
8773 ac_cv_lib_bsm_getaudit=yes
8775 ac_cv_lib_bsm_getaudit=no
8777 rm -f core conftest.err conftest.$ac_objext \
8778 conftest$ac_exeext conftest.$ac_ext
8779 LIBS=$ac_check_lib_save_LIBS
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5
8782 $as_echo "$ac_cv_lib_bsm_getaudit" >&6; }
8783 if test "x$ac_cv_lib_bsm_getaudit" = xyes; then :
8784 cat >>confdefs.h <<_ACEOF
8785 #define HAVE_LIBBSM 1
8791 as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5
8794 for ac_func in getaudit
8796 ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit"
8797 if test "x$ac_cv_func_getaudit" = xyes; then :
8798 cat >>confdefs.h <<_ACEOF
8799 #define HAVE_GETAUDIT 1
8803 as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5
8807 # These are optional
8808 for ac_func in getaudit_addr aug_get_machine
8810 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8811 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8812 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8813 cat >>confdefs.h <<_ACEOF
8814 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8821 $as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5
8826 $as_echo "linux" >&6; }
8828 for ac_header in libaudit.h
8830 ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
8831 if test "x$ac_cv_header_libaudit_h" = xyes; then :
8832 cat >>confdefs.h <<_ACEOF
8833 #define HAVE_LIBAUDIT_H 1
8840 SSHDLIBS="$SSHDLIBS -laudit"
8842 $as_echo "#define USE_LINUX_AUDIT 1" >>confdefs.h
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
8848 $as_echo "debug" >&6; }
8850 $as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8855 $as_echo "no" >&6; }
8858 as_fn_error $? "Unknown audit module $withval" "$LINENO" 5
8868 arc4random_uniform \
8963 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8964 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8965 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8966 cat >>confdefs.h <<_ACEOF
8967 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8975 /* end confdefs.h. */
8980 return (isblank('a'));
8984 if ac_fn_c_try_link "$LINENO"; then :
8986 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
8990 rm -f core conftest.err conftest.$ac_objext \
8991 conftest$ac_exeext conftest.$ac_ext
8993 # PKCS#11 support requires dlopen() and co
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8995 $as_echo_n "checking for library containing dlopen... " >&6; }
8996 if ${ac_cv_search_dlopen+:} false; then :
8997 $as_echo_n "(cached) " >&6
8999 ac_func_search_save_LIBS=$LIBS
9000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001 /* end confdefs.h. */
9003 /* Override any GCC internal prototype to avoid an error.
9004 Use char because int might match the return type of a GCC
9005 builtin and then its argument prototype would still apply. */
9018 for ac_lib in '' dl; do
9019 if test -z "$ac_lib"; then
9020 ac_res="none required"
9023 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9025 if ac_fn_c_try_link "$LINENO"; then :
9026 ac_cv_search_dlopen=$ac_res
9028 rm -f core conftest.err conftest.$ac_objext \
9030 if ${ac_cv_search_dlopen+:} false; then :
9034 if ${ac_cv_search_dlopen+:} false; then :
9037 ac_cv_search_dlopen=no
9040 LIBS=$ac_func_search_save_LIBS
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9043 $as_echo "$ac_cv_search_dlopen" >&6; }
9044 ac_res=$ac_cv_search_dlopen
9045 if test "$ac_res" != no; then :
9046 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9048 $as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h
9054 # IRIX has a const char return value for gai_strerror()
9055 for ac_func in gai_strerror
9057 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
9058 if test "x$ac_cv_func_gai_strerror" = xyes; then :
9059 cat >>confdefs.h <<_ACEOF
9060 #define HAVE_GAI_STRERROR 1
9063 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
9065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9066 /* end confdefs.h. */
9068 #include <sys/types.h>
9069 #include <sys/socket.h>
9072 const char *gai_strerror(int);
9079 str = gai_strerror(0);
9084 if ac_fn_c_try_compile "$LINENO"; then :
9087 $as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h
9090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
9096 $as_echo_n "checking for library containing nanosleep... " >&6; }
9097 if ${ac_cv_search_nanosleep+:} false; then :
9098 $as_echo_n "(cached) " >&6
9100 ac_func_search_save_LIBS=$LIBS
9101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9102 /* end confdefs.h. */
9104 /* Override any GCC internal prototype to avoid an error.
9105 Use char because int might match the return type of a GCC
9106 builtin and then its argument prototype would still apply. */
9114 return nanosleep ();
9119 for ac_lib in '' rt posix4; do
9120 if test -z "$ac_lib"; then
9121 ac_res="none required"
9124 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9126 if ac_fn_c_try_link "$LINENO"; then :
9127 ac_cv_search_nanosleep=$ac_res
9129 rm -f core conftest.err conftest.$ac_objext \
9131 if ${ac_cv_search_nanosleep+:} false; then :
9135 if ${ac_cv_search_nanosleep+:} false; then :
9138 ac_cv_search_nanosleep=no
9141 LIBS=$ac_func_search_save_LIBS
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
9144 $as_echo "$ac_cv_search_nanosleep" >&6; }
9145 ac_res=$ac_cv_search_nanosleep
9146 if test "$ac_res" != no; then :
9147 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9149 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
9154 ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default"
9155 if test "x$ac_cv_have_decl_getrusage" = xyes; then :
9156 for ac_func in getrusage
9158 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
9159 if test "x$ac_cv_func_getrusage" = xyes; then :
9160 cat >>confdefs.h <<_ACEOF
9161 #define HAVE_GETRUSAGE 1
9169 ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "
9170 #ifdef HAVE_STRING_H
9171 # include <string.h>
9175 if test "x$ac_cv_have_decl_strsep" = xyes; then :
9176 for ac_func in strsep
9178 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
9179 if test "x$ac_cv_func_strsep" = xyes; then :
9180 cat >>confdefs.h <<_ACEOF
9181 #define HAVE_STRSEP 1
9190 ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h>
9193 if test "x$ac_cv_have_decl_tcsendbreak" = xyes; then :
9194 $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h
9197 for ac_func in tcsendbreak
9199 ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak"
9200 if test "x$ac_cv_func_tcsendbreak" = xyes; then :
9201 cat >>confdefs.h <<_ACEOF
9202 #define HAVE_TCSENDBREAK 1
9211 ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h>
9213 if test "x$ac_cv_have_decl_h_errno" = xyes; then :
9219 cat >>confdefs.h <<_ACEOF
9220 #define HAVE_DECL_H_ERRNO $ac_have_decl
9224 ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" "
9225 #include <sys/types.h>
9226 #include <sys/socket.h>
9229 if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then :
9235 cat >>confdefs.h <<_ACEOF
9236 #define HAVE_DECL_SHUT_RD $ac_have_decl
9240 ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "
9241 #include <sys/types.h>
9242 #ifdef HAVE_SYS_STAT_H
9243 # include <sys/stat.h>
9250 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
9256 cat >>confdefs.h <<_ACEOF
9257 #define HAVE_DECL_O_NONBLOCK $ac_have_decl
9261 ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" "
9262 #include <sys/types.h>
9263 #include <sys/uio.h>
9267 if test "x$ac_cv_have_decl_writev" = xyes; then :
9273 cat >>confdefs.h <<_ACEOF
9274 #define HAVE_DECL_WRITEV $ac_have_decl
9278 ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" "
9279 #include <sys/param.h>
9282 if test "x$ac_cv_have_decl_MAXSYMLINKS" = xyes; then :
9288 cat >>confdefs.h <<_ACEOF
9289 #define HAVE_DECL_MAXSYMLINKS $ac_have_decl
9293 ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" "
9297 if test "x$ac_cv_have_decl_offsetof" = xyes; then :
9303 cat >>confdefs.h <<_ACEOF
9304 #define HAVE_DECL_OFFSETOF $ac_have_decl
9308 for ac_func in setresuid
9310 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
9311 if test "x$ac_cv_func_setresuid" = xyes; then :
9312 cat >>confdefs.h <<_ACEOF
9313 #define HAVE_SETRESUID 1
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5
9317 $as_echo_n "checking if setresuid seems to work... " >&6; }
9318 if test "$cross_compiling" = yes; then :
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
9320 $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324 /* end confdefs.h. */
9328 int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
9331 if ac_fn_c_try_run "$LINENO"; then :
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9333 $as_echo "yes" >&6; }
9336 $as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
9339 $as_echo "not implemented" >&6; }
9341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9342 conftest.$ac_objext conftest.beam conftest.$ac_ext
9350 for ac_func in setresgid
9352 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
9353 if test "x$ac_cv_func_setresgid" = xyes; then :
9354 cat >>confdefs.h <<_ACEOF
9355 #define HAVE_SETRESGID 1
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5
9359 $as_echo_n "checking if setresgid seems to work... " >&6; }
9360 if test "$cross_compiling" = yes; then :
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
9362 $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
9365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9366 /* end confdefs.h. */
9370 int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
9373 if ac_fn_c_try_run "$LINENO"; then :
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9375 $as_echo "yes" >&6; }
9378 $as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
9381 $as_echo "not implemented" >&6; }
9383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9384 conftest.$ac_objext conftest.beam conftest.$ac_ext
9392 for ac_func in gettimeofday time
9394 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9395 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9396 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9397 cat >>confdefs.h <<_ACEOF
9398 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9404 for ac_func in endutent getutent getutid getutline pututline setutent
9406 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9407 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9408 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9409 cat >>confdefs.h <<_ACEOF
9410 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9416 for ac_func in utmpname
9418 ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname"
9419 if test "x$ac_cv_func_utmpname" = xyes; then :
9420 cat >>confdefs.h <<_ACEOF
9421 #define HAVE_UTMPNAME 1
9427 for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline
9429 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9430 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9431 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9432 cat >>confdefs.h <<_ACEOF
9433 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9439 for ac_func in setutxdb setutxent utmpxname
9441 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9442 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9443 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9444 cat >>confdefs.h <<_ACEOF
9445 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9451 for ac_func in getlastlogxbyname
9453 ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname"
9454 if test "x$ac_cv_func_getlastlogxbyname" = xyes; then :
9455 cat >>confdefs.h <<_ACEOF
9456 #define HAVE_GETLASTLOGXBYNAME 1
9463 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
9464 if test "x$ac_cv_func_daemon" = xyes; then :
9466 $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5
9470 $as_echo_n "checking for daemon in -lbsd... " >&6; }
9471 if ${ac_cv_lib_bsd_daemon+:} false; then :
9472 $as_echo_n "(cached) " >&6
9474 ac_check_lib_save_LIBS=$LIBS
9476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477 /* end confdefs.h. */
9479 /* Override any GCC internal prototype to avoid an error.
9480 Use char because int might match the return type of a GCC
9481 builtin and then its argument prototype would still apply. */
9494 if ac_fn_c_try_link "$LINENO"; then :
9495 ac_cv_lib_bsd_daemon=yes
9497 ac_cv_lib_bsd_daemon=no
9499 rm -f core conftest.err conftest.$ac_objext \
9500 conftest$ac_exeext conftest.$ac_ext
9501 LIBS=$ac_check_lib_save_LIBS
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5
9504 $as_echo "$ac_cv_lib_bsd_daemon" >&6; }
9505 if test "x$ac_cv_lib_bsd_daemon" = xyes; then :
9506 LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
9514 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9515 if test "x$ac_cv_func_getpagesize" = xyes; then :
9517 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5
9521 $as_echo_n "checking for getpagesize in -lucb... " >&6; }
9522 if ${ac_cv_lib_ucb_getpagesize+:} false; then :
9523 $as_echo_n "(cached) " >&6
9525 ac_check_lib_save_LIBS=$LIBS
9527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9528 /* end confdefs.h. */
9530 /* Override any GCC internal prototype to avoid an error.
9531 Use char because int might match the return type of a GCC
9532 builtin and then its argument prototype would still apply. */
9536 char getpagesize ();
9540 return getpagesize ();
9545 if ac_fn_c_try_link "$LINENO"; then :
9546 ac_cv_lib_ucb_getpagesize=yes
9548 ac_cv_lib_ucb_getpagesize=no
9550 rm -f core conftest.err conftest.$ac_objext \
9551 conftest$ac_exeext conftest.$ac_ext
9552 LIBS=$ac_check_lib_save_LIBS
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5
9555 $as_echo "$ac_cv_lib_ucb_getpagesize" >&6; }
9556 if test "x$ac_cv_lib_ucb_getpagesize" = xyes; then :
9557 LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
9565 # Check for broken snprintf
9566 if test "x$ac_cv_func_snprintf" = "xyes" ; then
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5
9568 $as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; }
9569 if test "$cross_compiling" = yes; then :
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
9571 $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
9574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575 /* end confdefs.h. */
9578 int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
9581 if ac_fn_c_try_run "$LINENO"; then :
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9583 $as_echo "yes" >&6; }
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9587 $as_echo "no" >&6; }
9589 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
9592 $as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
9595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9596 conftest.$ac_objext conftest.beam conftest.$ac_ext
9601 # If we don't have a working asprintf, then we strongly depend on vsnprintf
9602 # returning the right thing on overflow: the number of characters it tried to
9603 # create (as per SUSv3)
9604 if test "x$ac_cv_func_asprintf" != "xyes" && \
9605 test "x$ac_cv_func_vsnprintf" = "xyes" ; then
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5
9607 $as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; }
9608 if test "$cross_compiling" = yes; then :
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5
9610 $as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
9613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9614 /* end confdefs.h. */
9616 #include <sys/types.h>
9620 int x_snprintf(char *str,size_t count,const char *fmt,...)
9622 size_t ret; va_list ap;
9623 va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap);
9629 exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1);
9632 if ac_fn_c_try_run "$LINENO"; then :
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9634 $as_echo "yes" >&6; }
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9638 $as_echo "no" >&6; }
9640 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
9643 $as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
9646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9647 conftest.$ac_objext conftest.beam conftest.$ac_ext
9652 # On systems where [v]snprintf is broken, but is declared in stdio,
9653 # check that the fmt argument is const char * or just char *.
9654 # This is only useful for when BROKEN_SNPRINTF
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5
9656 $as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; }
9657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9658 /* end confdefs.h. */
9660 int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
9661 int main(void) { snprintf(0, 0, 0); }
9664 if ac_fn_c_try_compile "$LINENO"; then :
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9666 $as_echo "yes" >&6; }
9668 $as_echo "#define SNPRINTF_CONST const" >>confdefs.h
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9672 $as_echo "no" >&6; }
9673 $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h
9676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9678 # Check for missing getpeereid (or equiv) support
9680 if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5
9682 $as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; }
9683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9684 /* end confdefs.h. */
9685 #include <sys/types.h>
9686 #include <sys/socket.h>
9690 int i = SO_PEERCRED;
9695 if ac_fn_c_try_compile "$LINENO"; then :
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9697 $as_echo "yes" >&6; }
9699 $as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9704 $as_echo "no" >&6; }
9708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9711 if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5
9713 $as_echo_n "checking for (overly) strict mkstemp... " >&6; }
9714 if test "$cross_compiling" = yes; then :
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9717 $as_echo "yes" >&6; }
9718 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
9723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9724 /* end confdefs.h. */
9727 main() { char template[]="conftest.mkstemp-test";
9728 if (mkstemp(template) == -1)
9730 unlink(template); exit(0);
9734 if ac_fn_c_try_run "$LINENO"; then :
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9737 $as_echo "no" >&6; }
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9742 $as_echo "yes" >&6; }
9744 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
9748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9749 conftest.$ac_objext conftest.beam conftest.$ac_ext
9754 if test ! -z "$check_for_openpty_ctty_bug"; then
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5
9756 $as_echo_n "checking if openpty correctly handles controlling tty... " >&6; }
9757 if test "$cross_compiling" = yes; then :
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
9760 $as_echo "cross-compiling" >&6; }
9764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9765 /* end confdefs.h. */
9768 #include <sys/fcntl.h>
9769 #include <sys/types.h>
9770 #include <sys/wait.h>
9776 int fd, ptyfd, ttyfd, status;
9779 if (pid < 0) { /* failed */
9781 } else if (pid > 0) { /* parent */
9782 waitpid(pid, &status, 0);
9783 if (WIFEXITED(status))
9784 exit(WEXITSTATUS(status));
9787 } else { /* child */
9788 close(0); close(1); close(2);
9790 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
9791 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
9793 exit(3); /* Acquired ctty: broken */
9795 exit(0); /* Did not acquire ctty: OK */
9800 if ac_fn_c_try_run "$LINENO"; then :
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9803 $as_echo "yes" >&6; }
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9808 $as_echo "no" >&6; }
9809 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
9813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9814 conftest.$ac_objext conftest.beam conftest.$ac_ext
9819 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
9820 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
9822 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
9823 if test "$cross_compiling" = yes; then :
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
9826 $as_echo "cross-compiling" >&6; }
9830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9831 /* end confdefs.h. */
9834 #include <sys/socket.h>
9837 #include <netinet/in.h>
9839 #define TEST_PORT "2222"
9845 struct addrinfo *gai_ai, *ai, hints;
9846 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
9848 memset(&hints, 0, sizeof(hints));
9849 hints.ai_family = PF_UNSPEC;
9850 hints.ai_socktype = SOCK_STREAM;
9851 hints.ai_flags = AI_PASSIVE;
9853 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
9855 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
9859 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
9860 if (ai->ai_family != AF_INET6)
9863 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
9864 sizeof(ntop), strport, sizeof(strport),
9865 NI_NUMERICHOST|NI_NUMERICSERV);
9868 if (err == EAI_SYSTEM)
9869 perror("getnameinfo EAI_SYSTEM");
9871 fprintf(stderr, "getnameinfo failed: %s\n",
9876 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
9879 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
9888 if ac_fn_c_try_run "$LINENO"; then :
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9891 $as_echo "yes" >&6; }
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9896 $as_echo "no" >&6; }
9897 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
9901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9902 conftest.$ac_objext conftest.beam conftest.$ac_ext
9907 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
9908 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
9910 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
9911 if test "$cross_compiling" = yes; then :
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
9914 $as_echo "cross-compiling" >&6; }
9918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9919 /* end confdefs.h. */
9922 #include <sys/socket.h>
9925 #include <netinet/in.h>
9927 #define TEST_PORT "2222"
9933 struct addrinfo *gai_ai, *ai, hints;
9934 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
9936 memset(&hints, 0, sizeof(hints));
9937 hints.ai_family = PF_UNSPEC;
9938 hints.ai_socktype = SOCK_STREAM;
9939 hints.ai_flags = AI_PASSIVE;
9941 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
9943 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
9947 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
9948 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
9951 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
9952 sizeof(ntop), strport, sizeof(strport),
9953 NI_NUMERICHOST|NI_NUMERICSERV);
9955 if (ai->ai_family == AF_INET && err != 0) {
9956 perror("getnameinfo");
9964 if ac_fn_c_try_run "$LINENO"; then :
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9967 $as_echo "yes" >&6; }
9969 $as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9975 $as_echo "no" >&6; }
9976 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
9980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9981 conftest.$ac_objext conftest.beam conftest.$ac_ext
9986 if test "x$check_for_conflicting_getspnam" = "x1"; then
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5
9988 $as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; }
9989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9990 /* end confdefs.h. */
9993 int main(void) {exit(0);}
9996 if ac_fn_c_try_compile "$LINENO"; then :
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9999 $as_echo "no" >&6; }
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10004 $as_echo "yes" >&6; }
10006 $as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h
10011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
10015 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
10016 if ${ac_cv_func_getpgrp_void+:} false; then :
10017 $as_echo_n "(cached) " >&6
10019 # Use it with a single arg.
10020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021 /* end confdefs.h. */
10022 $ac_includes_default
10031 if ac_fn_c_try_compile "$LINENO"; then :
10032 ac_cv_func_getpgrp_void=no
10034 ac_cv_func_getpgrp_void=yes
10036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
10040 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
10041 if test $ac_cv_func_getpgrp_void = yes; then
10043 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
10048 # Search for OpenSSL
10049 saved_CPPFLAGS="$CPPFLAGS"
10050 saved_LDFLAGS="$LDFLAGS"
10052 # Check whether --with-ssl-dir was given.
10053 if test "${with_ssl_dir+set}" = set; then :
10054 withval=$with_ssl_dir;
10055 if test "x$withval" != "xno" ; then
10058 ./*|../*) withval="`pwd`/$withval"
10060 if test -d "$withval/lib"; then
10061 if test -n "${need_dash_r}"; then
10062 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
10064 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
10066 elif test -d "$withval/lib64"; then
10067 if test -n "${need_dash_r}"; then
10068 LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}"
10070 LDFLAGS="-L${withval}/lib64 ${LDFLAGS}"
10073 if test -n "${need_dash_r}"; then
10074 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
10076 LDFLAGS="-L${withval} ${LDFLAGS}"
10079 if test -d "$withval/include"; then
10080 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
10082 CPPFLAGS="-I${withval} ${CPPFLAGS}"
10089 LIBS="-lcrypto $LIBS"
10090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10091 /* end confdefs.h. */
10093 /* Override any GCC internal prototype to avoid an error.
10094 Use char because int might match the return type of a GCC
10095 builtin and then its argument prototype would still apply. */
10103 return RAND_add ();
10108 if ac_fn_c_try_link "$LINENO"; then :
10110 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
10114 if test -n "${need_dash_r}"; then
10115 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
10117 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
10119 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
10120 ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
10121 if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then :
10124 as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5
10128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10129 /* end confdefs.h. */
10131 /* Override any GCC internal prototype to avoid an error.
10132 Use char because int might match the return type of a GCC
10133 builtin and then its argument prototype would still apply. */
10141 return RAND_add ();
10146 if ac_fn_c_try_link "$LINENO"; then :
10147 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
10151 as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5
10155 rm -f core conftest.err conftest.$ac_objext \
10156 conftest$ac_exeext conftest.$ac_ext
10160 rm -f core conftest.err conftest.$ac_objext \
10161 conftest$ac_exeext conftest.$ac_ext
10163 # Determine OpenSSL header version
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5
10165 $as_echo_n "checking OpenSSL header version... " >&6; }
10166 if test "$cross_compiling" = yes; then :
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
10169 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
10173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h. */
10177 #include <string.h>
10178 #include <openssl/opensslv.h>
10179 #define DATA "conftest.sslincver"
10184 fd = fopen(DATA,"w");
10188 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
10195 if ac_fn_c_try_run "$LINENO"; then :
10197 ssl_header_ver=`cat conftest.sslincver`
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5
10199 $as_echo "$ssl_header_ver" >&6; }
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10204 $as_echo "not found" >&6; }
10205 as_fn_error $? "OpenSSL version header not found." "$LINENO" 5
10208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10209 conftest.$ac_objext conftest.beam conftest.$ac_ext
10213 # Determine OpenSSL library version
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5
10215 $as_echo_n "checking OpenSSL library version... " >&6; }
10216 if test "$cross_compiling" = yes; then :
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
10219 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
10223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224 /* end confdefs.h. */
10227 #include <string.h>
10228 #include <openssl/opensslv.h>
10229 #include <openssl/crypto.h>
10230 #define DATA "conftest.ssllibver"
10235 fd = fopen(DATA,"w");
10239 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
10246 if ac_fn_c_try_run "$LINENO"; then :
10248 ssl_library_ver=`cat conftest.ssllibver`
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5
10250 $as_echo "$ssl_library_ver" >&6; }
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10255 $as_echo "not found" >&6; }
10256 as_fn_error $? "OpenSSL library not found." "$LINENO" 5
10259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10260 conftest.$ac_objext conftest.beam conftest.$ac_ext
10265 # Check whether --with-openssl-header-check was given.
10266 if test "${with_openssl_header_check+set}" = set; then :
10267 withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then
10268 openssl_check_nonfatal=1
10275 # Sanity check OpenSSL headers
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5
10277 $as_echo_n "checking whether OpenSSL's headers match the library... " >&6; }
10278 if test "$cross_compiling" = yes; then :
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
10281 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
10285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10286 /* end confdefs.h. */
10288 #include <string.h>
10289 #include <openssl/opensslv.h>
10290 int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
10293 if ac_fn_c_try_run "$LINENO"; then :
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10296 $as_echo "yes" >&6; }
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10301 $as_echo "no" >&6; }
10302 if test "x$openssl_check_nonfatal" = "x"; then
10303 as_fn_error $? "Your OpenSSL headers do not match your
10304 library. Check config.log for details.
10305 If you are sure your installation is consistent, you can disable the check
10306 by running \"./configure --without-openssl-header-check\".
10307 Also see contrib/findssl.sh for help identifying header/library mismatches.
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your
10311 library. Check config.log for details.
10312 Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
10313 $as_echo "$as_me: WARNING: Your OpenSSL headers do not match your
10314 library. Check config.log for details.
10315 Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
10319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10320 conftest.$ac_objext conftest.beam conftest.$ac_ext
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5
10325 $as_echo_n "checking if programs using OpenSSL functions will link... " >&6; }
10326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10327 /* end confdefs.h. */
10329 #include <openssl/evp.h>
10330 int main(void) { SSLeay_add_all_algorithms(); }
10333 if ac_fn_c_try_link "$LINENO"; then :
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10336 $as_echo "yes" >&6; }
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10341 $as_echo "no" >&6; }
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5
10345 $as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; }
10346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10347 /* end confdefs.h. */
10349 #include <openssl/evp.h>
10350 int main(void) { SSLeay_add_all_algorithms(); }
10353 if ac_fn_c_try_link "$LINENO"; then :
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10356 $as_echo "yes" >&6; }
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10361 $as_echo "no" >&6; }
10366 rm -f core conftest.err conftest.$ac_objext \
10367 conftest$ac_exeext conftest.$ac_ext
10371 rm -f core conftest.err conftest.$ac_objext \
10372 conftest$ac_exeext conftest.$ac_ext
10374 for ac_func in RSA_generate_key_ex DSA_generate_parameters_ex BN_is_prime_ex RSA_get_default_method
10376 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10377 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10378 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10379 cat >>confdefs.h <<_ACEOF
10380 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10388 # Check whether --with-ssl-engine was given.
10389 if test "${with_ssl_engine+set}" = set; then :
10390 withval=$with_ssl_engine; if test "x$withval" != "xno" ; then
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5
10392 $as_echo_n "checking for OpenSSL ENGINE support... " >&6; }
10393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h. */
10395 #include <openssl/engine.h>
10400 ENGINE_load_builtin_engines();ENGINE_register_all_complete();
10406 if ac_fn_c_try_compile "$LINENO"; then :
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10408 $as_echo "yes" >&6; }
10410 $as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h
10414 as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5
10417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10423 # Check for OpenSSL without EVP_aes_{192,256}_cbc
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5
10425 $as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; }
10426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427 /* end confdefs.h. */
10429 #include <string.h>
10430 #include <openssl/evp.h>
10431 int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);}
10434 if ac_fn_c_try_link "$LINENO"; then :
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10437 $as_echo "no" >&6; }
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10442 $as_echo "yes" >&6; }
10444 $as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h
10449 rm -f core conftest.err conftest.$ac_objext \
10450 conftest$ac_exeext conftest.$ac_ext
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5
10453 $as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; }
10454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10455 /* end confdefs.h. */
10457 #include <string.h>
10458 #include <openssl/evp.h>
10459 int main(void) { if(EVP_DigestUpdate(NULL, NULL,0)) exit(0); }
10462 if ac_fn_c_try_link "$LINENO"; then :
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10465 $as_echo "yes" >&6; }
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10470 $as_echo "no" >&6; }
10472 $as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h
10477 rm -f core conftest.err conftest.$ac_objext \
10478 conftest$ac_exeext conftest.$ac_ext
10480 # Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
10481 # because the system crypt() is more featureful.
10482 if test "x$check_for_libcrypt_before" = "x1"; then
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
10484 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
10485 if ${ac_cv_lib_crypt_crypt+:} false; then :
10486 $as_echo_n "(cached) " >&6
10488 ac_check_lib_save_LIBS=$LIBS
10489 LIBS="-lcrypt $LIBS"
10490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10491 /* end confdefs.h. */
10493 /* Override any GCC internal prototype to avoid an error.
10494 Use char because int might match the return type of a GCC
10495 builtin and then its argument prototype would still apply. */
10508 if ac_fn_c_try_link "$LINENO"; then :
10509 ac_cv_lib_crypt_crypt=yes
10511 ac_cv_lib_crypt_crypt=no
10513 rm -f core conftest.err conftest.$ac_objext \
10514 conftest$ac_exeext conftest.$ac_ext
10515 LIBS=$ac_check_lib_save_LIBS
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
10518 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
10519 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
10520 cat >>confdefs.h <<_ACEOF
10521 #define HAVE_LIBCRYPT 1
10524 LIBS="-lcrypt $LIBS"
10530 # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
10531 # version in OpenSSL.
10532 if test "x$check_for_libcrypt_later" = "x1"; then
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
10534 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
10535 if ${ac_cv_lib_crypt_crypt+:} false; then :
10536 $as_echo_n "(cached) " >&6
10538 ac_check_lib_save_LIBS=$LIBS
10539 LIBS="-lcrypt $LIBS"
10540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10541 /* end confdefs.h. */
10543 /* Override any GCC internal prototype to avoid an error.
10544 Use char because int might match the return type of a GCC
10545 builtin and then its argument prototype would still apply. */
10558 if ac_fn_c_try_link "$LINENO"; then :
10559 ac_cv_lib_crypt_crypt=yes
10561 ac_cv_lib_crypt_crypt=no
10563 rm -f core conftest.err conftest.$ac_objext \
10564 conftest$ac_exeext conftest.$ac_ext
10565 LIBS=$ac_check_lib_save_LIBS
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
10568 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
10569 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
10570 LIBS="$LIBS -lcrypt"
10575 # Search for SHA256 support in libc and/or OpenSSL
10576 for ac_func in SHA256_Update EVP_sha256
10578 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10579 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10580 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10581 cat >>confdefs.h <<_ACEOF
10582 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10584 TEST_SSH_SHA256=yes
10592 # Check complete ECC support in OpenSSL
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has complete ECC support" >&5
10594 $as_echo_n "checking whether OpenSSL has complete ECC support... " >&6; }
10595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10596 /* end confdefs.h. */
10598 #include <openssl/ec.h>
10599 #include <openssl/ecdh.h>
10600 #include <openssl/ecdsa.h>
10601 #include <openssl/evp.h>
10602 #include <openssl/objects.h>
10603 #include <openssl/opensslv.h>
10604 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
10605 # error "OpenSSL < 0.9.8g has unreliable ECC code"
10608 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
10609 const EVP_MD *m = EVP_sha512(); /* We need this too */
10613 if ac_fn_c_try_link "$LINENO"; then :
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10616 $as_echo "yes" >&6; }
10618 $as_echo "#define OPENSSL_HAS_ECC 1" >>confdefs.h
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10626 $as_echo "no" >&6; }
10628 COMMENT_OUT_ECC="#no ecc#"
10632 rm -f core conftest.err conftest.$ac_objext \
10633 conftest$ac_exeext conftest.$ac_ext
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5
10639 $as_echo_n "checking for ia_openinfo in -liaf... " >&6; }
10640 if ${ac_cv_lib_iaf_ia_openinfo+:} false; then :
10641 $as_echo_n "(cached) " >&6
10643 ac_check_lib_save_LIBS=$LIBS
10645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10646 /* end confdefs.h. */
10648 /* Override any GCC internal prototype to avoid an error.
10649 Use char because int might match the return type of a GCC
10650 builtin and then its argument prototype would still apply. */
10654 char ia_openinfo ();
10658 return ia_openinfo ();
10663 if ac_fn_c_try_link "$LINENO"; then :
10664 ac_cv_lib_iaf_ia_openinfo=yes
10666 ac_cv_lib_iaf_ia_openinfo=no
10668 rm -f core conftest.err conftest.$ac_objext \
10669 conftest$ac_exeext conftest.$ac_ext
10670 LIBS=$ac_check_lib_save_LIBS
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5
10673 $as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; }
10674 if test "x$ac_cv_lib_iaf_ia_openinfo" = xyes; then :
10677 for ac_func in set_id
10679 ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id"
10680 if test "x$ac_cv_func_set_id" = xyes; then :
10681 cat >>confdefs.h <<_ACEOF
10682 #define HAVE_SET_ID 1
10684 SSHDLIBS="$SSHDLIBS -liaf"
10686 $as_echo "#define HAVE_LIBIAF 1" >>confdefs.h
10697 ### Configure cryptographic random number support
10699 # Check wheter OpenSSL seeds itself
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5
10701 $as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; }
10702 if test "$cross_compiling" = yes; then :
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
10705 $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
10706 # This is safe, since all recent OpenSSL versions will
10707 # complain at runtime if not seeded correctly.
10708 OPENSSL_SEEDS_ITSELF=yes
10712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10713 /* end confdefs.h. */
10715 #include <string.h>
10716 #include <openssl/rand.h>
10717 int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
10720 if ac_fn_c_try_run "$LINENO"; then :
10722 OPENSSL_SEEDS_ITSELF=yes
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10724 $as_echo "yes" >&6; }
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10729 $as_echo "no" >&6; }
10730 # Default to use of the rand helper if OpenSSL doesn't
10732 USE_RAND_HELPER=yes
10735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10736 conftest.$ac_objext conftest.beam conftest.$ac_ext
10740 # Check for PAM libs
10743 # Check whether --with-pam was given.
10744 if test "${with_pam+set}" = set; then :
10746 if test "x$withval" != "xno" ; then
10747 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
10748 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
10749 as_fn_error $? "PAM headers not found" "$LINENO" 5
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10754 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10755 if ${ac_cv_lib_dl_dlopen+:} false; then :
10756 $as_echo_n "(cached) " >&6
10758 ac_check_lib_save_LIBS=$LIBS
10760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761 /* end confdefs.h. */
10763 /* Override any GCC internal prototype to avoid an error.
10764 Use char because int might match the return type of a GCC
10765 builtin and then its argument prototype would still apply. */
10778 if ac_fn_c_try_link "$LINENO"; then :
10779 ac_cv_lib_dl_dlopen=yes
10781 ac_cv_lib_dl_dlopen=no
10783 rm -f core conftest.err conftest.$ac_objext \
10784 conftest$ac_exeext conftest.$ac_ext
10785 LIBS=$ac_check_lib_save_LIBS
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10788 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10789 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10790 cat >>confdefs.h <<_ACEOF
10791 #define HAVE_LIBDL 1
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
10799 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
10800 if ${ac_cv_lib_pam_pam_set_item+:} false; then :
10801 $as_echo_n "(cached) " >&6
10803 ac_check_lib_save_LIBS=$LIBS
10805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10806 /* end confdefs.h. */
10808 /* Override any GCC internal prototype to avoid an error.
10809 Use char because int might match the return type of a GCC
10810 builtin and then its argument prototype would still apply. */
10814 char pam_set_item ();
10818 return pam_set_item ();
10823 if ac_fn_c_try_link "$LINENO"; then :
10824 ac_cv_lib_pam_pam_set_item=yes
10826 ac_cv_lib_pam_pam_set_item=no
10828 rm -f core conftest.err conftest.$ac_objext \
10829 conftest$ac_exeext conftest.$ac_ext
10830 LIBS=$ac_check_lib_save_LIBS
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
10833 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
10834 if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
10835 cat >>confdefs.h <<_ACEOF
10836 #define HAVE_LIBPAM 1
10842 as_fn_error $? "*** libpam missing" "$LINENO" 5
10845 for ac_func in pam_getenvlist
10847 ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
10848 if test "x$ac_cv_func_pam_getenvlist" = xyes; then :
10849 cat >>confdefs.h <<_ACEOF
10850 #define HAVE_PAM_GETENVLIST 1
10856 for ac_func in pam_putenv
10858 ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv"
10859 if test "x$ac_cv_func_pam_putenv" = xyes; then :
10860 cat >>confdefs.h <<_ACEOF
10861 #define HAVE_PAM_PUTENV 1
10871 SSHDLIBS="$SSHDLIBS -lpam"
10873 $as_echo "#define USE_PAM 1" >>confdefs.h
10876 if test $ac_cv_lib_dl_dlopen = yes; then
10879 # libdl already in LIBS
10882 SSHDLIBS="$SSHDLIBS -ldl"
10892 # Check for older PAM
10893 if test "x$PAM_MSG" = "xyes" ; then
10894 # Check PAM strerror arguments (old PAM)
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5
10896 $as_echo_n "checking whether pam_strerror takes only one argument... " >&6; }
10897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10898 /* end confdefs.h. */
10900 #include <stdlib.h>
10901 #if defined(HAVE_SECURITY_PAM_APPL_H)
10902 #include <security/pam_appl.h>
10903 #elif defined (HAVE_PAM_PAM_APPL_H)
10904 #include <pam/pam_appl.h>
10910 (void)pam_strerror((pam_handle_t *)NULL, -1);
10915 if ac_fn_c_try_compile "$LINENO"; then :
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10917 $as_echo "no" >&6; }
10921 $as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10924 $as_echo "yes" >&6; }
10925 PAM_MSG="yes (old library)"
10929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10932 # Do we want to force the use of the rand helper?
10934 # Check whether --with-rand-helper was given.
10935 if test "${with_rand_helper+set}" = set; then :
10936 withval=$with_rand_helper;
10937 if test "x$withval" = "xno" ; then
10938 # Force use of OpenSSL's internal RNG, even if
10939 # the previous test showed it to be unseeded.
10940 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
10942 $as_echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
10943 OPENSSL_SEEDS_ITSELF=yes
10947 USE_RAND_HELPER=yes
10953 # Which randomness source do we use?
10954 if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then
10957 $as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h
10959 RAND_MSG="OpenSSL internal ONLY"
10960 INSTALL_SSH_RAND_HELPER=""
10961 elif test ! -z "$USE_RAND_HELPER" ; then
10962 # install rand helper
10963 RAND_MSG="ssh-rand-helper"
10964 INSTALL_SSH_RAND_HELPER="yes"
10968 ### Configuration of ssh-rand-helper
10972 # Check whether --with-prngd-port was given.
10973 if test "${with_prngd_port+set}" = set; then :
10974 withval=$with_prngd_port;
10982 as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5
10985 if test ! -z "$withval" ; then
10986 PRNGD_PORT="$withval"
10988 cat >>confdefs.h <<_ACEOF
10989 #define PRNGD_PORT $PRNGD_PORT
10998 # PRNGD Unix domain socket
11000 # Check whether --with-prngd-socket was given.
11001 if test "${with_prngd_socket+set}" = set; then :
11002 withval=$with_prngd_socket;
11005 withval="/var/run/egd-pool"
11013 as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5
11017 if test ! -z "$withval" ; then
11018 if test ! -z "$PRNGD_PORT" ; then
11019 as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5
11021 if test ! -r "$withval" ; then
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5
11023 $as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
11025 PRNGD_SOCKET="$withval"
11027 cat >>confdefs.h <<_ACEOF
11028 #define PRNGD_SOCKET "$PRNGD_SOCKET"
11035 # Check for existing socket only if we don't have a random device already
11036 if test "$USE_RAND_HELPER" = yes ; then
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5
11038 $as_echo_n "checking for PRNGD/EGD socket... " >&6; }
11039 # Insert other locations here
11040 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
11041 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
11042 PRNGD_SOCKET="$sock"
11043 cat >>confdefs.h <<_ACEOF
11044 #define PRNGD_SOCKET "$PRNGD_SOCKET"
11050 if test ! -z "$PRNGD_SOCKET" ; then
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5
11052 $as_echo "$PRNGD_SOCKET" >&6; }
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11055 $as_echo "not found" >&6; }
11063 # Change default command timeout for hashing entropy source
11064 entropy_timeout=200
11066 # Check whether --with-entropy-timeout was given.
11067 if test "${with_entropy_timeout+set}" = set; then :
11068 withval=$with_entropy_timeout;
11069 if test -n "$withval" && test "x$withval" != "xno" && \
11070 test "x${withval}" != "xyes"; then
11071 entropy_timeout=$withval
11078 cat >>confdefs.h <<_ACEOF
11079 #define ENTROPY_TIMEOUT_MSEC $entropy_timeout
11083 SSH_PRIVSEP_USER=sshd
11085 # Check whether --with-privsep-user was given.
11086 if test "${with_privsep_user+set}" = set; then :
11087 withval=$with_privsep_user;
11088 if test -n "$withval" && test "x$withval" != "xno" && \
11089 test "x${withval}" != "xyes"; then
11090 SSH_PRIVSEP_USER=$withval
11097 cat >>confdefs.h <<_ACEOF
11098 #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
11103 # We do this little dance with the search path to insure
11104 # that programs that we select for use by installed programs
11105 # (which may be run by the super-user) come from trusted
11106 # locations before they come from the user's private area.
11107 # This should help avoid accidentally configuring some
11108 # random version of a program in someone's personal bin.
11112 test -h /bin 2> /dev/null && PATH=/usr/bin
11113 test -d /sbin && PATH=$PATH:/sbin
11114 test -d /usr/sbin && PATH=$PATH:/usr/sbin
11115 PATH=$PATH:/etc:$OPATH
11117 # These programs are used by the command hashing source to gather entropy
11119 # Extract the first word of "ls", so it can be a program name with args.
11120 set dummy ls; ac_word=$2
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11122 $as_echo_n "checking for $ac_word... " >&6; }
11123 if ${ac_cv_path_PROG_LS+:} false; then :
11124 $as_echo_n "(cached) " >&6
11128 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
11131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11132 for as_dir in $PATH
11135 test -z "$as_dir" && as_dir=.
11136 for ac_exec_ext in '' $ac_executable_extensions; do
11137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11138 ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
11139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11149 PROG_LS=$ac_cv_path_PROG_LS
11150 if test -n "$PROG_LS"; then
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_LS" >&5
11152 $as_echo "$PROG_LS" >&6; }
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11155 $as_echo "no" >&6; }
11159 if test -z "$PROG_LS" ; then
11165 # Extract the first word of "netstat", so it can be a program name with args.
11166 set dummy netstat; ac_word=$2
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11168 $as_echo_n "checking for $ac_word... " >&6; }
11169 if ${ac_cv_path_PROG_NETSTAT+:} false; then :
11170 $as_echo_n "(cached) " >&6
11172 case $PROG_NETSTAT in
11174 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
11177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11178 for as_dir in $PATH
11181 test -z "$as_dir" && as_dir=.
11182 for ac_exec_ext in '' $ac_executable_extensions; do
11183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11184 ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
11185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11195 PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
11196 if test -n "$PROG_NETSTAT"; then
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_NETSTAT" >&5
11198 $as_echo "$PROG_NETSTAT" >&6; }
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201 $as_echo "no" >&6; }
11205 if test -z "$PROG_NETSTAT" ; then
11206 PROG_NETSTAT="undef"
11211 # Extract the first word of "arp", so it can be a program name with args.
11212 set dummy arp; ac_word=$2
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11214 $as_echo_n "checking for $ac_word... " >&6; }
11215 if ${ac_cv_path_PROG_ARP+:} false; then :
11216 $as_echo_n "(cached) " >&6
11220 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
11223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11224 for as_dir in $PATH
11227 test -z "$as_dir" && as_dir=.
11228 for ac_exec_ext in '' $ac_executable_extensions; do
11229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11230 ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
11231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11241 PROG_ARP=$ac_cv_path_PROG_ARP
11242 if test -n "$PROG_ARP"; then
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_ARP" >&5
11244 $as_echo "$PROG_ARP" >&6; }
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11247 $as_echo "no" >&6; }
11251 if test -z "$PROG_ARP" ; then
11257 # Extract the first word of "ifconfig", so it can be a program name with args.
11258 set dummy ifconfig; ac_word=$2
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11260 $as_echo_n "checking for $ac_word... " >&6; }
11261 if ${ac_cv_path_PROG_IFCONFIG+:} false; then :
11262 $as_echo_n "(cached) " >&6
11264 case $PROG_IFCONFIG in
11266 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
11269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270 for as_dir in $PATH
11273 test -z "$as_dir" && as_dir=.
11274 for ac_exec_ext in '' $ac_executable_extensions; do
11275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11276 ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
11277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11287 PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
11288 if test -n "$PROG_IFCONFIG"; then
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_IFCONFIG" >&5
11290 $as_echo "$PROG_IFCONFIG" >&6; }
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293 $as_echo "no" >&6; }
11297 if test -z "$PROG_IFCONFIG" ; then
11298 PROG_IFCONFIG="undef"
11303 # Extract the first word of "jstat", so it can be a program name with args.
11304 set dummy jstat; ac_word=$2
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11306 $as_echo_n "checking for $ac_word... " >&6; }
11307 if ${ac_cv_path_PROG_JSTAT+:} false; then :
11308 $as_echo_n "(cached) " >&6
11310 case $PROG_JSTAT in
11312 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
11315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11316 for as_dir in $PATH
11319 test -z "$as_dir" && as_dir=.
11320 for ac_exec_ext in '' $ac_executable_extensions; do
11321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11322 ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
11323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11333 PROG_JSTAT=$ac_cv_path_PROG_JSTAT
11334 if test -n "$PROG_JSTAT"; then
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_JSTAT" >&5
11336 $as_echo "$PROG_JSTAT" >&6; }
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11339 $as_echo "no" >&6; }
11343 if test -z "$PROG_JSTAT" ; then
11349 # Extract the first word of "ps", so it can be a program name with args.
11350 set dummy ps; ac_word=$2
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11352 $as_echo_n "checking for $ac_word... " >&6; }
11353 if ${ac_cv_path_PROG_PS+:} false; then :
11354 $as_echo_n "(cached) " >&6
11358 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
11361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11362 for as_dir in $PATH
11365 test -z "$as_dir" && as_dir=.
11366 for ac_exec_ext in '' $ac_executable_extensions; do
11367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11368 ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
11369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11379 PROG_PS=$ac_cv_path_PROG_PS
11380 if test -n "$PROG_PS"; then
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_PS" >&5
11382 $as_echo "$PROG_PS" >&6; }
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11385 $as_echo "no" >&6; }
11389 if test -z "$PROG_PS" ; then
11395 # Extract the first word of "sar", so it can be a program name with args.
11396 set dummy sar; ac_word=$2
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11398 $as_echo_n "checking for $ac_word... " >&6; }
11399 if ${ac_cv_path_PROG_SAR+:} false; then :
11400 $as_echo_n "(cached) " >&6
11404 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
11407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11408 for as_dir in $PATH
11411 test -z "$as_dir" && as_dir=.
11412 for ac_exec_ext in '' $ac_executable_extensions; do
11413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11414 ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
11415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11425 PROG_SAR=$ac_cv_path_PROG_SAR
11426 if test -n "$PROG_SAR"; then
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_SAR" >&5
11428 $as_echo "$PROG_SAR" >&6; }
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11431 $as_echo "no" >&6; }
11435 if test -z "$PROG_SAR" ; then
11441 # Extract the first word of "w", so it can be a program name with args.
11442 set dummy w; ac_word=$2
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11444 $as_echo_n "checking for $ac_word... " >&6; }
11445 if ${ac_cv_path_PROG_W+:} false; then :
11446 $as_echo_n "(cached) " >&6
11450 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
11453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11454 for as_dir in $PATH
11457 test -z "$as_dir" && as_dir=.
11458 for ac_exec_ext in '' $ac_executable_extensions; do
11459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11460 ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
11461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11471 PROG_W=$ac_cv_path_PROG_W
11472 if test -n "$PROG_W"; then
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_W" >&5
11474 $as_echo "$PROG_W" >&6; }
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11477 $as_echo "no" >&6; }
11481 if test -z "$PROG_W" ; then
11487 # Extract the first word of "who", so it can be a program name with args.
11488 set dummy who; ac_word=$2
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11490 $as_echo_n "checking for $ac_word... " >&6; }
11491 if ${ac_cv_path_PROG_WHO+:} false; then :
11492 $as_echo_n "(cached) " >&6
11496 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
11499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11500 for as_dir in $PATH
11503 test -z "$as_dir" && as_dir=.
11504 for ac_exec_ext in '' $ac_executable_extensions; do
11505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11506 ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
11507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11517 PROG_WHO=$ac_cv_path_PROG_WHO
11518 if test -n "$PROG_WHO"; then
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_WHO" >&5
11520 $as_echo "$PROG_WHO" >&6; }
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11523 $as_echo "no" >&6; }
11527 if test -z "$PROG_WHO" ; then
11533 # Extract the first word of "last", so it can be a program name with args.
11534 set dummy last; ac_word=$2
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11536 $as_echo_n "checking for $ac_word... " >&6; }
11537 if ${ac_cv_path_PROG_LAST+:} false; then :
11538 $as_echo_n "(cached) " >&6
11542 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
11545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11546 for as_dir in $PATH
11549 test -z "$as_dir" && as_dir=.
11550 for ac_exec_ext in '' $ac_executable_extensions; do
11551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11552 ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
11553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11563 PROG_LAST=$ac_cv_path_PROG_LAST
11564 if test -n "$PROG_LAST"; then
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_LAST" >&5
11566 $as_echo "$PROG_LAST" >&6; }
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11569 $as_echo "no" >&6; }
11573 if test -z "$PROG_LAST" ; then
11579 # Extract the first word of "lastlog", so it can be a program name with args.
11580 set dummy lastlog; ac_word=$2
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11582 $as_echo_n "checking for $ac_word... " >&6; }
11583 if ${ac_cv_path_PROG_LASTLOG+:} false; then :
11584 $as_echo_n "(cached) " >&6
11586 case $PROG_LASTLOG in
11588 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
11591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11592 for as_dir in $PATH
11595 test -z "$as_dir" && as_dir=.
11596 for ac_exec_ext in '' $ac_executable_extensions; do
11597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11598 ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
11599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11609 PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
11610 if test -n "$PROG_LASTLOG"; then
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_LASTLOG" >&5
11612 $as_echo "$PROG_LASTLOG" >&6; }
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11615 $as_echo "no" >&6; }
11619 if test -z "$PROG_LASTLOG" ; then
11620 PROG_LASTLOG="undef"
11625 # Extract the first word of "df", so it can be a program name with args.
11626 set dummy df; ac_word=$2
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11628 $as_echo_n "checking for $ac_word... " >&6; }
11629 if ${ac_cv_path_PROG_DF+:} false; then :
11630 $as_echo_n "(cached) " >&6
11634 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
11637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11638 for as_dir in $PATH
11641 test -z "$as_dir" && as_dir=.
11642 for ac_exec_ext in '' $ac_executable_extensions; do
11643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11644 ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
11645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11655 PROG_DF=$ac_cv_path_PROG_DF
11656 if test -n "$PROG_DF"; then
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_DF" >&5
11658 $as_echo "$PROG_DF" >&6; }
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661 $as_echo "no" >&6; }
11665 if test -z "$PROG_DF" ; then
11671 # Extract the first word of "vmstat", so it can be a program name with args.
11672 set dummy vmstat; ac_word=$2
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11674 $as_echo_n "checking for $ac_word... " >&6; }
11675 if ${ac_cv_path_PROG_VMSTAT+:} false; then :
11676 $as_echo_n "(cached) " >&6
11678 case $PROG_VMSTAT in
11680 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
11683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11684 for as_dir in $PATH
11687 test -z "$as_dir" && as_dir=.
11688 for ac_exec_ext in '' $ac_executable_extensions; do
11689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11690 ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
11691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11701 PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
11702 if test -n "$PROG_VMSTAT"; then
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_VMSTAT" >&5
11704 $as_echo "$PROG_VMSTAT" >&6; }
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11707 $as_echo "no" >&6; }
11711 if test -z "$PROG_VMSTAT" ; then
11712 PROG_VMSTAT="undef"
11717 # Extract the first word of "uptime", so it can be a program name with args.
11718 set dummy uptime; ac_word=$2
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11720 $as_echo_n "checking for $ac_word... " >&6; }
11721 if ${ac_cv_path_PROG_UPTIME+:} false; then :
11722 $as_echo_n "(cached) " >&6
11724 case $PROG_UPTIME in
11726 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
11729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11730 for as_dir in $PATH
11733 test -z "$as_dir" && as_dir=.
11734 for ac_exec_ext in '' $ac_executable_extensions; do
11735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11736 ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
11737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11747 PROG_UPTIME=$ac_cv_path_PROG_UPTIME
11748 if test -n "$PROG_UPTIME"; then
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_UPTIME" >&5
11750 $as_echo "$PROG_UPTIME" >&6; }
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 $as_echo "no" >&6; }
11757 if test -z "$PROG_UPTIME" ; then
11758 PROG_UPTIME="undef"
11763 # Extract the first word of "ipcs", so it can be a program name with args.
11764 set dummy ipcs; ac_word=$2
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11766 $as_echo_n "checking for $ac_word... " >&6; }
11767 if ${ac_cv_path_PROG_IPCS+:} false; then :
11768 $as_echo_n "(cached) " >&6
11772 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
11775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11776 for as_dir in $PATH
11779 test -z "$as_dir" && as_dir=.
11780 for ac_exec_ext in '' $ac_executable_extensions; do
11781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11782 ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
11783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11793 PROG_IPCS=$ac_cv_path_PROG_IPCS
11794 if test -n "$PROG_IPCS"; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_IPCS" >&5
11796 $as_echo "$PROG_IPCS" >&6; }
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799 $as_echo "no" >&6; }
11803 if test -z "$PROG_IPCS" ; then
11809 # Extract the first word of "tail", so it can be a program name with args.
11810 set dummy tail; ac_word=$2
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11812 $as_echo_n "checking for $ac_word... " >&6; }
11813 if ${ac_cv_path_PROG_TAIL+:} false; then :
11814 $as_echo_n "(cached) " >&6
11818 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
11821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11822 for as_dir in $PATH
11825 test -z "$as_dir" && as_dir=.
11826 for ac_exec_ext in '' $ac_executable_extensions; do
11827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11828 ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
11829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11839 PROG_TAIL=$ac_cv_path_PROG_TAIL
11840 if test -n "$PROG_TAIL"; then
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_TAIL" >&5
11842 $as_echo "$PROG_TAIL" >&6; }
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11845 $as_echo "no" >&6; }
11849 if test -z "$PROG_TAIL" ; then
11857 # Where does ssh-rand-helper get its randomness from?
11858 INSTALL_SSH_PRNG_CMDS=""
11859 if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
11860 if test ! -z "$PRNGD_PORT" ; then
11861 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
11862 elif test ! -z "$PRNGD_SOCKET" ; then
11863 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
11865 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
11866 RAND_HELPER_CMDHASH=yes
11867 INSTALL_SSH_PRNG_CMDS="yes"
11873 # Cheap hack to ensure NEWS-OS libraries are arranged right.
11874 if test ! -z "$SONY" ; then
11875 LIBS="$LIBS -liberty";
11878 # Check for long long datatypes
11879 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
11880 if test "x$ac_cv_type_long_long" = xyes; then :
11882 cat >>confdefs.h <<_ACEOF
11883 #define HAVE_LONG_LONG 1
11888 ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
11889 if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
11891 cat >>confdefs.h <<_ACEOF
11892 #define HAVE_UNSIGNED_LONG_LONG 1
11897 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
11898 if test "x$ac_cv_type_long_double" = xyes; then :
11900 cat >>confdefs.h <<_ACEOF
11901 #define HAVE_LONG_DOUBLE 1
11908 # Check datatype sizes
11909 # The cast to long int works around a bug in the HP C Compiler
11910 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11911 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11912 # This bug is HP SR number 8606223364.
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
11914 $as_echo_n "checking size of char... " >&6; }
11915 if ${ac_cv_sizeof_char+:} false; then :
11916 $as_echo_n "(cached) " >&6
11918 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
11921 if test "$ac_cv_type_char" = yes; then
11922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11924 as_fn_error 77 "cannot compute sizeof (char)
11925 See \`config.log' for more details" "$LINENO" 5; }
11927 ac_cv_sizeof_char=0
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
11933 $as_echo "$ac_cv_sizeof_char" >&6; }
11937 cat >>confdefs.h <<_ACEOF
11938 #define SIZEOF_CHAR $ac_cv_sizeof_char
11942 # The cast to long int works around a bug in the HP C Compiler
11943 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11944 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11945 # This bug is HP SR number 8606223364.
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
11947 $as_echo_n "checking size of short int... " >&6; }
11948 if ${ac_cv_sizeof_short_int+:} false; then :
11949 $as_echo_n "(cached) " >&6
11951 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
11954 if test "$ac_cv_type_short_int" = yes; then
11955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11957 as_fn_error 77 "cannot compute sizeof (short int)
11958 See \`config.log' for more details" "$LINENO" 5; }
11960 ac_cv_sizeof_short_int=0
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
11966 $as_echo "$ac_cv_sizeof_short_int" >&6; }
11970 cat >>confdefs.h <<_ACEOF
11971 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
11975 # The cast to long int works around a bug in the HP C Compiler
11976 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11977 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11978 # This bug is HP SR number 8606223364.
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
11980 $as_echo_n "checking size of int... " >&6; }
11981 if ${ac_cv_sizeof_int+:} false; then :
11982 $as_echo_n "(cached) " >&6
11984 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
11987 if test "$ac_cv_type_int" = yes; then
11988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11990 as_fn_error 77 "cannot compute sizeof (int)
11991 See \`config.log' for more details" "$LINENO" 5; }
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
11999 $as_echo "$ac_cv_sizeof_int" >&6; }
12003 cat >>confdefs.h <<_ACEOF
12004 #define SIZEOF_INT $ac_cv_sizeof_int
12008 # The cast to long int works around a bug in the HP C Compiler
12009 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12010 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12011 # This bug is HP SR number 8606223364.
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
12013 $as_echo_n "checking size of long int... " >&6; }
12014 if ${ac_cv_sizeof_long_int+:} false; then :
12015 $as_echo_n "(cached) " >&6
12017 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
12020 if test "$ac_cv_type_long_int" = yes; then
12021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12023 as_fn_error 77 "cannot compute sizeof (long int)
12024 See \`config.log' for more details" "$LINENO" 5; }
12026 ac_cv_sizeof_long_int=0
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
12032 $as_echo "$ac_cv_sizeof_long_int" >&6; }
12036 cat >>confdefs.h <<_ACEOF
12037 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
12041 # The cast to long int works around a bug in the HP C Compiler
12042 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12043 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12044 # This bug is HP SR number 8606223364.
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
12046 $as_echo_n "checking size of long long int... " >&6; }
12047 if ${ac_cv_sizeof_long_long_int+:} false; then :
12048 $as_echo_n "(cached) " >&6
12050 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
12053 if test "$ac_cv_type_long_long_int" = yes; then
12054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12056 as_fn_error 77 "cannot compute sizeof (long long int)
12057 See \`config.log' for more details" "$LINENO" 5; }
12059 ac_cv_sizeof_long_long_int=0
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
12065 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
12069 cat >>confdefs.h <<_ACEOF
12070 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
12075 # Sanity check long long for some platforms (AIX)
12076 if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
12077 ac_cv_sizeof_long_long_int=0
12080 # compute LLONG_MIN and LLONG_MAX if we don't know them.
12081 if test -z "$have_llong_max"; then
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5
12083 $as_echo_n "checking for max value of long long... " >&6; }
12084 if test "$cross_compiling" = yes; then :
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
12087 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h. */
12095 /* Why is this so damn hard? */
12099 #define __USE_ISOC99
12100 #include <limits.h>
12101 #define DATA "conftest.llminmax"
12102 #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
12105 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
12106 * we do this the hard way.
12109 fprint_ll(FILE *f, long long n)
12112 int l[sizeof(long long) * 8];
12115 if (fprintf(f, "-") < 0)
12117 for (i = 0; n != 0; i++) {
12118 l[i] = my_abs(n % 10);
12122 if (fprintf(f, "%d", l[--i]) < 0)
12125 if (fprintf(f, " ") < 0)
12132 long long i, llmin, llmax = 0;
12134 if((f = fopen(DATA,"w")) == NULL)
12137 #if defined(LLONG_MIN) && defined(LLONG_MAX)
12138 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
12142 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
12143 /* This will work on one's complement and two's complement */
12144 for (i = 1; i > llmax; i <<= 1, i++)
12146 llmin = llmax + 1LL; /* wrap */
12150 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
12151 || llmax - 1 > llmax || llmin == llmax || llmin == 0
12152 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
12153 fprintf(f, "unknown unknown\n");
12157 if (fprint_ll(f, llmin) < 0)
12159 if (fprint_ll(f, llmax) < 0)
12167 if ac_fn_c_try_run "$LINENO"; then :
12169 llong_min=`$AWK '{print $1}' conftest.llminmax`
12170 llong_max=`$AWK '{print $2}' conftest.llminmax`
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5
12173 $as_echo "$llong_max" >&6; }
12175 cat >>confdefs.h <<_ACEOF
12176 #define LLONG_MAX ${llong_max}LL
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5
12180 $as_echo_n "checking for min value of long long... " >&6; }
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5
12182 $as_echo "$llong_min" >&6; }
12184 cat >>confdefs.h <<_ACEOF
12185 #define LLONG_MIN ${llong_min}LL
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12192 $as_echo "not found" >&6; }
12195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12196 conftest.$ac_objext conftest.beam conftest.$ac_ext
12202 # More checks for data types
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
12204 $as_echo_n "checking for u_int type... " >&6; }
12205 if ${ac_cv_have_u_int+:} false; then :
12206 $as_echo_n "(cached) " >&6
12209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12210 /* end confdefs.h. */
12211 #include <sys/types.h>
12220 if ac_fn_c_try_compile "$LINENO"; then :
12221 ac_cv_have_u_int="yes"
12223 ac_cv_have_u_int="no"
12226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
12230 $as_echo "$ac_cv_have_u_int" >&6; }
12231 if test "x$ac_cv_have_u_int" = "xyes" ; then
12233 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
12239 $as_echo_n "checking for intXX_t types... " >&6; }
12240 if ${ac_cv_have_intxx_t+:} false; then :
12241 $as_echo_n "(cached) " >&6
12244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12245 /* end confdefs.h. */
12246 #include <sys/types.h>
12250 int8_t a; int16_t b; int32_t c; a = b = c = 1;
12255 if ac_fn_c_try_compile "$LINENO"; then :
12256 ac_cv_have_intxx_t="yes"
12258 ac_cv_have_intxx_t="no"
12261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
12265 $as_echo "$ac_cv_have_intxx_t" >&6; }
12266 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
12268 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
12273 if (test -z "$have_intxx_t" && \
12274 test "x$ac_cv_header_stdint_h" = "xyes")
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5
12277 $as_echo_n "checking for intXX_t types in stdint.h... " >&6; }
12278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h. */
12280 #include <stdint.h>
12284 int8_t a; int16_t b; int32_t c; a = b = c = 1;
12289 if ac_fn_c_try_compile "$LINENO"; then :
12291 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12294 $as_echo "yes" >&6; }
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12298 $as_echo "no" >&6; }
12301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
12305 $as_echo_n "checking for int64_t type... " >&6; }
12306 if ${ac_cv_have_int64_t+:} false; then :
12307 $as_echo_n "(cached) " >&6
12310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12311 /* end confdefs.h. */
12313 #include <sys/types.h>
12314 #ifdef HAVE_STDINT_H
12315 # include <stdint.h>
12317 #include <sys/socket.h>
12318 #ifdef HAVE_SYS_BITYPES_H
12319 # include <sys/bitypes.h>
12330 if ac_fn_c_try_compile "$LINENO"; then :
12331 ac_cv_have_int64_t="yes"
12333 ac_cv_have_int64_t="no"
12336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
12340 $as_echo "$ac_cv_have_int64_t" >&6; }
12341 if test "x$ac_cv_have_int64_t" = "xyes" ; then
12343 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
12348 $as_echo_n "checking for u_intXX_t types... " >&6; }
12349 if ${ac_cv_have_u_intxx_t+:} false; then :
12350 $as_echo_n "(cached) " >&6
12353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12354 /* end confdefs.h. */
12355 #include <sys/types.h>
12359 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
12364 if ac_fn_c_try_compile "$LINENO"; then :
12365 ac_cv_have_u_intxx_t="yes"
12367 ac_cv_have_u_intxx_t="no"
12370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
12374 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
12375 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
12377 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
12382 if test -z "$have_u_intxx_t" ; then
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5
12384 $as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; }
12385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12386 /* end confdefs.h. */
12387 #include <sys/socket.h>
12391 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
12396 if ac_fn_c_try_compile "$LINENO"; then :
12398 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12401 $as_echo "yes" >&6; }
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12405 $as_echo "no" >&6; }
12408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
12412 $as_echo_n "checking for u_int64_t types... " >&6; }
12413 if ${ac_cv_have_u_int64_t+:} false; then :
12414 $as_echo_n "(cached) " >&6
12417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418 /* end confdefs.h. */
12419 #include <sys/types.h>
12423 u_int64_t a; a = 1;
12428 if ac_fn_c_try_compile "$LINENO"; then :
12429 ac_cv_have_u_int64_t="yes"
12431 ac_cv_have_u_int64_t="no"
12434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
12438 $as_echo "$ac_cv_have_u_int64_t" >&6; }
12439 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
12441 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
12446 if test -z "$have_u_int64_t" ; then
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5
12448 $as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; }
12449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12450 /* end confdefs.h. */
12451 #include <sys/bitypes.h>
12460 if ac_fn_c_try_compile "$LINENO"; then :
12462 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12465 $as_echo "yes" >&6; }
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12469 $as_echo "no" >&6; }
12472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12475 if test -z "$have_u_intxx_t" ; then
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
12477 $as_echo_n "checking for uintXX_t types... " >&6; }
12478 if ${ac_cv_have_uintxx_t+:} false; then :
12479 $as_echo_n "(cached) " >&6
12482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12483 /* end confdefs.h. */
12485 #include <sys/types.h>
12490 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
12495 if ac_fn_c_try_compile "$LINENO"; then :
12496 ac_cv_have_uintxx_t="yes"
12498 ac_cv_have_uintxx_t="no"
12501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
12505 $as_echo "$ac_cv_have_uintxx_t" >&6; }
12506 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
12508 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
12513 if test -z "$have_uintxx_t" ; then
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5
12515 $as_echo_n "checking for uintXX_t types in stdint.h... " >&6; }
12516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h. */
12518 #include <stdint.h>
12522 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
12527 if ac_fn_c_try_compile "$LINENO"; then :
12529 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12532 $as_echo "yes" >&6; }
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536 $as_echo "no" >&6; }
12539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12542 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
12543 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
12546 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
12547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12548 /* end confdefs.h. */
12550 #include <sys/bitypes.h>
12556 int8_t a; int16_t b; int32_t c;
12557 u_int8_t e; u_int16_t f; u_int32_t g;
12558 a = b = c = e = f = g = 1;
12564 if ac_fn_c_try_compile "$LINENO"; then :
12566 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
12568 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12571 $as_echo "yes" >&6; }
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12575 $as_echo "no" >&6; }
12578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5
12583 $as_echo_n "checking for u_char... " >&6; }
12584 if ${ac_cv_have_u_char+:} false; then :
12585 $as_echo_n "(cached) " >&6
12588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12589 /* end confdefs.h. */
12591 #include <sys/types.h>
12596 u_char foo; foo = 125;
12601 if ac_fn_c_try_compile "$LINENO"; then :
12602 ac_cv_have_u_char="yes"
12604 ac_cv_have_u_char="no"
12607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5
12611 $as_echo "$ac_cv_have_u_char" >&6; }
12612 if test "x$ac_cv_have_u_char" = "xyes" ; then
12614 $as_echo "#define HAVE_U_CHAR 1" >>confdefs.h
12619 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12620 #include <sys/socket.h>
12622 if test "x$ac_cv_type_socklen_t" = xyes; then :
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
12627 $as_echo_n "checking for socklen_t equivalent... " >&6; }
12628 if ${curl_cv_socklen_t_equiv+:} false; then :
12629 $as_echo_n "(cached) " >&6
12632 # Systems have either "struct sockaddr *" or
12633 # "void *" as the second argument to getpeername
12634 curl_cv_socklen_t_equiv=
12635 for arg2 in "struct sockaddr" void; do
12636 for t in int size_t unsigned long "unsigned long"; do
12637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12638 /* end confdefs.h. */
12640 #include <sys/types.h>
12641 #include <sys/socket.h>
12643 int getpeername (int, $arg2 *, $t *);
12650 getpeername(0,0,&len);
12656 if ac_fn_c_try_compile "$LINENO"; then :
12658 curl_cv_socklen_t_equiv="$t"
12662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12666 if test "x$curl_cv_socklen_t_equiv" = x; then
12667 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
12673 $as_echo "$curl_cv_socklen_t_equiv" >&6; }
12675 cat >>confdefs.h <<_ACEOF
12676 #define socklen_t $curl_cv_socklen_t_equiv
12683 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
12685 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
12687 cat >>confdefs.h <<_ACEOF
12688 #define HAVE_SIG_ATOMIC_T 1
12694 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "
12695 #include <sys/types.h>
12696 #ifdef HAVE_SYS_BITYPES_H
12697 #include <sys/bitypes.h>
12699 #ifdef HAVE_SYS_STATFS_H
12700 #include <sys/statfs.h>
12702 #ifdef HAVE_SYS_STATVFS_H
12703 #include <sys/statvfs.h>
12707 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
12709 cat >>confdefs.h <<_ACEOF
12710 #define HAVE_FSBLKCNT_T 1
12715 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "
12716 #include <sys/types.h>
12717 #ifdef HAVE_SYS_BITYPES_H
12718 #include <sys/bitypes.h>
12720 #ifdef HAVE_SYS_STATFS_H
12721 #include <sys/statfs.h>
12723 #ifdef HAVE_SYS_STATVFS_H
12724 #include <sys/statvfs.h>
12728 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
12730 cat >>confdefs.h <<_ACEOF
12731 #define HAVE_FSFILCNT_T 1
12738 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h>
12739 #include <netinet/in.h>
12741 if test "x$ac_cv_type_in_addr_t" = xyes; then :
12743 cat >>confdefs.h <<_ACEOF
12744 #define HAVE_IN_ADDR_T 1
12749 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
12750 #include <netinet/in.h>
12752 if test "x$ac_cv_type_in_port_t" = xyes; then :
12754 cat >>confdefs.h <<_ACEOF
12755 #define HAVE_IN_PORT_T 1
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
12763 $as_echo_n "checking for size_t... " >&6; }
12764 if ${ac_cv_have_size_t+:} false; then :
12765 $as_echo_n "(cached) " >&6
12768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12769 /* end confdefs.h. */
12771 #include <sys/types.h>
12776 size_t foo; foo = 1235;
12781 if ac_fn_c_try_compile "$LINENO"; then :
12782 ac_cv_have_size_t="yes"
12784 ac_cv_have_size_t="no"
12787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5
12791 $as_echo "$ac_cv_have_size_t" >&6; }
12792 if test "x$ac_cv_have_size_t" = "xyes" ; then
12794 $as_echo "#define HAVE_SIZE_T 1" >>confdefs.h
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
12799 $as_echo_n "checking for ssize_t... " >&6; }
12800 if ${ac_cv_have_ssize_t+:} false; then :
12801 $as_echo_n "(cached) " >&6
12804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12805 /* end confdefs.h. */
12807 #include <sys/types.h>
12812 ssize_t foo; foo = 1235;
12817 if ac_fn_c_try_compile "$LINENO"; then :
12818 ac_cv_have_ssize_t="yes"
12820 ac_cv_have_ssize_t="no"
12823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5
12827 $as_echo "$ac_cv_have_ssize_t" >&6; }
12828 if test "x$ac_cv_have_ssize_t" = "xyes" ; then
12830 $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12835 $as_echo_n "checking for clock_t... " >&6; }
12836 if ${ac_cv_have_clock_t+:} false; then :
12837 $as_echo_n "(cached) " >&6
12840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12841 /* end confdefs.h. */
12848 clock_t foo; foo = 1235;
12853 if ac_fn_c_try_compile "$LINENO"; then :
12854 ac_cv_have_clock_t="yes"
12856 ac_cv_have_clock_t="no"
12859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5
12863 $as_echo "$ac_cv_have_clock_t" >&6; }
12864 if test "x$ac_cv_have_clock_t" = "xyes" ; then
12866 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5
12871 $as_echo_n "checking for sa_family_t... " >&6; }
12872 if ${ac_cv_have_sa_family_t+:} false; then :
12873 $as_echo_n "(cached) " >&6
12876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h. */
12879 #include <sys/types.h>
12880 #include <sys/socket.h>
12885 sa_family_t foo; foo = 1235;
12890 if ac_fn_c_try_compile "$LINENO"; then :
12891 ac_cv_have_sa_family_t="yes"
12893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12894 /* end confdefs.h. */
12896 #include <sys/types.h>
12897 #include <sys/socket.h>
12898 #include <netinet/in.h>
12903 sa_family_t foo; foo = 1235;
12908 if ac_fn_c_try_compile "$LINENO"; then :
12909 ac_cv_have_sa_family_t="yes"
12911 ac_cv_have_sa_family_t="no"
12914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5
12921 $as_echo "$ac_cv_have_sa_family_t" >&6; }
12922 if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
12924 $as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5
12929 $as_echo_n "checking for pid_t... " >&6; }
12930 if ${ac_cv_have_pid_t+:} false; then :
12931 $as_echo_n "(cached) " >&6
12934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12935 /* end confdefs.h. */
12937 #include <sys/types.h>
12942 pid_t foo; foo = 1235;
12947 if ac_fn_c_try_compile "$LINENO"; then :
12948 ac_cv_have_pid_t="yes"
12950 ac_cv_have_pid_t="no"
12953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5
12957 $as_echo "$ac_cv_have_pid_t" >&6; }
12958 if test "x$ac_cv_have_pid_t" = "xyes" ; then
12960 $as_echo "#define HAVE_PID_T 1" >>confdefs.h
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5
12965 $as_echo_n "checking for mode_t... " >&6; }
12966 if ${ac_cv_have_mode_t+:} false; then :
12967 $as_echo_n "(cached) " >&6
12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971 /* end confdefs.h. */
12973 #include <sys/types.h>
12978 mode_t foo; foo = 1235;
12983 if ac_fn_c_try_compile "$LINENO"; then :
12984 ac_cv_have_mode_t="yes"
12986 ac_cv_have_mode_t="no"
12989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5
12993 $as_echo "$ac_cv_have_mode_t" >&6; }
12994 if test "x$ac_cv_have_mode_t" = "xyes" ; then
12996 $as_echo "#define HAVE_MODE_T 1" >>confdefs.h
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
13002 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
13003 if ${ac_cv_have_struct_sockaddr_storage+:} false; then :
13004 $as_echo_n "(cached) " >&6
13007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13008 /* end confdefs.h. */
13010 #include <sys/types.h>
13011 #include <sys/socket.h>
13016 struct sockaddr_storage s;
13021 if ac_fn_c_try_compile "$LINENO"; then :
13022 ac_cv_have_struct_sockaddr_storage="yes"
13024 ac_cv_have_struct_sockaddr_storage="no"
13027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5
13031 $as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; }
13032 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
13034 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
13039 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
13040 if ${ac_cv_have_struct_sockaddr_in6+:} false; then :
13041 $as_echo_n "(cached) " >&6
13044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13045 /* end confdefs.h. */
13047 #include <sys/types.h>
13048 #include <netinet/in.h>
13053 struct sockaddr_in6 s; s.sin6_family = 0;
13058 if ac_fn_c_try_compile "$LINENO"; then :
13059 ac_cv_have_struct_sockaddr_in6="yes"
13061 ac_cv_have_struct_sockaddr_in6="no"
13064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5
13068 $as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; }
13069 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
13071 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
13076 $as_echo_n "checking for struct in6_addr... " >&6; }
13077 if ${ac_cv_have_struct_in6_addr+:} false; then :
13078 $as_echo_n "(cached) " >&6
13081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13082 /* end confdefs.h. */
13084 #include <sys/types.h>
13085 #include <netinet/in.h>
13090 struct in6_addr s; s.s6_addr[0] = 0;
13095 if ac_fn_c_try_compile "$LINENO"; then :
13096 ac_cv_have_struct_in6_addr="yes"
13098 ac_cv_have_struct_in6_addr="no"
13101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5
13105 $as_echo "$ac_cv_have_struct_in6_addr" >&6; }
13106 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
13108 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
13111 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
13112 #ifdef HAVE_SYS_TYPES_H
13113 #include <sys/types.h>
13115 #include <netinet/in.h>
13118 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
13120 cat >>confdefs.h <<_ACEOF
13121 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
13130 $as_echo_n "checking for struct addrinfo... " >&6; }
13131 if ${ac_cv_have_struct_addrinfo+:} false; then :
13132 $as_echo_n "(cached) " >&6
13135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136 /* end confdefs.h. */
13138 #include <sys/types.h>
13139 #include <sys/socket.h>
13145 struct addrinfo s; s.ai_flags = AI_PASSIVE;
13150 if ac_fn_c_try_compile "$LINENO"; then :
13151 ac_cv_have_struct_addrinfo="yes"
13153 ac_cv_have_struct_addrinfo="no"
13156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5
13160 $as_echo "$ac_cv_have_struct_addrinfo" >&6; }
13161 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
13163 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
13168 $as_echo_n "checking for struct timeval... " >&6; }
13169 if ${ac_cv_have_struct_timeval+:} false; then :
13170 $as_echo_n "(cached) " >&6
13173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13174 /* end confdefs.h. */
13175 #include <sys/time.h>
13179 struct timeval tv; tv.tv_sec = 1;
13184 if ac_fn_c_try_compile "$LINENO"; then :
13185 ac_cv_have_struct_timeval="yes"
13187 ac_cv_have_struct_timeval="no"
13190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5
13194 $as_echo "$ac_cv_have_struct_timeval" >&6; }
13195 if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
13197 $as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
13199 have_struct_timeval=1
13202 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
13203 if test "x$ac_cv_type_struct_timespec" = xyes; then :
13205 cat >>confdefs.h <<_ACEOF
13206 #define HAVE_STRUCT_TIMESPEC 1
13213 # We need int64_t or else certian parts of the compile will fail.
13214 if test "x$ac_cv_have_int64_t" = "xno" && \
13215 test "x$ac_cv_sizeof_long_int" != "x8" && \
13216 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
13217 echo "OpenSSH requires int64_t support. Contact your vendor or install"
13218 echo "an alternative compiler (I.E., GCC) before continuing."
13222 if test "$cross_compiling" = yes; then :
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
13224 $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
13227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228 /* end confdefs.h. */
13231 #include <string.h>
13232 #ifdef HAVE_SNPRINTF
13236 char expected_out[50];
13238 #if (SIZEOF_LONG_INT == 8)
13239 long int num = 0x7fffffffffffffff;
13241 long long num = 0x7fffffffffffffffll;
13243 strcpy(expected_out, "9223372036854775807");
13244 snprintf(buf, mazsize, "%lld", num);
13245 if(strcmp(buf, expected_out) != 0)
13250 main() { exit(0); }
13254 if ac_fn_c_try_run "$LINENO"; then :
13257 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
13260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13261 conftest.$ac_objext conftest.beam conftest.$ac_ext
13267 # look for field 'ut_host' in header 'utmp.h'
13268 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13269 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5
13271 $as_echo_n "checking for ut_host field in utmp.h... " >&6; }
13272 if eval \${$ossh_varname+:} false; then :
13273 $as_echo_n "(cached) " >&6
13276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13282 $EGREP "ut_host" >/dev/null 2>&1; then :
13283 eval "$ossh_varname=yes"
13285 eval "$ossh_varname=no"
13291 ossh_result=`eval 'echo $'"$ossh_varname"`
13292 if test -n "`echo $ossh_varname`"; then
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13294 $as_echo "$ossh_result" >&6; }
13295 if test "x$ossh_result" = "xyes"; then
13297 $as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13302 $as_echo "no" >&6; }
13306 # look for field 'ut_host' in header 'utmpx.h'
13307 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13308 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5
13310 $as_echo_n "checking for ut_host field in utmpx.h... " >&6; }
13311 if eval \${$ossh_varname+:} false; then :
13312 $as_echo_n "(cached) " >&6
13315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13316 /* end confdefs.h. */
13320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13321 $EGREP "ut_host" >/dev/null 2>&1; then :
13322 eval "$ossh_varname=yes"
13324 eval "$ossh_varname=no"
13330 ossh_result=`eval 'echo $'"$ossh_varname"`
13331 if test -n "`echo $ossh_varname`"; then
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13333 $as_echo "$ossh_result" >&6; }
13334 if test "x$ossh_result" = "xyes"; then
13336 $as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13341 $as_echo "no" >&6; }
13345 # look for field 'syslen' in header 'utmpx.h'
13346 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13347 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5
13349 $as_echo_n "checking for syslen field in utmpx.h... " >&6; }
13350 if eval \${$ossh_varname+:} false; then :
13351 $as_echo_n "(cached) " >&6
13354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355 /* end confdefs.h. */
13359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13360 $EGREP "syslen" >/dev/null 2>&1; then :
13361 eval "$ossh_varname=yes"
13363 eval "$ossh_varname=no"
13369 ossh_result=`eval 'echo $'"$ossh_varname"`
13370 if test -n "`echo $ossh_varname`"; then
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13372 $as_echo "$ossh_result" >&6; }
13373 if test "x$ossh_result" = "xyes"; then
13375 $as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13380 $as_echo "no" >&6; }
13384 # look for field 'ut_pid' in header 'utmp.h'
13385 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13386 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5
13388 $as_echo_n "checking for ut_pid field in utmp.h... " >&6; }
13389 if eval \${$ossh_varname+:} false; then :
13390 $as_echo_n "(cached) " >&6
13393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394 /* end confdefs.h. */
13398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13399 $EGREP "ut_pid" >/dev/null 2>&1; then :
13400 eval "$ossh_varname=yes"
13402 eval "$ossh_varname=no"
13408 ossh_result=`eval 'echo $'"$ossh_varname"`
13409 if test -n "`echo $ossh_varname`"; then
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13411 $as_echo "$ossh_result" >&6; }
13412 if test "x$ossh_result" = "xyes"; then
13414 $as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13419 $as_echo "no" >&6; }
13423 # look for field 'ut_type' in header 'utmp.h'
13424 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13425 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5
13427 $as_echo_n "checking for ut_type field in utmp.h... " >&6; }
13428 if eval \${$ossh_varname+:} false; then :
13429 $as_echo_n "(cached) " >&6
13432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13433 /* end confdefs.h. */
13437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13438 $EGREP "ut_type" >/dev/null 2>&1; then :
13439 eval "$ossh_varname=yes"
13441 eval "$ossh_varname=no"
13447 ossh_result=`eval 'echo $'"$ossh_varname"`
13448 if test -n "`echo $ossh_varname`"; then
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13450 $as_echo "$ossh_result" >&6; }
13451 if test "x$ossh_result" = "xyes"; then
13453 $as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13458 $as_echo "no" >&6; }
13462 # look for field 'ut_type' in header 'utmpx.h'
13463 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13464 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5
13466 $as_echo_n "checking for ut_type field in utmpx.h... " >&6; }
13467 if eval \${$ossh_varname+:} false; then :
13468 $as_echo_n "(cached) " >&6
13471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13472 /* end confdefs.h. */
13476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13477 $EGREP "ut_type" >/dev/null 2>&1; then :
13478 eval "$ossh_varname=yes"
13480 eval "$ossh_varname=no"
13486 ossh_result=`eval 'echo $'"$ossh_varname"`
13487 if test -n "`echo $ossh_varname`"; then
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13489 $as_echo "$ossh_result" >&6; }
13490 if test "x$ossh_result" = "xyes"; then
13492 $as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13497 $as_echo "no" >&6; }
13501 # look for field 'ut_tv' in header 'utmp.h'
13502 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13503 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5
13505 $as_echo_n "checking for ut_tv field in utmp.h... " >&6; }
13506 if eval \${$ossh_varname+:} false; then :
13507 $as_echo_n "(cached) " >&6
13510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13511 /* end confdefs.h. */
13515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13516 $EGREP "ut_tv" >/dev/null 2>&1; then :
13517 eval "$ossh_varname=yes"
13519 eval "$ossh_varname=no"
13525 ossh_result=`eval 'echo $'"$ossh_varname"`
13526 if test -n "`echo $ossh_varname`"; then
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13528 $as_echo "$ossh_result" >&6; }
13529 if test "x$ossh_result" = "xyes"; then
13531 $as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13536 $as_echo "no" >&6; }
13540 # look for field 'ut_id' in header 'utmp.h'
13541 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13542 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5
13544 $as_echo_n "checking for ut_id field in utmp.h... " >&6; }
13545 if eval \${$ossh_varname+:} false; then :
13546 $as_echo_n "(cached) " >&6
13549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13550 /* end confdefs.h. */
13554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13555 $EGREP "ut_id" >/dev/null 2>&1; then :
13556 eval "$ossh_varname=yes"
13558 eval "$ossh_varname=no"
13564 ossh_result=`eval 'echo $'"$ossh_varname"`
13565 if test -n "`echo $ossh_varname`"; then
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13567 $as_echo "$ossh_result" >&6; }
13568 if test "x$ossh_result" = "xyes"; then
13570 $as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13575 $as_echo "no" >&6; }
13579 # look for field 'ut_id' in header 'utmpx.h'
13580 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13581 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5
13583 $as_echo_n "checking for ut_id field in utmpx.h... " >&6; }
13584 if eval \${$ossh_varname+:} false; then :
13585 $as_echo_n "(cached) " >&6
13588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13589 /* end confdefs.h. */
13593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13594 $EGREP "ut_id" >/dev/null 2>&1; then :
13595 eval "$ossh_varname=yes"
13597 eval "$ossh_varname=no"
13603 ossh_result=`eval 'echo $'"$ossh_varname"`
13604 if test -n "`echo $ossh_varname`"; then
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13606 $as_echo "$ossh_result" >&6; }
13607 if test "x$ossh_result" = "xyes"; then
13609 $as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13614 $as_echo "no" >&6; }
13618 # look for field 'ut_addr' in header 'utmp.h'
13619 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13620 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5
13622 $as_echo_n "checking for ut_addr field in utmp.h... " >&6; }
13623 if eval \${$ossh_varname+:} false; then :
13624 $as_echo_n "(cached) " >&6
13627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13628 /* end confdefs.h. */
13632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13633 $EGREP "ut_addr" >/dev/null 2>&1; then :
13634 eval "$ossh_varname=yes"
13636 eval "$ossh_varname=no"
13642 ossh_result=`eval 'echo $'"$ossh_varname"`
13643 if test -n "`echo $ossh_varname`"; then
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13645 $as_echo "$ossh_result" >&6; }
13646 if test "x$ossh_result" = "xyes"; then
13648 $as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13653 $as_echo "no" >&6; }
13657 # look for field 'ut_addr' in header 'utmpx.h'
13658 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13659 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5
13661 $as_echo_n "checking for ut_addr field in utmpx.h... " >&6; }
13662 if eval \${$ossh_varname+:} false; then :
13663 $as_echo_n "(cached) " >&6
13666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13667 /* end confdefs.h. */
13671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13672 $EGREP "ut_addr" >/dev/null 2>&1; then :
13673 eval "$ossh_varname=yes"
13675 eval "$ossh_varname=no"
13681 ossh_result=`eval 'echo $'"$ossh_varname"`
13682 if test -n "`echo $ossh_varname`"; then
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13684 $as_echo "$ossh_result" >&6; }
13685 if test "x$ossh_result" = "xyes"; then
13687 $as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13692 $as_echo "no" >&6; }
13696 # look for field 'ut_addr_v6' in header 'utmp.h'
13697 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13698 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5
13700 $as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; }
13701 if eval \${$ossh_varname+:} false; then :
13702 $as_echo_n "(cached) " >&6
13705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13706 /* end confdefs.h. */
13710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13711 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
13712 eval "$ossh_varname=yes"
13714 eval "$ossh_varname=no"
13720 ossh_result=`eval 'echo $'"$ossh_varname"`
13721 if test -n "`echo $ossh_varname`"; then
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13723 $as_echo "$ossh_result" >&6; }
13724 if test "x$ossh_result" = "xyes"; then
13726 $as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13731 $as_echo "no" >&6; }
13735 # look for field 'ut_addr_v6' in header 'utmpx.h'
13736 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13737 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5
13739 $as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; }
13740 if eval \${$ossh_varname+:} false; then :
13741 $as_echo_n "(cached) " >&6
13744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745 /* end confdefs.h. */
13749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13750 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
13751 eval "$ossh_varname=yes"
13753 eval "$ossh_varname=no"
13759 ossh_result=`eval 'echo $'"$ossh_varname"`
13760 if test -n "`echo $ossh_varname`"; then
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13762 $as_echo "$ossh_result" >&6; }
13763 if test "x$ossh_result" = "xyes"; then
13765 $as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13770 $as_echo "no" >&6; }
13774 # look for field 'ut_exit' in header 'utmp.h'
13775 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13776 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5
13778 $as_echo_n "checking for ut_exit field in utmp.h... " >&6; }
13779 if eval \${$ossh_varname+:} false; then :
13780 $as_echo_n "(cached) " >&6
13783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784 /* end confdefs.h. */
13788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13789 $EGREP "ut_exit" >/dev/null 2>&1; then :
13790 eval "$ossh_varname=yes"
13792 eval "$ossh_varname=no"
13798 ossh_result=`eval 'echo $'"$ossh_varname"`
13799 if test -n "`echo $ossh_varname`"; then
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13801 $as_echo "$ossh_result" >&6; }
13802 if test "x$ossh_result" = "xyes"; then
13804 $as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13809 $as_echo "no" >&6; }
13813 # look for field 'ut_time' in header 'utmp.h'
13814 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13815 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5
13817 $as_echo_n "checking for ut_time field in utmp.h... " >&6; }
13818 if eval \${$ossh_varname+:} false; then :
13819 $as_echo_n "(cached) " >&6
13822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13823 /* end confdefs.h. */
13827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13828 $EGREP "ut_time" >/dev/null 2>&1; then :
13829 eval "$ossh_varname=yes"
13831 eval "$ossh_varname=no"
13837 ossh_result=`eval 'echo $'"$ossh_varname"`
13838 if test -n "`echo $ossh_varname`"; then
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13840 $as_echo "$ossh_result" >&6; }
13841 if test "x$ossh_result" = "xyes"; then
13843 $as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13848 $as_echo "no" >&6; }
13852 # look for field 'ut_time' in header 'utmpx.h'
13853 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13854 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5
13856 $as_echo_n "checking for ut_time field in utmpx.h... " >&6; }
13857 if eval \${$ossh_varname+:} false; then :
13858 $as_echo_n "(cached) " >&6
13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862 /* end confdefs.h. */
13866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13867 $EGREP "ut_time" >/dev/null 2>&1; then :
13868 eval "$ossh_varname=yes"
13870 eval "$ossh_varname=no"
13876 ossh_result=`eval 'echo $'"$ossh_varname"`
13877 if test -n "`echo $ossh_varname`"; then
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13879 $as_echo "$ossh_result" >&6; }
13880 if test "x$ossh_result" = "xyes"; then
13882 $as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13887 $as_echo "no" >&6; }
13891 # look for field 'ut_tv' in header 'utmpx.h'
13892 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13893 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5
13895 $as_echo_n "checking for ut_tv field in utmpx.h... " >&6; }
13896 if eval \${$ossh_varname+:} false; then :
13897 $as_echo_n "(cached) " >&6
13900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h. */
13905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13906 $EGREP "ut_tv" >/dev/null 2>&1; then :
13907 eval "$ossh_varname=yes"
13909 eval "$ossh_varname=no"
13915 ossh_result=`eval 'echo $'"$ossh_varname"`
13916 if test -n "`echo $ossh_varname`"; then
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13918 $as_echo "$ossh_result" >&6; }
13919 if test "x$ossh_result" = "xyes"; then
13921 $as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13926 $as_echo "no" >&6; }
13930 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13931 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
13933 cat >>confdefs.h <<_ACEOF
13934 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13940 ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" "
13942 #if HAVE_SYS_TYPES_H
13943 # include <sys/types.h>
13945 #include <netinet/in.h>
13946 #include <arpa/nameser.h>
13947 #include <resolv.h>
13950 if test "x$ac_cv_member_struct___res_state_retrans" = xyes; then :
13954 $as_echo "#define __res_state state" >>confdefs.h
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5
13960 $as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; }
13961 if ${ac_cv_have_ss_family_in_struct_ss+:} false; then :
13962 $as_echo_n "(cached) " >&6
13965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13966 /* end confdefs.h. */
13968 #include <sys/types.h>
13969 #include <sys/socket.h>
13974 struct sockaddr_storage s; s.ss_family = 1;
13979 if ac_fn_c_try_compile "$LINENO"; then :
13980 ac_cv_have_ss_family_in_struct_ss="yes"
13982 ac_cv_have_ss_family_in_struct_ss="no"
13984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5
13988 $as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; }
13989 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
13991 $as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5
13996 $as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; }
13997 if ${ac_cv_have___ss_family_in_struct_ss+:} false; then :
13998 $as_echo_n "(cached) " >&6
14001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14002 /* end confdefs.h. */
14004 #include <sys/types.h>
14005 #include <sys/socket.h>
14010 struct sockaddr_storage s; s.__ss_family = 1;
14015 if ac_fn_c_try_compile "$LINENO"; then :
14016 ac_cv_have___ss_family_in_struct_ss="yes"
14018 ac_cv_have___ss_family_in_struct_ss="no"
14021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5
14025 $as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; }
14026 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
14028 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_class field in struct passwd" >&5
14033 $as_echo_n "checking for pw_class field in struct passwd... " >&6; }
14034 if ${ac_cv_have_pw_class_in_struct_passwd+:} false; then :
14035 $as_echo_n "(cached) " >&6
14038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14039 /* end confdefs.h. */
14046 struct passwd p; p.pw_class = 0;
14051 if ac_fn_c_try_compile "$LINENO"; then :
14052 ac_cv_have_pw_class_in_struct_passwd="yes"
14054 ac_cv_have_pw_class_in_struct_passwd="no"
14057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
14061 $as_echo "$ac_cv_have_pw_class_in_struct_passwd" >&6; }
14062 if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
14064 $as_echo "#define HAVE_PW_CLASS_IN_PASSWD 1" >>confdefs.h
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_expire field in struct passwd" >&5
14069 $as_echo_n "checking for pw_expire field in struct passwd... " >&6; }
14070 if ${ac_cv_have_pw_expire_in_struct_passwd+:} false; then :
14071 $as_echo_n "(cached) " >&6
14074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14075 /* end confdefs.h. */
14082 struct passwd p; p.pw_expire = 0;
14087 if ac_fn_c_try_compile "$LINENO"; then :
14088 ac_cv_have_pw_expire_in_struct_passwd="yes"
14090 ac_cv_have_pw_expire_in_struct_passwd="no"
14093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
14097 $as_echo "$ac_cv_have_pw_expire_in_struct_passwd" >&6; }
14098 if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
14100 $as_echo "#define HAVE_PW_EXPIRE_IN_PASSWD 1" >>confdefs.h
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_change field in struct passwd" >&5
14105 $as_echo_n "checking for pw_change field in struct passwd... " >&6; }
14106 if ${ac_cv_have_pw_change_in_struct_passwd+:} false; then :
14107 $as_echo_n "(cached) " >&6
14110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14111 /* end confdefs.h. */
14118 struct passwd p; p.pw_change = 0;
14123 if ac_fn_c_try_compile "$LINENO"; then :
14124 ac_cv_have_pw_change_in_struct_passwd="yes"
14126 ac_cv_have_pw_change_in_struct_passwd="no"
14129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
14133 $as_echo "$ac_cv_have_pw_change_in_struct_passwd" >&6; }
14134 if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
14136 $as_echo "#define HAVE_PW_CHANGE_IN_PASSWD 1" >>confdefs.h
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5
14141 $as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; }
14142 if ${ac_cv_have_accrights_in_msghdr+:} false; then :
14143 $as_echo_n "(cached) " >&6
14146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14147 /* end confdefs.h. */
14149 #include <sys/types.h>
14150 #include <sys/socket.h>
14151 #include <sys/uio.h>
14153 #ifdef msg_accrights
14154 #error "msg_accrights is a macro"
14158 m.msg_accrights = 0;
14163 if ac_fn_c_try_compile "$LINENO"; then :
14164 ac_cv_have_accrights_in_msghdr="yes"
14166 ac_cv_have_accrights_in_msghdr="no"
14169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5
14173 $as_echo "$ac_cv_have_accrights_in_msghdr" >&6; }
14174 if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
14176 $as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5
14181 $as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; }
14182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14183 /* end confdefs.h. */
14185 #include <sys/types.h>
14186 #include <sys/stat.h>
14187 #ifdef HAVE_SYS_TIME_H
14188 # include <sys/time.h>
14190 #ifdef HAVE_SYS_MOUNT_H
14191 #include <sys/mount.h>
14193 #ifdef HAVE_SYS_STATVFS_H
14194 #include <sys/statvfs.h>
14200 struct statvfs s; s.f_fsid = 0;
14205 if ac_fn_c_try_compile "$LINENO"; then :
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14207 $as_echo "yes" >&6; }
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14210 $as_echo "no" >&6; }
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5
14213 $as_echo_n "checking if fsid_t has member val... " >&6; }
14214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14215 /* end confdefs.h. */
14217 #include <sys/types.h>
14218 #include <sys/statvfs.h>
14222 fsid_t t; t.val[0] = 0;
14227 if ac_fn_c_try_compile "$LINENO"; then :
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14229 $as_echo "yes" >&6; }
14231 $as_echo "#define FSID_HAS_VAL 1" >>confdefs.h
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14235 $as_echo "no" >&6; }
14237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5
14240 $as_echo_n "checking if f_fsid has member __val... " >&6; }
14241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14242 /* end confdefs.h. */
14244 #include <sys/types.h>
14245 #include <sys/statvfs.h>
14249 fsid_t t; t.__val[0] = 0;
14254 if ac_fn_c_try_compile "$LINENO"; then :
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14256 $as_echo "yes" >&6; }
14258 $as_echo "#define FSID_HAS___VAL 1" >>confdefs.h
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14262 $as_echo "no" >&6; }
14264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5
14270 $as_echo_n "checking for msg_control field in struct msghdr... " >&6; }
14271 if ${ac_cv_have_control_in_msghdr+:} false; then :
14272 $as_echo_n "(cached) " >&6
14275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14276 /* end confdefs.h. */
14278 #include <sys/types.h>
14279 #include <sys/socket.h>
14280 #include <sys/uio.h>
14283 #error "msg_control is a macro"
14292 if ac_fn_c_try_compile "$LINENO"; then :
14293 ac_cv_have_control_in_msghdr="yes"
14295 ac_cv_have_control_in_msghdr="no"
14298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5
14302 $as_echo "$ac_cv_have_control_in_msghdr" >&6; }
14303 if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
14305 $as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5
14310 $as_echo_n "checking if libc defines __progname... " >&6; }
14311 if ${ac_cv_libc_defines___progname+:} false; then :
14312 $as_echo_n "(cached) " >&6
14315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14316 /* end confdefs.h. */
14321 extern char *__progname; printf("%s", __progname);
14326 if ac_fn_c_try_link "$LINENO"; then :
14327 ac_cv_libc_defines___progname="yes"
14329 ac_cv_libc_defines___progname="no"
14332 rm -f core conftest.err conftest.$ac_objext \
14333 conftest$ac_exeext conftest.$ac_ext
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5
14337 $as_echo "$ac_cv_libc_defines___progname" >&6; }
14338 if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
14340 $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5
14345 $as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; }
14346 if ${ac_cv_cc_implements___FUNCTION__+:} false; then :
14347 $as_echo_n "(cached) " >&6
14350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14351 /* end confdefs.h. */
14358 printf("%s", __FUNCTION__);
14363 if ac_fn_c_try_link "$LINENO"; then :
14364 ac_cv_cc_implements___FUNCTION__="yes"
14366 ac_cv_cc_implements___FUNCTION__="no"
14369 rm -f core conftest.err conftest.$ac_objext \
14370 conftest$ac_exeext conftest.$ac_ext
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5
14374 $as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; }
14375 if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
14377 $as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5
14382 $as_echo_n "checking whether $CC implements __func__... " >&6; }
14383 if ${ac_cv_cc_implements___func__+:} false; then :
14384 $as_echo_n "(cached) " >&6
14387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14388 /* end confdefs.h. */
14395 printf("%s", __func__);
14400 if ac_fn_c_try_link "$LINENO"; then :
14401 ac_cv_cc_implements___func__="yes"
14403 ac_cv_cc_implements___func__="no"
14406 rm -f core conftest.err conftest.$ac_objext \
14407 conftest$ac_exeext conftest.$ac_ext
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5
14411 $as_echo "$ac_cv_cc_implements___func__" >&6; }
14412 if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
14414 $as_echo "#define HAVE___func__ 1" >>confdefs.h
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5
14419 $as_echo_n "checking whether va_copy exists... " >&6; }
14420 if ${ac_cv_have_va_copy+:} false; then :
14421 $as_echo_n "(cached) " >&6
14424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425 /* end confdefs.h. */
14426 #include <stdarg.h>
14436 if ac_fn_c_try_link "$LINENO"; then :
14437 ac_cv_have_va_copy="yes"
14439 ac_cv_have_va_copy="no"
14442 rm -f core conftest.err conftest.$ac_objext \
14443 conftest$ac_exeext conftest.$ac_ext
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5
14447 $as_echo "$ac_cv_have_va_copy" >&6; }
14448 if test "x$ac_cv_have_va_copy" = "xyes" ; then
14450 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5
14455 $as_echo_n "checking whether __va_copy exists... " >&6; }
14456 if ${ac_cv_have___va_copy+:} false; then :
14457 $as_echo_n "(cached) " >&6
14460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461 /* end confdefs.h. */
14462 #include <stdarg.h>
14472 if ac_fn_c_try_link "$LINENO"; then :
14473 ac_cv_have___va_copy="yes"
14475 ac_cv_have___va_copy="no"
14478 rm -f core conftest.err conftest.$ac_objext \
14479 conftest$ac_exeext conftest.$ac_ext
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5
14483 $as_echo "$ac_cv_have___va_copy" >&6; }
14484 if test "x$ac_cv_have___va_copy" = "xyes" ; then
14486 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5
14491 $as_echo_n "checking whether getopt has optreset support... " >&6; }
14492 if ${ac_cv_have_getopt_optreset+:} false; then :
14493 $as_echo_n "(cached) " >&6
14496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14497 /* end confdefs.h. */
14499 #include <getopt.h>
14504 extern int optreset; optreset = 0;
14509 if ac_fn_c_try_link "$LINENO"; then :
14510 ac_cv_have_getopt_optreset="yes"
14512 ac_cv_have_getopt_optreset="no"
14515 rm -f core conftest.err conftest.$ac_objext \
14516 conftest$ac_exeext conftest.$ac_ext
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5
14520 $as_echo "$ac_cv_have_getopt_optreset" >&6; }
14521 if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
14523 $as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5
14528 $as_echo_n "checking if libc defines sys_errlist... " >&6; }
14529 if ${ac_cv_libc_defines_sys_errlist+:} false; then :
14530 $as_echo_n "(cached) " >&6
14533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14534 /* end confdefs.h. */
14539 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
14544 if ac_fn_c_try_link "$LINENO"; then :
14545 ac_cv_libc_defines_sys_errlist="yes"
14547 ac_cv_libc_defines_sys_errlist="no"
14550 rm -f core conftest.err conftest.$ac_objext \
14551 conftest$ac_exeext conftest.$ac_ext
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5
14555 $as_echo "$ac_cv_libc_defines_sys_errlist" >&6; }
14556 if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
14558 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5
14564 $as_echo_n "checking if libc defines sys_nerr... " >&6; }
14565 if ${ac_cv_libc_defines_sys_nerr+:} false; then :
14566 $as_echo_n "(cached) " >&6
14569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14570 /* end confdefs.h. */
14575 extern int sys_nerr; printf("%i", sys_nerr);
14580 if ac_fn_c_try_link "$LINENO"; then :
14581 ac_cv_libc_defines_sys_nerr="yes"
14583 ac_cv_libc_defines_sys_nerr="no"
14586 rm -f core conftest.err conftest.$ac_objext \
14587 conftest$ac_exeext conftest.$ac_ext
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5
14591 $as_echo "$ac_cv_libc_defines_sys_nerr" >&6; }
14592 if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
14594 $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
14598 # Check libraries needed by DNS fingerprint support
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5
14600 $as_echo_n "checking for library containing getrrsetbyname... " >&6; }
14601 if ${ac_cv_search_getrrsetbyname+:} false; then :
14602 $as_echo_n "(cached) " >&6
14604 ac_func_search_save_LIBS=$LIBS
14605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14606 /* end confdefs.h. */
14608 /* Override any GCC internal prototype to avoid an error.
14609 Use char because int might match the return type of a GCC
14610 builtin and then its argument prototype would still apply. */
14614 char getrrsetbyname ();
14618 return getrrsetbyname ();
14623 for ac_lib in '' resolv; do
14624 if test -z "$ac_lib"; then
14625 ac_res="none required"
14628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14630 if ac_fn_c_try_link "$LINENO"; then :
14631 ac_cv_search_getrrsetbyname=$ac_res
14633 rm -f core conftest.err conftest.$ac_objext \
14635 if ${ac_cv_search_getrrsetbyname+:} false; then :
14639 if ${ac_cv_search_getrrsetbyname+:} false; then :
14642 ac_cv_search_getrrsetbyname=no
14644 rm conftest.$ac_ext
14645 LIBS=$ac_func_search_save_LIBS
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5
14648 $as_echo "$ac_cv_search_getrrsetbyname" >&6; }
14649 ac_res=$ac_cv_search_getrrsetbyname
14650 if test "$ac_res" != no; then :
14651 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14653 $as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h
14657 # Needed by our getrrsetbyname()
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
14659 $as_echo_n "checking for library containing res_query... " >&6; }
14660 if ${ac_cv_search_res_query+:} false; then :
14661 $as_echo_n "(cached) " >&6
14663 ac_func_search_save_LIBS=$LIBS
14664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14665 /* end confdefs.h. */
14667 /* Override any GCC internal prototype to avoid an error.
14668 Use char because int might match the return type of a GCC
14669 builtin and then its argument prototype would still apply. */
14677 return res_query ();
14682 for ac_lib in '' resolv; do
14683 if test -z "$ac_lib"; then
14684 ac_res="none required"
14687 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14689 if ac_fn_c_try_link "$LINENO"; then :
14690 ac_cv_search_res_query=$ac_res
14692 rm -f core conftest.err conftest.$ac_objext \
14694 if ${ac_cv_search_res_query+:} false; then :
14698 if ${ac_cv_search_res_query+:} false; then :
14701 ac_cv_search_res_query=no
14703 rm conftest.$ac_ext
14704 LIBS=$ac_func_search_save_LIBS
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
14707 $as_echo "$ac_cv_search_res_query" >&6; }
14708 ac_res=$ac_cv_search_res_query
14709 if test "$ac_res" != no; then :
14710 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
14715 $as_echo_n "checking for library containing dn_expand... " >&6; }
14716 if ${ac_cv_search_dn_expand+:} false; then :
14717 $as_echo_n "(cached) " >&6
14719 ac_func_search_save_LIBS=$LIBS
14720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14721 /* end confdefs.h. */
14723 /* Override any GCC internal prototype to avoid an error.
14724 Use char because int might match the return type of a GCC
14725 builtin and then its argument prototype would still apply. */
14733 return dn_expand ();
14738 for ac_lib in '' resolv; do
14739 if test -z "$ac_lib"; then
14740 ac_res="none required"
14743 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14745 if ac_fn_c_try_link "$LINENO"; then :
14746 ac_cv_search_dn_expand=$ac_res
14748 rm -f core conftest.err conftest.$ac_objext \
14750 if ${ac_cv_search_dn_expand+:} false; then :
14754 if ${ac_cv_search_dn_expand+:} false; then :
14757 ac_cv_search_dn_expand=no
14759 rm conftest.$ac_ext
14760 LIBS=$ac_func_search_save_LIBS
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
14763 $as_echo "$ac_cv_search_dn_expand" >&6; }
14764 ac_res=$ac_cv_search_dn_expand
14765 if test "$ac_res" != no; then :
14766 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5
14771 $as_echo_n "checking if res_query will link... " >&6; }
14772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14773 /* end confdefs.h. */
14775 #include "confdefs.h"
14776 #include <sys/types.h>
14777 #include <netinet/in.h>
14778 #include <arpa/nameser.h>
14780 #include <resolv.h>
14783 res_query (0, 0, 0, 0, 0);
14788 if ac_fn_c_try_link "$LINENO"; then :
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14790 $as_echo "yes" >&6; }
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14793 $as_echo "no" >&6; }
14795 LIBS="$LIBS -lresolv"
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
14797 $as_echo_n "checking for res_query in -lresolv... " >&6; }
14798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14799 /* end confdefs.h. */
14801 #include "confdefs.h"
14802 #include <sys/types.h>
14803 #include <netinet/in.h>
14804 #include <arpa/nameser.h>
14806 #include <resolv.h>
14809 res_query (0, 0, 0, 0, 0);
14814 if ac_fn_c_try_link "$LINENO"; then :
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14816 $as_echo "yes" >&6; }
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14820 $as_echo "no" >&6; }
14822 rm -f core conftest.err conftest.$ac_objext \
14823 conftest$ac_exeext conftest.$ac_ext
14826 rm -f core conftest.err conftest.$ac_objext \
14827 conftest$ac_exeext conftest.$ac_ext
14828 for ac_func in _getshort _getlong
14830 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14831 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14832 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14833 cat >>confdefs.h <<_ACEOF
14834 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14840 ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h>
14841 #include <arpa/nameser.h>
14843 if test "x$ac_cv_have_decl__getshort" = xyes; then :
14849 cat >>confdefs.h <<_ACEOF
14850 #define HAVE_DECL__GETSHORT $ac_have_decl
14852 ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h>
14853 #include <arpa/nameser.h>
14855 if test "x$ac_cv_have_decl__getlong" = xyes; then :
14861 cat >>confdefs.h <<_ACEOF
14862 #define HAVE_DECL__GETLONG $ac_have_decl
14865 ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h>
14867 if test "x$ac_cv_member_HEADER_ad" = xyes; then :
14869 $as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5
14878 $as_echo_n "checking if struct __res_state _res is an extern... " >&6; }
14879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14880 /* end confdefs.h. */
14883 #if HAVE_SYS_TYPES_H
14884 # include <sys/types.h>
14886 #include <netinet/in.h>
14887 #include <arpa/nameser.h>
14888 #include <resolv.h>
14889 extern struct __res_state _res;
14890 int main() { return 0; }
14893 if ac_fn_c_try_link "$LINENO"; then :
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14895 $as_echo "yes" >&6; }
14897 $as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14902 $as_echo "no" >&6; }
14905 rm -f core conftest.err conftest.$ac_objext \
14906 conftest$ac_exeext conftest.$ac_ext
14908 # Check whether user wants SELinux support
14912 # Check whether --with-selinux was given.
14913 if test "${with_selinux+set}" = set; then :
14914 withval=$with_selinux; if test "x$withval" != "xno" ; then
14917 $as_echo "#define WITH_SELINUX 1" >>confdefs.h
14920 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
14921 if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
14924 as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5
14929 $as_echo_n "checking for setexeccon in -lselinux... " >&6; }
14930 if ${ac_cv_lib_selinux_setexeccon+:} false; then :
14931 $as_echo_n "(cached) " >&6
14933 ac_check_lib_save_LIBS=$LIBS
14934 LIBS="-lselinux $LIBS"
14935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14936 /* end confdefs.h. */
14938 /* Override any GCC internal prototype to avoid an error.
14939 Use char because int might match the return type of a GCC
14940 builtin and then its argument prototype would still apply. */
14944 char setexeccon ();
14948 return setexeccon ();
14953 if ac_fn_c_try_link "$LINENO"; then :
14954 ac_cv_lib_selinux_setexeccon=yes
14956 ac_cv_lib_selinux_setexeccon=no
14958 rm -f core conftest.err conftest.$ac_objext \
14959 conftest$ac_exeext conftest.$ac_ext
14960 LIBS=$ac_check_lib_save_LIBS
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5
14963 $as_echo "$ac_cv_lib_selinux_setexeccon" >&6; }
14964 if test "x$ac_cv_lib_selinux_setexeccon" = xyes; then :
14965 LIBSELINUX="-lselinux"
14966 LIBS="$LIBS -lselinux"
14969 as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5
14972 SSHLIBS="$SSHLIBS $LIBSELINUX"
14973 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
14974 for ac_func in getseuserbyname get_default_context_with_level
14976 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14977 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14978 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14979 cat >>confdefs.h <<_ACEOF
14980 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14994 # Check whether user wants Kerberos 5 support
14997 # Check whether --with-kerberos5 was given.
14998 if test "${with_kerberos5+set}" = set; then :
14999 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
15000 if test "x$withval" = "xyes" ; then
15001 KRB5ROOT="/usr/local"
15003 KRB5ROOT=${withval}
15007 $as_echo "#define KRB5 1" >>confdefs.h
15011 # Extract the first word of "krb5-config", so it can be a program name with args.
15012 set dummy krb5-config; ac_word=$2
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15014 $as_echo_n "checking for $ac_word... " >&6; }
15015 if ${ac_cv_path_KRB5CONF+:} false; then :
15016 $as_echo_n "(cached) " >&6
15020 ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
15023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15024 as_dummy="$KRB5ROOT/bin:$PATH"
15025 for as_dir in $as_dummy
15028 test -z "$as_dir" && as_dir=.
15029 for ac_exec_ext in '' $ac_executable_extensions; do
15030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15031 ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
15032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15039 test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config"
15043 KRB5CONF=$ac_cv_path_KRB5CONF
15044 if test -n "$KRB5CONF"; then
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5
15046 $as_echo "$KRB5CONF" >&6; }
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15049 $as_echo "no" >&6; }
15053 if test -x $KRB5CONF ; then
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5
15056 $as_echo_n "checking for gssapi support... " >&6; }
15057 if $KRB5CONF | grep gssapi >/dev/null ; then
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15059 $as_echo "yes" >&6; }
15061 $as_echo "#define GSSAPI 1" >>confdefs.h
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15066 $as_echo "no" >&6; }
15069 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
15070 K5LIBS="`$KRB5CONF --libs $k5confopts`"
15071 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
15073 $as_echo_n "checking whether we are using Heimdal... " >&6; }
15074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15075 /* end confdefs.h. */
15080 char *tmp = heimdal_version;
15085 if ac_fn_c_try_compile "$LINENO"; then :
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15087 $as_echo "yes" >&6; }
15089 $as_echo "#define HEIMDAL 1" >>confdefs.h
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15093 $as_echo "no" >&6; }
15096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15098 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
15099 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
15101 $as_echo_n "checking whether we are using Heimdal... " >&6; }
15102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15103 /* end confdefs.h. */
15108 char *tmp = heimdal_version;
15113 if ac_fn_c_try_compile "$LINENO"; then :
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15115 $as_echo "yes" >&6; }
15116 $as_echo "#define HEIMDAL 1" >>confdefs.h
15119 K5LIBS="$K5LIBS -lcom_err -lasn1"
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5
15121 $as_echo_n "checking for net_write in -lroken... " >&6; }
15122 if ${ac_cv_lib_roken_net_write+:} false; then :
15123 $as_echo_n "(cached) " >&6
15125 ac_check_lib_save_LIBS=$LIBS
15126 LIBS="-lroken $LIBS"
15127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15128 /* end confdefs.h. */
15130 /* Override any GCC internal prototype to avoid an error.
15131 Use char because int might match the return type of a GCC
15132 builtin and then its argument prototype would still apply. */
15140 return net_write ();
15145 if ac_fn_c_try_link "$LINENO"; then :
15146 ac_cv_lib_roken_net_write=yes
15148 ac_cv_lib_roken_net_write=no
15150 rm -f core conftest.err conftest.$ac_objext \
15151 conftest$ac_exeext conftest.$ac_ext
15152 LIBS=$ac_check_lib_save_LIBS
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5
15155 $as_echo "$ac_cv_lib_roken_net_write" >&6; }
15156 if test "x$ac_cv_lib_roken_net_write" = xyes; then :
15157 K5LIBS="$K5LIBS -lroken"
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15161 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15162 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
15163 $as_echo_n "(cached) " >&6
15165 ac_check_lib_save_LIBS=$LIBS
15167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15168 /* end confdefs.h. */
15170 /* Override any GCC internal prototype to avoid an error.
15171 Use char because int might match the return type of a GCC
15172 builtin and then its argument prototype would still apply. */
15176 char des_cbc_encrypt ();
15180 return des_cbc_encrypt ();
15185 if ac_fn_c_try_link "$LINENO"; then :
15186 ac_cv_lib_des_des_cbc_encrypt=yes
15188 ac_cv_lib_des_des_cbc_encrypt=no
15190 rm -f core conftest.err conftest.$ac_objext \
15191 conftest$ac_exeext conftest.$ac_ext
15192 LIBS=$ac_check_lib_save_LIBS
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15195 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15196 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
15197 K5LIBS="$K5LIBS -ldes"
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15203 $as_echo "no" >&6; }
15204 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
15208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
15210 $as_echo_n "checking for library containing dn_expand... " >&6; }
15211 if ${ac_cv_search_dn_expand+:} false; then :
15212 $as_echo_n "(cached) " >&6
15214 ac_func_search_save_LIBS=$LIBS
15215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15216 /* end confdefs.h. */
15218 /* Override any GCC internal prototype to avoid an error.
15219 Use char because int might match the return type of a GCC
15220 builtin and then its argument prototype would still apply. */
15228 return dn_expand ();
15233 for ac_lib in '' resolv; do
15234 if test -z "$ac_lib"; then
15235 ac_res="none required"
15238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15240 if ac_fn_c_try_link "$LINENO"; then :
15241 ac_cv_search_dn_expand=$ac_res
15243 rm -f core conftest.err conftest.$ac_objext \
15245 if ${ac_cv_search_dn_expand+:} false; then :
15249 if ${ac_cv_search_dn_expand+:} false; then :
15252 ac_cv_search_dn_expand=no
15254 rm conftest.$ac_ext
15255 LIBS=$ac_func_search_save_LIBS
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
15258 $as_echo "$ac_cv_search_dn_expand" >&6; }
15259 ac_res=$ac_cv_search_dn_expand
15260 if test "$ac_res" != no; then :
15261 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5
15267 $as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; }
15268 if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then :
15269 $as_echo_n "(cached) " >&6
15271 ac_check_lib_save_LIBS=$LIBS
15272 LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
15273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15274 /* end confdefs.h. */
15276 /* Override any GCC internal prototype to avoid an error.
15277 Use char because int might match the return type of a GCC
15278 builtin and then its argument prototype would still apply. */
15282 char gss_init_sec_context ();
15286 return gss_init_sec_context ();
15291 if ac_fn_c_try_link "$LINENO"; then :
15292 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
15294 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
15296 rm -f core conftest.err conftest.$ac_objext \
15297 conftest$ac_exeext conftest.$ac_ext
15298 LIBS=$ac_check_lib_save_LIBS
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
15301 $as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
15302 if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then :
15303 $as_echo "#define GSSAPI 1" >>confdefs.h
15305 K5LIBS="-lgssapi_krb5 $K5LIBS"
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5
15308 $as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; }
15309 if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then :
15310 $as_echo_n "(cached) " >&6
15312 ac_check_lib_save_LIBS=$LIBS
15313 LIBS="-lgssapi $K5LIBS $LIBS"
15314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15315 /* end confdefs.h. */
15317 /* Override any GCC internal prototype to avoid an error.
15318 Use char because int might match the return type of a GCC
15319 builtin and then its argument prototype would still apply. */
15323 char gss_init_sec_context ();
15327 return gss_init_sec_context ();
15332 if ac_fn_c_try_link "$LINENO"; then :
15333 ac_cv_lib_gssapi_gss_init_sec_context=yes
15335 ac_cv_lib_gssapi_gss_init_sec_context=no
15337 rm -f core conftest.err conftest.$ac_objext \
15338 conftest$ac_exeext conftest.$ac_ext
15339 LIBS=$ac_check_lib_save_LIBS
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
15342 $as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
15343 if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then :
15344 $as_echo "#define GSSAPI 1" >>confdefs.h
15346 K5LIBS="-lgssapi $K5LIBS"
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
15349 $as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
15356 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
15357 if test "x$ac_cv_header_gssapi_h" = xyes; then :
15360 unset ac_cv_header_gssapi_h
15361 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
15362 for ac_header in gssapi.h
15364 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
15365 if test "x$ac_cv_header_gssapi_h" = xyes; then :
15366 cat >>confdefs.h <<_ACEOF
15367 #define HAVE_GSSAPI_H 1
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
15372 $as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
15385 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
15386 ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default"
15387 if test "x$ac_cv_header_gssapi_krb5_h" = xyes; then :
15396 if test ! -z "$need_dash_r" ; then
15397 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
15399 if test ! -z "$blibpath" ; then
15400 blibpath="$blibpath:${KRB5ROOT}/lib"
15403 for ac_header in gssapi.h gssapi/gssapi.h
15405 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15406 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15407 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15408 cat >>confdefs.h <<_ACEOF
15409 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15416 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
15418 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15419 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15420 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15421 cat >>confdefs.h <<_ACEOF
15422 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15429 for ac_header in gssapi_ext.h gssapi/gssapi_ext.h
15431 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15432 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15433 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15434 cat >>confdefs.h <<_ACEOF
15435 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15443 LIBS="$LIBS $K5LIBS"
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5
15445 $as_echo_n "checking for library containing k_hasafs... " >&6; }
15446 if ${ac_cv_search_k_hasafs+:} false; then :
15447 $as_echo_n "(cached) " >&6
15449 ac_func_search_save_LIBS=$LIBS
15450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15451 /* end confdefs.h. */
15453 /* Override any GCC internal prototype to avoid an error.
15454 Use char because int might match the return type of a GCC
15455 builtin and then its argument prototype would still apply. */
15463 return k_hasafs ();
15468 for ac_lib in '' kafs; do
15469 if test -z "$ac_lib"; then
15470 ac_res="none required"
15473 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15475 if ac_fn_c_try_link "$LINENO"; then :
15476 ac_cv_search_k_hasafs=$ac_res
15478 rm -f core conftest.err conftest.$ac_objext \
15480 if ${ac_cv_search_k_hasafs+:} false; then :
15484 if ${ac_cv_search_k_hasafs+:} false; then :
15487 ac_cv_search_k_hasafs=no
15489 rm conftest.$ac_ext
15490 LIBS=$ac_func_search_save_LIBS
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5
15493 $as_echo "$ac_cv_search_k_hasafs" >&6; }
15494 ac_res=$ac_cv_search_k_hasafs
15495 if test "$ac_res" != no; then :
15496 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15498 $as_echo "#define USE_AFS 1" >>confdefs.h
15508 # Looking for programs, paths and files
15510 PRIVSEP_PATH=/var/empty
15512 # Check whether --with-privsep-path was given.
15513 if test "${with_privsep_path+set}" = set; then :
15514 withval=$with_privsep_path;
15515 if test -n "$withval" && test "x$withval" != "xno" && \
15516 test "x${withval}" != "xyes"; then
15517 PRIVSEP_PATH=$withval
15526 # Check whether --with-xauth was given.
15527 if test "${with_xauth+set}" = set; then :
15528 withval=$with_xauth;
15529 if test -n "$withval" && test "x$withval" != "xno" && \
15530 test "x${withval}" != "xyes"; then
15531 xauth_path=$withval
15537 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
15538 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
15539 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
15540 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
15541 # Extract the first word of "xauth", so it can be a program name with args.
15542 set dummy xauth; ac_word=$2
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15544 $as_echo_n "checking for $ac_word... " >&6; }
15545 if ${ac_cv_path_xauth_path+:} false; then :
15546 $as_echo_n "(cached) " >&6
15548 case $xauth_path in
15550 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
15553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15554 for as_dir in $TestPath
15557 test -z "$as_dir" && as_dir=.
15558 for ac_exec_ext in '' $ac_executable_extensions; do
15559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15560 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
15561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15571 xauth_path=$ac_cv_path_xauth_path
15572 if test -n "$xauth_path"; then
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5
15574 $as_echo "$xauth_path" >&6; }
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15577 $as_echo "no" >&6; }
15581 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
15582 xauth_path="/usr/openwin/bin/xauth"
15590 # Check whether --enable-strip was given.
15591 if test "${enable_strip+set}" = set; then :
15592 enableval=$enable_strip;
15593 if test "x$enableval" = "xno" ; then
15602 if test -z "$xauth_path" ; then
15603 XAUTH_PATH="undefined"
15607 cat >>confdefs.h <<_ACEOF
15608 #define XAUTH_PATH "$xauth_path"
15611 XAUTH_PATH=$xauth_path
15615 # Check for mail directory (last resort if we cannot get it from headers)
15616 if test ! -z "$MAIL" ; then
15617 maildir=`dirname $MAIL`
15619 cat >>confdefs.h <<_ACEOF
15620 #define MAIL_DIRECTORY "$maildir"
15625 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
15627 $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
15628 disable_ptmx_check=yes
15630 if test -z "$no_dev_ptmx" ; then
15631 if test "x$disable_ptmx_check" != "xyes" ; then
15632 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh`
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5
15634 $as_echo_n "checking for \"/dev/ptmx\"... " >&6; }
15635 if eval \${$as_ac_File+:} false; then :
15636 $as_echo_n "(cached) " >&6
15638 test "$cross_compiling" = yes &&
15639 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15640 if test -r ""/dev/ptmx""; then
15641 eval "$as_ac_File=yes"
15643 eval "$as_ac_File=no"
15646 eval ac_res=\$$as_ac_File
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15648 $as_echo "$ac_res" >&6; }
15649 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15652 cat >>confdefs.h <<_ACEOF
15653 #define HAVE_DEV_PTMX 1
15664 if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
15665 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh`
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5
15667 $as_echo_n "checking for \"/dev/ptc\"... " >&6; }
15668 if eval \${$as_ac_File+:} false; then :
15669 $as_echo_n "(cached) " >&6
15671 test "$cross_compiling" = yes &&
15672 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15673 if test -r ""/dev/ptc""; then
15674 eval "$as_ac_File=yes"
15676 eval "$as_ac_File=no"
15679 eval ac_res=\$$as_ac_File
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15681 $as_echo "$ac_res" >&6; }
15682 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15685 cat >>confdefs.h <<_ACEOF
15686 #define HAVE_DEV_PTS_AND_PTC 1
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5
15696 $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
15699 # Options from here on. Some of these are preset by platform above
15701 # Check whether --with-mantype was given.
15702 if test "${with_mantype+set}" = set; then :
15703 withval=$with_mantype;
15709 as_fn_error $? "invalid man type: $withval" "$LINENO" 5
15716 if test -z "$MANTYPE"; then
15717 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
15718 for ac_prog in nroff awf
15720 # Extract the first word of "$ac_prog", so it can be a program name with args.
15721 set dummy $ac_prog; ac_word=$2
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15723 $as_echo_n "checking for $ac_word... " >&6; }
15724 if ${ac_cv_path_NROFF+:} false; then :
15725 $as_echo_n "(cached) " >&6
15729 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
15732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15733 for as_dir in $TestPath
15736 test -z "$as_dir" && as_dir=.
15737 for ac_exec_ext in '' $ac_executable_extensions; do
15738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15739 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
15740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15750 NROFF=$ac_cv_path_NROFF
15751 if test -n "$NROFF"; then
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
15753 $as_echo "$NROFF" >&6; }
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15756 $as_echo "no" >&6; }
15760 test -n "$NROFF" && break
15762 test -n "$NROFF" || NROFF="/bin/false"
15764 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
15766 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
15773 if test "$MANTYPE" = "doc"; then
15776 mansubdir=$MANTYPE;
15780 # Check whether to enable MD5 passwords
15783 # Check whether --with-md5-passwords was given.
15784 if test "${with_md5_passwords+set}" = set; then :
15785 withval=$with_md5_passwords;
15786 if test "x$withval" != "xno" ; then
15788 $as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h
15797 # Whether to disable shadow password support
15799 # Check whether --with-shadow was given.
15800 if test "${with_shadow+set}" = set; then :
15801 withval=$with_shadow;
15802 if test "x$withval" = "xno" ; then
15803 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
15812 if test -z "$disable_shadow" ; then
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5
15814 $as_echo_n "checking if the systems has expire shadow information... " >&6; }
15815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15816 /* end confdefs.h. */
15818 #include <sys/types.h>
15819 #include <shadow.h>
15825 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
15830 if ac_fn_c_try_compile "$LINENO"; then :
15831 sp_expire_available=yes
15833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15835 if test "x$sp_expire_available" = "xyes" ; then
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15837 $as_echo "yes" >&6; }
15839 $as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15843 $as_echo "no" >&6; }
15847 # Use ip address instead of hostname in $DISPLAY
15848 if test ! -z "$IPADDR_IN_DISPLAY" ; then
15849 DISPLAY_HACK_MSG="yes"
15851 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
15854 DISPLAY_HACK_MSG="no"
15856 # Check whether --with-ipaddr-display was given.
15857 if test "${with_ipaddr_display+set}" = set; then :
15858 withval=$with_ipaddr_display;
15859 if test "x$withval" != "xno" ; then
15860 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
15862 DISPLAY_HACK_MSG="yes"
15870 # check for /etc/default/login and use it if present.
15871 # Check whether --enable-etc-default-login was given.
15872 if test "${enable_etc_default_login+set}" = set; then :
15873 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5
15875 $as_echo "$as_me: /etc/default/login handling disabled" >&6;}
15876 etc_default_login=no
15878 etc_default_login=yes
15881 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5
15884 $as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
15885 etc_default_login=no
15887 etc_default_login=yes
15893 if test "x$etc_default_login" != "xno"; then
15894 as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh`
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5
15896 $as_echo_n "checking for \"/etc/default/login\"... " >&6; }
15897 if eval \${$as_ac_File+:} false; then :
15898 $as_echo_n "(cached) " >&6
15900 test "$cross_compiling" = yes &&
15901 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15902 if test -r ""/etc/default/login""; then
15903 eval "$as_ac_File=yes"
15905 eval "$as_ac_File=no"
15908 eval ac_res=\$$as_ac_File
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15910 $as_echo "$ac_res" >&6; }
15911 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15912 external_path_file=/etc/default/login
15915 if test "x$external_path_file" = "x/etc/default/login"; then
15917 $as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h
15922 if test $ac_cv_func_login_getcapbool = "yes" && \
15923 test $ac_cv_header_login_cap_h = "yes" ; then
15924 external_path_file=/etc/login.conf
15927 # Whether to mess with the default path
15928 SERVER_PATH_MSG="(default)"
15930 # Check whether --with-default-path was given.
15931 if test "${with_default_path+set}" = set; then :
15932 withval=$with_default_path;
15933 if test "x$external_path_file" = "x/etc/login.conf" ; then
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15935 --with-default-path=PATH has no effect on this system.
15936 Edit /etc/login.conf instead." >&5
15937 $as_echo "$as_me: WARNING:
15938 --with-default-path=PATH has no effect on this system.
15939 Edit /etc/login.conf instead." >&2;}
15940 elif test "x$withval" != "xno" ; then
15941 if test ! -z "$external_path_file" ; then
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15943 --with-default-path=PATH will only be used if PATH is not defined in
15944 $external_path_file ." >&5
15945 $as_echo "$as_me: WARNING:
15946 --with-default-path=PATH will only be used if PATH is not defined in
15947 $external_path_file ." >&2;}
15949 user_path="$withval"
15950 SERVER_PATH_MSG="$withval"
15954 if test "x$external_path_file" = "x/etc/login.conf" ; then
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
15956 $as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
15958 if test ! -z "$external_path_file" ; then
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15960 If PATH is defined in $external_path_file, ensure the path to scp is included,
15961 otherwise scp will not work." >&5
15962 $as_echo "$as_me: WARNING:
15963 If PATH is defined in $external_path_file, ensure the path to scp is included,
15964 otherwise scp will not work." >&2;}
15966 if test "$cross_compiling" = yes; then :
15967 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
15970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15971 /* end confdefs.h. */
15973 /* find out what STDPATH is */
15975 #ifdef HAVE_PATHS_H
15976 # include <paths.h>
15978 #ifndef _PATH_STDPATH
15979 # ifdef _PATH_USERPATH /* Irix */
15980 # define _PATH_STDPATH _PATH_USERPATH
15982 # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
15985 #include <sys/types.h>
15986 #include <sys/stat.h>
15988 #define DATA "conftest.stdpath"
15995 fd = fopen(DATA,"w");
15999 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
16006 if ac_fn_c_try_run "$LINENO"; then :
16007 user_path=`cat conftest.stdpath`
16009 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
16011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16012 conftest.$ac_objext conftest.beam conftest.$ac_ext
16015 # make sure $bindir is in USER_PATH so scp will work
16016 t_bindir=`eval echo ${bindir}`
16018 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
16021 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
16023 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
16024 if test $? -ne 0 ; then
16025 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
16026 if test $? -ne 0 ; then
16027 user_path=$user_path:$t_bindir
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5
16029 $as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; }
16036 if test "x$external_path_file" != "x/etc/login.conf" ; then
16038 cat >>confdefs.h <<_ACEOF
16039 #define USER_PATH "$user_path"
16045 # Set superuser path separately to user path
16047 # Check whether --with-superuser-path was given.
16048 if test "${with_superuser_path+set}" = set; then :
16049 withval=$with_superuser_path;
16050 if test -n "$withval" && test "x$withval" != "xno" && \
16051 test "x${withval}" != "xyes"; then
16053 cat >>confdefs.h <<_ACEOF
16054 #define SUPERUSER_PATH "$withval"
16057 superuser_path=$withval
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
16066 $as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; }
16067 IPV4_IN6_HACK_MSG="no"
16069 # Check whether --with-4in6 was given.
16070 if test "${with_4in6+set}" = set; then :
16071 withval=$with_4in6;
16072 if test "x$withval" != "xno" ; then
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16074 $as_echo "yes" >&6; }
16076 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
16078 IPV4_IN6_HACK_MSG="yes"
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16081 $as_echo "no" >&6; }
16086 if test "x$inet6_default_4in6" = "xyes"; then
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
16088 $as_echo "yes (default)" >&6; }
16089 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
16091 IPV4_IN6_HACK_MSG="yes"
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
16094 $as_echo "no (default)" >&6; }
16101 # Whether to enable BSD auth support
16104 # Check whether --with-bsd-auth was given.
16105 if test "${with_bsd_auth+set}" = set; then :
16106 withval=$with_bsd_auth;
16107 if test "x$withval" != "xno" ; then
16109 $as_echo "#define BSD_AUTH 1" >>confdefs.h
16118 # Where to place sshd.pid
16120 # make sure the directory exists
16121 if test ! -d $piddir ; then
16122 piddir=`eval echo ${sysconfdir}`
16124 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
16129 # Check whether --with-pid-dir was given.
16130 if test "${with_pid_dir+set}" = set; then :
16131 withval=$with_pid_dir;
16132 if test -n "$withval" && test "x$withval" != "xno" && \
16133 test "x${withval}" != "xyes"; then
16135 if test ! -d $piddir ; then
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5
16137 $as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
16146 cat >>confdefs.h <<_ACEOF
16147 #define _PATH_SSH_PIDDIR "$piddir"
16152 # Check whether --enable-lastlog was given.
16153 if test "${enable_lastlog+set}" = set; then :
16154 enableval=$enable_lastlog;
16155 if test "x$enableval" = "xno" ; then
16156 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
16163 # Check whether --enable-utmp was given.
16164 if test "${enable_utmp+set}" = set; then :
16165 enableval=$enable_utmp;
16166 if test "x$enableval" = "xno" ; then
16167 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
16174 # Check whether --enable-utmpx was given.
16175 if test "${enable_utmpx+set}" = set; then :
16176 enableval=$enable_utmpx;
16177 if test "x$enableval" = "xno" ; then
16179 $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
16186 # Check whether --enable-wtmp was given.
16187 if test "${enable_wtmp+set}" = set; then :
16188 enableval=$enable_wtmp;
16189 if test "x$enableval" = "xno" ; then
16190 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
16197 # Check whether --enable-wtmpx was given.
16198 if test "${enable_wtmpx+set}" = set; then :
16199 enableval=$enable_wtmpx;
16200 if test "x$enableval" = "xno" ; then
16202 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
16209 # Check whether --enable-libutil was given.
16210 if test "${enable_libutil+set}" = set; then :
16211 enableval=$enable_libutil;
16212 if test "x$enableval" = "xno" ; then
16213 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
16220 # Check whether --enable-pututline was given.
16221 if test "${enable_pututline+set}" = set; then :
16222 enableval=$enable_pututline;
16223 if test "x$enableval" = "xno" ; then
16225 $as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h
16232 # Check whether --enable-pututxline was given.
16233 if test "${enable_pututxline+set}" = set; then :
16234 enableval=$enable_pututxline;
16235 if test "x$enableval" = "xno" ; then
16237 $as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h
16245 # Check whether --with-lastlog was given.
16246 if test "${with_lastlog+set}" = set; then :
16247 withval=$with_lastlog;
16248 if test "x$withval" = "xno" ; then
16249 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
16251 elif test -n "$withval" && test "x${withval}" != "xyes"; then
16252 conf_lastlog_location=$withval
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5
16261 $as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; }
16262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16263 /* end confdefs.h. */
16265 #include <sys/types.h>
16267 #ifdef HAVE_LASTLOG_H
16268 # include <lastlog.h>
16270 #ifdef HAVE_PATHS_H
16271 # include <paths.h>
16273 #ifdef HAVE_LOGIN_H
16274 # include <login.h>
16280 char *lastlog = LASTLOG_FILE;
16285 if ac_fn_c_try_compile "$LINENO"; then :
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16287 $as_echo "yes" >&6; }
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16291 $as_echo "no" >&6; }
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5
16293 $as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; }
16294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16295 /* end confdefs.h. */
16297 #include <sys/types.h>
16299 #ifdef HAVE_LASTLOG_H
16300 # include <lastlog.h>
16302 #ifdef HAVE_PATHS_H
16303 # include <paths.h>
16309 char *lastlog = _PATH_LASTLOG;
16314 if ac_fn_c_try_compile "$LINENO"; then :
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16316 $as_echo "yes" >&6; }
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16320 $as_echo "no" >&6; }
16321 system_lastlog_path=no
16324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16330 if test -z "$conf_lastlog_location"; then
16331 if test x"$system_lastlog_path" = x"no" ; then
16332 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
16333 if (test -d "$f" || test -f "$f") ; then
16334 conf_lastlog_location=$f
16337 if test -z "$conf_lastlog_location"; then
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5
16339 $as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
16344 if test -n "$conf_lastlog_location"; then
16346 cat >>confdefs.h <<_ACEOF
16347 #define CONF_LASTLOG_FILE "$conf_lastlog_location"
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5
16353 $as_echo_n "checking if your system defines UTMP_FILE... " >&6; }
16354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16355 /* end confdefs.h. */
16357 #include <sys/types.h>
16359 #ifdef HAVE_PATHS_H
16360 # include <paths.h>
16366 char *utmp = UTMP_FILE;
16371 if ac_fn_c_try_compile "$LINENO"; then :
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16373 $as_echo "yes" >&6; }
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16376 $as_echo "no" >&6; }
16377 system_utmp_path=no
16380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16381 if test -z "$conf_utmp_location"; then
16382 if test x"$system_utmp_path" = x"no" ; then
16383 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
16384 if test -f $f ; then
16385 conf_utmp_location=$f
16388 if test -z "$conf_utmp_location"; then
16389 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
16394 if test -n "$conf_utmp_location"; then
16396 cat >>confdefs.h <<_ACEOF
16397 #define CONF_UTMP_FILE "$conf_utmp_location"
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5
16403 $as_echo_n "checking if your system defines WTMP_FILE... " >&6; }
16404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16405 /* end confdefs.h. */
16407 #include <sys/types.h>
16409 #ifdef HAVE_PATHS_H
16410 # include <paths.h>
16416 char *wtmp = WTMP_FILE;
16421 if ac_fn_c_try_compile "$LINENO"; then :
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16423 $as_echo "yes" >&6; }
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16426 $as_echo "no" >&6; }
16427 system_wtmp_path=no
16430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16431 if test -z "$conf_wtmp_location"; then
16432 if test x"$system_wtmp_path" = x"no" ; then
16433 for f in /usr/adm/wtmp /var/log/wtmp; do
16434 if test -f $f ; then
16435 conf_wtmp_location=$f
16438 if test -z "$conf_wtmp_location"; then
16439 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
16444 if test -n "$conf_wtmp_location"; then
16446 cat >>confdefs.h <<_ACEOF
16447 #define CONF_WTMP_FILE "$conf_wtmp_location"
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5
16454 $as_echo_n "checking if your system defines WTMPX_FILE... " >&6; }
16455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16456 /* end confdefs.h. */
16458 #include <sys/types.h>
16460 #ifdef HAVE_UTMPX_H
16463 #ifdef HAVE_PATHS_H
16464 # include <paths.h>
16470 char *wtmpx = WTMPX_FILE;
16475 if ac_fn_c_try_compile "$LINENO"; then :
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16477 $as_echo "yes" >&6; }
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16480 $as_echo "no" >&6; }
16481 system_wtmpx_path=no
16484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16485 if test -z "$conf_wtmpx_location"; then
16486 if test x"$system_wtmpx_path" = x"no" ; then
16487 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
16492 cat >>confdefs.h <<_ACEOF
16493 #define CONF_WTMPX_FILE "$conf_wtmpx_location"
16499 if test ! -z "$blibpath" ; then
16500 LDFLAGS="$LDFLAGS $blibflags$blibpath"
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
16502 $as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
16505 CFLAGS="$CFLAGS $werror_flags"
16507 if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
16512 ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default"
16513 if test "x$ac_cv_have_decl_BROKEN_GETADDRINFO" = xyes; then :
16517 TEST_SSH_IPV6=$TEST_SSH_IPV6
16521 ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile ssh_prng_cmds survey.sh"
16523 cat >confcache <<\_ACEOF
16524 # This file is a shell script that caches the results of configure
16525 # tests run on this system so they can be shared between configure
16526 # scripts and configure runs, see configure's option --config-cache.
16527 # It is not useful on other systems. If it contains results you don't
16528 # want to keep, you may remove or edit it.
16530 # config.status only pays attention to the cache file if you give it
16531 # the --recheck option to rerun configure.
16533 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16534 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16535 # following values.
16539 # The following way of writing the cache mishandles newlines in values,
16540 # but we know of no workaround that is simple, portable, and efficient.
16541 # So, we kill variables containing newlines.
16542 # Ultrix sh set writes to stderr and can't be redirected directly,
16543 # and sets the high bit in the cache file unless we assign to the vars.
16545 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16546 eval ac_val=\$$ac_var
16550 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16551 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16554 _ | IFS | as_nl) ;; #(
16555 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16556 *) { eval $ac_var=; unset $ac_var;} ;;
16562 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16563 *${as_nl}ac_space=\ *)
16564 # `set' does not quote correctly, so add quotes: double-quote
16565 # substitution turns \\\\ into \\, and sed turns \\ into \.
16568 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16571 # `set' quotes correctly as required by POSIX, so do not add quotes.
16572 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16581 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16583 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16585 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16586 if test -w "$cache_file"; then
16587 if test "x$cache_file" != "x/dev/null"; then
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16589 $as_echo "$as_me: updating cache $cache_file" >&6;}
16590 if test ! -f "$cache_file" || test -h "$cache_file"; then
16591 cat confcache >"$cache_file"
16593 case $cache_file in #(
16595 mv -f confcache "$cache_file"$$ &&
16596 mv -f "$cache_file"$$ "$cache_file" ;; #(
16598 mv -f confcache "$cache_file" ;;
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16604 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16609 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16610 # Let make expand exec_prefix.
16611 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16613 DEFS=-DHAVE_CONFIG_H
16618 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16619 # 1. Remove the extension, and $U if already installed.
16620 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16621 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16622 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16623 # will be set to the directory where LIBOBJS objects are built.
16624 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16625 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16627 LIBOBJS=$ac_libobjs
16629 LTLIBOBJS=$ac_ltlibobjs
16634 : "${CONFIG_STATUS=./config.status}"
16636 ac_clean_files_save=$ac_clean_files
16637 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16639 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16641 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16643 # Generated by $as_me.
16644 # Run this file to recreate the current configuration.
16645 # Compiler output produced by configure, useful for debugging
16646 # configure, is in config.log if it exists.
16649 ac_cs_recheck=false
16652 SHELL=\${CONFIG_SHELL-$SHELL}
16655 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16656 ## -------------------- ##
16657 ## M4sh Initialization. ##
16658 ## -------------------- ##
16660 # Be more Bourne compatible
16661 DUALCASE=1; export DUALCASE # for MKS sh
16662 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16665 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16666 # is contrary to our usage. Disable this feature.
16667 alias -g '${1+"$@"}'='"$@"'
16668 setopt NO_GLOB_SUBST
16670 case `(set -o) 2>/dev/null` in #(
16682 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16683 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16684 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16685 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16686 # Prefer a ksh shell builtin over an external printf program on Solaris,
16687 # but without wasting forks for bash or zsh.
16688 if test -z "$BASH_VERSION$ZSH_VERSION" \
16689 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16690 as_echo='print -r --'
16691 as_echo_n='print -rn --'
16692 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16693 as_echo='printf %s\n'
16694 as_echo_n='printf %s'
16696 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16697 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16698 as_echo_n='/usr/ucb/echo -n'
16700 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16701 as_echo_n_body='eval
16705 expr "X$arg" : "X\\(.*\\)$as_nl";
16706 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16708 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16710 export as_echo_n_body
16711 as_echo_n='sh -c $as_echo_n_body as_echo'
16713 export as_echo_body
16714 as_echo='sh -c $as_echo_body as_echo'
16717 # The user is always right.
16718 if test "${PATH_SEPARATOR+set}" != set; then
16720 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16721 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16728 # We need space, tab and new line, in precisely that order. Quoting is
16729 # there to prevent editors from complaining about space-tab.
16730 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16731 # splitting by setting IFS to empty value.)
16734 # Find who we are. Look in the path if we contain no directory separator.
16737 *[\\/]* ) as_myself=$0 ;;
16738 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16739 for as_dir in $PATH
16742 test -z "$as_dir" && as_dir=.
16743 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16749 # We did not find ourselves, most probably we were run as `sh COMMAND'
16750 # in which case we are not to be found in the path.
16751 if test "x$as_myself" = x; then
16754 if test ! -f "$as_myself"; then
16755 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16759 # Unset variables that we do not need and which cause bugs (e.g. in
16760 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16761 # suppresses any "Segmentation fault" message there. '((' could
16762 # trigger a bug in pdksh 5.2.14.
16763 for as_var in BASH_ENV ENV MAIL MAILPATH
16764 do eval test x\${$as_var+set} = xset \
16765 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16778 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16781 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16782 # ----------------------------------------
16783 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16784 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16785 # script with STATUS, using 1 if that was 0.
16788 as_status=$1; test $as_status -eq 0 && as_status=1
16790 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16791 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16793 $as_echo "$as_me: error: $2" >&2
16794 as_fn_exit $as_status
16798 # as_fn_set_status STATUS
16799 # -----------------------
16800 # Set $? to STATUS, without forking.
16801 as_fn_set_status ()
16804 } # as_fn_set_status
16806 # as_fn_exit STATUS
16807 # -----------------
16808 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16812 as_fn_set_status $1
16818 # Portably unset VAR.
16821 { eval $1=; unset $1;}
16823 as_unset=as_fn_unset
16824 # as_fn_append VAR VALUE
16825 # ----------------------
16826 # Append the text in VALUE to the end of the definition contained in VAR. Take
16827 # advantage of any shell optimizations that allow amortized linear growth over
16828 # repeated appends, instead of the typical quadratic growth present in naive
16830 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16831 eval 'as_fn_append ()
16842 # as_fn_arith ARG...
16843 # ------------------
16844 # Perform arithmetic evaluation on the ARGs, and store the result in the
16845 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16846 # must be portable across $(()) and expr.
16847 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16848 eval 'as_fn_arith ()
16855 as_val=`expr "$@" || test $? -eq 1`
16860 if expr a : '\(a\)' >/dev/null 2>&1 &&
16861 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16867 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16868 as_basename=basename
16873 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16879 as_me=`$as_basename -- "$0" ||
16880 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16881 X"$0" : 'X\(//\)$' \| \
16882 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16884 sed '/^.*\/\([^/][^/]*\)\/*$/{
16898 # Avoid depending upon Character Ranges.
16899 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16900 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16901 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16902 as_cr_digits='0123456789'
16903 as_cr_alnum=$as_cr_Letters$as_cr_digits
16905 ECHO_C= ECHO_N= ECHO_T=
16906 case `echo -n x` in #(((((
16908 case `echo 'xy\c'` in
16909 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16911 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16918 rm -f conf$$ conf$$.exe conf$$.file
16919 if test -d conf$$.dir; then
16920 rm -f conf$$.dir/conf$$.file
16923 mkdir conf$$.dir 2>/dev/null
16925 if (echo >conf$$.file) 2>/dev/null; then
16926 if ln -s conf$$.file conf$$ 2>/dev/null; then
16928 # ... but there are two gotchas:
16929 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16930 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16931 # In both cases, we have to default to `cp -p'.
16932 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16934 elif ln conf$$.file conf$$ 2>/dev/null; then
16942 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16943 rmdir conf$$.dir 2>/dev/null
16948 # Create "$as_dir" as a directory, including parents if necessary.
16953 -*) as_dir=./$as_dir;;
16955 test -d "$as_dir" || eval $as_mkdir_p || {
16959 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16960 *) as_qdir=$as_dir;;
16962 as_dirs="'$as_qdir' $as_dirs"
16963 as_dir=`$as_dirname -- "$as_dir" ||
16964 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16965 X"$as_dir" : 'X\(//\)[^/]' \| \
16966 X"$as_dir" : 'X\(//\)$' \| \
16967 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16968 $as_echo X"$as_dir" |
16969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16973 /^X\(\/\/\)[^/].*/{
16986 test -d "$as_dir" && break
16988 test -z "$as_dirs" || eval "mkdir $as_dirs"
16989 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16993 if mkdir -p . 2>/dev/null; then
16994 as_mkdir_p='mkdir -p "$as_dir"'
16996 test -d ./-p && rmdir ./-p
17000 if test -x / >/dev/null 2>&1; then
17001 as_test_x='test -x'
17003 if ls -dL / >/dev/null 2>&1; then
17010 if test -d "$1"; then
17016 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17017 ???[sx]*):;;*)false;;esac;fi
17021 as_executable_p=$as_test_x
17023 # Sed expression to map a string onto a valid CPP name.
17024 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17026 # Sed expression to map a string onto a valid variable name.
17027 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17031 ## ----------------------------------- ##
17032 ## Main body of $CONFIG_STATUS script. ##
17033 ## ----------------------------------- ##
17035 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17038 # Save the log message, to keep $0 and so on meaningful, and to
17039 # report actual input values of CONFIG_FILES etc. instead of their
17040 # values after options handling.
17042 This file was extended by OpenSSH $as_me Portable, which was
17043 generated by GNU Autoconf 2.68. Invocation command line was
17045 CONFIG_FILES = $CONFIG_FILES
17046 CONFIG_HEADERS = $CONFIG_HEADERS
17047 CONFIG_LINKS = $CONFIG_LINKS
17048 CONFIG_COMMANDS = $CONFIG_COMMANDS
17051 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17056 case $ac_config_files in *"
17057 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17060 case $ac_config_headers in *"
17061 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17066 # Files that config.status was made for.
17067 config_files="$ac_config_files"
17068 config_headers="$ac_config_headers"
17072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17074 \`$as_me' instantiates files and other configuration actions
17075 from templates according to the current configuration. Unless the files
17076 and actions are specified as TAGs, all are instantiated by default.
17078 Usage: $0 [OPTION]... [TAG]...
17080 -h, --help print this help, then exit
17081 -V, --version print version number and configuration settings, then exit
17082 --config print configuration, then exit
17083 -q, --quiet, --silent
17084 do not print progress messages
17085 -d, --debug don't remove temporary files
17086 --recheck update $as_me by reconfiguring in the same conditions
17087 --file=FILE[:TEMPLATE]
17088 instantiate the configuration file FILE
17089 --header=FILE[:TEMPLATE]
17090 instantiate the configuration header FILE
17092 Configuration files:
17095 Configuration headers:
17098 Report bugs to <openssh-unix-dev@mindrot.org>."
17101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17102 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17104 OpenSSH config.status Portable
17105 configured by $0, generated by GNU Autoconf 2.68,
17106 with options \\"\$ac_cs_config\\"
17108 Copyright (C) 2010 Free Software Foundation, Inc.
17109 This config.status script is free software; the Free Software Foundation
17110 gives unlimited permission to copy, distribute and modify it."
17116 test -n "\$AWK" || AWK=awk
17119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17120 # The default lists apply if the user does not specify any file.
17126 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17127 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17131 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17143 # Handling of the options.
17144 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17146 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17147 $as_echo "$ac_cs_version"; exit ;;
17148 --config | --confi | --conf | --con | --co | --c )
17149 $as_echo "$ac_cs_config"; exit ;;
17150 --debug | --debu | --deb | --de | --d | -d )
17152 --file | --fil | --fi | --f )
17155 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17156 '') as_fn_error $? "missing file argument" ;;
17158 as_fn_append CONFIG_FILES " '$ac_optarg'"
17159 ac_need_defaults=false;;
17160 --header | --heade | --head | --hea )
17163 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17165 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17166 ac_need_defaults=false;;
17168 # Conflict between --help and --header
17169 as_fn_error $? "ambiguous option: \`$1'
17170 Try \`$0 --help' for more information.";;
17171 --help | --hel | -h )
17172 $as_echo "$ac_cs_usage"; exit ;;
17173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17174 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17177 # This is an error.
17178 -*) as_fn_error $? "unrecognized option: \`$1'
17179 Try \`$0 --help' for more information." ;;
17181 *) as_fn_append ac_config_targets " $1"
17182 ac_need_defaults=false ;;
17188 ac_configure_extra_args=
17190 if $ac_cs_silent; then
17192 ac_configure_extra_args="$ac_configure_extra_args --silent"
17196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17197 if \$ac_cs_recheck; then
17198 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17200 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17201 CONFIG_SHELL='$SHELL'
17202 export CONFIG_SHELL
17207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17211 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17212 ## Running $as_me. ##
17218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17223 # Handling of arguments.
17224 for ac_config_target in $ac_config_targets
17226 case $ac_config_target in
17227 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17228 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17229 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
17230 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
17231 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
17232 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
17233 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
17234 "ssh_prng_cmds") CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
17235 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
17237 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17242 # If the user did not use the arguments to specify the items to instantiate,
17243 # then the envvar interface is used. Set only those that are not.
17244 # We use the long form for the default assignment because of an extremely
17245 # bizarre bug on SunOS 4.1.3.
17246 if $ac_need_defaults; then
17247 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17248 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17251 # Have a temporary directory for convenience. Make it in the build tree
17252 # simply because there is no reason against having it here, and in addition,
17253 # creating and moving files from /tmp can sometimes cause problems.
17254 # Hook for its removal unless debugging.
17255 # Note that there is a small window in which the directory will not be cleaned:
17256 # after its creation but before its name has been assigned to `$tmp'.
17260 trap 'exit_status=$?
17261 : "${ac_tmp:=$tmp}"
17262 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17264 trap 'as_fn_exit 1' 1 2 13 15
17266 # Create a (secure) tmp directory for tmp files.
17269 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17273 tmp=./conf$$-$RANDOM
17274 (umask 077 && mkdir "$tmp")
17275 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17278 # Set up the scripts for CONFIG_FILES section.
17279 # No need to generate them if there are no CONFIG_FILES.
17280 # This happens for instance with `./config.status config.h'.
17281 if test -n "$CONFIG_FILES"; then
17284 ac_cr=`echo X | tr X '\015'`
17285 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17286 # But we know of no other shell where ac_cr would be empty at this
17287 # point, so we can use a bashism as a fallback.
17288 if test "x$ac_cr" = x; then
17289 eval ac_cr=\$\'\\r\'
17291 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17292 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17295 ac_cs_awk_cr=$ac_cr
17298 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17303 echo "cat >conf$$subs.awk <<_ACEOF" &&
17304 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17306 } >conf$$subs.sh ||
17307 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17308 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17310 for ac_last_try in false false false false false :; do
17311 . ./conf$$subs.sh ||
17312 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17314 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17315 if test $ac_delim_n = $ac_delim_num; then
17317 elif $ac_last_try; then
17318 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17320 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17323 rm -f conf$$subs.sh
17325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17326 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17330 s/^/S["/; s/!.*/"]=/
17340 s/\(.\{148\}\)..*/\1/
17342 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17347 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17354 s/\(.\{148\}\)..*/\1/
17356 s/["\\]/\\&/g; s/^/"/; s/$/"/
17360 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17365 ' <conf$$subs.awk | sed '
17370 ' >>$CONFIG_STATUS || ac_write_fail=1
17371 rm -f conf$$subs.awk
17372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17374 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17375 for (key in S) S_is_set[key] = 1
17381 nfields = split(line, field, "@")
17383 len = length(field[1])
17384 for (i = 2; i < nfields; i++) {
17386 keylen = length(key)
17387 if (S_is_set[key]) {
17389 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17390 len += length(value) + length(field[++i])
17401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17402 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17403 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17406 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17407 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17410 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17411 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17412 # trailing colons and then remove the whole line if VPATH becomes empty
17413 # (actually we leave an empty line to preserve line numbers).
17414 if test "x$srcdir" = x.; then
17415 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17434 fi # test -n "$CONFIG_FILES"
17436 # Set up the scripts for CONFIG_HEADERS section.
17437 # No need to generate them if there are no CONFIG_HEADERS.
17438 # This happens for instance with `./config.status Makefile'.
17439 if test -n "$CONFIG_HEADERS"; then
17440 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17444 # Transform confdefs.h into an awk script `defines.awk', embedded as
17445 # here-document in config.status, that substitutes the proper values into
17446 # config.h.in to produce config.h.
17448 # Create a delimiter string that does not exist in confdefs.h, to ease
17449 # handling of long lines.
17451 for ac_last_try in false false :; do
17452 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17453 if test -z "$ac_tt"; then
17455 elif $ac_last_try; then
17456 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17458 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17462 # For the awk script, D is an array of macro values keyed by name,
17463 # likewise P contains macro parameters if any. Preserve backslash
17464 # newline sequences.
17466 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17468 s/.\{148\}/&'"$ac_delim"'/g
17471 s/^[ ]*#[ ]*define[ ][ ]*/ /
17478 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17480 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17484 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17485 D["\1"]=" \3\\\\\\n"\\/p
17487 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17492 s/.\{148\}/&'"$ac_delim"'/g
17497 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17500 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17502 ' <confdefs.h | sed '
17503 s/'"$ac_delim"'/"\\\
17504 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17507 for (key in D) D_is_set[key] = 1
17510 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17512 split(line, arg, " ")
17513 if (arg[1] == "#") {
17517 defundef = substr(arg[1], 2)
17520 split(mac1, mac2, "(") #)
17522 prefix = substr(line, 1, index(line, defundef) - 1)
17523 if (D_is_set[macro]) {
17524 # Preserve the white space surrounding the "#".
17525 print prefix "define", macro P[macro] D[macro]
17528 # Replace #undef with comments. This is necessary, for example,
17529 # in the case of _POSIX_SOURCE, which is predefined and required
17530 # on some systems where configure will not decide to define it.
17531 if (defundef == "undef") {
17532 print "/*", prefix defundef, macro, "*/"
17540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17541 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17542 fi # test -n "$CONFIG_HEADERS"
17545 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
17550 :[FHLC]) ac_mode=$ac_tag; continue;;
17552 case $ac_mode$ac_tag in
17554 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17555 :[FH]-) ac_tag=-:-;;
17556 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17573 -) ac_f="$ac_tmp/stdin";;
17574 *) # Look for the file first in the build tree, then in the source tree
17575 # (if the path is not absolute). The absolute path cannot be DOS-style,
17576 # because $ac_f cannot contain `:'.
17580 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17582 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17584 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17585 as_fn_append ac_file_inputs " '$ac_f'"
17588 # Let's still pretend it is `configure' which instantiates (i.e., don't
17589 # use $as_me), people would be surprised to read:
17590 # /* config.h. Generated by config.status. */
17591 configure_input='Generated from '`
17592 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17594 if test x"$ac_file" != x-; then
17595 configure_input="$ac_file. $configure_input"
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17597 $as_echo "$as_me: creating $ac_file" >&6;}
17599 # Neutralize special characters interpreted by sed in replacement strings.
17600 case $configure_input in #(
17601 *\&* | *\|* | *\\* )
17602 ac_sed_conf_input=`$as_echo "$configure_input" |
17603 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17604 *) ac_sed_conf_input=$configure_input;;
17608 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17609 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17614 ac_dir=`$as_dirname -- "$ac_file" ||
17615 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17616 X"$ac_file" : 'X\(//\)[^/]' \| \
17617 X"$ac_file" : 'X\(//\)$' \| \
17618 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17619 $as_echo X"$ac_file" |
17620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17624 /^X\(\/\/\)[^/].*/{
17637 as_dir="$ac_dir"; as_fn_mkdir_p
17641 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17643 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17644 # A ".." for each directory in $ac_dir_suffix.
17645 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17646 case $ac_top_builddir_sub in
17647 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17648 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17651 ac_abs_top_builddir=$ac_pwd
17652 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17653 # for backward compatibility:
17654 ac_top_builddir=$ac_top_build_prefix
17657 .) # We are building in place.
17659 ac_top_srcdir=$ac_top_builddir_sub
17660 ac_abs_top_srcdir=$ac_pwd ;;
17661 [\\/]* | ?:[\\/]* ) # Absolute name.
17662 ac_srcdir=$srcdir$ac_dir_suffix;
17663 ac_top_srcdir=$srcdir
17664 ac_abs_top_srcdir=$srcdir ;;
17665 *) # Relative name.
17666 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17667 ac_top_srcdir=$ac_top_build_prefix$srcdir
17668 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17670 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17680 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17681 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17686 # If the template does not know about datarootdir, expand it.
17687 # FIXME: This hack should be removed a few years after 2.60.
17688 ac_datarootdir_hack=; ac_datarootdir_seen=
17699 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17700 *datarootdir*) ac_datarootdir_seen=yes;;
17701 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17703 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17706 ac_datarootdir_hack='
17707 s&@datadir@&$datadir&g
17708 s&@docdir@&$docdir&g
17709 s&@infodir@&$infodir&g
17710 s&@localedir@&$localedir&g
17711 s&@mandir@&$mandir&g
17712 s&\\\${datarootdir}&$datarootdir&g' ;;
17716 # Neutralize VPATH when `$srcdir' = `.'.
17717 # Shell code in configure.ac might set extrasub.
17718 # FIXME: do we really want to maintain this feature?
17719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17720 ac_sed_extra="$ac_vpsub
17723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17725 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17726 s|@configure_input@|$ac_sed_conf_input|;t t
17727 s&@top_builddir@&$ac_top_builddir_sub&;t t
17728 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17729 s&@srcdir@&$ac_srcdir&;t t
17730 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17731 s&@top_srcdir@&$ac_top_srcdir&;t t
17732 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17733 s&@builddir@&$ac_builddir&;t t
17734 s&@abs_builddir@&$ac_abs_builddir&;t t
17735 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17736 s&@INSTALL@&$ac_INSTALL&;t t
17737 $ac_datarootdir_hack
17739 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17740 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17742 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17743 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17744 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17745 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17747 which seems to be undefined. Please make sure it is defined" >&5
17748 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17749 which seems to be undefined. Please make sure it is defined" >&2;}
17751 rm -f "$ac_tmp/stdin"
17753 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17754 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17756 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17762 if test x"$ac_file" != x-; then
17764 $as_echo "/* $configure_input */" \
17765 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17766 } >"$ac_tmp/config.h" \
17767 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17768 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17770 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17773 mv "$ac_tmp/config.h" "$ac_file" \
17774 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17777 $as_echo "/* $configure_input */" \
17778 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17779 || as_fn_error $? "could not create -" "$LINENO" 5
17791 ac_clean_files=$ac_clean_files_save
17793 test $ac_write_fail = 0 ||
17794 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17797 # configure is writing to config.log, and then calls config.status.
17798 # config.status does its own redirection, appending to config.log.
17799 # Unfortunately, on DOS this fails, as config.log is still kept open
17800 # by configure, so config.status won't be able to write to it; its
17801 # output is simply discarded. So we exec the FD to /dev/null,
17802 # effectively closing config.log, so it can be properly (re)opened and
17803 # appended to by config.status. When coming back to configure, we
17804 # need to make the FD available again.
17805 if test "$no_create" != yes; then
17807 ac_config_status_args=
17808 test "$silent" = yes &&
17809 ac_config_status_args="$ac_config_status_args --quiet"
17811 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17813 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17814 # would make configure fail if this is the last instruction.
17815 $ac_cs_success || as_fn_exit 1
17817 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17819 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17823 # Print summary of options
17825 # Someone please show me a better way :)
17826 A=`eval echo ${prefix}` ; A=`eval echo ${A}`
17827 B=`eval echo ${bindir}` ; B=`eval echo ${B}`
17828 C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
17829 D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
17830 E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
17831 F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
17832 G=`eval echo ${piddir}` ; G=`eval echo ${G}`
17833 H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
17834 I=`eval echo ${user_path}` ; I=`eval echo ${I}`
17835 J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
17838 echo "OpenSSH has been configured with the following options:"
17839 echo " User binaries: $B"
17840 echo " System binaries: $C"
17841 echo " Configuration files: $D"
17842 echo " Askpass program: $E"
17843 echo " Manual pages: $F"
17844 echo " PID file: $G"
17845 echo " Privilege separation chroot path: $H"
17846 if test "x$external_path_file" = "x/etc/login.conf" ; then
17847 echo " At runtime, sshd will use the path defined in $external_path_file"
17848 echo " Make sure the path to scp is present, otherwise scp will not work"
17850 echo " sshd default user PATH: $I"
17851 if test ! -z "$external_path_file"; then
17852 echo " (If PATH is set in $external_path_file it will be used instead. If"
17853 echo " used, ensure the path to scp is present, otherwise scp will not work.)"
17856 if test ! -z "$superuser_path" ; then
17857 echo " sshd superuser user PATH: $J"
17859 echo " Manpage format: $MANTYPE"
17860 echo " PAM support: $PAM_MSG"
17861 echo " OSF SIA support: $SIA_MSG"
17862 echo " KerberosV support: $KRB5_MSG"
17863 echo " SELinux support: $SELINUX_MSG"
17864 echo " Smartcard support: $SCARD_MSG"
17865 echo " S/KEY support: $SKEY_MSG"
17866 echo " TCP Wrappers support: $TCPW_MSG"
17867 echo " MD5 password support: $MD5_MSG"
17868 echo " libedit support: $LIBEDIT_MSG"
17869 echo " Solaris process contract support: $SPC_MSG"
17870 echo " Solaris project support: $SP_MSG"
17871 echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
17872 echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
17873 echo " BSD Auth support: $BSD_AUTH_MSG"
17874 echo " Random number source: $RAND_MSG"
17875 if test ! -z "$USE_RAND_HELPER" ; then
17876 echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
17881 echo " Host: ${host}"
17882 echo " Compiler: ${CC}"
17883 echo " Compiler flags: ${CFLAGS}"
17884 echo "Preprocessor flags: ${CPPFLAGS}"
17885 echo " Linker flags: ${LDFLAGS}"
17886 echo " Libraries: ${LIBS}"
17887 if test ! -z "${SSHDLIBS}"; then
17888 echo " +for sshd: ${SSHDLIBS}"
17890 if test ! -z "${SSHLIBS}"; then
17891 echo " +for ssh: ${SSHLIBS}"
17896 if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
17897 echo "SVR4 style packages are supported with \"make package\""
17901 if test "x$PAM_MSG" = "xyes" ; then
17902 echo "PAM is enabled. You may need to install a PAM control file "
17903 echo "for sshd, otherwise password authentication may fail. "
17904 echo "Example PAM control files can be found in the contrib/ "
17905 echo "subdirectory"
17909 if test ! -z "$RAND_HELPER_CMDHASH" ; then
17910 echo "WARNING: you are using the builtin random number collection "
17911 echo "service. Please read WARNING.RNG and request that your OS "
17912 echo "vendor includes kernel-based random number collection in "
17913 echo "future versions of your OS."
17917 if test ! -z "$NO_PEERCHECK" ; then
17918 echo "WARNING: the operating system that you are using does not"
17919 echo "appear to support getpeereid(), getpeerucred() or the"
17920 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
17921 echo "enforce security checks to prevent unauthorised connections to"
17922 echo "ssh-agent. Their absence increases the risk that a malicious"
17923 echo "user can connect to your agent."
17927 if test "$AUDIT_MODULE" = "bsm" ; then
17928 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
17929 echo "See the Solaris section in README.platform for details."