2 # From configure.ac Revision: 1.583 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for OpenSSH Portable.
6 # Report bugs to <openssh-unix-dev@mindrot.org>.
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 as_echo_n='sh -c $as_echo_n_body as_echo'
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
92 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150 *v*x* | *x*v* ) as_opts=-vx ;;
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
172 case \`(set -o) 2>/dev/null\` in #(
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
194 exitcode=1; echo positional parameters were not saved.
196 test x\$exitcode = x0 || exit 1
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test \$(( 1 + 1 )) = 2 || exit 1"
203 if (eval "$as_required") 2>/dev/null; then :
208 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
213 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
216 test -z "$as_dir" && as_dir=.
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir/$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 CONFIG_SHELL=$as_shell as_have_required=yes
226 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
235 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
241 if test "x$CONFIG_SHELL" != x; then :
243 # We cannot yet assume a decent shell, so we have to provide a
244 # neutralization value for shells without unset; and this also
245 # works around shells that cannot unset nonexistent variables.
246 # Preserve -v and -x to the replacement shell.
249 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
251 *v*x* | *x*v* ) as_opts=-vx ;;
256 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257 # Admittedly, this is quite paranoid, since all the known shells bail
258 # out after a failed `exec'.
259 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
263 if test x$as_have_required = xno; then :
264 $as_echo "$0: This script requires a shell more modern than all"
265 $as_echo "$0: the shells that I found on your system."
266 if test x${ZSH_VERSION+set} = xset ; then
267 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
270 $as_echo "$0: Please tell bug-autoconf@gnu.org and
271 $0: openssh-unix-dev@mindrot.org about your system,
272 $0: including any error possibly output before this
273 $0: message. Then install a modern shell, or manually run
274 $0: the script under such a shell if you do have one."
280 SHELL=${CONFIG_SHELL-/bin/sh}
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
291 # Portably unset VAR.
294 { eval $1=; unset $1;}
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 # Create "$as_dir" as a directory, including parents if necessary.
323 -*) as_dir=./$as_dir;;
325 test -d "$as_dir" || eval $as_mkdir_p || {
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
356 test -d "$as_dir" && break
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 as_val=`expr "$@" || test $? -eq 1`
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
414 as_status=$1; test $as_status -eq 0 && as_status=1
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
500 # Exit status is that of the last command.
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
522 mkdir conf$$.dir 2>/dev/null
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
533 elif ln conf$$.file conf$$ 2>/dev/null; then
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
547 test -d ./-p && rmdir ./-p
552 as_executable_p=as_fn_executable_p
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
561 test -n "$DJDIR" || exec 7<&0 </dev/null
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
572 ac_default_prefix=/usr/local
574 ac_config_libobj_dir=.
581 # Identity of this package.
582 PACKAGE_NAME='OpenSSH'
583 PACKAGE_TARNAME='openssh'
584 PACKAGE_VERSION='Portable'
585 PACKAGE_STRING='OpenSSH Portable'
586 PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
589 ac_unique_file="ssh.c"
590 # Factoring default headers for most tests.
591 ac_includes_default="\
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
603 # ifdef HAVE_STDLIB_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
626 ac_subst_vars='LTLIBOBJS
628 UNSUPPORTED_ALGORITHMS
651 LOGIN_PROGRAM_FALLBACK
653 MAKE_PACKAGE_SUPPORTED
719 program_transform_name
732 enable_option_checking
742 with_solaris_contracts
743 with_solaris_projects
746 with_zlib_version_check
754 with_openssl_header_check
771 enable_etc_default_login
787 ac_precious_vars='build_alias
798 # Initialize some variables set by options.
800 ac_init_version=false
801 ac_unrecognized_opts=
803 # The variables have the same names as the options, with
804 # dashes changed to underlines.
812 program_transform_name=s,x,x,
820 # Installation directory options.
821 # These are left unexpanded so users can "make install exec_prefix=/foo"
822 # and all the variables that are supposed to be based on exec_prefix
823 # by default will actually change.
824 # Use braces instead of parens because sh, perl, etc. also accept them.
825 # (The list follows the same order as the GNU Coding Standards.)
826 bindir='${exec_prefix}/bin'
827 sbindir='${exec_prefix}/sbin'
828 libexecdir='${exec_prefix}/libexec'
829 datarootdir='${prefix}/share'
830 datadir='${datarootdir}'
831 sysconfdir='${prefix}/etc'
832 sharedstatedir='${prefix}/com'
833 localstatedir='${prefix}/var'
834 includedir='${prefix}/include'
835 oldincludedir='/usr/include'
836 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
837 infodir='${datarootdir}/info'
842 libdir='${exec_prefix}/lib'
843 localedir='${datarootdir}/locale'
844 mandir='${datarootdir}/man'
850 # If the previous option needs an argument, assign it.
851 if test -n "$ac_prev"; then
852 eval $ac_prev=\$ac_option
858 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863 # Accept the important Cygnus configure options, so we can diagnose typos.
865 case $ac_dashdash$ac_option in
869 -bindir | --bindir | --bindi | --bind | --bin | --bi)
871 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874 -build | --build | --buil | --bui | --bu)
875 ac_prev=build_alias ;;
876 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877 build_alias=$ac_optarg ;;
879 -cache-file | --cache-file | --cache-fil | --cache-fi \
880 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881 ac_prev=cache_file ;;
882 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884 cache_file=$ac_optarg ;;
887 cache_file=config.cache ;;
889 -datadir | --datadir | --datadi | --datad)
891 -datadir=* | --datadir=* | --datadi=* | --datad=*)
892 datadir=$ac_optarg ;;
894 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895 | --dataroo | --dataro | --datar)
896 ac_prev=datarootdir ;;
897 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899 datarootdir=$ac_optarg ;;
901 -disable-* | --disable-*)
902 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905 as_fn_error $? "invalid feature name: $ac_useropt"
906 ac_useropt_orig=$ac_useropt
907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
915 eval enable_$ac_useropt=no ;;
917 -docdir | --docdir | --docdi | --doc | --do)
919 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
924 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927 -enable-* | --enable-*)
928 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931 as_fn_error $? "invalid feature name: $ac_useropt"
932 ac_useropt_orig=$ac_useropt
933 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939 ac_unrecognized_sep=', ';;
941 eval enable_$ac_useropt=\$ac_optarg ;;
943 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945 | --exec | --exe | --ex)
946 ac_prev=exec_prefix ;;
947 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949 | --exec=* | --exe=* | --ex=*)
950 exec_prefix=$ac_optarg ;;
952 -gas | --gas | --ga | --g)
953 # Obsolete; use --with-gas.
956 -help | --help | --hel | --he | -h)
958 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959 ac_init_help=recursive ;;
960 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961 ac_init_help=short ;;
963 -host | --host | --hos | --ho)
964 ac_prev=host_alias ;;
965 -host=* | --host=* | --hos=* | --ho=*)
966 host_alias=$ac_optarg ;;
968 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
970 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
972 htmldir=$ac_optarg ;;
974 -includedir | --includedir | --includedi | --included | --include \
975 | --includ | --inclu | --incl | --inc)
976 ac_prev=includedir ;;
977 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978 | --includ=* | --inclu=* | --incl=* | --inc=*)
979 includedir=$ac_optarg ;;
981 -infodir | --infodir | --infodi | --infod | --info | --inf)
983 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984 infodir=$ac_optarg ;;
986 -libdir | --libdir | --libdi | --libd)
988 -libdir=* | --libdir=* | --libdi=* | --libd=*)
991 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992 | --libexe | --libex | --libe)
993 ac_prev=libexecdir ;;
994 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995 | --libexe=* | --libex=* | --libe=*)
996 libexecdir=$ac_optarg ;;
998 -localedir | --localedir | --localedi | --localed | --locale)
1000 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001 localedir=$ac_optarg ;;
1003 -localstatedir | --localstatedir | --localstatedi | --localstated \
1004 | --localstate | --localstat | --localsta | --localst | --locals)
1005 ac_prev=localstatedir ;;
1006 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008 localstatedir=$ac_optarg ;;
1010 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1012 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013 mandir=$ac_optarg ;;
1015 -nfp | --nfp | --nf)
1016 # Obsolete; use --without-fp.
1019 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020 | --no-cr | --no-c | -n)
1023 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029 | --oldin | --oldi | --old | --ol | --o)
1030 ac_prev=oldincludedir ;;
1031 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034 oldincludedir=$ac_optarg ;;
1036 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1038 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039 prefix=$ac_optarg ;;
1041 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042 | --program-pre | --program-pr | --program-p)
1043 ac_prev=program_prefix ;;
1044 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046 program_prefix=$ac_optarg ;;
1048 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049 | --program-suf | --program-su | --program-s)
1050 ac_prev=program_suffix ;;
1051 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
1063 -program-transform-name=* | --program-transform-name=* \
1064 | --program-transform-nam=* | --program-transform-na=* \
1065 | --program-transform-n=* | --program-transform-=* \
1066 | --program-transform=* | --program-transfor=* \
1067 | --program-transfo=* | --program-transf=* \
1068 | --program-trans=* | --program-tran=* \
1069 | --progr-tra=* | --program-tr=* | --program-t=*)
1070 program_transform_name=$ac_optarg ;;
1072 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1074 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075 pdfdir=$ac_optarg ;;
1077 -psdir | --psdir | --psdi | --psd | --ps)
1079 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083 | -silent | --silent | --silen | --sile | --sil)
1086 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1088 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1090 sbindir=$ac_optarg ;;
1092 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1093 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1094 | --sharedst | --shareds | --shared | --share | --shar \
1096 ac_prev=sharedstatedir ;;
1097 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1098 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1099 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1101 sharedstatedir=$ac_optarg ;;
1103 -site | --site | --sit)
1105 -site=* | --site=* | --sit=*)
1108 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1110 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1111 srcdir=$ac_optarg ;;
1113 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1114 | --syscon | --sysco | --sysc | --sys | --sy)
1115 ac_prev=sysconfdir ;;
1116 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1117 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1118 sysconfdir=$ac_optarg ;;
1120 -target | --target | --targe | --targ | --tar | --ta | --t)
1121 ac_prev=target_alias ;;
1122 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1123 target_alias=$ac_optarg ;;
1125 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128 -version | --version | --versio | --versi | --vers | -V)
1129 ac_init_version=: ;;
1132 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error $? "invalid package name: $ac_useropt"
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1145 eval with_$ac_useropt=\$ac_optarg ;;
1147 -without-* | --without-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 as_fn_error $? "invalid package name: $ac_useropt"
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1161 eval with_$ac_useropt=no ;;
1164 # Obsolete; use --with-x.
1167 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168 | --x-incl | --x-inc | --x-in | --x-i)
1169 ac_prev=x_includes ;;
1170 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172 x_includes=$ac_optarg ;;
1174 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176 ac_prev=x_libraries ;;
1177 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179 x_libraries=$ac_optarg ;;
1181 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1182 Try \`$0 --help' for more information"
1186 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1187 # Reject names that are not valid shell variable names.
1188 case $ac_envvar in #(
1189 '' | [0-9]* | *[!_$as_cr_alnum]* )
1190 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1192 eval $ac_envvar=\$ac_optarg
1193 export $ac_envvar ;;
1196 # FIXME: should be removed in autoconf 3.0.
1197 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1198 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1200 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1206 if test -n "$ac_prev"; then
1207 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1208 as_fn_error $? "missing argument to $ac_option"
1211 if test -n "$ac_unrecognized_opts"; then
1212 case $enable_option_checking in
1214 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1215 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1219 # Check all directory arguments for consistency.
1220 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1221 datadir sysconfdir sharedstatedir localstatedir includedir \
1222 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1223 libdir localedir mandir
1225 eval ac_val=\$$ac_var
1226 # Remove trailing slashes.
1229 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1230 eval $ac_var=\$ac_val;;
1232 # Be sure to have absolute directory names.
1234 [\\/$]* | ?:[\\/]* ) continue;;
1235 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1237 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1240 # There might be people who depend on the old broken behavior: `$host'
1241 # used to hold the argument of --host etc.
1242 # FIXME: To remove some day.
1245 target=$target_alias
1247 # FIXME: To remove some day.
1248 if test "x$host_alias" != x; then
1249 if test "x$build_alias" = x; then
1250 cross_compiling=maybe
1251 elif test "x$build_alias" != "x$host_alias"; then
1257 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1259 test "$silent" = yes && exec 6>/dev/null
1262 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1263 ac_ls_di=`ls -di .` &&
1264 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1265 as_fn_error $? "working directory cannot be determined"
1266 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1267 as_fn_error $? "pwd does not report name of working directory"
1270 # Find the source files, if location was not specified.
1271 if test -z "$srcdir"; then
1272 ac_srcdir_defaulted=yes
1273 # Try the directory containing this script, then the parent directory.
1274 ac_confdir=`$as_dirname -- "$as_myself" ||
1275 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1276 X"$as_myself" : 'X\(//\)[^/]' \| \
1277 X"$as_myself" : 'X\(//\)$' \| \
1278 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1279 $as_echo X"$as_myself" |
1280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1302 ac_srcdir_defaulted=no
1304 if test ! -r "$srcdir/$ac_unique_file"; then
1305 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1306 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1308 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1310 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1312 # When building in place, set srcdir=.
1313 if test "$ac_abs_confdir" = "$ac_pwd"; then
1316 # Remove unnecessary trailing slashes from srcdir.
1317 # Double slashes in file names in object file debugging info
1318 # mess up M-x gdb in Emacs.
1320 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1322 for ac_var in $ac_precious_vars; do
1323 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_env_${ac_var}_value=\$${ac_var}
1325 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1330 # Report the --help message.
1332 if test "$ac_init_help" = "long"; then
1333 # Omit some internal or obsolete options to make the list less imposing.
1334 # This message is too long to be a string in the A/UX 3.1 sh.
1336 \`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1338 Usage: $0 [OPTION]... [VAR=VALUE]...
1340 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341 VAR=VALUE. See below for descriptions of some of the useful variables.
1343 Defaults for the options are specified in brackets.
1346 -h, --help display this help and exit
1347 --help=short display options specific to this package
1348 --help=recursive display the short help of all the included packages
1349 -V, --version display version information and exit
1350 -q, --quiet, --silent do not print \`checking ...' messages
1351 --cache-file=FILE cache test results in FILE [disabled]
1352 -C, --config-cache alias for \`--cache-file=config.cache'
1353 -n, --no-create do not create output files
1354 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1356 Installation directories:
1357 --prefix=PREFIX install architecture-independent files in PREFIX
1358 [$ac_default_prefix]
1359 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1362 By default, \`make install' will install all the files in
1363 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1364 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365 for instance \`--prefix=\$HOME'.
1367 For better control, use the options below.
1369 Fine tuning of the installation directories:
1370 --bindir=DIR user executables [EPREFIX/bin]
1371 --sbindir=DIR system admin executables [EPREFIX/sbin]
1372 --libexecdir=DIR program executables [EPREFIX/libexec]
1373 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1374 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1375 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1376 --libdir=DIR object code libraries [EPREFIX/lib]
1377 --includedir=DIR C header files [PREFIX/include]
1378 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1379 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1380 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1381 --infodir=DIR info documentation [DATAROOTDIR/info]
1382 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1383 --mandir=DIR man documentation [DATAROOTDIR/man]
1384 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1385 --htmldir=DIR html documentation [DOCDIR]
1386 --dvidir=DIR dvi documentation [DOCDIR]
1387 --pdfdir=DIR pdf documentation [DOCDIR]
1388 --psdir=DIR ps documentation [DOCDIR]
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1399 if test -n "$ac_init_help"; then
1400 case $ac_init_help in
1401 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1406 --disable-option-checking ignore unrecognized --enable/--with options
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1409 --disable-largefile omit support for large files
1410 --disable-strip Disable calling strip(1) on install
1411 --disable-etc-default-login Disable using PATH from /etc/default/login no
1412 --disable-lastlog disable use of lastlog even if detected no
1413 --disable-utmp disable use of utmp even if detected no
1414 --disable-utmpx disable use of utmpx even if detected no
1415 --disable-wtmp disable use of wtmp even if detected no
1416 --disable-wtmpx disable use of wtmpx even if detected no
1417 --disable-libutil disable use of libutil (login() etc.) no
1418 --disable-pututline disable use of pututline() etc. (uwtmp) no
1419 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1422 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1424 --without-stackprotect Don't use compiler's stack protection
1425 --without-hardening Don't use toolchain hardening flags
1426 --without-rpath Disable auto-added -R linker paths
1427 --with-cflags Specify additional flags to pass to compiler
1428 --with-cppflags Specify additional flags to pass to preprocessor
1429 --with-ldflags Specify additional flags to pass to linker
1430 --with-libs Specify additional libraries to link with
1431 --with-Werror Build main code with -Werror
1432 --with-solaris-contracts Enable Solaris process contracts (experimental)
1433 --with-solaris-projects Enable Solaris projects (experimental)
1434 --with-osfsia Enable Digital Unix SIA
1435 --with-zlib=PATH Use zlib in PATH
1436 --without-zlib-version-check Disable zlib version check
1437 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1438 --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
1439 --with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH)
1440 --with-libedit[=PATH] Enable libedit support for sftp
1441 --with-audit=module Enable audit support (modules=debug,bsm,linux)
1442 --with-pie Build Position Independent Executables if possible
1443 --with-ssl-dir=PATH Specify path to OpenSSL installation
1444 --without-openssl-header-check Disable OpenSSL version consistency check
1445 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1446 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1447 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1448 --with-pam Enable PAM support
1449 --with-privsep-user=user Specify non-privileged user for privilege separation
1450 --with-sandbox=style Specify privilege separation sandbox (no, darwin, rlimit, systrace, seccomp_filter, capsicum)
1451 --with-selinux Enable SELinux support
1452 --with-kerberos5=PATH Enable Kerberos 5 support
1453 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1454 --with-xauth=PATH Specify path to xauth program
1455 --with-maildir=/path/to/mail Specify your system mail directory
1456 --with-mantype=man|cat|doc Set man page type
1457 --with-md5-passwords Enable use of MD5 passwords
1458 --without-shadow Disable shadow password support
1459 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
1460 --with-default-path= Specify default \$PATH environment for server
1461 --with-superuser-path= Specify different path for super-user
1462 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1463 --with-bsd-auth Enable BSD auth support
1464 --with-pid-dir=PATH Specify location of ssh.pid file
1465 --with-lastlog=FILE|DIR specify lastlog location common locations
1467 Some influential environment variables:
1468 CC C compiler command
1469 CFLAGS C compiler flags
1470 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1471 nonstandard directory <lib dir>
1472 LIBS libraries to pass to the linker, e.g. -l<library>
1473 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1474 you have headers in a nonstandard directory <include dir>
1477 Use these variables to override the choices made by `configure' or to help
1478 it to find libraries and programs with nonstandard names/locations.
1480 Report bugs to <openssh-unix-dev@mindrot.org>.
1485 if test "$ac_init_help" = "recursive"; then
1486 # If there are subdirs, report their specific --help.
1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488 test -d "$ac_dir" ||
1489 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1494 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1497 # A ".." for each directory in $ac_dir_suffix.
1498 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499 case $ac_top_builddir_sub in
1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1504 ac_abs_top_builddir=$ac_pwd
1505 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506 # for backward compatibility:
1507 ac_top_builddir=$ac_top_build_prefix
1510 .) # We are building in place.
1512 ac_top_srcdir=$ac_top_builddir_sub
1513 ac_abs_top_srcdir=$ac_pwd ;;
1514 [\\/]* | ?:[\\/]* ) # Absolute name.
1515 ac_srcdir=$srcdir$ac_dir_suffix;
1516 ac_top_srcdir=$srcdir
1517 ac_abs_top_srcdir=$srcdir ;;
1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520 ac_top_srcdir=$ac_top_build_prefix$srcdir
1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1523 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1525 cd "$ac_dir" || { ac_status=$?; continue; }
1526 # Check for guested configure.
1527 if test -f "$ac_srcdir/configure.gnu"; then
1529 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530 elif test -f "$ac_srcdir/configure"; then
1532 $SHELL "$ac_srcdir/configure" --help=recursive
1534 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536 cd "$ac_pwd" || { ac_status=$?; break; }
1540 test -n "$ac_init_help" && exit $ac_status
1541 if $ac_init_version; then
1543 OpenSSH configure Portable
1544 generated by GNU Autoconf 2.69
1546 Copyright (C) 2012 Free Software Foundation, Inc.
1547 This configure script is free software; the Free Software Foundation
1548 gives unlimited permission to copy, distribute and modify it.
1553 ## ------------------------ ##
1554 ## Autoconf initialization. ##
1555 ## ------------------------ ##
1557 # ac_fn_c_try_compile LINENO
1558 # --------------------------
1559 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1560 ac_fn_c_try_compile ()
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 rm -f conftest.$ac_objext
1564 if { { ac_try="$ac_compile"
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 $as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_compile") 2>conftest.err
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && {
1580 test -z "$ac_c_werror_flag" ||
1581 test ! -s conftest.err
1582 } && test -s conftest.$ac_objext; then :
1585 $as_echo "$as_me: failed program was:" >&5
1586 sed 's/^/| /' conftest.$ac_ext >&5
1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591 as_fn_set_status $ac_retval
1593 } # ac_fn_c_try_compile
1595 # ac_fn_c_try_run LINENO
1596 # ----------------------
1597 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1598 # that executables *can* be run.
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 if { { ac_try="$ac_link"
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_link") 2>&5
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1613 { { case "(($ac_try" in
1614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615 *) ac_try_echo=$ac_try;;
1617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618 $as_echo "$ac_try_echo"; } >&5
1619 (eval "$ac_try") 2>&5
1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622 test $ac_status = 0; }; }; then :
1625 $as_echo "$as_me: program exited with status $ac_status" >&5
1626 $as_echo "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1629 ac_retval=$ac_status
1631 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 as_fn_set_status $ac_retval
1637 # ac_fn_c_try_cpp LINENO
1638 # ----------------------
1639 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 if { { ac_try="$ac_cpp conftest.$ac_ext"
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1652 if test -s conftest.err; then
1653 grep -v '^ *+' conftest.err >conftest.er1
1654 cat conftest.er1 >&5
1655 mv -f conftest.er1 conftest.err
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } > conftest.i && {
1659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1660 test ! -s conftest.err
1664 $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670 as_fn_set_status $ac_retval
1674 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1675 # -------------------------------------------------------
1676 # Tests whether HEADER exists and can be compiled using the include files in
1677 # INCLUDES, setting the cache variable VAR accordingly.
1678 ac_fn_c_check_header_compile ()
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1682 $as_echo_n "checking for $2... " >&6; }
1683 if eval \${$3+:} false; then :
1684 $as_echo_n "(cached) " >&6
1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h. */
1691 if ac_fn_c_try_compile "$LINENO"; then :
1696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1700 $as_echo "$ac_res" >&6; }
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 } # ac_fn_c_check_header_compile
1705 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1706 # ---------------------------------------------
1707 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1709 ac_fn_c_check_decl ()
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 as_decl_name=`echo $2|sed 's/ *(.*//'`
1713 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1715 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1716 if eval \${$3+:} false; then :
1717 $as_echo_n "(cached) " >&6
1719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720 /* end confdefs.h. */
1725 #ifndef $as_decl_name
1727 (void) $as_decl_use;
1729 (void) $as_decl_name;
1737 if ac_fn_c_try_compile "$LINENO"; then :
1742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746 $as_echo "$ac_res" >&6; }
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749 } # ac_fn_c_check_decl
1751 # ac_fn_c_try_link LINENO
1752 # -----------------------
1753 # Try to link conftest.$ac_ext, and return whether this succeeded.
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 rm -f conftest.$ac_objext conftest$ac_exeext
1758 if { { ac_try="$ac_link"
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_link") 2>conftest.err
1767 if test -s conftest.err; then
1768 grep -v '^ *+' conftest.err >conftest.er1
1769 cat conftest.er1 >&5
1770 mv -f conftest.er1 conftest.err
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } && {
1774 test -z "$ac_c_werror_flag" ||
1775 test ! -s conftest.err
1776 } && test -s conftest$ac_exeext && {
1777 test "$cross_compiling" = yes ||
1778 test -x conftest$ac_exeext
1782 $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1787 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1788 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1789 # interfere with the next link command; also delete a directory that is
1790 # left behind by Apple's compiler. We do this before executing the actions.
1791 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 as_fn_set_status $ac_retval
1795 } # ac_fn_c_try_link
1797 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1798 # -------------------------------------------------------
1799 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1800 # the include files in INCLUDES and setting the cache variable VAR
1802 ac_fn_c_check_header_mongrel ()
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 if eval \${$3+:} false; then :
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807 $as_echo_n "checking for $2... " >&6; }
1808 if eval \${$3+:} false; then :
1809 $as_echo_n "(cached) " >&6
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813 $as_echo "$ac_res" >&6; }
1815 # Is the header compilable?
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1817 $as_echo_n "checking $2 usability... " >&6; }
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h. */
1823 if ac_fn_c_try_compile "$LINENO"; then :
1824 ac_header_compiler=yes
1826 ac_header_compiler=no
1828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1830 $as_echo "$ac_header_compiler" >&6; }
1832 # Is the header present?
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1834 $as_echo_n "checking $2 presence... " >&6; }
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1839 if ac_fn_c_try_cpp "$LINENO"; then :
1840 ac_header_preproc=yes
1842 ac_header_preproc=no
1844 rm -f conftest.err conftest.i conftest.$ac_ext
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1846 $as_echo "$ac_header_preproc" >&6; }
1848 # So? What about this header?
1849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1852 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1854 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1858 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1860 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1862 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1864 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1866 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1867 ( $as_echo "## ------------------------------------------- ##
1868 ## Report this to openssh-unix-dev@mindrot.org ##
1869 ## ------------------------------------------- ##"
1870 ) | sed "s/^/$as_me: WARNING: /" >&2
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874 $as_echo_n "checking for $2... " >&6; }
1875 if eval \${$3+:} false; then :
1876 $as_echo_n "(cached) " >&6
1878 eval "$3=\$ac_header_compiler"
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886 } # ac_fn_c_check_header_mongrel
1888 # ac_fn_c_check_func LINENO FUNC VAR
1889 # ----------------------------------
1890 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1891 ac_fn_c_check_func ()
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895 $as_echo_n "checking for $2... " >&6; }
1896 if eval \${$3+:} false; then :
1897 $as_echo_n "(cached) " >&6
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h. */
1901 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1903 #define $2 innocuous_$2
1905 /* System header to define __stub macros and hopefully few prototypes,
1906 which can conflict with char $2 (); below.
1907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1908 <limits.h> exists even on freestanding compilers. */
1911 # include <limits.h>
1913 # include <assert.h>
1918 /* Override any GCC internal prototype to avoid an error.
1919 Use char because int might match the return type of a GCC
1920 builtin and then its argument prototype would still apply. */
1925 /* The GNU C library defines this for functions which it implements
1926 to always fail with ENOSYS. Some functions are actually named
1927 something starting with __ and the normal name is an alias. */
1928 #if defined __stub_$2 || defined __stub___$2
1940 if ac_fn_c_try_link "$LINENO"; then :
1945 rm -f core conftest.err conftest.$ac_objext \
1946 conftest$ac_exeext conftest.$ac_ext
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953 } # ac_fn_c_check_func
1955 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1956 # -------------------------------------------
1957 # Tests whether TYPE exists after having included INCLUDES, setting cache
1958 # variable VAR accordingly.
1959 ac_fn_c_check_type ()
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963 $as_echo_n "checking for $2... " >&6; }
1964 if eval \${$3+:} false; then :
1965 $as_echo_n "(cached) " >&6
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1980 if ac_fn_c_try_compile "$LINENO"; then :
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1993 if ac_fn_c_try_compile "$LINENO"; then :
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2004 $as_echo "$ac_res" >&6; }
2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007 } # ac_fn_c_check_type
2009 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2010 # --------------------------------------------
2011 # Tries to find the compile-time value of EXPR in a program that includes
2012 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2014 ac_fn_c_compute_int ()
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 if test "$cross_compiling" = yes; then
2018 # Depending upon the size, compute the lo and hi bounds.
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2025 static int test_array [1 - 2 * !(($2) >= 0)];
2027 return test_array [0];
2033 if ac_fn_c_try_compile "$LINENO"; then :
2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h. */
2042 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2044 return test_array [0];
2050 if ac_fn_c_try_compile "$LINENO"; then :
2051 ac_hi=$ac_mid; break
2053 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2054 if test $ac_lo -le $ac_mid; then
2058 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h. */
2069 static int test_array [1 - 2 * !(($2) < 0)];
2071 return test_array [0];
2077 if ac_fn_c_try_compile "$LINENO"; then :
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2086 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2088 return test_array [0];
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095 ac_lo=$ac_mid; break
2097 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2098 if test $ac_mid -le $ac_hi; then
2102 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112 # Binary search between lo and hi bounds.
2113 while test "x$ac_lo" != "x$ac_hi"; do
2114 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2121 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2123 return test_array [0];
2129 if ac_fn_c_try_compile "$LINENO"; then :
2132 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2137 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2144 static long int longval () { return $2; }
2145 static unsigned long int ulongval () { return $2; }
2152 FILE *f = fopen ("conftest.val", "w");
2157 long int i = longval ();
2160 fprintf (f, "%ld", i);
2164 unsigned long int i = ulongval ();
2167 fprintf (f, "%lu", i);
2169 /* Do not output a trailing newline, as this causes \r\n confusion
2170 on some platforms. */
2171 return ferror (f) || fclose (f) != 0;
2177 if ac_fn_c_try_run "$LINENO"; then :
2178 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2183 conftest.$ac_objext conftest.beam conftest.$ac_ext
2187 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2188 as_fn_set_status $ac_retval
2190 } # ac_fn_c_compute_int
2192 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2193 # ----------------------------------------------------
2194 # Tries to find if the field MEMBER exists in type AGGR, after including
2195 # INCLUDES, setting cache variable VAR accordingly.
2196 ac_fn_c_check_member ()
2198 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2200 $as_echo_n "checking for $2.$3... " >&6; }
2201 if eval \${$4+:} false; then :
2202 $as_echo_n "(cached) " >&6
2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h. */
2217 if ac_fn_c_try_compile "$LINENO"; then :
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h. */
2227 if (sizeof ac_aggr.$3)
2233 if ac_fn_c_try_compile "$LINENO"; then :
2238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2244 $as_echo "$ac_res" >&6; }
2245 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2247 } # ac_fn_c_check_member
2248 cat >config.log <<_ACEOF
2249 This file contains any messages produced by compilers while
2250 running configure, to aid debugging if configure makes a mistake.
2252 It was created by OpenSSH $as_me Portable, which was
2253 generated by GNU Autoconf 2.69. Invocation command line was
2265 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2266 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2267 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2268 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2269 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2271 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2272 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2274 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2275 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2276 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2277 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2278 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2279 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2280 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 test -z "$as_dir" && as_dir=.
2289 $as_echo "PATH: $as_dir"
2305 # Keep a trace of the command line.
2306 # Strip out --no-create and --no-recursion so they do not pile up.
2307 # Strip out --silent because we don't want to record it for future runs.
2308 # Also quote any args containing shell meta-characters.
2309 # Make two passes to allow for proper duplicate-argument suppression.
2313 ac_must_keep_next=false
2319 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2321 | -silent | --silent | --silen | --sile | --sil)
2324 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2327 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2329 as_fn_append ac_configure_args1 " '$ac_arg'"
2330 if test $ac_must_keep_next = true; then
2331 ac_must_keep_next=false # Got value, back to normal.
2334 *=* | --config-cache | -C | -disable-* | --disable-* \
2335 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2336 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2337 | -with-* | --with-* | -without-* | --without-* | --x)
2338 case "$ac_configure_args0 " in
2339 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2342 -* ) ac_must_keep_next=true ;;
2345 as_fn_append ac_configure_args " '$ac_arg'"
2350 { ac_configure_args0=; unset ac_configure_args0;}
2351 { ac_configure_args1=; unset ac_configure_args1;}
2353 # When interrupted or exit'd, cleanup temporary files, and complete
2354 # config.log. We remove comments because anyway the quotes in there
2355 # would cause problems or look ugly.
2356 # WARNING: Use '\'' to represent an apostrophe within the trap.
2357 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2358 trap 'exit_status=$?
2359 # Save into config.log some information that might help in debugging.
2363 $as_echo "## ---------------- ##
2364 ## Cache variables. ##
2365 ## ---------------- ##"
2367 # The following way of writing the cache mishandles newlines in values,
2369 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2370 eval ac_val=\$$ac_var
2374 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2375 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2378 _ | IFS | as_nl) ;; #(
2379 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2380 *) { eval $ac_var=; unset $ac_var;} ;;
2385 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2386 *${as_nl}ac_space=\ *)
2388 "s/'\''/'\''\\\\'\'''\''/g;
2389 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2392 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2399 $as_echo "## ----------------- ##
2400 ## Output variables. ##
2401 ## ----------------- ##"
2403 for ac_var in $ac_subst_vars
2405 eval ac_val=\$$ac_var
2407 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2409 $as_echo "$ac_var='\''$ac_val'\''"
2413 if test -n "$ac_subst_files"; then
2414 $as_echo "## ------------------- ##
2415 ## File substitutions. ##
2416 ## ------------------- ##"
2418 for ac_var in $ac_subst_files
2420 eval ac_val=\$$ac_var
2422 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2424 $as_echo "$ac_var='\''$ac_val'\''"
2429 if test -s confdefs.h; then
2430 $as_echo "## ----------- ##
2437 test "$ac_signal" != 0 &&
2438 $as_echo "$as_me: caught signal $ac_signal"
2439 $as_echo "$as_me: exit $exit_status"
2441 rm -f core *.core core.conftest.* &&
2442 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2445 for ac_signal in 1 2 13 15; do
2446 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2450 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2451 rm -f -r conftest* confdefs.h
2453 $as_echo "/* confdefs.h */" > confdefs.h
2455 # Predefined preprocessor variables.
2457 cat >>confdefs.h <<_ACEOF
2458 #define PACKAGE_NAME "$PACKAGE_NAME"
2461 cat >>confdefs.h <<_ACEOF
2462 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2465 cat >>confdefs.h <<_ACEOF
2466 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2469 cat >>confdefs.h <<_ACEOF
2470 #define PACKAGE_STRING "$PACKAGE_STRING"
2473 cat >>confdefs.h <<_ACEOF
2474 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2477 cat >>confdefs.h <<_ACEOF
2478 #define PACKAGE_URL "$PACKAGE_URL"
2482 # Let the site file select an alternate cache file if it wants to.
2483 # Prefer an explicitly selected file to automatically selected ones.
2486 if test -n "$CONFIG_SITE"; then
2487 # We do not want a PATH search for config.site.
2488 case $CONFIG_SITE in #((
2489 -*) ac_site_file1=./$CONFIG_SITE;;
2490 */*) ac_site_file1=$CONFIG_SITE;;
2491 *) ac_site_file1=./$CONFIG_SITE;;
2493 elif test "x$prefix" != xNONE; then
2494 ac_site_file1=$prefix/share/config.site
2495 ac_site_file2=$prefix/etc/config.site
2497 ac_site_file1=$ac_default_prefix/share/config.site
2498 ac_site_file2=$ac_default_prefix/etc/config.site
2500 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2502 test "x$ac_site_file" = xNONE && continue
2503 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2505 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2506 sed 's/^/| /' "$ac_site_file" >&5
2508 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2510 as_fn_error $? "failed to load site script $ac_site_file
2511 See \`config.log' for more details" "$LINENO" 5; }
2515 if test -r "$cache_file"; then
2516 # Some versions of bash will fail to source /dev/null (special files
2517 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2518 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2520 $as_echo "$as_me: loading cache $cache_file" >&6;}
2522 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2523 *) . "./$cache_file";;
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2528 $as_echo "$as_me: creating cache $cache_file" >&6;}
2532 # Check that the precious variables saved in the cache have kept the same
2534 ac_cache_corrupted=false
2535 for ac_var in $ac_precious_vars; do
2536 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2537 eval ac_new_set=\$ac_env_${ac_var}_set
2538 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2539 eval ac_new_val=\$ac_env_${ac_var}_value
2540 case $ac_old_set,$ac_new_set in
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2543 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2544 ac_cache_corrupted=: ;;
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2547 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2548 ac_cache_corrupted=: ;;
2551 if test "x$ac_old_val" != "x$ac_new_val"; then
2552 # differences in whitespace do not lead to failure.
2553 ac_old_val_w=`echo x $ac_old_val`
2554 ac_new_val_w=`echo x $ac_new_val`
2555 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2557 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2558 ac_cache_corrupted=:
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2561 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2562 eval $ac_var=\$ac_old_val
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2565 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2567 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2570 # Pass precious variables to config.status.
2571 if test "$ac_new_set" = set; then
2573 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2574 *) ac_arg=$ac_var=$ac_new_val ;;
2576 case " $ac_configure_args " in
2577 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2578 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2582 if $ac_cache_corrupted; then
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2586 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2587 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2589 ## -------------------- ##
2590 ## Main body of script. ##
2591 ## -------------------- ##
2594 ac_cpp='$CPP $CPPFLAGS'
2595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2603 ac_cpp='$CPP $CPPFLAGS'
2604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2609 ac_config_headers="$ac_config_headers config.h"
2612 ac_cpp='$CPP $CPPFLAGS'
2613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2616 if test -n "$ac_tool_prefix"; then
2617 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2618 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620 $as_echo_n "checking for $ac_word... " >&6; }
2621 if ${ac_cv_prog_CC+:} false; then :
2622 $as_echo_n "(cached) " >&6
2624 if test -n "$CC"; then
2625 ac_cv_prog_CC="$CC" # Let the user override the test.
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 test -z "$as_dir" && as_dir=.
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2634 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2645 if test -n "$CC"; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2647 $as_echo "$CC" >&6; }
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650 $as_echo "no" >&6; }
2655 if test -z "$ac_cv_prog_CC"; then
2657 # Extract the first word of "gcc", so it can be a program name with args.
2658 set dummy gcc; ac_word=$2
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2660 $as_echo_n "checking for $ac_word... " >&6; }
2661 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2662 $as_echo_n "(cached) " >&6
2664 if test -n "$ac_ct_CC"; then
2665 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 test -z "$as_dir" && as_dir=.
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2674 ac_cv_prog_ac_ct_CC="gcc"
2675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2685 if test -n "$ac_ct_CC"; then
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2687 $as_echo "$ac_ct_CC" >&6; }
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2690 $as_echo "no" >&6; }
2693 if test "x$ac_ct_CC" = x; then
2696 case $cross_compiling:$ac_tool_warned in
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2700 ac_tool_warned=yes ;;
2708 if test -z "$CC"; then
2709 if test -n "$ac_tool_prefix"; then
2710 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2711 set dummy ${ac_tool_prefix}cc; ac_word=$2
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2713 $as_echo_n "checking for $ac_word... " >&6; }
2714 if ${ac_cv_prog_CC+:} false; then :
2715 $as_echo_n "(cached) " >&6
2717 if test -n "$CC"; then
2718 ac_cv_prog_CC="$CC" # Let the user override the test.
2720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 test -z "$as_dir" && as_dir=.
2725 for ac_exec_ext in '' $ac_executable_extensions; do
2726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2727 ac_cv_prog_CC="${ac_tool_prefix}cc"
2728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 if test -n "$CC"; then
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2740 $as_echo "$CC" >&6; }
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2743 $as_echo "no" >&6; }
2749 if test -z "$CC"; then
2750 # Extract the first word of "cc", so it can be a program name with args.
2751 set dummy cc; ac_word=$2
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2753 $as_echo_n "checking for $ac_word... " >&6; }
2754 if ${ac_cv_prog_CC+:} false; then :
2755 $as_echo_n "(cached) " >&6
2757 if test -n "$CC"; then
2758 ac_cv_prog_CC="$CC" # Let the user override the test.
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2768 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2769 ac_prog_rejected=yes
2773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 if test $ac_prog_rejected = yes; then
2781 # We found a bogon in the path, so make sure we never use it.
2782 set dummy $ac_cv_prog_CC
2784 if test $# != 0; then
2785 # We chose a different compiler from the bogus one.
2786 # However, it has the same basename, so the bogon will be chosen
2787 # first if we set CC to just the basename; use the full file name.
2789 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2795 if test -n "$CC"; then
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2797 $as_echo "$CC" >&6; }
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800 $as_echo "no" >&6; }
2805 if test -z "$CC"; then
2806 if test -n "$ac_tool_prefix"; then
2807 for ac_prog in cl.exe
2809 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2810 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812 $as_echo_n "checking for $ac_word... " >&6; }
2813 if ${ac_cv_prog_CC+:} false; then :
2814 $as_echo_n "(cached) " >&6
2816 if test -n "$CC"; then
2817 ac_cv_prog_CC="$CC" # Let the user override the test.
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 if test -n "$CC"; then
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2839 $as_echo "$CC" >&6; }
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842 $as_echo "no" >&6; }
2846 test -n "$CC" && break
2849 if test -z "$CC"; then
2851 for ac_prog in cl.exe
2853 # Extract the first word of "$ac_prog", so it can be a program name with args.
2854 set dummy $ac_prog; ac_word=$2
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2856 $as_echo_n "checking for $ac_word... " >&6; }
2857 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2858 $as_echo_n "(cached) " >&6
2860 if test -n "$ac_ct_CC"; then
2861 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2870 ac_cv_prog_ac_ct_CC="$ac_prog"
2871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2881 if test -n "$ac_ct_CC"; then
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2883 $as_echo "$ac_ct_CC" >&6; }
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2886 $as_echo "no" >&6; }
2890 test -n "$ac_ct_CC" && break
2893 if test "x$ac_ct_CC" = x; then
2896 case $cross_compiling:$ac_tool_warned in
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2900 ac_tool_warned=yes ;;
2909 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2911 as_fn_error $? "no acceptable C compiler found in \$PATH
2912 See \`config.log' for more details" "$LINENO" 5; }
2914 # Provide some information about the compiler.
2915 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2918 for ac_option in --version -v -V -qversion; do
2919 { { ac_try="$ac_compiler $ac_option >&5"
2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922 *) ac_try_echo=$ac_try;;
2924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2925 $as_echo "$ac_try_echo"; } >&5
2926 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2928 if test -s conftest.err; then
2930 ... rest of stderr output deleted ...
2931 10q' conftest.err >conftest.er1
2932 cat conftest.er1 >&5
2934 rm -f conftest.er1 conftest.err
2935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2936 test $ac_status = 0; }
2939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2940 /* end confdefs.h. */
2950 ac_clean_files_save=$ac_clean_files
2951 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2952 # Try to create an executable without -o first, disregard a.out.
2953 # It will help us diagnose broken compilers, and finding out an intuition
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2956 $as_echo_n "checking whether the C compiler works... " >&6; }
2957 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2959 # The possible output files:
2960 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2963 for ac_file in $ac_files
2966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2967 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2972 if { { ac_try="$ac_link_default"
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2978 $as_echo "$ac_try_echo"; } >&5
2979 (eval "$ac_link_default") 2>&5
2981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2982 test $ac_status = 0; }; then :
2983 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2984 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2985 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2986 # so that the user can short-circuit this test for compilers unknown to
2988 for ac_file in $ac_files ''
2990 test -f "$ac_file" || continue
2992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2995 # We found the default executable, but exeext='' is most
2999 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3001 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3003 # We set ac_cv_exeext here because the later test for it is not
3004 # safe: cross compilers may not add the suffix if given an `-o'
3005 # argument, so we may need to know it at that point already.
3006 # Even if this section looks crufty: it has the advantage of
3013 test "$ac_cv_exeext" = no && ac_cv_exeext=
3018 if test -z "$ac_file"; then :
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3021 $as_echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3026 as_fn_error 77 "C compiler cannot create executables
3027 See \`config.log' for more details" "$LINENO" 5; }
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3030 $as_echo "yes" >&6; }
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3033 $as_echo_n "checking for C compiler default output file name... " >&6; }
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3035 $as_echo "$ac_file" >&6; }
3036 ac_exeext=$ac_cv_exeext
3038 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3039 ac_clean_files=$ac_clean_files_save
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3041 $as_echo_n "checking for suffix of executables... " >&6; }
3042 if { { ac_try="$ac_link"
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3048 $as_echo "$ac_try_echo"; } >&5
3049 (eval "$ac_link") 2>&5
3051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3052 test $ac_status = 0; }; then :
3053 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3054 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3055 # work properly (i.e., refer to `conftest.exe'), while it won't with
3057 for ac_file in conftest.exe conftest conftest.*; do
3058 test -f "$ac_file" || continue
3060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3061 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3069 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3070 See \`config.log' for more details" "$LINENO" 5; }
3072 rm -f conftest conftest$ac_cv_exeext
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3074 $as_echo "$ac_cv_exeext" >&6; }
3076 rm -f conftest.$ac_ext
3077 EXEEXT=$ac_cv_exeext
3079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3080 /* end confdefs.h. */
3085 FILE *f = fopen ("conftest.out", "w");
3086 return ferror (f) || fclose (f) != 0;
3092 ac_clean_files="$ac_clean_files conftest.out"
3093 # Check that the compiler produces executables we can run. If not, either
3094 # the compiler is broken, or we cross compile.
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3096 $as_echo_n "checking whether we are cross compiling... " >&6; }
3097 if test "$cross_compiling" != yes; then
3098 { { ac_try="$ac_link"
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3104 $as_echo "$ac_try_echo"; } >&5
3105 (eval "$ac_link") 2>&5
3107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3108 test $ac_status = 0; }
3109 if { ac_try='./conftest$ac_cv_exeext'
3110 { { case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3115 $as_echo "$ac_try_echo"; } >&5
3116 (eval "$ac_try") 2>&5
3118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3119 test $ac_status = 0; }; }; then
3122 if test "$cross_compiling" = maybe; then
3125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3127 as_fn_error $? "cannot run C compiled programs.
3128 If you meant to cross compile, use \`--host'.
3129 See \`config.log' for more details" "$LINENO" 5; }
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3134 $as_echo "$cross_compiling" >&6; }
3136 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3137 ac_clean_files=$ac_clean_files_save
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3139 $as_echo_n "checking for suffix of object files... " >&6; }
3140 if ${ac_cv_objext+:} false; then :
3141 $as_echo_n "(cached) " >&6
3143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3144 /* end confdefs.h. */
3154 rm -f conftest.o conftest.obj
3155 if { { ac_try="$ac_compile"
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3160 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3161 $as_echo "$ac_try_echo"; } >&5
3162 (eval "$ac_compile") 2>&5
3164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3165 test $ac_status = 0; }; then :
3166 for ac_file in conftest.o conftest.obj conftest.*; do
3167 test -f "$ac_file" || continue;
3169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3170 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3175 $as_echo "$as_me: failed program was:" >&5
3176 sed 's/^/| /' conftest.$ac_ext >&5
3178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3180 as_fn_error $? "cannot compute suffix of object files: cannot compile
3181 See \`config.log' for more details" "$LINENO" 5; }
3183 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3186 $as_echo "$ac_cv_objext" >&6; }
3187 OBJEXT=$ac_cv_objext
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3190 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3191 if ${ac_cv_c_compiler_gnu+:} false; then :
3192 $as_echo_n "(cached) " >&6
3194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3195 /* end confdefs.h. */
3208 if ac_fn_c_try_compile "$LINENO"; then :
3213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3218 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3219 if test $ac_compiler_gnu = yes; then
3224 ac_test_CFLAGS=${CFLAGS+set}
3225 ac_save_CFLAGS=$CFLAGS
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3227 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3228 if ${ac_cv_prog_cc_g+:} false; then :
3229 $as_echo_n "(cached) " >&6
3231 ac_save_c_werror_flag=$ac_c_werror_flag
3232 ac_c_werror_flag=yes
3235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3236 /* end confdefs.h. */
3246 if ac_fn_c_try_compile "$LINENO"; then :
3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251 /* end confdefs.h. */
3261 if ac_fn_c_try_compile "$LINENO"; then :
3264 ac_c_werror_flag=$ac_save_c_werror_flag
3266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3267 /* end confdefs.h. */
3277 if ac_fn_c_try_compile "$LINENO"; then :
3280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285 ac_c_werror_flag=$ac_save_c_werror_flag
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3288 $as_echo "$ac_cv_prog_cc_g" >&6; }
3289 if test "$ac_test_CFLAGS" = set; then
3290 CFLAGS=$ac_save_CFLAGS
3291 elif test $ac_cv_prog_cc_g = yes; then
3292 if test "$GCC" = yes; then
3298 if test "$GCC" = yes; then
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3305 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3306 if ${ac_cv_prog_cc_c89+:} false; then :
3307 $as_echo_n "(cached) " >&6
3309 ac_cv_prog_cc_c89=no
3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312 /* end confdefs.h. */
3316 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3317 struct buf { int x; };
3318 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3319 static char *e (p, i)
3325 static char *f (char * (*g) (char **, int), char **p, ...)
3330 s = g (p, va_arg (v,int));
3335 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3336 function prototypes and stuff, but not '\xHH' hex character constants.
3337 These don't provoke an error unfortunately, instead are silently treated
3338 as 'x'. The following induces an error, until -std is added to get
3339 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3340 array size at least. It's necessary to write '\x00'==0 to get something
3341 that's true only with -std. */
3342 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3344 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3345 inside strings and character constants. */
3347 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3349 int test (int i, double x);
3350 struct s1 {int (*f) (int a);};
3351 struct s2 {int (*f) (double a);};
3352 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3358 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3363 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3364 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3366 CC="$ac_save_CC $ac_arg"
3367 if ac_fn_c_try_compile "$LINENO"; then :
3368 ac_cv_prog_cc_c89=$ac_arg
3370 rm -f core conftest.err conftest.$ac_objext
3371 test "x$ac_cv_prog_cc_c89" != "xno" && break
3373 rm -f conftest.$ac_ext
3378 case "x$ac_cv_prog_cc_c89" in
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3381 $as_echo "none needed" >&6; } ;;
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3384 $as_echo "unsupported" >&6; } ;;
3386 CC="$CC $ac_cv_prog_cc_c89"
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3388 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3390 if test "x$ac_cv_prog_cc_c89" != xno; then :
3395 ac_cpp='$CPP $CPPFLAGS'
3396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3401 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3402 if test -f "$ac_dir/install-sh"; then
3404 ac_install_sh="$ac_aux_dir/install-sh -c"
3406 elif test -f "$ac_dir/install.sh"; then
3408 ac_install_sh="$ac_aux_dir/install.sh -c"
3410 elif test -f "$ac_dir/shtool"; then
3412 ac_install_sh="$ac_aux_dir/shtool install -c"
3416 if test -z "$ac_aux_dir"; then
3417 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3420 # These three variables are undocumented and unsupported,
3421 # and are intended to be withdrawn in a future Autoconf release.
3422 # They can cause serious problems if a builder's source tree is in a directory
3423 # whose full name contains unusual characters.
3424 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3425 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3426 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3429 # Make sure we can run config.sub.
3430 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3431 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3434 $as_echo_n "checking build system type... " >&6; }
3435 if ${ac_cv_build+:} false; then :
3436 $as_echo_n "(cached) " >&6
3438 ac_build_alias=$build_alias
3439 test "x$ac_build_alias" = x &&
3440 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3441 test "x$ac_build_alias" = x &&
3442 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3443 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3444 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3448 $as_echo "$ac_cv_build" >&6; }
3449 case $ac_cv_build in
3451 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3454 ac_save_IFS=$IFS; IFS='-'
3460 # Remember, the first character of IFS is used to create $*,
3461 # except with old shells:
3464 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3468 $as_echo_n "checking host system type... " >&6; }
3469 if ${ac_cv_host+:} false; then :
3470 $as_echo_n "(cached) " >&6
3472 if test "x$host_alias" = x; then
3473 ac_cv_host=$ac_cv_build
3475 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3476 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3481 $as_echo "$ac_cv_host" >&6; }
3484 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3487 ac_save_IFS=$IFS; IFS='-'
3493 # Remember, the first character of IFS is used to create $*,
3494 # except with old shells:
3497 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3502 ac_cpp='$CPP $CPPFLAGS'
3503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3507 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3508 # On Suns, sometimes $CPP names a directory.
3509 if test -n "$CPP" && test -d "$CPP"; then
3512 if test -z "$CPP"; then
3513 if ${ac_cv_prog_CPP+:} false; then :
3514 $as_echo_n "(cached) " >&6
3516 # Double quotes because CPP needs to be expanded
3517 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3520 for ac_c_preproc_warn_flag in '' yes
3522 # Use a header file that comes with gcc, so configuring glibc
3523 # with a fresh cross-compiler works.
3524 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3525 # <limits.h> exists even on freestanding compilers.
3526 # On the NeXT, cc -E runs the code through the compiler's parser,
3527 # not just through cpp. "Syntax error" is here to catch this case.
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3531 # include <limits.h>
3533 # include <assert.h>
3537 if ac_fn_c_try_cpp "$LINENO"; then :
3540 # Broken: fails on valid input.
3543 rm -f conftest.err conftest.i conftest.$ac_ext
3545 # OK, works on sane cases. Now check whether nonexistent headers
3546 # can be detected and how.
3547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548 /* end confdefs.h. */
3549 #include <ac_nonexistent.h>
3551 if ac_fn_c_try_cpp "$LINENO"; then :
3552 # Broken: success on invalid input.
3555 # Passes both tests.
3559 rm -f conftest.err conftest.i conftest.$ac_ext
3562 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3563 rm -f conftest.i conftest.err conftest.$ac_ext
3564 if $ac_preproc_ok; then :
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3577 $as_echo "$CPP" >&6; }
3579 for ac_c_preproc_warn_flag in '' yes
3581 # Use a header file that comes with gcc, so configuring glibc
3582 # with a fresh cross-compiler works.
3583 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3584 # <limits.h> exists even on freestanding compilers.
3585 # On the NeXT, cc -E runs the code through the compiler's parser,
3586 # not just through cpp. "Syntax error" is here to catch this case.
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588 /* end confdefs.h. */
3590 # include <limits.h>
3592 # include <assert.h>
3596 if ac_fn_c_try_cpp "$LINENO"; then :
3599 # Broken: fails on valid input.
3602 rm -f conftest.err conftest.i conftest.$ac_ext
3604 # OK, works on sane cases. Now check whether nonexistent headers
3605 # can be detected and how.
3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607 /* end confdefs.h. */
3608 #include <ac_nonexistent.h>
3610 if ac_fn_c_try_cpp "$LINENO"; then :
3611 # Broken: success on invalid input.
3614 # Passes both tests.
3618 rm -f conftest.err conftest.i conftest.$ac_ext
3621 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3622 rm -f conftest.i conftest.err conftest.$ac_ext
3623 if $ac_preproc_ok; then :
3626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3628 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3629 See \`config.log' for more details" "$LINENO" 5; }
3633 ac_cpp='$CPP $CPPFLAGS'
3634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3640 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3641 if ${ac_cv_path_GREP+:} false; then :
3642 $as_echo_n "(cached) " >&6
3644 if test -z "$GREP"; then
3645 ac_path_GREP_found=false
3646 # Loop through the user's path and test for each of PROGNAME-LIST
3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3651 test -z "$as_dir" && as_dir=.
3652 for ac_prog in grep ggrep; do
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3655 as_fn_executable_p "$ac_path_GREP" || continue
3656 # Check for GNU ac_path_GREP and select it if it is found.
3657 # Check for GNU $ac_path_GREP
3658 case `"$ac_path_GREP" --version 2>&1` in
3660 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3663 $as_echo_n 0123456789 >"conftest.in"
3666 cat "conftest.in" "conftest.in" >"conftest.tmp"
3667 mv "conftest.tmp" "conftest.in"
3668 cp "conftest.in" "conftest.nl"
3669 $as_echo 'GREP' >> "conftest.nl"
3670 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3671 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3672 as_fn_arith $ac_count + 1 && ac_count=$as_val
3673 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3674 # Best one so far, save it but keep looking for a better one
3675 ac_cv_path_GREP="$ac_path_GREP"
3676 ac_path_GREP_max=$ac_count
3678 # 10*(2^10) chars as input seems more than enough
3679 test $ac_count -gt 10 && break
3681 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3684 $ac_path_GREP_found && break 3
3689 if test -z "$ac_cv_path_GREP"; then
3690 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3693 ac_cv_path_GREP=$GREP
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3698 $as_echo "$ac_cv_path_GREP" >&6; }
3699 GREP="$ac_cv_path_GREP"
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3703 $as_echo_n "checking for egrep... " >&6; }
3704 if ${ac_cv_path_EGREP+:} false; then :
3705 $as_echo_n "(cached) " >&6
3707 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3708 then ac_cv_path_EGREP="$GREP -E"
3710 if test -z "$EGREP"; then
3711 ac_path_EGREP_found=false
3712 # Loop through the user's path and test for each of PROGNAME-LIST
3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3717 test -z "$as_dir" && as_dir=.
3718 for ac_prog in egrep; do
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3721 as_fn_executable_p "$ac_path_EGREP" || continue
3722 # Check for GNU ac_path_EGREP and select it if it is found.
3723 # Check for GNU $ac_path_EGREP
3724 case `"$ac_path_EGREP" --version 2>&1` in
3726 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3729 $as_echo_n 0123456789 >"conftest.in"
3732 cat "conftest.in" "conftest.in" >"conftest.tmp"
3733 mv "conftest.tmp" "conftest.in"
3734 cp "conftest.in" "conftest.nl"
3735 $as_echo 'EGREP' >> "conftest.nl"
3736 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3737 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3738 as_fn_arith $ac_count + 1 && ac_count=$as_val
3739 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3740 # Best one so far, save it but keep looking for a better one
3741 ac_cv_path_EGREP="$ac_path_EGREP"
3742 ac_path_EGREP_max=$ac_count
3744 # 10*(2^10) chars as input seems more than enough
3745 test $ac_count -gt 10 && break
3747 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3750 $ac_path_EGREP_found && break 3
3755 if test -z "$ac_cv_path_EGREP"; then
3756 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3759 ac_cv_path_EGREP=$EGREP
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3765 $as_echo "$ac_cv_path_EGREP" >&6; }
3766 EGREP="$ac_cv_path_EGREP"
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3770 $as_echo_n "checking for ANSI C header files... " >&6; }
3771 if ${ac_cv_header_stdc+:} false; then :
3772 $as_echo_n "(cached) " >&6
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h. */
3789 if ac_fn_c_try_compile "$LINENO"; then :
3790 ac_cv_header_stdc=yes
3792 ac_cv_header_stdc=no
3794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3796 if test $ac_cv_header_stdc = yes; then
3797 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h. */
3803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3804 $EGREP "memchr" >/dev/null 2>&1; then :
3807 ac_cv_header_stdc=no
3813 if test $ac_cv_header_stdc = yes; then
3814 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3821 $EGREP "free" >/dev/null 2>&1; then :
3824 ac_cv_header_stdc=no
3830 if test $ac_cv_header_stdc = yes; then
3831 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3832 if test "$cross_compiling" = yes; then :
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3839 #if ((' ' & 0x0FF) == 0x020)
3840 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3841 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3843 # define ISLOWER(c) \
3844 (('a' <= (c) && (c) <= 'i') \
3845 || ('j' <= (c) && (c) <= 'r') \
3846 || ('s' <= (c) && (c) <= 'z'))
3847 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3850 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3855 for (i = 0; i < 256; i++)
3856 if (XOR (islower (i), ISLOWER (i))
3857 || toupper (i) != TOUPPER (i))
3862 if ac_fn_c_try_run "$LINENO"; then :
3865 ac_cv_header_stdc=no
3867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3868 conftest.$ac_objext conftest.beam conftest.$ac_ext
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3874 $as_echo "$ac_cv_header_stdc" >&6; }
3875 if test $ac_cv_header_stdc = yes; then
3877 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3881 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3882 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3883 inttypes.h stdint.h unistd.h
3885 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3886 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3888 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3889 cat >>confdefs.h <<_ACEOF
3890 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3899 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3900 if ${ac_cv_c_bigendian+:} false; then :
3901 $as_echo_n "(cached) " >&6
3903 ac_cv_c_bigendian=unknown
3904 # See if we're dealing with a universal compiler.
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3907 #ifndef __APPLE_CC__
3908 not a universal capable compiler
3913 if ac_fn_c_try_compile "$LINENO"; then :
3915 # Check for potential -arch flags. It is not universal unless
3916 # there are at least two -arch flags with different values.
3919 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3920 if test -n "$ac_prev"; then
3922 i?86 | x86_64 | ppc | ppc64)
3923 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3926 ac_cv_c_bigendian=universal
3932 elif test "x$ac_word" = "x-arch"; then
3937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3938 if test $ac_cv_c_bigendian = unknown; then
3939 # See if sys/param.h defines the BYTE_ORDER macro.
3940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3941 /* end confdefs.h. */
3942 #include <sys/types.h>
3943 #include <sys/param.h>
3948 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3949 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3958 if ac_fn_c_try_compile "$LINENO"; then :
3959 # It does; now see whether it defined to BIG_ENDIAN or not.
3960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961 /* end confdefs.h. */
3962 #include <sys/types.h>
3963 #include <sys/param.h>
3968 #if BYTE_ORDER != BIG_ENDIAN
3976 if ac_fn_c_try_compile "$LINENO"; then :
3977 ac_cv_c_bigendian=yes
3979 ac_cv_c_bigendian=no
3981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985 if test $ac_cv_c_bigendian = unknown; then
3986 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h. */
3994 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4002 if ac_fn_c_try_compile "$LINENO"; then :
4003 # It does; now see whether it defined to _BIG_ENDIAN or not.
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4019 if ac_fn_c_try_compile "$LINENO"; then :
4020 ac_cv_c_bigendian=yes
4022 ac_cv_c_bigendian=no
4024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4028 if test $ac_cv_c_bigendian = unknown; then
4029 # Compile a test program.
4030 if test "$cross_compiling" = yes; then :
4031 # Try to guess by grepping values from an object file.
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h. */
4034 short int ascii_mm[] =
4035 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4036 short int ascii_ii[] =
4037 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4038 int use_ascii (int i) {
4039 return ascii_mm[i] + ascii_ii[i];
4041 short int ebcdic_ii[] =
4042 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4043 short int ebcdic_mm[] =
4044 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4045 int use_ebcdic (int i) {
4046 return ebcdic_mm[i] + ebcdic_ii[i];
4053 return use_ascii (foo) == use_ebcdic (foo);
4058 if ac_fn_c_try_compile "$LINENO"; then :
4059 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4060 ac_cv_c_bigendian=yes
4062 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4063 if test "$ac_cv_c_bigendian" = unknown; then
4064 ac_cv_c_bigendian=no
4066 # finding both strings is unlikely to happen, but who knows?
4067 ac_cv_c_bigendian=unknown
4071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4075 $ac_includes_default
4080 /* Are we little or big endian? From Harbison&Steele. */
4084 char c[sizeof (long int)];
4087 return u.c[sizeof (long int) - 1] == 1;
4093 if ac_fn_c_try_run "$LINENO"; then :
4094 ac_cv_c_bigendian=no
4096 ac_cv_c_bigendian=yes
4098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4099 conftest.$ac_objext conftest.beam conftest.$ac_ext
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4105 $as_echo "$ac_cv_c_bigendian" >&6; }
4106 case $ac_cv_c_bigendian in #(
4108 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4114 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4118 as_fn_error $? "unknown endianness
4119 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4123 # Checks for programs.
4124 for ac_prog in gawk mawk nawk awk
4126 # Extract the first word of "$ac_prog", so it can be a program name with args.
4127 set dummy $ac_prog; ac_word=$2
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4129 $as_echo_n "checking for $ac_word... " >&6; }
4130 if ${ac_cv_prog_AWK+:} false; then :
4131 $as_echo_n "(cached) " >&6
4133 if test -n "$AWK"; then
4134 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 test -z "$as_dir" && as_dir=.
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4143 ac_cv_prog_AWK="$ac_prog"
4144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4154 if test -n "$AWK"; then
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4156 $as_echo "$AWK" >&6; }
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4159 $as_echo "no" >&6; }
4163 test -n "$AWK" && break
4167 ac_cpp='$CPP $CPPFLAGS'
4168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4172 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4173 # On Suns, sometimes $CPP names a directory.
4174 if test -n "$CPP" && test -d "$CPP"; then
4177 if test -z "$CPP"; then
4178 if ${ac_cv_prog_CPP+:} false; then :
4179 $as_echo_n "(cached) " >&6
4181 # Double quotes because CPP needs to be expanded
4182 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4185 for ac_c_preproc_warn_flag in '' yes
4187 # Use a header file that comes with gcc, so configuring glibc
4188 # with a fresh cross-compiler works.
4189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4190 # <limits.h> exists even on freestanding compilers.
4191 # On the NeXT, cc -E runs the code through the compiler's parser,
4192 # not just through cpp. "Syntax error" is here to catch this case.
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h. */
4196 # include <limits.h>
4198 # include <assert.h>
4202 if ac_fn_c_try_cpp "$LINENO"; then :
4205 # Broken: fails on valid input.
4208 rm -f conftest.err conftest.i conftest.$ac_ext
4210 # OK, works on sane cases. Now check whether nonexistent headers
4211 # can be detected and how.
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4214 #include <ac_nonexistent.h>
4216 if ac_fn_c_try_cpp "$LINENO"; then :
4217 # Broken: success on invalid input.
4220 # Passes both tests.
4224 rm -f conftest.err conftest.i conftest.$ac_ext
4227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4228 rm -f conftest.i conftest.err conftest.$ac_ext
4229 if $ac_preproc_ok; then :
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4242 $as_echo "$CPP" >&6; }
4244 for ac_c_preproc_warn_flag in '' yes
4246 # Use a header file that comes with gcc, so configuring glibc
4247 # with a fresh cross-compiler works.
4248 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4249 # <limits.h> exists even on freestanding compilers.
4250 # On the NeXT, cc -E runs the code through the compiler's parser,
4251 # not just through cpp. "Syntax error" is here to catch this case.
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4255 # include <limits.h>
4257 # include <assert.h>
4261 if ac_fn_c_try_cpp "$LINENO"; then :
4264 # Broken: fails on valid input.
4267 rm -f conftest.err conftest.i conftest.$ac_ext
4269 # OK, works on sane cases. Now check whether nonexistent headers
4270 # can be detected and how.
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4273 #include <ac_nonexistent.h>
4275 if ac_fn_c_try_cpp "$LINENO"; then :
4276 # Broken: success on invalid input.
4279 # Passes both tests.
4283 rm -f conftest.err conftest.i conftest.$ac_ext
4286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4287 rm -f conftest.i conftest.err conftest.$ac_ext
4288 if $ac_preproc_ok; then :
4291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4293 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4294 See \`config.log' for more details" "$LINENO" 5; }
4298 ac_cpp='$CPP $CPPFLAGS'
4299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4303 if test -n "$ac_tool_prefix"; then
4304 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4305 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307 $as_echo_n "checking for $ac_word... " >&6; }
4308 if ${ac_cv_prog_RANLIB+:} false; then :
4309 $as_echo_n "(cached) " >&6
4311 if test -n "$RANLIB"; then
4312 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 test -z "$as_dir" && as_dir=.
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4321 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4331 RANLIB=$ac_cv_prog_RANLIB
4332 if test -n "$RANLIB"; then
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4334 $as_echo "$RANLIB" >&6; }
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337 $as_echo "no" >&6; }
4342 if test -z "$ac_cv_prog_RANLIB"; then
4343 ac_ct_RANLIB=$RANLIB
4344 # Extract the first word of "ranlib", so it can be a program name with args.
4345 set dummy ranlib; ac_word=$2
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4347 $as_echo_n "checking for $ac_word... " >&6; }
4348 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4349 $as_echo_n "(cached) " >&6
4351 if test -n "$ac_ct_RANLIB"; then
4352 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358 test -z "$as_dir" && as_dir=.
4359 for ac_exec_ext in '' $ac_executable_extensions; do
4360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4361 ac_cv_prog_ac_ct_RANLIB="ranlib"
4362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4371 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4372 if test -n "$ac_ct_RANLIB"; then
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4374 $as_echo "$ac_ct_RANLIB" >&6; }
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4377 $as_echo "no" >&6; }
4380 if test "x$ac_ct_RANLIB" = x; then
4383 case $cross_compiling:$ac_tool_warned in
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4387 ac_tool_warned=yes ;;
4389 RANLIB=$ac_ct_RANLIB
4392 RANLIB="$ac_cv_prog_RANLIB"
4395 # Find a good install program. We prefer a C program (faster),
4396 # so one script is as good as another. But avoid the broken or
4397 # incompatible versions:
4398 # SysV /etc/install, /usr/sbin/install
4399 # SunOS /usr/etc/install
4400 # IRIX /sbin/install
4402 # AmigaOS /C/install, which installs bootblocks on floppy discs
4403 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4404 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4405 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4406 # OS/2's system install, which has a completely different semantic
4407 # ./install, which can be erroneously created by make from ./install.sh.
4408 # Reject install programs that cannot install multiple files.
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4410 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4411 if test -z "$INSTALL"; then
4412 if ${ac_cv_path_install+:} false; then :
4413 $as_echo_n "(cached) " >&6
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 test -z "$as_dir" && as_dir=.
4420 # Account for people who put trailing slashes in PATH elements.
4421 case $as_dir/ in #((
4422 ./ | .// | /[cC]/* | \
4423 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4424 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4427 # OSF1 and SCO ODT 3.0 have their own names for install.
4428 # Don't use installbsd from OSF since it installs stuff as root
4430 for ac_prog in ginstall scoinst install; do
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4433 if test $ac_prog = install &&
4434 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4435 # AIX install. It has an incompatible calling convention.
4437 elif test $ac_prog = install &&
4438 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4439 # program-specific install script used by HP pwplus--don't use.
4442 rm -rf conftest.one conftest.two conftest.dir
4443 echo one > conftest.one
4444 echo two > conftest.two
4446 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4447 test -s conftest.one && test -s conftest.two &&
4448 test -s conftest.dir/conftest.one &&
4449 test -s conftest.dir/conftest.two
4451 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4464 rm -rf conftest.one conftest.two conftest.dir
4467 if test "${ac_cv_path_install+set}" = set; then
4468 INSTALL=$ac_cv_path_install
4470 # As a last resort, use the slow shell script. Don't cache a
4471 # value for INSTALL within a source directory, because that will
4472 # break other packages using the cache if that directory is
4473 # removed, or if the value is a relative name.
4474 INSTALL=$ac_install_sh
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4478 $as_echo "$INSTALL" >&6; }
4480 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4481 # It thinks the first close brace ends the variable substitution.
4482 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4484 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4486 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4489 $as_echo_n "checking for egrep... " >&6; }
4490 if ${ac_cv_path_EGREP+:} false; then :
4491 $as_echo_n "(cached) " >&6
4493 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4494 then ac_cv_path_EGREP="$GREP -E"
4496 if test -z "$EGREP"; then
4497 ac_path_EGREP_found=false
4498 # Loop through the user's path and test for each of PROGNAME-LIST
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4503 test -z "$as_dir" && as_dir=.
4504 for ac_prog in egrep; do
4505 for ac_exec_ext in '' $ac_executable_extensions; do
4506 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4507 as_fn_executable_p "$ac_path_EGREP" || continue
4508 # Check for GNU ac_path_EGREP and select it if it is found.
4509 # Check for GNU $ac_path_EGREP
4510 case `"$ac_path_EGREP" --version 2>&1` in
4512 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4515 $as_echo_n 0123456789 >"conftest.in"
4518 cat "conftest.in" "conftest.in" >"conftest.tmp"
4519 mv "conftest.tmp" "conftest.in"
4520 cp "conftest.in" "conftest.nl"
4521 $as_echo 'EGREP' >> "conftest.nl"
4522 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4523 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4524 as_fn_arith $ac_count + 1 && ac_count=$as_val
4525 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4526 # Best one so far, save it but keep looking for a better one
4527 ac_cv_path_EGREP="$ac_path_EGREP"
4528 ac_path_EGREP_max=$ac_count
4530 # 10*(2^10) chars as input seems more than enough
4531 test $ac_count -gt 10 && break
4533 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4536 $ac_path_EGREP_found && break 3
4541 if test -z "$ac_cv_path_EGREP"; then
4542 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4545 ac_cv_path_EGREP=$EGREP
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4551 $as_echo "$ac_cv_path_EGREP" >&6; }
4552 EGREP="$ac_cv_path_EGREP"
4555 # Extract the first word of "ar", so it can be a program name with args.
4556 set dummy ar; ac_word=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if ${ac_cv_path_AR+:} false; then :
4560 $as_echo_n "(cached) " >&6
4564 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 test -z "$as_dir" && as_dir=.
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4574 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4586 if test -n "$AR"; then
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4588 $as_echo "$AR" >&6; }
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591 $as_echo "no" >&6; }
4595 # Extract the first word of "cat", so it can be a program name with args.
4596 set dummy cat; ac_word=$2
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4598 $as_echo_n "checking for $ac_word... " >&6; }
4599 if ${ac_cv_path_CAT+:} false; then :
4600 $as_echo_n "(cached) " >&6
4604 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4614 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 if test -n "$CAT"; then
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4628 $as_echo "$CAT" >&6; }
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 $as_echo "no" >&6; }
4635 # Extract the first word of "kill", so it can be a program name with args.
4636 set dummy kill; ac_word=$2
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4638 $as_echo_n "checking for $ac_word... " >&6; }
4639 if ${ac_cv_path_KILL+:} false; then :
4640 $as_echo_n "(cached) " >&6
4644 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 KILL=$ac_cv_path_KILL
4666 if test -n "$KILL"; then
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5
4668 $as_echo "$KILL" >&6; }
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4671 $as_echo "no" >&6; }
4675 for ac_prog in perl5 perl
4677 # Extract the first word of "$ac_prog", so it can be a program name with args.
4678 set dummy $ac_prog; ac_word=$2
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680 $as_echo_n "checking for $ac_word... " >&6; }
4681 if ${ac_cv_path_PERL+:} false; then :
4682 $as_echo_n "(cached) " >&6
4686 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 test -z "$as_dir" && as_dir=.
4694 for ac_exec_ext in '' $ac_executable_extensions; do
4695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4696 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 PERL=$ac_cv_path_PERL
4708 if test -n "$PERL"; then
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4710 $as_echo "$PERL" >&6; }
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713 $as_echo "no" >&6; }
4717 test -n "$PERL" && break
4720 # Extract the first word of "sed", so it can be a program name with args.
4721 set dummy sed; ac_word=$2
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4723 $as_echo_n "checking for $ac_word... " >&6; }
4724 if ${ac_cv_path_SED+:} false; then :
4725 $as_echo_n "(cached) " >&6
4729 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 test -z "$as_dir" && as_dir=.
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4739 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 if test -n "$SED"; then
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4753 $as_echo "$SED" >&6; }
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4756 $as_echo "no" >&6; }
4761 # Extract the first word of "ent", so it can be a program name with args.
4762 set dummy ent; ac_word=$2
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4764 $as_echo_n "checking for $ac_word... " >&6; }
4765 if ${ac_cv_path_ENT+:} false; then :
4766 $as_echo_n "(cached) " >&6
4770 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 test -z "$as_dir" && as_dir=.
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4780 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4792 if test -n "$ENT"; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5
4794 $as_echo "$ENT" >&6; }
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4802 # Extract the first word of "bash", so it can be a program name with args.
4803 set dummy bash; ac_word=$2
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805 $as_echo_n "checking for $ac_word... " >&6; }
4806 if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4807 $as_echo_n "(cached) " >&6
4809 case $TEST_MINUS_S_SH in
4811 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4821 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4832 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4833 if test -n "$TEST_MINUS_S_SH"; then
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4835 $as_echo "$TEST_MINUS_S_SH" >&6; }
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838 $as_echo "no" >&6; }
4842 # Extract the first word of "ksh", so it can be a program name with args.
4843 set dummy ksh; ac_word=$2
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845 $as_echo_n "checking for $ac_word... " >&6; }
4846 if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4847 $as_echo_n "(cached) " >&6
4849 case $TEST_MINUS_S_SH in
4851 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 test -z "$as_dir" && as_dir=.
4859 for ac_exec_ext in '' $ac_executable_extensions; do
4860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4861 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4873 if test -n "$TEST_MINUS_S_SH"; then
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4875 $as_echo "$TEST_MINUS_S_SH" >&6; }
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878 $as_echo "no" >&6; }
4882 # Extract the first word of "sh", so it can be a program name with args.
4883 set dummy sh; ac_word=$2
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4885 $as_echo_n "checking for $ac_word... " >&6; }
4886 if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4887 $as_echo_n "(cached) " >&6
4889 case $TEST_MINUS_S_SH in
4891 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4901 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4913 if test -n "$TEST_MINUS_S_SH"; then
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4915 $as_echo "$TEST_MINUS_S_SH" >&6; }
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918 $as_echo "no" >&6; }
4922 # Extract the first word of "sh", so it can be a program name with args.
4923 set dummy sh; ac_word=$2
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925 $as_echo_n "checking for $ac_word... " >&6; }
4926 if ${ac_cv_path_SH+:} false; then :
4927 $as_echo_n "(cached) " >&6
4931 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4941 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4953 if test -n "$SH"; then
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
4955 $as_echo "$SH" >&6; }
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958 $as_echo "no" >&6; }
4962 # Extract the first word of "groff", so it can be a program name with args.
4963 set dummy groff; ac_word=$2
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4965 $as_echo_n "checking for $ac_word... " >&6; }
4966 if ${ac_cv_path_GROFF+:} false; then :
4967 $as_echo_n "(cached) " >&6
4971 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 test -z "$as_dir" && as_dir=.
4979 for ac_exec_ext in '' $ac_executable_extensions; do
4980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4981 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
4982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 GROFF=$ac_cv_path_GROFF
4993 if test -n "$GROFF"; then
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
4995 $as_echo "$GROFF" >&6; }
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998 $as_echo "no" >&6; }
5002 # Extract the first word of "nroff", so it can be a program name with args.
5003 set dummy nroff; ac_word=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if ${ac_cv_path_NROFF+:} false; then :
5007 $as_echo_n "(cached) " >&6
5011 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5021 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
5022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 NROFF=$ac_cv_path_NROFF
5033 if test -n "$NROFF"; then
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
5035 $as_echo "$NROFF" >&6; }
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 $as_echo "no" >&6; }
5042 # Extract the first word of "mandoc", so it can be a program name with args.
5043 set dummy mandoc; ac_word=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if ${ac_cv_path_MANDOC+:} false; then :
5047 $as_echo_n "(cached) " >&6
5051 ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path.
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5061 ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext"
5062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5072 MANDOC=$ac_cv_path_MANDOC
5073 if test -n "$MANDOC"; then
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5
5075 $as_echo "$MANDOC" >&6; }
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078 $as_echo "no" >&6; }
5085 if test "x$MANDOC" != "x" ; then
5087 elif test "x$NROFF" != "x" ; then
5088 MANFMT="$NROFF -mandoc"
5089 elif test "x$GROFF" != "x" ; then
5090 MANFMT="$GROFF -mandoc -Tascii"
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatted found" >&5
5093 $as_echo "$as_me: WARNING: no manpage formatted found" >&2;}
5098 # Extract the first word of "groupadd", so it can be a program name with args.
5099 set dummy groupadd; ac_word=$2
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101 $as_echo_n "checking for $ac_word... " >&6; }
5102 if ${ac_cv_path_PATH_GROUPADD_PROG+:} false; then :
5103 $as_echo_n "(cached) " >&6
5105 case $PATH_GROUPADD_PROG in
5107 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5114 test -z "$as_dir" && as_dir=.
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5117 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
5129 PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
5130 if test -n "$PATH_GROUPADD_PROG"; then
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5
5132 $as_echo "$PATH_GROUPADD_PROG" >&6; }
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135 $as_echo "no" >&6; }
5139 # Extract the first word of "useradd", so it can be a program name with args.
5140 set dummy useradd; ac_word=$2
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142 $as_echo_n "checking for $ac_word... " >&6; }
5143 if ${ac_cv_path_PATH_USERADD_PROG+:} false; then :
5144 $as_echo_n "(cached) " >&6
5146 case $PATH_USERADD_PROG in
5148 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
5170 PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
5171 if test -n "$PATH_USERADD_PROG"; then
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5
5173 $as_echo "$PATH_USERADD_PROG" >&6; }
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 $as_echo "no" >&6; }
5180 # Extract the first word of "pkgmk", so it can be a program name with args.
5181 set dummy pkgmk; ac_word=$2
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183 $as_echo_n "checking for $ac_word... " >&6; }
5184 if ${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+:} false; then :
5185 $as_echo_n "(cached) " >&6
5187 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5188 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
5198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
5208 MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
5209 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5
5211 $as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; }
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5214 $as_echo "no" >&6; }
5218 if test -x /sbin/sh; then
5219 STARTUP_SCRIPT_SHELL=/sbin/sh
5222 STARTUP_SCRIPT_SHELL=/bin/sh
5227 # Check whether --enable-largefile was given.
5228 if test "${enable_largefile+set}" = set; then :
5229 enableval=$enable_largefile;
5232 if test "$enable_largefile" != no; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5235 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5236 if ${ac_cv_sys_largefile_CC+:} false; then :
5237 $as_echo_n "(cached) " >&6
5239 ac_cv_sys_largefile_CC=no
5240 if test "$GCC" != yes; then
5243 # IRIX 6.2 and later do not support large files by default,
5244 # so use the C compiler's -n32 option if that helps.
5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246 /* end confdefs.h. */
5247 #include <sys/types.h>
5248 /* Check that off_t can represent 2**63 - 1 correctly.
5249 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5250 since some C++ compilers masquerading as C compilers
5251 incorrectly reject 9223372036854775807. */
5252 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5253 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5254 && LARGE_OFF_T % 2147483647 == 1)
5264 if ac_fn_c_try_compile "$LINENO"; then :
5267 rm -f core conftest.err conftest.$ac_objext
5269 if ac_fn_c_try_compile "$LINENO"; then :
5270 ac_cv_sys_largefile_CC=' -n32'; break
5272 rm -f core conftest.err conftest.$ac_objext
5276 rm -f conftest.$ac_ext
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5280 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5281 if test "$ac_cv_sys_largefile_CC" != no; then
5282 CC=$CC$ac_cv_sys_largefile_CC
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5286 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5287 if ${ac_cv_sys_file_offset_bits+:} false; then :
5288 $as_echo_n "(cached) " >&6
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5293 #include <sys/types.h>
5294 /* Check that off_t can represent 2**63 - 1 correctly.
5295 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5296 since some C++ compilers masquerading as C compilers
5297 incorrectly reject 9223372036854775807. */
5298 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5299 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5300 && LARGE_OFF_T % 2147483647 == 1)
5310 if ac_fn_c_try_compile "$LINENO"; then :
5311 ac_cv_sys_file_offset_bits=no; break
5313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5316 #define _FILE_OFFSET_BITS 64
5317 #include <sys/types.h>
5318 /* Check that off_t can represent 2**63 - 1 correctly.
5319 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5320 since some C++ compilers masquerading as C compilers
5321 incorrectly reject 9223372036854775807. */
5322 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5323 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5324 && LARGE_OFF_T % 2147483647 == 1)
5334 if ac_fn_c_try_compile "$LINENO"; then :
5335 ac_cv_sys_file_offset_bits=64; break
5337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5338 ac_cv_sys_file_offset_bits=unknown
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5343 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5344 case $ac_cv_sys_file_offset_bits in #(
5347 cat >>confdefs.h <<_ACEOF
5348 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5353 if test $ac_cv_sys_file_offset_bits = unknown; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5355 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5356 if ${ac_cv_sys_large_files+:} false; then :
5357 $as_echo_n "(cached) " >&6
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h. */
5362 #include <sys/types.h>
5363 /* Check that off_t can represent 2**63 - 1 correctly.
5364 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5365 since some C++ compilers masquerading as C compilers
5366 incorrectly reject 9223372036854775807. */
5367 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5368 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5369 && LARGE_OFF_T % 2147483647 == 1)
5379 if ac_fn_c_try_compile "$LINENO"; then :
5380 ac_cv_sys_large_files=no; break
5382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5385 #define _LARGE_FILES 1
5386 #include <sys/types.h>
5387 /* Check that off_t can represent 2**63 - 1 correctly.
5388 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5389 since some C++ compilers masquerading as C compilers
5390 incorrectly reject 9223372036854775807. */
5391 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5392 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5393 && LARGE_OFF_T % 2147483647 == 1)
5403 if ac_fn_c_try_compile "$LINENO"; then :
5404 ac_cv_sys_large_files=1; break
5406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 ac_cv_sys_large_files=unknown
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5412 $as_echo "$ac_cv_sys_large_files" >&6; }
5413 case $ac_cv_sys_large_files in #(
5416 cat >>confdefs.h <<_ACEOF
5417 #define _LARGE_FILES $ac_cv_sys_large_files
5428 if test -z "$AR" ; then
5429 as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5
5432 # Use LOGIN_PROGRAM from environment if possible
5433 if test ! -z "$LOGIN_PROGRAM" ; then
5435 cat >>confdefs.h <<_ACEOF
5436 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5441 # Extract the first word of "login", so it can be a program name with args.
5442 set dummy login; ac_word=$2
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5444 $as_echo_n "checking for $ac_word... " >&6; }
5445 if ${ac_cv_path_LOGIN_PROGRAM_FALLBACK+:} false; then :
5446 $as_echo_n "(cached) " >&6
5448 case $LOGIN_PROGRAM_FALLBACK in
5450 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 test -z "$as_dir" && as_dir=.
5458 for ac_exec_ext in '' $ac_executable_extensions; do
5459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5460 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471 LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5472 if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOGIN_PROGRAM_FALLBACK" >&5
5474 $as_echo "$LOGIN_PROGRAM_FALLBACK" >&6; }
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5481 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5482 cat >>confdefs.h <<_ACEOF
5483 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5489 # Extract the first word of "passwd", so it can be a program name with args.
5490 set dummy passwd; ac_word=$2
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5492 $as_echo_n "checking for $ac_word... " >&6; }
5493 if ${ac_cv_path_PATH_PASSWD_PROG+:} false; then :
5494 $as_echo_n "(cached) " >&6
5496 case $PATH_PASSWD_PROG in
5498 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5508 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5519 PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5520 if test -n "$PATH_PASSWD_PROG"; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5
5522 $as_echo "$PATH_PASSWD_PROG" >&6; }
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5529 if test ! -z "$PATH_PASSWD_PROG" ; then
5531 cat >>confdefs.h <<_ACEOF
5532 #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5537 if test -z "$LD" ; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5543 $as_echo_n "checking for inline... " >&6; }
5544 if ${ac_cv_c_inline+:} false; then :
5545 $as_echo_n "(cached) " >&6
5548 for ac_kw in inline __inline__ __inline; do
5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h. */
5553 static $ac_kw foo_t static_foo () {return 0; }
5554 $ac_kw foo_t foo () {return 0; }
5558 if ac_fn_c_try_compile "$LINENO"; then :
5559 ac_cv_c_inline=$ac_kw
5561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562 test "$ac_cv_c_inline" != no && break
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5567 $as_echo "$ac_cv_c_inline" >&6; }
5569 case $ac_cv_c_inline in
5572 case $ac_cv_c_inline in
5574 *) ac_val=$ac_cv_c_inline;;
5576 cat >>confdefs.h <<_ACEOF
5578 #define inline $ac_val
5585 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5587 if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
5591 ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" "
5592 #include <sys/types.h>
5593 #include <sys/param.h>
5594 #include <dev/systrace.h>
5597 if test "x$ac_cv_have_decl_SYSTR_POLICY_KILL" = xyes; then :
5598 have_systr_policy_kill=1
5601 ac_fn_c_check_decl "$LINENO" "RLIMIT_NPROC" "ac_cv_have_decl_RLIMIT_NPROC" "
5602 #include <sys/types.h>
5603 #include <sys/resource.h>
5606 if test "x$ac_cv_have_decl_RLIMIT_NPROC" = xyes; then :
5608 $as_echo "#define HAVE_RLIMIT_NPROC /**/" >>confdefs.h
5612 ac_fn_c_check_decl "$LINENO" "PR_SET_NO_NEW_PRIVS" "ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" "
5613 #include <sys/types.h>
5614 #include <linux/prctl.h>
5617 if test "x$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" = xyes; then :
5618 have_linux_no_new_privs=1
5622 use_stack_protector=1
5623 use_toolchain_hardening=1
5625 # Check whether --with-stackprotect was given.
5626 if test "${with_stackprotect+set}" = set; then :
5627 withval=$with_stackprotect;
5628 if test "x$withval" = "xno"; then
5629 use_stack_protector=0
5634 # Check whether --with-hardening was given.
5635 if test "${with_hardening+set}" = set; then :
5636 withval=$with_hardening;
5637 if test "x$withval" = "xno"; then
5638 use_toolchain_hardening=0
5643 # We use -Werror for the tests only so that we catch warnings like "this is
5644 # on by default" for things like -fPIE.
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
5646 $as_echo_n "checking if $CC supports -Werror... " >&6; }
5647 saved_CFLAGS="$CFLAGS"
5648 CFLAGS="$CFLAGS -Werror"
5649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5650 /* end confdefs.h. */
5651 int main(void) { return 0; }
5653 if ac_fn_c_try_compile "$LINENO"; then :
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5655 $as_echo "yes" >&6; }
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5659 $as_echo "no" >&6; }
5663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5664 CFLAGS="$saved_CFLAGS"
5666 if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Qunused-arguments" >&5
5669 $as_echo_n "checking if $CC supports compile flag -Qunused-arguments... " >&6; }
5670 saved_CFLAGS="$CFLAGS"
5671 CFLAGS="$CFLAGS $WERROR -Qunused-arguments"
5673 test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments"
5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h. */
5679 int main(int argc, char **argv) {
5680 /* Some math to catch -ftrapv problems in the toolchain */
5681 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5684 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5685 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5690 if ac_fn_c_try_compile "$LINENO"; then :
5692 if `grep -i "unrecognized option" conftest.err >/dev/null`
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 $as_echo "no" >&6; }
5696 CFLAGS="$saved_CFLAGS"
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5699 $as_echo "yes" >&6; }
5700 CFLAGS="$saved_CFLAGS $_define_flag"
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704 $as_echo "no" >&6; }
5705 CFLAGS="$saved_CFLAGS"
5708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunknown-warning-option" >&5
5712 $as_echo_n "checking if $CC supports compile flag -Wunknown-warning-option... " >&6; }
5713 saved_CFLAGS="$CFLAGS"
5714 CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option"
5716 test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option"
5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718 /* end confdefs.h. */
5722 int main(int argc, char **argv) {
5723 /* Some math to catch -ftrapv problems in the toolchain */
5724 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5727 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5728 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5733 if ac_fn_c_try_compile "$LINENO"; then :
5735 if `grep -i "unrecognized option" conftest.err >/dev/null`
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 $as_echo "no" >&6; }
5739 CFLAGS="$saved_CFLAGS"
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5742 $as_echo "yes" >&6; }
5743 CFLAGS="$saved_CFLAGS $_define_flag"
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }
5748 CFLAGS="$saved_CFLAGS"
5751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wall" >&5
5755 $as_echo_n "checking if $CC supports compile flag -Wall... " >&6; }
5756 saved_CFLAGS="$CFLAGS"
5757 CFLAGS="$CFLAGS $WERROR -Wall"
5759 test "x$_define_flag" = "x" && _define_flag="-Wall"
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5765 int main(int argc, char **argv) {
5766 /* Some math to catch -ftrapv problems in the toolchain */
5767 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5770 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5771 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5776 if ac_fn_c_try_compile "$LINENO"; then :
5778 if `grep -i "unrecognized option" conftest.err >/dev/null`
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781 $as_echo "no" >&6; }
5782 CFLAGS="$saved_CFLAGS"
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5785 $as_echo "yes" >&6; }
5786 CFLAGS="$saved_CFLAGS $_define_flag"
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790 $as_echo "no" >&6; }
5791 CFLAGS="$saved_CFLAGS"
5794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-arith" >&5
5798 $as_echo_n "checking if $CC supports compile flag -Wpointer-arith... " >&6; }
5799 saved_CFLAGS="$CFLAGS"
5800 CFLAGS="$CFLAGS $WERROR -Wpointer-arith"
5802 test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith"
5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h. */
5808 int main(int argc, char **argv) {
5809 /* Some math to catch -ftrapv problems in the toolchain */
5810 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5813 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5814 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5819 if ac_fn_c_try_compile "$LINENO"; then :
5821 if `grep -i "unrecognized option" conftest.err >/dev/null`
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5824 $as_echo "no" >&6; }
5825 CFLAGS="$saved_CFLAGS"
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5828 $as_echo "yes" >&6; }
5829 CFLAGS="$saved_CFLAGS $_define_flag"
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833 $as_echo "no" >&6; }
5834 CFLAGS="$saved_CFLAGS"
5837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wuninitialized" >&5
5841 $as_echo_n "checking if $CC supports compile flag -Wuninitialized... " >&6; }
5842 saved_CFLAGS="$CFLAGS"
5843 CFLAGS="$CFLAGS $WERROR -Wuninitialized"
5845 test "x$_define_flag" = "x" && _define_flag="-Wuninitialized"
5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847 /* end confdefs.h. */
5851 int main(int argc, char **argv) {
5852 /* Some math to catch -ftrapv problems in the toolchain */
5853 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5856 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5857 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5862 if ac_fn_c_try_compile "$LINENO"; then :
5864 if `grep -i "unrecognized option" conftest.err >/dev/null`
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5867 $as_echo "no" >&6; }
5868 CFLAGS="$saved_CFLAGS"
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5871 $as_echo "yes" >&6; }
5872 CFLAGS="$saved_CFLAGS $_define_flag"
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876 $as_echo "no" >&6; }
5877 CFLAGS="$saved_CFLAGS"
5880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsign-compare" >&5
5884 $as_echo_n "checking if $CC supports compile flag -Wsign-compare... " >&6; }
5885 saved_CFLAGS="$CFLAGS"
5886 CFLAGS="$CFLAGS $WERROR -Wsign-compare"
5888 test "x$_define_flag" = "x" && _define_flag="-Wsign-compare"
5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h. */
5894 int main(int argc, char **argv) {
5895 /* Some math to catch -ftrapv problems in the toolchain */
5896 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5899 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5900 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5905 if ac_fn_c_try_compile "$LINENO"; then :
5907 if `grep -i "unrecognized option" conftest.err >/dev/null`
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 $as_echo "no" >&6; }
5911 CFLAGS="$saved_CFLAGS"
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5914 $as_echo "yes" >&6; }
5915 CFLAGS="$saved_CFLAGS $_define_flag"
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 $as_echo "no" >&6; }
5920 CFLAGS="$saved_CFLAGS"
5923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wformat-security" >&5
5927 $as_echo_n "checking if $CC supports compile flag -Wformat-security... " >&6; }
5928 saved_CFLAGS="$CFLAGS"
5929 CFLAGS="$CFLAGS $WERROR -Wformat-security"
5931 test "x$_define_flag" = "x" && _define_flag="-Wformat-security"
5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933 /* end confdefs.h. */
5937 int main(int argc, char **argv) {
5938 /* Some math to catch -ftrapv problems in the toolchain */
5939 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5942 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5943 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5948 if ac_fn_c_try_compile "$LINENO"; then :
5950 if `grep -i "unrecognized option" conftest.err >/dev/null`
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953 $as_echo "no" >&6; }
5954 CFLAGS="$saved_CFLAGS"
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5957 $as_echo "yes" >&6; }
5958 CFLAGS="$saved_CFLAGS $_define_flag"
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5962 $as_echo "no" >&6; }
5963 CFLAGS="$saved_CFLAGS"
5966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsizeof-pointer-memaccess" >&5
5970 $as_echo_n "checking if $CC supports compile flag -Wsizeof-pointer-memaccess... " >&6; }
5971 saved_CFLAGS="$CFLAGS"
5972 CFLAGS="$CFLAGS $WERROR -Wsizeof-pointer-memaccess"
5974 test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess"
5975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5976 /* end confdefs.h. */
5980 int main(int argc, char **argv) {
5981 /* Some math to catch -ftrapv problems in the toolchain */
5982 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5985 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5986 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5991 if ac_fn_c_try_compile "$LINENO"; then :
5993 if `grep -i "unrecognized option" conftest.err >/dev/null`
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5996 $as_echo "no" >&6; }
5997 CFLAGS="$saved_CFLAGS"
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6000 $as_echo "yes" >&6; }
6001 CFLAGS="$saved_CFLAGS $_define_flag"
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6005 $as_echo "no" >&6; }
6006 CFLAGS="$saved_CFLAGS"
6009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-sign" >&5
6013 $as_echo_n "checking if $CC supports compile flag -Wpointer-sign... " >&6; }
6014 saved_CFLAGS="$CFLAGS"
6015 CFLAGS="$CFLAGS $WERROR -Wpointer-sign"
6016 _define_flag="-Wno-pointer-sign"
6017 test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign"
6018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6019 /* end confdefs.h. */
6023 int main(int argc, char **argv) {
6024 /* Some math to catch -ftrapv problems in the toolchain */
6025 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6028 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6029 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6034 if ac_fn_c_try_compile "$LINENO"; then :
6036 if `grep -i "unrecognized option" conftest.err >/dev/null`
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039 $as_echo "no" >&6; }
6040 CFLAGS="$saved_CFLAGS"
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6043 $as_echo "yes" >&6; }
6044 CFLAGS="$saved_CFLAGS $_define_flag"
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6048 $as_echo "no" >&6; }
6049 CFLAGS="$saved_CFLAGS"
6052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunused-result" >&5
6056 $as_echo_n "checking if $CC supports compile flag -Wunused-result... " >&6; }
6057 saved_CFLAGS="$CFLAGS"
6058 CFLAGS="$CFLAGS $WERROR -Wunused-result"
6059 _define_flag="-Wno-unused-result"
6060 test "x$_define_flag" = "x" && _define_flag="-Wunused-result"
6061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6062 /* end confdefs.h. */
6066 int main(int argc, char **argv) {
6067 /* Some math to catch -ftrapv problems in the toolchain */
6068 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6071 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6072 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6077 if ac_fn_c_try_compile "$LINENO"; then :
6079 if `grep -i "unrecognized option" conftest.err >/dev/null`
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082 $as_echo "no" >&6; }
6083 CFLAGS="$saved_CFLAGS"
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6086 $as_echo "yes" >&6; }
6087 CFLAGS="$saved_CFLAGS $_define_flag"
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091 $as_echo "no" >&6; }
6092 CFLAGS="$saved_CFLAGS"
6095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fno-strict-aliasing" >&5
6099 $as_echo_n "checking if $CC supports compile flag -fno-strict-aliasing... " >&6; }
6100 saved_CFLAGS="$CFLAGS"
6101 CFLAGS="$CFLAGS $WERROR -fno-strict-aliasing"
6103 test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing"
6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105 /* end confdefs.h. */
6109 int main(int argc, char **argv) {
6110 /* Some math to catch -ftrapv problems in the toolchain */
6111 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6114 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6115 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6120 if ac_fn_c_try_compile "$LINENO"; then :
6122 if `grep -i "unrecognized option" conftest.err >/dev/null`
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6125 $as_echo "no" >&6; }
6126 CFLAGS="$saved_CFLAGS"
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6129 $as_echo "yes" >&6; }
6130 CFLAGS="$saved_CFLAGS $_define_flag"
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6134 $as_echo "no" >&6; }
6135 CFLAGS="$saved_CFLAGS"
6138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -D_FORTIFY_SOURCE=2" >&5
6142 $as_echo_n "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... " >&6; }
6143 saved_CFLAGS="$CFLAGS"
6144 CFLAGS="$CFLAGS $WERROR -D_FORTIFY_SOURCE=2"
6146 test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2"
6147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148 /* end confdefs.h. */
6152 int main(int argc, char **argv) {
6153 /* Some math to catch -ftrapv problems in the toolchain */
6154 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6157 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6158 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6163 if ac_fn_c_try_compile "$LINENO"; then :
6165 if `grep -i "unrecognized option" conftest.err >/dev/null`
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6168 $as_echo "no" >&6; }
6169 CFLAGS="$saved_CFLAGS"
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6172 $as_echo "yes" >&6; }
6173 CFLAGS="$saved_CFLAGS $_define_flag"
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177 $as_echo "no" >&6; }
6178 CFLAGS="$saved_CFLAGS"
6181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6183 if test "x$use_toolchain_hardening" = "x1"; then
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,relro" >&5
6186 $as_echo_n "checking if $LD supports link flag -Wl,-z,relro... " >&6; }
6187 saved_LDFLAGS="$LDFLAGS"
6188 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,relro"
6190 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,relro"
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6196 int main(int argc, char **argv) {
6197 /* Some math to catch -ftrapv problems in the toolchain */
6198 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6201 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6202 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6207 if ac_fn_c_try_link "$LINENO"; then :
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6209 $as_echo "yes" >&6; }
6210 LDFLAGS="$saved_LDFLAGS $_define_flag"
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6213 $as_echo "no" >&6; }
6214 LDFLAGS="$saved_LDFLAGS"
6217 rm -f core conftest.err conftest.$ac_objext \
6218 conftest$ac_exeext conftest.$ac_ext
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,now" >&5
6222 $as_echo_n "checking if $LD supports link flag -Wl,-z,now... " >&6; }
6223 saved_LDFLAGS="$LDFLAGS"
6224 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,now"
6226 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,now"
6227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228 /* end confdefs.h. */
6232 int main(int argc, char **argv) {
6233 /* Some math to catch -ftrapv problems in the toolchain */
6234 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6237 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6238 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6243 if ac_fn_c_try_link "$LINENO"; then :
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6245 $as_echo "yes" >&6; }
6246 LDFLAGS="$saved_LDFLAGS $_define_flag"
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6249 $as_echo "no" >&6; }
6250 LDFLAGS="$saved_LDFLAGS"
6253 rm -f core conftest.err conftest.$ac_objext \
6254 conftest$ac_exeext conftest.$ac_ext
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,noexecstack" >&5
6258 $as_echo_n "checking if $LD supports link flag -Wl,-z,noexecstack... " >&6; }
6259 saved_LDFLAGS="$LDFLAGS"
6260 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,noexecstack"
6262 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,noexecstack"
6263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6264 /* end confdefs.h. */
6268 int main(int argc, char **argv) {
6269 /* Some math to catch -ftrapv problems in the toolchain */
6270 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6273 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6274 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6279 if ac_fn_c_try_link "$LINENO"; then :
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6281 $as_echo "yes" >&6; }
6282 LDFLAGS="$saved_LDFLAGS $_define_flag"
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6285 $as_echo "no" >&6; }
6286 LDFLAGS="$saved_LDFLAGS"
6289 rm -f core conftest.err conftest.$ac_objext \
6290 conftest$ac_exeext conftest.$ac_ext
6292 # NB. -ftrapv expects certain support functions to be present in
6293 # the compiler library (libgcc or similar) to detect integer operations
6294 # that can overflow. We must check that the result of enabling it
6295 # actually links. The test program compiled/linked includes a number
6296 # of integer operations that should exercise this.
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -ftrapv and linking succeeds" >&5
6299 $as_echo_n "checking if $CC supports compile flag -ftrapv and linking succeeds... " >&6; }
6300 saved_CFLAGS="$CFLAGS"
6301 CFLAGS="$CFLAGS $WERROR -ftrapv"
6303 test "x$_define_flag" = "x" && _define_flag="-ftrapv"
6304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h. */
6309 int main(int argc, char **argv) {
6310 /* Some math to catch -ftrapv problems in the toolchain */
6311 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6314 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6315 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6320 if ac_fn_c_try_link "$LINENO"; then :
6322 if `grep -i "unrecognized option" conftest.err >/dev/null`
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325 $as_echo "no" >&6; }
6326 CFLAGS="$saved_CFLAGS"
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6329 $as_echo "yes" >&6; }
6330 CFLAGS="$saved_CFLAGS $_define_flag"
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334 $as_echo "no" >&6; }
6335 CFLAGS="$saved_CFLAGS"
6338 rm -f core conftest.err conftest.$ac_objext \
6339 conftest$ac_exeext conftest.$ac_ext
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
6343 $as_echo_n "checking gcc version... " >&6; }
6344 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
6346 1.*) no_attrib_nonnull=1 ;;
6350 2.*) no_attrib_nonnull=1 ;;
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5
6354 $as_echo "$GCC_VER" >&6; }
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5
6357 $as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; }
6358 saved_CFLAGS="$CFLAGS"
6359 CFLAGS="$CFLAGS -fno-builtin-memset"
6360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h. */
6366 char b[10]; memset(b, 0, sizeof(b));
6371 if ac_fn_c_try_link "$LINENO"; then :
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6373 $as_echo "yes" >&6; }
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6376 $as_echo "no" >&6; }
6377 CFLAGS="$saved_CFLAGS"
6380 rm -f core conftest.err conftest.$ac_objext \
6381 conftest$ac_exeext conftest.$ac_ext
6383 # -fstack-protector-all doesn't always work for some GCC versions
6384 # and/or platforms, so we test if we can. If it's not supported
6385 # on a given platform gcc will emit a warning so we use -Werror.
6386 if test "x$use_stack_protector" = "x1"; then
6387 for t in -fstack-protector-strong -fstack-protector-all \
6388 -fstack-protector; do
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5
6390 $as_echo_n "checking if $CC supports $t... " >&6; }
6391 saved_CFLAGS="$CFLAGS"
6392 saved_LDFLAGS="$LDFLAGS"
6393 CFLAGS="$CFLAGS $t -Werror"
6394 LDFLAGS="$LDFLAGS $t -Werror"
6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396 /* end confdefs.h. */
6403 snprintf(x, sizeof(x), "XXX");
6409 if ac_fn_c_try_link "$LINENO"; then :
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6411 $as_echo "yes" >&6; }
6412 CFLAGS="$saved_CFLAGS $t"
6413 LDFLAGS="$saved_LDFLAGS $t"
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5
6415 $as_echo_n "checking if $t works... " >&6; }
6416 if test "$cross_compiling" = yes; then :
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5
6418 $as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
6422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423 /* end confdefs.h. */
6430 snprintf(x, sizeof(x), "XXX");
6436 if ac_fn_c_try_run "$LINENO"; then :
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6438 $as_echo "yes" >&6; }
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6442 $as_echo "no" >&6; }
6444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6445 conftest.$ac_objext conftest.beam conftest.$ac_ext
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6451 $as_echo "no" >&6; }
6454 rm -f core conftest.err conftest.$ac_objext \
6455 conftest$ac_exeext conftest.$ac_ext
6456 CFLAGS="$saved_CFLAGS"
6457 LDFLAGS="$saved_LDFLAGS"
6461 if test -z "$have_llong_max"; then
6462 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
6463 unset ac_cv_have_decl_LLONG_MAX
6464 saved_CFLAGS="$CFLAGS"
6465 CFLAGS="$CFLAGS -std=gnu99"
6466 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
6469 if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
6472 CFLAGS="$saved_CFLAGS"
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows __attribute__ on return types" >&5
6479 $as_echo_n "checking if compiler allows __attribute__ on return types... " >&6; }
6480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6481 /* end confdefs.h. */
6484 __attribute__((__unused__)) static void foo(void){return;}
6493 if ac_fn_c_try_compile "$LINENO"; then :
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6495 $as_echo "yes" >&6; }
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6498 $as_echo "no" >&6; }
6500 $as_echo "#define NO_ATTRIBUTE_ON_RETURN_TYPE 1" >>confdefs.h
6504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6506 if test "x$no_attrib_nonnull" != "x1" ; then
6508 $as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h
6513 # Check whether --with-rpath was given.
6514 if test "${with_rpath+set}" = set; then :
6515 withval=$with_rpath;
6516 if test "x$withval" = "xno" ; then
6519 if test "x$withval" = "xyes" ; then
6527 # Allow user to specify flags
6529 # Check whether --with-cflags was given.
6530 if test "${with_cflags+set}" = set; then :
6531 withval=$with_cflags;
6532 if test -n "$withval" && test "x$withval" != "xno" && \
6533 test "x${withval}" != "xyes"; then
6534 CFLAGS="$CFLAGS $withval"
6541 # Check whether --with-cppflags was given.
6542 if test "${with_cppflags+set}" = set; then :
6543 withval=$with_cppflags;
6544 if test -n "$withval" && test "x$withval" != "xno" && \
6545 test "x${withval}" != "xyes"; then
6546 CPPFLAGS="$CPPFLAGS $withval"
6553 # Check whether --with-ldflags was given.
6554 if test "${with_ldflags+set}" = set; then :
6555 withval=$with_ldflags;
6556 if test -n "$withval" && test "x$withval" != "xno" && \
6557 test "x${withval}" != "xyes"; then
6558 LDFLAGS="$LDFLAGS $withval"
6565 # Check whether --with-libs was given.
6566 if test "${with_libs+set}" = set; then :
6568 if test -n "$withval" && test "x$withval" != "xno" && \
6569 test "x${withval}" != "xyes"; then
6570 LIBS="$LIBS $withval"
6577 # Check whether --with-Werror was given.
6578 if test "${with_Werror+set}" = set; then :
6579 withval=$with_Werror;
6580 if test -n "$withval" && test "x$withval" != "xno"; then
6581 werror_flags="-Werror"
6582 if test "x${withval}" != "xyes"; then
6583 werror_flags="$withval"
6621 security/pam_appl.h \
6660 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6661 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6662 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6663 cat >>confdefs.h <<_ACEOF
6664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6672 # sys/capsicum.h requires sys/types.h
6673 for ac_header in sys/capsicum.h
6675 ac_fn_c_check_header_compile "$LINENO" "sys/capsicum.h" "ac_cv_header_sys_capsicum_h" "
6676 #ifdef HAVE_SYS_TYPES_H
6677 # include <sys/types.h>
6681 if test "x$ac_cv_header_sys_capsicum_h" = xyes; then :
6682 cat >>confdefs.h <<_ACEOF
6683 #define HAVE_SYS_CAPSICUM_H 1
6691 # lastlog.h requires sys/time.h to be included first on Solaris
6692 for ac_header in lastlog.h
6694 ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "
6695 #ifdef HAVE_SYS_TIME_H
6696 # include <sys/time.h>
6700 if test "x$ac_cv_header_lastlog_h" = xyes; then :
6701 cat >>confdefs.h <<_ACEOF
6702 #define HAVE_LASTLOG_H 1
6710 # sys/ptms.h requires sys/stream.h to be included first on Solaris
6711 for ac_header in sys/ptms.h
6713 ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" "
6714 #ifdef HAVE_SYS_STREAM_H
6715 # include <sys/stream.h>
6719 if test "x$ac_cv_header_sys_ptms_h" = xyes; then :
6720 cat >>confdefs.h <<_ACEOF
6721 #define HAVE_SYS_PTMS_H 1
6729 # login_cap.h requires sys/types.h on NetBSD
6730 for ac_header in login_cap.h
6732 ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "
6733 #include <sys/types.h>
6736 if test "x$ac_cv_header_login_cap_h" = xyes; then :
6737 cat >>confdefs.h <<_ACEOF
6738 #define HAVE_LOGIN_CAP_H 1
6746 # older BSDs need sys/param.h before sys/mount.h
6747 for ac_header in sys/mount.h
6749 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "
6750 #include <sys/param.h>
6753 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6754 cat >>confdefs.h <<_ACEOF
6755 #define HAVE_SYS_MOUNT_H 1
6763 # Android requires sys/socket.h to be included before sys/un.h
6764 for ac_header in sys/un.h
6766 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "
6767 #include <sys/types.h>
6768 #include <sys/socket.h>
6771 if test "x$ac_cv_header_sys_un_h" = xyes; then :
6772 cat >>confdefs.h <<_ACEOF
6773 #define HAVE_SYS_UN_H 1
6781 # Messages for features tested for in target-specific section
6786 # Check for some target-specific stuff
6789 # Some versions of VAC won't allow macro redefinitions at
6790 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
6791 # particularly with older versions of vac or xlc.
6792 # It also throws errors about null macro argments, but these are
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5
6795 $as_echo_n "checking if compiler allows macro redefinitions... " >&6; }
6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h. */
6799 #define testmacro foo
6800 #define testmacro bar
6809 if ac_fn_c_try_compile "$LINENO"; then :
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6811 $as_echo "yes" >&6; }
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6814 $as_echo "no" >&6; }
6815 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
6816 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
6817 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6818 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5
6825 $as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; }
6826 if (test -z "$blibpath"); then
6827 blibpath="/usr/lib:/lib"
6829 saved_LDFLAGS="$LDFLAGS"
6830 if test "$GCC" = "yes"; then
6831 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
6833 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
6835 for tryflags in $flags ;do
6836 if (test -z "$blibflags"); then
6837 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
6838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839 /* end confdefs.h. */
6849 if ac_fn_c_try_link "$LINENO"; then :
6852 rm -f core conftest.err conftest.$ac_objext \
6853 conftest$ac_exeext conftest.$ac_ext
6856 if (test -z "$blibflags"); then
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6858 $as_echo "not found" >&6; }
6859 as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5
6862 $as_echo "$blibflags" >&6; }
6864 LDFLAGS="$saved_LDFLAGS"
6865 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
6866 if test "x$ac_cv_func_authenticate" = xyes; then :
6868 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5
6872 $as_echo_n "checking for authenticate in -ls... " >&6; }
6873 if ${ac_cv_lib_s_authenticate+:} false; then :
6874 $as_echo_n "(cached) " >&6
6876 ac_check_lib_save_LIBS=$LIBS
6878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6879 /* end confdefs.h. */
6881 /* Override any GCC internal prototype to avoid an error.
6882 Use char because int might match the return type of a GCC
6883 builtin and then its argument prototype would still apply. */
6887 char authenticate ();
6891 return authenticate ();
6896 if ac_fn_c_try_link "$LINENO"; then :
6897 ac_cv_lib_s_authenticate=yes
6899 ac_cv_lib_s_authenticate=no
6901 rm -f core conftest.err conftest.$ac_objext \
6902 conftest$ac_exeext conftest.$ac_ext
6903 LIBS=$ac_check_lib_save_LIBS
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5
6906 $as_echo "$ac_cv_lib_s_authenticate" >&6; }
6907 if test "x$ac_cv_lib_s_authenticate" = xyes; then :
6908 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
6917 ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h>
6919 if test "x$ac_cv_have_decl_authenticate" = xyes; then :
6925 cat >>confdefs.h <<_ACEOF
6926 #define HAVE_DECL_AUTHENTICATE $ac_have_decl
6928 ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h>
6930 if test "x$ac_cv_have_decl_loginrestrictions" = xyes; then :
6936 cat >>confdefs.h <<_ACEOF
6937 #define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl
6939 ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h>
6941 if test "x$ac_cv_have_decl_loginsuccess" = xyes; then :
6947 cat >>confdefs.h <<_ACEOF
6948 #define HAVE_DECL_LOGINSUCCESS $ac_have_decl
6950 ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h>
6952 if test "x$ac_cv_have_decl_passwdexpired" = xyes; then :
6958 cat >>confdefs.h <<_ACEOF
6959 #define HAVE_DECL_PASSWDEXPIRED $ac_have_decl
6961 ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h>
6963 if test "x$ac_cv_have_decl_setauthdb" = xyes; then :
6969 cat >>confdefs.h <<_ACEOF
6970 #define HAVE_DECL_SETAUTHDB $ac_have_decl
6973 ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h>
6976 if test "x$ac_cv_have_decl_loginfailed" = xyes; then :
6982 cat >>confdefs.h <<_ACEOF
6983 #define HAVE_DECL_LOGINFAILED $ac_have_decl
6985 if test $ac_have_decl = 1; then :
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5
6987 $as_echo_n "checking if loginfailed takes 4 arguments... " >&6; }
6988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6989 /* end confdefs.h. */
6990 #include <usersec.h>
6994 (void)loginfailed("user","host","tty",0);
6999 if ac_fn_c_try_compile "$LINENO"; then :
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7001 $as_echo "yes" >&6; }
7003 $as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7007 $as_echo "no" >&6; }
7010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7013 for ac_func in getgrset setauthdb
7015 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7016 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7017 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7018 cat >>confdefs.h <<_ACEOF
7019 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7025 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
7029 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
7031 $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
7035 check_for_aix_broken_getaddrinfo=1
7037 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
7040 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7043 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7046 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7049 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
7052 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
7055 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7058 $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
7061 $as_echo "#define PTY_ZEROREAD 1" >>confdefs.h
7064 $as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h
7069 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
7072 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
7076 check_for_libcrypt_later=1
7077 LIBS="$LIBS /usr/lib/textreadmode.o"
7079 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
7082 $as_echo "#define USE_PIPES 1" >>confdefs.h
7085 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
7088 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
7091 $as_echo "#define NO_IPPORT_RESERVED_CONCEPT 1" >>confdefs.h
7094 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7097 $as_echo "#define SSH_IOBUFSZ 65535" >>confdefs.h
7100 $as_echo "#define FILESYSTEM_NO_BACKSLASH 1" >>confdefs.h
7102 # Cygwin defines optargs, optargs as declspec(dllimport) for historical
7103 # reasons which cause compile warnings, so we disable those warnings.
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wno-attributes" >&5
7106 $as_echo_n "checking if $CC supports compile flag -Wno-attributes... " >&6; }
7107 saved_CFLAGS="$CFLAGS"
7108 CFLAGS="$CFLAGS $WERROR -Wno-attributes"
7110 test "x$_define_flag" = "x" && _define_flag="-Wno-attributes"
7111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h. */
7116 int main(int argc, char **argv) {
7117 /* Some math to catch -ftrapv problems in the toolchain */
7118 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
7121 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
7122 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
7127 if ac_fn_c_try_compile "$LINENO"; then :
7129 if `grep -i "unrecognized option" conftest.err >/dev/null`
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132 $as_echo "no" >&6; }
7133 CFLAGS="$saved_CFLAGS"
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7136 $as_echo "yes" >&6; }
7137 CFLAGS="$saved_CFLAGS $_define_flag"
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141 $as_echo "no" >&6; }
7142 CFLAGS="$saved_CFLAGS"
7145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7150 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
7152 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7154 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7156 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5
7162 $as_echo_n "checking if we have working getaddrinfo... " >&6; }
7163 if test "$cross_compiling" = yes; then :
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5
7165 $as_echo "assume it is working" >&6; }
7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h. */
7169 #include <mach-o/dyld.h>
7170 main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
7177 if ac_fn_c_try_run "$LINENO"; then :
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5
7179 $as_echo "working" >&6; }
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
7182 $as_echo "buggy" >&6; }
7184 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7189 conftest.$ac_objext conftest.beam conftest.$ac_ext
7192 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7194 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7196 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7199 $as_echo "#define BROKEN_GLOB 1" >>confdefs.h
7202 cat >>confdefs.h <<_ACEOF
7203 #define BIND_8_COMPAT 1
7207 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
7210 $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
7213 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
7216 ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default"
7217 if test "x$ac_cv_have_decl_AU_IPv4" = xyes; then :
7221 $as_echo "#define AU_IPv4 0" >>confdefs.h
7223 #include <bsm/audit.h>
7225 $as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h
7231 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7233 for ac_func in sandbox_init
7235 ac_fn_c_check_func "$LINENO" "sandbox_init" "ac_cv_func_sandbox_init"
7236 if test "x$ac_cv_func_sandbox_init" = xyes; then :
7237 cat >>confdefs.h <<_ACEOF
7238 #define HAVE_SANDBOX_INIT 1
7244 for ac_header in sandbox.h
7246 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
7247 if test "x$ac_cv_header_sandbox_h" = xyes; then :
7248 cat >>confdefs.h <<_ACEOF
7249 #define HAVE_SANDBOX_H 1
7258 SSHDLIBS="$SSHDLIBS -lcrypt"
7259 TEST_MALLOC_OPTIONS="AFGJPRX"
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
7264 $as_echo_n "checking for socket in -lnetwork... " >&6; }
7265 if ${ac_cv_lib_network_socket+:} false; then :
7266 $as_echo_n "(cached) " >&6
7268 ac_check_lib_save_LIBS=$LIBS
7269 LIBS="-lnetwork $LIBS"
7270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h. */
7273 /* Override any GCC internal prototype to avoid an error.
7274 Use char because int might match the return type of a GCC
7275 builtin and then its argument prototype would still apply. */
7288 if ac_fn_c_try_link "$LINENO"; then :
7289 ac_cv_lib_network_socket=yes
7291 ac_cv_lib_network_socket=no
7293 rm -f core conftest.err conftest.$ac_objext \
7294 conftest$ac_exeext conftest.$ac_ext
7295 LIBS=$ac_check_lib_save_LIBS
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
7298 $as_echo "$ac_cv_lib_network_socket" >&6; }
7299 if test "x$ac_cv_lib_network_socket" = xyes; then :
7300 cat >>confdefs.h <<_ACEOF
7301 #define HAVE_LIBNETWORK 1
7304 LIBS="-lnetwork $LIBS"
7308 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
7313 # first we define all of the options common to all HP-UX releases
7314 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
7315 IPADDR_IN_DISPLAY=yes
7316 $as_echo "#define USE_PIPES 1" >>confdefs.h
7319 $as_echo "#define LOGIN_NO_ENDOPT 1" >>confdefs.h
7321 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
7324 $as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h
7326 $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h
7329 $as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5
7334 $as_echo_n "checking for t_error in -lxnet... " >&6; }
7335 if ${ac_cv_lib_xnet_t_error+:} false; then :
7336 $as_echo_n "(cached) " >&6
7338 ac_check_lib_save_LIBS=$LIBS
7340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341 /* end confdefs.h. */
7343 /* Override any GCC internal prototype to avoid an error.
7344 Use char because int might match the return type of a GCC
7345 builtin and then its argument prototype would still apply. */
7358 if ac_fn_c_try_link "$LINENO"; then :
7359 ac_cv_lib_xnet_t_error=yes
7361 ac_cv_lib_xnet_t_error=no
7363 rm -f core conftest.err conftest.$ac_objext \
7364 conftest$ac_exeext conftest.$ac_ext
7365 LIBS=$ac_check_lib_save_LIBS
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5
7368 $as_echo "$ac_cv_lib_xnet_t_error" >&6; }
7369 if test "x$ac_cv_lib_xnet_t_error" = xyes; then :
7370 cat >>confdefs.h <<_ACEOF
7371 #define HAVE_LIBXNET 1
7377 as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5
7381 # next, we define all of the options specific to major releases
7384 if test -z "$GCC"; then
7385 CFLAGS="$CFLAGS -Ae"
7390 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7393 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
7396 $as_echo "#define USE_BTMP 1" >>confdefs.h
7398 check_for_hpux_broken_getaddrinfo=1
7399 check_for_conflicting_getspnam=1
7403 # lastly, we define options specific to minor releases
7407 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
7409 disable_ptmx_check=yes
7410 LIBS="$LIBS -lsecpw"
7415 PATH="$PATH:/usr/etc"
7417 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
7419 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7421 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7423 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7426 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7428 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7432 PATH="$PATH:/usr/etc"
7434 $as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h
7437 $as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h
7440 $as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h
7442 ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob"
7443 if test "x$ac_cv_func_jlimit_startjob" = xyes; then :
7445 $as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h
7449 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
7451 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7453 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7455 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7458 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7460 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7462 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7465 *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7466 check_for_libcrypt_later=1
7467 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
7469 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
7471 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7474 $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
7477 $as_echo "#define USE_BTMP 1" >>confdefs.h
7483 check_for_libcrypt_later=1
7484 check_for_openpty_ctty_bug=1
7486 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
7489 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
7491 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7494 $as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h
7497 $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
7499 $as_echo "#define USE_BTMP 1" >>confdefs.h
7502 $as_echo "#define LINUX_OOM_ADJUST 1" >>confdefs.h
7504 inet6_default_4in6=yes
7508 $as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h
7512 # tun(4) forwarding compat code
7513 for ac_header in linux/if_tun.h
7515 ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
7516 if test "x$ac_cv_header_linux_if_tun_h" = xyes; then :
7517 cat >>confdefs.h <<_ACEOF
7518 #define HAVE_LINUX_IF_TUN_H 1
7525 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
7527 $as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h
7530 $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
7533 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
7536 for ac_header in linux/seccomp.h linux/filter.h linux/audit.h
7538 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7539 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <linux/types.h>
7541 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7542 cat >>confdefs.h <<_ACEOF
7543 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7550 for ac_func in prctl
7552 ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
7553 if test "x$ac_cv_func_prctl" = xyes; then :
7554 cat >>confdefs.h <<_ACEOF
7555 #define HAVE_PRCTL 1
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp architecture" >&5
7562 $as_echo_n "checking for seccomp architecture... " >&6; }
7566 seccomp_audit_arch=AUDIT_ARCH_X86_64
7569 seccomp_audit_arch=AUDIT_ARCH_I386
7572 seccomp_audit_arch=AUDIT_ARCH_ARM
7575 if test "x$seccomp_audit_arch" != "x" ; then
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$seccomp_audit_arch\"" >&5
7577 $as_echo "\"$seccomp_audit_arch\"" >&6; }
7579 cat >>confdefs.h <<_ACEOF
7580 #define SECCOMP_AUDIT_ARCH $seccomp_audit_arch
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: architecture not supported" >&5
7585 $as_echo "architecture not supported" >&6; }
7588 mips-sony-bsd|mips-sony-newsos4)
7590 $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
7595 check_for_libcrypt_before=1
7596 if test "x$withval" != "xno" ; then
7600 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
7602 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
7603 if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
7607 $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
7613 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
7615 TEST_MALLOC_OPTIONS="AJRX"
7617 $as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h
7620 $as_echo "#define BROKEN_READ_COMPARISON 1" >>confdefs.h
7624 check_for_libcrypt_later=1
7626 $as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h
7629 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
7631 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
7632 if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
7636 $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
7642 $as_echo "#define BROKEN_GLOB 1" >>confdefs.h
7645 $as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h
7647 TEST_MALLOC_OPTIONS="AJRX"
7648 # Preauth crypto occasionally uses file descriptors for crypto offload
7649 # and will crash if they cannot be opened.
7651 $as_echo "#define SANDBOX_SKIP_RLIMIT_NOFILE 1" >>confdefs.h
7655 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7657 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7659 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7663 conf_lastlog_location="/usr/adm/lastlog"
7664 conf_utmp_location=/etc/utmp
7665 conf_wtmp_location=/usr/adm/wtmp
7666 maildir=/usr/spool/mail
7668 $as_echo "#define HAVE_NEXT 1" >>confdefs.h
7670 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
7672 $as_echo "#define USE_PIPES 1" >>confdefs.h
7675 $as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h
7681 $as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h
7684 $as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h
7687 $as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h
7690 $as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h
7692 TEST_MALLOC_OPTIONS="AFGJPRX"
7695 if test "x$withval" != "xno" ; then
7698 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7700 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
7703 $as_echo "#define LOGIN_NEEDS_TERM 1" >>confdefs.h
7705 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
7708 $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
7710 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7712 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
7714 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7717 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7720 $as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h
7722 external_path_file=/etc/default/login
7723 # hardwire lastlog location (can't detect it on some versions)
7724 conf_lastlog_location="/var/adm/lastlog"
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5
7726 $as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; }
7727 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
7728 if test "$sol2ver" -ge 8; then
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7730 $as_echo "yes" >&6; }
7731 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
7734 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7741 # Check whether --with-solaris-contracts was given.
7742 if test "${with_solaris_contracts+set}" = set; then :
7743 withval=$with_solaris_contracts;
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5
7745 $as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; }
7746 if ${ac_cv_lib_contract_ct_tmpl_activate+:} false; then :
7747 $as_echo_n "(cached) " >&6
7749 ac_check_lib_save_LIBS=$LIBS
7750 LIBS="-lcontract $LIBS"
7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h. */
7754 /* Override any GCC internal prototype to avoid an error.
7755 Use char because int might match the return type of a GCC
7756 builtin and then its argument prototype would still apply. */
7760 char ct_tmpl_activate ();
7764 return ct_tmpl_activate ();
7769 if ac_fn_c_try_link "$LINENO"; then :
7770 ac_cv_lib_contract_ct_tmpl_activate=yes
7772 ac_cv_lib_contract_ct_tmpl_activate=no
7774 rm -f core conftest.err conftest.$ac_objext \
7775 conftest$ac_exeext conftest.$ac_ext
7776 LIBS=$ac_check_lib_save_LIBS
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
7779 $as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
7780 if test "x$ac_cv_lib_contract_ct_tmpl_activate" = xyes; then :
7782 $as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h
7784 SSHDLIBS="$SSHDLIBS -lcontract"
7792 # Check whether --with-solaris-projects was given.
7793 if test "${with_solaris_projects+set}" = set; then :
7794 withval=$with_solaris_projects;
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
7796 $as_echo_n "checking for setproject in -lproject... " >&6; }
7797 if ${ac_cv_lib_project_setproject+:} false; then :
7798 $as_echo_n "(cached) " >&6
7800 ac_check_lib_save_LIBS=$LIBS
7801 LIBS="-lproject $LIBS"
7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803 /* end confdefs.h. */
7805 /* Override any GCC internal prototype to avoid an error.
7806 Use char because int might match the return type of a GCC
7807 builtin and then its argument prototype would still apply. */
7815 return setproject ();
7820 if ac_fn_c_try_link "$LINENO"; then :
7821 ac_cv_lib_project_setproject=yes
7823 ac_cv_lib_project_setproject=no
7825 rm -f core conftest.err conftest.$ac_objext \
7826 conftest$ac_exeext conftest.$ac_ext
7827 LIBS=$ac_check_lib_save_LIBS
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
7830 $as_echo "$ac_cv_lib_project_setproject" >&6; }
7831 if test "x$ac_cv_lib_project_setproject" = xyes; then :
7833 $as_echo "#define USE_SOLARIS_PROJECTS 1" >>confdefs.h
7835 SSHDLIBS="$SSHDLIBS -lproject"
7842 TEST_SHELL=$SHELL # let configure find us a capable shell
7845 CPPFLAGS="$CPPFLAGS -DSUNOS4"
7846 for ac_func in getpwanam
7848 ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam"
7849 if test "x$ac_cv_func_getpwanam" = xyes; then :
7850 cat >>confdefs.h <<_ACEOF
7851 #define HAVE_GETPWANAM 1
7857 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7859 conf_utmp_location=/etc/utmp
7860 conf_wtmp_location=/var/adm/wtmp
7861 conf_lastlog_location=/var/adm/lastlog
7862 $as_echo "#define USE_PIPES 1" >>confdefs.h
7867 $as_echo "#define USE_PIPES 1" >>confdefs.h
7869 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7871 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7873 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7875 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7879 # /usr/ucblib MUST NOT be searched on ReliantUNIX
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
7881 $as_echo_n "checking for dlsym in -ldl... " >&6; }
7882 if ${ac_cv_lib_dl_dlsym+:} false; then :
7883 $as_echo_n "(cached) " >&6
7885 ac_check_lib_save_LIBS=$LIBS
7887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7888 /* end confdefs.h. */
7890 /* Override any GCC internal prototype to avoid an error.
7891 Use char because int might match the return type of a GCC
7892 builtin and then its argument prototype would still apply. */
7905 if ac_fn_c_try_link "$LINENO"; then :
7906 ac_cv_lib_dl_dlsym=yes
7908 ac_cv_lib_dl_dlsym=no
7910 rm -f core conftest.err conftest.$ac_objext \
7911 conftest$ac_exeext conftest.$ac_ext
7912 LIBS=$ac_check_lib_save_LIBS
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
7915 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
7916 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
7917 cat >>confdefs.h <<_ACEOF
7918 #define HAVE_LIBDL 1
7925 # -lresolv needs to be at the end of LIBS or DNS lookups break
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
7927 $as_echo_n "checking for res_query in -lresolv... " >&6; }
7928 if ${ac_cv_lib_resolv_res_query+:} false; then :
7929 $as_echo_n "(cached) " >&6
7931 ac_check_lib_save_LIBS=$LIBS
7932 LIBS="-lresolv $LIBS"
7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h. */
7936 /* Override any GCC internal prototype to avoid an error.
7937 Use char because int might match the return type of a GCC
7938 builtin and then its argument prototype would still apply. */
7946 return res_query ();
7951 if ac_fn_c_try_link "$LINENO"; then :
7952 ac_cv_lib_resolv_res_query=yes
7954 ac_cv_lib_resolv_res_query=no
7956 rm -f core conftest.err conftest.$ac_objext \
7957 conftest$ac_exeext conftest.$ac_ext
7958 LIBS=$ac_check_lib_save_LIBS
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5
7961 $as_echo "$ac_cv_lib_resolv_res_query" >&6; }
7962 if test "x$ac_cv_lib_resolv_res_query" = xyes; then :
7963 LIBS="$LIBS -lresolv"
7966 IPADDR_IN_DISPLAY=yes
7967 $as_echo "#define USE_PIPES 1" >>confdefs.h
7969 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
7971 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7973 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7975 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7977 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7979 external_path_file=/etc/default/login
7980 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
7981 # Attention: always take care to bind libsocket and libnsl before libc,
7982 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
7984 # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
7986 $as_echo "#define USE_PIPES 1" >>confdefs.h
7988 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7990 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7992 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7995 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7997 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7999 TEST_SHELL=$SHELL # let configure find us a capable shell
8001 # UnixWare 7.x, OpenUNIX 8
8003 CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf"
8005 $as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h
8007 $as_echo "#define USE_PIPES 1" >>confdefs.h
8009 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8011 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
8013 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8015 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8017 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
8019 TEST_SHELL=$SHELL # let configure find us a capable shell
8021 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
8022 maildir=/var/spool/mail
8024 $as_echo "#define BROKEN_LIBIAF 1" >>confdefs.h
8026 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5
8029 $as_echo_n "checking for getluid in -lprot... " >&6; }
8030 if ${ac_cv_lib_prot_getluid+:} false; then :
8031 $as_echo_n "(cached) " >&6
8033 ac_check_lib_save_LIBS=$LIBS
8035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h. */
8038 /* Override any GCC internal prototype to avoid an error.
8039 Use char because int might match the return type of a GCC
8040 builtin and then its argument prototype would still apply. */
8053 if ac_fn_c_try_link "$LINENO"; then :
8054 ac_cv_lib_prot_getluid=yes
8056 ac_cv_lib_prot_getluid=no
8058 rm -f core conftest.err conftest.$ac_objext \
8059 conftest$ac_exeext conftest.$ac_ext
8060 LIBS=$ac_check_lib_save_LIBS
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5
8063 $as_echo "$ac_cv_lib_prot_getluid" >&6; }
8064 if test "x$ac_cv_lib_prot_getluid" = xyes; then :
8066 for ac_func in getluid setluid
8068 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8069 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8070 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8071 cat >>confdefs.h <<_ACEOF
8072 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8078 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
8080 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
8086 *) $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
8088 check_for_libcrypt_later=1
8094 # SCO UNIX and OEM versions of SCO UNIX
8096 as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5
8098 # SCO OpenServer 5.x
8100 if test -z "$GCC"; then
8101 CFLAGS="$CFLAGS -belf"
8103 LIBS="$LIBS -lprot -lx -ltinfo -lm"
8105 $as_echo "#define USE_PIPES 1" >>confdefs.h
8107 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
8109 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
8111 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8113 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8115 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
8117 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8119 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8121 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
8123 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
8125 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
8127 for ac_func in getluid setluid
8129 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8130 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8131 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8132 cat >>confdefs.h <<_ACEOF
8133 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8140 TEST_SHELL=$SHELL # let configure find us a capable shell
8141 SKIP_DISABLE_LASTLOG_DEFINE=yes
8145 $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
8147 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8149 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8151 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8153 $as_echo "#define USE_PIPES 1" >>confdefs.h
8155 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8158 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
8162 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8164 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8166 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8168 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
8170 $as_echo "#define USE_PIPES 1" >>confdefs.h
8172 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8175 LIBS="$LIBS -lgen -lacid -ldb"
8179 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8181 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8183 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8185 $as_echo "#define USE_PIPES 1" >>confdefs.h
8187 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8189 $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
8191 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
8192 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5
8197 $as_echo_n "checking for Digital Unix SIA... " >&6; }
8200 # Check whether --with-osfsia was given.
8201 if test "${with_osfsia+set}" = set; then :
8202 withval=$with_osfsia;
8203 if test "x$withval" = "xno" ; then
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8205 $as_echo "disabled" >&6; }
8211 if test -z "$no_osfsia" ; then
8212 if test -f /etc/sia/matrix.conf; then
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8214 $as_echo "yes" >&6; }
8216 $as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h
8219 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
8221 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8223 LIBS="$LIBS -lsecurity -ldb -lm -laud"
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227 $as_echo "no" >&6; }
8229 $as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h
8233 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
8235 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8237 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8239 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8242 $as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h
8247 $as_echo "#define USE_PIPES 1" >>confdefs.h
8249 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
8251 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
8253 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
8256 $as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h
8258 enable_etc_default_login=no # has incompatible /etc/default/login
8261 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8269 $as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h
8272 $as_echo "#define BROKEN_MMAP 1" >>confdefs.h
8274 $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
8277 $as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h
8282 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
8284 $as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5
8290 $as_echo_n "checking compiler and flags for sanity... " >&6; }
8291 if test "$cross_compiling" = yes; then :
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5
8293 $as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
8296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8297 /* end confdefs.h. */
8307 if ac_fn_c_try_run "$LINENO"; then :
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8309 $as_echo "yes" >&6; }
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 $as_echo "no" >&6; }
8314 as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5
8317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8318 conftest.$ac_objext conftest.beam conftest.$ac_ext
8322 # Checks for libraries.
8323 ac_fn_c_check_func "$LINENO" "yp_match" "ac_cv_func_yp_match"
8324 if test "x$ac_cv_func_yp_match" = xyes; then :
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5
8328 $as_echo_n "checking for yp_match in -lnsl... " >&6; }
8329 if ${ac_cv_lib_nsl_yp_match+:} false; then :
8330 $as_echo_n "(cached) " >&6
8332 ac_check_lib_save_LIBS=$LIBS
8334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335 /* end confdefs.h. */
8337 /* Override any GCC internal prototype to avoid an error.
8338 Use char because int might match the return type of a GCC
8339 builtin and then its argument prototype would still apply. */
8352 if ac_fn_c_try_link "$LINENO"; then :
8353 ac_cv_lib_nsl_yp_match=yes
8355 ac_cv_lib_nsl_yp_match=no
8357 rm -f core conftest.err conftest.$ac_objext \
8358 conftest$ac_exeext conftest.$ac_ext
8359 LIBS=$ac_check_lib_save_LIBS
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5
8362 $as_echo "$ac_cv_lib_nsl_yp_match" >&6; }
8363 if test "x$ac_cv_lib_nsl_yp_match" = xyes; then :
8364 cat >>confdefs.h <<_ACEOF
8365 #define HAVE_LIBNSL 1
8374 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
8375 if test "x$ac_cv_func_setsockopt" = xyes; then :
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
8379 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
8380 if ${ac_cv_lib_socket_setsockopt+:} false; then :
8381 $as_echo_n "(cached) " >&6
8383 ac_check_lib_save_LIBS=$LIBS
8384 LIBS="-lsocket $LIBS"
8385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386 /* end confdefs.h. */
8388 /* Override any GCC internal prototype to avoid an error.
8389 Use char because int might match the return type of a GCC
8390 builtin and then its argument prototype would still apply. */
8398 return setsockopt ();
8403 if ac_fn_c_try_link "$LINENO"; then :
8404 ac_cv_lib_socket_setsockopt=yes
8406 ac_cv_lib_socket_setsockopt=no
8408 rm -f core conftest.err conftest.$ac_objext \
8409 conftest$ac_exeext conftest.$ac_ext
8410 LIBS=$ac_check_lib_save_LIBS
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
8413 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
8414 if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
8415 cat >>confdefs.h <<_ACEOF
8416 #define HAVE_LIBSOCKET 1
8419 LIBS="-lsocket $LIBS"
8426 for ac_func in dirname
8428 ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
8429 if test "x$ac_cv_func_dirname" = xyes; then :
8430 cat >>confdefs.h <<_ACEOF
8431 #define HAVE_DIRNAME 1
8433 for ac_header in libgen.h
8435 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
8436 if test "x$ac_cv_header_libgen_h" = xyes; then :
8437 cat >>confdefs.h <<_ACEOF
8438 #define HAVE_LIBGEN_H 1
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5
8448 $as_echo_n "checking for dirname in -lgen... " >&6; }
8449 if ${ac_cv_lib_gen_dirname+:} false; then :
8450 $as_echo_n "(cached) " >&6
8452 ac_check_lib_save_LIBS=$LIBS
8454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h. */
8457 /* Override any GCC internal prototype to avoid an error.
8458 Use char because int might match the return type of a GCC
8459 builtin and then its argument prototype would still apply. */
8472 if ac_fn_c_try_link "$LINENO"; then :
8473 ac_cv_lib_gen_dirname=yes
8475 ac_cv_lib_gen_dirname=no
8477 rm -f core conftest.err conftest.$ac_objext \
8478 conftest$ac_exeext conftest.$ac_ext
8479 LIBS=$ac_check_lib_save_LIBS
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5
8482 $as_echo "$ac_cv_lib_gen_dirname" >&6; }
8483 if test "x$ac_cv_lib_gen_dirname" = xyes; then :
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5
8486 $as_echo_n "checking for broken dirname... " >&6; }
8487 if ${ac_cv_have_broken_dirname+:} false; then :
8488 $as_echo_n "(cached) " >&6
8493 if test "$cross_compiling" = yes; then :
8494 ac_cv_have_broken_dirname="no"
8496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8497 /* end confdefs.h. */
8502 int main(int argc, char **argv) {
8505 strncpy(buf,"/etc", 32);
8507 if (!s || strncmp(s, "/", 32) != 0) {
8515 if ac_fn_c_try_run "$LINENO"; then :
8516 ac_cv_have_broken_dirname="no"
8518 ac_cv_have_broken_dirname="yes"
8520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8521 conftest.$ac_objext conftest.beam conftest.$ac_ext
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5
8528 $as_echo "$ac_cv_have_broken_dirname" >&6; }
8529 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
8531 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
8533 for ac_header in libgen.h
8535 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
8536 if test "x$ac_cv_header_libgen_h" = xyes; then :
8537 cat >>confdefs.h <<_ACEOF
8538 #define HAVE_LIBGEN_H 1
8554 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
8555 if test "x$ac_cv_func_getspnam" = xyes; then :
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5
8559 $as_echo_n "checking for getspnam in -lgen... " >&6; }
8560 if ${ac_cv_lib_gen_getspnam+:} false; then :
8561 $as_echo_n "(cached) " >&6
8563 ac_check_lib_save_LIBS=$LIBS
8565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8566 /* end confdefs.h. */
8568 /* Override any GCC internal prototype to avoid an error.
8569 Use char because int might match the return type of a GCC
8570 builtin and then its argument prototype would still apply. */
8583 if ac_fn_c_try_link "$LINENO"; then :
8584 ac_cv_lib_gen_getspnam=yes
8586 ac_cv_lib_gen_getspnam=no
8588 rm -f core conftest.err conftest.$ac_objext \
8589 conftest$ac_exeext conftest.$ac_ext
8590 LIBS=$ac_check_lib_save_LIBS
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5
8593 $as_echo "$ac_cv_lib_gen_getspnam" >&6; }
8594 if test "x$ac_cv_lib_gen_getspnam" = xyes; then :
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5
8601 $as_echo_n "checking for library containing basename... " >&6; }
8602 if ${ac_cv_search_basename+:} false; then :
8603 $as_echo_n "(cached) " >&6
8605 ac_func_search_save_LIBS=$LIBS
8606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8607 /* end confdefs.h. */
8609 /* Override any GCC internal prototype to avoid an error.
8610 Use char because int might match the return type of a GCC
8611 builtin and then its argument prototype would still apply. */
8624 for ac_lib in '' gen; do
8625 if test -z "$ac_lib"; then
8626 ac_res="none required"
8629 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8631 if ac_fn_c_try_link "$LINENO"; then :
8632 ac_cv_search_basename=$ac_res
8634 rm -f core conftest.err conftest.$ac_objext \
8636 if ${ac_cv_search_basename+:} false; then :
8640 if ${ac_cv_search_basename+:} false; then :
8643 ac_cv_search_basename=no
8646 LIBS=$ac_func_search_save_LIBS
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5
8649 $as_echo "$ac_cv_search_basename" >&6; }
8650 ac_res=$ac_cv_search_basename
8651 if test "$ac_res" != no; then :
8652 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8654 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
8660 # Check whether --with-zlib was given.
8661 if test "${with_zlib+set}" = set; then :
8662 withval=$with_zlib; if test "x$withval" = "xno" ; then
8663 as_fn_error $? "*** zlib is required ***" "$LINENO" 5
8664 elif test "x$withval" != "xyes"; then
8665 if test -d "$withval/lib"; then
8666 if test -n "${need_dash_r}"; then
8667 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8669 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8672 if test -n "${need_dash_r}"; then
8673 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8675 LDFLAGS="-L${withval} ${LDFLAGS}"
8678 if test -d "$withval/include"; then
8679 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8681 CPPFLAGS="-I${withval} ${CPPFLAGS}"
8688 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
8689 if test "x$ac_cv_header_zlib_h" = xyes; then :
8692 as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
8697 $as_echo_n "checking for deflate in -lz... " >&6; }
8698 if ${ac_cv_lib_z_deflate+:} false; then :
8699 $as_echo_n "(cached) " >&6
8701 ac_check_lib_save_LIBS=$LIBS
8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704 /* end confdefs.h. */
8706 /* Override any GCC internal prototype to avoid an error.
8707 Use char because int might match the return type of a GCC
8708 builtin and then its argument prototype would still apply. */
8721 if ac_fn_c_try_link "$LINENO"; then :
8722 ac_cv_lib_z_deflate=yes
8724 ac_cv_lib_z_deflate=no
8726 rm -f core conftest.err conftest.$ac_objext \
8727 conftest$ac_exeext conftest.$ac_ext
8728 LIBS=$ac_check_lib_save_LIBS
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
8731 $as_echo "$ac_cv_lib_z_deflate" >&6; }
8732 if test "x$ac_cv_lib_z_deflate" = xyes; then :
8733 cat >>confdefs.h <<_ACEOF
8741 saved_CPPFLAGS="$CPPFLAGS"
8742 saved_LDFLAGS="$LDFLAGS"
8744 if test -n "${need_dash_r}"; then
8745 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
8747 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
8749 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
8751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8752 /* end confdefs.h. */
8754 /* Override any GCC internal prototype to avoid an error.
8755 Use char because int might match the return type of a GCC
8756 builtin and then its argument prototype would still apply. */
8769 if ac_fn_c_try_link "$LINENO"; then :
8770 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
8774 as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5
8778 rm -f core conftest.err conftest.$ac_objext \
8779 conftest$ac_exeext conftest.$ac_ext
8786 # Check whether --with-zlib-version-check was given.
8787 if test "${with_zlib_version_check+set}" = set; then :
8788 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
8789 zlib_check_nonfatal=1
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5
8797 $as_echo_n "checking for possibly buggy zlib... " >&6; }
8798 if test "$cross_compiling" = yes; then :
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5
8800 $as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
8803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8804 /* end confdefs.h. */
8814 int a=0, b=0, c=0, d=0, n, v;
8815 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
8816 if (n != 3 && n != 4)
8818 v = a*1000000 + b*10000 + c*100 + d;
8819 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
8822 if (a == 1 && b == 1 && c >= 4)
8825 /* 1.2.3 and up are OK */
8835 if ac_fn_c_try_run "$LINENO"; then :
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8837 $as_echo "no" >&6; }
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8840 $as_echo "yes" >&6; }
8841 if test -z "$zlib_check_nonfatal" ; then
8842 as_fn_error $? "*** zlib too old - check config.log ***
8843 Your reported zlib version has known security problems. It's possible your
8844 vendor has fixed these problems without changing the version number. If you
8845 are sure this is the case, you can disable the check by running
8846 \"./configure --without-zlib-version-check\".
8847 If you are in doubt, upgrade zlib to version 1.2.3 or greater.
8848 See http://www.gzip.org/zlib/ for details." "$LINENO" 5
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5
8851 $as_echo "$as_me: WARNING: zlib version may have security problems" >&2;}
8855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8856 conftest.$ac_objext conftest.beam conftest.$ac_ext
8860 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
8861 if test "x$ac_cv_func_strcasecmp" = xyes; then :
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5
8865 $as_echo_n "checking for strcasecmp in -lresolv... " >&6; }
8866 if ${ac_cv_lib_resolv_strcasecmp+:} false; then :
8867 $as_echo_n "(cached) " >&6
8869 ac_check_lib_save_LIBS=$LIBS
8870 LIBS="-lresolv $LIBS"
8871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872 /* end confdefs.h. */
8874 /* Override any GCC internal prototype to avoid an error.
8875 Use char because int might match the return type of a GCC
8876 builtin and then its argument prototype would still apply. */
8884 return strcasecmp ();
8889 if ac_fn_c_try_link "$LINENO"; then :
8890 ac_cv_lib_resolv_strcasecmp=yes
8892 ac_cv_lib_resolv_strcasecmp=no
8894 rm -f core conftest.err conftest.$ac_objext \
8895 conftest$ac_exeext conftest.$ac_ext
8896 LIBS=$ac_check_lib_save_LIBS
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5
8899 $as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; }
8900 if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then :
8901 LIBS="$LIBS -lresolv"
8907 for ac_func in utimes
8909 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
8910 if test "x$ac_cv_func_utimes" = xyes; then :
8911 cat >>confdefs.h <<_ACEOF
8912 #define HAVE_UTIMES 1
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5
8917 $as_echo_n "checking for utimes in -lc89... " >&6; }
8918 if ${ac_cv_lib_c89_utimes+:} false; then :
8919 $as_echo_n "(cached) " >&6
8921 ac_check_lib_save_LIBS=$LIBS
8923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8926 /* Override any GCC internal prototype to avoid an error.
8927 Use char because int might match the return type of a GCC
8928 builtin and then its argument prototype would still apply. */
8941 if ac_fn_c_try_link "$LINENO"; then :
8942 ac_cv_lib_c89_utimes=yes
8944 ac_cv_lib_c89_utimes=no
8946 rm -f core conftest.err conftest.$ac_objext \
8947 conftest$ac_exeext conftest.$ac_ext
8948 LIBS=$ac_check_lib_save_LIBS
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5
8951 $as_echo "$ac_cv_lib_c89_utimes" >&6; }
8952 if test "x$ac_cv_lib_c89_utimes" = xyes; then :
8953 $as_echo "#define HAVE_UTIMES 1" >>confdefs.h
8963 for ac_header in bsd/libutil.h libutil.h
8965 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8966 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8967 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8968 cat >>confdefs.h <<_ACEOF
8969 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmt_scaled" >&5
8977 $as_echo_n "checking for library containing fmt_scaled... " >&6; }
8978 if ${ac_cv_search_fmt_scaled+:} false; then :
8979 $as_echo_n "(cached) " >&6
8981 ac_func_search_save_LIBS=$LIBS
8982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8983 /* end confdefs.h. */
8985 /* Override any GCC internal prototype to avoid an error.
8986 Use char because int might match the return type of a GCC
8987 builtin and then its argument prototype would still apply. */
8995 return fmt_scaled ();
9000 for ac_lib in '' util bsd; do
9001 if test -z "$ac_lib"; then
9002 ac_res="none required"
9005 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9007 if ac_fn_c_try_link "$LINENO"; then :
9008 ac_cv_search_fmt_scaled=$ac_res
9010 rm -f core conftest.err conftest.$ac_objext \
9012 if ${ac_cv_search_fmt_scaled+:} false; then :
9016 if ${ac_cv_search_fmt_scaled+:} false; then :
9019 ac_cv_search_fmt_scaled=no
9022 LIBS=$ac_func_search_save_LIBS
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmt_scaled" >&5
9025 $as_echo "$ac_cv_search_fmt_scaled" >&6; }
9026 ac_res=$ac_cv_search_fmt_scaled
9027 if test "$ac_res" != no; then :
9028 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing scan_scaled" >&5
9033 $as_echo_n "checking for library containing scan_scaled... " >&6; }
9034 if ${ac_cv_search_scan_scaled+:} false; then :
9035 $as_echo_n "(cached) " >&6
9037 ac_func_search_save_LIBS=$LIBS
9038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039 /* end confdefs.h. */
9041 /* Override any GCC internal prototype to avoid an error.
9042 Use char because int might match the return type of a GCC
9043 builtin and then its argument prototype would still apply. */
9047 char scan_scaled ();
9051 return scan_scaled ();
9056 for ac_lib in '' util bsd; do
9057 if test -z "$ac_lib"; then
9058 ac_res="none required"
9061 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9063 if ac_fn_c_try_link "$LINENO"; then :
9064 ac_cv_search_scan_scaled=$ac_res
9066 rm -f core conftest.err conftest.$ac_objext \
9068 if ${ac_cv_search_scan_scaled+:} false; then :
9072 if ${ac_cv_search_scan_scaled+:} false; then :
9075 ac_cv_search_scan_scaled=no
9078 LIBS=$ac_func_search_save_LIBS
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_scan_scaled" >&5
9081 $as_echo "$ac_cv_search_scan_scaled" >&6; }
9082 ac_res=$ac_cv_search_scan_scaled
9083 if test "$ac_res" != no; then :
9084 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5
9089 $as_echo_n "checking for library containing login... " >&6; }
9090 if ${ac_cv_search_login+:} false; then :
9091 $as_echo_n "(cached) " >&6
9093 ac_func_search_save_LIBS=$LIBS
9094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9095 /* end confdefs.h. */
9097 /* Override any GCC internal prototype to avoid an error.
9098 Use char because int might match the return type of a GCC
9099 builtin and then its argument prototype would still apply. */
9112 for ac_lib in '' util bsd; do
9113 if test -z "$ac_lib"; then
9114 ac_res="none required"
9117 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9119 if ac_fn_c_try_link "$LINENO"; then :
9120 ac_cv_search_login=$ac_res
9122 rm -f core conftest.err conftest.$ac_objext \
9124 if ${ac_cv_search_login+:} false; then :
9128 if ${ac_cv_search_login+:} false; then :
9131 ac_cv_search_login=no
9134 LIBS=$ac_func_search_save_LIBS
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5
9137 $as_echo "$ac_cv_search_login" >&6; }
9138 ac_res=$ac_cv_search_login
9139 if test "$ac_res" != no; then :
9140 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logout" >&5
9145 $as_echo_n "checking for library containing logout... " >&6; }
9146 if ${ac_cv_search_logout+:} false; then :
9147 $as_echo_n "(cached) " >&6
9149 ac_func_search_save_LIBS=$LIBS
9150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9151 /* end confdefs.h. */
9153 /* Override any GCC internal prototype to avoid an error.
9154 Use char because int might match the return type of a GCC
9155 builtin and then its argument prototype would still apply. */
9168 for ac_lib in '' util bsd; do
9169 if test -z "$ac_lib"; then
9170 ac_res="none required"
9173 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9175 if ac_fn_c_try_link "$LINENO"; then :
9176 ac_cv_search_logout=$ac_res
9178 rm -f core conftest.err conftest.$ac_objext \
9180 if ${ac_cv_search_logout+:} false; then :
9184 if ${ac_cv_search_logout+:} false; then :
9187 ac_cv_search_logout=no
9190 LIBS=$ac_func_search_save_LIBS
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logout" >&5
9193 $as_echo "$ac_cv_search_logout" >&6; }
9194 ac_res=$ac_cv_search_logout
9195 if test "$ac_res" != no; then :
9196 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logwtmp" >&5
9201 $as_echo_n "checking for library containing logwtmp... " >&6; }
9202 if ${ac_cv_search_logwtmp+:} false; then :
9203 $as_echo_n "(cached) " >&6
9205 ac_func_search_save_LIBS=$LIBS
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h. */
9209 /* Override any GCC internal prototype to avoid an error.
9210 Use char because int might match the return type of a GCC
9211 builtin and then its argument prototype would still apply. */
9224 for ac_lib in '' util bsd; do
9225 if test -z "$ac_lib"; then
9226 ac_res="none required"
9229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9231 if ac_fn_c_try_link "$LINENO"; then :
9232 ac_cv_search_logwtmp=$ac_res
9234 rm -f core conftest.err conftest.$ac_objext \
9236 if ${ac_cv_search_logwtmp+:} false; then :
9240 if ${ac_cv_search_logwtmp+:} false; then :
9243 ac_cv_search_logwtmp=no
9246 LIBS=$ac_func_search_save_LIBS
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logwtmp" >&5
9249 $as_echo "$ac_cv_search_logwtmp" >&6; }
9250 ac_res=$ac_cv_search_logwtmp
9251 if test "$ac_res" != no; then :
9252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
9257 $as_echo_n "checking for library containing openpty... " >&6; }
9258 if ${ac_cv_search_openpty+:} false; then :
9259 $as_echo_n "(cached) " >&6
9261 ac_func_search_save_LIBS=$LIBS
9262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263 /* end confdefs.h. */
9265 /* Override any GCC internal prototype to avoid an error.
9266 Use char because int might match the return type of a GCC
9267 builtin and then its argument prototype would still apply. */
9280 for ac_lib in '' util bsd; do
9281 if test -z "$ac_lib"; then
9282 ac_res="none required"
9285 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9287 if ac_fn_c_try_link "$LINENO"; then :
9288 ac_cv_search_openpty=$ac_res
9290 rm -f core conftest.err conftest.$ac_objext \
9292 if ${ac_cv_search_openpty+:} false; then :
9296 if ${ac_cv_search_openpty+:} false; then :
9299 ac_cv_search_openpty=no
9302 LIBS=$ac_func_search_save_LIBS
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
9305 $as_echo "$ac_cv_search_openpty" >&6; }
9306 ac_res=$ac_cv_search_openpty
9307 if test "$ac_res" != no; then :
9308 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing updwtmp" >&5
9313 $as_echo_n "checking for library containing updwtmp... " >&6; }
9314 if ${ac_cv_search_updwtmp+:} false; then :
9315 $as_echo_n "(cached) " >&6
9317 ac_func_search_save_LIBS=$LIBS
9318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9319 /* end confdefs.h. */
9321 /* Override any GCC internal prototype to avoid an error.
9322 Use char because int might match the return type of a GCC
9323 builtin and then its argument prototype would still apply. */
9336 for ac_lib in '' util bsd; do
9337 if test -z "$ac_lib"; then
9338 ac_res="none required"
9341 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9343 if ac_fn_c_try_link "$LINENO"; then :
9344 ac_cv_search_updwtmp=$ac_res
9346 rm -f core conftest.err conftest.$ac_objext \
9348 if ${ac_cv_search_updwtmp+:} false; then :
9352 if ${ac_cv_search_updwtmp+:} false; then :
9355 ac_cv_search_updwtmp=no
9358 LIBS=$ac_func_search_save_LIBS
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_updwtmp" >&5
9361 $as_echo "$ac_cv_search_updwtmp" >&6; }
9362 ac_res=$ac_cv_search_updwtmp
9363 if test "$ac_res" != no; then :
9364 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9368 for ac_func in fmt_scaled scan_scaled login logout openpty updwtmp logwtmp
9370 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9371 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9372 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9373 cat >>confdefs.h <<_ACEOF
9374 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9381 # On some platforms, inet_ntop may be found in libresolv or libnsl.
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
9383 $as_echo_n "checking for library containing inet_ntop... " >&6; }
9384 if ${ac_cv_search_inet_ntop+:} false; then :
9385 $as_echo_n "(cached) " >&6
9387 ac_func_search_save_LIBS=$LIBS
9388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h. */
9391 /* Override any GCC internal prototype to avoid an error.
9392 Use char because int might match the return type of a GCC
9393 builtin and then its argument prototype would still apply. */
9401 return inet_ntop ();
9406 for ac_lib in '' resolv nsl; do
9407 if test -z "$ac_lib"; then
9408 ac_res="none required"
9411 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9413 if ac_fn_c_try_link "$LINENO"; then :
9414 ac_cv_search_inet_ntop=$ac_res
9416 rm -f core conftest.err conftest.$ac_objext \
9418 if ${ac_cv_search_inet_ntop+:} false; then :
9422 if ${ac_cv_search_inet_ntop+:} false; then :
9425 ac_cv_search_inet_ntop=no
9428 LIBS=$ac_func_search_save_LIBS
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
9431 $as_echo "$ac_cv_search_inet_ntop" >&6; }
9432 ac_res=$ac_cv_search_inet_ntop
9433 if test "$ac_res" != no; then :
9434 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9439 for ac_func in strftime
9441 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
9442 if test "x$ac_cv_func_strftime" = xyes; then :
9443 cat >>confdefs.h <<_ACEOF
9444 #define HAVE_STRFTIME 1
9448 # strftime is in -lintl on SCO UNIX.
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
9450 $as_echo_n "checking for strftime in -lintl... " >&6; }
9451 if ${ac_cv_lib_intl_strftime+:} false; then :
9452 $as_echo_n "(cached) " >&6
9454 ac_check_lib_save_LIBS=$LIBS
9456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9457 /* end confdefs.h. */
9459 /* Override any GCC internal prototype to avoid an error.
9460 Use char because int might match the return type of a GCC
9461 builtin and then its argument prototype would still apply. */
9474 if ac_fn_c_try_link "$LINENO"; then :
9475 ac_cv_lib_intl_strftime=yes
9477 ac_cv_lib_intl_strftime=no
9479 rm -f core conftest.err conftest.$ac_objext \
9480 conftest$ac_exeext conftest.$ac_ext
9481 LIBS=$ac_check_lib_save_LIBS
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
9484 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
9485 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
9486 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
9495 # Check for ALTDIRFUNC glob() extension
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5
9497 $as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; }
9498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h. */
9502 #ifdef GLOB_ALTDIRFUNC
9507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9508 $EGREP "FOUNDIT" >/dev/null 2>&1; then :
9511 $as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9514 $as_echo "yes" >&6; }
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9519 $as_echo "no" >&6; }
9526 # Check for g.gl_matchc glob() extension
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5
9528 $as_echo_n "checking for gl_matchc field in glob_t... " >&6; }
9529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530 /* end confdefs.h. */
9535 glob_t g; g.gl_matchc = 1;
9540 if ac_fn_c_try_compile "$LINENO"; then :
9543 $as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9546 $as_echo "yes" >&6; }
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9551 $as_echo "no" >&6; }
9554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9556 # Check for g.gl_statv glob() extension
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5
9558 $as_echo_n "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... " >&6; }
9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560 /* end confdefs.h. */
9566 #ifndef GLOB_KEEPSTAT
9567 #error "glob does not support GLOB_KEEPSTAT extension"
9576 if ac_fn_c_try_compile "$LINENO"; then :
9579 $as_echo "#define GLOB_HAS_GL_STATV 1" >>confdefs.h
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9582 $as_echo "yes" >&6; }
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9587 $as_echo "no" >&6; }
9591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9593 ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h>
9595 if test "x$ac_cv_have_decl_GLOB_NOMATCH" = xyes; then :
9601 cat >>confdefs.h <<_ACEOF
9602 #define HAVE_DECL_GLOB_NOMATCH $ac_have_decl
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5
9607 $as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; }
9608 if test "$cross_compiling" = yes; then :
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
9611 $as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
9612 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
9617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618 /* end confdefs.h. */
9620 #include <sys/types.h>
9627 exit(sizeof(d.d_name)<=sizeof(char));
9633 if ac_fn_c_try_run "$LINENO"; then :
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9635 $as_echo "yes" >&6; }
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9639 $as_echo "no" >&6; }
9641 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
9645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9646 conftest.$ac_objext conftest.beam conftest.$ac_ext
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5
9651 $as_echo_n "checking for /proc/pid/fd directory... " >&6; }
9652 if test -d "/proc/$$/fd" ; then
9654 $as_echo "#define HAVE_PROC_PID 1" >>confdefs.h
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9657 $as_echo "yes" >&6; }
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9660 $as_echo "no" >&6; }
9663 # Check whether user wants S/Key support
9666 # Check whether --with-skey was given.
9667 if test "${with_skey+set}" = set; then :
9669 if test "x$withval" != "xno" ; then
9671 if test "x$withval" != "xyes" ; then
9672 CPPFLAGS="$CPPFLAGS -I${withval}/include"
9673 LDFLAGS="$LDFLAGS -L${withval}/lib"
9677 $as_echo "#define SKEY 1" >>confdefs.h
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for s/key support" >&5
9683 $as_echo_n "checking for s/key support... " >&6; }
9684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685 /* end confdefs.h. */
9694 char *ff = skey_keyinfo(""); ff="";
9701 if ac_fn_c_try_link "$LINENO"; then :
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9703 $as_echo "yes" >&6; }
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9707 $as_echo "no" >&6; }
9708 as_fn_error $? "** Incomplete or missing s/key libraries." "$LINENO" 5
9711 rm -f core conftest.err conftest.$ac_objext \
9712 conftest$ac_exeext conftest.$ac_ext
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if skeychallenge takes 4 arguments" >&5
9714 $as_echo_n "checking if skeychallenge takes 4 arguments... " >&6; }
9715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9716 /* end confdefs.h. */
9725 (void)skeychallenge(NULL,"name","",0);
9731 if ac_fn_c_try_compile "$LINENO"; then :
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9734 $as_echo "yes" >&6; }
9736 $as_echo "#define SKEYCHALLENGE_4ARG 1" >>confdefs.h
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9741 $as_echo "no" >&6; }
9744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9751 # Check whether user wants TCP wrappers support
9754 # Check whether --with-tcp-wrappers was given.
9755 if test "${with_tcp_wrappers+set}" = set; then :
9756 withval=$with_tcp_wrappers;
9757 if test "x$withval" != "xno" ; then
9759 saved_LDFLAGS="$LDFLAGS"
9760 saved_CPPFLAGS="$CPPFLAGS"
9761 if test -n "${withval}" && \
9762 test "x${withval}" != "xyes"; then
9763 if test -d "${withval}/lib"; then
9764 if test -n "${need_dash_r}"; then
9765 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
9767 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
9770 if test -n "${need_dash_r}"; then
9771 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
9773 LDFLAGS="-L${withval} ${LDFLAGS}"
9776 if test -d "${withval}/include"; then
9777 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
9779 CPPFLAGS="-I${withval} ${CPPFLAGS}"
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
9784 $as_echo_n "checking for libwrap... " >&6; }
9785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9786 /* end confdefs.h. */
9788 #include <sys/types.h>
9789 #include <sys/socket.h>
9790 #include <netinet/in.h>
9792 int deny_severity = 0, allow_severity = 0;
9804 if ac_fn_c_try_link "$LINENO"; then :
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9807 $as_echo "yes" >&6; }
9809 $as_echo "#define LIBWRAP 1" >>confdefs.h
9811 SSHDLIBS="$SSHDLIBS -lwrap"
9816 as_fn_error $? "*** libwrap missing" "$LINENO" 5
9820 rm -f core conftest.err conftest.$ac_objext \
9821 conftest$ac_exeext conftest.$ac_ext
9829 # Check whether user wants to use ldns
9832 # Check whether --with-ldns was given.
9833 if test "${with_ldns+set}" = set; then :
9835 if test "x$withval" != "xno" ; then
9837 if test "x$withval" != "xyes" ; then
9838 CPPFLAGS="$CPPFLAGS -I${withval}/include"
9839 LDFLAGS="$LDFLAGS -L${withval}/lib"
9843 $as_echo "#define HAVE_LDNS 1" >>confdefs.h
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns support" >&5
9849 $as_echo_n "checking for ldns support... " >&6; }
9850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851 /* end confdefs.h. */
9856 #include <ldns/ldns.h>
9857 int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); }
9861 if ac_fn_c_try_link "$LINENO"; then :
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9863 $as_echo "yes" >&6; }
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9867 $as_echo "no" >&6; }
9868 as_fn_error $? "** Incomplete or missing ldns libraries." "$LINENO" 5
9871 rm -f core conftest.err conftest.$ac_objext \
9872 conftest$ac_exeext conftest.$ac_ext
9879 # Check whether user wants libedit support
9882 # Check whether --with-libedit was given.
9883 if test "${with_libedit+set}" = set; then :
9884 withval=$with_libedit; if test "x$withval" != "xno" ; then
9885 if test "x$withval" = "xyes" ; then
9886 if test -n "$ac_tool_prefix"; then
9887 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9888 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9890 $as_echo_n "checking for $ac_word... " >&6; }
9891 if ${ac_cv_path_PKGCONFIG+:} false; then :
9892 $as_echo_n "(cached) " >&6
9896 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
9899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9903 test -z "$as_dir" && as_dir=.
9904 for ac_exec_ext in '' $ac_executable_extensions; do
9905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9906 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
9907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9917 PKGCONFIG=$ac_cv_path_PKGCONFIG
9918 if test -n "$PKGCONFIG"; then
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
9920 $as_echo "$PKGCONFIG" >&6; }
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9923 $as_echo "no" >&6; }
9928 if test -z "$ac_cv_path_PKGCONFIG"; then
9929 ac_pt_PKGCONFIG=$PKGCONFIG
9930 # Extract the first word of "pkg-config", so it can be a program name with args.
9931 set dummy pkg-config; ac_word=$2
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9933 $as_echo_n "checking for $ac_word... " >&6; }
9934 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
9935 $as_echo_n "(cached) " >&6
9937 case $ac_pt_PKGCONFIG in
9939 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
9942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9946 test -z "$as_dir" && as_dir=.
9947 for ac_exec_ext in '' $ac_executable_extensions; do
9948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9949 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
9950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9960 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
9961 if test -n "$ac_pt_PKGCONFIG"; then
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
9963 $as_echo "$ac_pt_PKGCONFIG" >&6; }
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9966 $as_echo "no" >&6; }
9969 if test "x$ac_pt_PKGCONFIG" = x; then
9972 case $cross_compiling:$ac_tool_warned in
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9976 ac_tool_warned=yes ;;
9978 PKGCONFIG=$ac_pt_PKGCONFIG
9981 PKGCONFIG="$ac_cv_path_PKGCONFIG"
9984 if test "x$PKGCONFIG" != "xno"; then
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5
9986 $as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; }
9987 if "$PKGCONFIG" libedit; then
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9989 $as_echo "yes" >&6; }
9990 use_pkgconfig_for_libedit=yes
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9993 $as_echo "no" >&6; }
9997 CPPFLAGS="$CPPFLAGS -I${withval}/include"
9998 if test -n "${need_dash_r}"; then
9999 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
10001 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
10004 if test "x$use_pkgconfig_for_libedit" = "xyes"; then
10005 LIBEDIT=`$PKGCONFIG --libs libedit`
10006 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
10008 LIBEDIT="-ledit -lcurses"
10010 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5
10012 $as_echo_n "checking for el_init in -ledit... " >&6; }
10013 if ${ac_cv_lib_edit_el_init+:} false; then :
10014 $as_echo_n "(cached) " >&6
10016 ac_check_lib_save_LIBS=$LIBS
10017 LIBS="-ledit $OTHERLIBS
10019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10020 /* end confdefs.h. */
10022 /* Override any GCC internal prototype to avoid an error.
10023 Use char because int might match the return type of a GCC
10024 builtin and then its argument prototype would still apply. */
10037 if ac_fn_c_try_link "$LINENO"; then :
10038 ac_cv_lib_edit_el_init=yes
10040 ac_cv_lib_edit_el_init=no
10042 rm -f core conftest.err conftest.$ac_objext \
10043 conftest$ac_exeext conftest.$ac_ext
10044 LIBS=$ac_check_lib_save_LIBS
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5
10047 $as_echo "$ac_cv_lib_edit_el_init" >&6; }
10048 if test "x$ac_cv_lib_edit_el_init" = xyes; then :
10050 $as_echo "#define USE_LIBEDIT 1" >>confdefs.h
10056 as_fn_error $? "libedit not found" "$LINENO" 5
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5
10060 $as_echo_n "checking if libedit version is compatible... " >&6; }
10061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10062 /* end confdefs.h. */
10063 #include <histedit.h>
10069 el_init("", NULL, NULL, NULL);
10076 if ac_fn_c_try_compile "$LINENO"; then :
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10078 $as_echo "yes" >&6; }
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10081 $as_echo "no" >&6; }
10082 as_fn_error $? "libedit version is not compatible" "$LINENO" 5
10085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10093 # Check whether --with-audit was given.
10094 if test "${with_audit+set}" = set; then :
10095 withval=$with_audit;
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5
10097 $as_echo_n "checking for supported audit module... " >&6; }
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5
10101 $as_echo "bsm" >&6; }
10103 for ac_header in bsm/audit.h
10105 ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" "
10112 if test "x$ac_cv_header_bsm_audit_h" = xyes; then :
10113 cat >>confdefs.h <<_ACEOF
10114 #define HAVE_BSM_AUDIT_H 1
10118 as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5
10124 $as_echo_n "checking for getaudit in -lbsm... " >&6; }
10125 if ${ac_cv_lib_bsm_getaudit+:} false; then :
10126 $as_echo_n "(cached) " >&6
10128 ac_check_lib_save_LIBS=$LIBS
10130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10131 /* end confdefs.h. */
10133 /* Override any GCC internal prototype to avoid an error.
10134 Use char because int might match the return type of a GCC
10135 builtin and then its argument prototype would still apply. */
10143 return getaudit ();
10148 if ac_fn_c_try_link "$LINENO"; then :
10149 ac_cv_lib_bsm_getaudit=yes
10151 ac_cv_lib_bsm_getaudit=no
10153 rm -f core conftest.err conftest.$ac_objext \
10154 conftest$ac_exeext conftest.$ac_ext
10155 LIBS=$ac_check_lib_save_LIBS
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5
10158 $as_echo "$ac_cv_lib_bsm_getaudit" >&6; }
10159 if test "x$ac_cv_lib_bsm_getaudit" = xyes; then :
10160 cat >>confdefs.h <<_ACEOF
10161 #define HAVE_LIBBSM 1
10167 as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5
10170 for ac_func in getaudit
10172 ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit"
10173 if test "x$ac_cv_func_getaudit" = xyes; then :
10174 cat >>confdefs.h <<_ACEOF
10175 #define HAVE_GETAUDIT 1
10179 as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5
10183 # These are optional
10184 for ac_func in getaudit_addr aug_get_machine
10186 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10187 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10188 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10189 cat >>confdefs.h <<_ACEOF
10190 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10197 $as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h
10199 if test "$sol2ver" -ge 11; then
10200 SSHDLIBS="$SSHDLIBS -lscf"
10202 $as_echo "#define BROKEN_BSM_API 1" >>confdefs.h
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5
10208 $as_echo "linux" >&6; }
10210 for ac_header in libaudit.h
10212 ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
10213 if test "x$ac_cv_header_libaudit_h" = xyes; then :
10214 cat >>confdefs.h <<_ACEOF
10215 #define HAVE_LIBAUDIT_H 1
10222 SSHDLIBS="$SSHDLIBS -laudit"
10224 $as_echo "#define USE_LINUX_AUDIT 1" >>confdefs.h
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
10230 $as_echo "debug" >&6; }
10232 $as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10237 $as_echo "no" >&6; }
10240 as_fn_error $? "Unknown audit module $withval" "$LINENO" 5
10248 # Check whether --with-pie was given.
10249 if test "${with_pie+set}" = set; then :
10251 if test "x$withval" = "xno"; then
10254 if test "x$withval" = "xyes"; then
10261 if test "x$use_pie" = "x"; then
10264 if test "x$use_toolchain_hardening" != "x1" && test "x$use_pie" = "xauto"; then
10265 # Turn off automatic PIE when toolchain hardening is off.
10268 if test "x$use_pie" = "xauto"; then
10269 # Automatic PIE requires gcc >= 4.x
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.x" >&5
10271 $as_echo_n "checking for gcc >= 4.x... " >&6; }
10272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10273 /* end confdefs.h. */
10275 #if !defined(__GNUC__) || __GNUC__ < 4
10276 #error gcc is too old
10280 if ac_fn_c_try_compile "$LINENO"; then :
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10282 $as_echo "yes" >&6; }
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10285 $as_echo "no" >&6; }
10289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10291 if test "x$use_pie" != "xno"; then
10292 SAVED_CFLAGS="$CFLAGS"
10293 SAVED_LDFLAGS="$LDFLAGS"
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fPIE" >&5
10296 $as_echo_n "checking if $CC supports compile flag -fPIE... " >&6; }
10297 saved_CFLAGS="$CFLAGS"
10298 CFLAGS="$CFLAGS $WERROR -fPIE"
10300 test "x$_define_flag" = "x" && _define_flag="-fPIE"
10301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10302 /* end confdefs.h. */
10304 #include <stdlib.h>
10306 int main(int argc, char **argv) {
10307 /* Some math to catch -ftrapv problems in the toolchain */
10308 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
10310 double m = l / 0.5;
10311 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
10312 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
10317 if ac_fn_c_try_compile "$LINENO"; then :
10319 if `grep -i "unrecognized option" conftest.err >/dev/null`
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10322 $as_echo "no" >&6; }
10323 CFLAGS="$saved_CFLAGS"
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10326 $as_echo "yes" >&6; }
10327 CFLAGS="$saved_CFLAGS $_define_flag"
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10331 $as_echo "no" >&6; }
10332 CFLAGS="$saved_CFLAGS"
10335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -pie" >&5
10339 $as_echo_n "checking if $LD supports link flag -pie... " >&6; }
10340 saved_LDFLAGS="$LDFLAGS"
10341 LDFLAGS="$LDFLAGS $WERROR -pie"
10343 test "x$_define_flag" = "x" && _define_flag="-pie"
10344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10345 /* end confdefs.h. */
10347 #include <stdlib.h>
10349 int main(int argc, char **argv) {
10350 /* Some math to catch -ftrapv problems in the toolchain */
10351 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
10353 double m = l / 0.5;
10354 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
10355 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
10360 if ac_fn_c_try_link "$LINENO"; then :
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10362 $as_echo "yes" >&6; }
10363 LDFLAGS="$saved_LDFLAGS $_define_flag"
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10366 $as_echo "no" >&6; }
10367 LDFLAGS="$saved_LDFLAGS"
10370 rm -f core conftest.err conftest.$ac_objext \
10371 conftest$ac_exeext conftest.$ac_ext
10373 # We use both -fPIE and -pie or neither.
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether both -fPIE and -pie are supported" >&5
10375 $as_echo_n "checking whether both -fPIE and -pie are supported... " >&6; }
10376 if echo "x $CFLAGS" | grep ' -fPIE' >/dev/null 2>&1 && \
10377 echo "x $LDFLAGS" | grep ' -pie' >/dev/null 2>&1 ; then
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10379 $as_echo "yes" >&6; }
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10382 $as_echo "no" >&6; }
10383 CFLAGS="$SAVED_CFLAGS"
10384 LDFLAGS="$SAVED_LDFLAGS"
10389 Blowfish_initstate \
10390 Blowfish_expandstate \
10391 Blowfish_expand0state \
10392 Blowfish_stream2word \
10499 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10500 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10501 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10502 cat >>confdefs.h <<_ACEOF
10503 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10511 /* end confdefs.h. */
10516 return (isblank('a'));
10521 if ac_fn_c_try_link "$LINENO"; then :
10523 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
10527 rm -f core conftest.err conftest.$ac_objext \
10528 conftest$ac_exeext conftest.$ac_ext
10530 # PKCS#11 support requires dlopen() and co
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10532 $as_echo_n "checking for library containing dlopen... " >&6; }
10533 if ${ac_cv_search_dlopen+:} false; then :
10534 $as_echo_n "(cached) " >&6
10536 ac_func_search_save_LIBS=$LIBS
10537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10538 /* end confdefs.h. */
10540 /* Override any GCC internal prototype to avoid an error.
10541 Use char because int might match the return type of a GCC
10542 builtin and then its argument prototype would still apply. */
10555 for ac_lib in '' dl; do
10556 if test -z "$ac_lib"; then
10557 ac_res="none required"
10560 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10562 if ac_fn_c_try_link "$LINENO"; then :
10563 ac_cv_search_dlopen=$ac_res
10565 rm -f core conftest.err conftest.$ac_objext \
10567 if ${ac_cv_search_dlopen+:} false; then :
10571 if ${ac_cv_search_dlopen+:} false; then :
10574 ac_cv_search_dlopen=no
10576 rm conftest.$ac_ext
10577 LIBS=$ac_func_search_save_LIBS
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10580 $as_echo "$ac_cv_search_dlopen" >&6; }
10581 ac_res=$ac_cv_search_dlopen
10582 if test "$ac_res" != no; then :
10583 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10585 $as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h
10591 # IRIX has a const char return value for gai_strerror()
10592 for ac_func in gai_strerror
10594 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
10595 if test "x$ac_cv_func_gai_strerror" = xyes; then :
10596 cat >>confdefs.h <<_ACEOF
10597 #define HAVE_GAI_STRERROR 1
10600 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
10602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10603 /* end confdefs.h. */
10605 #include <sys/types.h>
10606 #include <sys/socket.h>
10609 const char *gai_strerror(int);
10616 str = gai_strerror(0);
10622 if ac_fn_c_try_compile "$LINENO"; then :
10625 $as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h
10628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
10634 $as_echo_n "checking for library containing nanosleep... " >&6; }
10635 if ${ac_cv_search_nanosleep+:} false; then :
10636 $as_echo_n "(cached) " >&6
10638 ac_func_search_save_LIBS=$LIBS
10639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10640 /* end confdefs.h. */
10642 /* Override any GCC internal prototype to avoid an error.
10643 Use char because int might match the return type of a GCC
10644 builtin and then its argument prototype would still apply. */
10652 return nanosleep ();
10657 for ac_lib in '' rt posix4; do
10658 if test -z "$ac_lib"; then
10659 ac_res="none required"
10662 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10664 if ac_fn_c_try_link "$LINENO"; then :
10665 ac_cv_search_nanosleep=$ac_res
10667 rm -f core conftest.err conftest.$ac_objext \
10669 if ${ac_cv_search_nanosleep+:} false; then :
10673 if ${ac_cv_search_nanosleep+:} false; then :
10676 ac_cv_search_nanosleep=no
10678 rm conftest.$ac_ext
10679 LIBS=$ac_func_search_save_LIBS
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
10682 $as_echo "$ac_cv_search_nanosleep" >&6; }
10683 ac_res=$ac_cv_search_nanosleep
10684 if test "$ac_res" != no; then :
10685 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10687 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
10693 $as_echo_n "checking for library containing clock_gettime... " >&6; }
10694 if ${ac_cv_search_clock_gettime+:} false; then :
10695 $as_echo_n "(cached) " >&6
10697 ac_func_search_save_LIBS=$LIBS
10698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10699 /* end confdefs.h. */
10701 /* Override any GCC internal prototype to avoid an error.
10702 Use char because int might match the return type of a GCC
10703 builtin and then its argument prototype would still apply. */
10707 char clock_gettime ();
10711 return clock_gettime ();
10716 for ac_lib in '' rt; do
10717 if test -z "$ac_lib"; then
10718 ac_res="none required"
10721 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10723 if ac_fn_c_try_link "$LINENO"; then :
10724 ac_cv_search_clock_gettime=$ac_res
10726 rm -f core conftest.err conftest.$ac_objext \
10728 if ${ac_cv_search_clock_gettime+:} false; then :
10732 if ${ac_cv_search_clock_gettime+:} false; then :
10735 ac_cv_search_clock_gettime=no
10737 rm conftest.$ac_ext
10738 LIBS=$ac_func_search_save_LIBS
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
10741 $as_echo "$ac_cv_search_clock_gettime" >&6; }
10742 ac_res=$ac_cv_search_clock_gettime
10743 if test "$ac_res" != no; then :
10744 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10746 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
10751 ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default"
10752 if test "x$ac_cv_have_decl_getrusage" = xyes; then :
10753 for ac_func in getrusage
10755 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
10756 if test "x$ac_cv_func_getrusage" = xyes; then :
10757 cat >>confdefs.h <<_ACEOF
10758 #define HAVE_GETRUSAGE 1
10766 ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "
10767 #ifdef HAVE_STRING_H
10768 # include <string.h>
10772 if test "x$ac_cv_have_decl_strsep" = xyes; then :
10773 for ac_func in strsep
10775 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
10776 if test "x$ac_cv_func_strsep" = xyes; then :
10777 cat >>confdefs.h <<_ACEOF
10778 #define HAVE_STRSEP 1
10787 ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h>
10790 if test "x$ac_cv_have_decl_tcsendbreak" = xyes; then :
10791 $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h
10794 for ac_func in tcsendbreak
10796 ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak"
10797 if test "x$ac_cv_func_tcsendbreak" = xyes; then :
10798 cat >>confdefs.h <<_ACEOF
10799 #define HAVE_TCSENDBREAK 1
10808 ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h>
10810 if test "x$ac_cv_have_decl_h_errno" = xyes; then :
10816 cat >>confdefs.h <<_ACEOF
10817 #define HAVE_DECL_H_ERRNO $ac_have_decl
10821 ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" "
10822 #include <sys/types.h>
10823 #include <sys/socket.h>
10826 if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then :
10832 cat >>confdefs.h <<_ACEOF
10833 #define HAVE_DECL_SHUT_RD $ac_have_decl
10837 ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "
10838 #include <sys/types.h>
10839 #ifdef HAVE_SYS_STAT_H
10840 # include <sys/stat.h>
10842 #ifdef HAVE_FCNTL_H
10843 # include <fcntl.h>
10847 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
10853 cat >>confdefs.h <<_ACEOF
10854 #define HAVE_DECL_O_NONBLOCK $ac_have_decl
10858 ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" "
10859 #include <sys/types.h>
10860 #include <sys/uio.h>
10861 #include <unistd.h>
10864 if test "x$ac_cv_have_decl_writev" = xyes; then :
10870 cat >>confdefs.h <<_ACEOF
10871 #define HAVE_DECL_WRITEV $ac_have_decl
10875 ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" "
10876 #include <sys/param.h>
10879 if test "x$ac_cv_have_decl_MAXSYMLINKS" = xyes; then :
10885 cat >>confdefs.h <<_ACEOF
10886 #define HAVE_DECL_MAXSYMLINKS $ac_have_decl
10890 ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" "
10891 #include <stddef.h>
10894 if test "x$ac_cv_have_decl_offsetof" = xyes; then :
10900 cat >>confdefs.h <<_ACEOF
10901 #define HAVE_DECL_OFFSETOF $ac_have_decl
10905 # extra bits for select(2)
10906 ac_fn_c_check_decl "$LINENO" "howmany" "ac_cv_have_decl_howmany" "
10907 #include <sys/param.h>
10908 #include <sys/types.h>
10909 #ifdef HAVE_SYS_SYSMACROS_H
10910 #include <sys/sysmacros.h>
10912 #ifdef HAVE_SYS_SELECT_H
10913 #include <sys/select.h>
10915 #ifdef HAVE_SYS_TIME_H
10916 #include <sys/time.h>
10918 #ifdef HAVE_UNISTD_H
10919 #include <unistd.h>
10923 if test "x$ac_cv_have_decl_howmany" = xyes; then :
10929 cat >>confdefs.h <<_ACEOF
10930 #define HAVE_DECL_HOWMANY $ac_have_decl
10932 ac_fn_c_check_decl "$LINENO" "NFDBITS" "ac_cv_have_decl_NFDBITS" "
10933 #include <sys/param.h>
10934 #include <sys/types.h>
10935 #ifdef HAVE_SYS_SYSMACROS_H
10936 #include <sys/sysmacros.h>
10938 #ifdef HAVE_SYS_SELECT_H
10939 #include <sys/select.h>
10941 #ifdef HAVE_SYS_TIME_H
10942 #include <sys/time.h>
10944 #ifdef HAVE_UNISTD_H
10945 #include <unistd.h>
10949 if test "x$ac_cv_have_decl_NFDBITS" = xyes; then :
10955 cat >>confdefs.h <<_ACEOF
10956 #define HAVE_DECL_NFDBITS $ac_have_decl
10959 ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "
10960 #include <sys/param.h>
10961 #include <sys/types.h>
10962 #ifdef HAVE_SYS_SELECT_H
10963 #include <sys/select.h>
10965 #ifdef HAVE_SYS_TIME_H
10966 #include <sys/time.h>
10968 #ifdef HAVE_UNISTD_H
10969 #include <unistd.h>
10973 if test "x$ac_cv_type_fd_mask" = xyes; then :
10975 cat >>confdefs.h <<_ACEOF
10976 #define HAVE_FD_MASK 1
10983 for ac_func in setresuid
10985 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
10986 if test "x$ac_cv_func_setresuid" = xyes; then :
10987 cat >>confdefs.h <<_ACEOF
10988 #define HAVE_SETRESUID 1
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5
10992 $as_echo_n "checking if setresuid seems to work... " >&6; }
10993 if test "$cross_compiling" = yes; then :
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
10995 $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
10998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h. */
11001 #include <stdlib.h>
11019 if ac_fn_c_try_run "$LINENO"; then :
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11021 $as_echo "yes" >&6; }
11024 $as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
11027 $as_echo "not implemented" >&6; }
11029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11030 conftest.$ac_objext conftest.beam conftest.$ac_ext
11038 for ac_func in setresgid
11040 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
11041 if test "x$ac_cv_func_setresgid" = xyes; then :
11042 cat >>confdefs.h <<_ACEOF
11043 #define HAVE_SETRESGID 1
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5
11047 $as_echo_n "checking if setresgid seems to work... " >&6; }
11048 if test "$cross_compiling" = yes; then :
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
11050 $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
11053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11054 /* end confdefs.h. */
11056 #include <stdlib.h>
11074 if ac_fn_c_try_run "$LINENO"; then :
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11076 $as_echo "yes" >&6; }
11079 $as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
11082 $as_echo "not implemented" >&6; }
11084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11085 conftest.$ac_objext conftest.beam conftest.$ac_ext
11093 for ac_func in gettimeofday time
11095 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11096 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11097 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11098 cat >>confdefs.h <<_ACEOF
11099 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11105 for ac_func in endutent getutent getutid getutline pututline setutent
11107 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11108 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11109 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11110 cat >>confdefs.h <<_ACEOF
11111 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11117 for ac_func in utmpname
11119 ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname"
11120 if test "x$ac_cv_func_utmpname" = xyes; then :
11121 cat >>confdefs.h <<_ACEOF
11122 #define HAVE_UTMPNAME 1
11128 for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline
11130 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11131 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11132 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11133 cat >>confdefs.h <<_ACEOF
11134 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11140 for ac_func in setutxdb setutxent utmpxname
11142 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11143 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11144 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11145 cat >>confdefs.h <<_ACEOF
11146 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11152 for ac_func in getlastlogxbyname
11154 ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname"
11155 if test "x$ac_cv_func_getlastlogxbyname" = xyes; then :
11156 cat >>confdefs.h <<_ACEOF
11157 #define HAVE_GETLASTLOGXBYNAME 1
11164 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
11165 if test "x$ac_cv_func_daemon" = xyes; then :
11167 $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5
11171 $as_echo_n "checking for daemon in -lbsd... " >&6; }
11172 if ${ac_cv_lib_bsd_daemon+:} false; then :
11173 $as_echo_n "(cached) " >&6
11175 ac_check_lib_save_LIBS=$LIBS
11177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11178 /* end confdefs.h. */
11180 /* Override any GCC internal prototype to avoid an error.
11181 Use char because int might match the return type of a GCC
11182 builtin and then its argument prototype would still apply. */
11195 if ac_fn_c_try_link "$LINENO"; then :
11196 ac_cv_lib_bsd_daemon=yes
11198 ac_cv_lib_bsd_daemon=no
11200 rm -f core conftest.err conftest.$ac_objext \
11201 conftest$ac_exeext conftest.$ac_ext
11202 LIBS=$ac_check_lib_save_LIBS
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5
11205 $as_echo "$ac_cv_lib_bsd_daemon" >&6; }
11206 if test "x$ac_cv_lib_bsd_daemon" = xyes; then :
11207 LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
11215 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11216 if test "x$ac_cv_func_getpagesize" = xyes; then :
11218 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5
11222 $as_echo_n "checking for getpagesize in -lucb... " >&6; }
11223 if ${ac_cv_lib_ucb_getpagesize+:} false; then :
11224 $as_echo_n "(cached) " >&6
11226 ac_check_lib_save_LIBS=$LIBS
11228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11229 /* end confdefs.h. */
11231 /* Override any GCC internal prototype to avoid an error.
11232 Use char because int might match the return type of a GCC
11233 builtin and then its argument prototype would still apply. */
11237 char getpagesize ();
11241 return getpagesize ();
11246 if ac_fn_c_try_link "$LINENO"; then :
11247 ac_cv_lib_ucb_getpagesize=yes
11249 ac_cv_lib_ucb_getpagesize=no
11251 rm -f core conftest.err conftest.$ac_objext \
11252 conftest$ac_exeext conftest.$ac_ext
11253 LIBS=$ac_check_lib_save_LIBS
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5
11256 $as_echo "$ac_cv_lib_ucb_getpagesize" >&6; }
11257 if test "x$ac_cv_lib_ucb_getpagesize" = xyes; then :
11258 LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
11266 # Check for broken snprintf
11267 if test "x$ac_cv_func_snprintf" = "xyes" ; then
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5
11269 $as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; }
11270 if test "$cross_compiling" = yes; then :
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
11272 $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
11275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11276 /* end confdefs.h. */
11283 snprintf(b,5,"123456789");
11290 if ac_fn_c_try_run "$LINENO"; then :
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11292 $as_echo "yes" >&6; }
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11296 $as_echo "no" >&6; }
11298 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
11301 $as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
11304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11305 conftest.$ac_objext conftest.beam conftest.$ac_ext
11310 # We depend on vsnprintf returning the right thing on overflow: the
11311 # number of characters it tried to create (as per SUSv3)
11312 if test "x$ac_cv_func_vsnprintf" = "xyes" ; then
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5
11314 $as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; }
11315 if test "$cross_compiling" = yes; then :
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5
11317 $as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
11320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11321 /* end confdefs.h. */
11323 #include <sys/types.h>
11325 #include <stdarg.h>
11327 int x_snprintf(char *str, size_t count, const char *fmt, ...)
11333 ret = vsnprintf(str, count, fmt, ap);
11343 if (x_snprintf(x, 1, "%s %d", "hello", 12345) != 11)
11345 if (x_snprintf(NULL, 0, "%s %d", "hello", 12345) != 11)
11353 if ac_fn_c_try_run "$LINENO"; then :
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11355 $as_echo "yes" >&6; }
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11359 $as_echo "no" >&6; }
11361 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
11364 $as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
11367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11368 conftest.$ac_objext conftest.beam conftest.$ac_ext
11373 # On systems where [v]snprintf is broken, but is declared in stdio,
11374 # check that the fmt argument is const char * or just char *.
11375 # This is only useful for when BROKEN_SNPRINTF
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5
11377 $as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; }
11378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379 /* end confdefs.h. */
11382 int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
11394 if ac_fn_c_try_compile "$LINENO"; then :
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11396 $as_echo "yes" >&6; }
11398 $as_echo "#define SNPRINTF_CONST const" >>confdefs.h
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11402 $as_echo "no" >&6; }
11403 $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h
11406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11408 # Check for missing getpeereid (or equiv) support
11410 if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5
11412 $as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; }
11413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11414 /* end confdefs.h. */
11416 #include <sys/types.h>
11417 #include <sys/socket.h>
11421 int i = SO_PEERCRED;
11426 if ac_fn_c_try_compile "$LINENO"; then :
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11428 $as_echo "yes" >&6; }
11430 $as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11435 $as_echo "no" >&6; }
11439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11442 if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5
11444 $as_echo_n "checking for (overly) strict mkstemp... " >&6; }
11445 if test "$cross_compiling" = yes; then :
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11448 $as_echo "yes" >&6; }
11449 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
11454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11455 /* end confdefs.h. */
11457 #include <stdlib.h>
11463 char template[]="conftest.mkstemp-test";
11464 if (mkstemp(template) == -1)
11473 if ac_fn_c_try_run "$LINENO"; then :
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11476 $as_echo "no" >&6; }
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11481 $as_echo "yes" >&6; }
11483 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
11487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11488 conftest.$ac_objext conftest.beam conftest.$ac_ext
11493 if test ! -z "$check_for_openpty_ctty_bug"; then
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5
11495 $as_echo_n "checking if openpty correctly handles controlling tty... " >&6; }
11496 if test "$cross_compiling" = yes; then :
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
11499 $as_echo "cross-compiling, assuming yes" >&6; }
11503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11504 /* end confdefs.h. */
11507 #include <sys/fcntl.h>
11508 #include <sys/types.h>
11509 #include <sys/wait.h>
11516 int fd, ptyfd, ttyfd, status;
11519 if (pid < 0) { /* failed */
11521 } else if (pid > 0) { /* parent */
11522 waitpid(pid, &status, 0);
11523 if (WIFEXITED(status))
11524 exit(WEXITSTATUS(status));
11527 } else { /* child */
11528 close(0); close(1); close(2);
11530 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
11531 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
11533 exit(3); /* Acquired ctty: broken */
11535 exit(0); /* Did not acquire ctty: OK */
11542 if ac_fn_c_try_run "$LINENO"; then :
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11545 $as_echo "yes" >&6; }
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550 $as_echo "no" >&6; }
11551 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
11555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11556 conftest.$ac_objext conftest.beam conftest.$ac_ext
11561 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
11562 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
11564 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
11565 if test "$cross_compiling" = yes; then :
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
11568 $as_echo "cross-compiling, assuming yes" >&6; }
11572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11573 /* end confdefs.h. */
11576 #include <sys/socket.h>
11579 #include <netinet/in.h>
11581 #define TEST_PORT "2222"
11588 struct addrinfo *gai_ai, *ai, hints;
11589 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
11591 memset(&hints, 0, sizeof(hints));
11592 hints.ai_family = PF_UNSPEC;
11593 hints.ai_socktype = SOCK_STREAM;
11594 hints.ai_flags = AI_PASSIVE;
11596 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
11598 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
11602 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
11603 if (ai->ai_family != AF_INET6)
11606 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
11607 sizeof(ntop), strport, sizeof(strport),
11608 NI_NUMERICHOST|NI_NUMERICSERV);
11611 if (err == EAI_SYSTEM)
11612 perror("getnameinfo EAI_SYSTEM");
11614 fprintf(stderr, "getnameinfo failed: %s\n",
11615 gai_strerror(err));
11619 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
11622 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
11623 if (errno == EBADF)
11633 if ac_fn_c_try_run "$LINENO"; then :
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11636 $as_echo "yes" >&6; }
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11641 $as_echo "no" >&6; }
11642 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
11646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11647 conftest.$ac_objext conftest.beam conftest.$ac_ext
11652 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
11653 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
11655 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
11656 if test "$cross_compiling" = yes; then :
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming no" >&5
11659 $as_echo "cross-compiling, assuming no" >&6; }
11663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11664 /* end confdefs.h. */
11667 #include <sys/socket.h>
11670 #include <netinet/in.h>
11672 #define TEST_PORT "2222"
11679 struct addrinfo *gai_ai, *ai, hints;
11680 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
11682 memset(&hints, 0, sizeof(hints));
11683 hints.ai_family = PF_UNSPEC;
11684 hints.ai_socktype = SOCK_STREAM;
11685 hints.ai_flags = AI_PASSIVE;
11687 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
11689 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
11693 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
11694 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
11697 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
11698 sizeof(ntop), strport, sizeof(strport),
11699 NI_NUMERICHOST|NI_NUMERICSERV);
11701 if (ai->ai_family == AF_INET && err != 0) {
11702 perror("getnameinfo");
11712 if ac_fn_c_try_run "$LINENO"; then :
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11715 $as_echo "yes" >&6; }
11717 $as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11723 $as_echo "no" >&6; }
11724 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
11728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11729 conftest.$ac_objext conftest.beam conftest.$ac_ext
11734 if test "x$check_for_conflicting_getspnam" = "x1"; then
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5
11736 $as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; }
11737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11738 /* end confdefs.h. */
11739 #include <shadow.h>
11748 if ac_fn_c_try_compile "$LINENO"; then :
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11751 $as_echo "no" >&6; }
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11756 $as_echo "yes" >&6; }
11758 $as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h
11763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
11767 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
11768 if ${ac_cv_func_getpgrp_void+:} false; then :
11769 $as_echo_n "(cached) " >&6
11771 # Use it with a single arg.
11772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11773 /* end confdefs.h. */
11774 $ac_includes_default
11783 if ac_fn_c_try_compile "$LINENO"; then :
11784 ac_cv_func_getpgrp_void=no
11786 ac_cv_func_getpgrp_void=yes
11788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
11792 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
11793 if test $ac_cv_func_getpgrp_void = yes; then
11795 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
11800 # Search for OpenSSL
11801 saved_CPPFLAGS="$CPPFLAGS"
11802 saved_LDFLAGS="$LDFLAGS"
11804 # Check whether --with-ssl-dir was given.
11805 if test "${with_ssl_dir+set}" = set; then :
11806 withval=$with_ssl_dir;
11807 if test "x$withval" != "xno" ; then
11810 ./*|../*) withval="`pwd`/$withval"
11812 if test -d "$withval/lib"; then
11813 if test -n "${need_dash_r}"; then
11814 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
11816 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
11818 elif test -d "$withval/lib64"; then
11819 if test -n "${need_dash_r}"; then
11820 LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}"
11822 LDFLAGS="-L${withval}/lib64 ${LDFLAGS}"
11825 if test -n "${need_dash_r}"; then
11826 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
11828 LDFLAGS="-L${withval} ${LDFLAGS}"
11831 if test -d "$withval/include"; then
11832 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
11834 CPPFLAGS="-I${withval} ${CPPFLAGS}"
11841 LIBS="-lcrypto $LIBS"
11842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11843 /* end confdefs.h. */
11845 /* Override any GCC internal prototype to avoid an error.
11846 Use char because int might match the return type of a GCC
11847 builtin and then its argument prototype would still apply. */
11855 return RAND_add ();
11860 if ac_fn_c_try_link "$LINENO"; then :
11862 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
11866 if test -n "${need_dash_r}"; then
11867 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
11869 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
11871 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
11872 ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
11873 if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then :
11876 as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5
11880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11881 /* end confdefs.h. */
11883 /* Override any GCC internal prototype to avoid an error.
11884 Use char because int might match the return type of a GCC
11885 builtin and then its argument prototype would still apply. */
11893 return RAND_add ();
11898 if ac_fn_c_try_link "$LINENO"; then :
11899 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
11903 as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5
11907 rm -f core conftest.err conftest.$ac_objext \
11908 conftest$ac_exeext conftest.$ac_ext
11912 rm -f core conftest.err conftest.$ac_objext \
11913 conftest$ac_exeext conftest.$ac_ext
11915 # Determine OpenSSL header version
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5
11917 $as_echo_n "checking OpenSSL header version... " >&6; }
11918 if test "$cross_compiling" = yes; then :
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
11921 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
11925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11926 /* end confdefs.h. */
11929 #include <string.h>
11930 #include <openssl/opensslv.h>
11931 #define DATA "conftest.sslincver"
11940 fd = fopen(DATA,"w");
11944 if ((rc = fprintf(fd ,"%08x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
11953 if ac_fn_c_try_run "$LINENO"; then :
11955 ssl_header_ver=`cat conftest.sslincver`
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5
11957 $as_echo "$ssl_header_ver" >&6; }
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11962 $as_echo "not found" >&6; }
11963 as_fn_error $? "OpenSSL version header not found." "$LINENO" 5
11966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11967 conftest.$ac_objext conftest.beam conftest.$ac_ext
11971 # Determine OpenSSL library version
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5
11973 $as_echo_n "checking OpenSSL library version... " >&6; }
11974 if test "$cross_compiling" = yes; then :
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
11977 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
11981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11982 /* end confdefs.h. */
11985 #include <string.h>
11986 #include <openssl/opensslv.h>
11987 #include <openssl/crypto.h>
11988 #define DATA "conftest.ssllibver"
11997 fd = fopen(DATA,"w");
12001 if ((rc = fprintf(fd ,"%08x (%s)\n", SSLeay(),
12002 SSLeay_version(SSLEAY_VERSION))) <0)
12011 if ac_fn_c_try_run "$LINENO"; then :
12013 ssl_library_ver=`cat conftest.ssllibver`
12014 # Check version is supported.
12015 case "$ssl_library_ver" in
12016 0090[0-7]*|009080[0-5]*)
12017 as_fn_error $? "OpenSSL >= 0.9.8f required" "$LINENO" 5
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5
12022 $as_echo "$ssl_library_ver" >&6; }
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12027 $as_echo "not found" >&6; }
12028 as_fn_error $? "OpenSSL library not found." "$LINENO" 5
12031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12032 conftest.$ac_objext conftest.beam conftest.$ac_ext
12036 # XXX make --without-openssl work
12038 cat >>confdefs.h <<_ACEOF
12039 #define WITH_OPENSSL 1
12043 cat >>confdefs.h <<_ACEOF
12044 #define WITH_SSH1 1
12049 # Check whether --with-openssl-header-check was given.
12050 if test "${with_openssl_header_check+set}" = set; then :
12051 withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then
12052 openssl_check_nonfatal=1
12059 # Sanity check OpenSSL headers
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5
12061 $as_echo_n "checking whether OpenSSL's headers match the library... " >&6; }
12062 if test "$cross_compiling" = yes; then :
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
12065 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
12069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12070 /* end confdefs.h. */
12072 #include <string.h>
12073 #include <openssl/opensslv.h>
12079 exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1);
12085 if ac_fn_c_try_run "$LINENO"; then :
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12088 $as_echo "yes" >&6; }
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12093 $as_echo "no" >&6; }
12094 if test "x$openssl_check_nonfatal" = "x"; then
12095 as_fn_error $? "Your OpenSSL headers do not match your
12096 library. Check config.log for details.
12097 If you are sure your installation is consistent, you can disable the check
12098 by running \"./configure --without-openssl-header-check\".
12099 Also see contrib/findssl.sh for help identifying header/library mismatches.
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your
12103 library. Check config.log for details.
12104 Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
12105 $as_echo "$as_me: WARNING: Your OpenSSL headers do not match your
12106 library. Check config.log for details.
12107 Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
12111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12112 conftest.$ac_objext conftest.beam conftest.$ac_ext
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5
12117 $as_echo_n "checking if programs using OpenSSL functions will link... " >&6; }
12118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119 /* end confdefs.h. */
12120 #include <openssl/evp.h>
12124 SSLeay_add_all_algorithms();
12129 if ac_fn_c_try_link "$LINENO"; then :
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12132 $as_echo "yes" >&6; }
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12137 $as_echo "no" >&6; }
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5
12141 $as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; }
12142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12143 /* end confdefs.h. */
12144 #include <openssl/evp.h>
12148 SSLeay_add_all_algorithms();
12153 if ac_fn_c_try_link "$LINENO"; then :
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12156 $as_echo "yes" >&6; }
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12161 $as_echo "no" >&6; }
12166 rm -f core conftest.err conftest.$ac_objext \
12167 conftest$ac_exeext conftest.$ac_ext
12171 rm -f core conftest.err conftest.$ac_objext \
12172 conftest$ac_exeext conftest.$ac_ext
12176 DSA_generate_parameters_ex \
12177 EVP_DigestInit_ex \
12178 EVP_DigestFinal_ex \
12180 EVP_MD_CTX_cleanup \
12181 EVP_MD_CTX_copy_ex \
12183 RSA_generate_key_ex \
12184 RSA_get_default_method \
12187 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12188 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12189 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12190 cat >>confdefs.h <<_ACEOF
12191 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12199 # Check whether --with-ssl-engine was given.
12200 if test "${with_ssl_engine+set}" = set; then :
12201 withval=$with_ssl_engine; if test "x$withval" != "xno" ; then
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5
12203 $as_echo_n "checking for OpenSSL ENGINE support... " >&6; }
12204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12205 /* end confdefs.h. */
12207 #include <openssl/engine.h>
12213 ENGINE_load_builtin_engines();
12214 ENGINE_register_all_complete();
12220 if ac_fn_c_try_compile "$LINENO"; then :
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12222 $as_echo "yes" >&6; }
12224 $as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h
12228 as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5
12231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12237 # Check for OpenSSL without EVP_aes_{192,256}_cbc
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5
12239 $as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; }
12240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12241 /* end confdefs.h. */
12243 #include <string.h>
12244 #include <openssl/evp.h>
12250 exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);
12256 if ac_fn_c_try_link "$LINENO"; then :
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12259 $as_echo "no" >&6; }
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12264 $as_echo "yes" >&6; }
12266 $as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h
12271 rm -f core conftest.err conftest.$ac_objext \
12272 conftest$ac_exeext conftest.$ac_ext
12274 # Check for OpenSSL with EVP_aes_*ctr
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES CTR via EVP" >&5
12276 $as_echo_n "checking whether OpenSSL has AES CTR via EVP... " >&6; }
12277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12278 /* end confdefs.h. */
12280 #include <string.h>
12281 #include <openssl/evp.h>
12287 exit(EVP_aes_128_ctr() == NULL ||
12288 EVP_aes_192_cbc() == NULL ||
12289 EVP_aes_256_cbc() == NULL);
12295 if ac_fn_c_try_link "$LINENO"; then :
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12298 $as_echo "yes" >&6; }
12300 $as_echo "#define OPENSSL_HAVE_EVPCTR 1" >>confdefs.h
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306 $as_echo "no" >&6; }
12310 rm -f core conftest.err conftest.$ac_objext \
12311 conftest$ac_exeext conftest.$ac_ext
12313 # Check for OpenSSL with EVP_aes_*gcm
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES GCM via EVP" >&5
12315 $as_echo_n "checking whether OpenSSL has AES GCM via EVP... " >&6; }
12316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12317 /* end confdefs.h. */
12319 #include <string.h>
12320 #include <openssl/evp.h>
12326 exit(EVP_aes_128_gcm() == NULL ||
12327 EVP_aes_256_gcm() == NULL ||
12328 EVP_CTRL_GCM_SET_IV_FIXED == 0 ||
12329 EVP_CTRL_GCM_IV_GEN == 0 ||
12330 EVP_CTRL_GCM_SET_TAG == 0 ||
12331 EVP_CTRL_GCM_GET_TAG == 0 ||
12332 EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0);
12338 if ac_fn_c_try_link "$LINENO"; then :
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12341 $as_echo "yes" >&6; }
12343 $as_echo "#define OPENSSL_HAVE_EVPGCM 1" >>confdefs.h
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12349 $as_echo "no" >&6; }
12350 unsupported_algorithms="$unsupported_cipers \
12351 aes128-gcm@openssh.com aes256-gcm@openssh.com"
12355 rm -f core conftest.err conftest.$ac_objext \
12356 conftest$ac_exeext conftest.$ac_ext
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_CIPHER_CTX_ctrl" >&5
12359 $as_echo_n "checking for library containing EVP_CIPHER_CTX_ctrl... " >&6; }
12360 if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
12361 $as_echo_n "(cached) " >&6
12363 ac_func_search_save_LIBS=$LIBS
12364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12365 /* end confdefs.h. */
12367 /* Override any GCC internal prototype to avoid an error.
12368 Use char because int might match the return type of a GCC
12369 builtin and then its argument prototype would still apply. */
12373 char EVP_CIPHER_CTX_ctrl ();
12377 return EVP_CIPHER_CTX_ctrl ();
12382 for ac_lib in '' crypto; do
12383 if test -z "$ac_lib"; then
12384 ac_res="none required"
12387 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12389 if ac_fn_c_try_link "$LINENO"; then :
12390 ac_cv_search_EVP_CIPHER_CTX_ctrl=$ac_res
12392 rm -f core conftest.err conftest.$ac_objext \
12394 if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
12398 if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
12401 ac_cv_search_EVP_CIPHER_CTX_ctrl=no
12403 rm conftest.$ac_ext
12404 LIBS=$ac_func_search_save_LIBS
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_CIPHER_CTX_ctrl" >&5
12407 $as_echo "$ac_cv_search_EVP_CIPHER_CTX_ctrl" >&6; }
12408 ac_res=$ac_cv_search_EVP_CIPHER_CTX_ctrl
12409 if test "$ac_res" != no; then :
12410 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12412 $as_echo "#define HAVE_EVP_CIPHER_CTX_CTRL 1" >>confdefs.h
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5
12418 $as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; }
12419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420 /* end confdefs.h. */
12422 #include <string.h>
12423 #include <openssl/evp.h>
12429 if(EVP_DigestUpdate(NULL, NULL,0))
12436 if ac_fn_c_try_link "$LINENO"; then :
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12439 $as_echo "yes" >&6; }
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12444 $as_echo "no" >&6; }
12446 $as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h
12451 rm -f core conftest.err conftest.$ac_objext \
12452 conftest$ac_exeext conftest.$ac_ext
12454 # Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
12455 # because the system crypt() is more featureful.
12456 if test "x$check_for_libcrypt_before" = "x1"; then
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
12458 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
12459 if ${ac_cv_lib_crypt_crypt+:} false; then :
12460 $as_echo_n "(cached) " >&6
12462 ac_check_lib_save_LIBS=$LIBS
12463 LIBS="-lcrypt $LIBS"
12464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12465 /* end confdefs.h. */
12467 /* Override any GCC internal prototype to avoid an error.
12468 Use char because int might match the return type of a GCC
12469 builtin and then its argument prototype would still apply. */
12482 if ac_fn_c_try_link "$LINENO"; then :
12483 ac_cv_lib_crypt_crypt=yes
12485 ac_cv_lib_crypt_crypt=no
12487 rm -f core conftest.err conftest.$ac_objext \
12488 conftest$ac_exeext conftest.$ac_ext
12489 LIBS=$ac_check_lib_save_LIBS
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
12492 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
12493 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
12494 cat >>confdefs.h <<_ACEOF
12495 #define HAVE_LIBCRYPT 1
12498 LIBS="-lcrypt $LIBS"
12504 # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
12505 # version in OpenSSL.
12506 if test "x$check_for_libcrypt_later" = "x1"; then
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
12508 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
12509 if ${ac_cv_lib_crypt_crypt+:} false; then :
12510 $as_echo_n "(cached) " >&6
12512 ac_check_lib_save_LIBS=$LIBS
12513 LIBS="-lcrypt $LIBS"
12514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12515 /* end confdefs.h. */
12517 /* Override any GCC internal prototype to avoid an error.
12518 Use char because int might match the return type of a GCC
12519 builtin and then its argument prototype would still apply. */
12532 if ac_fn_c_try_link "$LINENO"; then :
12533 ac_cv_lib_crypt_crypt=yes
12535 ac_cv_lib_crypt_crypt=no
12537 rm -f core conftest.err conftest.$ac_objext \
12538 conftest$ac_exeext conftest.$ac_ext
12539 LIBS=$ac_check_lib_save_LIBS
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
12542 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
12543 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
12544 LIBS="$LIBS -lcrypt"
12548 for ac_func in crypt DES_crypt
12550 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12551 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12552 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12553 cat >>confdefs.h <<_ACEOF
12554 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12561 # Search for SHA256 support in libc and/or OpenSSL
12562 for ac_func in SHA256_Update EVP_sha256
12564 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12565 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12566 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12567 cat >>confdefs.h <<_ACEOF
12568 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12572 unsupported_algorithms="$unsupported_algorithms \
12573 hmac-sha2-256 hmac-sha2-512 \
12574 diffie-hellman-group-exchange-sha256 \
12575 hmac-sha2-256-etm@openssh.com hmac-sha2-512-etm@openssh.com"
12581 # Search for RIPE-MD support in OpenSSL
12582 for ac_func in EVP_ripemd160
12584 ac_fn_c_check_func "$LINENO" "EVP_ripemd160" "ac_cv_func_EVP_ripemd160"
12585 if test "x$ac_cv_func_EVP_ripemd160" = xyes; then :
12586 cat >>confdefs.h <<_ACEOF
12587 #define HAVE_EVP_RIPEMD160 1
12591 unsupported_algorithms="$unsupported_algorithms \
12593 hmac-ripemd160@openssh.com
12594 hmac-ripemd160-etm@openssh.com"
12601 # Check complete ECC support in OpenSSL
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_X9_62_prime256v1" >&5
12603 $as_echo_n "checking whether OpenSSL has NID_X9_62_prime256v1... " >&6; }
12604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12605 /* end confdefs.h. */
12607 #include <openssl/ec.h>
12608 #include <openssl/ecdh.h>
12609 #include <openssl/ecdsa.h>
12610 #include <openssl/evp.h>
12611 #include <openssl/objects.h>
12612 #include <openssl/opensslv.h>
12613 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
12614 # error "OpenSSL < 0.9.8g has unreliable ECC code"
12621 EC_KEY *e = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
12622 const EVP_MD *m = EVP_sha256(); /* We need this too */
12628 if ac_fn_c_try_link "$LINENO"; then :
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12630 $as_echo "yes" >&6; }
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634 $as_echo "no" >&6; }
12637 rm -f core conftest.err conftest.$ac_objext \
12638 conftest$ac_exeext conftest.$ac_ext
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp384r1" >&5
12641 $as_echo_n "checking whether OpenSSL has NID_secp384r1... " >&6; }
12642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12643 /* end confdefs.h. */
12645 #include <openssl/ec.h>
12646 #include <openssl/ecdh.h>
12647 #include <openssl/ecdsa.h>
12648 #include <openssl/evp.h>
12649 #include <openssl/objects.h>
12650 #include <openssl/opensslv.h>
12651 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
12652 # error "OpenSSL < 0.9.8g has unreliable ECC code"
12659 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp384r1);
12660 const EVP_MD *m = EVP_sha384(); /* We need this too */
12666 if ac_fn_c_try_link "$LINENO"; then :
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12668 $as_echo "yes" >&6; }
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12672 $as_echo "no" >&6; }
12675 rm -f core conftest.err conftest.$ac_objext \
12676 conftest$ac_exeext conftest.$ac_ext
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp521r1" >&5
12679 $as_echo_n "checking whether OpenSSL has NID_secp521r1... " >&6; }
12680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12681 /* end confdefs.h. */
12683 #include <openssl/ec.h>
12684 #include <openssl/ecdh.h>
12685 #include <openssl/ecdsa.h>
12686 #include <openssl/evp.h>
12687 #include <openssl/objects.h>
12688 #include <openssl/opensslv.h>
12689 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
12690 # error "OpenSSL < 0.9.8g has unreliable ECC code"
12697 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
12698 const EVP_MD *m = EVP_sha512(); /* We need this too */
12704 if ac_fn_c_try_link "$LINENO"; then :
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12706 $as_echo "yes" >&6; }
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL's NID_secp521r1 is functional" >&5
12708 $as_echo_n "checking if OpenSSL's NID_secp521r1 is functional... " >&6; }
12709 if test "$cross_compiling" = yes; then :
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: assuming yes" >&5
12711 $as_echo "$as_me: WARNING: cross-compiling: assuming yes" >&2;}
12715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12716 /* end confdefs.h. */
12718 #include <openssl/ec.h>
12719 #include <openssl/ecdh.h>
12720 #include <openssl/ecdsa.h>
12721 #include <openssl/evp.h>
12722 #include <openssl/objects.h>
12723 #include <openssl/opensslv.h>
12729 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
12730 const EVP_MD *m = EVP_sha512(); /* We need this too */
12731 exit(e == NULL || m == NULL);
12737 if ac_fn_c_try_run "$LINENO"; then :
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12739 $as_echo "yes" >&6; }
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12743 $as_echo "no" >&6; }
12745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12746 conftest.$ac_objext conftest.beam conftest.$ac_ext
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12751 $as_echo "no" >&6; }
12754 rm -f core conftest.err conftest.$ac_objext \
12755 conftest$ac_exeext conftest.$ac_ext
12757 COMMENT_OUT_ECC="#no ecc#"
12760 if test x$enable_nistp256 = x1 || test x$enable_nistp384 = x1 || \
12761 test x$enable_nistp521 = x1; then
12763 $as_echo "#define OPENSSL_HAS_ECC 1" >>confdefs.h
12766 if test x$enable_nistp256 = x1; then
12768 $as_echo "#define OPENSSL_HAS_NISTP256 1" >>confdefs.h
12773 unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp256 \
12774 ecdh-sha2-nistp256 ecdsa-sha2-nistp256-cert-v01@openssh.com"
12776 if test x$enable_nistp384 = x1; then
12778 $as_echo "#define OPENSSL_HAS_NISTP384 1" >>confdefs.h
12783 unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp384 \
12784 ecdh-sha2-nistp384 ecdsa-sha2-nistp384-cert-v01@openssh.com"
12786 if test x$enable_nistp521 = x1; then
12788 $as_echo "#define OPENSSL_HAS_NISTP521 1" >>confdefs.h
12793 unsupported_algorithms="$unsupported_algorithms ecdh-sha2-nistp521 \
12794 ecdsa-sha2-nistp521 ecdsa-sha2-nistp521-cert-v01@openssh.com"
12804 arc4random_uniform \
12807 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12808 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12809 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12810 cat >>confdefs.h <<_ACEOF
12811 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5
12820 $as_echo_n "checking for ia_openinfo in -liaf... " >&6; }
12821 if ${ac_cv_lib_iaf_ia_openinfo+:} false; then :
12822 $as_echo_n "(cached) " >&6
12824 ac_check_lib_save_LIBS=$LIBS
12826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12827 /* end confdefs.h. */
12829 /* Override any GCC internal prototype to avoid an error.
12830 Use char because int might match the return type of a GCC
12831 builtin and then its argument prototype would still apply. */
12835 char ia_openinfo ();
12839 return ia_openinfo ();
12844 if ac_fn_c_try_link "$LINENO"; then :
12845 ac_cv_lib_iaf_ia_openinfo=yes
12847 ac_cv_lib_iaf_ia_openinfo=no
12849 rm -f core conftest.err conftest.$ac_objext \
12850 conftest$ac_exeext conftest.$ac_ext
12851 LIBS=$ac_check_lib_save_LIBS
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5
12854 $as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; }
12855 if test "x$ac_cv_lib_iaf_ia_openinfo" = xyes; then :
12858 for ac_func in set_id
12860 ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id"
12861 if test "x$ac_cv_func_set_id" = xyes; then :
12862 cat >>confdefs.h <<_ACEOF
12863 #define HAVE_SET_ID 1
12865 SSHDLIBS="$SSHDLIBS -liaf"
12867 $as_echo "#define HAVE_LIBIAF 1" >>confdefs.h
12878 ### Configure cryptographic random number support
12880 # Check wheter OpenSSL seeds itself
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5
12882 $as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; }
12883 if test "$cross_compiling" = yes; then :
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
12886 $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
12887 # This is safe, since we will fatal() at runtime if
12888 # OpenSSL is not seeded correctly.
12889 OPENSSL_SEEDS_ITSELF=yes
12893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12894 /* end confdefs.h. */
12896 #include <string.h>
12897 #include <openssl/rand.h>
12903 exit(RAND_status() == 1 ? 0 : 1);
12909 if ac_fn_c_try_run "$LINENO"; then :
12911 OPENSSL_SEEDS_ITSELF=yes
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12913 $as_echo "yes" >&6; }
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12918 $as_echo "no" >&6; }
12921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12922 conftest.$ac_objext conftest.beam conftest.$ac_ext
12928 # Check whether --with-prngd-port was given.
12929 if test "${with_prngd_port+set}" = set; then :
12930 withval=$with_prngd_port;
12938 as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5
12941 if test ! -z "$withval" ; then
12942 PRNGD_PORT="$withval"
12944 cat >>confdefs.h <<_ACEOF
12945 #define PRNGD_PORT $PRNGD_PORT
12954 # PRNGD Unix domain socket
12956 # Check whether --with-prngd-socket was given.
12957 if test "${with_prngd_socket+set}" = set; then :
12958 withval=$with_prngd_socket;
12961 withval="/var/run/egd-pool"
12969 as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5
12973 if test ! -z "$withval" ; then
12974 if test ! -z "$PRNGD_PORT" ; then
12975 as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5
12977 if test ! -r "$withval" ; then
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5
12979 $as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
12981 PRNGD_SOCKET="$withval"
12983 cat >>confdefs.h <<_ACEOF
12984 #define PRNGD_SOCKET "$PRNGD_SOCKET"
12991 # Check for existing socket only if we don't have a random device already
12992 if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5
12994 $as_echo_n "checking for PRNGD/EGD socket... " >&6; }
12995 # Insert other locations here
12996 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
12997 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
12998 PRNGD_SOCKET="$sock"
12999 cat >>confdefs.h <<_ACEOF
13000 #define PRNGD_SOCKET "$PRNGD_SOCKET"
13006 if test ! -z "$PRNGD_SOCKET" ; then
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5
13008 $as_echo "$PRNGD_SOCKET" >&6; }
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13011 $as_echo "not found" >&6; }
13019 # Which randomness source do we use?
13020 if test ! -z "$PRNGD_PORT" ; then
13021 RAND_MSG="PRNGd port $PRNGD_PORT"
13022 elif test ! -z "$PRNGD_SOCKET" ; then
13023 RAND_MSG="PRNGd socket $PRNGD_SOCKET"
13024 elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then
13026 $as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h
13028 RAND_MSG="OpenSSL internal ONLY"
13030 as_fn_error $? "OpenSSH has no source of random numbers. Please configure OpenSSL with an entropy source or re-run configure using one of the --with-prngd-port or --with-prngd-socket options" "$LINENO" 5
13033 # Check for PAM libs
13036 # Check whether --with-pam was given.
13037 if test "${with_pam+set}" = set; then :
13039 if test "x$withval" != "xno" ; then
13040 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
13041 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
13042 as_fn_error $? "PAM headers not found" "$LINENO" 5
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13047 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13048 if ${ac_cv_lib_dl_dlopen+:} false; then :
13049 $as_echo_n "(cached) " >&6
13051 ac_check_lib_save_LIBS=$LIBS
13053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13054 /* end confdefs.h. */
13056 /* Override any GCC internal prototype to avoid an error.
13057 Use char because int might match the return type of a GCC
13058 builtin and then its argument prototype would still apply. */
13071 if ac_fn_c_try_link "$LINENO"; then :
13072 ac_cv_lib_dl_dlopen=yes
13074 ac_cv_lib_dl_dlopen=no
13076 rm -f core conftest.err conftest.$ac_objext \
13077 conftest$ac_exeext conftest.$ac_ext
13078 LIBS=$ac_check_lib_save_LIBS
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13081 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13082 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13083 cat >>confdefs.h <<_ACEOF
13084 #define HAVE_LIBDL 1
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
13092 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
13093 if ${ac_cv_lib_pam_pam_set_item+:} false; then :
13094 $as_echo_n "(cached) " >&6
13096 ac_check_lib_save_LIBS=$LIBS
13098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13099 /* end confdefs.h. */
13101 /* Override any GCC internal prototype to avoid an error.
13102 Use char because int might match the return type of a GCC
13103 builtin and then its argument prototype would still apply. */
13107 char pam_set_item ();
13111 return pam_set_item ();
13116 if ac_fn_c_try_link "$LINENO"; then :
13117 ac_cv_lib_pam_pam_set_item=yes
13119 ac_cv_lib_pam_pam_set_item=no
13121 rm -f core conftest.err conftest.$ac_objext \
13122 conftest$ac_exeext conftest.$ac_ext
13123 LIBS=$ac_check_lib_save_LIBS
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
13126 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
13127 if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
13128 cat >>confdefs.h <<_ACEOF
13129 #define HAVE_LIBPAM 1
13135 as_fn_error $? "*** libpam missing" "$LINENO" 5
13138 for ac_func in pam_getenvlist
13140 ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
13141 if test "x$ac_cv_func_pam_getenvlist" = xyes; then :
13142 cat >>confdefs.h <<_ACEOF
13143 #define HAVE_PAM_GETENVLIST 1
13149 for ac_func in pam_putenv
13151 ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv"
13152 if test "x$ac_cv_func_pam_putenv" = xyes; then :
13153 cat >>confdefs.h <<_ACEOF
13154 #define HAVE_PAM_PUTENV 1
13164 SSHDLIBS="$SSHDLIBS -lpam"
13166 $as_echo "#define USE_PAM 1" >>confdefs.h
13169 if test $ac_cv_lib_dl_dlopen = yes; then
13172 # libdl already in LIBS
13175 SSHDLIBS="$SSHDLIBS -ldl"
13185 # Check for older PAM
13186 if test "x$PAM_MSG" = "xyes" ; then
13187 # Check PAM strerror arguments (old PAM)
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5
13189 $as_echo_n "checking whether pam_strerror takes only one argument... " >&6; }
13190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13191 /* end confdefs.h. */
13193 #include <stdlib.h>
13194 #if defined(HAVE_SECURITY_PAM_APPL_H)
13195 #include <security/pam_appl.h>
13196 #elif defined (HAVE_PAM_PAM_APPL_H)
13197 #include <pam/pam_appl.h>
13204 (void)pam_strerror((pam_handle_t *)NULL, -1);
13210 if ac_fn_c_try_compile "$LINENO"; then :
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13212 $as_echo "no" >&6; }
13216 $as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13219 $as_echo "yes" >&6; }
13220 PAM_MSG="yes (old library)"
13224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13229 SSH_PRIVSEP_USER=CYGWIN_SSH_PRIVSEP_USER
13232 SSH_PRIVSEP_USER=sshd
13236 # Check whether --with-privsep-user was given.
13237 if test "${with_privsep_user+set}" = set; then :
13238 withval=$with_privsep_user;
13239 if test -n "$withval" && test "x$withval" != "xno" && \
13240 test "x${withval}" != "xyes"; then
13241 SSH_PRIVSEP_USER=$withval
13247 if test "x$SSH_PRIVSEP_USER" = "xCYGWIN_SSH_PRIVSEP_USER" ; then
13249 cat >>confdefs.h <<_ACEOF
13250 #define SSH_PRIVSEP_USER CYGWIN_SSH_PRIVSEP_USER
13255 cat >>confdefs.h <<_ACEOF
13256 #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
13262 if test "x$have_linux_no_new_privs" = "x1" ; then
13263 ac_fn_c_check_decl "$LINENO" "SECCOMP_MODE_FILTER" "ac_cv_have_decl_SECCOMP_MODE_FILTER" "
13264 #include <sys/types.h>
13265 #include <linux/seccomp.h>
13268 if test "x$ac_cv_have_decl_SECCOMP_MODE_FILTER" = xyes; then :
13269 have_seccomp_filter=1
13273 if test "x$have_seccomp_filter" = "x1" ; then
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel for seccomp_filter support" >&5
13275 $as_echo_n "checking kernel for seccomp_filter support... " >&6; }
13276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13281 #include <linux/audit.h>
13282 #include <linux/seccomp.h>
13283 #include <stdlib.h>
13284 #include <sys/prctl.h>
13289 int i = $seccomp_audit_arch;
13291 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
13292 exit(errno == EFAULT ? 0 : 1);
13297 if ac_fn_c_try_link "$LINENO"; then :
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13299 $as_echo "yes" >&6; }
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13303 $as_echo "no" >&6; }
13304 # Disable seccomp filter as a target
13305 have_seccomp_filter=0
13309 rm -f core conftest.err conftest.$ac_objext \
13310 conftest$ac_exeext conftest.$ac_ext
13313 # Decide which sandbox style to use
13316 # Check whether --with-sandbox was given.
13317 if test "${with_sandbox+set}" = set; then :
13318 withval=$with_sandbox;
13319 if test "x$withval" = "xyes" ; then
13322 sandbox_arg="$withval"
13329 # Some platforms (seems to be the ones that have a kernel poll(2)-type
13330 # function with which they implement select(2)) use an extra file descriptor
13331 # when calling select(2), which means we can't use the rlimit sandbox.
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select works with descriptor rlimit" >&5
13333 $as_echo_n "checking if select works with descriptor rlimit... " >&6; }
13334 if test "$cross_compiling" = yes; then :
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
13336 $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
13339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340 /* end confdefs.h. */
13342 #include <sys/types.h>
13343 #ifdef HAVE_SYS_TIME_H
13344 # include <sys/time.h>
13346 #include <sys/resource.h>
13347 #ifdef HAVE_SYS_SELECT_H
13348 # include <sys/select.h>
13352 #include <stdlib.h>
13358 struct rlimit rl_zero;
13363 fd = open("/dev/null", O_RDONLY);
13366 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
13367 setrlimit(RLIMIT_FSIZE, &rl_zero);
13368 setrlimit(RLIMIT_NOFILE, &rl_zero);
13371 r = select(fd+1, &fds, NULL, NULL, &tv);
13372 exit (r == -1 ? 1 : 0);
13378 if ac_fn_c_try_run "$LINENO"; then :
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13380 $as_echo "yes" >&6; }
13381 select_works_with_rlimit=yes
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13384 $as_echo "no" >&6; }
13385 select_works_with_rlimit=no
13387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13388 conftest.$ac_objext conftest.beam conftest.$ac_ext
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5
13393 $as_echo_n "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... " >&6; }
13394 if test "$cross_compiling" = yes; then :
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
13396 $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
13399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13400 /* end confdefs.h. */
13402 #include <sys/types.h>
13403 #ifdef HAVE_SYS_TIME_H
13404 # include <sys/time.h>
13406 #include <sys/resource.h>
13408 #include <stdlib.h>
13414 struct rlimit rl_zero;
13418 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
13419 r = setrlimit(RLIMIT_NOFILE, &rl_zero);
13420 exit (r == -1 ? 1 : 0);
13426 if ac_fn_c_try_run "$LINENO"; then :
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13428 $as_echo "yes" >&6; }
13429 rlimit_nofile_zero_works=yes
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13432 $as_echo "no" >&6; }
13433 rlimit_nofile_zero_works=no
13435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13436 conftest.$ac_objext conftest.beam conftest.$ac_ext
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit RLIMIT_FSIZE works" >&5
13441 $as_echo_n "checking if setrlimit RLIMIT_FSIZE works... " >&6; }
13442 if test "$cross_compiling" = yes; then :
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
13444 $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
13447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13448 /* end confdefs.h. */
13450 #include <sys/types.h>
13451 #include <sys/resource.h>
13452 #include <stdlib.h>
13458 struct rlimit rl_zero;
13460 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
13461 exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0);
13467 if ac_fn_c_try_run "$LINENO"; then :
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13469 $as_echo "yes" >&6; }
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13472 $as_echo "no" >&6; }
13474 $as_echo "#define SANDBOX_SKIP_RLIMIT_FSIZE 1" >>confdefs.h
13477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13478 conftest.$ac_objext conftest.beam conftest.$ac_ext
13482 if test "x$sandbox_arg" = "xsystrace" || \
13483 ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then
13484 test "x$have_systr_policy_kill" != "x1" && \
13485 as_fn_error $? "systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" "$LINENO" 5
13486 SANDBOX_STYLE="systrace"
13488 $as_echo "#define SANDBOX_SYSTRACE 1" >>confdefs.h
13490 elif test "x$sandbox_arg" = "xdarwin" || \
13491 ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \
13492 test "x$ac_cv_header_sandbox_h" = "xyes") ; then
13493 test "x$ac_cv_func_sandbox_init" != "xyes" -o \
13494 "x$ac_cv_header_sandbox_h" != "xyes" && \
13495 as_fn_error $? "Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" "$LINENO" 5
13496 SANDBOX_STYLE="darwin"
13498 $as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h
13500 elif test "x$sandbox_arg" = "xseccomp_filter" || \
13501 ( test -z "$sandbox_arg" && \
13502 test "x$have_seccomp_filter" = "x1" && \
13503 test "x$ac_cv_header_elf_h" = "xyes" && \
13504 test "x$ac_cv_header_linux_audit_h" = "xyes" && \
13505 test "x$ac_cv_header_linux_filter_h" = "xyes" && \
13506 test "x$seccomp_audit_arch" != "x" && \
13507 test "x$have_linux_no_new_privs" = "x1" && \
13508 test "x$ac_cv_func_prctl" = "xyes" ) ; then
13509 test "x$seccomp_audit_arch" = "x" && \
13510 as_fn_error $? "seccomp_filter sandbox not supported on $host" "$LINENO" 5
13511 test "x$have_linux_no_new_privs" != "x1" && \
13512 as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5
13513 test "x$have_seccomp_filter" != "x1" && \
13514 as_fn_error $? "seccomp_filter sandbox requires seccomp headers" "$LINENO" 5
13515 test "x$ac_cv_func_prctl" != "xyes" && \
13516 as_fn_error $? "seccomp_filter sandbox requires prctl function" "$LINENO" 5
13517 SANDBOX_STYLE="seccomp_filter"
13519 $as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h
13521 elif test "x$sandbox_arg" = "xcapsicum" || \
13522 ( test -z "$sandbox_arg" && \
13523 test "x$ac_cv_header_sys_capsicum_h" = "xyes" && \
13524 test "x$ac_cv_func_cap_rights_limit" = "xyes") ; then
13525 test "x$ac_cv_header_sys_capsicum_h" != "xyes" && \
13526 as_fn_error $? "capsicum sandbox requires sys/capsicum.h header" "$LINENO" 5
13527 test "x$ac_cv_func_cap_rights_limit" != "xyes" && \
13528 as_fn_error $? "capsicum sandbox requires cap_rights_limit function" "$LINENO" 5
13529 SANDBOX_STYLE="capsicum"
13531 $as_echo "#define SANDBOX_CAPSICUM 1" >>confdefs.h
13533 elif test "x$sandbox_arg" = "xrlimit" || \
13534 ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \
13535 test "x$select_works_with_rlimit" = "xyes" && \
13536 test "x$rlimit_nofile_zero_works" = "xyes" ) ; then
13537 test "x$ac_cv_func_setrlimit" != "xyes" && \
13538 as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5
13539 test "x$select_works_with_rlimit" != "xyes" && \
13540 as_fn_error $? "rlimit sandbox requires select to work with rlimit" "$LINENO" 5
13541 SANDBOX_STYLE="rlimit"
13543 $as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h
13545 elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \
13546 test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then
13547 SANDBOX_STYLE="none"
13549 $as_echo "#define SANDBOX_NULL 1" >>confdefs.h
13552 as_fn_error $? "unsupported --with-sandbox" "$LINENO" 5
13555 # Cheap hack to ensure NEWS-OS libraries are arranged right.
13556 if test ! -z "$SONY" ; then
13557 LIBS="$LIBS -liberty";
13560 # Check for long long datatypes
13561 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13562 if test "x$ac_cv_type_long_long" = xyes; then :
13564 cat >>confdefs.h <<_ACEOF
13565 #define HAVE_LONG_LONG 1
13570 ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
13571 if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
13573 cat >>confdefs.h <<_ACEOF
13574 #define HAVE_UNSIGNED_LONG_LONG 1
13579 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
13580 if test "x$ac_cv_type_long_double" = xyes; then :
13582 cat >>confdefs.h <<_ACEOF
13583 #define HAVE_LONG_DOUBLE 1
13590 # Check datatype sizes
13591 # The cast to long int works around a bug in the HP C Compiler
13592 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13593 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13594 # This bug is HP SR number 8606223364.
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
13596 $as_echo_n "checking size of short int... " >&6; }
13597 if ${ac_cv_sizeof_short_int+:} false; then :
13598 $as_echo_n "(cached) " >&6
13600 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
13603 if test "$ac_cv_type_short_int" = yes; then
13604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13606 as_fn_error 77 "cannot compute sizeof (short int)
13607 See \`config.log' for more details" "$LINENO" 5; }
13609 ac_cv_sizeof_short_int=0
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
13615 $as_echo "$ac_cv_sizeof_short_int" >&6; }
13619 cat >>confdefs.h <<_ACEOF
13620 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13624 # The cast to long int works around a bug in the HP C Compiler
13625 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13626 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13627 # This bug is HP SR number 8606223364.
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13629 $as_echo_n "checking size of int... " >&6; }
13630 if ${ac_cv_sizeof_int+:} false; then :
13631 $as_echo_n "(cached) " >&6
13633 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13636 if test "$ac_cv_type_int" = yes; then
13637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13639 as_fn_error 77 "cannot compute sizeof (int)
13640 See \`config.log' for more details" "$LINENO" 5; }
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13648 $as_echo "$ac_cv_sizeof_int" >&6; }
13652 cat >>confdefs.h <<_ACEOF
13653 #define SIZEOF_INT $ac_cv_sizeof_int
13657 # The cast to long int works around a bug in the HP C Compiler
13658 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13659 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13660 # This bug is HP SR number 8606223364.
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
13662 $as_echo_n "checking size of long int... " >&6; }
13663 if ${ac_cv_sizeof_long_int+:} false; then :
13664 $as_echo_n "(cached) " >&6
13666 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
13669 if test "$ac_cv_type_long_int" = yes; then
13670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13672 as_fn_error 77 "cannot compute sizeof (long int)
13673 See \`config.log' for more details" "$LINENO" 5; }
13675 ac_cv_sizeof_long_int=0
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
13681 $as_echo "$ac_cv_sizeof_long_int" >&6; }
13685 cat >>confdefs.h <<_ACEOF
13686 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13690 # The cast to long int works around a bug in the HP C Compiler
13691 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13692 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13693 # This bug is HP SR number 8606223364.
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
13695 $as_echo_n "checking size of long long int... " >&6; }
13696 if ${ac_cv_sizeof_long_long_int+:} false; then :
13697 $as_echo_n "(cached) " >&6
13699 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
13702 if test "$ac_cv_type_long_long_int" = yes; then
13703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13705 as_fn_error 77 "cannot compute sizeof (long long int)
13706 See \`config.log' for more details" "$LINENO" 5; }
13708 ac_cv_sizeof_long_long_int=0
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
13714 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
13718 cat >>confdefs.h <<_ACEOF
13719 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
13724 # Sanity check long long for some platforms (AIX)
13725 if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
13726 ac_cv_sizeof_long_long_int=0
13729 # compute LLONG_MIN and LLONG_MAX if we don't know them.
13730 if test -z "$have_llong_max"; then
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5
13732 $as_echo_n "checking for max value of long long... " >&6; }
13733 if test "$cross_compiling" = yes; then :
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
13736 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
13740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13741 /* end confdefs.h. */
13744 /* Why is this so damn hard? */
13748 #define __USE_ISOC99
13749 #include <limits.h>
13750 #define DATA "conftest.llminmax"
13751 #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
13754 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
13755 * we do this the hard way.
13758 fprint_ll(FILE *f, long long n)
13761 int l[sizeof(long long) * 8];
13764 if (fprintf(f, "-") < 0)
13766 for (i = 0; n != 0; i++) {
13767 l[i] = my_abs(n % 10);
13771 if (fprintf(f, "%d", l[--i]) < 0)
13774 if (fprintf(f, " ") < 0)
13784 long long i, llmin, llmax = 0;
13786 if((f = fopen(DATA,"w")) == NULL)
13789 #if defined(LLONG_MIN) && defined(LLONG_MAX)
13790 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
13794 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
13795 /* This will work on one's complement and two's complement */
13796 for (i = 1; i > llmax; i <<= 1, i++)
13798 llmin = llmax + 1LL; /* wrap */
13802 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
13803 || llmax - 1 > llmax || llmin == llmax || llmin == 0
13804 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
13805 fprintf(f, "unknown unknown\n");
13809 if (fprint_ll(f, llmin) < 0)
13811 if (fprint_ll(f, llmax) < 0)
13821 if ac_fn_c_try_run "$LINENO"; then :
13823 llong_min=`$AWK '{print $1}' conftest.llminmax`
13824 llong_max=`$AWK '{print $2}' conftest.llminmax`
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5
13827 $as_echo "$llong_max" >&6; }
13829 cat >>confdefs.h <<_ACEOF
13830 #define LLONG_MAX ${llong_max}LL
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5
13834 $as_echo_n "checking for min value of long long... " >&6; }
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5
13836 $as_echo "$llong_min" >&6; }
13838 cat >>confdefs.h <<_ACEOF
13839 #define LLONG_MIN ${llong_min}LL
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13846 $as_echo "not found" >&6; }
13849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13850 conftest.$ac_objext conftest.beam conftest.$ac_ext
13856 # More checks for data types
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
13858 $as_echo_n "checking for u_int type... " >&6; }
13859 if ${ac_cv_have_u_int+:} false; then :
13860 $as_echo_n "(cached) " >&6
13863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13864 /* end confdefs.h. */
13865 #include <sys/types.h>
13874 if ac_fn_c_try_compile "$LINENO"; then :
13875 ac_cv_have_u_int="yes"
13877 ac_cv_have_u_int="no"
13880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
13884 $as_echo "$ac_cv_have_u_int" >&6; }
13885 if test "x$ac_cv_have_u_int" = "xyes" ; then
13887 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
13893 $as_echo_n "checking for intXX_t types... " >&6; }
13894 if ${ac_cv_have_intxx_t+:} false; then :
13895 $as_echo_n "(cached) " >&6
13898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13899 /* end confdefs.h. */
13900 #include <sys/types.h>
13904 int8_t a; int16_t b; int32_t c; a = b = c = 1;
13909 if ac_fn_c_try_compile "$LINENO"; then :
13910 ac_cv_have_intxx_t="yes"
13912 ac_cv_have_intxx_t="no"
13915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
13919 $as_echo "$ac_cv_have_intxx_t" >&6; }
13920 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
13922 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
13927 if (test -z "$have_intxx_t" && \
13928 test "x$ac_cv_header_stdint_h" = "xyes")
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5
13931 $as_echo_n "checking for intXX_t types in stdint.h... " >&6; }
13932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13933 /* end confdefs.h. */
13934 #include <stdint.h>
13938 int8_t a; int16_t b; int32_t c; a = b = c = 1;
13943 if ac_fn_c_try_compile "$LINENO"; then :
13945 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13948 $as_echo "yes" >&6; }
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13952 $as_echo "no" >&6; }
13955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
13959 $as_echo_n "checking for int64_t type... " >&6; }
13960 if ${ac_cv_have_int64_t+:} false; then :
13961 $as_echo_n "(cached) " >&6
13964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13965 /* end confdefs.h. */
13967 #include <sys/types.h>
13968 #ifdef HAVE_STDINT_H
13969 # include <stdint.h>
13971 #include <sys/socket.h>
13972 #ifdef HAVE_SYS_BITYPES_H
13973 # include <sys/bitypes.h>
13986 if ac_fn_c_try_compile "$LINENO"; then :
13987 ac_cv_have_int64_t="yes"
13989 ac_cv_have_int64_t="no"
13992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
13996 $as_echo "$ac_cv_have_int64_t" >&6; }
13997 if test "x$ac_cv_have_int64_t" = "xyes" ; then
13999 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
14004 $as_echo_n "checking for u_intXX_t types... " >&6; }
14005 if ${ac_cv_have_u_intxx_t+:} false; then :
14006 $as_echo_n "(cached) " >&6
14009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14010 /* end confdefs.h. */
14011 #include <sys/types.h>
14015 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14020 if ac_fn_c_try_compile "$LINENO"; then :
14021 ac_cv_have_u_intxx_t="yes"
14023 ac_cv_have_u_intxx_t="no"
14026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
14030 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
14031 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14033 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
14038 if test -z "$have_u_intxx_t" ; then
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5
14040 $as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; }
14041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h. */
14043 #include <sys/socket.h>
14047 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14052 if ac_fn_c_try_compile "$LINENO"; then :
14054 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14057 $as_echo "yes" >&6; }
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14061 $as_echo "no" >&6; }
14064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
14068 $as_echo_n "checking for u_int64_t types... " >&6; }
14069 if ${ac_cv_have_u_int64_t+:} false; then :
14070 $as_echo_n "(cached) " >&6
14073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14074 /* end confdefs.h. */
14075 #include <sys/types.h>
14079 u_int64_t a; a = 1;
14084 if ac_fn_c_try_compile "$LINENO"; then :
14085 ac_cv_have_u_int64_t="yes"
14087 ac_cv_have_u_int64_t="no"
14090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
14094 $as_echo "$ac_cv_have_u_int64_t" >&6; }
14095 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14097 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
14102 if (test -z "$have_u_int64_t" && \
14103 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5
14106 $as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; }
14107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14108 /* end confdefs.h. */
14109 #include <sys/bitypes.h>
14118 if ac_fn_c_try_compile "$LINENO"; then :
14120 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14123 $as_echo "yes" >&6; }
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14127 $as_echo "no" >&6; }
14130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14133 if test -z "$have_u_intxx_t" ; then
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
14135 $as_echo_n "checking for uintXX_t types... " >&6; }
14136 if ${ac_cv_have_uintxx_t+:} false; then :
14137 $as_echo_n "(cached) " >&6
14140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14141 /* end confdefs.h. */
14143 #include <sys/types.h>
14158 if ac_fn_c_try_compile "$LINENO"; then :
14159 ac_cv_have_uintxx_t="yes"
14161 ac_cv_have_uintxx_t="no"
14164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
14168 $as_echo "$ac_cv_have_uintxx_t" >&6; }
14169 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14171 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
14176 if (test -z "$have_uintxx_t" && \
14177 test "x$ac_cv_header_stdint_h" = "xyes")
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5
14180 $as_echo_n "checking for uintXX_t types in stdint.h... " >&6; }
14181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14182 /* end confdefs.h. */
14183 #include <stdint.h>
14187 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
14192 if ac_fn_c_try_compile "$LINENO"; then :
14194 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14197 $as_echo "yes" >&6; }
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14201 $as_echo "no" >&6; }
14204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14207 if (test -z "$have_uintxx_t" && \
14208 test "x$ac_cv_header_inttypes_h" = "xyes")
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in inttypes.h" >&5
14211 $as_echo_n "checking for uintXX_t types in inttypes.h... " >&6; }
14212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14213 /* end confdefs.h. */
14214 #include <inttypes.h>
14218 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
14223 if ac_fn_c_try_compile "$LINENO"; then :
14225 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14228 $as_echo "yes" >&6; }
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14232 $as_echo "no" >&6; }
14235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14238 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14239 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14242 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
14243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14244 /* end confdefs.h. */
14246 #include <sys/bitypes.h>
14252 int8_t a; int16_t b; int32_t c;
14253 u_int8_t e; u_int16_t f; u_int32_t g;
14254 a = b = c = e = f = g = 1;
14260 if ac_fn_c_try_compile "$LINENO"; then :
14262 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
14264 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14267 $as_echo "yes" >&6; }
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14271 $as_echo "no" >&6; }
14274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5
14279 $as_echo_n "checking for u_char... " >&6; }
14280 if ${ac_cv_have_u_char+:} false; then :
14281 $as_echo_n "(cached) " >&6
14284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14285 /* end confdefs.h. */
14286 #include <sys/types.h>
14290 u_char foo; foo = 125;
14295 if ac_fn_c_try_compile "$LINENO"; then :
14296 ac_cv_have_u_char="yes"
14298 ac_cv_have_u_char="no"
14301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5
14305 $as_echo "$ac_cv_have_u_char" >&6; }
14306 if test "x$ac_cv_have_u_char" = "xyes" ; then
14308 $as_echo "#define HAVE_U_CHAR 1" >>confdefs.h
14312 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "
14313 #include <sys/types.h>
14314 #include <stdint.h>
14317 if test "x$ac_cv_type_intmax_t" = xyes; then :
14319 cat >>confdefs.h <<_ACEOF
14320 #define HAVE_INTMAX_T 1
14325 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "
14326 #include <sys/types.h>
14327 #include <stdint.h>
14330 if test "x$ac_cv_type_uintmax_t" = xyes; then :
14332 cat >>confdefs.h <<_ACEOF
14333 #define HAVE_UINTMAX_T 1
14341 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
14342 #include <sys/socket.h>
14344 if test "x$ac_cv_type_socklen_t" = xyes; then :
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
14349 $as_echo_n "checking for socklen_t equivalent... " >&6; }
14350 if ${curl_cv_socklen_t_equiv+:} false; then :
14351 $as_echo_n "(cached) " >&6
14354 # Systems have either "struct sockaddr *" or
14355 # "void *" as the second argument to getpeername
14356 curl_cv_socklen_t_equiv=
14357 for arg2 in "struct sockaddr" void; do
14358 for t in int size_t unsigned long "unsigned long"; do
14359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14360 /* end confdefs.h. */
14362 #include <sys/types.h>
14363 #include <sys/socket.h>
14365 int getpeername (int, $arg2 *, $t *);
14372 getpeername(0,0,&len);
14378 if ac_fn_c_try_compile "$LINENO"; then :
14380 curl_cv_socklen_t_equiv="$t"
14384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14388 if test "x$curl_cv_socklen_t_equiv" = x; then
14389 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
14395 $as_echo "$curl_cv_socklen_t_equiv" >&6; }
14397 cat >>confdefs.h <<_ACEOF
14398 #define socklen_t $curl_cv_socklen_t_equiv
14405 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
14407 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
14409 cat >>confdefs.h <<_ACEOF
14410 #define HAVE_SIG_ATOMIC_T 1
14416 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "
14417 #include <sys/types.h>
14418 #ifdef HAVE_SYS_BITYPES_H
14419 #include <sys/bitypes.h>
14421 #ifdef HAVE_SYS_STATFS_H
14422 #include <sys/statfs.h>
14424 #ifdef HAVE_SYS_STATVFS_H
14425 #include <sys/statvfs.h>
14429 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
14431 cat >>confdefs.h <<_ACEOF
14432 #define HAVE_FSBLKCNT_T 1
14437 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "
14438 #include <sys/types.h>
14439 #ifdef HAVE_SYS_BITYPES_H
14440 #include <sys/bitypes.h>
14442 #ifdef HAVE_SYS_STATFS_H
14443 #include <sys/statfs.h>
14445 #ifdef HAVE_SYS_STATVFS_H
14446 #include <sys/statvfs.h>
14450 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
14452 cat >>confdefs.h <<_ACEOF
14453 #define HAVE_FSFILCNT_T 1
14460 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h>
14461 #include <netinet/in.h>
14463 if test "x$ac_cv_type_in_addr_t" = xyes; then :
14465 cat >>confdefs.h <<_ACEOF
14466 #define HAVE_IN_ADDR_T 1
14471 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
14472 #include <netinet/in.h>
14474 if test "x$ac_cv_type_in_port_t" = xyes; then :
14476 cat >>confdefs.h <<_ACEOF
14477 #define HAVE_IN_PORT_T 1
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
14485 $as_echo_n "checking for size_t... " >&6; }
14486 if ${ac_cv_have_size_t+:} false; then :
14487 $as_echo_n "(cached) " >&6
14490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14491 /* end confdefs.h. */
14492 #include <sys/types.h>
14496 size_t foo; foo = 1235;
14501 if ac_fn_c_try_compile "$LINENO"; then :
14502 ac_cv_have_size_t="yes"
14504 ac_cv_have_size_t="no"
14507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5
14511 $as_echo "$ac_cv_have_size_t" >&6; }
14512 if test "x$ac_cv_have_size_t" = "xyes" ; then
14514 $as_echo "#define HAVE_SIZE_T 1" >>confdefs.h
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
14519 $as_echo_n "checking for ssize_t... " >&6; }
14520 if ${ac_cv_have_ssize_t+:} false; then :
14521 $as_echo_n "(cached) " >&6
14524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14525 /* end confdefs.h. */
14526 #include <sys/types.h>
14530 ssize_t foo; foo = 1235;
14535 if ac_fn_c_try_compile "$LINENO"; then :
14536 ac_cv_have_ssize_t="yes"
14538 ac_cv_have_ssize_t="no"
14541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5
14545 $as_echo "$ac_cv_have_ssize_t" >&6; }
14546 if test "x$ac_cv_have_ssize_t" = "xyes" ; then
14548 $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
14553 $as_echo_n "checking for clock_t... " >&6; }
14554 if ${ac_cv_have_clock_t+:} false; then :
14555 $as_echo_n "(cached) " >&6
14558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14559 /* end confdefs.h. */
14564 clock_t foo; foo = 1235;
14569 if ac_fn_c_try_compile "$LINENO"; then :
14570 ac_cv_have_clock_t="yes"
14572 ac_cv_have_clock_t="no"
14575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5
14579 $as_echo "$ac_cv_have_clock_t" >&6; }
14580 if test "x$ac_cv_have_clock_t" = "xyes" ; then
14582 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5
14587 $as_echo_n "checking for sa_family_t... " >&6; }
14588 if ${ac_cv_have_sa_family_t+:} false; then :
14589 $as_echo_n "(cached) " >&6
14592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14593 /* end confdefs.h. */
14595 #include <sys/types.h>
14596 #include <sys/socket.h>
14601 sa_family_t foo; foo = 1235;
14606 if ac_fn_c_try_compile "$LINENO"; then :
14607 ac_cv_have_sa_family_t="yes"
14609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14610 /* end confdefs.h. */
14612 #include <sys/types.h>
14613 #include <sys/socket.h>
14614 #include <netinet/in.h>
14619 sa_family_t foo; foo = 1235;
14624 if ac_fn_c_try_compile "$LINENO"; then :
14625 ac_cv_have_sa_family_t="yes"
14627 ac_cv_have_sa_family_t="no"
14630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5
14637 $as_echo "$ac_cv_have_sa_family_t" >&6; }
14638 if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
14640 $as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5
14645 $as_echo_n "checking for pid_t... " >&6; }
14646 if ${ac_cv_have_pid_t+:} false; then :
14647 $as_echo_n "(cached) " >&6
14650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14651 /* end confdefs.h. */
14652 #include <sys/types.h>
14656 pid_t foo; foo = 1235;
14661 if ac_fn_c_try_compile "$LINENO"; then :
14662 ac_cv_have_pid_t="yes"
14664 ac_cv_have_pid_t="no"
14667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5
14671 $as_echo "$ac_cv_have_pid_t" >&6; }
14672 if test "x$ac_cv_have_pid_t" = "xyes" ; then
14674 $as_echo "#define HAVE_PID_T 1" >>confdefs.h
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5
14679 $as_echo_n "checking for mode_t... " >&6; }
14680 if ${ac_cv_have_mode_t+:} false; then :
14681 $as_echo_n "(cached) " >&6
14684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14685 /* end confdefs.h. */
14686 #include <sys/types.h>
14690 mode_t foo; foo = 1235;
14695 if ac_fn_c_try_compile "$LINENO"; then :
14696 ac_cv_have_mode_t="yes"
14698 ac_cv_have_mode_t="no"
14701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5
14705 $as_echo "$ac_cv_have_mode_t" >&6; }
14706 if test "x$ac_cv_have_mode_t" = "xyes" ; then
14708 $as_echo "#define HAVE_MODE_T 1" >>confdefs.h
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
14714 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
14715 if ${ac_cv_have_struct_sockaddr_storage+:} false; then :
14716 $as_echo_n "(cached) " >&6
14719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14720 /* end confdefs.h. */
14722 #include <sys/types.h>
14723 #include <sys/socket.h>
14728 struct sockaddr_storage s;
14733 if ac_fn_c_try_compile "$LINENO"; then :
14734 ac_cv_have_struct_sockaddr_storage="yes"
14736 ac_cv_have_struct_sockaddr_storage="no"
14739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5
14743 $as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; }
14744 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
14746 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
14751 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
14752 if ${ac_cv_have_struct_sockaddr_in6+:} false; then :
14753 $as_echo_n "(cached) " >&6
14756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14757 /* end confdefs.h. */
14759 #include <sys/types.h>
14760 #include <netinet/in.h>
14765 struct sockaddr_in6 s; s.sin6_family = 0;
14770 if ac_fn_c_try_compile "$LINENO"; then :
14771 ac_cv_have_struct_sockaddr_in6="yes"
14773 ac_cv_have_struct_sockaddr_in6="no"
14776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5
14780 $as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; }
14781 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
14783 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
14788 $as_echo_n "checking for struct in6_addr... " >&6; }
14789 if ${ac_cv_have_struct_in6_addr+:} false; then :
14790 $as_echo_n "(cached) " >&6
14793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14794 /* end confdefs.h. */
14796 #include <sys/types.h>
14797 #include <netinet/in.h>
14802 struct in6_addr s; s.s6_addr[0] = 0;
14807 if ac_fn_c_try_compile "$LINENO"; then :
14808 ac_cv_have_struct_in6_addr="yes"
14810 ac_cv_have_struct_in6_addr="no"
14813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5
14817 $as_echo "$ac_cv_have_struct_in6_addr" >&6; }
14818 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
14820 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
14823 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
14824 #ifdef HAVE_SYS_TYPES_H
14825 #include <sys/types.h>
14827 #include <netinet/in.h>
14830 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
14832 cat >>confdefs.h <<_ACEOF
14833 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
14842 $as_echo_n "checking for struct addrinfo... " >&6; }
14843 if ${ac_cv_have_struct_addrinfo+:} false; then :
14844 $as_echo_n "(cached) " >&6
14847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14848 /* end confdefs.h. */
14850 #include <sys/types.h>
14851 #include <sys/socket.h>
14857 struct addrinfo s; s.ai_flags = AI_PASSIVE;
14862 if ac_fn_c_try_compile "$LINENO"; then :
14863 ac_cv_have_struct_addrinfo="yes"
14865 ac_cv_have_struct_addrinfo="no"
14868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5
14872 $as_echo "$ac_cv_have_struct_addrinfo" >&6; }
14873 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
14875 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
14880 $as_echo_n "checking for struct timeval... " >&6; }
14881 if ${ac_cv_have_struct_timeval+:} false; then :
14882 $as_echo_n "(cached) " >&6
14885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14886 /* end confdefs.h. */
14887 #include <sys/time.h>
14891 struct timeval tv; tv.tv_sec = 1;
14896 if ac_fn_c_try_compile "$LINENO"; then :
14897 ac_cv_have_struct_timeval="yes"
14899 ac_cv_have_struct_timeval="no"
14902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5
14906 $as_echo "$ac_cv_have_struct_timeval" >&6; }
14907 if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
14909 $as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
14911 have_struct_timeval=1
14914 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
14915 if test "x$ac_cv_type_struct_timespec" = xyes; then :
14917 cat >>confdefs.h <<_ACEOF
14918 #define HAVE_STRUCT_TIMESPEC 1
14925 # We need int64_t or else certian parts of the compile will fail.
14926 if test "x$ac_cv_have_int64_t" = "xno" && \
14927 test "x$ac_cv_sizeof_long_int" != "x8" && \
14928 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
14929 echo "OpenSSH requires int64_t support. Contact your vendor or install"
14930 echo "an alternative compiler (I.E., GCC) before continuing."
14934 if test "$cross_compiling" = yes; then :
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
14936 $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
14939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14940 /* end confdefs.h. */
14943 #include <string.h>
14944 #ifdef HAVE_SNPRINTF
14948 char expected_out[50];
14950 #if (SIZEOF_LONG_INT == 8)
14951 long int num = 0x7fffffffffffffff;
14953 long long num = 0x7fffffffffffffffll;
14955 strcpy(expected_out, "9223372036854775807");
14956 snprintf(buf, mazsize, "%lld", num);
14957 if(strcmp(buf, expected_out) != 0)
14962 main() { exit(0); }
14966 if ac_fn_c_try_run "$LINENO"; then :
14969 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
14972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14973 conftest.$ac_objext conftest.beam conftest.$ac_ext
14979 # look for field 'ut_host' in header 'utmp.h'
14980 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
14981 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5
14983 $as_echo_n "checking for ut_host field in utmp.h... " >&6; }
14984 if eval \${$ossh_varname+:} false; then :
14985 $as_echo_n "(cached) " >&6
14988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14989 /* end confdefs.h. */
14993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14994 $EGREP "ut_host" >/dev/null 2>&1; then :
14995 eval "$ossh_varname=yes"
14997 eval "$ossh_varname=no"
15003 ossh_result=`eval 'echo $'"$ossh_varname"`
15004 if test -n "`echo $ossh_varname`"; then
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15006 $as_echo "$ossh_result" >&6; }
15007 if test "x$ossh_result" = "xyes"; then
15009 $as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15014 $as_echo "no" >&6; }
15018 # look for field 'ut_host' in header 'utmpx.h'
15019 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15020 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5
15022 $as_echo_n "checking for ut_host field in utmpx.h... " >&6; }
15023 if eval \${$ossh_varname+:} false; then :
15024 $as_echo_n "(cached) " >&6
15027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15028 /* end confdefs.h. */
15032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15033 $EGREP "ut_host" >/dev/null 2>&1; then :
15034 eval "$ossh_varname=yes"
15036 eval "$ossh_varname=no"
15042 ossh_result=`eval 'echo $'"$ossh_varname"`
15043 if test -n "`echo $ossh_varname`"; then
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15045 $as_echo "$ossh_result" >&6; }
15046 if test "x$ossh_result" = "xyes"; then
15048 $as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15053 $as_echo "no" >&6; }
15057 # look for field 'syslen' in header 'utmpx.h'
15058 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15059 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5
15061 $as_echo_n "checking for syslen field in utmpx.h... " >&6; }
15062 if eval \${$ossh_varname+:} false; then :
15063 $as_echo_n "(cached) " >&6
15066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15067 /* end confdefs.h. */
15071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15072 $EGREP "syslen" >/dev/null 2>&1; then :
15073 eval "$ossh_varname=yes"
15075 eval "$ossh_varname=no"
15081 ossh_result=`eval 'echo $'"$ossh_varname"`
15082 if test -n "`echo $ossh_varname`"; then
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15084 $as_echo "$ossh_result" >&6; }
15085 if test "x$ossh_result" = "xyes"; then
15087 $as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15092 $as_echo "no" >&6; }
15096 # look for field 'ut_pid' in header 'utmp.h'
15097 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15098 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5
15100 $as_echo_n "checking for ut_pid field in utmp.h... " >&6; }
15101 if eval \${$ossh_varname+:} false; then :
15102 $as_echo_n "(cached) " >&6
15105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15106 /* end confdefs.h. */
15110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15111 $EGREP "ut_pid" >/dev/null 2>&1; then :
15112 eval "$ossh_varname=yes"
15114 eval "$ossh_varname=no"
15120 ossh_result=`eval 'echo $'"$ossh_varname"`
15121 if test -n "`echo $ossh_varname`"; then
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15123 $as_echo "$ossh_result" >&6; }
15124 if test "x$ossh_result" = "xyes"; then
15126 $as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15131 $as_echo "no" >&6; }
15135 # look for field 'ut_type' in header 'utmp.h'
15136 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15137 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5
15139 $as_echo_n "checking for ut_type field in utmp.h... " >&6; }
15140 if eval \${$ossh_varname+:} false; then :
15141 $as_echo_n "(cached) " >&6
15144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15145 /* end confdefs.h. */
15149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15150 $EGREP "ut_type" >/dev/null 2>&1; then :
15151 eval "$ossh_varname=yes"
15153 eval "$ossh_varname=no"
15159 ossh_result=`eval 'echo $'"$ossh_varname"`
15160 if test -n "`echo $ossh_varname`"; then
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15162 $as_echo "$ossh_result" >&6; }
15163 if test "x$ossh_result" = "xyes"; then
15165 $as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15170 $as_echo "no" >&6; }
15174 # look for field 'ut_type' in header 'utmpx.h'
15175 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15176 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5
15178 $as_echo_n "checking for ut_type field in utmpx.h... " >&6; }
15179 if eval \${$ossh_varname+:} false; then :
15180 $as_echo_n "(cached) " >&6
15183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15184 /* end confdefs.h. */
15188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15189 $EGREP "ut_type" >/dev/null 2>&1; then :
15190 eval "$ossh_varname=yes"
15192 eval "$ossh_varname=no"
15198 ossh_result=`eval 'echo $'"$ossh_varname"`
15199 if test -n "`echo $ossh_varname`"; then
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15201 $as_echo "$ossh_result" >&6; }
15202 if test "x$ossh_result" = "xyes"; then
15204 $as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15209 $as_echo "no" >&6; }
15213 # look for field 'ut_tv' in header 'utmp.h'
15214 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15215 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5
15217 $as_echo_n "checking for ut_tv field in utmp.h... " >&6; }
15218 if eval \${$ossh_varname+:} false; then :
15219 $as_echo_n "(cached) " >&6
15222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15223 /* end confdefs.h. */
15227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15228 $EGREP "ut_tv" >/dev/null 2>&1; then :
15229 eval "$ossh_varname=yes"
15231 eval "$ossh_varname=no"
15237 ossh_result=`eval 'echo $'"$ossh_varname"`
15238 if test -n "`echo $ossh_varname`"; then
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15240 $as_echo "$ossh_result" >&6; }
15241 if test "x$ossh_result" = "xyes"; then
15243 $as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15248 $as_echo "no" >&6; }
15252 # look for field 'ut_id' in header 'utmp.h'
15253 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15254 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5
15256 $as_echo_n "checking for ut_id field in utmp.h... " >&6; }
15257 if eval \${$ossh_varname+:} false; then :
15258 $as_echo_n "(cached) " >&6
15261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15262 /* end confdefs.h. */
15266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15267 $EGREP "ut_id" >/dev/null 2>&1; then :
15268 eval "$ossh_varname=yes"
15270 eval "$ossh_varname=no"
15276 ossh_result=`eval 'echo $'"$ossh_varname"`
15277 if test -n "`echo $ossh_varname`"; then
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15279 $as_echo "$ossh_result" >&6; }
15280 if test "x$ossh_result" = "xyes"; then
15282 $as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15287 $as_echo "no" >&6; }
15291 # look for field 'ut_id' in header 'utmpx.h'
15292 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15293 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5
15295 $as_echo_n "checking for ut_id field in utmpx.h... " >&6; }
15296 if eval \${$ossh_varname+:} false; then :
15297 $as_echo_n "(cached) " >&6
15300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15301 /* end confdefs.h. */
15305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15306 $EGREP "ut_id" >/dev/null 2>&1; then :
15307 eval "$ossh_varname=yes"
15309 eval "$ossh_varname=no"
15315 ossh_result=`eval 'echo $'"$ossh_varname"`
15316 if test -n "`echo $ossh_varname`"; then
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15318 $as_echo "$ossh_result" >&6; }
15319 if test "x$ossh_result" = "xyes"; then
15321 $as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15326 $as_echo "no" >&6; }
15330 # look for field 'ut_addr' in header 'utmp.h'
15331 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15332 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5
15334 $as_echo_n "checking for ut_addr field in utmp.h... " >&6; }
15335 if eval \${$ossh_varname+:} false; then :
15336 $as_echo_n "(cached) " >&6
15339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15340 /* end confdefs.h. */
15344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15345 $EGREP "ut_addr" >/dev/null 2>&1; then :
15346 eval "$ossh_varname=yes"
15348 eval "$ossh_varname=no"
15354 ossh_result=`eval 'echo $'"$ossh_varname"`
15355 if test -n "`echo $ossh_varname`"; then
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15357 $as_echo "$ossh_result" >&6; }
15358 if test "x$ossh_result" = "xyes"; then
15360 $as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15365 $as_echo "no" >&6; }
15369 # look for field 'ut_addr' in header 'utmpx.h'
15370 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15371 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5
15373 $as_echo_n "checking for ut_addr field in utmpx.h... " >&6; }
15374 if eval \${$ossh_varname+:} false; then :
15375 $as_echo_n "(cached) " >&6
15378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15379 /* end confdefs.h. */
15383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15384 $EGREP "ut_addr" >/dev/null 2>&1; then :
15385 eval "$ossh_varname=yes"
15387 eval "$ossh_varname=no"
15393 ossh_result=`eval 'echo $'"$ossh_varname"`
15394 if test -n "`echo $ossh_varname`"; then
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15396 $as_echo "$ossh_result" >&6; }
15397 if test "x$ossh_result" = "xyes"; then
15399 $as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15404 $as_echo "no" >&6; }
15408 # look for field 'ut_addr_v6' in header 'utmp.h'
15409 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15410 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5
15412 $as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; }
15413 if eval \${$ossh_varname+:} false; then :
15414 $as_echo_n "(cached) " >&6
15417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15418 /* end confdefs.h. */
15422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15423 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
15424 eval "$ossh_varname=yes"
15426 eval "$ossh_varname=no"
15432 ossh_result=`eval 'echo $'"$ossh_varname"`
15433 if test -n "`echo $ossh_varname`"; then
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15435 $as_echo "$ossh_result" >&6; }
15436 if test "x$ossh_result" = "xyes"; then
15438 $as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15443 $as_echo "no" >&6; }
15447 # look for field 'ut_addr_v6' in header 'utmpx.h'
15448 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15449 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5
15451 $as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; }
15452 if eval \${$ossh_varname+:} false; then :
15453 $as_echo_n "(cached) " >&6
15456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15457 /* end confdefs.h. */
15461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15462 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
15463 eval "$ossh_varname=yes"
15465 eval "$ossh_varname=no"
15471 ossh_result=`eval 'echo $'"$ossh_varname"`
15472 if test -n "`echo $ossh_varname`"; then
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15474 $as_echo "$ossh_result" >&6; }
15475 if test "x$ossh_result" = "xyes"; then
15477 $as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15482 $as_echo "no" >&6; }
15486 # look for field 'ut_exit' in header 'utmp.h'
15487 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15488 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5
15490 $as_echo_n "checking for ut_exit field in utmp.h... " >&6; }
15491 if eval \${$ossh_varname+:} false; then :
15492 $as_echo_n "(cached) " >&6
15495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15496 /* end confdefs.h. */
15500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15501 $EGREP "ut_exit" >/dev/null 2>&1; then :
15502 eval "$ossh_varname=yes"
15504 eval "$ossh_varname=no"
15510 ossh_result=`eval 'echo $'"$ossh_varname"`
15511 if test -n "`echo $ossh_varname`"; then
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15513 $as_echo "$ossh_result" >&6; }
15514 if test "x$ossh_result" = "xyes"; then
15516 $as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15521 $as_echo "no" >&6; }
15525 # look for field 'ut_time' in header 'utmp.h'
15526 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15527 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5
15529 $as_echo_n "checking for ut_time field in utmp.h... " >&6; }
15530 if eval \${$ossh_varname+:} false; then :
15531 $as_echo_n "(cached) " >&6
15534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15535 /* end confdefs.h. */
15539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15540 $EGREP "ut_time" >/dev/null 2>&1; then :
15541 eval "$ossh_varname=yes"
15543 eval "$ossh_varname=no"
15549 ossh_result=`eval 'echo $'"$ossh_varname"`
15550 if test -n "`echo $ossh_varname`"; then
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15552 $as_echo "$ossh_result" >&6; }
15553 if test "x$ossh_result" = "xyes"; then
15555 $as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15560 $as_echo "no" >&6; }
15564 # look for field 'ut_time' in header 'utmpx.h'
15565 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15566 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5
15568 $as_echo_n "checking for ut_time field in utmpx.h... " >&6; }
15569 if eval \${$ossh_varname+:} false; then :
15570 $as_echo_n "(cached) " >&6
15573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15574 /* end confdefs.h. */
15578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15579 $EGREP "ut_time" >/dev/null 2>&1; then :
15580 eval "$ossh_varname=yes"
15582 eval "$ossh_varname=no"
15588 ossh_result=`eval 'echo $'"$ossh_varname"`
15589 if test -n "`echo $ossh_varname`"; then
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15591 $as_echo "$ossh_result" >&6; }
15592 if test "x$ossh_result" = "xyes"; then
15594 $as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15599 $as_echo "no" >&6; }
15603 # look for field 'ut_tv' in header 'utmpx.h'
15604 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15605 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5
15607 $as_echo_n "checking for ut_tv field in utmpx.h... " >&6; }
15608 if eval \${$ossh_varname+:} false; then :
15609 $as_echo_n "(cached) " >&6
15612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15613 /* end confdefs.h. */
15617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15618 $EGREP "ut_tv" >/dev/null 2>&1; then :
15619 eval "$ossh_varname=yes"
15621 eval "$ossh_varname=no"
15627 ossh_result=`eval 'echo $'"$ossh_varname"`
15628 if test -n "`echo $ossh_varname`"; then
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15630 $as_echo "$ossh_result" >&6; }
15631 if test "x$ossh_result" = "xyes"; then
15633 $as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15638 $as_echo "no" >&6; }
15642 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
15643 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
15645 cat >>confdefs.h <<_ACEOF
15646 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
15652 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "
15653 #include <sys/types.h>
15657 if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then :
15659 cat >>confdefs.h <<_ACEOF
15660 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
15665 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_class" "ac_cv_member_struct_passwd_pw_class" "
15666 #include <sys/types.h>
15670 if test "x$ac_cv_member_struct_passwd_pw_class" = xyes; then :
15672 cat >>confdefs.h <<_ACEOF
15673 #define HAVE_STRUCT_PASSWD_PW_CLASS 1
15678 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_change" "ac_cv_member_struct_passwd_pw_change" "
15679 #include <sys/types.h>
15683 if test "x$ac_cv_member_struct_passwd_pw_change" = xyes; then :
15685 cat >>confdefs.h <<_ACEOF
15686 #define HAVE_STRUCT_PASSWD_PW_CHANGE 1
15691 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_expire" "ac_cv_member_struct_passwd_pw_expire" "
15692 #include <sys/types.h>
15696 if test "x$ac_cv_member_struct_passwd_pw_expire" = xyes; then :
15698 cat >>confdefs.h <<_ACEOF
15699 #define HAVE_STRUCT_PASSWD_PW_EXPIRE 1
15706 ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" "
15708 #if HAVE_SYS_TYPES_H
15709 # include <sys/types.h>
15711 #include <netinet/in.h>
15712 #include <arpa/nameser.h>
15713 #include <resolv.h>
15716 if test "x$ac_cv_member_struct___res_state_retrans" = xyes; then :
15720 $as_echo "#define __res_state state" >>confdefs.h
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5
15726 $as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; }
15727 if ${ac_cv_have_ss_family_in_struct_ss+:} false; then :
15728 $as_echo_n "(cached) " >&6
15731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15732 /* end confdefs.h. */
15734 #include <sys/types.h>
15735 #include <sys/socket.h>
15740 struct sockaddr_storage s; s.ss_family = 1;
15745 if ac_fn_c_try_compile "$LINENO"; then :
15746 ac_cv_have_ss_family_in_struct_ss="yes"
15748 ac_cv_have_ss_family_in_struct_ss="no"
15750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5
15754 $as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; }
15755 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
15757 $as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5
15762 $as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; }
15763 if ${ac_cv_have___ss_family_in_struct_ss+:} false; then :
15764 $as_echo_n "(cached) " >&6
15767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15768 /* end confdefs.h. */
15770 #include <sys/types.h>
15771 #include <sys/socket.h>
15776 struct sockaddr_storage s; s.__ss_family = 1;
15781 if ac_fn_c_try_compile "$LINENO"; then :
15782 ac_cv_have___ss_family_in_struct_ss="yes"
15784 ac_cv_have___ss_family_in_struct_ss="no"
15787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5
15791 $as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; }
15792 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
15794 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5
15799 $as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; }
15800 if ${ac_cv_have_accrights_in_msghdr+:} false; then :
15801 $as_echo_n "(cached) " >&6
15804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15805 /* end confdefs.h. */
15807 #include <sys/types.h>
15808 #include <sys/socket.h>
15809 #include <sys/uio.h>
15815 #ifdef msg_accrights
15816 #error "msg_accrights is a macro"
15820 m.msg_accrights = 0;
15827 if ac_fn_c_try_compile "$LINENO"; then :
15828 ac_cv_have_accrights_in_msghdr="yes"
15830 ac_cv_have_accrights_in_msghdr="no"
15833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5
15837 $as_echo "$ac_cv_have_accrights_in_msghdr" >&6; }
15838 if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
15840 $as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5
15845 $as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; }
15846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15847 /* end confdefs.h. */
15849 #include <sys/param.h>
15850 #include <sys/stat.h>
15851 #ifdef HAVE_SYS_TIME_H
15852 # include <sys/time.h>
15854 #ifdef HAVE_SYS_MOUNT_H
15855 #include <sys/mount.h>
15857 #ifdef HAVE_SYS_STATVFS_H
15858 #include <sys/statvfs.h>
15864 struct statvfs s; s.f_fsid = 0;
15869 if ac_fn_c_try_compile "$LINENO"; then :
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15871 $as_echo "yes" >&6; }
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15874 $as_echo "no" >&6; }
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5
15877 $as_echo_n "checking if fsid_t has member val... " >&6; }
15878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879 /* end confdefs.h. */
15881 #include <sys/types.h>
15882 #include <sys/statvfs.h>
15887 fsid_t t; t.val[0] = 0;
15892 if ac_fn_c_try_compile "$LINENO"; then :
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15894 $as_echo "yes" >&6; }
15896 $as_echo "#define FSID_HAS_VAL 1" >>confdefs.h
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15900 $as_echo "no" >&6; }
15902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5
15905 $as_echo_n "checking if f_fsid has member __val... " >&6; }
15906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15907 /* end confdefs.h. */
15909 #include <sys/types.h>
15910 #include <sys/statvfs.h>
15915 fsid_t t; t.__val[0] = 0;
15920 if ac_fn_c_try_compile "$LINENO"; then :
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15922 $as_echo "yes" >&6; }
15924 $as_echo "#define FSID_HAS___VAL 1" >>confdefs.h
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15928 $as_echo "no" >&6; }
15930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5
15936 $as_echo_n "checking for msg_control field in struct msghdr... " >&6; }
15937 if ${ac_cv_have_control_in_msghdr+:} false; then :
15938 $as_echo_n "(cached) " >&6
15941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15942 /* end confdefs.h. */
15944 #include <sys/types.h>
15945 #include <sys/socket.h>
15946 #include <sys/uio.h>
15953 #error "msg_control is a macro"
15964 if ac_fn_c_try_compile "$LINENO"; then :
15965 ac_cv_have_control_in_msghdr="yes"
15967 ac_cv_have_control_in_msghdr="no"
15970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5
15974 $as_echo "$ac_cv_have_control_in_msghdr" >&6; }
15975 if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
15977 $as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5
15982 $as_echo_n "checking if libc defines __progname... " >&6; }
15983 if ${ac_cv_libc_defines___progname+:} false; then :
15984 $as_echo_n "(cached) " >&6
15987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15988 /* end confdefs.h. */
15993 extern char *__progname; printf("%s", __progname);
15998 if ac_fn_c_try_link "$LINENO"; then :
15999 ac_cv_libc_defines___progname="yes"
16001 ac_cv_libc_defines___progname="no"
16004 rm -f core conftest.err conftest.$ac_objext \
16005 conftest$ac_exeext conftest.$ac_ext
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5
16009 $as_echo "$ac_cv_libc_defines___progname" >&6; }
16010 if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
16012 $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5
16017 $as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; }
16018 if ${ac_cv_cc_implements___FUNCTION__+:} false; then :
16019 $as_echo_n "(cached) " >&6
16022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16023 /* end confdefs.h. */
16028 printf("%s", __FUNCTION__);
16033 if ac_fn_c_try_link "$LINENO"; then :
16034 ac_cv_cc_implements___FUNCTION__="yes"
16036 ac_cv_cc_implements___FUNCTION__="no"
16039 rm -f core conftest.err conftest.$ac_objext \
16040 conftest$ac_exeext conftest.$ac_ext
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5
16044 $as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; }
16045 if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
16047 $as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5
16052 $as_echo_n "checking whether $CC implements __func__... " >&6; }
16053 if ${ac_cv_cc_implements___func__+:} false; then :
16054 $as_echo_n "(cached) " >&6
16057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16058 /* end confdefs.h. */
16063 printf("%s", __func__);
16068 if ac_fn_c_try_link "$LINENO"; then :
16069 ac_cv_cc_implements___func__="yes"
16071 ac_cv_cc_implements___func__="no"
16074 rm -f core conftest.err conftest.$ac_objext \
16075 conftest$ac_exeext conftest.$ac_ext
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5
16079 $as_echo "$ac_cv_cc_implements___func__" >&6; }
16080 if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
16082 $as_echo "#define HAVE___func__ 1" >>confdefs.h
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5
16087 $as_echo_n "checking whether va_copy exists... " >&6; }
16088 if ${ac_cv_have_va_copy+:} false; then :
16089 $as_echo_n "(cached) " >&6
16092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16093 /* end confdefs.h. */
16095 #include <stdarg.h>
16106 if ac_fn_c_try_link "$LINENO"; then :
16107 ac_cv_have_va_copy="yes"
16109 ac_cv_have_va_copy="no"
16112 rm -f core conftest.err conftest.$ac_objext \
16113 conftest$ac_exeext conftest.$ac_ext
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5
16117 $as_echo "$ac_cv_have_va_copy" >&6; }
16118 if test "x$ac_cv_have_va_copy" = "xyes" ; then
16120 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5
16125 $as_echo_n "checking whether __va_copy exists... " >&6; }
16126 if ${ac_cv_have___va_copy+:} false; then :
16127 $as_echo_n "(cached) " >&6
16130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16131 /* end confdefs.h. */
16133 #include <stdarg.h>
16144 if ac_fn_c_try_link "$LINENO"; then :
16145 ac_cv_have___va_copy="yes"
16147 ac_cv_have___va_copy="no"
16150 rm -f core conftest.err conftest.$ac_objext \
16151 conftest$ac_exeext conftest.$ac_ext
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5
16155 $as_echo "$ac_cv_have___va_copy" >&6; }
16156 if test "x$ac_cv_have___va_copy" = "xyes" ; then
16158 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5
16163 $as_echo_n "checking whether getopt has optreset support... " >&6; }
16164 if ${ac_cv_have_getopt_optreset+:} false; then :
16165 $as_echo_n "(cached) " >&6
16168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16169 /* end confdefs.h. */
16170 #include <getopt.h>
16174 extern int optreset; optreset = 0;
16179 if ac_fn_c_try_link "$LINENO"; then :
16180 ac_cv_have_getopt_optreset="yes"
16182 ac_cv_have_getopt_optreset="no"
16185 rm -f core conftest.err conftest.$ac_objext \
16186 conftest$ac_exeext conftest.$ac_ext
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5
16190 $as_echo "$ac_cv_have_getopt_optreset" >&6; }
16191 if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
16193 $as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5
16198 $as_echo_n "checking if libc defines sys_errlist... " >&6; }
16199 if ${ac_cv_libc_defines_sys_errlist+:} false; then :
16200 $as_echo_n "(cached) " >&6
16203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16204 /* end confdefs.h. */
16209 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
16214 if ac_fn_c_try_link "$LINENO"; then :
16215 ac_cv_libc_defines_sys_errlist="yes"
16217 ac_cv_libc_defines_sys_errlist="no"
16220 rm -f core conftest.err conftest.$ac_objext \
16221 conftest$ac_exeext conftest.$ac_ext
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5
16225 $as_echo "$ac_cv_libc_defines_sys_errlist" >&6; }
16226 if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
16228 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5
16234 $as_echo_n "checking if libc defines sys_nerr... " >&6; }
16235 if ${ac_cv_libc_defines_sys_nerr+:} false; then :
16236 $as_echo_n "(cached) " >&6
16239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16240 /* end confdefs.h. */
16245 extern int sys_nerr; printf("%i", sys_nerr);
16250 if ac_fn_c_try_link "$LINENO"; then :
16251 ac_cv_libc_defines_sys_nerr="yes"
16253 ac_cv_libc_defines_sys_nerr="no"
16256 rm -f core conftest.err conftest.$ac_objext \
16257 conftest$ac_exeext conftest.$ac_ext
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5
16261 $as_echo "$ac_cv_libc_defines_sys_nerr" >&6; }
16262 if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
16264 $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
16268 # Check libraries needed by DNS fingerprint support
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5
16270 $as_echo_n "checking for library containing getrrsetbyname... " >&6; }
16271 if ${ac_cv_search_getrrsetbyname+:} false; then :
16272 $as_echo_n "(cached) " >&6
16274 ac_func_search_save_LIBS=$LIBS
16275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16276 /* end confdefs.h. */
16278 /* Override any GCC internal prototype to avoid an error.
16279 Use char because int might match the return type of a GCC
16280 builtin and then its argument prototype would still apply. */
16284 char getrrsetbyname ();
16288 return getrrsetbyname ();
16293 for ac_lib in '' resolv; do
16294 if test -z "$ac_lib"; then
16295 ac_res="none required"
16298 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16300 if ac_fn_c_try_link "$LINENO"; then :
16301 ac_cv_search_getrrsetbyname=$ac_res
16303 rm -f core conftest.err conftest.$ac_objext \
16305 if ${ac_cv_search_getrrsetbyname+:} false; then :
16309 if ${ac_cv_search_getrrsetbyname+:} false; then :
16312 ac_cv_search_getrrsetbyname=no
16314 rm conftest.$ac_ext
16315 LIBS=$ac_func_search_save_LIBS
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5
16318 $as_echo "$ac_cv_search_getrrsetbyname" >&6; }
16319 ac_res=$ac_cv_search_getrrsetbyname
16320 if test "$ac_res" != no; then :
16321 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16323 $as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h
16327 # Needed by our getrrsetbyname()
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
16329 $as_echo_n "checking for library containing res_query... " >&6; }
16330 if ${ac_cv_search_res_query+:} false; then :
16331 $as_echo_n "(cached) " >&6
16333 ac_func_search_save_LIBS=$LIBS
16334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16335 /* end confdefs.h. */
16337 /* Override any GCC internal prototype to avoid an error.
16338 Use char because int might match the return type of a GCC
16339 builtin and then its argument prototype would still apply. */
16347 return res_query ();
16352 for ac_lib in '' resolv; do
16353 if test -z "$ac_lib"; then
16354 ac_res="none required"
16357 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16359 if ac_fn_c_try_link "$LINENO"; then :
16360 ac_cv_search_res_query=$ac_res
16362 rm -f core conftest.err conftest.$ac_objext \
16364 if ${ac_cv_search_res_query+:} false; then :
16368 if ${ac_cv_search_res_query+:} false; then :
16371 ac_cv_search_res_query=no
16373 rm conftest.$ac_ext
16374 LIBS=$ac_func_search_save_LIBS
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
16377 $as_echo "$ac_cv_search_res_query" >&6; }
16378 ac_res=$ac_cv_search_res_query
16379 if test "$ac_res" != no; then :
16380 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
16385 $as_echo_n "checking for library containing dn_expand... " >&6; }
16386 if ${ac_cv_search_dn_expand+:} false; then :
16387 $as_echo_n "(cached) " >&6
16389 ac_func_search_save_LIBS=$LIBS
16390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16391 /* end confdefs.h. */
16393 /* Override any GCC internal prototype to avoid an error.
16394 Use char because int might match the return type of a GCC
16395 builtin and then its argument prototype would still apply. */
16403 return dn_expand ();
16408 for ac_lib in '' resolv; do
16409 if test -z "$ac_lib"; then
16410 ac_res="none required"
16413 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16415 if ac_fn_c_try_link "$LINENO"; then :
16416 ac_cv_search_dn_expand=$ac_res
16418 rm -f core conftest.err conftest.$ac_objext \
16420 if ${ac_cv_search_dn_expand+:} false; then :
16424 if ${ac_cv_search_dn_expand+:} false; then :
16427 ac_cv_search_dn_expand=no
16429 rm conftest.$ac_ext
16430 LIBS=$ac_func_search_save_LIBS
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
16433 $as_echo "$ac_cv_search_dn_expand" >&6; }
16434 ac_res=$ac_cv_search_dn_expand
16435 if test "$ac_res" != no; then :
16436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5
16441 $as_echo_n "checking if res_query will link... " >&6; }
16442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16443 /* end confdefs.h. */
16445 #include <sys/types.h>
16446 #include <netinet/in.h>
16447 #include <arpa/nameser.h>
16449 #include <resolv.h>
16455 res_query (0, 0, 0, 0, 0);
16461 if ac_fn_c_try_link "$LINENO"; then :
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16463 $as_echo "yes" >&6; }
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16466 $as_echo "no" >&6; }
16468 LIBS="$LIBS -lresolv"
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
16470 $as_echo_n "checking for res_query in -lresolv... " >&6; }
16471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16472 /* end confdefs.h. */
16474 #include <sys/types.h>
16475 #include <netinet/in.h>
16476 #include <arpa/nameser.h>
16478 #include <resolv.h>
16484 res_query (0, 0, 0, 0, 0);
16490 if ac_fn_c_try_link "$LINENO"; then :
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16492 $as_echo "yes" >&6; }
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16496 $as_echo "no" >&6; }
16498 rm -f core conftest.err conftest.$ac_objext \
16499 conftest$ac_exeext conftest.$ac_ext
16502 rm -f core conftest.err conftest.$ac_objext \
16503 conftest$ac_exeext conftest.$ac_ext
16504 for ac_func in _getshort _getlong
16506 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16507 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16508 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16509 cat >>confdefs.h <<_ACEOF
16510 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16516 ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h>
16517 #include <arpa/nameser.h>
16519 if test "x$ac_cv_have_decl__getshort" = xyes; then :
16525 cat >>confdefs.h <<_ACEOF
16526 #define HAVE_DECL__GETSHORT $ac_have_decl
16528 ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h>
16529 #include <arpa/nameser.h>
16531 if test "x$ac_cv_have_decl__getlong" = xyes; then :
16537 cat >>confdefs.h <<_ACEOF
16538 #define HAVE_DECL__GETLONG $ac_have_decl
16541 ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h>
16543 if test "x$ac_cv_member_HEADER_ad" = xyes; then :
16545 $as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5
16554 $as_echo_n "checking if struct __res_state _res is an extern... " >&6; }
16555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16556 /* end confdefs.h. */
16559 #if HAVE_SYS_TYPES_H
16560 # include <sys/types.h>
16562 #include <netinet/in.h>
16563 #include <arpa/nameser.h>
16564 #include <resolv.h>
16565 extern struct __res_state _res;
16575 if ac_fn_c_try_link "$LINENO"; then :
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16577 $as_echo "yes" >&6; }
16579 $as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16584 $as_echo "no" >&6; }
16587 rm -f core conftest.err conftest.$ac_objext \
16588 conftest$ac_exeext conftest.$ac_ext
16590 # Check whether user wants SELinux support
16594 # Check whether --with-selinux was given.
16595 if test "${with_selinux+set}" = set; then :
16596 withval=$with_selinux; if test "x$withval" != "xno" ; then
16599 $as_echo "#define WITH_SELINUX 1" >>confdefs.h
16602 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
16603 if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
16606 as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5
16611 $as_echo_n "checking for setexeccon in -lselinux... " >&6; }
16612 if ${ac_cv_lib_selinux_setexeccon+:} false; then :
16613 $as_echo_n "(cached) " >&6
16615 ac_check_lib_save_LIBS=$LIBS
16616 LIBS="-lselinux $LIBS"
16617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16618 /* end confdefs.h. */
16620 /* Override any GCC internal prototype to avoid an error.
16621 Use char because int might match the return type of a GCC
16622 builtin and then its argument prototype would still apply. */
16626 char setexeccon ();
16630 return setexeccon ();
16635 if ac_fn_c_try_link "$LINENO"; then :
16636 ac_cv_lib_selinux_setexeccon=yes
16638 ac_cv_lib_selinux_setexeccon=no
16640 rm -f core conftest.err conftest.$ac_objext \
16641 conftest$ac_exeext conftest.$ac_ext
16642 LIBS=$ac_check_lib_save_LIBS
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5
16645 $as_echo "$ac_cv_lib_selinux_setexeccon" >&6; }
16646 if test "x$ac_cv_lib_selinux_setexeccon" = xyes; then :
16647 LIBSELINUX="-lselinux"
16648 LIBS="$LIBS -lselinux"
16651 as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5
16654 SSHLIBS="$SSHLIBS $LIBSELINUX"
16655 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
16656 for ac_func in getseuserbyname get_default_context_with_level
16658 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16659 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16660 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16661 cat >>confdefs.h <<_ACEOF
16662 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16676 # Check whether user wants Kerberos 5 support
16679 # Check whether --with-kerberos5 was given.
16680 if test "${with_kerberos5+set}" = set; then :
16681 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
16682 if test "x$withval" = "xyes" ; then
16683 KRB5ROOT="/usr/local"
16685 KRB5ROOT=${withval}
16689 $as_echo "#define KRB5 1" >>confdefs.h
16693 # Extract the first word of "krb5-config", so it can be a program name with args.
16694 set dummy krb5-config; ac_word=$2
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16696 $as_echo_n "checking for $ac_word... " >&6; }
16697 if ${ac_cv_path_KRB5CONF+:} false; then :
16698 $as_echo_n "(cached) " >&6
16702 ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
16705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16706 as_dummy="$KRB5ROOT/bin:$PATH"
16707 for as_dir in $as_dummy
16710 test -z "$as_dir" && as_dir=.
16711 for ac_exec_ext in '' $ac_executable_extensions; do
16712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16713 ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
16714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16721 test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config"
16725 KRB5CONF=$ac_cv_path_KRB5CONF
16726 if test -n "$KRB5CONF"; then
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5
16728 $as_echo "$KRB5CONF" >&6; }
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16731 $as_echo "no" >&6; }
16735 if test -x $KRB5CONF ; then
16736 K5CFLAGS="`$KRB5CONF --cflags`"
16737 K5LIBS="`$KRB5CONF --libs`"
16738 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5
16741 $as_echo_n "checking for gssapi support... " >&6; }
16742 if $KRB5CONF | grep gssapi >/dev/null ; then
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16744 $as_echo "yes" >&6; }
16746 $as_echo "#define GSSAPI 1" >>confdefs.h
16748 GSSCFLAGS="`$KRB5CONF --cflags gssapi`"
16749 GSSLIBS="`$KRB5CONF --libs gssapi`"
16750 CPPFLAGS="$CPPFLAGS $GSSCFLAGS"
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16753 $as_echo "no" >&6; }
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
16756 $as_echo_n "checking whether we are using Heimdal... " >&6; }
16757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16758 /* end confdefs.h. */
16764 char *tmp = heimdal_version;
16769 if ac_fn_c_try_compile "$LINENO"; then :
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16771 $as_echo "yes" >&6; }
16773 $as_echo "#define HEIMDAL 1" >>confdefs.h
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16777 $as_echo "no" >&6; }
16780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16782 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
16783 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
16785 $as_echo_n "checking whether we are using Heimdal... " >&6; }
16786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16787 /* end confdefs.h. */
16793 char *tmp = heimdal_version;
16798 if ac_fn_c_try_compile "$LINENO"; then :
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16800 $as_echo "yes" >&6; }
16801 $as_echo "#define HEIMDAL 1" >>confdefs.h
16804 K5LIBS="$K5LIBS -lcom_err -lasn1"
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5
16806 $as_echo_n "checking for net_write in -lroken... " >&6; }
16807 if ${ac_cv_lib_roken_net_write+:} false; then :
16808 $as_echo_n "(cached) " >&6
16810 ac_check_lib_save_LIBS=$LIBS
16811 LIBS="-lroken $LIBS"
16812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16813 /* end confdefs.h. */
16815 /* Override any GCC internal prototype to avoid an error.
16816 Use char because int might match the return type of a GCC
16817 builtin and then its argument prototype would still apply. */
16825 return net_write ();
16830 if ac_fn_c_try_link "$LINENO"; then :
16831 ac_cv_lib_roken_net_write=yes
16833 ac_cv_lib_roken_net_write=no
16835 rm -f core conftest.err conftest.$ac_objext \
16836 conftest$ac_exeext conftest.$ac_ext
16837 LIBS=$ac_check_lib_save_LIBS
16839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5
16840 $as_echo "$ac_cv_lib_roken_net_write" >&6; }
16841 if test "x$ac_cv_lib_roken_net_write" = xyes; then :
16842 K5LIBS="$K5LIBS -lroken"
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
16846 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
16847 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
16848 $as_echo_n "(cached) " >&6
16850 ac_check_lib_save_LIBS=$LIBS
16852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16853 /* end confdefs.h. */
16855 /* Override any GCC internal prototype to avoid an error.
16856 Use char because int might match the return type of a GCC
16857 builtin and then its argument prototype would still apply. */
16861 char des_cbc_encrypt ();
16865 return des_cbc_encrypt ();
16870 if ac_fn_c_try_link "$LINENO"; then :
16871 ac_cv_lib_des_des_cbc_encrypt=yes
16873 ac_cv_lib_des_des_cbc_encrypt=no
16875 rm -f core conftest.err conftest.$ac_objext \
16876 conftest$ac_exeext conftest.$ac_ext
16877 LIBS=$ac_check_lib_save_LIBS
16879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16880 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
16881 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
16882 K5LIBS="$K5LIBS -ldes"
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16888 $as_echo "no" >&6; }
16889 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
16893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
16895 $as_echo_n "checking for library containing dn_expand... " >&6; }
16896 if ${ac_cv_search_dn_expand+:} false; then :
16897 $as_echo_n "(cached) " >&6
16899 ac_func_search_save_LIBS=$LIBS
16900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16901 /* end confdefs.h. */
16903 /* Override any GCC internal prototype to avoid an error.
16904 Use char because int might match the return type of a GCC
16905 builtin and then its argument prototype would still apply. */
16913 return dn_expand ();
16918 for ac_lib in '' resolv; do
16919 if test -z "$ac_lib"; then
16920 ac_res="none required"
16923 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16925 if ac_fn_c_try_link "$LINENO"; then :
16926 ac_cv_search_dn_expand=$ac_res
16928 rm -f core conftest.err conftest.$ac_objext \
16930 if ${ac_cv_search_dn_expand+:} false; then :
16934 if ${ac_cv_search_dn_expand+:} false; then :
16937 ac_cv_search_dn_expand=no
16939 rm conftest.$ac_ext
16940 LIBS=$ac_func_search_save_LIBS
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
16943 $as_echo "$ac_cv_search_dn_expand" >&6; }
16944 ac_res=$ac_cv_search_dn_expand
16945 if test "$ac_res" != no; then :
16946 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5
16952 $as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; }
16953 if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then :
16954 $as_echo_n "(cached) " >&6
16956 ac_check_lib_save_LIBS=$LIBS
16957 LIBS="-lgssapi_krb5 $LIBS"
16958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16959 /* end confdefs.h. */
16961 /* Override any GCC internal prototype to avoid an error.
16962 Use char because int might match the return type of a GCC
16963 builtin and then its argument prototype would still apply. */
16967 char gss_init_sec_context ();
16971 return gss_init_sec_context ();
16976 if ac_fn_c_try_link "$LINENO"; then :
16977 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
16979 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
16981 rm -f core conftest.err conftest.$ac_objext \
16982 conftest$ac_exeext conftest.$ac_ext
16983 LIBS=$ac_check_lib_save_LIBS
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
16986 $as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
16987 if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then :
16988 $as_echo "#define GSSAPI 1" >>confdefs.h
16990 GSSLIBS="-lgssapi_krb5"
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5
16993 $as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; }
16994 if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then :
16995 $as_echo_n "(cached) " >&6
16997 ac_check_lib_save_LIBS=$LIBS
16998 LIBS="-lgssapi $LIBS"
16999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17000 /* end confdefs.h. */
17002 /* Override any GCC internal prototype to avoid an error.
17003 Use char because int might match the return type of a GCC
17004 builtin and then its argument prototype would still apply. */
17008 char gss_init_sec_context ();
17012 return gss_init_sec_context ();
17017 if ac_fn_c_try_link "$LINENO"; then :
17018 ac_cv_lib_gssapi_gss_init_sec_context=yes
17020 ac_cv_lib_gssapi_gss_init_sec_context=no
17022 rm -f core conftest.err conftest.$ac_objext \
17023 conftest$ac_exeext conftest.$ac_ext
17024 LIBS=$ac_check_lib_save_LIBS
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
17027 $as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
17028 if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then :
17029 $as_echo "#define GSSAPI 1" >>confdefs.h
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgss" >&5
17034 $as_echo_n "checking for gss_init_sec_context in -lgss... " >&6; }
17035 if ${ac_cv_lib_gss_gss_init_sec_context+:} false; then :
17036 $as_echo_n "(cached) " >&6
17038 ac_check_lib_save_LIBS=$LIBS
17040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17041 /* end confdefs.h. */
17043 /* Override any GCC internal prototype to avoid an error.
17044 Use char because int might match the return type of a GCC
17045 builtin and then its argument prototype would still apply. */
17049 char gss_init_sec_context ();
17053 return gss_init_sec_context ();
17058 if ac_fn_c_try_link "$LINENO"; then :
17059 ac_cv_lib_gss_gss_init_sec_context=yes
17061 ac_cv_lib_gss_gss_init_sec_context=no
17063 rm -f core conftest.err conftest.$ac_objext \
17064 conftest$ac_exeext conftest.$ac_ext
17065 LIBS=$ac_check_lib_save_LIBS
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_init_sec_context" >&5
17068 $as_echo "$ac_cv_lib_gss_gss_init_sec_context" >&6; }
17069 if test "x$ac_cv_lib_gss_gss_init_sec_context" = xyes; then :
17070 $as_echo "#define GSSAPI 1" >>confdefs.h
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
17075 $as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
17085 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
17086 if test "x$ac_cv_header_gssapi_h" = xyes; then :
17089 unset ac_cv_header_gssapi_h
17090 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
17091 for ac_header in gssapi.h
17093 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
17094 if test "x$ac_cv_header_gssapi_h" = xyes; then :
17095 cat >>confdefs.h <<_ACEOF
17096 #define HAVE_GSSAPI_H 1
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
17101 $as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
17114 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
17115 ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default"
17116 if test "x$ac_cv_header_gssapi_krb5_h" = xyes; then :
17125 if test ! -z "$need_dash_r" ; then
17126 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
17128 if test ! -z "$blibpath" ; then
17129 blibpath="$blibpath:${KRB5ROOT}/lib"
17132 for ac_header in gssapi.h gssapi/gssapi.h
17134 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17135 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17136 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17137 cat >>confdefs.h <<_ACEOF
17138 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17145 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
17147 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17148 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17149 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17150 cat >>confdefs.h <<_ACEOF
17151 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17158 for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
17160 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17161 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17162 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17163 cat >>confdefs.h <<_ACEOF
17164 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5
17173 $as_echo_n "checking for library containing k_hasafs... " >&6; }
17174 if ${ac_cv_search_k_hasafs+:} false; then :
17175 $as_echo_n "(cached) " >&6
17177 ac_func_search_save_LIBS=$LIBS
17178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17179 /* end confdefs.h. */
17181 /* Override any GCC internal prototype to avoid an error.
17182 Use char because int might match the return type of a GCC
17183 builtin and then its argument prototype would still apply. */
17191 return k_hasafs ();
17196 for ac_lib in '' kafs; do
17197 if test -z "$ac_lib"; then
17198 ac_res="none required"
17201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17203 if ac_fn_c_try_link "$LINENO"; then :
17204 ac_cv_search_k_hasafs=$ac_res
17206 rm -f core conftest.err conftest.$ac_objext \
17208 if ${ac_cv_search_k_hasafs+:} false; then :
17212 if ${ac_cv_search_k_hasafs+:} false; then :
17215 ac_cv_search_k_hasafs=no
17217 rm conftest.$ac_ext
17218 LIBS=$ac_func_search_save_LIBS
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5
17221 $as_echo "$ac_cv_search_k_hasafs" >&6; }
17222 ac_res=$ac_cv_search_k_hasafs
17223 if test "$ac_res" != no; then :
17224 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17226 $as_echo "#define USE_AFS 1" >>confdefs.h
17231 ac_fn_c_check_decl "$LINENO" "GSS_C_NT_HOSTBASED_SERVICE" "ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" "
17232 #ifdef HAVE_GSSAPI_H
17233 # include <gssapi.h>
17234 #elif defined(HAVE_GSSAPI_GSSAPI_H)
17235 # include <gssapi/gssapi.h>
17238 #ifdef HAVE_GSSAPI_GENERIC_H
17239 # include <gssapi_generic.h>
17240 #elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H)
17241 # include <gssapi/gssapi_generic.h>
17245 if test "x$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" = xyes; then :
17251 cat >>confdefs.h <<_ACEOF
17252 #define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE $ac_have_decl
17256 LIBS="$LIBS $K5LIBS"
17257 for ac_func in krb5_cc_new_unique krb5_get_error_message krb5_free_error_message
17259 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17260 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17261 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17262 cat >>confdefs.h <<_ACEOF
17263 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17279 # Looking for programs, paths and files
17281 PRIVSEP_PATH=/var/empty
17283 # Check whether --with-privsep-path was given.
17284 if test "${with_privsep_path+set}" = set; then :
17285 withval=$with_privsep_path;
17286 if test -n "$withval" && test "x$withval" != "xno" && \
17287 test "x${withval}" != "xyes"; then
17288 PRIVSEP_PATH=$withval
17297 # Check whether --with-xauth was given.
17298 if test "${with_xauth+set}" = set; then :
17299 withval=$with_xauth;
17300 if test -n "$withval" && test "x$withval" != "xno" && \
17301 test "x${withval}" != "xyes"; then
17302 xauth_path=$withval
17308 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
17309 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
17310 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
17311 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
17312 # Extract the first word of "xauth", so it can be a program name with args.
17313 set dummy xauth; ac_word=$2
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17315 $as_echo_n "checking for $ac_word... " >&6; }
17316 if ${ac_cv_path_xauth_path+:} false; then :
17317 $as_echo_n "(cached) " >&6
17319 case $xauth_path in
17321 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
17324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17325 for as_dir in $TestPath
17328 test -z "$as_dir" && as_dir=.
17329 for ac_exec_ext in '' $ac_executable_extensions; do
17330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17331 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
17332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17342 xauth_path=$ac_cv_path_xauth_path
17343 if test -n "$xauth_path"; then
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5
17345 $as_echo "$xauth_path" >&6; }
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17348 $as_echo "no" >&6; }
17352 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
17353 xauth_path="/usr/openwin/bin/xauth"
17361 # Check whether --enable-strip was given.
17362 if test "${enable_strip+set}" = set; then :
17363 enableval=$enable_strip;
17364 if test "x$enableval" = "xno" ; then
17373 if test -z "$xauth_path" ; then
17374 XAUTH_PATH="undefined"
17378 cat >>confdefs.h <<_ACEOF
17379 #define XAUTH_PATH "$xauth_path"
17382 XAUTH_PATH=$xauth_path
17386 # Check for mail directory
17388 # Check whether --with-maildir was given.
17389 if test "${with_maildir+set}" = set; then :
17390 withval=$with_maildir;
17391 if test "X$withval" != X && test "x$withval" != xno && \
17392 test "x${withval}" != xyes; then
17394 cat >>confdefs.h <<_ACEOF
17395 #define MAIL_DIRECTORY "$withval"
17402 if test "X$maildir" != "X"; then
17403 cat >>confdefs.h <<_ACEOF
17404 #define MAIL_DIRECTORY "$maildir"
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Discovering system mail directory" >&5
17409 $as_echo_n "checking Discovering system mail directory... " >&6; }
17410 if test "$cross_compiling" = yes; then :
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5
17413 $as_echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;}
17417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17418 /* end confdefs.h. */
17421 #include <string.h>
17422 #ifdef HAVE_PATHS_H
17425 #ifdef HAVE_MAILLOCK_H
17426 #include <maillock.h>
17428 #define DATA "conftest.maildir"
17437 fd = fopen(DATA,"w");
17441 #if defined (_PATH_MAILDIR)
17442 if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0)
17444 #elif defined (MAILDIR)
17445 if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0)
17447 #elif defined (_PATH_MAIL)
17448 if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0)
17460 if ac_fn_c_try_run "$LINENO"; then :
17462 maildir_what=`awk -F: '{print $1}' conftest.maildir`
17463 maildir=`awk -F: '{print $2}' conftest.maildir \
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: $maildir from $maildir_what" >&5
17466 $as_echo "Using: $maildir from $maildir_what" >&6; }
17467 if test "x$maildir_what" != "x_PATH_MAILDIR"; then
17468 cat >>confdefs.h <<_ACEOF
17469 #define MAIL_DIRECTORY "$maildir"
17476 if test "X$ac_status" = "X2";then
17477 # our test program didn't find it. Default to /var/spool/mail
17478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: default value of /var/spool/mail" >&5
17479 $as_echo "Using: default value of /var/spool/mail" >&6; }
17480 cat >>confdefs.h <<_ACEOF
17481 #define MAIL_DIRECTORY "/var/spool/mail"
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** not found ***" >&5
17486 $as_echo "*** not found ***" >&6; }
17490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17491 conftest.$ac_objext conftest.beam conftest.$ac_ext
17500 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
17502 $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
17503 disable_ptmx_check=yes
17505 if test -z "$no_dev_ptmx" ; then
17506 if test "x$disable_ptmx_check" != "xyes" ; then
17507 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh`
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5
17509 $as_echo_n "checking for \"/dev/ptmx\"... " >&6; }
17510 if eval \${$as_ac_File+:} false; then :
17511 $as_echo_n "(cached) " >&6
17513 test "$cross_compiling" = yes &&
17514 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
17515 if test -r ""/dev/ptmx""; then
17516 eval "$as_ac_File=yes"
17518 eval "$as_ac_File=no"
17521 eval ac_res=\$$as_ac_File
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17523 $as_echo "$ac_res" >&6; }
17524 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
17527 cat >>confdefs.h <<_ACEOF
17528 #define HAVE_DEV_PTMX 1
17539 if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
17540 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh`
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5
17542 $as_echo_n "checking for \"/dev/ptc\"... " >&6; }
17543 if eval \${$as_ac_File+:} false; then :
17544 $as_echo_n "(cached) " >&6
17546 test "$cross_compiling" = yes &&
17547 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
17548 if test -r ""/dev/ptc""; then
17549 eval "$as_ac_File=yes"
17551 eval "$as_ac_File=no"
17554 eval ac_res=\$$as_ac_File
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17556 $as_echo "$ac_res" >&6; }
17557 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
17560 cat >>confdefs.h <<_ACEOF
17561 #define HAVE_DEV_PTS_AND_PTC 1
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5
17571 $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
17574 # Options from here on. Some of these are preset by platform above
17576 # Check whether --with-mantype was given.
17577 if test "${with_mantype+set}" = set; then :
17578 withval=$with_mantype;
17584 as_fn_error $? "invalid man type: $withval" "$LINENO" 5
17591 if test -z "$MANTYPE"; then
17592 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
17593 for ac_prog in nroff awf
17595 # Extract the first word of "$ac_prog", so it can be a program name with args.
17596 set dummy $ac_prog; ac_word=$2
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17598 $as_echo_n "checking for $ac_word... " >&6; }
17599 if ${ac_cv_path_NROFF+:} false; then :
17600 $as_echo_n "(cached) " >&6
17604 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
17607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17608 for as_dir in $TestPath
17611 test -z "$as_dir" && as_dir=.
17612 for ac_exec_ext in '' $ac_executable_extensions; do
17613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17614 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
17615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17625 NROFF=$ac_cv_path_NROFF
17626 if test -n "$NROFF"; then
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
17628 $as_echo "$NROFF" >&6; }
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17631 $as_echo "no" >&6; }
17635 test -n "$NROFF" && break
17637 test -n "$NROFF" || NROFF="/bin/false"
17639 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
17641 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
17648 if test "$MANTYPE" = "doc"; then
17651 mansubdir=$MANTYPE;
17655 # Check whether to enable MD5 passwords
17658 # Check whether --with-md5-passwords was given.
17659 if test "${with_md5_passwords+set}" = set; then :
17660 withval=$with_md5_passwords;
17661 if test "x$withval" != "xno" ; then
17663 $as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h
17672 # Whether to disable shadow password support
17674 # Check whether --with-shadow was given.
17675 if test "${with_shadow+set}" = set; then :
17676 withval=$with_shadow;
17677 if test "x$withval" = "xno" ; then
17678 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
17687 if test -z "$disable_shadow" ; then
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5
17689 $as_echo_n "checking if the systems has expire shadow information... " >&6; }
17690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17691 /* end confdefs.h. */
17693 #include <sys/types.h>
17694 #include <shadow.h>
17700 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
17705 if ac_fn_c_try_compile "$LINENO"; then :
17706 sp_expire_available=yes
17708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17710 if test "x$sp_expire_available" = "xyes" ; then
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17712 $as_echo "yes" >&6; }
17714 $as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17718 $as_echo "no" >&6; }
17722 # Use ip address instead of hostname in $DISPLAY
17723 if test ! -z "$IPADDR_IN_DISPLAY" ; then
17724 DISPLAY_HACK_MSG="yes"
17726 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
17729 DISPLAY_HACK_MSG="no"
17731 # Check whether --with-ipaddr-display was given.
17732 if test "${with_ipaddr_display+set}" = set; then :
17733 withval=$with_ipaddr_display;
17734 if test "x$withval" != "xno" ; then
17735 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
17737 DISPLAY_HACK_MSG="yes"
17745 # check for /etc/default/login and use it if present.
17746 # Check whether --enable-etc-default-login was given.
17747 if test "${enable_etc_default_login+set}" = set; then :
17748 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5
17750 $as_echo "$as_me: /etc/default/login handling disabled" >&6;}
17751 etc_default_login=no
17753 etc_default_login=yes
17756 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5
17759 $as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
17760 etc_default_login=no
17762 etc_default_login=yes
17768 if test "x$etc_default_login" != "xno"; then
17769 as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh`
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5
17771 $as_echo_n "checking for \"/etc/default/login\"... " >&6; }
17772 if eval \${$as_ac_File+:} false; then :
17773 $as_echo_n "(cached) " >&6
17775 test "$cross_compiling" = yes &&
17776 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
17777 if test -r ""/etc/default/login""; then
17778 eval "$as_ac_File=yes"
17780 eval "$as_ac_File=no"
17783 eval ac_res=\$$as_ac_File
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17785 $as_echo "$ac_res" >&6; }
17786 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
17787 external_path_file=/etc/default/login
17790 if test "x$external_path_file" = "x/etc/default/login"; then
17792 $as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h
17797 if test $ac_cv_func_login_getcapbool = "yes" && \
17798 test $ac_cv_header_login_cap_h = "yes" ; then
17799 external_path_file=/etc/login.conf
17802 # Whether to mess with the default path
17803 SERVER_PATH_MSG="(default)"
17805 # Check whether --with-default-path was given.
17806 if test "${with_default_path+set}" = set; then :
17807 withval=$with_default_path;
17808 if test "x$external_path_file" = "x/etc/login.conf" ; then
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
17810 --with-default-path=PATH has no effect on this system.
17811 Edit /etc/login.conf instead." >&5
17812 $as_echo "$as_me: WARNING:
17813 --with-default-path=PATH has no effect on this system.
17814 Edit /etc/login.conf instead." >&2;}
17815 elif test "x$withval" != "xno" ; then
17816 if test ! -z "$external_path_file" ; then
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
17818 --with-default-path=PATH will only be used if PATH is not defined in
17819 $external_path_file ." >&5
17820 $as_echo "$as_me: WARNING:
17821 --with-default-path=PATH will only be used if PATH is not defined in
17822 $external_path_file ." >&2;}
17824 user_path="$withval"
17825 SERVER_PATH_MSG="$withval"
17829 if test "x$external_path_file" = "x/etc/login.conf" ; then
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
17831 $as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
17833 if test ! -z "$external_path_file" ; then
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
17835 If PATH is defined in $external_path_file, ensure the path to scp is included,
17836 otherwise scp will not work." >&5
17837 $as_echo "$as_me: WARNING:
17838 If PATH is defined in $external_path_file, ensure the path to scp is included,
17839 otherwise scp will not work." >&2;}
17841 if test "$cross_compiling" = yes; then :
17842 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
17845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17846 /* end confdefs.h. */
17848 /* find out what STDPATH is */
17850 #ifdef HAVE_PATHS_H
17851 # include <paths.h>
17853 #ifndef _PATH_STDPATH
17854 # ifdef _PATH_USERPATH /* Irix */
17855 # define _PATH_STDPATH _PATH_USERPATH
17857 # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
17860 #include <sys/types.h>
17861 #include <sys/stat.h>
17863 #define DATA "conftest.stdpath"
17872 fd = fopen(DATA,"w");
17876 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
17885 if ac_fn_c_try_run "$LINENO"; then :
17886 user_path=`cat conftest.stdpath`
17888 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
17890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17891 conftest.$ac_objext conftest.beam conftest.$ac_ext
17894 # make sure $bindir is in USER_PATH so scp will work
17895 t_bindir="${bindir}"
17896 while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do
17897 t_bindir=`eval echo ${t_bindir}`
17899 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
17902 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
17905 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
17906 if test $? -ne 0 ; then
17907 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
17908 if test $? -ne 0 ; then
17909 user_path=$user_path:$t_bindir
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5
17911 $as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; }
17918 if test "x$external_path_file" != "x/etc/login.conf" ; then
17920 cat >>confdefs.h <<_ACEOF
17921 #define USER_PATH "$user_path"
17927 # Set superuser path separately to user path
17929 # Check whether --with-superuser-path was given.
17930 if test "${with_superuser_path+set}" = set; then :
17931 withval=$with_superuser_path;
17932 if test -n "$withval" && test "x$withval" != "xno" && \
17933 test "x${withval}" != "xyes"; then
17935 cat >>confdefs.h <<_ACEOF
17936 #define SUPERUSER_PATH "$withval"
17939 superuser_path=$withval
17947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
17948 $as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; }
17949 IPV4_IN6_HACK_MSG="no"
17951 # Check whether --with-4in6 was given.
17952 if test "${with_4in6+set}" = set; then :
17953 withval=$with_4in6;
17954 if test "x$withval" != "xno" ; then
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17956 $as_echo "yes" >&6; }
17958 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
17960 IPV4_IN6_HACK_MSG="yes"
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17963 $as_echo "no" >&6; }
17968 if test "x$inet6_default_4in6" = "xyes"; then
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
17970 $as_echo "yes (default)" >&6; }
17971 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
17973 IPV4_IN6_HACK_MSG="yes"
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
17976 $as_echo "no (default)" >&6; }
17983 # Whether to enable BSD auth support
17986 # Check whether --with-bsd-auth was given.
17987 if test "${with_bsd_auth+set}" = set; then :
17988 withval=$with_bsd_auth;
17989 if test "x$withval" != "xno" ; then
17991 $as_echo "#define BSD_AUTH 1" >>confdefs.h
18000 # Where to place sshd.pid
18002 # make sure the directory exists
18003 if test ! -d $piddir ; then
18004 piddir=`eval echo ${sysconfdir}`
18006 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
18011 # Check whether --with-pid-dir was given.
18012 if test "${with_pid_dir+set}" = set; then :
18013 withval=$with_pid_dir;
18014 if test -n "$withval" && test "x$withval" != "xno" && \
18015 test "x${withval}" != "xyes"; then
18017 if test ! -d $piddir ; then
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5
18019 $as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
18028 cat >>confdefs.h <<_ACEOF
18029 #define _PATH_SSH_PIDDIR "$piddir"
18034 # Check whether --enable-lastlog was given.
18035 if test "${enable_lastlog+set}" = set; then :
18036 enableval=$enable_lastlog;
18037 if test "x$enableval" = "xno" ; then
18038 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
18045 # Check whether --enable-utmp was given.
18046 if test "${enable_utmp+set}" = set; then :
18047 enableval=$enable_utmp;
18048 if test "x$enableval" = "xno" ; then
18049 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
18056 # Check whether --enable-utmpx was given.
18057 if test "${enable_utmpx+set}" = set; then :
18058 enableval=$enable_utmpx;
18059 if test "x$enableval" = "xno" ; then
18061 $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
18068 # Check whether --enable-wtmp was given.
18069 if test "${enable_wtmp+set}" = set; then :
18070 enableval=$enable_wtmp;
18071 if test "x$enableval" = "xno" ; then
18072 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
18079 # Check whether --enable-wtmpx was given.
18080 if test "${enable_wtmpx+set}" = set; then :
18081 enableval=$enable_wtmpx;
18082 if test "x$enableval" = "xno" ; then
18084 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
18091 # Check whether --enable-libutil was given.
18092 if test "${enable_libutil+set}" = set; then :
18093 enableval=$enable_libutil;
18094 if test "x$enableval" = "xno" ; then
18095 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
18102 # Check whether --enable-pututline was given.
18103 if test "${enable_pututline+set}" = set; then :
18104 enableval=$enable_pututline;
18105 if test "x$enableval" = "xno" ; then
18107 $as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h
18114 # Check whether --enable-pututxline was given.
18115 if test "${enable_pututxline+set}" = set; then :
18116 enableval=$enable_pututxline;
18117 if test "x$enableval" = "xno" ; then
18119 $as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h
18127 # Check whether --with-lastlog was given.
18128 if test "${with_lastlog+set}" = set; then :
18129 withval=$with_lastlog;
18130 if test "x$withval" = "xno" ; then
18131 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
18133 elif test -n "$withval" && test "x${withval}" != "xyes"; then
18134 conf_lastlog_location=$withval
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5
18143 $as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; }
18144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18145 /* end confdefs.h. */
18147 #include <sys/types.h>
18149 #ifdef HAVE_LASTLOG_H
18150 # include <lastlog.h>
18152 #ifdef HAVE_PATHS_H
18153 # include <paths.h>
18155 #ifdef HAVE_LOGIN_H
18156 # include <login.h>
18162 char *lastlog = LASTLOG_FILE;
18167 if ac_fn_c_try_compile "$LINENO"; then :
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18169 $as_echo "yes" >&6; }
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18173 $as_echo "no" >&6; }
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5
18175 $as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; }
18176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18177 /* end confdefs.h. */
18179 #include <sys/types.h>
18181 #ifdef HAVE_LASTLOG_H
18182 # include <lastlog.h>
18184 #ifdef HAVE_PATHS_H
18185 # include <paths.h>
18191 char *lastlog = _PATH_LASTLOG;
18196 if ac_fn_c_try_compile "$LINENO"; then :
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18198 $as_echo "yes" >&6; }
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18202 $as_echo "no" >&6; }
18203 system_lastlog_path=no
18206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18211 if test -z "$conf_lastlog_location"; then
18212 if test x"$system_lastlog_path" = x"no" ; then
18213 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
18214 if (test -d "$f" || test -f "$f") ; then
18215 conf_lastlog_location=$f
18218 if test -z "$conf_lastlog_location"; then
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5
18220 $as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
18225 if test -n "$conf_lastlog_location"; then
18227 cat >>confdefs.h <<_ACEOF
18228 #define CONF_LASTLOG_FILE "$conf_lastlog_location"
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5
18234 $as_echo_n "checking if your system defines UTMP_FILE... " >&6; }
18235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18236 /* end confdefs.h. */
18238 #include <sys/types.h>
18240 #ifdef HAVE_PATHS_H
18241 # include <paths.h>
18247 char *utmp = UTMP_FILE;
18252 if ac_fn_c_try_compile "$LINENO"; then :
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18254 $as_echo "yes" >&6; }
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18257 $as_echo "no" >&6; }
18258 system_utmp_path=no
18261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18262 if test -z "$conf_utmp_location"; then
18263 if test x"$system_utmp_path" = x"no" ; then
18264 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
18265 if test -f $f ; then
18266 conf_utmp_location=$f
18269 if test -z "$conf_utmp_location"; then
18270 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
18275 if test -n "$conf_utmp_location"; then
18277 cat >>confdefs.h <<_ACEOF
18278 #define CONF_UTMP_FILE "$conf_utmp_location"
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5
18284 $as_echo_n "checking if your system defines WTMP_FILE... " >&6; }
18285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18286 /* end confdefs.h. */
18288 #include <sys/types.h>
18290 #ifdef HAVE_PATHS_H
18291 # include <paths.h>
18297 char *wtmp = WTMP_FILE;
18302 if ac_fn_c_try_compile "$LINENO"; then :
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18304 $as_echo "yes" >&6; }
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18307 $as_echo "no" >&6; }
18308 system_wtmp_path=no
18311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18312 if test -z "$conf_wtmp_location"; then
18313 if test x"$system_wtmp_path" = x"no" ; then
18314 for f in /usr/adm/wtmp /var/log/wtmp; do
18315 if test -f $f ; then
18316 conf_wtmp_location=$f
18319 if test -z "$conf_wtmp_location"; then
18320 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
18325 if test -n "$conf_wtmp_location"; then
18327 cat >>confdefs.h <<_ACEOF
18328 #define CONF_WTMP_FILE "$conf_wtmp_location"
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5
18334 $as_echo_n "checking if your system defines WTMPX_FILE... " >&6; }
18335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18336 /* end confdefs.h. */
18338 #include <sys/types.h>
18340 #ifdef HAVE_UTMPX_H
18343 #ifdef HAVE_PATHS_H
18344 # include <paths.h>
18350 char *wtmpx = WTMPX_FILE;
18355 if ac_fn_c_try_compile "$LINENO"; then :
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18357 $as_echo "yes" >&6; }
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18360 $as_echo "no" >&6; }
18361 system_wtmpx_path=no
18364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18365 if test -z "$conf_wtmpx_location"; then
18366 if test x"$system_wtmpx_path" = x"no" ; then
18367 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
18372 cat >>confdefs.h <<_ACEOF
18373 #define CONF_WTMPX_FILE "$conf_wtmpx_location"
18379 if test ! -z "$blibpath" ; then
18380 LDFLAGS="$LDFLAGS $blibflags$blibpath"
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
18382 $as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
18385 ac_fn_c_check_member "$LINENO" "struct lastlog" "ll_line" "ac_cv_member_struct_lastlog_ll_line" "
18386 #ifdef HAVE_SYS_TYPES_H
18387 #include <sys/types.h>
18392 #ifdef HAVE_UTMPX_H
18395 #ifdef HAVE_LASTLOG_H
18396 #include <lastlog.h>
18400 if test "x$ac_cv_member_struct_lastlog_ll_line" = xyes; then :
18404 if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then
18405 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
18412 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_line" "ac_cv_member_struct_utmp_ut_line" "
18413 #ifdef HAVE_SYS_TYPES_H
18414 #include <sys/types.h>
18419 #ifdef HAVE_UTMPX_H
18422 #ifdef HAVE_LASTLOG_H
18423 #include <lastlog.h>
18427 if test "x$ac_cv_member_struct_utmp_ut_line" = xyes; then :
18431 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
18433 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
18439 CFLAGS="$CFLAGS $werror_flags"
18441 if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
18446 ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default"
18447 if test "x$ac_cv_have_decl_BROKEN_GETADDRINFO" = xyes; then :
18451 TEST_SSH_IPV6=$TEST_SSH_IPV6
18453 TEST_MALLOC_OPTIONS=$TEST_MALLOC_OPTIONS
18455 UNSUPPORTED_ALGORITHMS=$unsupported_algorithms
18459 ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh"
18461 cat >confcache <<\_ACEOF
18462 # This file is a shell script that caches the results of configure
18463 # tests run on this system so they can be shared between configure
18464 # scripts and configure runs, see configure's option --config-cache.
18465 # It is not useful on other systems. If it contains results you don't
18466 # want to keep, you may remove or edit it.
18468 # config.status only pays attention to the cache file if you give it
18469 # the --recheck option to rerun configure.
18471 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18472 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18473 # following values.
18477 # The following way of writing the cache mishandles newlines in values,
18478 # but we know of no workaround that is simple, portable, and efficient.
18479 # So, we kill variables containing newlines.
18480 # Ultrix sh set writes to stderr and can't be redirected directly,
18481 # and sets the high bit in the cache file unless we assign to the vars.
18483 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18484 eval ac_val=\$$ac_var
18488 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18489 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18492 _ | IFS | as_nl) ;; #(
18493 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18494 *) { eval $ac_var=; unset $ac_var;} ;;
18500 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18501 *${as_nl}ac_space=\ *)
18502 # `set' does not quote correctly, so add quotes: double-quote
18503 # substitution turns \\\\ into \\, and sed turns \\ into \.
18506 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18509 # `set' quotes correctly as required by POSIX, so do not add quotes.
18510 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18519 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18521 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18523 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18524 if test -w "$cache_file"; then
18525 if test "x$cache_file" != "x/dev/null"; then
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18527 $as_echo "$as_me: updating cache $cache_file" >&6;}
18528 if test ! -f "$cache_file" || test -h "$cache_file"; then
18529 cat confcache >"$cache_file"
18531 case $cache_file in #(
18533 mv -f confcache "$cache_file"$$ &&
18534 mv -f "$cache_file"$$ "$cache_file" ;; #(
18536 mv -f confcache "$cache_file" ;;
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18542 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18547 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18548 # Let make expand exec_prefix.
18549 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18551 DEFS=-DHAVE_CONFIG_H
18556 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18557 # 1. Remove the extension, and $U if already installed.
18558 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18559 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18560 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18561 # will be set to the directory where LIBOBJS objects are built.
18562 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18563 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18565 LIBOBJS=$ac_libobjs
18567 LTLIBOBJS=$ac_ltlibobjs
18572 : "${CONFIG_STATUS=./config.status}"
18574 ac_clean_files_save=$ac_clean_files
18575 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18577 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18579 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18581 # Generated by $as_me.
18582 # Run this file to recreate the current configuration.
18583 # Compiler output produced by configure, useful for debugging
18584 # configure, is in config.log if it exists.
18587 ac_cs_recheck=false
18590 SHELL=\${CONFIG_SHELL-$SHELL}
18593 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18594 ## -------------------- ##
18595 ## M4sh Initialization. ##
18596 ## -------------------- ##
18598 # Be more Bourne compatible
18599 DUALCASE=1; export DUALCASE # for MKS sh
18600 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18603 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18604 # is contrary to our usage. Disable this feature.
18605 alias -g '${1+"$@"}'='"$@"'
18606 setopt NO_GLOB_SUBST
18608 case `(set -o) 2>/dev/null` in #(
18620 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18621 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18622 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18623 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18624 # Prefer a ksh shell builtin over an external printf program on Solaris,
18625 # but without wasting forks for bash or zsh.
18626 if test -z "$BASH_VERSION$ZSH_VERSION" \
18627 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18628 as_echo='print -r --'
18629 as_echo_n='print -rn --'
18630 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18631 as_echo='printf %s\n'
18632 as_echo_n='printf %s'
18634 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18635 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18636 as_echo_n='/usr/ucb/echo -n'
18638 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18639 as_echo_n_body='eval
18643 expr "X$arg" : "X\\(.*\\)$as_nl";
18644 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18646 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18648 export as_echo_n_body
18649 as_echo_n='sh -c $as_echo_n_body as_echo'
18651 export as_echo_body
18652 as_echo='sh -c $as_echo_body as_echo'
18655 # The user is always right.
18656 if test "${PATH_SEPARATOR+set}" != set; then
18658 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18659 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18666 # We need space, tab and new line, in precisely that order. Quoting is
18667 # there to prevent editors from complaining about space-tab.
18668 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18669 # splitting by setting IFS to empty value.)
18672 # Find who we are. Look in the path if we contain no directory separator.
18675 *[\\/]* ) as_myself=$0 ;;
18676 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18677 for as_dir in $PATH
18680 test -z "$as_dir" && as_dir=.
18681 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18687 # We did not find ourselves, most probably we were run as `sh COMMAND'
18688 # in which case we are not to be found in the path.
18689 if test "x$as_myself" = x; then
18692 if test ! -f "$as_myself"; then
18693 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18697 # Unset variables that we do not need and which cause bugs (e.g. in
18698 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18699 # suppresses any "Segmentation fault" message there. '((' could
18700 # trigger a bug in pdksh 5.2.14.
18701 for as_var in BASH_ENV ENV MAIL MAILPATH
18702 do eval test x\${$as_var+set} = xset \
18703 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18716 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18719 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18720 # ----------------------------------------
18721 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18722 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18723 # script with STATUS, using 1 if that was 0.
18726 as_status=$1; test $as_status -eq 0 && as_status=1
18728 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18729 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18731 $as_echo "$as_me: error: $2" >&2
18732 as_fn_exit $as_status
18736 # as_fn_set_status STATUS
18737 # -----------------------
18738 # Set $? to STATUS, without forking.
18739 as_fn_set_status ()
18742 } # as_fn_set_status
18744 # as_fn_exit STATUS
18745 # -----------------
18746 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18750 as_fn_set_status $1
18756 # Portably unset VAR.
18759 { eval $1=; unset $1;}
18761 as_unset=as_fn_unset
18762 # as_fn_append VAR VALUE
18763 # ----------------------
18764 # Append the text in VALUE to the end of the definition contained in VAR. Take
18765 # advantage of any shell optimizations that allow amortized linear growth over
18766 # repeated appends, instead of the typical quadratic growth present in naive
18768 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18769 eval 'as_fn_append ()
18780 # as_fn_arith ARG...
18781 # ------------------
18782 # Perform arithmetic evaluation on the ARGs, and store the result in the
18783 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18784 # must be portable across $(()) and expr.
18785 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18786 eval 'as_fn_arith ()
18793 as_val=`expr "$@" || test $? -eq 1`
18798 if expr a : '\(a\)' >/dev/null 2>&1 &&
18799 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18805 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18806 as_basename=basename
18811 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18817 as_me=`$as_basename -- "$0" ||
18818 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18819 X"$0" : 'X\(//\)$' \| \
18820 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18822 sed '/^.*\/\([^/][^/]*\)\/*$/{
18836 # Avoid depending upon Character Ranges.
18837 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18838 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18839 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18840 as_cr_digits='0123456789'
18841 as_cr_alnum=$as_cr_Letters$as_cr_digits
18843 ECHO_C= ECHO_N= ECHO_T=
18844 case `echo -n x` in #(((((
18846 case `echo 'xy\c'` in
18847 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18849 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18856 rm -f conf$$ conf$$.exe conf$$.file
18857 if test -d conf$$.dir; then
18858 rm -f conf$$.dir/conf$$.file
18861 mkdir conf$$.dir 2>/dev/null
18863 if (echo >conf$$.file) 2>/dev/null; then
18864 if ln -s conf$$.file conf$$ 2>/dev/null; then
18866 # ... but there are two gotchas:
18867 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18868 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18869 # In both cases, we have to default to `cp -pR'.
18870 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18872 elif ln conf$$.file conf$$ 2>/dev/null; then
18880 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18881 rmdir conf$$.dir 2>/dev/null
18886 # Create "$as_dir" as a directory, including parents if necessary.
18891 -*) as_dir=./$as_dir;;
18893 test -d "$as_dir" || eval $as_mkdir_p || {
18897 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18898 *) as_qdir=$as_dir;;
18900 as_dirs="'$as_qdir' $as_dirs"
18901 as_dir=`$as_dirname -- "$as_dir" ||
18902 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18903 X"$as_dir" : 'X\(//\)[^/]' \| \
18904 X"$as_dir" : 'X\(//\)$' \| \
18905 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18906 $as_echo X"$as_dir" |
18907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18911 /^X\(\/\/\)[^/].*/{
18924 test -d "$as_dir" && break
18926 test -z "$as_dirs" || eval "mkdir $as_dirs"
18927 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18931 if mkdir -p . 2>/dev/null; then
18932 as_mkdir_p='mkdir -p "$as_dir"'
18934 test -d ./-p && rmdir ./-p
18939 # as_fn_executable_p FILE
18940 # -----------------------
18941 # Test if FILE is an executable regular file.
18942 as_fn_executable_p ()
18944 test -f "$1" && test -x "$1"
18945 } # as_fn_executable_p
18946 as_test_x='test -x'
18947 as_executable_p=as_fn_executable_p
18949 # Sed expression to map a string onto a valid CPP name.
18950 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18952 # Sed expression to map a string onto a valid variable name.
18953 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18957 ## ----------------------------------- ##
18958 ## Main body of $CONFIG_STATUS script. ##
18959 ## ----------------------------------- ##
18961 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18964 # Save the log message, to keep $0 and so on meaningful, and to
18965 # report actual input values of CONFIG_FILES etc. instead of their
18966 # values after options handling.
18968 This file was extended by OpenSSH $as_me Portable, which was
18969 generated by GNU Autoconf 2.69. Invocation command line was
18971 CONFIG_FILES = $CONFIG_FILES
18972 CONFIG_HEADERS = $CONFIG_HEADERS
18973 CONFIG_LINKS = $CONFIG_LINKS
18974 CONFIG_COMMANDS = $CONFIG_COMMANDS
18977 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18982 case $ac_config_files in *"
18983 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18986 case $ac_config_headers in *"
18987 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18992 # Files that config.status was made for.
18993 config_files="$ac_config_files"
18994 config_headers="$ac_config_headers"
18998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19000 \`$as_me' instantiates files and other configuration actions
19001 from templates according to the current configuration. Unless the files
19002 and actions are specified as TAGs, all are instantiated by default.
19004 Usage: $0 [OPTION]... [TAG]...
19006 -h, --help print this help, then exit
19007 -V, --version print version number and configuration settings, then exit
19008 --config print configuration, then exit
19009 -q, --quiet, --silent
19010 do not print progress messages
19011 -d, --debug don't remove temporary files
19012 --recheck update $as_me by reconfiguring in the same conditions
19013 --file=FILE[:TEMPLATE]
19014 instantiate the configuration file FILE
19015 --header=FILE[:TEMPLATE]
19016 instantiate the configuration header FILE
19018 Configuration files:
19021 Configuration headers:
19024 Report bugs to <openssh-unix-dev@mindrot.org>."
19027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19028 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19030 OpenSSH config.status Portable
19031 configured by $0, generated by GNU Autoconf 2.69,
19032 with options \\"\$ac_cs_config\\"
19034 Copyright (C) 2012 Free Software Foundation, Inc.
19035 This config.status script is free software; the Free Software Foundation
19036 gives unlimited permission to copy, distribute and modify it."
19042 test -n "\$AWK" || AWK=awk
19045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19046 # The default lists apply if the user does not specify any file.
19052 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19053 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19057 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19069 # Handling of the options.
19070 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19072 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19073 $as_echo "$ac_cs_version"; exit ;;
19074 --config | --confi | --conf | --con | --co | --c )
19075 $as_echo "$ac_cs_config"; exit ;;
19076 --debug | --debu | --deb | --de | --d | -d )
19078 --file | --fil | --fi | --f )
19081 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19082 '') as_fn_error $? "missing file argument" ;;
19084 as_fn_append CONFIG_FILES " '$ac_optarg'"
19085 ac_need_defaults=false;;
19086 --header | --heade | --head | --hea )
19089 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19091 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19092 ac_need_defaults=false;;
19094 # Conflict between --help and --header
19095 as_fn_error $? "ambiguous option: \`$1'
19096 Try \`$0 --help' for more information.";;
19097 --help | --hel | -h )
19098 $as_echo "$ac_cs_usage"; exit ;;
19099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19100 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19103 # This is an error.
19104 -*) as_fn_error $? "unrecognized option: \`$1'
19105 Try \`$0 --help' for more information." ;;
19107 *) as_fn_append ac_config_targets " $1"
19108 ac_need_defaults=false ;;
19114 ac_configure_extra_args=
19116 if $ac_cs_silent; then
19118 ac_configure_extra_args="$ac_configure_extra_args --silent"
19122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19123 if \$ac_cs_recheck; then
19124 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19126 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19127 CONFIG_SHELL='$SHELL'
19128 export CONFIG_SHELL
19133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19137 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19138 ## Running $as_me. ##
19144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19149 # Handling of arguments.
19150 for ac_config_target in $ac_config_targets
19152 case $ac_config_target in
19153 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19154 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19155 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
19156 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
19157 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
19158 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
19159 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
19160 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
19162 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19167 # If the user did not use the arguments to specify the items to instantiate,
19168 # then the envvar interface is used. Set only those that are not.
19169 # We use the long form for the default assignment because of an extremely
19170 # bizarre bug on SunOS 4.1.3.
19171 if $ac_need_defaults; then
19172 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19173 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19176 # Have a temporary directory for convenience. Make it in the build tree
19177 # simply because there is no reason against having it here, and in addition,
19178 # creating and moving files from /tmp can sometimes cause problems.
19179 # Hook for its removal unless debugging.
19180 # Note that there is a small window in which the directory will not be cleaned:
19181 # after its creation but before its name has been assigned to `$tmp'.
19185 trap 'exit_status=$?
19186 : "${ac_tmp:=$tmp}"
19187 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19189 trap 'as_fn_exit 1' 1 2 13 15
19191 # Create a (secure) tmp directory for tmp files.
19194 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19198 tmp=./conf$$-$RANDOM
19199 (umask 077 && mkdir "$tmp")
19200 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19203 # Set up the scripts for CONFIG_FILES section.
19204 # No need to generate them if there are no CONFIG_FILES.
19205 # This happens for instance with `./config.status config.h'.
19206 if test -n "$CONFIG_FILES"; then
19209 ac_cr=`echo X | tr X '\015'`
19210 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19211 # But we know of no other shell where ac_cr would be empty at this
19212 # point, so we can use a bashism as a fallback.
19213 if test "x$ac_cr" = x; then
19214 eval ac_cr=\$\'\\r\'
19216 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19217 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19220 ac_cs_awk_cr=$ac_cr
19223 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19228 echo "cat >conf$$subs.awk <<_ACEOF" &&
19229 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19231 } >conf$$subs.sh ||
19232 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19233 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19235 for ac_last_try in false false false false false :; do
19236 . ./conf$$subs.sh ||
19237 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19239 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19240 if test $ac_delim_n = $ac_delim_num; then
19242 elif $ac_last_try; then
19243 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19245 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19248 rm -f conf$$subs.sh
19250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19251 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19255 s/^/S["/; s/!.*/"]=/
19265 s/\(.\{148\}\)..*/\1/
19267 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19272 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19279 s/\(.\{148\}\)..*/\1/
19281 s/["\\]/\\&/g; s/^/"/; s/$/"/
19285 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19290 ' <conf$$subs.awk | sed '
19295 ' >>$CONFIG_STATUS || ac_write_fail=1
19296 rm -f conf$$subs.awk
19297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19299 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19300 for (key in S) S_is_set[key] = 1
19306 nfields = split(line, field, "@")
19308 len = length(field[1])
19309 for (i = 2; i < nfields; i++) {
19311 keylen = length(key)
19312 if (S_is_set[key]) {
19314 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19315 len += length(value) + length(field[++i])
19326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19327 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19328 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19331 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19332 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19335 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19336 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19337 # trailing colons and then remove the whole line if VPATH becomes empty
19338 # (actually we leave an empty line to preserve line numbers).
19339 if test "x$srcdir" = x.; then
19340 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19359 fi # test -n "$CONFIG_FILES"
19361 # Set up the scripts for CONFIG_HEADERS section.
19362 # No need to generate them if there are no CONFIG_HEADERS.
19363 # This happens for instance with `./config.status Makefile'.
19364 if test -n "$CONFIG_HEADERS"; then
19365 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19369 # Transform confdefs.h into an awk script `defines.awk', embedded as
19370 # here-document in config.status, that substitutes the proper values into
19371 # config.h.in to produce config.h.
19373 # Create a delimiter string that does not exist in confdefs.h, to ease
19374 # handling of long lines.
19376 for ac_last_try in false false :; do
19377 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19378 if test -z "$ac_tt"; then
19380 elif $ac_last_try; then
19381 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19383 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19387 # For the awk script, D is an array of macro values keyed by name,
19388 # likewise P contains macro parameters if any. Preserve backslash
19389 # newline sequences.
19391 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19393 s/.\{148\}/&'"$ac_delim"'/g
19396 s/^[ ]*#[ ]*define[ ][ ]*/ /
19403 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19405 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19409 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19410 D["\1"]=" \3\\\\\\n"\\/p
19412 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19417 s/.\{148\}/&'"$ac_delim"'/g
19422 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19425 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19427 ' <confdefs.h | sed '
19428 s/'"$ac_delim"'/"\\\
19429 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19432 for (key in D) D_is_set[key] = 1
19435 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19437 split(line, arg, " ")
19438 if (arg[1] == "#") {
19442 defundef = substr(arg[1], 2)
19445 split(mac1, mac2, "(") #)
19447 prefix = substr(line, 1, index(line, defundef) - 1)
19448 if (D_is_set[macro]) {
19449 # Preserve the white space surrounding the "#".
19450 print prefix "define", macro P[macro] D[macro]
19453 # Replace #undef with comments. This is necessary, for example,
19454 # in the case of _POSIX_SOURCE, which is predefined and required
19455 # on some systems where configure will not decide to define it.
19456 if (defundef == "undef") {
19457 print "/*", prefix defundef, macro, "*/"
19465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19466 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19467 fi # test -n "$CONFIG_HEADERS"
19470 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
19475 :[FHLC]) ac_mode=$ac_tag; continue;;
19477 case $ac_mode$ac_tag in
19479 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19480 :[FH]-) ac_tag=-:-;;
19481 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19498 -) ac_f="$ac_tmp/stdin";;
19499 *) # Look for the file first in the build tree, then in the source tree
19500 # (if the path is not absolute). The absolute path cannot be DOS-style,
19501 # because $ac_f cannot contain `:'.
19505 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19507 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19509 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19510 as_fn_append ac_file_inputs " '$ac_f'"
19513 # Let's still pretend it is `configure' which instantiates (i.e., don't
19514 # use $as_me), people would be surprised to read:
19515 # /* config.h. Generated by config.status. */
19516 configure_input='Generated from '`
19517 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19519 if test x"$ac_file" != x-; then
19520 configure_input="$ac_file. $configure_input"
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19522 $as_echo "$as_me: creating $ac_file" >&6;}
19524 # Neutralize special characters interpreted by sed in replacement strings.
19525 case $configure_input in #(
19526 *\&* | *\|* | *\\* )
19527 ac_sed_conf_input=`$as_echo "$configure_input" |
19528 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19529 *) ac_sed_conf_input=$configure_input;;
19533 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19534 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19539 ac_dir=`$as_dirname -- "$ac_file" ||
19540 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19541 X"$ac_file" : 'X\(//\)[^/]' \| \
19542 X"$ac_file" : 'X\(//\)$' \| \
19543 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19544 $as_echo X"$ac_file" |
19545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19549 /^X\(\/\/\)[^/].*/{
19562 as_dir="$ac_dir"; as_fn_mkdir_p
19566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19568 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19569 # A ".." for each directory in $ac_dir_suffix.
19570 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19571 case $ac_top_builddir_sub in
19572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19576 ac_abs_top_builddir=$ac_pwd
19577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19578 # for backward compatibility:
19579 ac_top_builddir=$ac_top_build_prefix
19582 .) # We are building in place.
19584 ac_top_srcdir=$ac_top_builddir_sub
19585 ac_abs_top_srcdir=$ac_pwd ;;
19586 [\\/]* | ?:[\\/]* ) # Absolute name.
19587 ac_srcdir=$srcdir$ac_dir_suffix;
19588 ac_top_srcdir=$srcdir
19589 ac_abs_top_srcdir=$srcdir ;;
19590 *) # Relative name.
19591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19592 ac_top_srcdir=$ac_top_build_prefix$srcdir
19593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19605 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19606 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19611 # If the template does not know about datarootdir, expand it.
19612 # FIXME: This hack should be removed a few years after 2.60.
19613 ac_datarootdir_hack=; ac_datarootdir_seen=
19624 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19625 *datarootdir*) ac_datarootdir_seen=yes;;
19626 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19628 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19631 ac_datarootdir_hack='
19632 s&@datadir@&$datadir&g
19633 s&@docdir@&$docdir&g
19634 s&@infodir@&$infodir&g
19635 s&@localedir@&$localedir&g
19636 s&@mandir@&$mandir&g
19637 s&\\\${datarootdir}&$datarootdir&g' ;;
19641 # Neutralize VPATH when `$srcdir' = `.'.
19642 # Shell code in configure.ac might set extrasub.
19643 # FIXME: do we really want to maintain this feature?
19644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19645 ac_sed_extra="$ac_vpsub
19648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19650 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19651 s|@configure_input@|$ac_sed_conf_input|;t t
19652 s&@top_builddir@&$ac_top_builddir_sub&;t t
19653 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19654 s&@srcdir@&$ac_srcdir&;t t
19655 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19656 s&@top_srcdir@&$ac_top_srcdir&;t t
19657 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19658 s&@builddir@&$ac_builddir&;t t
19659 s&@abs_builddir@&$ac_abs_builddir&;t t
19660 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19661 s&@INSTALL@&$ac_INSTALL&;t t
19662 $ac_datarootdir_hack
19664 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19665 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19667 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19668 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19669 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19670 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19672 which seems to be undefined. Please make sure it is defined" >&5
19673 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19674 which seems to be undefined. Please make sure it is defined" >&2;}
19676 rm -f "$ac_tmp/stdin"
19678 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19679 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19681 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19687 if test x"$ac_file" != x-; then
19689 $as_echo "/* $configure_input */" \
19690 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19691 } >"$ac_tmp/config.h" \
19692 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19693 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19694 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19695 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19698 mv "$ac_tmp/config.h" "$ac_file" \
19699 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19702 $as_echo "/* $configure_input */" \
19703 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19704 || as_fn_error $? "could not create -" "$LINENO" 5
19716 ac_clean_files=$ac_clean_files_save
19718 test $ac_write_fail = 0 ||
19719 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19722 # configure is writing to config.log, and then calls config.status.
19723 # config.status does its own redirection, appending to config.log.
19724 # Unfortunately, on DOS this fails, as config.log is still kept open
19725 # by configure, so config.status won't be able to write to it; its
19726 # output is simply discarded. So we exec the FD to /dev/null,
19727 # effectively closing config.log, so it can be properly (re)opened and
19728 # appended to by config.status. When coming back to configure, we
19729 # need to make the FD available again.
19730 if test "$no_create" != yes; then
19732 ac_config_status_args=
19733 test "$silent" = yes &&
19734 ac_config_status_args="$ac_config_status_args --quiet"
19736 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19738 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19739 # would make configure fail if this is the last instruction.
19740 $ac_cs_success || as_fn_exit 1
19742 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19744 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19748 # Print summary of options
19750 # Someone please show me a better way :)
19751 A=`eval echo ${prefix}` ; A=`eval echo ${A}`
19752 B=`eval echo ${bindir}` ; B=`eval echo ${B}`
19753 C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
19754 D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
19755 E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
19756 F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
19757 G=`eval echo ${piddir}` ; G=`eval echo ${G}`
19758 H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
19759 I=`eval echo ${user_path}` ; I=`eval echo ${I}`
19760 J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
19763 echo "OpenSSH has been configured with the following options:"
19764 echo " User binaries: $B"
19765 echo " System binaries: $C"
19766 echo " Configuration files: $D"
19767 echo " Askpass program: $E"
19768 echo " Manual pages: $F"
19769 echo " PID file: $G"
19770 echo " Privilege separation chroot path: $H"
19771 if test "x$external_path_file" = "x/etc/login.conf" ; then
19772 echo " At runtime, sshd will use the path defined in $external_path_file"
19773 echo " Make sure the path to scp is present, otherwise scp will not work"
19775 echo " sshd default user PATH: $I"
19776 if test ! -z "$external_path_file"; then
19777 echo " (If PATH is set in $external_path_file it will be used instead. If"
19778 echo " used, ensure the path to scp is present, otherwise scp will not work.)"
19781 if test ! -z "$superuser_path" ; then
19782 echo " sshd superuser user PATH: $J"
19784 echo " Manpage format: $MANTYPE"
19785 echo " PAM support: $PAM_MSG"
19786 echo " OSF SIA support: $SIA_MSG"
19787 echo " KerberosV support: $KRB5_MSG"
19788 echo " SELinux support: $SELINUX_MSG"
19789 echo " Smartcard support: $SCARD_MSG"
19790 echo " S/KEY support: $SKEY_MSG"
19791 echo " TCP Wrappers support: $TCPW_MSG"
19792 echo " MD5 password support: $MD5_MSG"
19793 echo " libedit support: $LIBEDIT_MSG"
19794 echo " Solaris process contract support: $SPC_MSG"
19795 echo " Solaris project support: $SP_MSG"
19796 echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
19797 echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
19798 echo " BSD Auth support: $BSD_AUTH_MSG"
19799 echo " Random number source: $RAND_MSG"
19800 echo " Privsep sandbox style: $SANDBOX_STYLE"
19804 echo " Host: ${host}"
19805 echo " Compiler: ${CC}"
19806 echo " Compiler flags: ${CFLAGS}"
19807 echo "Preprocessor flags: ${CPPFLAGS}"
19808 echo " Linker flags: ${LDFLAGS}"
19809 echo " Libraries: ${LIBS}"
19810 if test ! -z "${SSHDLIBS}"; then
19811 echo " +for sshd: ${SSHDLIBS}"
19813 if test ! -z "${SSHLIBS}"; then
19814 echo " +for ssh: ${SSHLIBS}"
19819 if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
19820 echo "SVR4 style packages are supported with \"make package\""
19824 if test "x$PAM_MSG" = "xyes" ; then
19825 echo "PAM is enabled. You may need to install a PAM control file "
19826 echo "for sshd, otherwise password authentication may fail. "
19827 echo "Example PAM control files can be found in the contrib/ "
19828 echo "subdirectory"
19832 if test ! -z "$NO_PEERCHECK" ; then
19833 echo "WARNING: the operating system that you are using does not"
19834 echo "appear to support getpeereid(), getpeerucred() or the"
19835 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
19836 echo "enforce security checks to prevent unauthorised connections to"
19837 echo "ssh-agent. Their absence increases the risk that a malicious"
19838 echo "user can connect to your agent."
19842 if test "$AUDIT_MODULE" = "bsm" ; then
19843 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
19844 echo "See the Solaris section in README.platform for details."