2 # From configure.ac Revision: 1.480 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.67 for OpenSSH Portable.
6 # Report bugs to <openssh-unix-dev@mindrot.org>.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
71 as_echo_n='sh -c $as_echo_n_body as_echo'
74 as_echo='sh -c $as_echo_body as_echo'
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
94 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir=.
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
222 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
227 if test x$as_have_required = xno; then :
228 $as_echo "$0: This script requires a shell more modern than all"
229 $as_echo "$0: the shells that I found on your system."
230 if test x${ZSH_VERSION+set} = xset ; then
231 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
232 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
234 $as_echo "$0: Please tell bug-autoconf@gnu.org and
235 $0: openssh-unix-dev@mindrot.org about your system,
236 $0: including any error possibly output before this
237 $0: message. Then install a modern shell, or manually run
238 $0: the script under such a shell if you do have one."
244 SHELL=${CONFIG_SHELL-/bin/sh}
246 # Unset more variables known to interfere with behavior of common tools.
247 CLICOLOR_FORCE= GREP_OPTIONS=
248 unset CLICOLOR_FORCE GREP_OPTIONS
250 ## --------------------- ##
251 ## M4sh Shell Functions. ##
252 ## --------------------- ##
255 # Portably unset VAR.
258 { eval $1=; unset $1;}
262 # as_fn_set_status STATUS
263 # -----------------------
264 # Set $? to STATUS, without forking.
272 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
282 # Create "$as_dir" as a directory, including parents if necessary.
287 -*) as_dir=./$as_dir;;
289 test -d "$as_dir" || eval $as_mkdir_p || {
293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 as_dirs="'$as_qdir' $as_dirs"
297 as_dir=`$as_dirname -- "$as_dir" ||
298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299 X"$as_dir" : 'X\(//\)[^/]' \| \
300 X"$as_dir" : 'X\(//\)$' \| \
301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302 $as_echo X"$as_dir" |
303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320 test -d "$as_dir" && break
322 test -z "$as_dirs" || eval "mkdir $as_dirs"
323 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
327 # as_fn_append VAR VALUE
328 # ----------------------
329 # Append the text in VALUE to the end of the definition contained in VAR. Take
330 # advantage of any shell optimizations that allow amortized linear growth over
331 # repeated appends, instead of the typical quadratic growth present in naive
333 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334 eval 'as_fn_append ()
347 # Perform arithmetic evaluation on the ARGs, and store the result in the
348 # global $as_val. Take advantage of shells that can avoid forks. The arguments
349 # must be portable across $(()) and expr.
350 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 as_val=`expr "$@" || test $? -eq 1`
363 # as_fn_error STATUS ERROR [LINENO LOG_FD]
364 # ----------------------------------------
365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367 # script with STATUS, using 1 if that was 0.
370 as_status=$1; test $as_status -eq 0 && as_status=1
372 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
375 $as_echo "$as_me: error: $2" >&2
376 as_fn_exit $as_status
379 if expr a : '\(a\)' >/dev/null 2>&1 &&
380 test "X`expr 00001 : '.*\(...\)'`" = X001; then
386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
398 as_me=`$as_basename -- "$0" ||
399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400 X"$0" : 'X\(//\)$' \| \
401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
403 sed '/^.*\/\([^/][^/]*\)\/*$/{
417 # Avoid depending upon Character Ranges.
418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421 as_cr_digits='0123456789'
422 as_cr_alnum=$as_cr_Letters$as_cr_digits
425 as_lineno_1=$LINENO as_lineno_1a=$LINENO
426 as_lineno_2=$LINENO as_lineno_2a=$LINENO
427 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
445 chmod +x "$as_me.lineno" ||
446 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
448 # Don't try to exec as it changes $[0], causing all sort of problems
449 # (the dirname of $[0] is not the place where we might find the
450 # original and so on. Autoconf is especially sensitive to this).
452 # Exit status is that of the last command.
456 ECHO_C= ECHO_N= ECHO_T=
457 case `echo -n x` in #(((((
459 case `echo 'xy\c'` in
460 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
469 rm -f conf$$ conf$$.exe conf$$.file
470 if test -d conf$$.dir; then
471 rm -f conf$$.dir/conf$$.file
474 mkdir conf$$.dir 2>/dev/null
476 if (echo >conf$$.file) 2>/dev/null; then
477 if ln -s conf$$.file conf$$ 2>/dev/null; then
479 # ... but there are two gotchas:
480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482 # In both cases, we have to default to `cp -p'.
483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
485 elif ln conf$$.file conf$$ 2>/dev/null; then
493 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494 rmdir conf$$.dir 2>/dev/null
496 if mkdir -p . 2>/dev/null; then
497 as_mkdir_p='mkdir -p "$as_dir"'
499 test -d ./-p && rmdir ./-p
503 if test -x / >/dev/null 2>&1; then
506 if ls -dL / >/dev/null 2>&1; then
513 if test -d "$1"; then
519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520 ???[sx]*):;;*)false;;esac;fi
524 as_executable_p=$as_test_x
526 # Sed expression to map a string onto a valid CPP name.
527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
529 # Sed expression to map a string onto a valid variable name.
530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533 test -n "$DJDIR" || exec 7<&0 </dev/null
537 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
538 # so uname gets run too.
539 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544 ac_default_prefix=/usr/local
546 ac_config_libobj_dir=.
553 # Identity of this package.
554 PACKAGE_NAME='OpenSSH'
555 PACKAGE_TARNAME='openssh'
556 PACKAGE_VERSION='Portable'
557 PACKAGE_STRING='OpenSSH Portable'
558 PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
561 ac_unique_file="ssh.c"
562 # Factoring default headers for most tests.
563 ac_includes_default="\
565 #ifdef HAVE_SYS_TYPES_H
566 # include <sys/types.h>
568 #ifdef HAVE_SYS_STAT_H
569 # include <sys/stat.h>
575 # ifdef HAVE_STDLIB_H
580 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 #ifdef HAVE_STRINGS_H
586 # include <strings.h>
588 #ifdef HAVE_INTTYPES_H
589 # include <inttypes.h>
598 ac_subst_vars='LTLIBOBJS
620 LOGIN_PROGRAM_FALLBACK
622 MAKE_PACKAGE_SUPPORTED
688 program_transform_name
701 enable_option_checking
710 with_solaris_contracts
711 with_solaris_projects
714 with_zlib_version_check
720 with_openssl_header_check
737 enable_etc_default_login
753 ac_precious_vars='build_alias
764 # Initialize some variables set by options.
766 ac_init_version=false
767 ac_unrecognized_opts=
769 # The variables have the same names as the options, with
770 # dashes changed to underlines.
778 program_transform_name=s,x,x,
786 # Installation directory options.
787 # These are left unexpanded so users can "make install exec_prefix=/foo"
788 # and all the variables that are supposed to be based on exec_prefix
789 # by default will actually change.
790 # Use braces instead of parens because sh, perl, etc. also accept them.
791 # (The list follows the same order as the GNU Coding Standards.)
792 bindir='${exec_prefix}/bin'
793 sbindir='${exec_prefix}/sbin'
794 libexecdir='${exec_prefix}/libexec'
795 datarootdir='${prefix}/share'
796 datadir='${datarootdir}'
797 sysconfdir='${prefix}/etc'
798 sharedstatedir='${prefix}/com'
799 localstatedir='${prefix}/var'
800 includedir='${prefix}/include'
801 oldincludedir='/usr/include'
802 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
803 infodir='${datarootdir}/info'
808 libdir='${exec_prefix}/lib'
809 localedir='${datarootdir}/locale'
810 mandir='${datarootdir}/man'
816 # If the previous option needs an argument, assign it.
817 if test -n "$ac_prev"; then
818 eval $ac_prev=\$ac_option
824 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
829 # Accept the important Cygnus configure options, so we can diagnose typos.
831 case $ac_dashdash$ac_option in
835 -bindir | --bindir | --bindi | --bind | --bin | --bi)
837 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
840 -build | --build | --buil | --bui | --bu)
841 ac_prev=build_alias ;;
842 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
843 build_alias=$ac_optarg ;;
845 -cache-file | --cache-file | --cache-fil | --cache-fi \
846 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
847 ac_prev=cache_file ;;
848 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
849 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
850 cache_file=$ac_optarg ;;
853 cache_file=config.cache ;;
855 -datadir | --datadir | --datadi | --datad)
857 -datadir=* | --datadir=* | --datadi=* | --datad=*)
858 datadir=$ac_optarg ;;
860 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
861 | --dataroo | --dataro | --datar)
862 ac_prev=datarootdir ;;
863 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
864 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
865 datarootdir=$ac_optarg ;;
867 -disable-* | --disable-*)
868 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
869 # Reject names that are not valid shell variable names.
870 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
871 as_fn_error $? "invalid feature name: $ac_useropt"
872 ac_useropt_orig=$ac_useropt
873 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874 case $ac_user_opts in
878 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
879 ac_unrecognized_sep=', ';;
881 eval enable_$ac_useropt=no ;;
883 -docdir | --docdir | --docdi | --doc | --do)
885 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
888 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
890 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
893 -enable-* | --enable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error $? "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
907 eval enable_$ac_useropt=\$ac_optarg ;;
909 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911 | --exec | --exe | --ex)
912 ac_prev=exec_prefix ;;
913 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915 | --exec=* | --exe=* | --ex=*)
916 exec_prefix=$ac_optarg ;;
918 -gas | --gas | --ga | --g)
919 # Obsolete; use --with-gas.
922 -help | --help | --hel | --he | -h)
924 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925 ac_init_help=recursive ;;
926 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927 ac_init_help=short ;;
929 -host | --host | --hos | --ho)
930 ac_prev=host_alias ;;
931 -host=* | --host=* | --hos=* | --ho=*)
932 host_alias=$ac_optarg ;;
934 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
936 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
938 htmldir=$ac_optarg ;;
940 -includedir | --includedir | --includedi | --included | --include \
941 | --includ | --inclu | --incl | --inc)
942 ac_prev=includedir ;;
943 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944 | --includ=* | --inclu=* | --incl=* | --inc=*)
945 includedir=$ac_optarg ;;
947 -infodir | --infodir | --infodi | --infod | --info | --inf)
949 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950 infodir=$ac_optarg ;;
952 -libdir | --libdir | --libdi | --libd)
954 -libdir=* | --libdir=* | --libdi=* | --libd=*)
957 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958 | --libexe | --libex | --libe)
959 ac_prev=libexecdir ;;
960 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961 | --libexe=* | --libex=* | --libe=*)
962 libexecdir=$ac_optarg ;;
964 -localedir | --localedir | --localedi | --localed | --locale)
966 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967 localedir=$ac_optarg ;;
969 -localstatedir | --localstatedir | --localstatedi | --localstated \
970 | --localstate | --localstat | --localsta | --localst | --locals)
971 ac_prev=localstatedir ;;
972 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974 localstatedir=$ac_optarg ;;
976 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
978 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
982 # Obsolete; use --without-fp.
985 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986 | --no-cr | --no-c | -n)
989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
993 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995 | --oldin | --oldi | --old | --ol | --o)
996 ac_prev=oldincludedir ;;
997 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000 oldincludedir=$ac_optarg ;;
1002 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1004 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005 prefix=$ac_optarg ;;
1007 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008 | --program-pre | --program-pr | --program-p)
1009 ac_prev=program_prefix ;;
1010 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012 program_prefix=$ac_optarg ;;
1014 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015 | --program-suf | --program-su | --program-s)
1016 ac_prev=program_suffix ;;
1017 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019 program_suffix=$ac_optarg ;;
1021 -program-transform-name | --program-transform-name \
1022 | --program-transform-nam | --program-transform-na \
1023 | --program-transform-n | --program-transform- \
1024 | --program-transform | --program-transfor \
1025 | --program-transfo | --program-transf \
1026 | --program-trans | --program-tran \
1027 | --progr-tra | --program-tr | --program-t)
1028 ac_prev=program_transform_name ;;
1029 -program-transform-name=* | --program-transform-name=* \
1030 | --program-transform-nam=* | --program-transform-na=* \
1031 | --program-transform-n=* | --program-transform-=* \
1032 | --program-transform=* | --program-transfor=* \
1033 | --program-transfo=* | --program-transf=* \
1034 | --program-trans=* | --program-tran=* \
1035 | --progr-tra=* | --program-tr=* | --program-t=*)
1036 program_transform_name=$ac_optarg ;;
1038 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1040 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041 pdfdir=$ac_optarg ;;
1043 -psdir | --psdir | --psdi | --psd | --ps)
1045 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1052 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1054 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1056 sbindir=$ac_optarg ;;
1058 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060 | --sharedst | --shareds | --shared | --share | --shar \
1062 ac_prev=sharedstatedir ;;
1063 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1067 sharedstatedir=$ac_optarg ;;
1069 -site | --site | --sit)
1071 -site=* | --site=* | --sit=*)
1074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077 srcdir=$ac_optarg ;;
1079 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080 | --syscon | --sysco | --sysc | --sys | --sy)
1081 ac_prev=sysconfdir ;;
1082 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084 sysconfdir=$ac_optarg ;;
1086 -target | --target | --targe | --targ | --tar | --ta | --t)
1087 ac_prev=target_alias ;;
1088 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089 target_alias=$ac_optarg ;;
1091 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1094 -version | --version | --versio | --versi | --vers | -V)
1095 ac_init_version=: ;;
1098 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 as_fn_error $? "invalid package name: $ac_useropt"
1102 ac_useropt_orig=$ac_useropt
1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
1111 eval with_$ac_useropt=\$ac_optarg ;;
1113 -without-* | --without-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error $? "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1127 eval with_$ac_useropt=no ;;
1130 # Obsolete; use --with-x.
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138 x_includes=$ac_optarg ;;
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145 x_libraries=$ac_optarg ;;
1147 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1148 Try \`$0 --help' for more information"
1152 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1153 # Reject names that are not valid shell variable names.
1154 case $ac_envvar in #(
1155 '' | [0-9]* | *[!_$as_cr_alnum]* )
1156 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1158 eval $ac_envvar=\$ac_optarg
1159 export $ac_envvar ;;
1162 # FIXME: should be removed in autoconf 3.0.
1163 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1172 if test -n "$ac_prev"; then
1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 as_fn_error $? "missing argument to $ac_option"
1177 if test -n "$ac_unrecognized_opts"; then
1178 case $enable_option_checking in
1180 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1181 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1185 # Check all directory arguments for consistency.
1186 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1187 datadir sysconfdir sharedstatedir localstatedir includedir \
1188 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1189 libdir localedir mandir
1191 eval ac_val=\$$ac_var
1192 # Remove trailing slashes.
1195 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1196 eval $ac_var=\$ac_val;;
1198 # Be sure to have absolute directory names.
1200 [\\/$]* | ?:[\\/]* ) continue;;
1201 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1203 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1206 # There might be people who depend on the old broken behavior: `$host'
1207 # used to hold the argument of --host etc.
1208 # FIXME: To remove some day.
1211 target=$target_alias
1213 # FIXME: To remove some day.
1214 if test "x$host_alias" != x; then
1215 if test "x$build_alias" = x; then
1216 cross_compiling=maybe
1217 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1218 If a cross compiler is detected then cross compile mode will be used" >&2
1219 elif test "x$build_alias" != "x$host_alias"; then
1225 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1227 test "$silent" = yes && exec 6>/dev/null
1230 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1231 ac_ls_di=`ls -di .` &&
1232 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1233 as_fn_error $? "working directory cannot be determined"
1234 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1235 as_fn_error $? "pwd does not report name of working directory"
1238 # Find the source files, if location was not specified.
1239 if test -z "$srcdir"; then
1240 ac_srcdir_defaulted=yes
1241 # Try the directory containing this script, then the parent directory.
1242 ac_confdir=`$as_dirname -- "$as_myself" ||
1243 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244 X"$as_myself" : 'X\(//\)[^/]' \| \
1245 X"$as_myself" : 'X\(//\)$' \| \
1246 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1247 $as_echo X"$as_myself" |
1248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1270 ac_srcdir_defaulted=no
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1274 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1276 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1278 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290 for ac_var in $ac_precious_vars; do
1291 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_env_${ac_var}_value=\$${ac_var}
1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1298 # Report the --help message.
1300 if test "$ac_init_help" = "long"; then
1301 # Omit some internal or obsolete options to make the list less imposing.
1302 # This message is too long to be a string in the A/UX 3.1 sh.
1304 \`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE. See below for descriptions of some of the useful variables.
1311 Defaults for the options are specified in brackets.
1314 -h, --help display this help and exit
1315 --help=short display options specific to this package
1316 --help=recursive display the short help of all the included packages
1317 -V, --version display version information and exit
1318 -q, --quiet, --silent do not print \`checking ...' messages
1319 --cache-file=FILE cache test results in FILE [disabled]
1320 -C, --config-cache alias for \`--cache-file=config.cache'
1321 -n, --no-create do not create output files
1322 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1324 Installation directories:
1325 --prefix=PREFIX install architecture-independent files in PREFIX
1326 [$ac_default_prefix]
1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1335 For better control, use the options below.
1337 Fine tuning of the installation directories:
1338 --bindir=DIR user executables [EPREFIX/bin]
1339 --sbindir=DIR system admin executables [EPREFIX/sbin]
1340 --libexecdir=DIR program executables [EPREFIX/libexec]
1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1344 --libdir=DIR object code libraries [EPREFIX/lib]
1345 --includedir=DIR C header files [PREFIX/include]
1346 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1349 --infodir=DIR info documentation [DATAROOTDIR/info]
1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1351 --mandir=DIR man documentation [DATAROOTDIR/man]
1352 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1353 --htmldir=DIR html documentation [DOCDIR]
1354 --dvidir=DIR dvi documentation [DOCDIR]
1355 --pdfdir=DIR pdf documentation [DOCDIR]
1356 --psdir=DIR ps documentation [DOCDIR]
1362 --build=BUILD configure for building on BUILD [guessed]
1363 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1367 if test -n "$ac_init_help"; then
1368 case $ac_init_help in
1369 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1374 --disable-option-checking ignore unrecognized --enable/--with options
1375 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1376 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1377 --disable-largefile omit support for large files
1378 --disable-strip Disable calling strip(1) on install
1379 --disable-etc-default-login Disable using PATH from /etc/default/login no
1380 --disable-lastlog disable use of lastlog even if detected no
1381 --disable-utmp disable use of utmp even if detected no
1382 --disable-utmpx disable use of utmpx even if detected no
1383 --disable-wtmp disable use of wtmp even if detected no
1384 --disable-wtmpx disable use of wtmpx even if detected no
1385 --disable-libutil disable use of libutil (login() etc.) no
1386 --disable-pututline disable use of pututline() etc. (uwtmp) no
1387 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1390 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1391 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1392 --without-stackprotect Don't use compiler's stack protection
1393 --without-rpath Disable auto-added -R linker paths
1394 --with-cflags Specify additional flags to pass to compiler
1395 --with-cppflags Specify additional flags to pass to preprocessor
1396 --with-ldflags Specify additional flags to pass to linker
1397 --with-libs Specify additional libraries to link with
1398 --with-Werror Build main code with -Werror
1399 --with-solaris-contracts Enable Solaris process contracts (experimental)
1400 --with-solaris-projects Enable Solaris projects (experimental)
1401 --with-osfsia Enable Digital Unix SIA
1402 --with-zlib=PATH Use zlib in PATH
1403 --without-zlib-version-check Disable zlib version check
1404 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1405 --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
1406 --with-libedit[=PATH] Enable libedit support for sftp
1407 --with-audit=module Enable audit support (modules=debug,bsm,linux)
1408 --with-ssl-dir=PATH Specify path to OpenSSL installation
1409 --without-openssl-header-check Disable OpenSSL version consistency check
1410 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1411 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1412 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1413 --with-pam Enable PAM support
1414 --with-privsep-user=user Specify non-privileged user for privilege separation
1415 --with-sandbox=style Specify privilege separation sandbox (no, darwin, rlimit, systrace)
1416 --with-selinux Enable SELinux support
1417 --with-kerberos5=PATH Enable Kerberos 5 support
1418 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1419 --with-xauth=PATH Specify path to xauth program
1420 --with-maildir=/path/to/mail Specify your system mail directory
1421 --with-mantype=man|cat|doc Set man page type
1422 --with-md5-passwords Enable use of MD5 passwords
1423 --without-shadow Disable shadow password support
1424 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
1425 --with-default-path= Specify default \$PATH environment for server
1426 --with-superuser-path= Specify different path for super-user
1427 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1428 --with-bsd-auth Enable BSD auth support
1429 --with-pid-dir=PATH Specify location of ssh.pid file
1430 --with-lastlog=FILE|DIR specify lastlog location common locations
1432 Some influential environment variables:
1433 CC C compiler command
1434 CFLAGS C compiler flags
1435 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1436 nonstandard directory <lib dir>
1437 LIBS libraries to pass to the linker, e.g. -l<library>
1438 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1439 you have headers in a nonstandard directory <include dir>
1442 Use these variables to override the choices made by `configure' or to help
1443 it to find libraries and programs with nonstandard names/locations.
1445 Report bugs to <openssh-unix-dev@mindrot.org>.
1450 if test "$ac_init_help" = "recursive"; then
1451 # If there are subdirs, report their specific --help.
1452 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1453 test -d "$ac_dir" ||
1454 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1462 # A ".." for each directory in $ac_dir_suffix.
1463 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1464 case $ac_top_builddir_sub in
1465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1469 ac_abs_top_builddir=$ac_pwd
1470 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1471 # for backward compatibility:
1472 ac_top_builddir=$ac_top_build_prefix
1475 .) # We are building in place.
1477 ac_top_srcdir=$ac_top_builddir_sub
1478 ac_abs_top_srcdir=$ac_pwd ;;
1479 [\\/]* | ?:[\\/]* ) # Absolute name.
1480 ac_srcdir=$srcdir$ac_dir_suffix;
1481 ac_top_srcdir=$srcdir
1482 ac_abs_top_srcdir=$srcdir ;;
1484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1485 ac_top_srcdir=$ac_top_build_prefix$srcdir
1486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1488 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1490 cd "$ac_dir" || { ac_status=$?; continue; }
1491 # Check for guested configure.
1492 if test -f "$ac_srcdir/configure.gnu"; then
1494 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1495 elif test -f "$ac_srcdir/configure"; then
1497 $SHELL "$ac_srcdir/configure" --help=recursive
1499 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1501 cd "$ac_pwd" || { ac_status=$?; break; }
1505 test -n "$ac_init_help" && exit $ac_status
1506 if $ac_init_version; then
1508 OpenSSH configure Portable
1509 generated by GNU Autoconf 2.67
1511 Copyright (C) 2010 Free Software Foundation, Inc.
1512 This configure script is free software; the Free Software Foundation
1513 gives unlimited permission to copy, distribute and modify it.
1518 ## ------------------------ ##
1519 ## Autoconf initialization. ##
1520 ## ------------------------ ##
1522 # ac_fn_c_try_compile LINENO
1523 # --------------------------
1524 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1525 ac_fn_c_try_compile ()
1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528 rm -f conftest.$ac_objext
1529 if { { ac_try="$ac_compile"
1531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532 *) ac_try_echo=$ac_try;;
1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535 $as_echo "$ac_try_echo"; } >&5
1536 (eval "$ac_compile") 2>conftest.err
1538 if test -s conftest.err; then
1539 grep -v '^ *+' conftest.err >conftest.er1
1540 cat conftest.er1 >&5
1541 mv -f conftest.er1 conftest.err
1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544 test $ac_status = 0; } && {
1545 test -z "$ac_c_werror_flag" ||
1546 test ! -s conftest.err
1547 } && test -s conftest.$ac_objext; then :
1550 $as_echo "$as_me: failed program was:" >&5
1551 sed 's/^/| /' conftest.$ac_ext >&5
1555 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1556 as_fn_set_status $ac_retval
1558 } # ac_fn_c_try_compile
1560 # ac_fn_c_try_run LINENO
1561 # ----------------------
1562 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1563 # that executables *can* be run.
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 if { { ac_try="$ac_link"
1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_link") 2>&5
1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1578 { { case "(($ac_try" in
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 $as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_try") 2>&5
1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587 test $ac_status = 0; }; }; then :
1590 $as_echo "$as_me: program exited with status $ac_status" >&5
1591 $as_echo "$as_me: failed program was:" >&5
1592 sed 's/^/| /' conftest.$ac_ext >&5
1594 ac_retval=$ac_status
1596 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1597 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1598 as_fn_set_status $ac_retval
1602 # ac_fn_c_try_cpp LINENO
1603 # ----------------------
1604 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 if { { ac_try="$ac_cpp conftest.$ac_ext"
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1617 if test -s conftest.err; then
1618 grep -v '^ *+' conftest.err >conftest.er1
1619 cat conftest.er1 >&5
1620 mv -f conftest.er1 conftest.err
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } > conftest.i && {
1624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1625 test ! -s conftest.err
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1634 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1635 as_fn_set_status $ac_retval
1639 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1640 # -------------------------------------------------------
1641 # Tests whether HEADER exists and can be compiled using the include files in
1642 # INCLUDES, setting the cache variable VAR accordingly.
1643 ac_fn_c_check_header_compile ()
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1647 $as_echo_n "checking for $2... " >&6; }
1648 if eval "test \"\${$3+set}\"" = set; then :
1649 $as_echo_n "(cached) " >&6
1651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652 /* end confdefs.h. */
1656 if ac_fn_c_try_compile "$LINENO"; then :
1661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665 $as_echo "$ac_res" >&6; }
1666 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1668 } # ac_fn_c_check_header_compile
1670 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1671 # ---------------------------------------------
1672 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1674 ac_fn_c_check_decl ()
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 as_decl_name=`echo $2|sed 's/ *(.*//'`
1678 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1680 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1681 if eval "test \"\${$3+set}\"" = set; then :
1682 $as_echo_n "(cached) " >&6
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h. */
1690 #ifndef $as_decl_name
1692 (void) $as_decl_use;
1694 (void) $as_decl_name;
1702 if ac_fn_c_try_compile "$LINENO"; then :
1707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711 $as_echo "$ac_res" >&6; }
1712 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1714 } # ac_fn_c_check_decl
1716 # ac_fn_c_try_link LINENO
1717 # -----------------------
1718 # Try to link conftest.$ac_ext, and return whether this succeeded.
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 rm -f conftest.$ac_objext conftest$ac_exeext
1723 if { { ac_try="$ac_link"
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_link") 2>conftest.err
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && {
1739 test -z "$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1741 } && test -s conftest$ac_exeext && {
1742 test "$cross_compiling" = yes ||
1743 $as_test_x conftest$ac_exeext
1747 $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1752 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1753 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1754 # interfere with the next link command; also delete a directory that is
1755 # left behind by Apple's compiler. We do this before executing the actions.
1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758 as_fn_set_status $ac_retval
1760 } # ac_fn_c_try_link
1762 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1763 # -------------------------------------------------------
1764 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1765 # the include files in INCLUDES and setting the cache variable VAR
1767 ac_fn_c_check_header_mongrel ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 if eval "test \"\${$3+set}\"" = set; then :
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if eval "test \"\${$3+set}\"" = set; then :
1774 $as_echo_n "(cached) " >&6
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 $as_echo "$ac_res" >&6; }
1780 # Is the header compilable?
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1782 $as_echo_n "checking $2 usability... " >&6; }
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1788 if ac_fn_c_try_compile "$LINENO"; then :
1789 ac_header_compiler=yes
1791 ac_header_compiler=no
1793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1795 $as_echo "$ac_header_compiler" >&6; }
1797 # Is the header present?
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1799 $as_echo_n "checking $2 presence... " >&6; }
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1804 if ac_fn_c_try_cpp "$LINENO"; then :
1805 ac_header_preproc=yes
1807 ac_header_preproc=no
1809 rm -f conftest.err conftest.i conftest.$ac_ext
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1811 $as_echo "$ac_header_preproc" >&6; }
1813 # So? What about this header?
1814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1817 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1819 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1823 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1825 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1827 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1829 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1831 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1832 ( $as_echo "## ------------------------------------------- ##
1833 ## Report this to openssh-unix-dev@mindrot.org ##
1834 ## ------------------------------------------- ##"
1835 ) | sed "s/^/$as_me: WARNING: /" >&2
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 $as_echo_n "checking for $2... " >&6; }
1840 if eval "test \"\${$3+set}\"" = set; then :
1841 $as_echo_n "(cached) " >&6
1843 eval "$3=\$ac_header_compiler"
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847 $as_echo "$ac_res" >&6; }
1849 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1851 } # ac_fn_c_check_header_mongrel
1853 # ac_fn_c_check_func LINENO FUNC VAR
1854 # ----------------------------------
1855 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1856 ac_fn_c_check_func ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 $as_echo_n "checking for $2... " >&6; }
1861 if eval "test \"\${$3+set}\"" = set; then :
1862 $as_echo_n "(cached) " >&6
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h. */
1866 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1868 #define $2 innocuous_$2
1870 /* System header to define __stub macros and hopefully few prototypes,
1871 which can conflict with char $2 (); below.
1872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1873 <limits.h> exists even on freestanding compilers. */
1876 # include <limits.h>
1878 # include <assert.h>
1883 /* Override any GCC internal prototype to avoid an error.
1884 Use char because int might match the return type of a GCC
1885 builtin and then its argument prototype would still apply. */
1890 /* The GNU C library defines this for functions which it implements
1891 to always fail with ENOSYS. Some functions are actually named
1892 something starting with __ and the normal name is an alias. */
1893 #if defined __stub_$2 || defined __stub___$2
1905 if ac_fn_c_try_link "$LINENO"; then :
1910 rm -f core conftest.err conftest.$ac_objext \
1911 conftest$ac_exeext conftest.$ac_ext
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915 $as_echo "$ac_res" >&6; }
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1918 } # ac_fn_c_check_func
1920 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1921 # -------------------------------------------
1922 # Tests whether TYPE exists after having included INCLUDES, setting cache
1923 # variable VAR accordingly.
1924 ac_fn_c_check_type ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928 $as_echo_n "checking for $2... " >&6; }
1929 if eval "test \"\${$3+set}\"" = set; then :
1930 $as_echo_n "(cached) " >&6
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1958 if ac_fn_c_try_compile "$LINENO"; then :
1963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1970 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1972 } # ac_fn_c_check_type
1974 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1975 # --------------------------------------------
1976 # Tries to find the compile-time value of EXPR in a program that includes
1977 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1979 ac_fn_c_compute_int ()
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 if test "$cross_compiling" = yes; then
1983 # Depending upon the size, compute the lo and hi bounds.
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1990 static int test_array [1 - 2 * !(($2) >= 0)];
1997 if ac_fn_c_try_compile "$LINENO"; then :
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2006 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2013 if ac_fn_c_try_compile "$LINENO"; then :
2014 ac_hi=$ac_mid; break
2016 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2017 if test $ac_lo -le $ac_mid; then
2021 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2032 static int test_array [1 - 2 * !(($2) < 0)];
2039 if ac_fn_c_try_compile "$LINENO"; then :
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2048 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2055 if ac_fn_c_try_compile "$LINENO"; then :
2056 ac_lo=$ac_mid; break
2058 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2059 if test $ac_mid -le $ac_hi; then
2063 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 # Binary search between lo and hi bounds.
2074 while test "x$ac_lo" != "x$ac_hi"; do
2075 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2082 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2089 if ac_fn_c_try_compile "$LINENO"; then :
2092 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2104 static long int longval () { return $2; }
2105 static unsigned long int ulongval () { return $2; }
2112 FILE *f = fopen ("conftest.val", "w");
2117 long int i = longval ();
2120 fprintf (f, "%ld", i);
2124 unsigned long int i = ulongval ();
2127 fprintf (f, "%lu", i);
2129 /* Do not output a trailing newline, as this causes \r\n confusion
2130 on some platforms. */
2131 return ferror (f) || fclose (f) != 0;
2137 if ac_fn_c_try_run "$LINENO"; then :
2138 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2143 conftest.$ac_objext conftest.beam conftest.$ac_ext
2147 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2148 as_fn_set_status $ac_retval
2150 } # ac_fn_c_compute_int
2152 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2153 # ----------------------------------------------------
2154 # Tries to find if the field MEMBER exists in type AGGR, after including
2155 # INCLUDES, setting cache variable VAR accordingly.
2156 ac_fn_c_check_member ()
2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2160 $as_echo_n "checking for $2.$3... " >&6; }
2161 if eval "test \"\${$4+set}\"" = set; then :
2162 $as_echo_n "(cached) " >&6
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2177 if ac_fn_c_try_compile "$LINENO"; then :
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2187 if (sizeof ac_aggr.$3)
2193 if ac_fn_c_try_compile "$LINENO"; then :
2198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2204 $as_echo "$ac_res" >&6; }
2205 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2207 } # ac_fn_c_check_member
2208 cat >config.log <<_ACEOF
2209 This file contains any messages produced by compilers while
2210 running configure, to aid debugging if configure makes a mistake.
2212 It was created by OpenSSH $as_me Portable, which was
2213 generated by GNU Autoconf 2.67. Invocation command line was
2225 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2226 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2227 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2228 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2229 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2231 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2232 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2234 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2235 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2236 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2237 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2238 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2239 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2240 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 test -z "$as_dir" && as_dir=.
2249 $as_echo "PATH: $as_dir"
2265 # Keep a trace of the command line.
2266 # Strip out --no-create and --no-recursion so they do not pile up.
2267 # Strip out --silent because we don't want to record it for future runs.
2268 # Also quote any args containing shell meta-characters.
2269 # Make two passes to allow for proper duplicate-argument suppression.
2273 ac_must_keep_next=false
2279 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2280 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2281 | -silent | --silent | --silen | --sile | --sil)
2284 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2287 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2289 as_fn_append ac_configure_args1 " '$ac_arg'"
2290 if test $ac_must_keep_next = true; then
2291 ac_must_keep_next=false # Got value, back to normal.
2294 *=* | --config-cache | -C | -disable-* | --disable-* \
2295 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2296 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2297 | -with-* | --with-* | -without-* | --without-* | --x)
2298 case "$ac_configure_args0 " in
2299 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2302 -* ) ac_must_keep_next=true ;;
2305 as_fn_append ac_configure_args " '$ac_arg'"
2310 { ac_configure_args0=; unset ac_configure_args0;}
2311 { ac_configure_args1=; unset ac_configure_args1;}
2313 # When interrupted or exit'd, cleanup temporary files, and complete
2314 # config.log. We remove comments because anyway the quotes in there
2315 # would cause problems or look ugly.
2316 # WARNING: Use '\'' to represent an apostrophe within the trap.
2317 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2318 trap 'exit_status=$?
2319 # Save into config.log some information that might help in debugging.
2323 $as_echo "## ---------------- ##
2324 ## Cache variables. ##
2325 ## ---------------- ##"
2327 # The following way of writing the cache mishandles newlines in values,
2329 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2330 eval ac_val=\$$ac_var
2334 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2335 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2338 _ | IFS | as_nl) ;; #(
2339 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2340 *) { eval $ac_var=; unset $ac_var;} ;;
2345 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2346 *${as_nl}ac_space=\ *)
2348 "s/'\''/'\''\\\\'\'''\''/g;
2349 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2352 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2359 $as_echo "## ----------------- ##
2360 ## Output variables. ##
2361 ## ----------------- ##"
2363 for ac_var in $ac_subst_vars
2365 eval ac_val=\$$ac_var
2367 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2369 $as_echo "$ac_var='\''$ac_val'\''"
2373 if test -n "$ac_subst_files"; then
2374 $as_echo "## ------------------- ##
2375 ## File substitutions. ##
2376 ## ------------------- ##"
2378 for ac_var in $ac_subst_files
2380 eval ac_val=\$$ac_var
2382 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2384 $as_echo "$ac_var='\''$ac_val'\''"
2389 if test -s confdefs.h; then
2390 $as_echo "## ----------- ##
2397 test "$ac_signal" != 0 &&
2398 $as_echo "$as_me: caught signal $ac_signal"
2399 $as_echo "$as_me: exit $exit_status"
2401 rm -f core *.core core.conftest.* &&
2402 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2405 for ac_signal in 1 2 13 15; do
2406 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2410 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2411 rm -f -r conftest* confdefs.h
2413 $as_echo "/* confdefs.h */" > confdefs.h
2415 # Predefined preprocessor variables.
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_NAME "$PACKAGE_NAME"
2421 cat >>confdefs.h <<_ACEOF
2422 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2425 cat >>confdefs.h <<_ACEOF
2426 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2429 cat >>confdefs.h <<_ACEOF
2430 #define PACKAGE_STRING "$PACKAGE_STRING"
2433 cat >>confdefs.h <<_ACEOF
2434 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2437 cat >>confdefs.h <<_ACEOF
2438 #define PACKAGE_URL "$PACKAGE_URL"
2442 # Let the site file select an alternate cache file if it wants to.
2443 # Prefer an explicitly selected file to automatically selected ones.
2446 if test -n "$CONFIG_SITE"; then
2447 # We do not want a PATH search for config.site.
2448 case $CONFIG_SITE in #((
2449 -*) ac_site_file1=./$CONFIG_SITE;;
2450 */*) ac_site_file1=$CONFIG_SITE;;
2451 *) ac_site_file1=./$CONFIG_SITE;;
2453 elif test "x$prefix" != xNONE; then
2454 ac_site_file1=$prefix/share/config.site
2455 ac_site_file2=$prefix/etc/config.site
2457 ac_site_file1=$ac_default_prefix/share/config.site
2458 ac_site_file2=$ac_default_prefix/etc/config.site
2460 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2462 test "x$ac_site_file" = xNONE && continue
2463 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2465 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2466 sed 's/^/| /' "$ac_site_file" >&5
2468 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2470 as_fn_error $? "failed to load site script $ac_site_file
2471 See \`config.log' for more details" "$LINENO" 5 ; }
2475 if test -r "$cache_file"; then
2476 # Some versions of bash will fail to source /dev/null (special files
2477 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2478 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2480 $as_echo "$as_me: loading cache $cache_file" >&6;}
2482 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2483 *) . "./$cache_file";;
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2488 $as_echo "$as_me: creating cache $cache_file" >&6;}
2492 # Check that the precious variables saved in the cache have kept the same
2494 ac_cache_corrupted=false
2495 for ac_var in $ac_precious_vars; do
2496 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2497 eval ac_new_set=\$ac_env_${ac_var}_set
2498 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2499 eval ac_new_val=\$ac_env_${ac_var}_value
2500 case $ac_old_set,$ac_new_set in
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2503 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2504 ac_cache_corrupted=: ;;
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2507 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2508 ac_cache_corrupted=: ;;
2511 if test "x$ac_old_val" != "x$ac_new_val"; then
2512 # differences in whitespace do not lead to failure.
2513 ac_old_val_w=`echo x $ac_old_val`
2514 ac_new_val_w=`echo x $ac_new_val`
2515 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2517 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2518 ac_cache_corrupted=:
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2521 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2522 eval $ac_var=\$ac_old_val
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2525 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2527 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2530 # Pass precious variables to config.status.
2531 if test "$ac_new_set" = set; then
2533 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2534 *) ac_arg=$ac_var=$ac_new_val ;;
2536 case " $ac_configure_args " in
2537 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2538 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2542 if $ac_cache_corrupted; then
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2546 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2547 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2549 ## -------------------- ##
2550 ## Main body of script. ##
2551 ## -------------------- ##
2554 ac_cpp='$CPP $CPPFLAGS'
2555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2563 ac_cpp='$CPP $CPPFLAGS'
2564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569 ac_config_headers="$ac_config_headers config.h"
2572 ac_cpp='$CPP $CPPFLAGS'
2573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2576 if test -n "$ac_tool_prefix"; then
2577 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2578 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2580 $as_echo_n "checking for $ac_word... " >&6; }
2581 if test "${ac_cv_prog_CC+set}" = set; then :
2582 $as_echo_n "(cached) " >&6
2584 if test -n "$CC"; then
2585 ac_cv_prog_CC="$CC" # Let the user override the test.
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2605 if test -n "$CC"; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2607 $as_echo "$CC" >&6; }
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610 $as_echo "no" >&6; }
2615 if test -z "$ac_cv_prog_CC"; then
2617 # Extract the first word of "gcc", so it can be a program name with args.
2618 set dummy 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 test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2622 $as_echo_n "(cached) " >&6
2624 if test -n "$ac_ct_CC"; then
2625 ac_cv_prog_ac_ct_CC="$ac_ct_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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2634 ac_cv_prog_ac_ct_CC="gcc"
2635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2645 if test -n "$ac_ct_CC"; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2647 $as_echo "$ac_ct_CC" >&6; }
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650 $as_echo "no" >&6; }
2653 if test "x$ac_ct_CC" = x; then
2656 case $cross_compiling:$ac_tool_warned in
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2660 ac_tool_warned=yes ;;
2668 if test -z "$CC"; then
2669 if test -n "$ac_tool_prefix"; then
2670 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2671 set dummy ${ac_tool_prefix}cc; ac_word=$2
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2673 $as_echo_n "checking for $ac_word... " >&6; }
2674 if test "${ac_cv_prog_CC+set}" = set; then :
2675 $as_echo_n "(cached) " >&6
2677 if test -n "$CC"; then
2678 ac_cv_prog_CC="$CC" # Let the user override the test.
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2687 ac_cv_prog_CC="${ac_tool_prefix}cc"
2688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2698 if test -n "$CC"; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2700 $as_echo "$CC" >&6; }
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703 $as_echo "no" >&6; }
2709 if test -z "$CC"; then
2710 # Extract the first word of "cc", so it can be a program name with args.
2711 set dummy 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 test "${ac_cv_prog_CC+set}" = set; 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.
2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725 test -z "$as_dir" && as_dir=.
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2728 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2729 ac_prog_rejected=yes
2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 if test $ac_prog_rejected = yes; then
2741 # We found a bogon in the path, so make sure we never use it.
2742 set dummy $ac_cv_prog_CC
2744 if test $# != 0; then
2745 # We chose a different compiler from the bogus one.
2746 # However, it has the same basename, so the bogon will be chosen
2747 # first if we set CC to just the basename; use the full file name.
2749 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2755 if test -n "$CC"; then
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2757 $as_echo "$CC" >&6; }
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2760 $as_echo "no" >&6; }
2765 if test -z "$CC"; then
2766 if test -n "$ac_tool_prefix"; then
2767 for ac_prog in cl.exe
2769 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2770 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772 $as_echo_n "checking for $ac_word... " >&6; }
2773 if test "${ac_cv_prog_CC+set}" = set; then :
2774 $as_echo_n "(cached) " >&6
2776 if test -n "$CC"; then
2777 ac_cv_prog_CC="$CC" # Let the user override the test.
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2786 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 if test -n "$CC"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2799 $as_echo "$CC" >&6; }
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2806 test -n "$CC" && break
2809 if test -z "$CC"; then
2811 for ac_prog in cl.exe
2813 # Extract the first word of "$ac_prog", so it can be a program name with args.
2814 set dummy $ac_prog; ac_word=$2
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2818 $as_echo_n "(cached) " >&6
2820 if test -n "$ac_ct_CC"; then
2821 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2830 ac_cv_prog_ac_ct_CC="$ac_prog"
2831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2841 if test -n "$ac_ct_CC"; then
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2843 $as_echo "$ac_ct_CC" >&6; }
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846 $as_echo "no" >&6; }
2850 test -n "$ac_ct_CC" && break
2853 if test "x$ac_ct_CC" = x; then
2856 case $cross_compiling:$ac_tool_warned in
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2860 ac_tool_warned=yes ;;
2869 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2871 as_fn_error $? "no acceptable C compiler found in \$PATH
2872 See \`config.log' for more details" "$LINENO" 5 ; }
2874 # Provide some information about the compiler.
2875 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2878 for ac_option in --version -v -V -qversion; do
2879 { { ac_try="$ac_compiler $ac_option >&5"
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2885 $as_echo "$ac_try_echo"; } >&5
2886 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2888 if test -s conftest.err; then
2890 ... rest of stderr output deleted ...
2891 10q' conftest.err >conftest.er1
2892 cat conftest.er1 >&5
2894 rm -f conftest.er1 conftest.err
2895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2896 test $ac_status = 0; }
2899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2900 /* end confdefs.h. */
2910 ac_clean_files_save=$ac_clean_files
2911 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2912 # Try to create an executable without -o first, disregard a.out.
2913 # It will help us diagnose broken compilers, and finding out an intuition
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2916 $as_echo_n "checking whether the C compiler works... " >&6; }
2917 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2919 # The possible output files:
2920 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2923 for ac_file in $ac_files
2926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2927 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2932 if { { ac_try="$ac_link_default"
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2938 $as_echo "$ac_try_echo"; } >&5
2939 (eval "$ac_link_default") 2>&5
2941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2942 test $ac_status = 0; }; then :
2943 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2944 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2945 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2946 # so that the user can short-circuit this test for compilers unknown to
2948 for ac_file in $ac_files ''
2950 test -f "$ac_file" || continue
2952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2955 # We found the default executable, but exeext='' is most
2959 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2961 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2963 # We set ac_cv_exeext here because the later test for it is not
2964 # safe: cross compilers may not add the suffix if given an `-o'
2965 # argument, so we may need to know it at that point already.
2966 # Even if this section looks crufty: it has the advantage of
2973 test "$ac_cv_exeext" = no && ac_cv_exeext=
2978 if test -z "$ac_file"; then :
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 $as_echo "no" >&6; }
2981 $as_echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2986 as_fn_error 77 "C compiler cannot create executables
2987 See \`config.log' for more details" "$LINENO" 5 ; }
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2990 $as_echo "yes" >&6; }
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2993 $as_echo_n "checking for C compiler default output file name... " >&6; }
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2995 $as_echo "$ac_file" >&6; }
2996 ac_exeext=$ac_cv_exeext
2998 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2999 ac_clean_files=$ac_clean_files_save
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3001 $as_echo_n "checking for suffix of executables... " >&6; }
3002 if { { ac_try="$ac_link"
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3008 $as_echo "$ac_try_echo"; } >&5
3009 (eval "$ac_link") 2>&5
3011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3012 test $ac_status = 0; }; then :
3013 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3014 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3015 # work properly (i.e., refer to `conftest.exe'), while it won't with
3017 for ac_file in conftest.exe conftest conftest.*; do
3018 test -f "$ac_file" || continue
3020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3021 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3029 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3030 See \`config.log' for more details" "$LINENO" 5 ; }
3032 rm -f conftest conftest$ac_cv_exeext
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3034 $as_echo "$ac_cv_exeext" >&6; }
3036 rm -f conftest.$ac_ext
3037 EXEEXT=$ac_cv_exeext
3039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3040 /* end confdefs.h. */
3045 FILE *f = fopen ("conftest.out", "w");
3046 return ferror (f) || fclose (f) != 0;
3052 ac_clean_files="$ac_clean_files conftest.out"
3053 # Check that the compiler produces executables we can run. If not, either
3054 # the compiler is broken, or we cross compile.
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3056 $as_echo_n "checking whether we are cross compiling... " >&6; }
3057 if test "$cross_compiling" != yes; then
3058 { { ac_try="$ac_link"
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3064 $as_echo "$ac_try_echo"; } >&5
3065 (eval "$ac_link") 2>&5
3067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3068 test $ac_status = 0; }
3069 if { ac_try='./conftest$ac_cv_exeext'
3070 { { case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3075 $as_echo "$ac_try_echo"; } >&5
3076 (eval "$ac_try") 2>&5
3078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3079 test $ac_status = 0; }; }; then
3082 if test "$cross_compiling" = maybe; then
3085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3087 as_fn_error $? "cannot run C compiled programs.
3088 If you meant to cross compile, use \`--host'.
3089 See \`config.log' for more details" "$LINENO" 5 ; }
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3094 $as_echo "$cross_compiling" >&6; }
3096 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3097 ac_clean_files=$ac_clean_files_save
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3099 $as_echo_n "checking for suffix of object files... " >&6; }
3100 if test "${ac_cv_objext+set}" = set; then :
3101 $as_echo_n "(cached) " >&6
3103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3104 /* end confdefs.h. */
3114 rm -f conftest.o conftest.obj
3115 if { { ac_try="$ac_compile"
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3121 $as_echo "$ac_try_echo"; } >&5
3122 (eval "$ac_compile") 2>&5
3124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3125 test $ac_status = 0; }; then :
3126 for ac_file in conftest.o conftest.obj conftest.*; do
3127 test -f "$ac_file" || continue;
3129 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3130 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3135 $as_echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3140 as_fn_error $? "cannot compute suffix of object files: cannot compile
3141 See \`config.log' for more details" "$LINENO" 5 ; }
3143 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3146 $as_echo "$ac_cv_objext" >&6; }
3147 OBJEXT=$ac_cv_objext
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3150 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3151 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3152 $as_echo_n "(cached) " >&6
3154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3155 /* end confdefs.h. */
3168 if ac_fn_c_try_compile "$LINENO"; then :
3173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3178 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3179 if test $ac_compiler_gnu = yes; then
3184 ac_test_CFLAGS=${CFLAGS+set}
3185 ac_save_CFLAGS=$CFLAGS
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3187 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3188 if test "${ac_cv_prog_cc_g+set}" = set; then :
3189 $as_echo_n "(cached) " >&6
3191 ac_save_c_werror_flag=$ac_c_werror_flag
3192 ac_c_werror_flag=yes
3195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3196 /* end confdefs.h. */
3206 if ac_fn_c_try_compile "$LINENO"; then :
3210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3211 /* end confdefs.h. */
3221 if ac_fn_c_try_compile "$LINENO"; then :
3224 ac_c_werror_flag=$ac_save_c_werror_flag
3226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227 /* end confdefs.h. */
3237 if ac_fn_c_try_compile "$LINENO"; then :
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3245 ac_c_werror_flag=$ac_save_c_werror_flag
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3248 $as_echo "$ac_cv_prog_cc_g" >&6; }
3249 if test "$ac_test_CFLAGS" = set; then
3250 CFLAGS=$ac_save_CFLAGS
3251 elif test $ac_cv_prog_cc_g = yes; then
3252 if test "$GCC" = yes; then
3258 if test "$GCC" = yes; then
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3265 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3266 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3267 $as_echo_n "(cached) " >&6
3269 ac_cv_prog_cc_c89=no
3271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3272 /* end confdefs.h. */
3275 #include <sys/types.h>
3276 #include <sys/stat.h>
3277 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3278 struct buf { int x; };
3279 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3280 static char *e (p, i)
3286 static char *f (char * (*g) (char **, int), char **p, ...)
3291 s = g (p, va_arg (v,int));
3296 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3297 function prototypes and stuff, but not '\xHH' hex character constants.
3298 These don't provoke an error unfortunately, instead are silently treated
3299 as 'x'. The following induces an error, until -std is added to get
3300 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3301 array size at least. It's necessary to write '\x00'==0 to get something
3302 that's true only with -std. */
3303 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3305 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3306 inside strings and character constants. */
3308 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3310 int test (int i, double x);
3311 struct s1 {int (*f) (int a);};
3312 struct s2 {int (*f) (double a);};
3313 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3319 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3324 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3325 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3327 CC="$ac_save_CC $ac_arg"
3328 if ac_fn_c_try_compile "$LINENO"; then :
3329 ac_cv_prog_cc_c89=$ac_arg
3331 rm -f core conftest.err conftest.$ac_objext
3332 test "x$ac_cv_prog_cc_c89" != "xno" && break
3334 rm -f conftest.$ac_ext
3339 case "x$ac_cv_prog_cc_c89" in
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3342 $as_echo "none needed" >&6; } ;;
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3345 $as_echo "unsupported" >&6; } ;;
3347 CC="$CC $ac_cv_prog_cc_c89"
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3349 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3351 if test "x$ac_cv_prog_cc_c89" != xno; then :
3356 ac_cpp='$CPP $CPPFLAGS'
3357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3362 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3363 if test -f "$ac_dir/install-sh"; then
3365 ac_install_sh="$ac_aux_dir/install-sh -c"
3367 elif test -f "$ac_dir/install.sh"; then
3369 ac_install_sh="$ac_aux_dir/install.sh -c"
3371 elif test -f "$ac_dir/shtool"; then
3373 ac_install_sh="$ac_aux_dir/shtool install -c"
3377 if test -z "$ac_aux_dir"; then
3378 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3381 # These three variables are undocumented and unsupported,
3382 # and are intended to be withdrawn in a future Autoconf release.
3383 # They can cause serious problems if a builder's source tree is in a directory
3384 # whose full name contains unusual characters.
3385 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3386 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3387 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3390 # Make sure we can run config.sub.
3391 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3392 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3395 $as_echo_n "checking build system type... " >&6; }
3396 if test "${ac_cv_build+set}" = set; then :
3397 $as_echo_n "(cached) " >&6
3399 ac_build_alias=$build_alias
3400 test "x$ac_build_alias" = x &&
3401 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3402 test "x$ac_build_alias" = x &&
3403 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3404 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3405 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3409 $as_echo "$ac_cv_build" >&6; }
3410 case $ac_cv_build in
3412 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3415 ac_save_IFS=$IFS; IFS='-'
3421 # Remember, the first character of IFS is used to create $*,
3422 # except with old shells:
3425 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3429 $as_echo_n "checking host system type... " >&6; }
3430 if test "${ac_cv_host+set}" = set; then :
3431 $as_echo_n "(cached) " >&6
3433 if test "x$host_alias" = x; then
3434 ac_cv_host=$ac_cv_build
3436 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3437 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3442 $as_echo "$ac_cv_host" >&6; }
3445 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3448 ac_save_IFS=$IFS; IFS='-'
3454 # Remember, the first character of IFS is used to create $*,
3455 # except with old shells:
3458 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3463 ac_cpp='$CPP $CPPFLAGS'
3464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3468 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3469 # On Suns, sometimes $CPP names a directory.
3470 if test -n "$CPP" && test -d "$CPP"; then
3473 if test -z "$CPP"; then
3474 if test "${ac_cv_prog_CPP+set}" = set; then :
3475 $as_echo_n "(cached) " >&6
3477 # Double quotes because CPP needs to be expanded
3478 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3481 for ac_c_preproc_warn_flag in '' yes
3483 # Use a header file that comes with gcc, so configuring glibc
3484 # with a fresh cross-compiler works.
3485 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3486 # <limits.h> exists even on freestanding compilers.
3487 # On the NeXT, cc -E runs the code through the compiler's parser,
3488 # not just through cpp. "Syntax error" is here to catch this case.
3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490 /* end confdefs.h. */
3492 # include <limits.h>
3494 # include <assert.h>
3498 if ac_fn_c_try_cpp "$LINENO"; then :
3501 # Broken: fails on valid input.
3504 rm -f conftest.err conftest.i conftest.$ac_ext
3506 # OK, works on sane cases. Now check whether nonexistent headers
3507 # can be detected and how.
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3510 #include <ac_nonexistent.h>
3512 if ac_fn_c_try_cpp "$LINENO"; then :
3513 # Broken: success on invalid input.
3516 # Passes both tests.
3520 rm -f conftest.err conftest.i conftest.$ac_ext
3523 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3524 rm -f conftest.i conftest.err conftest.$ac_ext
3525 if $ac_preproc_ok; then :
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3538 $as_echo "$CPP" >&6; }
3540 for ac_c_preproc_warn_flag in '' yes
3542 # Use a header file that comes with gcc, so configuring glibc
3543 # with a fresh cross-compiler works.
3544 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3545 # <limits.h> exists even on freestanding compilers.
3546 # On the NeXT, cc -E runs the code through the compiler's parser,
3547 # not just through cpp. "Syntax error" is here to catch this case.
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3551 # include <limits.h>
3553 # include <assert.h>
3557 if ac_fn_c_try_cpp "$LINENO"; then :
3560 # Broken: fails on valid input.
3563 rm -f conftest.err conftest.i conftest.$ac_ext
3565 # OK, works on sane cases. Now check whether nonexistent headers
3566 # can be detected and how.
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3569 #include <ac_nonexistent.h>
3571 if ac_fn_c_try_cpp "$LINENO"; then :
3572 # Broken: success on invalid input.
3575 # Passes both tests.
3579 rm -f conftest.err conftest.i conftest.$ac_ext
3582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3583 rm -f conftest.i conftest.err conftest.$ac_ext
3584 if $ac_preproc_ok; then :
3587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3590 See \`config.log' for more details" "$LINENO" 5 ; }
3594 ac_cpp='$CPP $CPPFLAGS'
3595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3601 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3602 if test "${ac_cv_path_GREP+set}" = set; then :
3603 $as_echo_n "(cached) " >&6
3605 if test -z "$GREP"; then
3606 ac_path_GREP_found=false
3607 # Loop through the user's path and test for each of PROGNAME-LIST
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3612 test -z "$as_dir" && as_dir=.
3613 for ac_prog in grep ggrep; do
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3616 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3617 # Check for GNU ac_path_GREP and select it if it is found.
3618 # Check for GNU $ac_path_GREP
3619 case `"$ac_path_GREP" --version 2>&1` in
3621 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3624 $as_echo_n 0123456789 >"conftest.in"
3627 cat "conftest.in" "conftest.in" >"conftest.tmp"
3628 mv "conftest.tmp" "conftest.in"
3629 cp "conftest.in" "conftest.nl"
3630 $as_echo 'GREP' >> "conftest.nl"
3631 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3632 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3633 as_fn_arith $ac_count + 1 && ac_count=$as_val
3634 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3635 # Best one so far, save it but keep looking for a better one
3636 ac_cv_path_GREP="$ac_path_GREP"
3637 ac_path_GREP_max=$ac_count
3639 # 10*(2^10) chars as input seems more than enough
3640 test $ac_count -gt 10 && break
3642 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3645 $ac_path_GREP_found && break 3
3650 if test -z "$ac_cv_path_GREP"; then
3651 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3654 ac_cv_path_GREP=$GREP
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3659 $as_echo "$ac_cv_path_GREP" >&6; }
3660 GREP="$ac_cv_path_GREP"
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3664 $as_echo_n "checking for egrep... " >&6; }
3665 if test "${ac_cv_path_EGREP+set}" = set; then :
3666 $as_echo_n "(cached) " >&6
3668 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3669 then ac_cv_path_EGREP="$GREP -E"
3671 if test -z "$EGREP"; then
3672 ac_path_EGREP_found=false
3673 # Loop through the user's path and test for each of PROGNAME-LIST
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3678 test -z "$as_dir" && as_dir=.
3679 for ac_prog in egrep; do
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3682 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3683 # Check for GNU ac_path_EGREP and select it if it is found.
3684 # Check for GNU $ac_path_EGREP
3685 case `"$ac_path_EGREP" --version 2>&1` in
3687 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3690 $as_echo_n 0123456789 >"conftest.in"
3693 cat "conftest.in" "conftest.in" >"conftest.tmp"
3694 mv "conftest.tmp" "conftest.in"
3695 cp "conftest.in" "conftest.nl"
3696 $as_echo 'EGREP' >> "conftest.nl"
3697 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3698 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3699 as_fn_arith $ac_count + 1 && ac_count=$as_val
3700 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3701 # Best one so far, save it but keep looking for a better one
3702 ac_cv_path_EGREP="$ac_path_EGREP"
3703 ac_path_EGREP_max=$ac_count
3705 # 10*(2^10) chars as input seems more than enough
3706 test $ac_count -gt 10 && break
3708 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3711 $ac_path_EGREP_found && break 3
3716 if test -z "$ac_cv_path_EGREP"; then
3717 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3720 ac_cv_path_EGREP=$EGREP
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3726 $as_echo "$ac_cv_path_EGREP" >&6; }
3727 EGREP="$ac_cv_path_EGREP"
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3731 $as_echo_n "checking for ANSI C header files... " >&6; }
3732 if test "${ac_cv_header_stdc+set}" = set; then :
3733 $as_echo_n "(cached) " >&6
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3750 if ac_fn_c_try_compile "$LINENO"; then :
3751 ac_cv_header_stdc=yes
3753 ac_cv_header_stdc=no
3755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757 if test $ac_cv_header_stdc = yes; then
3758 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3765 $EGREP "memchr" >/dev/null 2>&1; then :
3768 ac_cv_header_stdc=no
3774 if test $ac_cv_header_stdc = yes; then
3775 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3782 $EGREP "free" >/dev/null 2>&1; then :
3785 ac_cv_header_stdc=no
3791 if test $ac_cv_header_stdc = yes; then
3792 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3793 if test "$cross_compiling" = yes; then :
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3800 #if ((' ' & 0x0FF) == 0x020)
3801 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3802 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3804 # define ISLOWER(c) \
3805 (('a' <= (c) && (c) <= 'i') \
3806 || ('j' <= (c) && (c) <= 'r') \
3807 || ('s' <= (c) && (c) <= 'z'))
3808 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3811 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3816 for (i = 0; i < 256; i++)
3817 if (XOR (islower (i), ISLOWER (i))
3818 || toupper (i) != TOUPPER (i))
3823 if ac_fn_c_try_run "$LINENO"; then :
3826 ac_cv_header_stdc=no
3828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3829 conftest.$ac_objext conftest.beam conftest.$ac_ext
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3835 $as_echo "$ac_cv_header_stdc" >&6; }
3836 if test $ac_cv_header_stdc = yes; then
3838 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3842 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3843 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3844 inttypes.h stdint.h unistd.h
3846 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3847 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3849 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3850 cat >>confdefs.h <<_ACEOF
3851 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3860 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3861 if test "${ac_cv_c_bigendian+set}" = set; then :
3862 $as_echo_n "(cached) " >&6
3864 ac_cv_c_bigendian=unknown
3865 # See if we're dealing with a universal compiler.
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h. */
3868 #ifndef __APPLE_CC__
3869 not a universal capable compiler
3874 if ac_fn_c_try_compile "$LINENO"; then :
3876 # Check for potential -arch flags. It is not universal unless
3877 # there are at least two -arch flags with different values.
3880 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3881 if test -n "$ac_prev"; then
3883 i?86 | x86_64 | ppc | ppc64)
3884 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3887 ac_cv_c_bigendian=universal
3893 elif test "x$ac_word" = "x-arch"; then
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899 if test $ac_cv_c_bigendian = unknown; then
3900 # See if sys/param.h defines the BYTE_ORDER macro.
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h. */
3903 #include <sys/types.h>
3904 #include <sys/param.h>
3909 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3910 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3919 if ac_fn_c_try_compile "$LINENO"; then :
3920 # It does; now see whether it defined to BIG_ENDIAN or not.
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3923 #include <sys/types.h>
3924 #include <sys/param.h>
3929 #if BYTE_ORDER != BIG_ENDIAN
3937 if ac_fn_c_try_compile "$LINENO"; then :
3938 ac_cv_c_bigendian=yes
3940 ac_cv_c_bigendian=no
3942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3946 if test $ac_cv_c_bigendian = unknown; then
3947 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h. */
3955 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3963 if ac_fn_c_try_compile "$LINENO"; then :
3964 # It does; now see whether it defined to _BIG_ENDIAN or not.
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h. */
3980 if ac_fn_c_try_compile "$LINENO"; then :
3981 ac_cv_c_bigendian=yes
3983 ac_cv_c_bigendian=no
3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3989 if test $ac_cv_c_bigendian = unknown; then
3990 # Compile a test program.
3991 if test "$cross_compiling" = yes; then :
3992 # Try to guess by grepping values from an object file.
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3995 short int ascii_mm[] =
3996 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3997 short int ascii_ii[] =
3998 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3999 int use_ascii (int i) {
4000 return ascii_mm[i] + ascii_ii[i];
4002 short int ebcdic_ii[] =
4003 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4004 short int ebcdic_mm[] =
4005 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4006 int use_ebcdic (int i) {
4007 return ebcdic_mm[i] + ebcdic_ii[i];
4014 return use_ascii (foo) == use_ebcdic (foo);
4019 if ac_fn_c_try_compile "$LINENO"; then :
4020 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4021 ac_cv_c_bigendian=yes
4023 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4024 if test "$ac_cv_c_bigendian" = unknown; then
4025 ac_cv_c_bigendian=no
4027 # finding both strings is unlikely to happen, but who knows?
4028 ac_cv_c_bigendian=unknown
4032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4036 $ac_includes_default
4041 /* Are we little or big endian? From Harbison&Steele. */
4045 char c[sizeof (long int)];
4048 return u.c[sizeof (long int) - 1] == 1;
4054 if ac_fn_c_try_run "$LINENO"; then :
4055 ac_cv_c_bigendian=no
4057 ac_cv_c_bigendian=yes
4059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4060 conftest.$ac_objext conftest.beam conftest.$ac_ext
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4066 $as_echo "$ac_cv_c_bigendian" >&6; }
4067 case $ac_cv_c_bigendian in #(
4069 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4075 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4079 as_fn_error $? "unknown endianness
4080 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4084 # Checks for programs.
4085 for ac_prog in gawk mawk nawk awk
4087 # Extract the first word of "$ac_prog", so it can be a program name with args.
4088 set dummy $ac_prog; ac_word=$2
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4090 $as_echo_n "checking for $ac_word... " >&6; }
4091 if test "${ac_cv_prog_AWK+set}" = set; then :
4092 $as_echo_n "(cached) " >&6
4094 if test -n "$AWK"; then
4095 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 test -z "$as_dir" && as_dir=.
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4104 ac_cv_prog_AWK="$ac_prog"
4105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4115 if test -n "$AWK"; then
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4117 $as_echo "$AWK" >&6; }
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120 $as_echo "no" >&6; }
4124 test -n "$AWK" && break
4128 ac_cpp='$CPP $CPPFLAGS'
4129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4133 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4134 # On Suns, sometimes $CPP names a directory.
4135 if test -n "$CPP" && test -d "$CPP"; then
4138 if test -z "$CPP"; then
4139 if test "${ac_cv_prog_CPP+set}" = set; then :
4140 $as_echo_n "(cached) " >&6
4142 # Double quotes because CPP needs to be expanded
4143 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4146 for ac_c_preproc_warn_flag in '' yes
4148 # Use a header file that comes with gcc, so configuring glibc
4149 # with a fresh cross-compiler works.
4150 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4151 # <limits.h> exists even on freestanding compilers.
4152 # On the NeXT, cc -E runs the code through the compiler's parser,
4153 # not just through cpp. "Syntax error" is here to catch this case.
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4157 # include <limits.h>
4159 # include <assert.h>
4163 if ac_fn_c_try_cpp "$LINENO"; then :
4166 # Broken: fails on valid input.
4169 rm -f conftest.err conftest.i conftest.$ac_ext
4171 # OK, works on sane cases. Now check whether nonexistent headers
4172 # can be detected and how.
4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h. */
4175 #include <ac_nonexistent.h>
4177 if ac_fn_c_try_cpp "$LINENO"; then :
4178 # Broken: success on invalid input.
4181 # Passes both tests.
4185 rm -f conftest.err conftest.i conftest.$ac_ext
4188 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4189 rm -f conftest.i conftest.err conftest.$ac_ext
4190 if $ac_preproc_ok; then :
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4203 $as_echo "$CPP" >&6; }
4205 for ac_c_preproc_warn_flag in '' yes
4207 # Use a header file that comes with gcc, so configuring glibc
4208 # with a fresh cross-compiler works.
4209 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4210 # <limits.h> exists even on freestanding compilers.
4211 # On the NeXT, cc -E runs the code through the compiler's parser,
4212 # not just through cpp. "Syntax error" is here to catch this case.
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4216 # include <limits.h>
4218 # include <assert.h>
4222 if ac_fn_c_try_cpp "$LINENO"; then :
4225 # Broken: fails on valid input.
4228 rm -f conftest.err conftest.i conftest.$ac_ext
4230 # OK, works on sane cases. Now check whether nonexistent headers
4231 # can be detected and how.
4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h. */
4234 #include <ac_nonexistent.h>
4236 if ac_fn_c_try_cpp "$LINENO"; then :
4237 # Broken: success on invalid input.
4240 # Passes both tests.
4244 rm -f conftest.err conftest.i conftest.$ac_ext
4247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4248 rm -f conftest.i conftest.err conftest.$ac_ext
4249 if $ac_preproc_ok; then :
4252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4254 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4255 See \`config.log' for more details" "$LINENO" 5 ; }
4259 ac_cpp='$CPP $CPPFLAGS'
4260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4264 if test -n "$ac_tool_prefix"; then
4265 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4266 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268 $as_echo_n "checking for $ac_word... " >&6; }
4269 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4270 $as_echo_n "(cached) " >&6
4272 if test -n "$RANLIB"; then
4273 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 test -z "$as_dir" && as_dir=.
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4282 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4292 RANLIB=$ac_cv_prog_RANLIB
4293 if test -n "$RANLIB"; then
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4295 $as_echo "$RANLIB" >&6; }
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 $as_echo "no" >&6; }
4303 if test -z "$ac_cv_prog_RANLIB"; then
4304 ac_ct_RANLIB=$RANLIB
4305 # Extract the first word of "ranlib", so it can be a program name with args.
4306 set dummy ranlib; ac_word=$2
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308 $as_echo_n "checking for $ac_word... " >&6; }
4309 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4310 $as_echo_n "(cached) " >&6
4312 if test -n "$ac_ct_RANLIB"; then
4313 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4322 ac_cv_prog_ac_ct_RANLIB="ranlib"
4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4332 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4333 if test -n "$ac_ct_RANLIB"; then
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4335 $as_echo "$ac_ct_RANLIB" >&6; }
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338 $as_echo "no" >&6; }
4341 if test "x$ac_ct_RANLIB" = x; then
4344 case $cross_compiling:$ac_tool_warned in
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4348 ac_tool_warned=yes ;;
4350 RANLIB=$ac_ct_RANLIB
4353 RANLIB="$ac_cv_prog_RANLIB"
4356 # Find a good install program. We prefer a C program (faster),
4357 # so one script is as good as another. But avoid the broken or
4358 # incompatible versions:
4359 # SysV /etc/install, /usr/sbin/install
4360 # SunOS /usr/etc/install
4361 # IRIX /sbin/install
4363 # AmigaOS /C/install, which installs bootblocks on floppy discs
4364 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4365 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4366 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4367 # OS/2's system install, which has a completely different semantic
4368 # ./install, which can be erroneously created by make from ./install.sh.
4369 # Reject install programs that cannot install multiple files.
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4371 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4372 if test -z "$INSTALL"; then
4373 if test "${ac_cv_path_install+set}" = set; then :
4374 $as_echo_n "(cached) " >&6
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 test -z "$as_dir" && as_dir=.
4381 # Account for people who put trailing slashes in PATH elements.
4382 case $as_dir/ in #((
4383 ./ | .// | /[cC]/* | \
4384 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4385 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4388 # OSF1 and SCO ODT 3.0 have their own names for install.
4389 # Don't use installbsd from OSF since it installs stuff as root
4391 for ac_prog in ginstall scoinst install; do
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4394 if test $ac_prog = install &&
4395 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4396 # AIX install. It has an incompatible calling convention.
4398 elif test $ac_prog = install &&
4399 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4400 # program-specific install script used by HP pwplus--don't use.
4403 rm -rf conftest.one conftest.two conftest.dir
4404 echo one > conftest.one
4405 echo two > conftest.two
4407 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4408 test -s conftest.one && test -s conftest.two &&
4409 test -s conftest.dir/conftest.one &&
4410 test -s conftest.dir/conftest.two
4412 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4425 rm -rf conftest.one conftest.two conftest.dir
4428 if test "${ac_cv_path_install+set}" = set; then
4429 INSTALL=$ac_cv_path_install
4431 # As a last resort, use the slow shell script. Don't cache a
4432 # value for INSTALL within a source directory, because that will
4433 # break other packages using the cache if that directory is
4434 # removed, or if the value is a relative name.
4435 INSTALL=$ac_install_sh
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4439 $as_echo "$INSTALL" >&6; }
4441 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4442 # It thinks the first close brace ends the variable substitution.
4443 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4445 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4447 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4450 $as_echo_n "checking for egrep... " >&6; }
4451 if test "${ac_cv_path_EGREP+set}" = set; then :
4452 $as_echo_n "(cached) " >&6
4454 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4455 then ac_cv_path_EGREP="$GREP -E"
4457 if test -z "$EGREP"; then
4458 ac_path_EGREP_found=false
4459 # Loop through the user's path and test for each of PROGNAME-LIST
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4464 test -z "$as_dir" && as_dir=.
4465 for ac_prog in egrep; do
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4468 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4469 # Check for GNU ac_path_EGREP and select it if it is found.
4470 # Check for GNU $ac_path_EGREP
4471 case `"$ac_path_EGREP" --version 2>&1` in
4473 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4476 $as_echo_n 0123456789 >"conftest.in"
4479 cat "conftest.in" "conftest.in" >"conftest.tmp"
4480 mv "conftest.tmp" "conftest.in"
4481 cp "conftest.in" "conftest.nl"
4482 $as_echo 'EGREP' >> "conftest.nl"
4483 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4484 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4485 as_fn_arith $ac_count + 1 && ac_count=$as_val
4486 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4487 # Best one so far, save it but keep looking for a better one
4488 ac_cv_path_EGREP="$ac_path_EGREP"
4489 ac_path_EGREP_max=$ac_count
4491 # 10*(2^10) chars as input seems more than enough
4492 test $ac_count -gt 10 && break
4494 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4497 $ac_path_EGREP_found && break 3
4502 if test -z "$ac_cv_path_EGREP"; then
4503 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4506 ac_cv_path_EGREP=$EGREP
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4512 $as_echo "$ac_cv_path_EGREP" >&6; }
4513 EGREP="$ac_cv_path_EGREP"
4516 # Extract the first word of "ar", so it can be a program name with args.
4517 set dummy ar; ac_word=$2
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4519 $as_echo_n "checking for $ac_word... " >&6; }
4520 if test "${ac_cv_path_AR+set}" = set; then :
4521 $as_echo_n "(cached) " >&6
4525 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 test -z "$as_dir" && as_dir=.
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4535 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4547 if test -n "$AR"; then
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4549 $as_echo "$AR" >&6; }
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4552 $as_echo "no" >&6; }
4556 # Extract the first word of "cat", so it can be a program name with args.
4557 set dummy cat; ac_word=$2
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4559 $as_echo_n "checking for $ac_word... " >&6; }
4560 if test "${ac_cv_path_CAT+set}" = set; then :
4561 $as_echo_n "(cached) " >&6
4565 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 test -z "$as_dir" && as_dir=.
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4575 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 if test -n "$CAT"; then
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4589 $as_echo "$CAT" >&6; }
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4592 $as_echo "no" >&6; }
4596 # Extract the first word of "kill", so it can be a program name with args.
4597 set dummy kill; ac_word=$2
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599 $as_echo_n "checking for $ac_word... " >&6; }
4600 if test "${ac_cv_path_KILL+set}" = set; then :
4601 $as_echo_n "(cached) " >&6
4605 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 test -z "$as_dir" && as_dir=.
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4615 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 KILL=$ac_cv_path_KILL
4627 if test -n "$KILL"; then
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5
4629 $as_echo "$KILL" >&6; }
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632 $as_echo "no" >&6; }
4636 for ac_prog in perl5 perl
4638 # Extract the first word of "$ac_prog", so it can be a program name with args.
4639 set dummy $ac_prog; ac_word=$2
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641 $as_echo_n "checking for $ac_word... " >&6; }
4642 if test "${ac_cv_path_PERL+set}" = set; then :
4643 $as_echo_n "(cached) " >&6
4647 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4657 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 PERL=$ac_cv_path_PERL
4669 if test -n "$PERL"; then
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4671 $as_echo "$PERL" >&6; }
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4674 $as_echo "no" >&6; }
4678 test -n "$PERL" && break
4681 # Extract the first word of "sed", so it can be a program name with args.
4682 set dummy sed; ac_word=$2
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4684 $as_echo_n "checking for $ac_word... " >&6; }
4685 if test "${ac_cv_path_SED+set}" = set; then :
4686 $as_echo_n "(cached) " >&6
4690 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 test -z "$as_dir" && as_dir=.
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4700 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 if test -n "$SED"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4714 $as_echo "$SED" >&6; }
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4722 # Extract the first word of "ent", so it can be a program name with args.
4723 set dummy ent; ac_word=$2
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4725 $as_echo_n "checking for $ac_word... " >&6; }
4726 if test "${ac_cv_path_ENT+set}" = set; then :
4727 $as_echo_n "(cached) " >&6
4731 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 test -z "$as_dir" && as_dir=.
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4741 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 if test -n "$ENT"; then
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5
4755 $as_echo "$ENT" >&6; }
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4758 $as_echo "no" >&6; }
4763 # Extract the first word of "bash", so it can be a program name with args.
4764 set dummy bash; ac_word=$2
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766 $as_echo_n "checking for $ac_word... " >&6; }
4767 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then :
4768 $as_echo_n "(cached) " >&6
4770 case $TEST_MINUS_S_SH in
4772 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779 test -z "$as_dir" && as_dir=.
4780 for ac_exec_ext in '' $ac_executable_extensions; do
4781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4794 if test -n "$TEST_MINUS_S_SH"; then
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4796 $as_echo "$TEST_MINUS_S_SH" >&6; }
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4799 $as_echo "no" >&6; }
4803 # Extract the first word of "ksh", so it can be a program name with args.
4804 set dummy ksh; ac_word=$2
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806 $as_echo_n "checking for $ac_word... " >&6; }
4807 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then :
4808 $as_echo_n "(cached) " >&6
4810 case $TEST_MINUS_S_SH in
4812 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 test -z "$as_dir" && as_dir=.
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4822 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4834 if test -n "$TEST_MINUS_S_SH"; then
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4836 $as_echo "$TEST_MINUS_S_SH" >&6; }
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839 $as_echo "no" >&6; }
4843 # Extract the first word of "sh", so it can be a program name with args.
4844 set dummy sh; ac_word=$2
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4846 $as_echo_n "checking for $ac_word... " >&6; }
4847 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then :
4848 $as_echo_n "(cached) " >&6
4850 case $TEST_MINUS_S_SH in
4852 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 test -z "$as_dir" && as_dir=.
4860 for ac_exec_ext in '' $ac_executable_extensions; do
4861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4862 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4874 if test -n "$TEST_MINUS_S_SH"; then
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4876 $as_echo "$TEST_MINUS_S_SH" >&6; }
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879 $as_echo "no" >&6; }
4883 # Extract the first word of "sh", so it can be a program name with args.
4884 set dummy sh; ac_word=$2
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4886 $as_echo_n "checking for $ac_word... " >&6; }
4887 if test "${ac_cv_path_SH+set}" = set; then :
4888 $as_echo_n "(cached) " >&6
4892 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 test -z "$as_dir" && as_dir=.
4900 for ac_exec_ext in '' $ac_executable_extensions; do
4901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4902 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 if test -n "$SH"; then
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
4916 $as_echo "$SH" >&6; }
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4919 $as_echo "no" >&6; }
4923 # Extract the first word of "groff", so it can be a program name with args.
4924 set dummy groff; ac_word=$2
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4926 $as_echo_n "checking for $ac_word... " >&6; }
4927 if test "${ac_cv_path_GROFF+set}" = set; then :
4928 $as_echo_n "(cached) " >&6
4932 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 test -z "$as_dir" && as_dir=.
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4942 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
4943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4953 GROFF=$ac_cv_path_GROFF
4954 if test -n "$GROFF"; then
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
4956 $as_echo "$GROFF" >&6; }
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959 $as_echo "no" >&6; }
4963 # Extract the first word of "nroff", so it can be a program name with args.
4964 set dummy nroff; ac_word=$2
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4966 $as_echo_n "checking for $ac_word... " >&6; }
4967 if test "${ac_cv_path_NROFF+set}" = set; then :
4968 $as_echo_n "(cached) " >&6
4972 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 test -z "$as_dir" && as_dir=.
4980 for ac_exec_ext in '' $ac_executable_extensions; do
4981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4982 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
4983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4993 NROFF=$ac_cv_path_NROFF
4994 if test -n "$NROFF"; then
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
4996 $as_echo "$NROFF" >&6; }
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999 $as_echo "no" >&6; }
5003 # Extract the first word of "mandoc", so it can be a program name with args.
5004 set dummy mandoc; ac_word=$2
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5006 $as_echo_n "checking for $ac_word... " >&6; }
5007 if test "${ac_cv_path_MANDOC+set}" = set; then :
5008 $as_echo_n "(cached) " >&6
5012 ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path.
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 test -z "$as_dir" && as_dir=.
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5022 ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext"
5023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5033 MANDOC=$ac_cv_path_MANDOC
5034 if test -n "$MANDOC"; then
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5
5036 $as_echo "$MANDOC" >&6; }
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039 $as_echo "no" >&6; }
5046 if test "x$MANDOC" != "x" ; then
5048 elif test "x$NROFF" != "x" ; then
5049 MANFMT="$NROFF -mandoc"
5050 elif test "x$GROFF" != "x" ; then
5051 MANFMT="$GROFF -mandoc -Tascii"
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatted found" >&5
5054 $as_echo "$as_me: WARNING: no manpage formatted found" >&2;}
5059 # Extract the first word of "groupadd", so it can be a program name with args.
5060 set dummy groupadd; ac_word=$2
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5062 $as_echo_n "checking for $ac_word... " >&6; }
5063 if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then :
5064 $as_echo_n "(cached) " >&6
5066 case $PATH_GROUPADD_PROG in
5068 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5078 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
5090 PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
5091 if test -n "$PATH_GROUPADD_PROG"; then
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5
5093 $as_echo "$PATH_GROUPADD_PROG" >&6; }
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096 $as_echo "no" >&6; }
5100 # Extract the first word of "useradd", so it can be a program name with args.
5101 set dummy useradd; ac_word=$2
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5103 $as_echo_n "checking for $ac_word... " >&6; }
5104 if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
5107 case $PATH_USERADD_PROG in
5109 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5116 test -z "$as_dir" && as_dir=.
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5119 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
5131 PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
5132 if test -n "$PATH_USERADD_PROG"; then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5
5134 $as_echo "$PATH_USERADD_PROG" >&6; }
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 $as_echo "no" >&6; }
5141 # Extract the first word of "pkgmk", so it can be a program name with args.
5142 set dummy pkgmk; ac_word=$2
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144 $as_echo_n "checking for $ac_word... " >&6; }
5145 if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then :
5146 $as_echo_n "(cached) " >&6
5148 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5149 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5158 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
5159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
5169 MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
5170 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5
5172 $as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; }
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 $as_echo "no" >&6; }
5179 if test -x /sbin/sh; then
5180 STARTUP_SCRIPT_SHELL=/sbin/sh
5183 STARTUP_SCRIPT_SHELL=/bin/sh
5188 # Check whether --enable-largefile was given.
5189 if test "${enable_largefile+set}" = set; then :
5190 enableval=$enable_largefile;
5193 if test "$enable_largefile" != no; then
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5196 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5197 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5198 $as_echo_n "(cached) " >&6
5200 ac_cv_sys_largefile_CC=no
5201 if test "$GCC" != yes; then
5204 # IRIX 6.2 and later do not support large files by default,
5205 # so use the C compiler's -n32 option if that helps.
5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h. */
5208 #include <sys/types.h>
5209 /* Check that off_t can represent 2**63 - 1 correctly.
5210 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5211 since some C++ compilers masquerading as C compilers
5212 incorrectly reject 9223372036854775807. */
5213 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5214 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5215 && LARGE_OFF_T % 2147483647 == 1)
5225 if ac_fn_c_try_compile "$LINENO"; then :
5228 rm -f core conftest.err conftest.$ac_objext
5230 if ac_fn_c_try_compile "$LINENO"; then :
5231 ac_cv_sys_largefile_CC=' -n32'; break
5233 rm -f core conftest.err conftest.$ac_objext
5237 rm -f conftest.$ac_ext
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5241 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5242 if test "$ac_cv_sys_largefile_CC" != no; then
5243 CC=$CC$ac_cv_sys_largefile_CC
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5247 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5248 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5249 $as_echo_n "(cached) " >&6
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5254 #include <sys/types.h>
5255 /* Check that off_t can represent 2**63 - 1 correctly.
5256 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5257 since some C++ compilers masquerading as C compilers
5258 incorrectly reject 9223372036854775807. */
5259 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5260 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5261 && LARGE_OFF_T % 2147483647 == 1)
5271 if ac_fn_c_try_compile "$LINENO"; then :
5272 ac_cv_sys_file_offset_bits=no; break
5274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h. */
5277 #define _FILE_OFFSET_BITS 64
5278 #include <sys/types.h>
5279 /* Check that off_t can represent 2**63 - 1 correctly.
5280 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5281 since some C++ compilers masquerading as C compilers
5282 incorrectly reject 9223372036854775807. */
5283 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5284 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5285 && LARGE_OFF_T % 2147483647 == 1)
5295 if ac_fn_c_try_compile "$LINENO"; then :
5296 ac_cv_sys_file_offset_bits=64; break
5298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5299 ac_cv_sys_file_offset_bits=unknown
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5304 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5305 case $ac_cv_sys_file_offset_bits in #(
5308 cat >>confdefs.h <<_ACEOF
5309 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5314 if test $ac_cv_sys_file_offset_bits = unknown; then
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5316 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5317 if test "${ac_cv_sys_large_files+set}" = set; then :
5318 $as_echo_n "(cached) " >&6
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5323 #include <sys/types.h>
5324 /* Check that off_t can represent 2**63 - 1 correctly.
5325 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5326 since some C++ compilers masquerading as C compilers
5327 incorrectly reject 9223372036854775807. */
5328 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5329 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5330 && LARGE_OFF_T % 2147483647 == 1)
5340 if ac_fn_c_try_compile "$LINENO"; then :
5341 ac_cv_sys_large_files=no; break
5343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h. */
5346 #define _LARGE_FILES 1
5347 #include <sys/types.h>
5348 /* Check that off_t can represent 2**63 - 1 correctly.
5349 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5350 since some C++ compilers masquerading as C compilers
5351 incorrectly reject 9223372036854775807. */
5352 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5353 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5354 && LARGE_OFF_T % 2147483647 == 1)
5364 if ac_fn_c_try_compile "$LINENO"; then :
5365 ac_cv_sys_large_files=1; break
5367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5368 ac_cv_sys_large_files=unknown
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5373 $as_echo "$ac_cv_sys_large_files" >&6; }
5374 case $ac_cv_sys_large_files in #(
5377 cat >>confdefs.h <<_ACEOF
5378 #define _LARGE_FILES $ac_cv_sys_large_files
5387 if test -z "$AR" ; then
5388 as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5
5391 # Use LOGIN_PROGRAM from environment if possible
5392 if test ! -z "$LOGIN_PROGRAM" ; then
5394 cat >>confdefs.h <<_ACEOF
5395 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5400 # Extract the first word of "login", so it can be a program name with args.
5401 set dummy login; ac_word=$2
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5403 $as_echo_n "checking for $ac_word... " >&6; }
5404 if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then :
5405 $as_echo_n "(cached) " >&6
5407 case $LOGIN_PROGRAM_FALLBACK in
5409 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 test -z "$as_dir" && as_dir=.
5417 for ac_exec_ext in '' $ac_executable_extensions; do
5418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5419 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5430 LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5431 if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOGIN_PROGRAM_FALLBACK" >&5
5433 $as_echo "$LOGIN_PROGRAM_FALLBACK" >&6; }
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436 $as_echo "no" >&6; }
5440 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5441 cat >>confdefs.h <<_ACEOF
5442 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5448 # Extract the first word of "passwd", so it can be a program name with args.
5449 set dummy passwd; ac_word=$2
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5451 $as_echo_n "checking for $ac_word... " >&6; }
5452 if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then :
5453 $as_echo_n "(cached) " >&6
5455 case $PATH_PASSWD_PROG in
5457 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 test -z "$as_dir" && as_dir=.
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5467 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5478 PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5479 if test -n "$PATH_PASSWD_PROG"; then
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5
5481 $as_echo "$PATH_PASSWD_PROG" >&6; }
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484 $as_echo "no" >&6; }
5488 if test ! -z "$PATH_PASSWD_PROG" ; then
5490 cat >>confdefs.h <<_ACEOF
5491 #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5496 if test -z "$LD" ; then
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5502 $as_echo_n "checking for inline... " >&6; }
5503 if test "${ac_cv_c_inline+set}" = set; then :
5504 $as_echo_n "(cached) " >&6
5507 for ac_kw in inline __inline__ __inline; do
5508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h. */
5512 static $ac_kw foo_t static_foo () {return 0; }
5513 $ac_kw foo_t foo () {return 0; }
5517 if ac_fn_c_try_compile "$LINENO"; then :
5518 ac_cv_c_inline=$ac_kw
5520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5521 test "$ac_cv_c_inline" != no && break
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5526 $as_echo "$ac_cv_c_inline" >&6; }
5528 case $ac_cv_c_inline in
5531 case $ac_cv_c_inline in
5533 *) ac_val=$ac_cv_c_inline;;
5535 cat >>confdefs.h <<_ACEOF
5537 #define inline $ac_val
5544 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5546 if test "x$ac_cv_have_decl_LLONG_MAX" = x""yes; then :
5550 ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" "
5551 #include <sys/types.h>
5552 #include <sys/param.h>
5553 #include <dev/systrace.h>
5556 if test "x$ac_cv_have_decl_SYSTR_POLICY_KILL" = x""yes; then :
5557 have_systr_policy_kill=1
5560 ac_fn_c_check_decl "$LINENO" "RLIMIT_NPROC" "ac_cv_have_decl_RLIMIT_NPROC" "
5561 #include <sys/types.h>
5562 #include <sys/resource.h>
5565 if test "x$ac_cv_have_decl_RLIMIT_NPROC" = x""yes; then :
5567 $as_echo "#define HAVE_RLIMIT_NPROC /**/" >>confdefs.h
5572 use_stack_protector=1
5574 # Check whether --with-stackprotect was given.
5575 if test "${with_stackprotect+set}" = set; then :
5576 withval=$with_stackprotect;
5577 if test "x$withval" = "xno"; then
5578 use_stack_protector=0
5584 if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5587 $as_echo_n "checking if $CC supports -Wall... " >&6; }
5588 saved_CFLAGS="$CFLAGS"
5589 CFLAGS="$CFLAGS -Wall"
5591 test "x$_define_flag" = "x" && _define_flag="-Wall"
5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5594 int main(void) { return 0; }
5596 if ac_fn_c_try_compile "$LINENO"; then :
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5598 $as_echo "yes" >&6; }
5599 CFLAGS="$saved_CFLAGS $_define_flag"
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5603 CFLAGS="$saved_CFLAGS"
5606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5610 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5611 saved_CFLAGS="$CFLAGS"
5612 CFLAGS="$CFLAGS -Wpointer-arith"
5614 test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith"
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5617 int main(void) { return 0; }
5619 if ac_fn_c_try_compile "$LINENO"; then :
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5621 $as_echo "yes" >&6; }
5622 CFLAGS="$saved_CFLAGS $_define_flag"
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5625 $as_echo "no" >&6; }
5626 CFLAGS="$saved_CFLAGS"
5629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5633 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5634 saved_CFLAGS="$CFLAGS"
5635 CFLAGS="$CFLAGS -Wuninitialized"
5637 test "x$_define_flag" = "x" && _define_flag="-Wuninitialized"
5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h. */
5640 int main(void) { return 0; }
5642 if ac_fn_c_try_compile "$LINENO"; then :
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5644 $as_echo "yes" >&6; }
5645 CFLAGS="$saved_CFLAGS $_define_flag"
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5649 CFLAGS="$saved_CFLAGS"
5652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsign-compare" >&5
5656 $as_echo_n "checking if $CC supports -Wsign-compare... " >&6; }
5657 saved_CFLAGS="$CFLAGS"
5658 CFLAGS="$CFLAGS -Wsign-compare"
5660 test "x$_define_flag" = "x" && _define_flag="-Wsign-compare"
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h. */
5663 int main(void) { return 0; }
5665 if ac_fn_c_try_compile "$LINENO"; then :
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5667 $as_echo "yes" >&6; }
5668 CFLAGS="$saved_CFLAGS $_define_flag"
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5672 CFLAGS="$saved_CFLAGS"
5675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat-security" >&5
5679 $as_echo_n "checking if $CC supports -Wformat-security... " >&6; }
5680 saved_CFLAGS="$CFLAGS"
5681 CFLAGS="$CFLAGS -Wformat-security"
5683 test "x$_define_flag" = "x" && _define_flag="-Wformat-security"
5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h. */
5686 int main(void) { return 0; }
5688 if ac_fn_c_try_compile "$LINENO"; then :
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5690 $as_echo "yes" >&6; }
5691 CFLAGS="$saved_CFLAGS $_define_flag"
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694 $as_echo "no" >&6; }
5695 CFLAGS="$saved_CFLAGS"
5698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-sign" >&5
5702 $as_echo_n "checking if $CC supports -Wpointer-sign... " >&6; }
5703 saved_CFLAGS="$CFLAGS"
5704 CFLAGS="$CFLAGS -Wpointer-sign"
5705 _define_flag="-Wno-pointer-sign"
5706 test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign"
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708 /* end confdefs.h. */
5709 int main(void) { return 0; }
5711 if ac_fn_c_try_compile "$LINENO"; then :
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5713 $as_echo "yes" >&6; }
5714 CFLAGS="$saved_CFLAGS $_define_flag"
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717 $as_echo "no" >&6; }
5718 CFLAGS="$saved_CFLAGS"
5721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused-result" >&5
5725 $as_echo_n "checking if $CC supports -Wunused-result... " >&6; }
5726 saved_CFLAGS="$CFLAGS"
5727 CFLAGS="$CFLAGS -Wunused-result"
5728 _define_flag="-Wno-unused-result"
5729 test "x$_define_flag" = "x" && _define_flag="-Wunused-result"
5730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5731 /* end confdefs.h. */
5732 int main(void) { return 0; }
5734 if ac_fn_c_try_compile "$LINENO"; then :
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5736 $as_echo "yes" >&6; }
5737 CFLAGS="$saved_CFLAGS $_define_flag"
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740 $as_echo "no" >&6; }
5741 CFLAGS="$saved_CFLAGS"
5744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fno-strict-aliasing" >&5
5748 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
5749 saved_CFLAGS="$CFLAGS"
5750 CFLAGS="$CFLAGS -fno-strict-aliasing"
5752 test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing"
5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754 /* end confdefs.h. */
5755 int main(void) { return 0; }
5757 if ac_fn_c_try_compile "$LINENO"; then :
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5759 $as_echo "yes" >&6; }
5760 CFLAGS="$saved_CFLAGS $_define_flag"
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 $as_echo "no" >&6; }
5764 CFLAGS="$saved_CFLAGS"
5767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
5770 $as_echo_n "checking gcc version... " >&6; }
5771 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
5773 1.*) no_attrib_nonnull=1 ;;
5777 2.*) no_attrib_nonnull=1 ;;
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5
5781 $as_echo "$GCC_VER" >&6; }
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5
5784 $as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; }
5785 saved_CFLAGS="$CFLAGS"
5786 CFLAGS="$CFLAGS -fno-builtin-memset"
5787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788 /* end confdefs.h. */
5793 char b[10]; memset(b, 0, sizeof(b));
5798 if ac_fn_c_try_link "$LINENO"; then :
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5800 $as_echo "yes" >&6; }
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803 $as_echo "no" >&6; }
5804 CFLAGS="$saved_CFLAGS"
5807 rm -f core conftest.err conftest.$ac_objext \
5808 conftest$ac_exeext conftest.$ac_ext
5810 # -fstack-protector-all doesn't always work for some GCC versions
5811 # and/or platforms, so we test if we can. If it's not supported
5812 # on a given platform gcc will emit a warning so we use -Werror.
5813 if test "x$use_stack_protector" = "x1"; then
5814 for t in -fstack-protector-all -fstack-protector; do
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5
5816 $as_echo_n "checking if $CC supports $t... " >&6; }
5817 saved_CFLAGS="$CFLAGS"
5818 saved_LDFLAGS="$LDFLAGS"
5819 CFLAGS="$CFLAGS $t -Werror"
5820 LDFLAGS="$LDFLAGS $t -Werror"
5821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822 /* end confdefs.h. */
5829 snprintf(x, sizeof(x), "XXX");
5835 if ac_fn_c_try_link "$LINENO"; then :
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5837 $as_echo "yes" >&6; }
5838 CFLAGS="$saved_CFLAGS $t"
5839 LDFLAGS="$saved_LDFLAGS $t"
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5
5841 $as_echo_n "checking if $t works... " >&6; }
5842 if test "$cross_compiling" = yes; then :
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5
5844 $as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
5848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849 /* end confdefs.h. */
5856 snprintf(x, sizeof(x), "XXX");
5862 if ac_fn_c_try_run "$LINENO"; then :
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5864 $as_echo "yes" >&6; }
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868 $as_echo "no" >&6; }
5870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5871 conftest.$ac_objext conftest.beam conftest.$ac_ext
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5877 $as_echo "no" >&6; }
5880 rm -f core conftest.err conftest.$ac_objext \
5881 conftest$ac_exeext conftest.$ac_ext
5882 CFLAGS="$saved_CFLAGS"
5883 LDFLAGS="$saved_LDFLAGS"
5887 if test -z "$have_llong_max"; then
5888 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
5889 unset ac_cv_have_decl_LLONG_MAX
5890 saved_CFLAGS="$CFLAGS"
5891 CFLAGS="$CFLAGS -std=gnu99"
5892 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5895 if test "x$ac_cv_have_decl_LLONG_MAX" = x""yes; then :
5898 CFLAGS="$saved_CFLAGS"
5904 if test "x$no_attrib_nonnull" != "x1" ; then
5906 $as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h
5911 # Check whether --with-rpath was given.
5912 if test "${with_rpath+set}" = set; then :
5913 withval=$with_rpath;
5914 if test "x$withval" = "xno" ; then
5917 if test "x$withval" = "xyes" ; then
5925 # Allow user to specify flags
5927 # Check whether --with-cflags was given.
5928 if test "${with_cflags+set}" = set; then :
5929 withval=$with_cflags;
5930 if test -n "$withval" && test "x$withval" != "xno" && \
5931 test "x${withval}" != "xyes"; then
5932 CFLAGS="$CFLAGS $withval"
5939 # Check whether --with-cppflags was given.
5940 if test "${with_cppflags+set}" = set; then :
5941 withval=$with_cppflags;
5942 if test -n "$withval" && test "x$withval" != "xno" && \
5943 test "x${withval}" != "xyes"; then
5944 CPPFLAGS="$CPPFLAGS $withval"
5951 # Check whether --with-ldflags was given.
5952 if test "${with_ldflags+set}" = set; then :
5953 withval=$with_ldflags;
5954 if test -n "$withval" && test "x$withval" != "xno" && \
5955 test "x${withval}" != "xyes"; then
5956 LDFLAGS="$LDFLAGS $withval"
5963 # Check whether --with-libs was given.
5964 if test "${with_libs+set}" = set; then :
5966 if test -n "$withval" && test "x$withval" != "xno" && \
5967 test "x${withval}" != "xyes"; then
5968 LIBS="$LIBS $withval"
5975 # Check whether --with-Werror was given.
5976 if test "${with_Werror+set}" = set; then :
5977 withval=$with_Werror;
5978 if test -n "$withval" && test "x$withval" != "xno"; then
5979 werror_flags="-Werror"
5980 if test "x${withval}" != "xyes"; then
5981 werror_flags="$withval"
6015 security/pam_appl.h \
6055 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6056 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6057 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6058 cat >>confdefs.h <<_ACEOF
6059 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6067 # lastlog.h requires sys/time.h to be included first on Solaris
6068 for ac_header in lastlog.h
6070 ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "
6071 #ifdef HAVE_SYS_TIME_H
6072 # include <sys/time.h>
6076 if test "x$ac_cv_header_lastlog_h" = x""yes; then :
6077 cat >>confdefs.h <<_ACEOF
6078 #define HAVE_LASTLOG_H 1
6086 # sys/ptms.h requires sys/stream.h to be included first on Solaris
6087 for ac_header in sys/ptms.h
6089 ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" "
6090 #ifdef HAVE_SYS_STREAM_H
6091 # include <sys/stream.h>
6095 if test "x$ac_cv_header_sys_ptms_h" = x""yes; then :
6096 cat >>confdefs.h <<_ACEOF
6097 #define HAVE_SYS_PTMS_H 1
6105 # login_cap.h requires sys/types.h on NetBSD
6106 for ac_header in login_cap.h
6108 ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "
6109 #include <sys/types.h>
6112 if test "x$ac_cv_header_login_cap_h" = x""yes; then :
6113 cat >>confdefs.h <<_ACEOF
6114 #define HAVE_LOGIN_CAP_H 1
6122 # older BSDs need sys/param.h before sys/mount.h
6123 for ac_header in sys/mount.h
6125 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "
6126 #include <sys/param.h>
6129 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
6130 cat >>confdefs.h <<_ACEOF
6131 #define HAVE_SYS_MOUNT_H 1
6139 # Messages for features tested for in target-specific section
6144 # Check for some target-specific stuff
6147 # Some versions of VAC won't allow macro redefinitions at
6148 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
6149 # particularly with older versions of vac or xlc.
6150 # It also throws errors about null macro argments, but these are
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5
6153 $as_echo_n "checking if compiler allows macro redefinitions... " >&6; }
6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6157 #define testmacro foo
6158 #define testmacro bar
6167 if ac_fn_c_try_compile "$LINENO"; then :
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6169 $as_echo "yes" >&6; }
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172 $as_echo "no" >&6; }
6173 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
6174 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
6175 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6176 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5
6183 $as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; }
6184 if (test -z "$blibpath"); then
6185 blibpath="/usr/lib:/lib"
6187 saved_LDFLAGS="$LDFLAGS"
6188 if test "$GCC" = "yes"; then
6189 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
6191 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
6193 for tryflags in $flags ;do
6194 if (test -z "$blibflags"); then
6195 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6207 if ac_fn_c_try_link "$LINENO"; then :
6210 rm -f core conftest.err conftest.$ac_objext \
6211 conftest$ac_exeext conftest.$ac_ext
6214 if (test -z "$blibflags"); then
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6216 $as_echo "not found" >&6; }
6217 as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5
6220 $as_echo "$blibflags" >&6; }
6222 LDFLAGS="$saved_LDFLAGS"
6223 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
6224 if test "x$ac_cv_func_authenticate" = x""yes; then :
6226 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5
6230 $as_echo_n "checking for authenticate in -ls... " >&6; }
6231 if test "${ac_cv_lib_s_authenticate+set}" = set; then :
6232 $as_echo_n "(cached) " >&6
6234 ac_check_lib_save_LIBS=$LIBS
6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h. */
6239 /* Override any GCC internal prototype to avoid an error.
6240 Use char because int might match the return type of a GCC
6241 builtin and then its argument prototype would still apply. */
6245 char authenticate ();
6249 return authenticate ();
6254 if ac_fn_c_try_link "$LINENO"; then :
6255 ac_cv_lib_s_authenticate=yes
6257 ac_cv_lib_s_authenticate=no
6259 rm -f core conftest.err conftest.$ac_objext \
6260 conftest$ac_exeext conftest.$ac_ext
6261 LIBS=$ac_check_lib_save_LIBS
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5
6264 $as_echo "$ac_cv_lib_s_authenticate" >&6; }
6265 if test "x$ac_cv_lib_s_authenticate" = x""yes; then :
6266 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
6275 ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h>
6277 if test "x$ac_cv_have_decl_authenticate" = x""yes; then :
6283 cat >>confdefs.h <<_ACEOF
6284 #define HAVE_DECL_AUTHENTICATE $ac_have_decl
6286 ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h>
6288 if test "x$ac_cv_have_decl_loginrestrictions" = x""yes; then :
6294 cat >>confdefs.h <<_ACEOF
6295 #define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl
6297 ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h>
6299 if test "x$ac_cv_have_decl_loginsuccess" = x""yes; then :
6305 cat >>confdefs.h <<_ACEOF
6306 #define HAVE_DECL_LOGINSUCCESS $ac_have_decl
6308 ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h>
6310 if test "x$ac_cv_have_decl_passwdexpired" = x""yes; then :
6316 cat >>confdefs.h <<_ACEOF
6317 #define HAVE_DECL_PASSWDEXPIRED $ac_have_decl
6319 ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h>
6321 if test "x$ac_cv_have_decl_setauthdb" = x""yes; then :
6327 cat >>confdefs.h <<_ACEOF
6328 #define HAVE_DECL_SETAUTHDB $ac_have_decl
6331 ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h>
6334 if test "x$ac_cv_have_decl_loginfailed" = x""yes; then :
6340 cat >>confdefs.h <<_ACEOF
6341 #define HAVE_DECL_LOGINFAILED $ac_have_decl
6343 if test $ac_have_decl = 1; then :
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5
6345 $as_echo_n "checking if loginfailed takes 4 arguments... " >&6; }
6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h. */
6348 #include <usersec.h>
6352 (void)loginfailed("user","host","tty",0);
6357 if ac_fn_c_try_compile "$LINENO"; then :
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6359 $as_echo "yes" >&6; }
6361 $as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365 $as_echo "no" >&6; }
6368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6371 for ac_func in getgrset setauthdb
6373 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6374 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6375 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6376 cat >>confdefs.h <<_ACEOF
6377 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6383 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
6387 if test "x$ac_cv_have_decl_F_CLOSEM" = x""yes; then :
6389 $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
6393 check_for_aix_broken_getaddrinfo=1
6395 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
6398 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6401 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6404 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6407 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
6410 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6413 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6416 $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
6419 $as_echo "#define PTY_ZEROREAD 1" >>confdefs.h
6423 check_for_libcrypt_later=1
6424 LIBS="$LIBS /usr/lib/textreadmode.o"
6426 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
6429 $as_echo "#define USE_PIPES 1" >>confdefs.h
6432 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
6435 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
6438 $as_echo "#define NO_IPPORT_RESERVED_CONCEPT 1" >>confdefs.h
6441 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
6444 $as_echo "#define SSH_IOBUFSZ 65535" >>confdefs.h
6447 $as_echo "#define FILESYSTEM_NO_BACKSLASH 1" >>confdefs.h
6452 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
6454 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6456 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6458 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5
6463 $as_echo_n "checking if we have working getaddrinfo... " >&6; }
6464 if test "$cross_compiling" = yes; then :
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5
6466 $as_echo "assume it is working" >&6; }
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6470 #include <mach-o/dyld.h>
6471 main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
6478 if ac_fn_c_try_run "$LINENO"; then :
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5
6480 $as_echo "working" >&6; }
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
6483 $as_echo "buggy" >&6; }
6485 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
6489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6490 conftest.$ac_objext conftest.beam conftest.$ac_ext
6493 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6495 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6497 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6500 $as_echo "#define BROKEN_GLOB 1" >>confdefs.h
6503 cat >>confdefs.h <<_ACEOF
6504 #define BIND_8_COMPAT 1
6508 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6511 $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
6514 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have the Security Authorization Session API" >&5
6517 $as_echo_n "checking if we have the Security Authorization Session API... " >&6; }
6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h. */
6520 #include <Security/AuthSession.h>
6524 SessionCreate(0, 0);
6529 if ac_fn_c_try_compile "$LINENO"; then :
6530 ac_cv_use_security_session_api="yes"
6532 $as_echo "#define USE_SECURITY_SESSION_API 1" >>confdefs.h
6534 LIBS="$LIBS -framework Security"
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6536 $as_echo "yes" >&6; }
6538 ac_cv_use_security_session_api="no"
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 $as_echo "no" >&6; }
6542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have an in-memory credentials cache" >&5
6544 $as_echo_n "checking if we have an in-memory credentials cache... " >&6; }
6545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546 /* end confdefs.h. */
6547 #include <Kerberos/Kerberos.h>
6552 (void) cc_initialize (&c, 0, NULL, NULL);
6557 if ac_fn_c_try_compile "$LINENO"; then :
6559 $as_echo "#define USE_CCAPI 1" >>confdefs.h
6561 LIBS="$LIBS -framework Security"
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6563 $as_echo "yes" >&6; }
6564 if test "x$ac_cv_use_security_session_api" = "xno"; then
6565 as_fn_error $? "*** Need a security framework to use the credentials cache API ***" "$LINENO" 5
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569 $as_echo "no" >&6; }
6572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6574 ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default"
6575 if test "x$ac_cv_have_decl_AU_IPv4" = x""yes; then :
6579 $as_echo "#define AU_IPv4 0" >>confdefs.h
6581 #include <bsm/audit.h>
6583 $as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h
6589 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6591 for ac_func in sandbox_init
6593 ac_fn_c_check_func "$LINENO" "sandbox_init" "ac_cv_func_sandbox_init"
6594 if test "x$ac_cv_func_sandbox_init" = x""yes; then :
6595 cat >>confdefs.h <<_ACEOF
6596 #define HAVE_SANDBOX_INIT 1
6602 for ac_header in sandbox.h
6604 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
6605 if test "x$ac_cv_header_sandbox_h" = x""yes; then :
6606 cat >>confdefs.h <<_ACEOF
6607 #define HAVE_SANDBOX_H 1
6616 SSHDLIBS="$SSHDLIBS -lcrypt"
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
6621 $as_echo_n "checking for socket in -lnetwork... " >&6; }
6622 if test "${ac_cv_lib_network_socket+set}" = set; then :
6623 $as_echo_n "(cached) " >&6
6625 ac_check_lib_save_LIBS=$LIBS
6626 LIBS="-lnetwork $LIBS"
6627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628 /* end confdefs.h. */
6630 /* Override any GCC internal prototype to avoid an error.
6631 Use char because int might match the return type of a GCC
6632 builtin and then its argument prototype would still apply. */
6645 if ac_fn_c_try_link "$LINENO"; then :
6646 ac_cv_lib_network_socket=yes
6648 ac_cv_lib_network_socket=no
6650 rm -f core conftest.err conftest.$ac_objext \
6651 conftest$ac_exeext conftest.$ac_ext
6652 LIBS=$ac_check_lib_save_LIBS
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
6655 $as_echo "$ac_cv_lib_network_socket" >&6; }
6656 if test "x$ac_cv_lib_network_socket" = x""yes; then :
6657 cat >>confdefs.h <<_ACEOF
6658 #define HAVE_LIBNETWORK 1
6661 LIBS="-lnetwork $LIBS"
6665 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
6670 # first we define all of the options common to all HP-UX releases
6671 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
6672 IPADDR_IN_DISPLAY=yes
6673 $as_echo "#define USE_PIPES 1" >>confdefs.h
6676 $as_echo "#define LOGIN_NO_ENDOPT 1" >>confdefs.h
6678 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6681 $as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h
6683 $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5
6688 $as_echo_n "checking for t_error in -lxnet... " >&6; }
6689 if test "${ac_cv_lib_xnet_t_error+set}" = set; then :
6690 $as_echo_n "(cached) " >&6
6692 ac_check_lib_save_LIBS=$LIBS
6694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695 /* end confdefs.h. */
6697 /* Override any GCC internal prototype to avoid an error.
6698 Use char because int might match the return type of a GCC
6699 builtin and then its argument prototype would still apply. */
6712 if ac_fn_c_try_link "$LINENO"; then :
6713 ac_cv_lib_xnet_t_error=yes
6715 ac_cv_lib_xnet_t_error=no
6717 rm -f core conftest.err conftest.$ac_objext \
6718 conftest$ac_exeext conftest.$ac_ext
6719 LIBS=$ac_check_lib_save_LIBS
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5
6722 $as_echo "$ac_cv_lib_xnet_t_error" >&6; }
6723 if test "x$ac_cv_lib_xnet_t_error" = x""yes; then :
6724 cat >>confdefs.h <<_ACEOF
6725 #define HAVE_LIBXNET 1
6731 as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5
6735 # next, we define all of the options specific to major releases
6738 if test -z "$GCC"; then
6739 CFLAGS="$CFLAGS -Ae"
6744 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
6747 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
6750 $as_echo "#define USE_BTMP 1" >>confdefs.h
6752 check_for_hpux_broken_getaddrinfo=1
6753 check_for_conflicting_getspnam=1
6757 # lastly, we define options specific to minor releases
6761 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
6763 disable_ptmx_check=yes
6764 LIBS="$LIBS -lsecpw"
6769 PATH="$PATH:/usr/etc"
6771 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
6773 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6775 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6777 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6780 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
6782 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6786 PATH="$PATH:/usr/etc"
6788 $as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h
6791 $as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h
6794 $as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h
6796 ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob"
6797 if test "x$ac_cv_func_jlimit_startjob" = x""yes; then :
6799 $as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h
6803 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
6805 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6807 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6809 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6812 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
6814 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
6816 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6819 *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6820 check_for_libcrypt_later=1
6821 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
6823 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
6825 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6828 $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
6831 $as_echo "#define USE_BTMP 1" >>confdefs.h
6836 check_for_libcrypt_later=1
6837 check_for_openpty_ctty_bug=1
6839 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
6842 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
6844 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6847 $as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h
6850 $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
6852 $as_echo "#define USE_BTMP 1" >>confdefs.h
6855 $as_echo "#define LINUX_OOM_ADJUST 1" >>confdefs.h
6857 inet6_default_4in6=yes
6861 $as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h
6865 # tun(4) forwarding compat code
6866 for ac_header in linux/if_tun.h
6868 ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
6869 if test "x$ac_cv_header_linux_if_tun_h" = x""yes; then :
6870 cat >>confdefs.h <<_ACEOF
6871 #define HAVE_LINUX_IF_TUN_H 1
6878 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
6880 $as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h
6883 $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
6886 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6890 mips-sony-bsd|mips-sony-newsos4)
6892 $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
6897 check_for_libcrypt_before=1
6898 if test "x$withval" != "xno" ; then
6902 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6904 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
6905 if test "x$ac_cv_header_net_if_tap_h" = x""yes; then :
6909 $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
6915 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6919 check_for_libcrypt_later=1
6921 $as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h
6924 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6926 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
6927 if test "x$ac_cv_header_net_if_tap_h" = x""yes; then :
6931 $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
6937 $as_echo "#define BROKEN_GLOB 1" >>confdefs.h
6941 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6943 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6945 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6949 conf_lastlog_location="/usr/adm/lastlog"
6950 conf_utmp_location=/etc/utmp
6951 conf_wtmp_location=/usr/adm/wtmp
6952 maildir=/usr/spool/mail
6954 $as_echo "#define HAVE_NEXT 1" >>confdefs.h
6956 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
6958 $as_echo "#define USE_PIPES 1" >>confdefs.h
6961 $as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h
6966 $as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h
6969 $as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h
6972 $as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h
6975 $as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h
6979 if test "x$withval" != "xno" ; then
6982 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
6984 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6987 $as_echo "#define LOGIN_NEEDS_TERM 1" >>confdefs.h
6989 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
6992 $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
6994 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6996 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
6998 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7001 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7004 $as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h
7006 external_path_file=/etc/default/login
7007 # hardwire lastlog location (can't detect it on some versions)
7008 conf_lastlog_location="/var/adm/lastlog"
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5
7010 $as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; }
7011 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
7012 if test "$sol2ver" -ge 8; then
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7014 $as_echo "yes" >&6; }
7015 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
7018 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022 $as_echo "no" >&6; }
7025 # Check whether --with-solaris-contracts was given.
7026 if test "${with_solaris_contracts+set}" = set; then :
7027 withval=$with_solaris_contracts;
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5
7029 $as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; }
7030 if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then :
7031 $as_echo_n "(cached) " >&6
7033 ac_check_lib_save_LIBS=$LIBS
7034 LIBS="-lcontract $LIBS"
7035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036 /* end confdefs.h. */
7038 /* Override any GCC internal prototype to avoid an error.
7039 Use char because int might match the return type of a GCC
7040 builtin and then its argument prototype would still apply. */
7044 char ct_tmpl_activate ();
7048 return ct_tmpl_activate ();
7053 if ac_fn_c_try_link "$LINENO"; then :
7054 ac_cv_lib_contract_ct_tmpl_activate=yes
7056 ac_cv_lib_contract_ct_tmpl_activate=no
7058 rm -f core conftest.err conftest.$ac_objext \
7059 conftest$ac_exeext conftest.$ac_ext
7060 LIBS=$ac_check_lib_save_LIBS
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
7063 $as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
7064 if test "x$ac_cv_lib_contract_ct_tmpl_activate" = x""yes; then :
7066 $as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h
7068 SSHDLIBS="$SSHDLIBS -lcontract"
7076 # Check whether --with-solaris-projects was given.
7077 if test "${with_solaris_projects+set}" = set; then :
7078 withval=$with_solaris_projects;
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
7080 $as_echo_n "checking for setproject in -lproject... " >&6; }
7081 if test "${ac_cv_lib_project_setproject+set}" = set; then :
7082 $as_echo_n "(cached) " >&6
7084 ac_check_lib_save_LIBS=$LIBS
7085 LIBS="-lproject $LIBS"
7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7087 /* end confdefs.h. */
7089 /* Override any GCC internal prototype to avoid an error.
7090 Use char because int might match the return type of a GCC
7091 builtin and then its argument prototype would still apply. */
7099 return setproject ();
7104 if ac_fn_c_try_link "$LINENO"; then :
7105 ac_cv_lib_project_setproject=yes
7107 ac_cv_lib_project_setproject=no
7109 rm -f core conftest.err conftest.$ac_objext \
7110 conftest$ac_exeext conftest.$ac_ext
7111 LIBS=$ac_check_lib_save_LIBS
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
7114 $as_echo "$ac_cv_lib_project_setproject" >&6; }
7115 if test "x$ac_cv_lib_project_setproject" = x""yes; then :
7117 $as_echo "#define USE_SOLARIS_PROJECTS 1" >>confdefs.h
7119 SSHDLIBS="$SSHDLIBS -lproject"
7128 CPPFLAGS="$CPPFLAGS -DSUNOS4"
7129 for ac_func in getpwanam
7131 ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam"
7132 if test "x$ac_cv_func_getpwanam" = x""yes; then :
7133 cat >>confdefs.h <<_ACEOF
7134 #define HAVE_GETPWANAM 1
7140 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7142 conf_utmp_location=/etc/utmp
7143 conf_wtmp_location=/var/adm/wtmp
7144 conf_lastlog_location=/var/adm/lastlog
7145 $as_echo "#define USE_PIPES 1" >>confdefs.h
7150 $as_echo "#define USE_PIPES 1" >>confdefs.h
7152 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7154 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7156 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7158 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7162 # /usr/ucblib MUST NOT be searched on ReliantUNIX
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
7164 $as_echo_n "checking for dlsym in -ldl... " >&6; }
7165 if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
7166 $as_echo_n "(cached) " >&6
7168 ac_check_lib_save_LIBS=$LIBS
7170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h. */
7173 /* Override any GCC internal prototype to avoid an error.
7174 Use char because int might match the return type of a GCC
7175 builtin and then its argument prototype would still apply. */
7188 if ac_fn_c_try_link "$LINENO"; then :
7189 ac_cv_lib_dl_dlsym=yes
7191 ac_cv_lib_dl_dlsym=no
7193 rm -f core conftest.err conftest.$ac_objext \
7194 conftest$ac_exeext conftest.$ac_ext
7195 LIBS=$ac_check_lib_save_LIBS
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
7198 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
7199 if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
7200 cat >>confdefs.h <<_ACEOF
7201 #define HAVE_LIBDL 1
7208 # -lresolv needs to be at the end of LIBS or DNS lookups break
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
7210 $as_echo_n "checking for res_query in -lresolv... " >&6; }
7211 if test "${ac_cv_lib_resolv_res_query+set}" = set; then :
7212 $as_echo_n "(cached) " >&6
7214 ac_check_lib_save_LIBS=$LIBS
7215 LIBS="-lresolv $LIBS"
7216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7217 /* end confdefs.h. */
7219 /* Override any GCC internal prototype to avoid an error.
7220 Use char because int might match the return type of a GCC
7221 builtin and then its argument prototype would still apply. */
7229 return res_query ();
7234 if ac_fn_c_try_link "$LINENO"; then :
7235 ac_cv_lib_resolv_res_query=yes
7237 ac_cv_lib_resolv_res_query=no
7239 rm -f core conftest.err conftest.$ac_objext \
7240 conftest$ac_exeext conftest.$ac_ext
7241 LIBS=$ac_check_lib_save_LIBS
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5
7244 $as_echo "$ac_cv_lib_resolv_res_query" >&6; }
7245 if test "x$ac_cv_lib_resolv_res_query" = x""yes; then :
7246 LIBS="$LIBS -lresolv"
7249 IPADDR_IN_DISPLAY=yes
7250 $as_echo "#define USE_PIPES 1" >>confdefs.h
7252 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
7254 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7256 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7258 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7260 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7262 external_path_file=/etc/default/login
7263 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
7264 # Attention: always take care to bind libsocket and libnsl before libc,
7265 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
7267 # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
7269 $as_echo "#define USE_PIPES 1" >>confdefs.h
7271 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7273 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7275 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7278 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7280 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7283 # UnixWare 7.x, OpenUNIX 8
7285 CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf"
7287 $as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h
7289 $as_echo "#define USE_PIPES 1" >>confdefs.h
7291 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7293 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7295 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7297 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7299 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7302 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
7303 maildir=/var/spool/mail
7304 TEST_SHELL=/u95/bin/sh
7306 $as_echo "#define BROKEN_LIBIAF 1" >>confdefs.h
7308 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5
7311 $as_echo_n "checking for getluid in -lprot... " >&6; }
7312 if test "${ac_cv_lib_prot_getluid+set}" = set; then :
7313 $as_echo_n "(cached) " >&6
7315 ac_check_lib_save_LIBS=$LIBS
7317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318 /* end confdefs.h. */
7320 /* Override any GCC internal prototype to avoid an error.
7321 Use char because int might match the return type of a GCC
7322 builtin and then its argument prototype would still apply. */
7335 if ac_fn_c_try_link "$LINENO"; then :
7336 ac_cv_lib_prot_getluid=yes
7338 ac_cv_lib_prot_getluid=no
7340 rm -f core conftest.err conftest.$ac_objext \
7341 conftest$ac_exeext conftest.$ac_ext
7342 LIBS=$ac_check_lib_save_LIBS
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5
7345 $as_echo "$ac_cv_lib_prot_getluid" >&6; }
7346 if test "x$ac_cv_lib_prot_getluid" = x""yes; then :
7348 for ac_func in getluid setluid
7350 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7351 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7352 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7353 cat >>confdefs.h <<_ACEOF
7354 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7360 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
7362 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
7368 *) $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7370 check_for_libcrypt_later=1
7376 # SCO UNIX and OEM versions of SCO UNIX
7378 as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5
7380 # SCO OpenServer 5.x
7382 if test -z "$GCC"; then
7383 CFLAGS="$CFLAGS -belf"
7385 LIBS="$LIBS -lprot -lx -ltinfo -lm"
7387 $as_echo "#define USE_PIPES 1" >>confdefs.h
7389 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
7391 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
7393 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7395 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7397 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7399 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7401 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7403 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7405 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7407 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7409 for ac_func in getluid setluid
7411 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7412 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7413 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7414 cat >>confdefs.h <<_ACEOF
7415 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7426 $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
7428 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7430 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7432 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7434 $as_echo "#define USE_PIPES 1" >>confdefs.h
7436 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7439 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
7443 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7445 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7447 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7449 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7451 $as_echo "#define USE_PIPES 1" >>confdefs.h
7453 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7456 LIBS="$LIBS -lgen -lacid -ldb"
7460 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7462 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7464 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7466 $as_echo "#define USE_PIPES 1" >>confdefs.h
7468 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7470 $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
7472 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
7473 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5
7478 $as_echo_n "checking for Digital Unix SIA... " >&6; }
7481 # Check whether --with-osfsia was given.
7482 if test "${with_osfsia+set}" = set; then :
7483 withval=$with_osfsia;
7484 if test "x$withval" = "xno" ; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7486 $as_echo "disabled" >&6; }
7492 if test -z "$no_osfsia" ; then
7493 if test -f /etc/sia/matrix.conf; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7495 $as_echo "yes" >&6; }
7497 $as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h
7500 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
7502 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7504 LIBS="$LIBS -lsecurity -ldb -lm -laud"
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7508 $as_echo "no" >&6; }
7510 $as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h
7514 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7516 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7518 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7520 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7523 $as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h
7528 $as_echo "#define USE_PIPES 1" >>confdefs.h
7530 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
7533 $as_echo "#define MISSING_NFDBITS 1" >>confdefs.h
7536 $as_echo "#define MISSING_HOWMANY 1" >>confdefs.h
7539 $as_echo "#define MISSING_FD_MASK 1" >>confdefs.h
7541 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
7543 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7546 $as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h
7548 enable_etc_default_login=no # has incompatible /etc/default/login
7551 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7559 $as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h
7562 $as_echo "#define BROKEN_MMAP 1" >>confdefs.h
7564 $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
7567 $as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h
7572 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
7573 $as_echo "#define MISSING_HOWMANY 1" >>confdefs.h
7576 $as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5
7582 $as_echo_n "checking compiler and flags for sanity... " >&6; }
7583 if test "$cross_compiling" = yes; then :
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5
7585 $as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
7588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589 /* end confdefs.h. */
7599 if ac_fn_c_try_run "$LINENO"; then :
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7601 $as_echo "yes" >&6; }
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605 $as_echo "no" >&6; }
7606 as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5
7609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7610 conftest.$ac_objext conftest.beam conftest.$ac_ext
7614 # Checks for libraries.
7615 ac_fn_c_check_func "$LINENO" "yp_match" "ac_cv_func_yp_match"
7616 if test "x$ac_cv_func_yp_match" = x""yes; then :
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5
7620 $as_echo_n "checking for yp_match in -lnsl... " >&6; }
7621 if test "${ac_cv_lib_nsl_yp_match+set}" = set; then :
7622 $as_echo_n "(cached) " >&6
7624 ac_check_lib_save_LIBS=$LIBS
7626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627 /* end confdefs.h. */
7629 /* Override any GCC internal prototype to avoid an error.
7630 Use char because int might match the return type of a GCC
7631 builtin and then its argument prototype would still apply. */
7644 if ac_fn_c_try_link "$LINENO"; then :
7645 ac_cv_lib_nsl_yp_match=yes
7647 ac_cv_lib_nsl_yp_match=no
7649 rm -f core conftest.err conftest.$ac_objext \
7650 conftest$ac_exeext conftest.$ac_ext
7651 LIBS=$ac_check_lib_save_LIBS
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5
7654 $as_echo "$ac_cv_lib_nsl_yp_match" >&6; }
7655 if test "x$ac_cv_lib_nsl_yp_match" = x""yes; then :
7656 cat >>confdefs.h <<_ACEOF
7657 #define HAVE_LIBNSL 1
7666 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
7667 if test "x$ac_cv_func_setsockopt" = x""yes; then :
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
7671 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
7672 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then :
7673 $as_echo_n "(cached) " >&6
7675 ac_check_lib_save_LIBS=$LIBS
7676 LIBS="-lsocket $LIBS"
7677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678 /* end confdefs.h. */
7680 /* Override any GCC internal prototype to avoid an error.
7681 Use char because int might match the return type of a GCC
7682 builtin and then its argument prototype would still apply. */
7690 return setsockopt ();
7695 if ac_fn_c_try_link "$LINENO"; then :
7696 ac_cv_lib_socket_setsockopt=yes
7698 ac_cv_lib_socket_setsockopt=no
7700 rm -f core conftest.err conftest.$ac_objext \
7701 conftest$ac_exeext conftest.$ac_ext
7702 LIBS=$ac_check_lib_save_LIBS
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
7705 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
7706 if test "x$ac_cv_lib_socket_setsockopt" = x""yes; then :
7707 cat >>confdefs.h <<_ACEOF
7708 #define HAVE_LIBSOCKET 1
7711 LIBS="-lsocket $LIBS"
7718 for ac_func in dirname
7720 ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
7721 if test "x$ac_cv_func_dirname" = x""yes; then :
7722 cat >>confdefs.h <<_ACEOF
7723 #define HAVE_DIRNAME 1
7725 for ac_header in libgen.h
7727 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
7728 if test "x$ac_cv_header_libgen_h" = x""yes; then :
7729 cat >>confdefs.h <<_ACEOF
7730 #define HAVE_LIBGEN_H 1
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5
7740 $as_echo_n "checking for dirname in -lgen... " >&6; }
7741 if test "${ac_cv_lib_gen_dirname+set}" = set; then :
7742 $as_echo_n "(cached) " >&6
7744 ac_check_lib_save_LIBS=$LIBS
7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h. */
7749 /* Override any GCC internal prototype to avoid an error.
7750 Use char because int might match the return type of a GCC
7751 builtin and then its argument prototype would still apply. */
7764 if ac_fn_c_try_link "$LINENO"; then :
7765 ac_cv_lib_gen_dirname=yes
7767 ac_cv_lib_gen_dirname=no
7769 rm -f core conftest.err conftest.$ac_objext \
7770 conftest$ac_exeext conftest.$ac_ext
7771 LIBS=$ac_check_lib_save_LIBS
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5
7774 $as_echo "$ac_cv_lib_gen_dirname" >&6; }
7775 if test "x$ac_cv_lib_gen_dirname" = x""yes; then :
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5
7778 $as_echo_n "checking for broken dirname... " >&6; }
7779 if test "${ac_cv_have_broken_dirname+set}" = set; then :
7780 $as_echo_n "(cached) " >&6
7785 if test "$cross_compiling" = yes; then :
7786 ac_cv_have_broken_dirname="no"
7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h. */
7794 int main(int argc, char **argv) {
7797 strncpy(buf,"/etc", 32);
7799 if (!s || strncmp(s, "/", 32) != 0) {
7807 if ac_fn_c_try_run "$LINENO"; then :
7808 ac_cv_have_broken_dirname="no"
7810 ac_cv_have_broken_dirname="yes"
7812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7813 conftest.$ac_objext conftest.beam conftest.$ac_ext
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5
7820 $as_echo "$ac_cv_have_broken_dirname" >&6; }
7821 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
7823 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
7825 for ac_header in libgen.h
7827 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
7828 if test "x$ac_cv_header_libgen_h" = x""yes; then :
7829 cat >>confdefs.h <<_ACEOF
7830 #define HAVE_LIBGEN_H 1
7846 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
7847 if test "x$ac_cv_func_getspnam" = x""yes; then :
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5
7851 $as_echo_n "checking for getspnam in -lgen... " >&6; }
7852 if test "${ac_cv_lib_gen_getspnam+set}" = set; then :
7853 $as_echo_n "(cached) " >&6
7855 ac_check_lib_save_LIBS=$LIBS
7857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7858 /* end confdefs.h. */
7860 /* Override any GCC internal prototype to avoid an error.
7861 Use char because int might match the return type of a GCC
7862 builtin and then its argument prototype would still apply. */
7875 if ac_fn_c_try_link "$LINENO"; then :
7876 ac_cv_lib_gen_getspnam=yes
7878 ac_cv_lib_gen_getspnam=no
7880 rm -f core conftest.err conftest.$ac_objext \
7881 conftest$ac_exeext conftest.$ac_ext
7882 LIBS=$ac_check_lib_save_LIBS
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5
7885 $as_echo "$ac_cv_lib_gen_getspnam" >&6; }
7886 if test "x$ac_cv_lib_gen_getspnam" = x""yes; then :
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5
7893 $as_echo_n "checking for library containing basename... " >&6; }
7894 if test "${ac_cv_search_basename+set}" = set; then :
7895 $as_echo_n "(cached) " >&6
7897 ac_func_search_save_LIBS=$LIBS
7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h. */
7901 /* Override any GCC internal prototype to avoid an error.
7902 Use char because int might match the return type of a GCC
7903 builtin and then its argument prototype would still apply. */
7916 for ac_lib in '' gen; do
7917 if test -z "$ac_lib"; then
7918 ac_res="none required"
7921 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7923 if ac_fn_c_try_link "$LINENO"; then :
7924 ac_cv_search_basename=$ac_res
7926 rm -f core conftest.err conftest.$ac_objext \
7928 if test "${ac_cv_search_basename+set}" = set; then :
7932 if test "${ac_cv_search_basename+set}" = set; then :
7935 ac_cv_search_basename=no
7938 LIBS=$ac_func_search_save_LIBS
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5
7941 $as_echo "$ac_cv_search_basename" >&6; }
7942 ac_res=$ac_cv_search_basename
7943 if test "$ac_res" != no; then :
7944 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7946 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
7952 # Check whether --with-zlib was given.
7953 if test "${with_zlib+set}" = set; then :
7954 withval=$with_zlib; if test "x$withval" = "xno" ; then
7955 as_fn_error $? "*** zlib is required ***" "$LINENO" 5
7956 elif test "x$withval" != "xyes"; then
7957 if test -d "$withval/lib"; then
7958 if test -n "${need_dash_r}"; then
7959 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
7961 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
7964 if test -n "${need_dash_r}"; then
7965 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
7967 LDFLAGS="-L${withval} ${LDFLAGS}"
7970 if test -d "$withval/include"; then
7971 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
7973 CPPFLAGS="-I${withval} ${CPPFLAGS}"
7980 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7981 if test "x$ac_cv_header_zlib_h" = x""yes; then :
7984 as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
7989 $as_echo_n "checking for deflate in -lz... " >&6; }
7990 if test "${ac_cv_lib_z_deflate+set}" = set; then :
7991 $as_echo_n "(cached) " >&6
7993 ac_check_lib_save_LIBS=$LIBS
7995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h. */
7998 /* Override any GCC internal prototype to avoid an error.
7999 Use char because int might match the return type of a GCC
8000 builtin and then its argument prototype would still apply. */
8013 if ac_fn_c_try_link "$LINENO"; then :
8014 ac_cv_lib_z_deflate=yes
8016 ac_cv_lib_z_deflate=no
8018 rm -f core conftest.err conftest.$ac_objext \
8019 conftest$ac_exeext conftest.$ac_ext
8020 LIBS=$ac_check_lib_save_LIBS
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
8023 $as_echo "$ac_cv_lib_z_deflate" >&6; }
8024 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
8025 cat >>confdefs.h <<_ACEOF
8033 saved_CPPFLAGS="$CPPFLAGS"
8034 saved_LDFLAGS="$LDFLAGS"
8036 if test -n "${need_dash_r}"; then
8037 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
8039 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
8041 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044 /* end confdefs.h. */
8046 /* Override any GCC internal prototype to avoid an error.
8047 Use char because int might match the return type of a GCC
8048 builtin and then its argument prototype would still apply. */
8061 if ac_fn_c_try_link "$LINENO"; then :
8062 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
8066 as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5
8070 rm -f core conftest.err conftest.$ac_objext \
8071 conftest$ac_exeext conftest.$ac_ext
8078 # Check whether --with-zlib-version-check was given.
8079 if test "${with_zlib_version_check+set}" = set; then :
8080 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
8081 zlib_check_nonfatal=1
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5
8089 $as_echo_n "checking for possibly buggy zlib... " >&6; }
8090 if test "$cross_compiling" = yes; then :
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5
8092 $as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
8095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8096 /* end confdefs.h. */
8105 int a=0, b=0, c=0, d=0, n, v;
8106 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
8107 if (n != 3 && n != 4)
8109 v = a*1000000 + b*10000 + c*100 + d;
8110 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
8113 if (a == 1 && b == 1 && c >= 4)
8116 /* 1.2.3 and up are OK */
8126 if ac_fn_c_try_run "$LINENO"; then :
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8128 $as_echo "no" >&6; }
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8131 $as_echo "yes" >&6; }
8132 if test -z "$zlib_check_nonfatal" ; then
8133 as_fn_error $? "*** zlib too old - check config.log ***
8134 Your reported zlib version has known security problems. It's possible your
8135 vendor has fixed these problems without changing the version number. If you
8136 are sure this is the case, you can disable the check by running
8137 \"./configure --without-zlib-version-check\".
8138 If you are in doubt, upgrade zlib to version 1.2.3 or greater.
8139 See http://www.gzip.org/zlib/ for details." "$LINENO" 5
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5
8142 $as_echo "$as_me: WARNING: zlib version may have security problems" >&2;}
8146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8147 conftest.$ac_objext conftest.beam conftest.$ac_ext
8151 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
8152 if test "x$ac_cv_func_strcasecmp" = x""yes; then :
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5
8156 $as_echo_n "checking for strcasecmp in -lresolv... " >&6; }
8157 if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then :
8158 $as_echo_n "(cached) " >&6
8160 ac_check_lib_save_LIBS=$LIBS
8161 LIBS="-lresolv $LIBS"
8162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8163 /* end confdefs.h. */
8165 /* Override any GCC internal prototype to avoid an error.
8166 Use char because int might match the return type of a GCC
8167 builtin and then its argument prototype would still apply. */
8175 return strcasecmp ();
8180 if ac_fn_c_try_link "$LINENO"; then :
8181 ac_cv_lib_resolv_strcasecmp=yes
8183 ac_cv_lib_resolv_strcasecmp=no
8185 rm -f core conftest.err conftest.$ac_objext \
8186 conftest$ac_exeext conftest.$ac_ext
8187 LIBS=$ac_check_lib_save_LIBS
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5
8190 $as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; }
8191 if test "x$ac_cv_lib_resolv_strcasecmp" = x""yes; then :
8192 LIBS="$LIBS -lresolv"
8198 for ac_func in utimes
8200 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
8201 if test "x$ac_cv_func_utimes" = x""yes; then :
8202 cat >>confdefs.h <<_ACEOF
8203 #define HAVE_UTIMES 1
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5
8208 $as_echo_n "checking for utimes in -lc89... " >&6; }
8209 if test "${ac_cv_lib_c89_utimes+set}" = set; then :
8210 $as_echo_n "(cached) " >&6
8212 ac_check_lib_save_LIBS=$LIBS
8214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h. */
8217 /* Override any GCC internal prototype to avoid an error.
8218 Use char because int might match the return type of a GCC
8219 builtin and then its argument prototype would still apply. */
8232 if ac_fn_c_try_link "$LINENO"; then :
8233 ac_cv_lib_c89_utimes=yes
8235 ac_cv_lib_c89_utimes=no
8237 rm -f core conftest.err conftest.$ac_objext \
8238 conftest$ac_exeext conftest.$ac_ext
8239 LIBS=$ac_check_lib_save_LIBS
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5
8242 $as_echo "$ac_cv_lib_c89_utimes" >&6; }
8243 if test "x$ac_cv_lib_c89_utimes" = x""yes; then :
8244 $as_echo "#define HAVE_UTIMES 1" >>confdefs.h
8254 for ac_header in libutil.h
8256 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
8257 if test "x$ac_cv_header_libutil_h" = x""yes; then :
8258 cat >>confdefs.h <<_ACEOF
8259 #define HAVE_LIBUTIL_H 1
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5
8267 $as_echo_n "checking for library containing login... " >&6; }
8268 if test "${ac_cv_search_login+set}" = set; then :
8269 $as_echo_n "(cached) " >&6
8271 ac_func_search_save_LIBS=$LIBS
8272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273 /* end confdefs.h. */
8275 /* Override any GCC internal prototype to avoid an error.
8276 Use char because int might match the return type of a GCC
8277 builtin and then its argument prototype would still apply. */
8290 for ac_lib in '' util bsd; do
8291 if test -z "$ac_lib"; then
8292 ac_res="none required"
8295 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8297 if ac_fn_c_try_link "$LINENO"; then :
8298 ac_cv_search_login=$ac_res
8300 rm -f core conftest.err conftest.$ac_objext \
8302 if test "${ac_cv_search_login+set}" = set; then :
8306 if test "${ac_cv_search_login+set}" = set; then :
8309 ac_cv_search_login=no
8312 LIBS=$ac_func_search_save_LIBS
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5
8315 $as_echo "$ac_cv_search_login" >&6; }
8316 ac_res=$ac_cv_search_login
8317 if test "$ac_res" != no; then :
8318 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8320 $as_echo "#define HAVE_LOGIN 1" >>confdefs.h
8324 for ac_func in fmt_scaled logout updwtmp logwtmp
8326 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8327 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8328 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8329 cat >>confdefs.h <<_ACEOF
8330 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8337 for ac_func in strftime
8339 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
8340 if test "x$ac_cv_func_strftime" = x""yes; then :
8341 cat >>confdefs.h <<_ACEOF
8342 #define HAVE_STRFTIME 1
8346 # strftime is in -lintl on SCO UNIX.
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
8348 $as_echo_n "checking for strftime in -lintl... " >&6; }
8349 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
8350 $as_echo_n "(cached) " >&6
8352 ac_check_lib_save_LIBS=$LIBS
8354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8355 /* end confdefs.h. */
8357 /* Override any GCC internal prototype to avoid an error.
8358 Use char because int might match the return type of a GCC
8359 builtin and then its argument prototype would still apply. */
8372 if ac_fn_c_try_link "$LINENO"; then :
8373 ac_cv_lib_intl_strftime=yes
8375 ac_cv_lib_intl_strftime=no
8377 rm -f core conftest.err conftest.$ac_objext \
8378 conftest$ac_exeext conftest.$ac_ext
8379 LIBS=$ac_check_lib_save_LIBS
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
8382 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
8383 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
8384 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
8393 # Check for ALTDIRFUNC glob() extension
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5
8395 $as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; }
8396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8397 /* end confdefs.h. */
8400 #ifdef GLOB_ALTDIRFUNC
8405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8406 $EGREP "FOUNDIT" >/dev/null 2>&1; then :
8409 $as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8412 $as_echo "yes" >&6; }
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }
8424 # Check for g.gl_matchc glob() extension
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5
8426 $as_echo_n "checking for gl_matchc field in glob_t... " >&6; }
8427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8428 /* end confdefs.h. */
8433 glob_t g; g.gl_matchc = 1;
8438 if ac_fn_c_try_compile "$LINENO"; then :
8441 $as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8444 $as_echo "yes" >&6; }
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8449 $as_echo "no" >&6; }
8452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8454 # Check for g.gl_statv glob() extension
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5
8456 $as_echo_n "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... " >&6; }
8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458 /* end confdefs.h. */
8464 #ifndef GLOB_KEEPSTAT
8465 #error "glob does not support GLOB_KEEPSTAT extension"
8474 if ac_fn_c_try_compile "$LINENO"; then :
8477 $as_echo "#define GLOB_HAS_GL_STATV 1" >>confdefs.h
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8480 $as_echo "yes" >&6; }
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8485 $as_echo "no" >&6; }
8489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8491 ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h>
8493 if test "x$ac_cv_have_decl_GLOB_NOMATCH" = x""yes; then :
8499 cat >>confdefs.h <<_ACEOF
8500 #define HAVE_DECL_GLOB_NOMATCH $ac_have_decl
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5
8505 $as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; }
8506 if test "$cross_compiling" = yes; then :
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
8509 $as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
8510 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
8515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8516 /* end confdefs.h. */
8518 #include <sys/types.h>
8525 exit(sizeof(d.d_name)<=sizeof(char));
8531 if ac_fn_c_try_run "$LINENO"; then :
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8533 $as_echo "yes" >&6; }
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 $as_echo "no" >&6; }
8539 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
8543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8544 conftest.$ac_objext conftest.beam conftest.$ac_ext
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5
8549 $as_echo_n "checking for /proc/pid/fd directory... " >&6; }
8550 if test -d "/proc/$$/fd" ; then
8552 $as_echo "#define HAVE_PROC_PID 1" >>confdefs.h
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8555 $as_echo "yes" >&6; }
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8558 $as_echo "no" >&6; }
8561 # Check whether user wants S/Key support
8564 # Check whether --with-skey was given.
8565 if test "${with_skey+set}" = set; then :
8567 if test "x$withval" != "xno" ; then
8569 if test "x$withval" != "xyes" ; then
8570 CPPFLAGS="$CPPFLAGS -I${withval}/include"
8571 LDFLAGS="$LDFLAGS -L${withval}/lib"
8575 $as_echo "#define SKEY 1" >>confdefs.h
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for s/key support" >&5
8581 $as_echo_n "checking for s/key support... " >&6; }
8582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8583 /* end confdefs.h. */
8592 char *ff = skey_keyinfo(""); ff="";
8599 if ac_fn_c_try_link "$LINENO"; then :
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8601 $as_echo "yes" >&6; }
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8605 $as_echo "no" >&6; }
8606 as_fn_error $? "** Incomplete or missing s/key libraries." "$LINENO" 5
8609 rm -f core conftest.err conftest.$ac_objext \
8610 conftest$ac_exeext conftest.$ac_ext
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if skeychallenge takes 4 arguments" >&5
8612 $as_echo_n "checking if skeychallenge takes 4 arguments... " >&6; }
8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614 /* end confdefs.h. */
8623 (void)skeychallenge(NULL,"name","",0);
8629 if ac_fn_c_try_compile "$LINENO"; then :
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8632 $as_echo "yes" >&6; }
8634 $as_echo "#define SKEYCHALLENGE_4ARG 1" >>confdefs.h
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8639 $as_echo "no" >&6; }
8642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8649 # Check whether user wants TCP wrappers support
8652 # Check whether --with-tcp-wrappers was given.
8653 if test "${with_tcp_wrappers+set}" = set; then :
8654 withval=$with_tcp_wrappers;
8655 if test "x$withval" != "xno" ; then
8657 saved_LDFLAGS="$LDFLAGS"
8658 saved_CPPFLAGS="$CPPFLAGS"
8659 if test -n "${withval}" && \
8660 test "x${withval}" != "xyes"; then
8661 if test -d "${withval}/lib"; then
8662 if test -n "${need_dash_r}"; then
8663 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8665 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8668 if test -n "${need_dash_r}"; then
8669 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8671 LDFLAGS="-L${withval} ${LDFLAGS}"
8674 if test -d "${withval}/include"; then
8675 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8677 CPPFLAGS="-I${withval} ${CPPFLAGS}"
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
8682 $as_echo_n "checking for libwrap... " >&6; }
8683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684 /* end confdefs.h. */
8686 #include <sys/types.h>
8687 #include <sys/socket.h>
8688 #include <netinet/in.h>
8690 int deny_severity = 0, allow_severity = 0;
8702 if ac_fn_c_try_link "$LINENO"; then :
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8705 $as_echo "yes" >&6; }
8707 $as_echo "#define LIBWRAP 1" >>confdefs.h
8709 SSHDLIBS="$SSHDLIBS -lwrap"
8714 as_fn_error $? "*** libwrap missing" "$LINENO" 5
8718 rm -f core conftest.err conftest.$ac_objext \
8719 conftest$ac_exeext conftest.$ac_ext
8727 # Check whether user wants libedit support
8730 # Check whether --with-libedit was given.
8731 if test "${with_libedit+set}" = set; then :
8732 withval=$with_libedit; if test "x$withval" != "xno" ; then
8733 if test "x$withval" = "xyes" ; then
8734 # Extract the first word of "pkg-config", so it can be a program name with args.
8735 set dummy pkg-config; ac_word=$2
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8737 $as_echo_n "checking for $ac_word... " >&6; }
8738 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
8739 $as_echo_n "(cached) " >&6
8743 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
8746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8750 test -z "$as_dir" && as_dir=.
8751 for ac_exec_ext in '' $ac_executable_extensions; do
8752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8753 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
8754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8761 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
8765 PKGCONFIG=$ac_cv_path_PKGCONFIG
8766 if test -n "$PKGCONFIG"; then
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
8768 $as_echo "$PKGCONFIG" >&6; }
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8771 $as_echo "no" >&6; }
8775 if test "x$PKGCONFIG" != "xno"; then
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5
8777 $as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; }
8778 if "$PKGCONFIG" libedit; then
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8780 $as_echo "yes" >&6; }
8781 use_pkgconfig_for_libedit=yes
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8784 $as_echo "no" >&6; }
8788 CPPFLAGS="$CPPFLAGS -I${withval}/include"
8789 if test -n "${need_dash_r}"; then
8790 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8792 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8795 if test "x$use_pkgconfig_for_libedit" = "xyes"; then
8796 LIBEDIT=`$PKGCONFIG --libs-only-l libedit`
8797 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
8799 LIBEDIT="-ledit -lcurses"
8801 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5
8803 $as_echo_n "checking for el_init in -ledit... " >&6; }
8804 if test "${ac_cv_lib_edit_el_init+set}" = set; then :
8805 $as_echo_n "(cached) " >&6
8807 ac_check_lib_save_LIBS=$LIBS
8808 LIBS="-ledit $OTHERLIBS
8810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8811 /* end confdefs.h. */
8813 /* Override any GCC internal prototype to avoid an error.
8814 Use char because int might match the return type of a GCC
8815 builtin and then its argument prototype would still apply. */
8828 if ac_fn_c_try_link "$LINENO"; then :
8829 ac_cv_lib_edit_el_init=yes
8831 ac_cv_lib_edit_el_init=no
8833 rm -f core conftest.err conftest.$ac_objext \
8834 conftest$ac_exeext conftest.$ac_ext
8835 LIBS=$ac_check_lib_save_LIBS
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5
8838 $as_echo "$ac_cv_lib_edit_el_init" >&6; }
8839 if test "x$ac_cv_lib_edit_el_init" = x""yes; then :
8841 $as_echo "#define USE_LIBEDIT 1" >>confdefs.h
8847 as_fn_error $? "libedit not found" "$LINENO" 5
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5
8851 $as_echo_n "checking if libedit version is compatible... " >&6; }
8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853 /* end confdefs.h. */
8854 #include <histedit.h>
8860 el_init("", NULL, NULL, NULL);
8867 if ac_fn_c_try_compile "$LINENO"; then :
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8869 $as_echo "yes" >&6; }
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8872 $as_echo "no" >&6; }
8873 as_fn_error $? "libedit version is not compatible" "$LINENO" 5
8876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8884 # Check whether --with-audit was given.
8885 if test "${with_audit+set}" = set; then :
8886 withval=$with_audit;
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5
8888 $as_echo_n "checking for supported audit module... " >&6; }
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5
8892 $as_echo "bsm" >&6; }
8894 for ac_header in bsm/audit.h
8896 ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" "
8903 if test "x$ac_cv_header_bsm_audit_h" = x""yes; then :
8904 cat >>confdefs.h <<_ACEOF
8905 #define HAVE_BSM_AUDIT_H 1
8909 as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5
8915 $as_echo_n "checking for getaudit in -lbsm... " >&6; }
8916 if test "${ac_cv_lib_bsm_getaudit+set}" = set; then :
8917 $as_echo_n "(cached) " >&6
8919 ac_check_lib_save_LIBS=$LIBS
8921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8922 /* end confdefs.h. */
8924 /* Override any GCC internal prototype to avoid an error.
8925 Use char because int might match the return type of a GCC
8926 builtin and then its argument prototype would still apply. */
8939 if ac_fn_c_try_link "$LINENO"; then :
8940 ac_cv_lib_bsm_getaudit=yes
8942 ac_cv_lib_bsm_getaudit=no
8944 rm -f core conftest.err conftest.$ac_objext \
8945 conftest$ac_exeext conftest.$ac_ext
8946 LIBS=$ac_check_lib_save_LIBS
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5
8949 $as_echo "$ac_cv_lib_bsm_getaudit" >&6; }
8950 if test "x$ac_cv_lib_bsm_getaudit" = x""yes; then :
8951 cat >>confdefs.h <<_ACEOF
8952 #define HAVE_LIBBSM 1
8958 as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5
8961 for ac_func in getaudit
8963 ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit"
8964 if test "x$ac_cv_func_getaudit" = x""yes; then :
8965 cat >>confdefs.h <<_ACEOF
8966 #define HAVE_GETAUDIT 1
8970 as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5
8974 # These are optional
8975 for ac_func in getaudit_addr aug_get_machine
8977 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8978 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8979 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8980 cat >>confdefs.h <<_ACEOF
8981 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8988 $as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5
8993 $as_echo "linux" >&6; }
8995 for ac_header in libaudit.h
8997 ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
8998 if test "x$ac_cv_header_libaudit_h" = x""yes; then :
8999 cat >>confdefs.h <<_ACEOF
9000 #define HAVE_LIBAUDIT_H 1
9007 SSHDLIBS="$SSHDLIBS -laudit"
9009 $as_echo "#define USE_LINUX_AUDIT 1" >>confdefs.h
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
9015 $as_echo "debug" >&6; }
9017 $as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9022 $as_echo "no" >&6; }
9025 as_fn_error $? "Unknown audit module $withval" "$LINENO" 5
9035 arc4random_uniform \
9130 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9131 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9132 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9133 cat >>confdefs.h <<_ACEOF
9134 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9142 /* end confdefs.h. */
9147 return (isblank('a'));
9152 if ac_fn_c_try_link "$LINENO"; then :
9154 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
9158 rm -f core conftest.err conftest.$ac_objext \
9159 conftest$ac_exeext conftest.$ac_ext
9161 # PKCS#11 support requires dlopen() and co
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9163 $as_echo_n "checking for library containing dlopen... " >&6; }
9164 if test "${ac_cv_search_dlopen+set}" = set; then :
9165 $as_echo_n "(cached) " >&6
9167 ac_func_search_save_LIBS=$LIBS
9168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9169 /* end confdefs.h. */
9171 /* Override any GCC internal prototype to avoid an error.
9172 Use char because int might match the return type of a GCC
9173 builtin and then its argument prototype would still apply. */
9186 for ac_lib in '' dl; do
9187 if test -z "$ac_lib"; then
9188 ac_res="none required"
9191 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9193 if ac_fn_c_try_link "$LINENO"; then :
9194 ac_cv_search_dlopen=$ac_res
9196 rm -f core conftest.err conftest.$ac_objext \
9198 if test "${ac_cv_search_dlopen+set}" = set; then :
9202 if test "${ac_cv_search_dlopen+set}" = set; then :
9205 ac_cv_search_dlopen=no
9208 LIBS=$ac_func_search_save_LIBS
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9211 $as_echo "$ac_cv_search_dlopen" >&6; }
9212 ac_res=$ac_cv_search_dlopen
9213 if test "$ac_res" != no; then :
9214 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9216 $as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h
9222 # IRIX has a const char return value for gai_strerror()
9223 for ac_func in gai_strerror
9225 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
9226 if test "x$ac_cv_func_gai_strerror" = x""yes; then :
9227 cat >>confdefs.h <<_ACEOF
9228 #define HAVE_GAI_STRERROR 1
9231 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
9233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9234 /* end confdefs.h. */
9236 #include <sys/types.h>
9237 #include <sys/socket.h>
9240 const char *gai_strerror(int);
9247 str = gai_strerror(0);
9253 if ac_fn_c_try_compile "$LINENO"; then :
9256 $as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h
9259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
9265 $as_echo_n "checking for library containing nanosleep... " >&6; }
9266 if test "${ac_cv_search_nanosleep+set}" = set; then :
9267 $as_echo_n "(cached) " >&6
9269 ac_func_search_save_LIBS=$LIBS
9270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9271 /* end confdefs.h. */
9273 /* Override any GCC internal prototype to avoid an error.
9274 Use char because int might match the return type of a GCC
9275 builtin and then its argument prototype would still apply. */
9283 return nanosleep ();
9288 for ac_lib in '' rt posix4; do
9289 if test -z "$ac_lib"; then
9290 ac_res="none required"
9293 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9295 if ac_fn_c_try_link "$LINENO"; then :
9296 ac_cv_search_nanosleep=$ac_res
9298 rm -f core conftest.err conftest.$ac_objext \
9300 if test "${ac_cv_search_nanosleep+set}" = set; then :
9304 if test "${ac_cv_search_nanosleep+set}" = set; then :
9307 ac_cv_search_nanosleep=no
9310 LIBS=$ac_func_search_save_LIBS
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
9313 $as_echo "$ac_cv_search_nanosleep" >&6; }
9314 ac_res=$ac_cv_search_nanosleep
9315 if test "$ac_res" != no; then :
9316 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9318 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
9323 ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default"
9324 if test "x$ac_cv_have_decl_getrusage" = x""yes; then :
9325 for ac_func in getrusage
9327 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
9328 if test "x$ac_cv_func_getrusage" = x""yes; then :
9329 cat >>confdefs.h <<_ACEOF
9330 #define HAVE_GETRUSAGE 1
9338 ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "
9339 #ifdef HAVE_STRING_H
9340 # include <string.h>
9344 if test "x$ac_cv_have_decl_strsep" = x""yes; then :
9345 for ac_func in strsep
9347 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
9348 if test "x$ac_cv_func_strsep" = x""yes; then :
9349 cat >>confdefs.h <<_ACEOF
9350 #define HAVE_STRSEP 1
9359 ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h>
9362 if test "x$ac_cv_have_decl_tcsendbreak" = x""yes; then :
9363 $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h
9366 for ac_func in tcsendbreak
9368 ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak"
9369 if test "x$ac_cv_func_tcsendbreak" = x""yes; then :
9370 cat >>confdefs.h <<_ACEOF
9371 #define HAVE_TCSENDBREAK 1
9380 ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h>
9382 if test "x$ac_cv_have_decl_h_errno" = x""yes; then :
9388 cat >>confdefs.h <<_ACEOF
9389 #define HAVE_DECL_H_ERRNO $ac_have_decl
9393 ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" "
9394 #include <sys/types.h>
9395 #include <sys/socket.h>
9398 if test "x$ac_cv_have_decl_SHUT_RD" = x""yes; then :
9404 cat >>confdefs.h <<_ACEOF
9405 #define HAVE_DECL_SHUT_RD $ac_have_decl
9409 ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "
9410 #include <sys/types.h>
9411 #ifdef HAVE_SYS_STAT_H
9412 # include <sys/stat.h>
9419 if test "x$ac_cv_have_decl_O_NONBLOCK" = x""yes; then :
9425 cat >>confdefs.h <<_ACEOF
9426 #define HAVE_DECL_O_NONBLOCK $ac_have_decl
9430 ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" "
9431 #include <sys/types.h>
9432 #include <sys/uio.h>
9436 if test "x$ac_cv_have_decl_writev" = x""yes; then :
9442 cat >>confdefs.h <<_ACEOF
9443 #define HAVE_DECL_WRITEV $ac_have_decl
9447 ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" "
9448 #include <sys/param.h>
9451 if test "x$ac_cv_have_decl_MAXSYMLINKS" = x""yes; then :
9457 cat >>confdefs.h <<_ACEOF
9458 #define HAVE_DECL_MAXSYMLINKS $ac_have_decl
9462 ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" "
9466 if test "x$ac_cv_have_decl_offsetof" = x""yes; then :
9472 cat >>confdefs.h <<_ACEOF
9473 #define HAVE_DECL_OFFSETOF $ac_have_decl
9477 for ac_func in setresuid
9479 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
9480 if test "x$ac_cv_func_setresuid" = x""yes; then :
9481 cat >>confdefs.h <<_ACEOF
9482 #define HAVE_SETRESUID 1
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5
9486 $as_echo_n "checking if setresuid seems to work... " >&6; }
9487 if test "$cross_compiling" = yes; then :
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
9489 $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
9492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9493 /* end confdefs.h. */
9513 if ac_fn_c_try_run "$LINENO"; then :
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9515 $as_echo "yes" >&6; }
9518 $as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
9521 $as_echo "not implemented" >&6; }
9523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9524 conftest.$ac_objext conftest.beam conftest.$ac_ext
9532 for ac_func in setresgid
9534 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
9535 if test "x$ac_cv_func_setresgid" = x""yes; then :
9536 cat >>confdefs.h <<_ACEOF
9537 #define HAVE_SETRESGID 1
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5
9541 $as_echo_n "checking if setresgid seems to work... " >&6; }
9542 if test "$cross_compiling" = yes; then :
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
9544 $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
9547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9548 /* end confdefs.h. */
9568 if ac_fn_c_try_run "$LINENO"; then :
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9570 $as_echo "yes" >&6; }
9573 $as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
9576 $as_echo "not implemented" >&6; }
9578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9579 conftest.$ac_objext conftest.beam conftest.$ac_ext
9587 for ac_func in gettimeofday time
9589 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9590 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9591 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9592 cat >>confdefs.h <<_ACEOF
9593 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9599 for ac_func in endutent getutent getutid getutline pututline setutent
9601 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9602 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9603 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9604 cat >>confdefs.h <<_ACEOF
9605 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9611 for ac_func in utmpname
9613 ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname"
9614 if test "x$ac_cv_func_utmpname" = x""yes; then :
9615 cat >>confdefs.h <<_ACEOF
9616 #define HAVE_UTMPNAME 1
9622 for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline
9624 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9625 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9626 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9627 cat >>confdefs.h <<_ACEOF
9628 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9634 for ac_func in setutxdb setutxent utmpxname
9636 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9637 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9638 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9639 cat >>confdefs.h <<_ACEOF
9640 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9646 for ac_func in getlastlogxbyname
9648 ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname"
9649 if test "x$ac_cv_func_getlastlogxbyname" = x""yes; then :
9650 cat >>confdefs.h <<_ACEOF
9651 #define HAVE_GETLASTLOGXBYNAME 1
9658 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
9659 if test "x$ac_cv_func_daemon" = x""yes; then :
9661 $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5
9665 $as_echo_n "checking for daemon in -lbsd... " >&6; }
9666 if test "${ac_cv_lib_bsd_daemon+set}" = set; then :
9667 $as_echo_n "(cached) " >&6
9669 ac_check_lib_save_LIBS=$LIBS
9671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672 /* end confdefs.h. */
9674 /* Override any GCC internal prototype to avoid an error.
9675 Use char because int might match the return type of a GCC
9676 builtin and then its argument prototype would still apply. */
9689 if ac_fn_c_try_link "$LINENO"; then :
9690 ac_cv_lib_bsd_daemon=yes
9692 ac_cv_lib_bsd_daemon=no
9694 rm -f core conftest.err conftest.$ac_objext \
9695 conftest$ac_exeext conftest.$ac_ext
9696 LIBS=$ac_check_lib_save_LIBS
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5
9699 $as_echo "$ac_cv_lib_bsd_daemon" >&6; }
9700 if test "x$ac_cv_lib_bsd_daemon" = x""yes; then :
9701 LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
9709 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9710 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9712 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5
9716 $as_echo_n "checking for getpagesize in -lucb... " >&6; }
9717 if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then :
9718 $as_echo_n "(cached) " >&6
9720 ac_check_lib_save_LIBS=$LIBS
9722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9723 /* end confdefs.h. */
9725 /* Override any GCC internal prototype to avoid an error.
9726 Use char because int might match the return type of a GCC
9727 builtin and then its argument prototype would still apply. */
9731 char getpagesize ();
9735 return getpagesize ();
9740 if ac_fn_c_try_link "$LINENO"; then :
9741 ac_cv_lib_ucb_getpagesize=yes
9743 ac_cv_lib_ucb_getpagesize=no
9745 rm -f core conftest.err conftest.$ac_objext \
9746 conftest$ac_exeext conftest.$ac_ext
9747 LIBS=$ac_check_lib_save_LIBS
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5
9750 $as_echo "$ac_cv_lib_ucb_getpagesize" >&6; }
9751 if test "x$ac_cv_lib_ucb_getpagesize" = x""yes; then :
9752 LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
9760 # Check for broken snprintf
9761 if test "x$ac_cv_func_snprintf" = "xyes" ; then
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5
9763 $as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; }
9764 if test "$cross_compiling" = yes; then :
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
9766 $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
9769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9770 /* end confdefs.h. */
9777 snprintf(b,5,"123456789");
9784 if ac_fn_c_try_run "$LINENO"; then :
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9786 $as_echo "yes" >&6; }
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9790 $as_echo "no" >&6; }
9792 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
9795 $as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
9798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9799 conftest.$ac_objext conftest.beam conftest.$ac_ext
9804 # If we don't have a working asprintf, then we strongly depend on vsnprintf
9805 # returning the right thing on overflow: the number of characters it tried to
9806 # create (as per SUSv3)
9807 if test "x$ac_cv_func_asprintf" != "xyes" && \
9808 test "x$ac_cv_func_vsnprintf" = "xyes" ; then
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5
9810 $as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; }
9811 if test "$cross_compiling" = yes; then :
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5
9813 $as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
9816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h. */
9819 #include <sys/types.h>
9823 int x_snprintf(char *str,size_t count,const char *fmt,...)
9825 size_t ret; va_list ap;
9826 va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap);
9835 exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1);
9841 if ac_fn_c_try_run "$LINENO"; then :
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9843 $as_echo "yes" >&6; }
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9847 $as_echo "no" >&6; }
9849 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
9852 $as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
9855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9856 conftest.$ac_objext conftest.beam conftest.$ac_ext
9861 # On systems where [v]snprintf is broken, but is declared in stdio,
9862 # check that the fmt argument is const char * or just char *.
9863 # This is only useful for when BROKEN_SNPRINTF
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5
9865 $as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; }
9866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867 /* end confdefs.h. */
9870 int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
9882 if ac_fn_c_try_compile "$LINENO"; then :
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9884 $as_echo "yes" >&6; }
9886 $as_echo "#define SNPRINTF_CONST const" >>confdefs.h
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9890 $as_echo "no" >&6; }
9891 $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h
9894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9896 # Check for missing getpeereid (or equiv) support
9898 if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5
9900 $as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; }
9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902 /* end confdefs.h. */
9904 #include <sys/types.h>
9905 #include <sys/socket.h>
9909 int i = SO_PEERCRED;
9914 if ac_fn_c_try_compile "$LINENO"; then :
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9916 $as_echo "yes" >&6; }
9918 $as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9923 $as_echo "no" >&6; }
9927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9930 if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5
9932 $as_echo_n "checking for (overly) strict mkstemp... " >&6; }
9933 if test "$cross_compiling" = yes; then :
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9936 $as_echo "yes" >&6; }
9937 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
9942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9943 /* end confdefs.h. */
9951 char template[]="conftest.mkstemp-test";
9952 if (mkstemp(template) == -1)
9961 if ac_fn_c_try_run "$LINENO"; then :
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9964 $as_echo "no" >&6; }
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9969 $as_echo "yes" >&6; }
9971 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
9975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9976 conftest.$ac_objext conftest.beam conftest.$ac_ext
9981 if test ! -z "$check_for_openpty_ctty_bug"; then
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5
9983 $as_echo_n "checking if openpty correctly handles controlling tty... " >&6; }
9984 if test "$cross_compiling" = yes; then :
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
9987 $as_echo "cross-compiling, assuming yes" >&6; }
9991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9992 /* end confdefs.h. */
9995 #include <sys/fcntl.h>
9996 #include <sys/types.h>
9997 #include <sys/wait.h>
10004 int fd, ptyfd, ttyfd, status;
10007 if (pid < 0) { /* failed */
10009 } else if (pid > 0) { /* parent */
10010 waitpid(pid, &status, 0);
10011 if (WIFEXITED(status))
10012 exit(WEXITSTATUS(status));
10015 } else { /* child */
10016 close(0); close(1); close(2);
10018 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
10019 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
10021 exit(3); /* Acquired ctty: broken */
10023 exit(0); /* Did not acquire ctty: OK */
10030 if ac_fn_c_try_run "$LINENO"; then :
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10033 $as_echo "yes" >&6; }
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10038 $as_echo "no" >&6; }
10039 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
10043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10044 conftest.$ac_objext conftest.beam conftest.$ac_ext
10049 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
10050 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
10052 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
10053 if test "$cross_compiling" = yes; then :
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
10056 $as_echo "cross-compiling, assuming yes" >&6; }
10060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10061 /* end confdefs.h. */
10064 #include <sys/socket.h>
10067 #include <netinet/in.h>
10069 #define TEST_PORT "2222"
10076 struct addrinfo *gai_ai, *ai, hints;
10077 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
10079 memset(&hints, 0, sizeof(hints));
10080 hints.ai_family = PF_UNSPEC;
10081 hints.ai_socktype = SOCK_STREAM;
10082 hints.ai_flags = AI_PASSIVE;
10084 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
10086 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
10090 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
10091 if (ai->ai_family != AF_INET6)
10094 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
10095 sizeof(ntop), strport, sizeof(strport),
10096 NI_NUMERICHOST|NI_NUMERICSERV);
10099 if (err == EAI_SYSTEM)
10100 perror("getnameinfo EAI_SYSTEM");
10102 fprintf(stderr, "getnameinfo failed: %s\n",
10103 gai_strerror(err));
10107 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
10110 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
10111 if (errno == EBADF)
10121 if ac_fn_c_try_run "$LINENO"; then :
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10124 $as_echo "yes" >&6; }
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10129 $as_echo "no" >&6; }
10130 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
10134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10135 conftest.$ac_objext conftest.beam conftest.$ac_ext
10140 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
10141 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
10143 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
10144 if test "$cross_compiling" = yes; then :
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming no" >&5
10147 $as_echo "cross-compiling, assuming no" >&6; }
10151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10152 /* end confdefs.h. */
10155 #include <sys/socket.h>
10158 #include <netinet/in.h>
10160 #define TEST_PORT "2222"
10167 struct addrinfo *gai_ai, *ai, hints;
10168 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
10170 memset(&hints, 0, sizeof(hints));
10171 hints.ai_family = PF_UNSPEC;
10172 hints.ai_socktype = SOCK_STREAM;
10173 hints.ai_flags = AI_PASSIVE;
10175 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
10177 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
10181 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
10182 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
10185 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
10186 sizeof(ntop), strport, sizeof(strport),
10187 NI_NUMERICHOST|NI_NUMERICSERV);
10189 if (ai->ai_family == AF_INET && err != 0) {
10190 perror("getnameinfo");
10200 if ac_fn_c_try_run "$LINENO"; then :
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10203 $as_echo "yes" >&6; }
10205 $as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10211 $as_echo "no" >&6; }
10212 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
10216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10217 conftest.$ac_objext conftest.beam conftest.$ac_ext
10222 if test "x$check_for_conflicting_getspnam" = "x1"; then
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5
10224 $as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; }
10225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10226 /* end confdefs.h. */
10227 #include <shadow.h>
10236 if ac_fn_c_try_compile "$LINENO"; then :
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10239 $as_echo "no" >&6; }
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10244 $as_echo "yes" >&6; }
10246 $as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h
10251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
10255 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
10256 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
10257 $as_echo_n "(cached) " >&6
10259 # Use it with a single arg.
10260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10261 /* end confdefs.h. */
10262 $ac_includes_default
10271 if ac_fn_c_try_compile "$LINENO"; then :
10272 ac_cv_func_getpgrp_void=no
10274 ac_cv_func_getpgrp_void=yes
10276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
10280 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
10281 if test $ac_cv_func_getpgrp_void = yes; then
10283 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
10288 # Search for OpenSSL
10289 saved_CPPFLAGS="$CPPFLAGS"
10290 saved_LDFLAGS="$LDFLAGS"
10292 # Check whether --with-ssl-dir was given.
10293 if test "${with_ssl_dir+set}" = set; then :
10294 withval=$with_ssl_dir;
10295 if test "x$withval" != "xno" ; then
10298 ./*|../*) withval="`pwd`/$withval"
10300 if test -d "$withval/lib"; then
10301 if test -n "${need_dash_r}"; then
10302 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
10304 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
10306 elif test -d "$withval/lib64"; then
10307 if test -n "${need_dash_r}"; then
10308 LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}"
10310 LDFLAGS="-L${withval}/lib64 ${LDFLAGS}"
10313 if test -n "${need_dash_r}"; then
10314 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
10316 LDFLAGS="-L${withval} ${LDFLAGS}"
10319 if test -d "$withval/include"; then
10320 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
10322 CPPFLAGS="-I${withval} ${CPPFLAGS}"
10329 LIBS="-lcrypto $LIBS"
10330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331 /* end confdefs.h. */
10333 /* Override any GCC internal prototype to avoid an error.
10334 Use char because int might match the return type of a GCC
10335 builtin and then its argument prototype would still apply. */
10343 return RAND_add ();
10348 if ac_fn_c_try_link "$LINENO"; then :
10350 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
10354 if test -n "${need_dash_r}"; then
10355 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
10357 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
10359 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
10360 ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
10361 if test "x$ac_cv_header_openssl_opensslv_h" = x""yes; then :
10364 as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5
10368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10369 /* end confdefs.h. */
10371 /* Override any GCC internal prototype to avoid an error.
10372 Use char because int might match the return type of a GCC
10373 builtin and then its argument prototype would still apply. */
10381 return RAND_add ();
10386 if ac_fn_c_try_link "$LINENO"; then :
10387 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
10391 as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5
10395 rm -f core conftest.err conftest.$ac_objext \
10396 conftest$ac_exeext conftest.$ac_ext
10400 rm -f core conftest.err conftest.$ac_objext \
10401 conftest$ac_exeext conftest.$ac_ext
10403 # Determine OpenSSL header version
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5
10405 $as_echo_n "checking OpenSSL header version... " >&6; }
10406 if test "$cross_compiling" = yes; then :
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
10409 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
10413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10414 /* end confdefs.h. */
10417 #include <string.h>
10418 #include <openssl/opensslv.h>
10419 #define DATA "conftest.sslincver"
10428 fd = fopen(DATA,"w");
10432 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
10441 if ac_fn_c_try_run "$LINENO"; then :
10443 ssl_header_ver=`cat conftest.sslincver`
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5
10445 $as_echo "$ssl_header_ver" >&6; }
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10450 $as_echo "not found" >&6; }
10451 as_fn_error $? "OpenSSL version header not found." "$LINENO" 5
10454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10455 conftest.$ac_objext conftest.beam conftest.$ac_ext
10459 # Determine OpenSSL library version
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5
10461 $as_echo_n "checking OpenSSL library version... " >&6; }
10462 if test "$cross_compiling" = yes; then :
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
10465 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
10469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10470 /* end confdefs.h. */
10473 #include <string.h>
10474 #include <openssl/opensslv.h>
10475 #include <openssl/crypto.h>
10476 #define DATA "conftest.ssllibver"
10485 fd = fopen(DATA,"w");
10489 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
10498 if ac_fn_c_try_run "$LINENO"; then :
10500 ssl_library_ver=`cat conftest.ssllibver`
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5
10502 $as_echo "$ssl_library_ver" >&6; }
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10507 $as_echo "not found" >&6; }
10508 as_fn_error $? "OpenSSL library not found." "$LINENO" 5
10511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10512 conftest.$ac_objext conftest.beam conftest.$ac_ext
10517 # Check whether --with-openssl-header-check was given.
10518 if test "${with_openssl_header_check+set}" = set; then :
10519 withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then
10520 openssl_check_nonfatal=1
10527 # Sanity check OpenSSL headers
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5
10529 $as_echo_n "checking whether OpenSSL's headers match the library... " >&6; }
10530 if test "$cross_compiling" = yes; then :
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
10533 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
10537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10538 /* end confdefs.h. */
10540 #include <string.h>
10541 #include <openssl/opensslv.h>
10547 exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1);
10553 if ac_fn_c_try_run "$LINENO"; then :
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10556 $as_echo "yes" >&6; }
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10561 $as_echo "no" >&6; }
10562 if test "x$openssl_check_nonfatal" = "x"; then
10563 as_fn_error $? "Your OpenSSL headers do not match your
10564 library. Check config.log for details.
10565 If you are sure your installation is consistent, you can disable the check
10566 by running \"./configure --without-openssl-header-check\".
10567 Also see contrib/findssl.sh for help identifying header/library mismatches.
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your
10571 library. Check config.log for details.
10572 Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
10573 $as_echo "$as_me: WARNING: Your OpenSSL headers do not match your
10574 library. Check config.log for details.
10575 Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
10579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10580 conftest.$ac_objext conftest.beam conftest.$ac_ext
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5
10585 $as_echo_n "checking if programs using OpenSSL functions will link... " >&6; }
10586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10587 /* end confdefs.h. */
10588 #include <openssl/evp.h>
10592 SSLeay_add_all_algorithms();
10597 if ac_fn_c_try_link "$LINENO"; then :
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10600 $as_echo "yes" >&6; }
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10605 $as_echo "no" >&6; }
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5
10609 $as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; }
10610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10611 /* end confdefs.h. */
10612 #include <openssl/evp.h>
10616 SSLeay_add_all_algorithms();
10621 if ac_fn_c_try_link "$LINENO"; then :
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10624 $as_echo "yes" >&6; }
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10629 $as_echo "no" >&6; }
10634 rm -f core conftest.err conftest.$ac_objext \
10635 conftest$ac_exeext conftest.$ac_ext
10639 rm -f core conftest.err conftest.$ac_objext \
10640 conftest$ac_exeext conftest.$ac_ext
10642 for ac_func in RSA_generate_key_ex DSA_generate_parameters_ex BN_is_prime_ex RSA_get_default_method
10644 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10645 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10646 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10647 cat >>confdefs.h <<_ACEOF
10648 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10656 # Check whether --with-ssl-engine was given.
10657 if test "${with_ssl_engine+set}" = set; then :
10658 withval=$with_ssl_engine; if test "x$withval" != "xno" ; then
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5
10660 $as_echo_n "checking for OpenSSL ENGINE support... " >&6; }
10661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10662 /* end confdefs.h. */
10664 #include <openssl/engine.h>
10670 ENGINE_load_builtin_engines();
10671 ENGINE_register_all_complete();
10677 if ac_fn_c_try_compile "$LINENO"; then :
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10679 $as_echo "yes" >&6; }
10681 $as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h
10685 as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5
10688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10694 # Check for OpenSSL without EVP_aes_{192,256}_cbc
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5
10696 $as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; }
10697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10698 /* end confdefs.h. */
10700 #include <string.h>
10701 #include <openssl/evp.h>
10707 exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);
10713 if ac_fn_c_try_link "$LINENO"; then :
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10716 $as_echo "no" >&6; }
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10721 $as_echo "yes" >&6; }
10723 $as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h
10728 rm -f core conftest.err conftest.$ac_objext \
10729 conftest$ac_exeext conftest.$ac_ext
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5
10732 $as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; }
10733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h. */
10736 #include <string.h>
10737 #include <openssl/evp.h>
10743 if(EVP_DigestUpdate(NULL, NULL,0))
10750 if ac_fn_c_try_link "$LINENO"; then :
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10753 $as_echo "yes" >&6; }
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10758 $as_echo "no" >&6; }
10760 $as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h
10765 rm -f core conftest.err conftest.$ac_objext \
10766 conftest$ac_exeext conftest.$ac_ext
10768 # Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
10769 # because the system crypt() is more featureful.
10770 if test "x$check_for_libcrypt_before" = "x1"; then
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
10772 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
10773 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
10774 $as_echo_n "(cached) " >&6
10776 ac_check_lib_save_LIBS=$LIBS
10777 LIBS="-lcrypt $LIBS"
10778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10779 /* end confdefs.h. */
10781 /* Override any GCC internal prototype to avoid an error.
10782 Use char because int might match the return type of a GCC
10783 builtin and then its argument prototype would still apply. */
10796 if ac_fn_c_try_link "$LINENO"; then :
10797 ac_cv_lib_crypt_crypt=yes
10799 ac_cv_lib_crypt_crypt=no
10801 rm -f core conftest.err conftest.$ac_objext \
10802 conftest$ac_exeext conftest.$ac_ext
10803 LIBS=$ac_check_lib_save_LIBS
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
10806 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
10807 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
10808 cat >>confdefs.h <<_ACEOF
10809 #define HAVE_LIBCRYPT 1
10812 LIBS="-lcrypt $LIBS"
10818 # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
10819 # version in OpenSSL.
10820 if test "x$check_for_libcrypt_later" = "x1"; then
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
10822 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
10823 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
10824 $as_echo_n "(cached) " >&6
10826 ac_check_lib_save_LIBS=$LIBS
10827 LIBS="-lcrypt $LIBS"
10828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10829 /* end confdefs.h. */
10831 /* Override any GCC internal prototype to avoid an error.
10832 Use char because int might match the return type of a GCC
10833 builtin and then its argument prototype would still apply. */
10846 if ac_fn_c_try_link "$LINENO"; then :
10847 ac_cv_lib_crypt_crypt=yes
10849 ac_cv_lib_crypt_crypt=no
10851 rm -f core conftest.err conftest.$ac_objext \
10852 conftest$ac_exeext conftest.$ac_ext
10853 LIBS=$ac_check_lib_save_LIBS
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
10856 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
10857 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
10858 LIBS="$LIBS -lcrypt"
10863 # Search for SHA256 support in libc and/or OpenSSL
10864 for ac_func in SHA256_Update EVP_sha256
10866 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10867 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10868 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10869 cat >>confdefs.h <<_ACEOF
10870 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10872 TEST_SSH_SHA256=yes
10880 # Check complete ECC support in OpenSSL
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has complete ECC support" >&5
10882 $as_echo_n "checking whether OpenSSL has complete ECC support... " >&6; }
10883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10884 /* end confdefs.h. */
10886 #include <openssl/ec.h>
10887 #include <openssl/ecdh.h>
10888 #include <openssl/ecdsa.h>
10889 #include <openssl/evp.h>
10890 #include <openssl/objects.h>
10891 #include <openssl/opensslv.h>
10892 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
10893 # error "OpenSSL < 0.9.8g has unreliable ECC code"
10900 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
10901 const EVP_MD *m = EVP_sha512(); /* We need this too */
10907 if ac_fn_c_try_link "$LINENO"; then :
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10910 $as_echo "yes" >&6; }
10912 $as_echo "#define OPENSSL_HAS_ECC 1" >>confdefs.h
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10920 $as_echo "no" >&6; }
10922 COMMENT_OUT_ECC="#no ecc#"
10926 rm -f core conftest.err conftest.$ac_objext \
10927 conftest$ac_exeext conftest.$ac_ext
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5
10933 $as_echo_n "checking for ia_openinfo in -liaf... " >&6; }
10934 if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then :
10935 $as_echo_n "(cached) " >&6
10937 ac_check_lib_save_LIBS=$LIBS
10939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940 /* end confdefs.h. */
10942 /* Override any GCC internal prototype to avoid an error.
10943 Use char because int might match the return type of a GCC
10944 builtin and then its argument prototype would still apply. */
10948 char ia_openinfo ();
10952 return ia_openinfo ();
10957 if ac_fn_c_try_link "$LINENO"; then :
10958 ac_cv_lib_iaf_ia_openinfo=yes
10960 ac_cv_lib_iaf_ia_openinfo=no
10962 rm -f core conftest.err conftest.$ac_objext \
10963 conftest$ac_exeext conftest.$ac_ext
10964 LIBS=$ac_check_lib_save_LIBS
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5
10967 $as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; }
10968 if test "x$ac_cv_lib_iaf_ia_openinfo" = x""yes; then :
10971 for ac_func in set_id
10973 ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id"
10974 if test "x$ac_cv_func_set_id" = x""yes; then :
10975 cat >>confdefs.h <<_ACEOF
10976 #define HAVE_SET_ID 1
10978 SSHDLIBS="$SSHDLIBS -liaf"
10980 $as_echo "#define HAVE_LIBIAF 1" >>confdefs.h
10991 ### Configure cryptographic random number support
10993 # Check wheter OpenSSL seeds itself
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5
10995 $as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; }
10996 if test "$cross_compiling" = yes; then :
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
10999 $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
11000 # This is safe, since we will fatal() at runtime if
11001 # OpenSSL is not seeded correctly.
11002 OPENSSL_SEEDS_ITSELF=yes
11006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007 /* end confdefs.h. */
11009 #include <string.h>
11010 #include <openssl/rand.h>
11016 exit(RAND_status() == 1 ? 0 : 1);
11022 if ac_fn_c_try_run "$LINENO"; then :
11024 OPENSSL_SEEDS_ITSELF=yes
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11026 $as_echo "yes" >&6; }
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11031 $as_echo "no" >&6; }
11034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11035 conftest.$ac_objext conftest.beam conftest.$ac_ext
11041 # Check whether --with-prngd-port was given.
11042 if test "${with_prngd_port+set}" = set; then :
11043 withval=$with_prngd_port;
11051 as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5
11054 if test ! -z "$withval" ; then
11055 PRNGD_PORT="$withval"
11057 cat >>confdefs.h <<_ACEOF
11058 #define PRNGD_PORT $PRNGD_PORT
11067 # PRNGD Unix domain socket
11069 # Check whether --with-prngd-socket was given.
11070 if test "${with_prngd_socket+set}" = set; then :
11071 withval=$with_prngd_socket;
11074 withval="/var/run/egd-pool"
11082 as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5
11086 if test ! -z "$withval" ; then
11087 if test ! -z "$PRNGD_PORT" ; then
11088 as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5
11090 if test ! -r "$withval" ; then
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5
11092 $as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
11094 PRNGD_SOCKET="$withval"
11096 cat >>confdefs.h <<_ACEOF
11097 #define PRNGD_SOCKET "$PRNGD_SOCKET"
11104 # Check for existing socket only if we don't have a random device already
11105 if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5
11107 $as_echo_n "checking for PRNGD/EGD socket... " >&6; }
11108 # Insert other locations here
11109 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
11110 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
11111 PRNGD_SOCKET="$sock"
11112 cat >>confdefs.h <<_ACEOF
11113 #define PRNGD_SOCKET "$PRNGD_SOCKET"
11119 if test ! -z "$PRNGD_SOCKET" ; then
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5
11121 $as_echo "$PRNGD_SOCKET" >&6; }
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11124 $as_echo "not found" >&6; }
11132 # Which randomness source do we use?
11133 if test ! -z "$PRNGD_PORT" ; then
11134 RAND_MSG="PRNGd port $PRNGD_PORT"
11135 elif test ! -z "$PRNGD_SOCKET" ; then
11136 RAND_MSG="PRNGd socket $PRNGD_SOCKET"
11137 elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then
11139 $as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h
11141 RAND_MSG="OpenSSL internal ONLY"
11143 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
11146 # Check for PAM libs
11149 # Check whether --with-pam was given.
11150 if test "${with_pam+set}" = set; then :
11152 if test "x$withval" != "xno" ; then
11153 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
11154 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
11155 as_fn_error $? "PAM headers not found" "$LINENO" 5
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11160 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11161 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11162 $as_echo_n "(cached) " >&6
11164 ac_check_lib_save_LIBS=$LIBS
11166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11167 /* end confdefs.h. */
11169 /* Override any GCC internal prototype to avoid an error.
11170 Use char because int might match the return type of a GCC
11171 builtin and then its argument prototype would still apply. */
11184 if ac_fn_c_try_link "$LINENO"; then :
11185 ac_cv_lib_dl_dlopen=yes
11187 ac_cv_lib_dl_dlopen=no
11189 rm -f core conftest.err conftest.$ac_objext \
11190 conftest$ac_exeext conftest.$ac_ext
11191 LIBS=$ac_check_lib_save_LIBS
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11194 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11195 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11196 cat >>confdefs.h <<_ACEOF
11197 #define HAVE_LIBDL 1
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
11205 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
11206 if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then :
11207 $as_echo_n "(cached) " >&6
11209 ac_check_lib_save_LIBS=$LIBS
11211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11212 /* end confdefs.h. */
11214 /* Override any GCC internal prototype to avoid an error.
11215 Use char because int might match the return type of a GCC
11216 builtin and then its argument prototype would still apply. */
11220 char pam_set_item ();
11224 return pam_set_item ();
11229 if ac_fn_c_try_link "$LINENO"; then :
11230 ac_cv_lib_pam_pam_set_item=yes
11232 ac_cv_lib_pam_pam_set_item=no
11234 rm -f core conftest.err conftest.$ac_objext \
11235 conftest$ac_exeext conftest.$ac_ext
11236 LIBS=$ac_check_lib_save_LIBS
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
11239 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
11240 if test "x$ac_cv_lib_pam_pam_set_item" = x""yes; then :
11241 cat >>confdefs.h <<_ACEOF
11242 #define HAVE_LIBPAM 1
11248 as_fn_error $? "*** libpam missing" "$LINENO" 5
11251 for ac_func in pam_getenvlist
11253 ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
11254 if test "x$ac_cv_func_pam_getenvlist" = x""yes; then :
11255 cat >>confdefs.h <<_ACEOF
11256 #define HAVE_PAM_GETENVLIST 1
11262 for ac_func in pam_putenv
11264 ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv"
11265 if test "x$ac_cv_func_pam_putenv" = x""yes; then :
11266 cat >>confdefs.h <<_ACEOF
11267 #define HAVE_PAM_PUTENV 1
11277 SSHDLIBS="$SSHDLIBS -lpam"
11279 $as_echo "#define USE_PAM 1" >>confdefs.h
11282 if test $ac_cv_lib_dl_dlopen = yes; then
11285 # libdl already in LIBS
11288 SSHDLIBS="$SSHDLIBS -ldl"
11298 # Check for older PAM
11299 if test "x$PAM_MSG" = "xyes" ; then
11300 # Check PAM strerror arguments (old PAM)
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5
11302 $as_echo_n "checking whether pam_strerror takes only one argument... " >&6; }
11303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304 /* end confdefs.h. */
11306 #include <stdlib.h>
11307 #if defined(HAVE_SECURITY_PAM_APPL_H)
11308 #include <security/pam_appl.h>
11309 #elif defined (HAVE_PAM_PAM_APPL_H)
11310 #include <pam/pam_appl.h>
11317 (void)pam_strerror((pam_handle_t *)NULL, -1);
11323 if ac_fn_c_try_compile "$LINENO"; then :
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11325 $as_echo "no" >&6; }
11329 $as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11332 $as_echo "yes" >&6; }
11333 PAM_MSG="yes (old library)"
11337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11340 SSH_PRIVSEP_USER=sshd
11342 # Check whether --with-privsep-user was given.
11343 if test "${with_privsep_user+set}" = set; then :
11344 withval=$with_privsep_user;
11345 if test -n "$withval" && test "x$withval" != "xno" && \
11346 test "x${withval}" != "xyes"; then
11347 SSH_PRIVSEP_USER=$withval
11354 cat >>confdefs.h <<_ACEOF
11355 #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
11360 # Decide which sandbox style to use
11363 # Check whether --with-sandbox was given.
11364 if test "${with_sandbox+set}" = set; then :
11365 withval=$with_sandbox;
11366 if test "x$withval" = "xyes" ; then
11369 sandbox_arg="$withval"
11375 if test "x$sandbox_arg" = "xsystrace" || \
11376 ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then
11377 test "x$have_systr_policy_kill" != "x1" && \
11378 as_fn_error $? "systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" "$LINENO" 5
11379 SANDBOX_STYLE="systrace"
11381 $as_echo "#define SANDBOX_SYSTRACE 1" >>confdefs.h
11383 elif test "x$sandbox_arg" = "xdarwin" || \
11384 ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \
11385 test "x$ac_cv_header_sandbox_h" = "xyes") ; then
11386 test "x$ac_cv_func_sandbox_init" != "xyes" -o \
11387 "x$ac_cv_header_sandbox_h" != "xyes" && \
11388 as_fn_error $? "Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" "$LINENO" 5
11389 SANDBOX_STYLE="darwin"
11391 $as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h
11393 elif test "x$sandbox_arg" = "xrlimit" || \
11394 ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" ) ; then
11395 test "x$ac_cv_func_setrlimit" != "xyes" && \
11396 as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5
11397 SANDBOX_STYLE="rlimit"
11399 $as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h
11401 elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \
11402 test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then
11403 SANDBOX_STYLE="none"
11405 $as_echo "#define SANDBOX_NULL 1" >>confdefs.h
11408 as_fn_error $? "unsupported --with-sandbox" "$LINENO" 5
11411 # Cheap hack to ensure NEWS-OS libraries are arranged right.
11412 if test ! -z "$SONY" ; then
11413 LIBS="$LIBS -liberty";
11416 # Check for long long datatypes
11417 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
11418 if test "x$ac_cv_type_long_long" = x""yes; then :
11420 cat >>confdefs.h <<_ACEOF
11421 #define HAVE_LONG_LONG 1
11426 ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
11427 if test "x$ac_cv_type_unsigned_long_long" = x""yes; then :
11429 cat >>confdefs.h <<_ACEOF
11430 #define HAVE_UNSIGNED_LONG_LONG 1
11435 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
11436 if test "x$ac_cv_type_long_double" = x""yes; then :
11438 cat >>confdefs.h <<_ACEOF
11439 #define HAVE_LONG_DOUBLE 1
11446 # Check datatype sizes
11447 # The cast to long int works around a bug in the HP C Compiler
11448 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11449 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11450 # This bug is HP SR number 8606223364.
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
11452 $as_echo_n "checking size of char... " >&6; }
11453 if test "${ac_cv_sizeof_char+set}" = set; then :
11454 $as_echo_n "(cached) " >&6
11456 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
11459 if test "$ac_cv_type_char" = yes; then
11460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11462 as_fn_error 77 "cannot compute sizeof (char)
11463 See \`config.log' for more details" "$LINENO" 5 ; }
11465 ac_cv_sizeof_char=0
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
11471 $as_echo "$ac_cv_sizeof_char" >&6; }
11475 cat >>confdefs.h <<_ACEOF
11476 #define SIZEOF_CHAR $ac_cv_sizeof_char
11480 # The cast to long int works around a bug in the HP C Compiler
11481 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11482 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11483 # This bug is HP SR number 8606223364.
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
11485 $as_echo_n "checking size of short int... " >&6; }
11486 if test "${ac_cv_sizeof_short_int+set}" = set; then :
11487 $as_echo_n "(cached) " >&6
11489 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
11492 if test "$ac_cv_type_short_int" = yes; then
11493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11495 as_fn_error 77 "cannot compute sizeof (short int)
11496 See \`config.log' for more details" "$LINENO" 5 ; }
11498 ac_cv_sizeof_short_int=0
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
11504 $as_echo "$ac_cv_sizeof_short_int" >&6; }
11508 cat >>confdefs.h <<_ACEOF
11509 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
11513 # The cast to long int works around a bug in the HP C Compiler
11514 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11515 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11516 # This bug is HP SR number 8606223364.
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
11518 $as_echo_n "checking size of int... " >&6; }
11519 if test "${ac_cv_sizeof_int+set}" = set; then :
11520 $as_echo_n "(cached) " >&6
11522 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
11525 if test "$ac_cv_type_int" = yes; then
11526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11528 as_fn_error 77 "cannot compute sizeof (int)
11529 See \`config.log' for more details" "$LINENO" 5 ; }
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
11537 $as_echo "$ac_cv_sizeof_int" >&6; }
11541 cat >>confdefs.h <<_ACEOF
11542 #define SIZEOF_INT $ac_cv_sizeof_int
11546 # The cast to long int works around a bug in the HP C Compiler
11547 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11548 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11549 # This bug is HP SR number 8606223364.
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
11551 $as_echo_n "checking size of long int... " >&6; }
11552 if test "${ac_cv_sizeof_long_int+set}" = set; then :
11553 $as_echo_n "(cached) " >&6
11555 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
11558 if test "$ac_cv_type_long_int" = yes; then
11559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11561 as_fn_error 77 "cannot compute sizeof (long int)
11562 See \`config.log' for more details" "$LINENO" 5 ; }
11564 ac_cv_sizeof_long_int=0
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
11570 $as_echo "$ac_cv_sizeof_long_int" >&6; }
11574 cat >>confdefs.h <<_ACEOF
11575 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
11579 # The cast to long int works around a bug in the HP C Compiler
11580 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11581 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11582 # This bug is HP SR number 8606223364.
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
11584 $as_echo_n "checking size of long long int... " >&6; }
11585 if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
11586 $as_echo_n "(cached) " >&6
11588 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
11591 if test "$ac_cv_type_long_long_int" = yes; then
11592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11594 as_fn_error 77 "cannot compute sizeof (long long int)
11595 See \`config.log' for more details" "$LINENO" 5 ; }
11597 ac_cv_sizeof_long_long_int=0
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
11603 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
11607 cat >>confdefs.h <<_ACEOF
11608 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
11613 # Sanity check long long for some platforms (AIX)
11614 if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
11615 ac_cv_sizeof_long_long_int=0
11618 # compute LLONG_MIN and LLONG_MAX if we don't know them.
11619 if test -z "$have_llong_max"; then
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5
11621 $as_echo_n "checking for max value of long long... " >&6; }
11622 if test "$cross_compiling" = yes; then :
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
11625 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
11629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11630 /* end confdefs.h. */
11633 /* Why is this so damn hard? */
11637 #define __USE_ISOC99
11638 #include <limits.h>
11639 #define DATA "conftest.llminmax"
11640 #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
11643 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
11644 * we do this the hard way.
11647 fprint_ll(FILE *f, long long n)
11650 int l[sizeof(long long) * 8];
11653 if (fprintf(f, "-") < 0)
11655 for (i = 0; n != 0; i++) {
11656 l[i] = my_abs(n % 10);
11660 if (fprintf(f, "%d", l[--i]) < 0)
11663 if (fprintf(f, " ") < 0)
11673 long long i, llmin, llmax = 0;
11675 if((f = fopen(DATA,"w")) == NULL)
11678 #if defined(LLONG_MIN) && defined(LLONG_MAX)
11679 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
11683 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
11684 /* This will work on one's complement and two's complement */
11685 for (i = 1; i > llmax; i <<= 1, i++)
11687 llmin = llmax + 1LL; /* wrap */
11691 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
11692 || llmax - 1 > llmax || llmin == llmax || llmin == 0
11693 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
11694 fprintf(f, "unknown unknown\n");
11698 if (fprint_ll(f, llmin) < 0)
11700 if (fprint_ll(f, llmax) < 0)
11710 if ac_fn_c_try_run "$LINENO"; then :
11712 llong_min=`$AWK '{print $1}' conftest.llminmax`
11713 llong_max=`$AWK '{print $2}' conftest.llminmax`
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5
11716 $as_echo "$llong_max" >&6; }
11718 cat >>confdefs.h <<_ACEOF
11719 #define LLONG_MAX ${llong_max}LL
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5
11723 $as_echo_n "checking for min value of long long... " >&6; }
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5
11725 $as_echo "$llong_min" >&6; }
11727 cat >>confdefs.h <<_ACEOF
11728 #define LLONG_MIN ${llong_min}LL
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11735 $as_echo "not found" >&6; }
11738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11739 conftest.$ac_objext conftest.beam conftest.$ac_ext
11745 # More checks for data types
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
11747 $as_echo_n "checking for u_int type... " >&6; }
11748 if test "${ac_cv_have_u_int+set}" = set; then :
11749 $as_echo_n "(cached) " >&6
11752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11753 /* end confdefs.h. */
11754 #include <sys/types.h>
11763 if ac_fn_c_try_compile "$LINENO"; then :
11764 ac_cv_have_u_int="yes"
11766 ac_cv_have_u_int="no"
11769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
11773 $as_echo "$ac_cv_have_u_int" >&6; }
11774 if test "x$ac_cv_have_u_int" = "xyes" ; then
11776 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
11782 $as_echo_n "checking for intXX_t types... " >&6; }
11783 if test "${ac_cv_have_intxx_t+set}" = set; then :
11784 $as_echo_n "(cached) " >&6
11787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11788 /* end confdefs.h. */
11789 #include <sys/types.h>
11793 int8_t a; int16_t b; int32_t c; a = b = c = 1;
11798 if ac_fn_c_try_compile "$LINENO"; then :
11799 ac_cv_have_intxx_t="yes"
11801 ac_cv_have_intxx_t="no"
11804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
11808 $as_echo "$ac_cv_have_intxx_t" >&6; }
11809 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
11811 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
11816 if (test -z "$have_intxx_t" && \
11817 test "x$ac_cv_header_stdint_h" = "xyes")
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5
11820 $as_echo_n "checking for intXX_t types in stdint.h... " >&6; }
11821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11822 /* end confdefs.h. */
11823 #include <stdint.h>
11827 int8_t a; int16_t b; int32_t c; a = b = c = 1;
11832 if ac_fn_c_try_compile "$LINENO"; then :
11834 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11837 $as_echo "yes" >&6; }
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841 $as_echo "no" >&6; }
11844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
11848 $as_echo_n "checking for int64_t type... " >&6; }
11849 if test "${ac_cv_have_int64_t+set}" = set; then :
11850 $as_echo_n "(cached) " >&6
11853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11854 /* end confdefs.h. */
11856 #include <sys/types.h>
11857 #ifdef HAVE_STDINT_H
11858 # include <stdint.h>
11860 #include <sys/socket.h>
11861 #ifdef HAVE_SYS_BITYPES_H
11862 # include <sys/bitypes.h>
11875 if ac_fn_c_try_compile "$LINENO"; then :
11876 ac_cv_have_int64_t="yes"
11878 ac_cv_have_int64_t="no"
11881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
11885 $as_echo "$ac_cv_have_int64_t" >&6; }
11886 if test "x$ac_cv_have_int64_t" = "xyes" ; then
11888 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
11893 $as_echo_n "checking for u_intXX_t types... " >&6; }
11894 if test "${ac_cv_have_u_intxx_t+set}" = set; then :
11895 $as_echo_n "(cached) " >&6
11898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11899 /* end confdefs.h. */
11900 #include <sys/types.h>
11904 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11909 if ac_fn_c_try_compile "$LINENO"; then :
11910 ac_cv_have_u_intxx_t="yes"
11912 ac_cv_have_u_intxx_t="no"
11915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
11919 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
11920 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
11922 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
11927 if test -z "$have_u_intxx_t" ; then
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5
11929 $as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; }
11930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931 /* end confdefs.h. */
11932 #include <sys/socket.h>
11936 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11941 if ac_fn_c_try_compile "$LINENO"; then :
11943 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11946 $as_echo "yes" >&6; }
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11950 $as_echo "no" >&6; }
11953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
11957 $as_echo_n "checking for u_int64_t types... " >&6; }
11958 if test "${ac_cv_have_u_int64_t+set}" = set; then :
11959 $as_echo_n "(cached) " >&6
11962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11963 /* end confdefs.h. */
11964 #include <sys/types.h>
11968 u_int64_t a; a = 1;
11973 if ac_fn_c_try_compile "$LINENO"; then :
11974 ac_cv_have_u_int64_t="yes"
11976 ac_cv_have_u_int64_t="no"
11979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
11983 $as_echo "$ac_cv_have_u_int64_t" >&6; }
11984 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
11986 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
11991 if test -z "$have_u_int64_t" ; then
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5
11993 $as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; }
11994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11995 /* end confdefs.h. */
11996 #include <sys/bitypes.h>
12005 if ac_fn_c_try_compile "$LINENO"; then :
12007 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12010 $as_echo "yes" >&6; }
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12014 $as_echo "no" >&6; }
12017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12020 if test -z "$have_u_intxx_t" ; then
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
12022 $as_echo_n "checking for uintXX_t types... " >&6; }
12023 if test "${ac_cv_have_uintxx_t+set}" = set; then :
12024 $as_echo_n "(cached) " >&6
12027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12028 /* end confdefs.h. */
12030 #include <sys/types.h>
12045 if ac_fn_c_try_compile "$LINENO"; then :
12046 ac_cv_have_uintxx_t="yes"
12048 ac_cv_have_uintxx_t="no"
12051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
12055 $as_echo "$ac_cv_have_uintxx_t" >&6; }
12056 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
12058 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
12063 if test -z "$have_uintxx_t" ; then
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5
12065 $as_echo_n "checking for uintXX_t types in stdint.h... " >&6; }
12066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12067 /* end confdefs.h. */
12068 #include <stdint.h>
12072 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
12077 if ac_fn_c_try_compile "$LINENO"; then :
12079 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12082 $as_echo "yes" >&6; }
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12086 $as_echo "no" >&6; }
12089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12092 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
12093 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
12096 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
12097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098 /* end confdefs.h. */
12100 #include <sys/bitypes.h>
12106 int8_t a; int16_t b; int32_t c;
12107 u_int8_t e; u_int16_t f; u_int32_t g;
12108 a = b = c = e = f = g = 1;
12114 if ac_fn_c_try_compile "$LINENO"; then :
12116 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
12118 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12121 $as_echo "yes" >&6; }
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12125 $as_echo "no" >&6; }
12128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5
12133 $as_echo_n "checking for u_char... " >&6; }
12134 if test "${ac_cv_have_u_char+set}" = set; then :
12135 $as_echo_n "(cached) " >&6
12138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12139 /* end confdefs.h. */
12140 #include <sys/types.h>
12144 u_char foo; foo = 125;
12149 if ac_fn_c_try_compile "$LINENO"; then :
12150 ac_cv_have_u_char="yes"
12152 ac_cv_have_u_char="no"
12155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5
12159 $as_echo "$ac_cv_have_u_char" >&6; }
12160 if test "x$ac_cv_have_u_char" = "xyes" ; then
12162 $as_echo "#define HAVE_U_CHAR 1" >>confdefs.h
12167 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12168 #include <sys/socket.h>
12170 if test "x$ac_cv_type_socklen_t" = x""yes; then :
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
12175 $as_echo_n "checking for socklen_t equivalent... " >&6; }
12176 if test "${curl_cv_socklen_t_equiv+set}" = set; then :
12177 $as_echo_n "(cached) " >&6
12180 # Systems have either "struct sockaddr *" or
12181 # "void *" as the second argument to getpeername
12182 curl_cv_socklen_t_equiv=
12183 for arg2 in "struct sockaddr" void; do
12184 for t in int size_t unsigned long "unsigned long"; do
12185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186 /* end confdefs.h. */
12188 #include <sys/types.h>
12189 #include <sys/socket.h>
12191 int getpeername (int, $arg2 *, $t *);
12198 getpeername(0,0,&len);
12204 if ac_fn_c_try_compile "$LINENO"; then :
12206 curl_cv_socklen_t_equiv="$t"
12210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12214 if test "x$curl_cv_socklen_t_equiv" = x; then
12215 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
12221 $as_echo "$curl_cv_socklen_t_equiv" >&6; }
12223 cat >>confdefs.h <<_ACEOF
12224 #define socklen_t $curl_cv_socklen_t_equiv
12231 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
12233 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then :
12235 cat >>confdefs.h <<_ACEOF
12236 #define HAVE_SIG_ATOMIC_T 1
12242 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "
12243 #include <sys/types.h>
12244 #ifdef HAVE_SYS_BITYPES_H
12245 #include <sys/bitypes.h>
12247 #ifdef HAVE_SYS_STATFS_H
12248 #include <sys/statfs.h>
12250 #ifdef HAVE_SYS_STATVFS_H
12251 #include <sys/statvfs.h>
12255 if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
12257 cat >>confdefs.h <<_ACEOF
12258 #define HAVE_FSBLKCNT_T 1
12263 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "
12264 #include <sys/types.h>
12265 #ifdef HAVE_SYS_BITYPES_H
12266 #include <sys/bitypes.h>
12268 #ifdef HAVE_SYS_STATFS_H
12269 #include <sys/statfs.h>
12271 #ifdef HAVE_SYS_STATVFS_H
12272 #include <sys/statvfs.h>
12276 if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
12278 cat >>confdefs.h <<_ACEOF
12279 #define HAVE_FSFILCNT_T 1
12286 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h>
12287 #include <netinet/in.h>
12289 if test "x$ac_cv_type_in_addr_t" = x""yes; then :
12291 cat >>confdefs.h <<_ACEOF
12292 #define HAVE_IN_ADDR_T 1
12297 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
12298 #include <netinet/in.h>
12300 if test "x$ac_cv_type_in_port_t" = x""yes; then :
12302 cat >>confdefs.h <<_ACEOF
12303 #define HAVE_IN_PORT_T 1
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
12311 $as_echo_n "checking for size_t... " >&6; }
12312 if test "${ac_cv_have_size_t+set}" = set; then :
12313 $as_echo_n "(cached) " >&6
12316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12317 /* end confdefs.h. */
12318 #include <sys/types.h>
12322 size_t foo; foo = 1235;
12327 if ac_fn_c_try_compile "$LINENO"; then :
12328 ac_cv_have_size_t="yes"
12330 ac_cv_have_size_t="no"
12333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5
12337 $as_echo "$ac_cv_have_size_t" >&6; }
12338 if test "x$ac_cv_have_size_t" = "xyes" ; then
12340 $as_echo "#define HAVE_SIZE_T 1" >>confdefs.h
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
12345 $as_echo_n "checking for ssize_t... " >&6; }
12346 if test "${ac_cv_have_ssize_t+set}" = set; then :
12347 $as_echo_n "(cached) " >&6
12350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12351 /* end confdefs.h. */
12352 #include <sys/types.h>
12356 ssize_t foo; foo = 1235;
12361 if ac_fn_c_try_compile "$LINENO"; then :
12362 ac_cv_have_ssize_t="yes"
12364 ac_cv_have_ssize_t="no"
12367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5
12371 $as_echo "$ac_cv_have_ssize_t" >&6; }
12372 if test "x$ac_cv_have_ssize_t" = "xyes" ; then
12374 $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12379 $as_echo_n "checking for clock_t... " >&6; }
12380 if test "${ac_cv_have_clock_t+set}" = set; then :
12381 $as_echo_n "(cached) " >&6
12384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12385 /* end confdefs.h. */
12390 clock_t foo; foo = 1235;
12395 if ac_fn_c_try_compile "$LINENO"; then :
12396 ac_cv_have_clock_t="yes"
12398 ac_cv_have_clock_t="no"
12401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5
12405 $as_echo "$ac_cv_have_clock_t" >&6; }
12406 if test "x$ac_cv_have_clock_t" = "xyes" ; then
12408 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5
12413 $as_echo_n "checking for sa_family_t... " >&6; }
12414 if test "${ac_cv_have_sa_family_t+set}" = set; then :
12415 $as_echo_n "(cached) " >&6
12418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12419 /* end confdefs.h. */
12421 #include <sys/types.h>
12422 #include <sys/socket.h>
12427 sa_family_t foo; foo = 1235;
12432 if ac_fn_c_try_compile "$LINENO"; then :
12433 ac_cv_have_sa_family_t="yes"
12435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12436 /* end confdefs.h. */
12438 #include <sys/types.h>
12439 #include <sys/socket.h>
12440 #include <netinet/in.h>
12445 sa_family_t foo; foo = 1235;
12450 if ac_fn_c_try_compile "$LINENO"; then :
12451 ac_cv_have_sa_family_t="yes"
12453 ac_cv_have_sa_family_t="no"
12456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5
12463 $as_echo "$ac_cv_have_sa_family_t" >&6; }
12464 if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
12466 $as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5
12471 $as_echo_n "checking for pid_t... " >&6; }
12472 if test "${ac_cv_have_pid_t+set}" = set; then :
12473 $as_echo_n "(cached) " >&6
12476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12477 /* end confdefs.h. */
12478 #include <sys/types.h>
12482 pid_t foo; foo = 1235;
12487 if ac_fn_c_try_compile "$LINENO"; then :
12488 ac_cv_have_pid_t="yes"
12490 ac_cv_have_pid_t="no"
12493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5
12497 $as_echo "$ac_cv_have_pid_t" >&6; }
12498 if test "x$ac_cv_have_pid_t" = "xyes" ; then
12500 $as_echo "#define HAVE_PID_T 1" >>confdefs.h
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5
12505 $as_echo_n "checking for mode_t... " >&6; }
12506 if test "${ac_cv_have_mode_t+set}" = set; then :
12507 $as_echo_n "(cached) " >&6
12510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12511 /* end confdefs.h. */
12512 #include <sys/types.h>
12516 mode_t foo; foo = 1235;
12521 if ac_fn_c_try_compile "$LINENO"; then :
12522 ac_cv_have_mode_t="yes"
12524 ac_cv_have_mode_t="no"
12527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5
12531 $as_echo "$ac_cv_have_mode_t" >&6; }
12532 if test "x$ac_cv_have_mode_t" = "xyes" ; then
12534 $as_echo "#define HAVE_MODE_T 1" >>confdefs.h
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
12540 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
12541 if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then :
12542 $as_echo_n "(cached) " >&6
12545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546 /* end confdefs.h. */
12548 #include <sys/types.h>
12549 #include <sys/socket.h>
12554 struct sockaddr_storage s;
12559 if ac_fn_c_try_compile "$LINENO"; then :
12560 ac_cv_have_struct_sockaddr_storage="yes"
12562 ac_cv_have_struct_sockaddr_storage="no"
12565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5
12569 $as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; }
12570 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
12572 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
12577 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
12578 if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then :
12579 $as_echo_n "(cached) " >&6
12582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12583 /* end confdefs.h. */
12585 #include <sys/types.h>
12586 #include <netinet/in.h>
12591 struct sockaddr_in6 s; s.sin6_family = 0;
12596 if ac_fn_c_try_compile "$LINENO"; then :
12597 ac_cv_have_struct_sockaddr_in6="yes"
12599 ac_cv_have_struct_sockaddr_in6="no"
12602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5
12606 $as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; }
12607 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
12609 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
12614 $as_echo_n "checking for struct in6_addr... " >&6; }
12615 if test "${ac_cv_have_struct_in6_addr+set}" = set; then :
12616 $as_echo_n "(cached) " >&6
12619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h. */
12622 #include <sys/types.h>
12623 #include <netinet/in.h>
12628 struct in6_addr s; s.s6_addr[0] = 0;
12633 if ac_fn_c_try_compile "$LINENO"; then :
12634 ac_cv_have_struct_in6_addr="yes"
12636 ac_cv_have_struct_in6_addr="no"
12639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5
12643 $as_echo "$ac_cv_have_struct_in6_addr" >&6; }
12644 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
12646 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
12649 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
12650 #ifdef HAVE_SYS_TYPES_H
12651 #include <sys/types.h>
12653 #include <netinet/in.h>
12656 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
12658 cat >>confdefs.h <<_ACEOF
12659 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
12668 $as_echo_n "checking for struct addrinfo... " >&6; }
12669 if test "${ac_cv_have_struct_addrinfo+set}" = set; then :
12670 $as_echo_n "(cached) " >&6
12673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12674 /* end confdefs.h. */
12676 #include <sys/types.h>
12677 #include <sys/socket.h>
12683 struct addrinfo s; s.ai_flags = AI_PASSIVE;
12688 if ac_fn_c_try_compile "$LINENO"; then :
12689 ac_cv_have_struct_addrinfo="yes"
12691 ac_cv_have_struct_addrinfo="no"
12694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5
12698 $as_echo "$ac_cv_have_struct_addrinfo" >&6; }
12699 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
12701 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
12706 $as_echo_n "checking for struct timeval... " >&6; }
12707 if test "${ac_cv_have_struct_timeval+set}" = set; then :
12708 $as_echo_n "(cached) " >&6
12711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12712 /* end confdefs.h. */
12713 #include <sys/time.h>
12717 struct timeval tv; tv.tv_sec = 1;
12722 if ac_fn_c_try_compile "$LINENO"; then :
12723 ac_cv_have_struct_timeval="yes"
12725 ac_cv_have_struct_timeval="no"
12728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5
12732 $as_echo "$ac_cv_have_struct_timeval" >&6; }
12733 if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
12735 $as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
12737 have_struct_timeval=1
12740 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
12741 if test "x$ac_cv_type_struct_timespec" = x""yes; then :
12743 cat >>confdefs.h <<_ACEOF
12744 #define HAVE_STRUCT_TIMESPEC 1
12751 # We need int64_t or else certian parts of the compile will fail.
12752 if test "x$ac_cv_have_int64_t" = "xno" && \
12753 test "x$ac_cv_sizeof_long_int" != "x8" && \
12754 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
12755 echo "OpenSSH requires int64_t support. Contact your vendor or install"
12756 echo "an alternative compiler (I.E., GCC) before continuing."
12760 if test "$cross_compiling" = yes; then :
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
12762 $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
12765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12766 /* end confdefs.h. */
12769 #include <string.h>
12770 #ifdef HAVE_SNPRINTF
12774 char expected_out[50];
12776 #if (SIZEOF_LONG_INT == 8)
12777 long int num = 0x7fffffffffffffff;
12779 long long num = 0x7fffffffffffffffll;
12781 strcpy(expected_out, "9223372036854775807");
12782 snprintf(buf, mazsize, "%lld", num);
12783 if(strcmp(buf, expected_out) != 0)
12788 main() { exit(0); }
12792 if ac_fn_c_try_run "$LINENO"; then :
12795 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
12798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12799 conftest.$ac_objext conftest.beam conftest.$ac_ext
12805 # look for field 'ut_host' in header 'utmp.h'
12806 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12807 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5
12809 $as_echo_n "checking for ut_host field in utmp.h... " >&6; }
12810 if eval "test \"\${$ossh_varname+set}\"" = set; then :
12811 $as_echo_n "(cached) " >&6
12814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12815 /* end confdefs.h. */
12819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12820 $EGREP "ut_host" >/dev/null 2>&1; then :
12821 eval "$ossh_varname=yes"
12823 eval "$ossh_varname=no"
12829 ossh_result=`eval 'echo $'"$ossh_varname"`
12830 if test -n "`echo $ossh_varname`"; then
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12832 $as_echo "$ossh_result" >&6; }
12833 if test "x$ossh_result" = "xyes"; then
12835 $as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12840 $as_echo "no" >&6; }
12844 # look for field 'ut_host' in header 'utmpx.h'
12845 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12846 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5
12848 $as_echo_n "checking for ut_host field in utmpx.h... " >&6; }
12849 if eval "test \"\${$ossh_varname+set}\"" = set; then :
12850 $as_echo_n "(cached) " >&6
12853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12854 /* end confdefs.h. */
12858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12859 $EGREP "ut_host" >/dev/null 2>&1; then :
12860 eval "$ossh_varname=yes"
12862 eval "$ossh_varname=no"
12868 ossh_result=`eval 'echo $'"$ossh_varname"`
12869 if test -n "`echo $ossh_varname`"; then
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12871 $as_echo "$ossh_result" >&6; }
12872 if test "x$ossh_result" = "xyes"; then
12874 $as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12879 $as_echo "no" >&6; }
12883 # look for field 'syslen' in header 'utmpx.h'
12884 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12885 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5
12887 $as_echo_n "checking for syslen field in utmpx.h... " >&6; }
12888 if eval "test \"\${$ossh_varname+set}\"" = set; then :
12889 $as_echo_n "(cached) " >&6
12892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12893 /* end confdefs.h. */
12897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12898 $EGREP "syslen" >/dev/null 2>&1; then :
12899 eval "$ossh_varname=yes"
12901 eval "$ossh_varname=no"
12907 ossh_result=`eval 'echo $'"$ossh_varname"`
12908 if test -n "`echo $ossh_varname`"; then
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12910 $as_echo "$ossh_result" >&6; }
12911 if test "x$ossh_result" = "xyes"; then
12913 $as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12918 $as_echo "no" >&6; }
12922 # look for field 'ut_pid' in header 'utmp.h'
12923 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12924 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5
12926 $as_echo_n "checking for ut_pid field in utmp.h... " >&6; }
12927 if eval "test \"\${$ossh_varname+set}\"" = set; then :
12928 $as_echo_n "(cached) " >&6
12931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12932 /* end confdefs.h. */
12936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12937 $EGREP "ut_pid" >/dev/null 2>&1; then :
12938 eval "$ossh_varname=yes"
12940 eval "$ossh_varname=no"
12946 ossh_result=`eval 'echo $'"$ossh_varname"`
12947 if test -n "`echo $ossh_varname`"; then
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12949 $as_echo "$ossh_result" >&6; }
12950 if test "x$ossh_result" = "xyes"; then
12952 $as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12957 $as_echo "no" >&6; }
12961 # look for field 'ut_type' in header 'utmp.h'
12962 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12963 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5
12965 $as_echo_n "checking for ut_type field in utmp.h... " >&6; }
12966 if eval "test \"\${$ossh_varname+set}\"" = set; then :
12967 $as_echo_n "(cached) " >&6
12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971 /* end confdefs.h. */
12975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12976 $EGREP "ut_type" >/dev/null 2>&1; then :
12977 eval "$ossh_varname=yes"
12979 eval "$ossh_varname=no"
12985 ossh_result=`eval 'echo $'"$ossh_varname"`
12986 if test -n "`echo $ossh_varname`"; then
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12988 $as_echo "$ossh_result" >&6; }
12989 if test "x$ossh_result" = "xyes"; then
12991 $as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12996 $as_echo "no" >&6; }
13000 # look for field 'ut_type' in header 'utmpx.h'
13001 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13002 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5
13004 $as_echo_n "checking for ut_type field in utmpx.h... " >&6; }
13005 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13006 $as_echo_n "(cached) " >&6
13009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13010 /* end confdefs.h. */
13014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13015 $EGREP "ut_type" >/dev/null 2>&1; then :
13016 eval "$ossh_varname=yes"
13018 eval "$ossh_varname=no"
13024 ossh_result=`eval 'echo $'"$ossh_varname"`
13025 if test -n "`echo $ossh_varname`"; then
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13027 $as_echo "$ossh_result" >&6; }
13028 if test "x$ossh_result" = "xyes"; then
13030 $as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13035 $as_echo "no" >&6; }
13039 # look for field 'ut_tv' in header 'utmp.h'
13040 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13041 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5
13043 $as_echo_n "checking for ut_tv field in utmp.h... " >&6; }
13044 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13045 $as_echo_n "(cached) " >&6
13048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13049 /* end confdefs.h. */
13053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13054 $EGREP "ut_tv" >/dev/null 2>&1; then :
13055 eval "$ossh_varname=yes"
13057 eval "$ossh_varname=no"
13063 ossh_result=`eval 'echo $'"$ossh_varname"`
13064 if test -n "`echo $ossh_varname`"; then
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13066 $as_echo "$ossh_result" >&6; }
13067 if test "x$ossh_result" = "xyes"; then
13069 $as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13074 $as_echo "no" >&6; }
13078 # look for field 'ut_id' in header 'utmp.h'
13079 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13080 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5
13082 $as_echo_n "checking for ut_id field in utmp.h... " >&6; }
13083 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13084 $as_echo_n "(cached) " >&6
13087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h. */
13092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13093 $EGREP "ut_id" >/dev/null 2>&1; then :
13094 eval "$ossh_varname=yes"
13096 eval "$ossh_varname=no"
13102 ossh_result=`eval 'echo $'"$ossh_varname"`
13103 if test -n "`echo $ossh_varname`"; then
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13105 $as_echo "$ossh_result" >&6; }
13106 if test "x$ossh_result" = "xyes"; then
13108 $as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113 $as_echo "no" >&6; }
13117 # look for field 'ut_id' in header 'utmpx.h'
13118 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13119 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5
13121 $as_echo_n "checking for ut_id field in utmpx.h... " >&6; }
13122 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13123 $as_echo_n "(cached) " >&6
13126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13127 /* end confdefs.h. */
13131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13132 $EGREP "ut_id" >/dev/null 2>&1; then :
13133 eval "$ossh_varname=yes"
13135 eval "$ossh_varname=no"
13141 ossh_result=`eval 'echo $'"$ossh_varname"`
13142 if test -n "`echo $ossh_varname`"; then
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13144 $as_echo "$ossh_result" >&6; }
13145 if test "x$ossh_result" = "xyes"; then
13147 $as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13152 $as_echo "no" >&6; }
13156 # look for field 'ut_addr' in header 'utmp.h'
13157 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13158 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5
13160 $as_echo_n "checking for ut_addr field in utmp.h... " >&6; }
13161 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13162 $as_echo_n "(cached) " >&6
13165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166 /* end confdefs.h. */
13170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13171 $EGREP "ut_addr" >/dev/null 2>&1; then :
13172 eval "$ossh_varname=yes"
13174 eval "$ossh_varname=no"
13180 ossh_result=`eval 'echo $'"$ossh_varname"`
13181 if test -n "`echo $ossh_varname`"; then
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13183 $as_echo "$ossh_result" >&6; }
13184 if test "x$ossh_result" = "xyes"; then
13186 $as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13191 $as_echo "no" >&6; }
13195 # look for field 'ut_addr' in header 'utmpx.h'
13196 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13197 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5
13199 $as_echo_n "checking for ut_addr field in utmpx.h... " >&6; }
13200 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13201 $as_echo_n "(cached) " >&6
13204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13205 /* end confdefs.h. */
13209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13210 $EGREP "ut_addr" >/dev/null 2>&1; then :
13211 eval "$ossh_varname=yes"
13213 eval "$ossh_varname=no"
13219 ossh_result=`eval 'echo $'"$ossh_varname"`
13220 if test -n "`echo $ossh_varname`"; then
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13222 $as_echo "$ossh_result" >&6; }
13223 if test "x$ossh_result" = "xyes"; then
13225 $as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13230 $as_echo "no" >&6; }
13234 # look for field 'ut_addr_v6' in header 'utmp.h'
13235 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13236 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5
13238 $as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; }
13239 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13240 $as_echo_n "(cached) " >&6
13243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13244 /* end confdefs.h. */
13248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13249 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
13250 eval "$ossh_varname=yes"
13252 eval "$ossh_varname=no"
13258 ossh_result=`eval 'echo $'"$ossh_varname"`
13259 if test -n "`echo $ossh_varname`"; then
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13261 $as_echo "$ossh_result" >&6; }
13262 if test "x$ossh_result" = "xyes"; then
13264 $as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13269 $as_echo "no" >&6; }
13273 # look for field 'ut_addr_v6' in header 'utmpx.h'
13274 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13275 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5
13277 $as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; }
13278 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13279 $as_echo_n "(cached) " >&6
13282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13283 /* end confdefs.h. */
13287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13288 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
13289 eval "$ossh_varname=yes"
13291 eval "$ossh_varname=no"
13297 ossh_result=`eval 'echo $'"$ossh_varname"`
13298 if test -n "`echo $ossh_varname`"; then
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13300 $as_echo "$ossh_result" >&6; }
13301 if test "x$ossh_result" = "xyes"; then
13303 $as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13308 $as_echo "no" >&6; }
13312 # look for field 'ut_exit' in header 'utmp.h'
13313 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13314 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5
13316 $as_echo_n "checking for ut_exit field in utmp.h... " >&6; }
13317 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13318 $as_echo_n "(cached) " >&6
13321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13322 /* end confdefs.h. */
13326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13327 $EGREP "ut_exit" >/dev/null 2>&1; then :
13328 eval "$ossh_varname=yes"
13330 eval "$ossh_varname=no"
13336 ossh_result=`eval 'echo $'"$ossh_varname"`
13337 if test -n "`echo $ossh_varname`"; then
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13339 $as_echo "$ossh_result" >&6; }
13340 if test "x$ossh_result" = "xyes"; then
13342 $as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13347 $as_echo "no" >&6; }
13351 # look for field 'ut_time' in header 'utmp.h'
13352 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13353 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5
13355 $as_echo_n "checking for ut_time field in utmp.h... " >&6; }
13356 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13357 $as_echo_n "(cached) " >&6
13360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13361 /* end confdefs.h. */
13365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13366 $EGREP "ut_time" >/dev/null 2>&1; then :
13367 eval "$ossh_varname=yes"
13369 eval "$ossh_varname=no"
13375 ossh_result=`eval 'echo $'"$ossh_varname"`
13376 if test -n "`echo $ossh_varname`"; then
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13378 $as_echo "$ossh_result" >&6; }
13379 if test "x$ossh_result" = "xyes"; then
13381 $as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13386 $as_echo "no" >&6; }
13390 # look for field 'ut_time' in header 'utmpx.h'
13391 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13392 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5
13394 $as_echo_n "checking for ut_time field in utmpx.h... " >&6; }
13395 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13396 $as_echo_n "(cached) " >&6
13399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13400 /* end confdefs.h. */
13404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13405 $EGREP "ut_time" >/dev/null 2>&1; then :
13406 eval "$ossh_varname=yes"
13408 eval "$ossh_varname=no"
13414 ossh_result=`eval 'echo $'"$ossh_varname"`
13415 if test -n "`echo $ossh_varname`"; then
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13417 $as_echo "$ossh_result" >&6; }
13418 if test "x$ossh_result" = "xyes"; then
13420 $as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13425 $as_echo "no" >&6; }
13429 # look for field 'ut_tv' in header 'utmpx.h'
13430 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13431 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5
13433 $as_echo_n "checking for ut_tv field in utmpx.h... " >&6; }
13434 if eval "test \"\${$ossh_varname+set}\"" = set; then :
13435 $as_echo_n "(cached) " >&6
13438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13439 /* end confdefs.h. */
13443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13444 $EGREP "ut_tv" >/dev/null 2>&1; then :
13445 eval "$ossh_varname=yes"
13447 eval "$ossh_varname=no"
13453 ossh_result=`eval 'echo $'"$ossh_varname"`
13454 if test -n "`echo $ossh_varname`"; then
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13456 $as_echo "$ossh_result" >&6; }
13457 if test "x$ossh_result" = "xyes"; then
13459 $as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13464 $as_echo "no" >&6; }
13468 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13469 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
13471 cat >>confdefs.h <<_ACEOF
13472 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13478 ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" "
13480 #if HAVE_SYS_TYPES_H
13481 # include <sys/types.h>
13483 #include <netinet/in.h>
13484 #include <arpa/nameser.h>
13485 #include <resolv.h>
13488 if test "x$ac_cv_member_struct___res_state_retrans" = x""yes; then :
13492 $as_echo "#define __res_state state" >>confdefs.h
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5
13498 $as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; }
13499 if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then :
13500 $as_echo_n "(cached) " >&6
13503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13504 /* end confdefs.h. */
13506 #include <sys/types.h>
13507 #include <sys/socket.h>
13512 struct sockaddr_storage s; s.ss_family = 1;
13517 if ac_fn_c_try_compile "$LINENO"; then :
13518 ac_cv_have_ss_family_in_struct_ss="yes"
13520 ac_cv_have_ss_family_in_struct_ss="no"
13522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5
13526 $as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; }
13527 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
13529 $as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5
13534 $as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; }
13535 if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then :
13536 $as_echo_n "(cached) " >&6
13539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13540 /* end confdefs.h. */
13542 #include <sys/types.h>
13543 #include <sys/socket.h>
13548 struct sockaddr_storage s; s.__ss_family = 1;
13553 if ac_fn_c_try_compile "$LINENO"; then :
13554 ac_cv_have___ss_family_in_struct_ss="yes"
13556 ac_cv_have___ss_family_in_struct_ss="no"
13559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5
13563 $as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; }
13564 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
13566 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_class field in struct passwd" >&5
13571 $as_echo_n "checking for pw_class field in struct passwd... " >&6; }
13572 if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then :
13573 $as_echo_n "(cached) " >&6
13576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13577 /* end confdefs.h. */
13582 struct passwd p; p.pw_class = 0;
13587 if ac_fn_c_try_compile "$LINENO"; then :
13588 ac_cv_have_pw_class_in_struct_passwd="yes"
13590 ac_cv_have_pw_class_in_struct_passwd="no"
13593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
13597 $as_echo "$ac_cv_have_pw_class_in_struct_passwd" >&6; }
13598 if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
13600 $as_echo "#define HAVE_PW_CLASS_IN_PASSWD 1" >>confdefs.h
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_expire field in struct passwd" >&5
13605 $as_echo_n "checking for pw_expire field in struct passwd... " >&6; }
13606 if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then :
13607 $as_echo_n "(cached) " >&6
13610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13611 /* end confdefs.h. */
13616 struct passwd p; p.pw_expire = 0;
13621 if ac_fn_c_try_compile "$LINENO"; then :
13622 ac_cv_have_pw_expire_in_struct_passwd="yes"
13624 ac_cv_have_pw_expire_in_struct_passwd="no"
13627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
13631 $as_echo "$ac_cv_have_pw_expire_in_struct_passwd" >&6; }
13632 if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
13634 $as_echo "#define HAVE_PW_EXPIRE_IN_PASSWD 1" >>confdefs.h
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_change field in struct passwd" >&5
13639 $as_echo_n "checking for pw_change field in struct passwd... " >&6; }
13640 if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then :
13641 $as_echo_n "(cached) " >&6
13644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13645 /* end confdefs.h. */
13650 struct passwd p; p.pw_change = 0;
13655 if ac_fn_c_try_compile "$LINENO"; then :
13656 ac_cv_have_pw_change_in_struct_passwd="yes"
13658 ac_cv_have_pw_change_in_struct_passwd="no"
13661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
13665 $as_echo "$ac_cv_have_pw_change_in_struct_passwd" >&6; }
13666 if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
13668 $as_echo "#define HAVE_PW_CHANGE_IN_PASSWD 1" >>confdefs.h
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5
13673 $as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; }
13674 if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then :
13675 $as_echo_n "(cached) " >&6
13678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13679 /* end confdefs.h. */
13681 #include <sys/types.h>
13682 #include <sys/socket.h>
13683 #include <sys/uio.h>
13689 #ifdef msg_accrights
13690 #error "msg_accrights is a macro"
13694 m.msg_accrights = 0;
13701 if ac_fn_c_try_compile "$LINENO"; then :
13702 ac_cv_have_accrights_in_msghdr="yes"
13704 ac_cv_have_accrights_in_msghdr="no"
13707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5
13711 $as_echo "$ac_cv_have_accrights_in_msghdr" >&6; }
13712 if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
13714 $as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5
13719 $as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; }
13720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h. */
13723 #include <sys/types.h>
13724 #include <sys/stat.h>
13725 #ifdef HAVE_SYS_TIME_H
13726 # include <sys/time.h>
13728 #ifdef HAVE_SYS_MOUNT_H
13729 #include <sys/mount.h>
13731 #ifdef HAVE_SYS_STATVFS_H
13732 #include <sys/statvfs.h>
13738 struct statvfs s; s.f_fsid = 0;
13743 if ac_fn_c_try_compile "$LINENO"; then :
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13745 $as_echo "yes" >&6; }
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13748 $as_echo "no" >&6; }
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5
13751 $as_echo_n "checking if fsid_t has member val... " >&6; }
13752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13753 /* end confdefs.h. */
13755 #include <sys/types.h>
13756 #include <sys/statvfs.h>
13761 fsid_t t; t.val[0] = 0;
13766 if ac_fn_c_try_compile "$LINENO"; then :
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13768 $as_echo "yes" >&6; }
13770 $as_echo "#define FSID_HAS_VAL 1" >>confdefs.h
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13774 $as_echo "no" >&6; }
13776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5
13779 $as_echo_n "checking if f_fsid has member __val... " >&6; }
13780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13781 /* end confdefs.h. */
13783 #include <sys/types.h>
13784 #include <sys/statvfs.h>
13789 fsid_t t; t.__val[0] = 0;
13794 if ac_fn_c_try_compile "$LINENO"; then :
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13796 $as_echo "yes" >&6; }
13798 $as_echo "#define FSID_HAS___VAL 1" >>confdefs.h
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13802 $as_echo "no" >&6; }
13804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5
13810 $as_echo_n "checking for msg_control field in struct msghdr... " >&6; }
13811 if test "${ac_cv_have_control_in_msghdr+set}" = set; then :
13812 $as_echo_n "(cached) " >&6
13815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13816 /* end confdefs.h. */
13818 #include <sys/types.h>
13819 #include <sys/socket.h>
13820 #include <sys/uio.h>
13827 #error "msg_control is a macro"
13838 if ac_fn_c_try_compile "$LINENO"; then :
13839 ac_cv_have_control_in_msghdr="yes"
13841 ac_cv_have_control_in_msghdr="no"
13844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5
13848 $as_echo "$ac_cv_have_control_in_msghdr" >&6; }
13849 if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
13851 $as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5
13856 $as_echo_n "checking if libc defines __progname... " >&6; }
13857 if test "${ac_cv_libc_defines___progname+set}" = set; then :
13858 $as_echo_n "(cached) " >&6
13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862 /* end confdefs.h. */
13867 extern char *__progname; printf("%s", __progname);
13872 if ac_fn_c_try_link "$LINENO"; then :
13873 ac_cv_libc_defines___progname="yes"
13875 ac_cv_libc_defines___progname="no"
13878 rm -f core conftest.err conftest.$ac_objext \
13879 conftest$ac_exeext conftest.$ac_ext
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5
13883 $as_echo "$ac_cv_libc_defines___progname" >&6; }
13884 if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
13886 $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5
13891 $as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; }
13892 if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then :
13893 $as_echo_n "(cached) " >&6
13896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13897 /* end confdefs.h. */
13902 printf("%s", __FUNCTION__);
13907 if ac_fn_c_try_link "$LINENO"; then :
13908 ac_cv_cc_implements___FUNCTION__="yes"
13910 ac_cv_cc_implements___FUNCTION__="no"
13913 rm -f core conftest.err conftest.$ac_objext \
13914 conftest$ac_exeext conftest.$ac_ext
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5
13918 $as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; }
13919 if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
13921 $as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5
13926 $as_echo_n "checking whether $CC implements __func__... " >&6; }
13927 if test "${ac_cv_cc_implements___func__+set}" = set; then :
13928 $as_echo_n "(cached) " >&6
13931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13932 /* end confdefs.h. */
13937 printf("%s", __func__);
13942 if ac_fn_c_try_link "$LINENO"; then :
13943 ac_cv_cc_implements___func__="yes"
13945 ac_cv_cc_implements___func__="no"
13948 rm -f core conftest.err conftest.$ac_objext \
13949 conftest$ac_exeext conftest.$ac_ext
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5
13953 $as_echo "$ac_cv_cc_implements___func__" >&6; }
13954 if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
13956 $as_echo "#define HAVE___func__ 1" >>confdefs.h
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5
13961 $as_echo_n "checking whether va_copy exists... " >&6; }
13962 if test "${ac_cv_have_va_copy+set}" = set; then :
13963 $as_echo_n "(cached) " >&6
13966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13967 /* end confdefs.h. */
13969 #include <stdarg.h>
13980 if ac_fn_c_try_link "$LINENO"; then :
13981 ac_cv_have_va_copy="yes"
13983 ac_cv_have_va_copy="no"
13986 rm -f core conftest.err conftest.$ac_objext \
13987 conftest$ac_exeext conftest.$ac_ext
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5
13991 $as_echo "$ac_cv_have_va_copy" >&6; }
13992 if test "x$ac_cv_have_va_copy" = "xyes" ; then
13994 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5
13999 $as_echo_n "checking whether __va_copy exists... " >&6; }
14000 if test "${ac_cv_have___va_copy+set}" = set; then :
14001 $as_echo_n "(cached) " >&6
14004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14005 /* end confdefs.h. */
14007 #include <stdarg.h>
14018 if ac_fn_c_try_link "$LINENO"; then :
14019 ac_cv_have___va_copy="yes"
14021 ac_cv_have___va_copy="no"
14024 rm -f core conftest.err conftest.$ac_objext \
14025 conftest$ac_exeext conftest.$ac_ext
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5
14029 $as_echo "$ac_cv_have___va_copy" >&6; }
14030 if test "x$ac_cv_have___va_copy" = "xyes" ; then
14032 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5
14037 $as_echo_n "checking whether getopt has optreset support... " >&6; }
14038 if test "${ac_cv_have_getopt_optreset+set}" = set; then :
14039 $as_echo_n "(cached) " >&6
14042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14043 /* end confdefs.h. */
14044 #include <getopt.h>
14048 extern int optreset; optreset = 0;
14053 if ac_fn_c_try_link "$LINENO"; then :
14054 ac_cv_have_getopt_optreset="yes"
14056 ac_cv_have_getopt_optreset="no"
14059 rm -f core conftest.err conftest.$ac_objext \
14060 conftest$ac_exeext conftest.$ac_ext
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5
14064 $as_echo "$ac_cv_have_getopt_optreset" >&6; }
14065 if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
14067 $as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5
14072 $as_echo_n "checking if libc defines sys_errlist... " >&6; }
14073 if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then :
14074 $as_echo_n "(cached) " >&6
14077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14078 /* end confdefs.h. */
14083 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
14088 if ac_fn_c_try_link "$LINENO"; then :
14089 ac_cv_libc_defines_sys_errlist="yes"
14091 ac_cv_libc_defines_sys_errlist="no"
14094 rm -f core conftest.err conftest.$ac_objext \
14095 conftest$ac_exeext conftest.$ac_ext
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5
14099 $as_echo "$ac_cv_libc_defines_sys_errlist" >&6; }
14100 if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
14102 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5
14108 $as_echo_n "checking if libc defines sys_nerr... " >&6; }
14109 if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then :
14110 $as_echo_n "(cached) " >&6
14113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14114 /* end confdefs.h. */
14119 extern int sys_nerr; printf("%i", sys_nerr);
14124 if ac_fn_c_try_link "$LINENO"; then :
14125 ac_cv_libc_defines_sys_nerr="yes"
14127 ac_cv_libc_defines_sys_nerr="no"
14130 rm -f core conftest.err conftest.$ac_objext \
14131 conftest$ac_exeext conftest.$ac_ext
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5
14135 $as_echo "$ac_cv_libc_defines_sys_nerr" >&6; }
14136 if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
14138 $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
14142 # Check libraries needed by DNS fingerprint support
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5
14144 $as_echo_n "checking for library containing getrrsetbyname... " >&6; }
14145 if test "${ac_cv_search_getrrsetbyname+set}" = set; then :
14146 $as_echo_n "(cached) " >&6
14148 ac_func_search_save_LIBS=$LIBS
14149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14150 /* end confdefs.h. */
14152 /* Override any GCC internal prototype to avoid an error.
14153 Use char because int might match the return type of a GCC
14154 builtin and then its argument prototype would still apply. */
14158 char getrrsetbyname ();
14162 return getrrsetbyname ();
14167 for ac_lib in '' resolv; do
14168 if test -z "$ac_lib"; then
14169 ac_res="none required"
14172 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14174 if ac_fn_c_try_link "$LINENO"; then :
14175 ac_cv_search_getrrsetbyname=$ac_res
14177 rm -f core conftest.err conftest.$ac_objext \
14179 if test "${ac_cv_search_getrrsetbyname+set}" = set; then :
14183 if test "${ac_cv_search_getrrsetbyname+set}" = set; then :
14186 ac_cv_search_getrrsetbyname=no
14188 rm conftest.$ac_ext
14189 LIBS=$ac_func_search_save_LIBS
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5
14192 $as_echo "$ac_cv_search_getrrsetbyname" >&6; }
14193 ac_res=$ac_cv_search_getrrsetbyname
14194 if test "$ac_res" != no; then :
14195 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14197 $as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h
14201 # Needed by our getrrsetbyname()
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
14203 $as_echo_n "checking for library containing res_query... " >&6; }
14204 if test "${ac_cv_search_res_query+set}" = set; then :
14205 $as_echo_n "(cached) " >&6
14207 ac_func_search_save_LIBS=$LIBS
14208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14209 /* end confdefs.h. */
14211 /* Override any GCC internal prototype to avoid an error.
14212 Use char because int might match the return type of a GCC
14213 builtin and then its argument prototype would still apply. */
14221 return res_query ();
14226 for ac_lib in '' resolv; do
14227 if test -z "$ac_lib"; then
14228 ac_res="none required"
14231 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14233 if ac_fn_c_try_link "$LINENO"; then :
14234 ac_cv_search_res_query=$ac_res
14236 rm -f core conftest.err conftest.$ac_objext \
14238 if test "${ac_cv_search_res_query+set}" = set; then :
14242 if test "${ac_cv_search_res_query+set}" = set; then :
14245 ac_cv_search_res_query=no
14247 rm conftest.$ac_ext
14248 LIBS=$ac_func_search_save_LIBS
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
14251 $as_echo "$ac_cv_search_res_query" >&6; }
14252 ac_res=$ac_cv_search_res_query
14253 if test "$ac_res" != no; then :
14254 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
14259 $as_echo_n "checking for library containing dn_expand... " >&6; }
14260 if test "${ac_cv_search_dn_expand+set}" = set; then :
14261 $as_echo_n "(cached) " >&6
14263 ac_func_search_save_LIBS=$LIBS
14264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14265 /* end confdefs.h. */
14267 /* Override any GCC internal prototype to avoid an error.
14268 Use char because int might match the return type of a GCC
14269 builtin and then its argument prototype would still apply. */
14277 return dn_expand ();
14282 for ac_lib in '' resolv; do
14283 if test -z "$ac_lib"; then
14284 ac_res="none required"
14287 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14289 if ac_fn_c_try_link "$LINENO"; then :
14290 ac_cv_search_dn_expand=$ac_res
14292 rm -f core conftest.err conftest.$ac_objext \
14294 if test "${ac_cv_search_dn_expand+set}" = set; then :
14298 if test "${ac_cv_search_dn_expand+set}" = set; then :
14301 ac_cv_search_dn_expand=no
14303 rm conftest.$ac_ext
14304 LIBS=$ac_func_search_save_LIBS
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
14307 $as_echo "$ac_cv_search_dn_expand" >&6; }
14308 ac_res=$ac_cv_search_dn_expand
14309 if test "$ac_res" != no; then :
14310 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5
14315 $as_echo_n "checking if res_query will link... " >&6; }
14316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14317 /* end confdefs.h. */
14319 #include <sys/types.h>
14320 #include <netinet/in.h>
14321 #include <arpa/nameser.h>
14323 #include <resolv.h>
14329 res_query (0, 0, 0, 0, 0);
14335 if ac_fn_c_try_link "$LINENO"; then :
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14337 $as_echo "yes" >&6; }
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14340 $as_echo "no" >&6; }
14342 LIBS="$LIBS -lresolv"
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
14344 $as_echo_n "checking for res_query in -lresolv... " >&6; }
14345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14346 /* end confdefs.h. */
14348 #include <sys/types.h>
14349 #include <netinet/in.h>
14350 #include <arpa/nameser.h>
14352 #include <resolv.h>
14358 res_query (0, 0, 0, 0, 0);
14364 if ac_fn_c_try_link "$LINENO"; then :
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14366 $as_echo "yes" >&6; }
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14370 $as_echo "no" >&6; }
14372 rm -f core conftest.err conftest.$ac_objext \
14373 conftest$ac_exeext conftest.$ac_ext
14376 rm -f core conftest.err conftest.$ac_objext \
14377 conftest$ac_exeext conftest.$ac_ext
14378 for ac_func in _getshort _getlong
14380 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14381 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14382 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14383 cat >>confdefs.h <<_ACEOF
14384 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14390 ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h>
14391 #include <arpa/nameser.h>
14393 if test "x$ac_cv_have_decl__getshort" = x""yes; then :
14399 cat >>confdefs.h <<_ACEOF
14400 #define HAVE_DECL__GETSHORT $ac_have_decl
14402 ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h>
14403 #include <arpa/nameser.h>
14405 if test "x$ac_cv_have_decl__getlong" = x""yes; then :
14411 cat >>confdefs.h <<_ACEOF
14412 #define HAVE_DECL__GETLONG $ac_have_decl
14415 ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h>
14417 if test "x$ac_cv_member_HEADER_ad" = x""yes; then :
14419 $as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5
14428 $as_echo_n "checking if struct __res_state _res is an extern... " >&6; }
14429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14430 /* end confdefs.h. */
14433 #if HAVE_SYS_TYPES_H
14434 # include <sys/types.h>
14436 #include <netinet/in.h>
14437 #include <arpa/nameser.h>
14438 #include <resolv.h>
14439 extern struct __res_state _res;
14449 if ac_fn_c_try_link "$LINENO"; then :
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14451 $as_echo "yes" >&6; }
14453 $as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14458 $as_echo "no" >&6; }
14461 rm -f core conftest.err conftest.$ac_objext \
14462 conftest$ac_exeext conftest.$ac_ext
14464 # Check whether user wants SELinux support
14468 # Check whether --with-selinux was given.
14469 if test "${with_selinux+set}" = set; then :
14470 withval=$with_selinux; if test "x$withval" != "xno" ; then
14473 $as_echo "#define WITH_SELINUX 1" >>confdefs.h
14476 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
14477 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
14480 as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5
14485 $as_echo_n "checking for setexeccon in -lselinux... " >&6; }
14486 if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then :
14487 $as_echo_n "(cached) " >&6
14489 ac_check_lib_save_LIBS=$LIBS
14490 LIBS="-lselinux $LIBS"
14491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14492 /* end confdefs.h. */
14494 /* Override any GCC internal prototype to avoid an error.
14495 Use char because int might match the return type of a GCC
14496 builtin and then its argument prototype would still apply. */
14500 char setexeccon ();
14504 return setexeccon ();
14509 if ac_fn_c_try_link "$LINENO"; then :
14510 ac_cv_lib_selinux_setexeccon=yes
14512 ac_cv_lib_selinux_setexeccon=no
14514 rm -f core conftest.err conftest.$ac_objext \
14515 conftest$ac_exeext conftest.$ac_ext
14516 LIBS=$ac_check_lib_save_LIBS
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5
14519 $as_echo "$ac_cv_lib_selinux_setexeccon" >&6; }
14520 if test "x$ac_cv_lib_selinux_setexeccon" = x""yes; then :
14521 LIBSELINUX="-lselinux"
14522 LIBS="$LIBS -lselinux"
14525 as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5
14528 SSHLIBS="$SSHLIBS $LIBSELINUX"
14529 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
14530 for ac_func in getseuserbyname get_default_context_with_level
14532 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14533 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14534 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14535 cat >>confdefs.h <<_ACEOF
14536 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14550 # Check whether user wants Kerberos 5 support
14553 # Check whether --with-kerberos5 was given.
14554 if test "${with_kerberos5+set}" = set; then :
14555 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
14556 if test "x$withval" = "xyes" ; then
14557 KRB5ROOT="/usr/local"
14559 KRB5ROOT=${withval}
14563 $as_echo "#define KRB5 1" >>confdefs.h
14567 # Extract the first word of "krb5-config", so it can be a program name with args.
14568 set dummy krb5-config; ac_word=$2
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14570 $as_echo_n "checking for $ac_word... " >&6; }
14571 if test "${ac_cv_path_KRB5CONF+set}" = set; then :
14572 $as_echo_n "(cached) " >&6
14576 ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
14579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14580 as_dummy="$KRB5ROOT/bin:$PATH"
14581 for as_dir in $as_dummy
14584 test -z "$as_dir" && as_dir=.
14585 for ac_exec_ext in '' $ac_executable_extensions; do
14586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14587 ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
14588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14595 test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config"
14599 KRB5CONF=$ac_cv_path_KRB5CONF
14600 if test -n "$KRB5CONF"; then
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5
14602 $as_echo "$KRB5CONF" >&6; }
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14605 $as_echo "no" >&6; }
14609 if test -x $KRB5CONF ; then
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5
14612 $as_echo_n "checking for gssapi support... " >&6; }
14613 if $KRB5CONF | grep gssapi >/dev/null ; then
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14615 $as_echo "yes" >&6; }
14617 $as_echo "#define GSSAPI 1" >>confdefs.h
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14622 $as_echo "no" >&6; }
14625 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
14626 K5LIBS="`$KRB5CONF --libs $k5confopts`"
14627 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
14629 $as_echo_n "checking whether we are using Heimdal... " >&6; }
14630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14631 /* end confdefs.h. */
14637 char *tmp = heimdal_version;
14642 if ac_fn_c_try_compile "$LINENO"; then :
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14644 $as_echo "yes" >&6; }
14646 $as_echo "#define HEIMDAL 1" >>confdefs.h
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14650 $as_echo "no" >&6; }
14653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14655 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
14656 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
14658 $as_echo_n "checking whether we are using Heimdal... " >&6; }
14659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14660 /* end confdefs.h. */
14666 char *tmp = heimdal_version;
14671 if ac_fn_c_try_compile "$LINENO"; then :
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14673 $as_echo "yes" >&6; }
14674 $as_echo "#define HEIMDAL 1" >>confdefs.h
14677 K5LIBS="$K5LIBS -lcom_err -lasn1"
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5
14679 $as_echo_n "checking for net_write in -lroken... " >&6; }
14680 if test "${ac_cv_lib_roken_net_write+set}" = set; then :
14681 $as_echo_n "(cached) " >&6
14683 ac_check_lib_save_LIBS=$LIBS
14684 LIBS="-lroken $LIBS"
14685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14686 /* end confdefs.h. */
14688 /* Override any GCC internal prototype to avoid an error.
14689 Use char because int might match the return type of a GCC
14690 builtin and then its argument prototype would still apply. */
14698 return net_write ();
14703 if ac_fn_c_try_link "$LINENO"; then :
14704 ac_cv_lib_roken_net_write=yes
14706 ac_cv_lib_roken_net_write=no
14708 rm -f core conftest.err conftest.$ac_objext \
14709 conftest$ac_exeext conftest.$ac_ext
14710 LIBS=$ac_check_lib_save_LIBS
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5
14713 $as_echo "$ac_cv_lib_roken_net_write" >&6; }
14714 if test "x$ac_cv_lib_roken_net_write" = x""yes; then :
14715 K5LIBS="$K5LIBS -lroken"
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14719 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14720 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14721 $as_echo_n "(cached) " >&6
14723 ac_check_lib_save_LIBS=$LIBS
14725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14726 /* end confdefs.h. */
14728 /* Override any GCC internal prototype to avoid an error.
14729 Use char because int might match the return type of a GCC
14730 builtin and then its argument prototype would still apply. */
14734 char des_cbc_encrypt ();
14738 return des_cbc_encrypt ();
14743 if ac_fn_c_try_link "$LINENO"; then :
14744 ac_cv_lib_des_des_cbc_encrypt=yes
14746 ac_cv_lib_des_des_cbc_encrypt=no
14748 rm -f core conftest.err conftest.$ac_objext \
14749 conftest$ac_exeext conftest.$ac_ext
14750 LIBS=$ac_check_lib_save_LIBS
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14753 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14754 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
14755 K5LIBS="$K5LIBS -ldes"
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14761 $as_echo "no" >&6; }
14762 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
14766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
14768 $as_echo_n "checking for library containing dn_expand... " >&6; }
14769 if test "${ac_cv_search_dn_expand+set}" = set; then :
14770 $as_echo_n "(cached) " >&6
14772 ac_func_search_save_LIBS=$LIBS
14773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14774 /* end confdefs.h. */
14776 /* Override any GCC internal prototype to avoid an error.
14777 Use char because int might match the return type of a GCC
14778 builtin and then its argument prototype would still apply. */
14786 return dn_expand ();
14791 for ac_lib in '' resolv; do
14792 if test -z "$ac_lib"; then
14793 ac_res="none required"
14796 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14798 if ac_fn_c_try_link "$LINENO"; then :
14799 ac_cv_search_dn_expand=$ac_res
14801 rm -f core conftest.err conftest.$ac_objext \
14803 if test "${ac_cv_search_dn_expand+set}" = set; then :
14807 if test "${ac_cv_search_dn_expand+set}" = set; then :
14810 ac_cv_search_dn_expand=no
14812 rm conftest.$ac_ext
14813 LIBS=$ac_func_search_save_LIBS
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
14816 $as_echo "$ac_cv_search_dn_expand" >&6; }
14817 ac_res=$ac_cv_search_dn_expand
14818 if test "$ac_res" != no; then :
14819 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5
14825 $as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; }
14826 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then :
14827 $as_echo_n "(cached) " >&6
14829 ac_check_lib_save_LIBS=$LIBS
14830 LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
14831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14832 /* end confdefs.h. */
14834 /* Override any GCC internal prototype to avoid an error.
14835 Use char because int might match the return type of a GCC
14836 builtin and then its argument prototype would still apply. */
14840 char gss_init_sec_context ();
14844 return gss_init_sec_context ();
14849 if ac_fn_c_try_link "$LINENO"; then :
14850 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
14852 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
14854 rm -f core conftest.err conftest.$ac_objext \
14855 conftest$ac_exeext conftest.$ac_ext
14856 LIBS=$ac_check_lib_save_LIBS
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
14859 $as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
14860 if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = x""yes; then :
14861 $as_echo "#define GSSAPI 1" >>confdefs.h
14863 K5LIBS="-lgssapi_krb5 $K5LIBS"
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5
14866 $as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; }
14867 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then :
14868 $as_echo_n "(cached) " >&6
14870 ac_check_lib_save_LIBS=$LIBS
14871 LIBS="-lgssapi $K5LIBS $LIBS"
14872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14873 /* end confdefs.h. */
14875 /* Override any GCC internal prototype to avoid an error.
14876 Use char because int might match the return type of a GCC
14877 builtin and then its argument prototype would still apply. */
14881 char gss_init_sec_context ();
14885 return gss_init_sec_context ();
14890 if ac_fn_c_try_link "$LINENO"; then :
14891 ac_cv_lib_gssapi_gss_init_sec_context=yes
14893 ac_cv_lib_gssapi_gss_init_sec_context=no
14895 rm -f core conftest.err conftest.$ac_objext \
14896 conftest$ac_exeext conftest.$ac_ext
14897 LIBS=$ac_check_lib_save_LIBS
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
14900 $as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
14901 if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = x""yes; then :
14902 $as_echo "#define GSSAPI 1" >>confdefs.h
14904 K5LIBS="-lgssapi $K5LIBS"
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
14907 $as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
14914 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
14915 if test "x$ac_cv_header_gssapi_h" = x""yes; then :
14918 unset ac_cv_header_gssapi_h
14919 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
14920 for ac_header in gssapi.h
14922 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
14923 if test "x$ac_cv_header_gssapi_h" = x""yes; then :
14924 cat >>confdefs.h <<_ACEOF
14925 #define HAVE_GSSAPI_H 1
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
14930 $as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
14943 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
14944 ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default"
14945 if test "x$ac_cv_header_gssapi_krb5_h" = x""yes; then :
14954 if test ! -z "$need_dash_r" ; then
14955 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
14957 if test ! -z "$blibpath" ; then
14958 blibpath="$blibpath:${KRB5ROOT}/lib"
14962 LIBS="$LIBS $K5LIBS"
14963 for ac_func in gss_localname gss_userok
14965 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14966 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14967 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14968 cat >>confdefs.h <<_ACEOF
14969 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14977 for ac_header in gssapi.h gssapi/gssapi.h gssapi/gssapi_ext.h
14979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14980 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14981 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14982 cat >>confdefs.h <<_ACEOF
14983 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14990 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
14992 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14993 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14994 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14995 cat >>confdefs.h <<_ACEOF
14996 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15003 for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
15005 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15006 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15007 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15008 cat >>confdefs.h <<_ACEOF
15009 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15017 LIBS="$LIBS $K5LIBS"
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5
15019 $as_echo_n "checking for library containing k_hasafs... " >&6; }
15020 if test "${ac_cv_search_k_hasafs+set}" = set; then :
15021 $as_echo_n "(cached) " >&6
15023 ac_func_search_save_LIBS=$LIBS
15024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15025 /* end confdefs.h. */
15027 /* Override any GCC internal prototype to avoid an error.
15028 Use char because int might match the return type of a GCC
15029 builtin and then its argument prototype would still apply. */
15037 return k_hasafs ();
15042 for ac_lib in '' kafs; do
15043 if test -z "$ac_lib"; then
15044 ac_res="none required"
15047 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15049 if ac_fn_c_try_link "$LINENO"; then :
15050 ac_cv_search_k_hasafs=$ac_res
15052 rm -f core conftest.err conftest.$ac_objext \
15054 if test "${ac_cv_search_k_hasafs+set}" = set; then :
15058 if test "${ac_cv_search_k_hasafs+set}" = set; then :
15061 ac_cv_search_k_hasafs=no
15063 rm conftest.$ac_ext
15064 LIBS=$ac_func_search_save_LIBS
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5
15067 $as_echo "$ac_cv_search_k_hasafs" >&6; }
15068 ac_res=$ac_cv_search_k_hasafs
15069 if test "$ac_res" != no; then :
15070 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15072 $as_echo "#define USE_AFS 1" >>confdefs.h
15082 # Looking for programs, paths and files
15084 PRIVSEP_PATH=/var/empty
15086 # Check whether --with-privsep-path was given.
15087 if test "${with_privsep_path+set}" = set; then :
15088 withval=$with_privsep_path;
15089 if test -n "$withval" && test "x$withval" != "xno" && \
15090 test "x${withval}" != "xyes"; then
15091 PRIVSEP_PATH=$withval
15100 # Check whether --with-xauth was given.
15101 if test "${with_xauth+set}" = set; then :
15102 withval=$with_xauth;
15103 if test -n "$withval" && test "x$withval" != "xno" && \
15104 test "x${withval}" != "xyes"; then
15105 xauth_path=$withval
15111 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
15112 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
15113 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
15114 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
15115 # Extract the first word of "xauth", so it can be a program name with args.
15116 set dummy xauth; ac_word=$2
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15118 $as_echo_n "checking for $ac_word... " >&6; }
15119 if test "${ac_cv_path_xauth_path+set}" = set; then :
15120 $as_echo_n "(cached) " >&6
15122 case $xauth_path in
15124 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
15127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15128 for as_dir in $TestPath
15131 test -z "$as_dir" && as_dir=.
15132 for ac_exec_ext in '' $ac_executable_extensions; do
15133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15134 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
15135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15145 xauth_path=$ac_cv_path_xauth_path
15146 if test -n "$xauth_path"; then
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5
15148 $as_echo "$xauth_path" >&6; }
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15151 $as_echo "no" >&6; }
15155 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
15156 xauth_path="/usr/openwin/bin/xauth"
15164 # Check whether --enable-strip was given.
15165 if test "${enable_strip+set}" = set; then :
15166 enableval=$enable_strip;
15167 if test "x$enableval" = "xno" ; then
15176 if test -z "$xauth_path" ; then
15177 XAUTH_PATH="undefined"
15181 cat >>confdefs.h <<_ACEOF
15182 #define XAUTH_PATH "$xauth_path"
15185 XAUTH_PATH=$xauth_path
15189 # Check for mail directory
15191 # Check whether --with-maildir was given.
15192 if test "${with_maildir+set}" = set; then :
15193 withval=$with_maildir;
15194 if test "X$withval" != X && test "x$withval" != xno && \
15195 test "x${withval}" != xyes; then
15197 cat >>confdefs.h <<_ACEOF
15198 #define MAIL_DIRECTORY "$withval"
15205 if test "X$maildir" != "X"; then
15206 cat >>confdefs.h <<_ACEOF
15207 #define MAIL_DIRECTORY "$maildir"
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Discovering system mail directory" >&5
15212 $as_echo_n "checking Discovering system mail directory... " >&6; }
15213 if test "$cross_compiling" = yes; then :
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5
15216 $as_echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;}
15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221 /* end confdefs.h. */
15224 #include <string.h>
15225 #ifdef HAVE_PATHS_H
15228 #ifdef HAVE_MAILLOCK_H
15229 #include <maillock.h>
15231 #define DATA "conftest.maildir"
15240 fd = fopen(DATA,"w");
15244 #if defined (_PATH_MAILDIR)
15245 if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0)
15247 #elif defined (MAILDIR)
15248 if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0)
15250 #elif defined (_PATH_MAIL)
15251 if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0)
15263 if ac_fn_c_try_run "$LINENO"; then :
15265 maildir_what=`awk -F: '{print $1}' conftest.maildir`
15266 maildir=`awk -F: '{print $2}' conftest.maildir \
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: $maildir from $maildir_what" >&5
15269 $as_echo "Using: $maildir from $maildir_what" >&6; }
15270 if test "x$maildir_what" != "x_PATH_MAILDIR"; then
15271 cat >>confdefs.h <<_ACEOF
15272 #define MAIL_DIRECTORY "$maildir"
15279 if test "X$ac_status" = "X2";then
15280 # our test program didn't find it. Default to /var/spool/mail
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: default value of /var/spool/mail" >&5
15282 $as_echo "Using: default value of /var/spool/mail" >&6; }
15283 cat >>confdefs.h <<_ACEOF
15284 #define MAIL_DIRECTORY "/var/spool/mail"
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** not found ***" >&5
15289 $as_echo "*** not found ***" >&6; }
15293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15294 conftest.$ac_objext conftest.beam conftest.$ac_ext
15303 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
15305 $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
15306 disable_ptmx_check=yes
15308 if test -z "$no_dev_ptmx" ; then
15309 if test "x$disable_ptmx_check" != "xyes" ; then
15310 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh`
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5
15312 $as_echo_n "checking for \"/dev/ptmx\"... " >&6; }
15313 if eval "test \"\${$as_ac_File+set}\"" = set; then :
15314 $as_echo_n "(cached) " >&6
15316 test "$cross_compiling" = yes &&
15317 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15318 if test -r ""/dev/ptmx""; then
15319 eval "$as_ac_File=yes"
15321 eval "$as_ac_File=no"
15324 eval ac_res=\$$as_ac_File
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15326 $as_echo "$ac_res" >&6; }
15327 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15330 cat >>confdefs.h <<_ACEOF
15331 #define HAVE_DEV_PTMX 1
15342 if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
15343 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh`
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5
15345 $as_echo_n "checking for \"/dev/ptc\"... " >&6; }
15346 if eval "test \"\${$as_ac_File+set}\"" = set; then :
15347 $as_echo_n "(cached) " >&6
15349 test "$cross_compiling" = yes &&
15350 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15351 if test -r ""/dev/ptc""; then
15352 eval "$as_ac_File=yes"
15354 eval "$as_ac_File=no"
15357 eval ac_res=\$$as_ac_File
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15359 $as_echo "$ac_res" >&6; }
15360 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15363 cat >>confdefs.h <<_ACEOF
15364 #define HAVE_DEV_PTS_AND_PTC 1
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5
15374 $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
15377 # Options from here on. Some of these are preset by platform above
15379 # Check whether --with-mantype was given.
15380 if test "${with_mantype+set}" = set; then :
15381 withval=$with_mantype;
15387 as_fn_error $? "invalid man type: $withval" "$LINENO" 5
15394 if test -z "$MANTYPE"; then
15395 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
15396 for ac_prog in nroff awf
15398 # Extract the first word of "$ac_prog", so it can be a program name with args.
15399 set dummy $ac_prog; ac_word=$2
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15401 $as_echo_n "checking for $ac_word... " >&6; }
15402 if test "${ac_cv_path_NROFF+set}" = set; then :
15403 $as_echo_n "(cached) " >&6
15407 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
15410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15411 for as_dir in $TestPath
15414 test -z "$as_dir" && as_dir=.
15415 for ac_exec_ext in '' $ac_executable_extensions; do
15416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15417 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
15418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15428 NROFF=$ac_cv_path_NROFF
15429 if test -n "$NROFF"; then
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
15431 $as_echo "$NROFF" >&6; }
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15434 $as_echo "no" >&6; }
15438 test -n "$NROFF" && break
15440 test -n "$NROFF" || NROFF="/bin/false"
15442 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
15444 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
15451 if test "$MANTYPE" = "doc"; then
15454 mansubdir=$MANTYPE;
15458 # Check whether to enable MD5 passwords
15461 # Check whether --with-md5-passwords was given.
15462 if test "${with_md5_passwords+set}" = set; then :
15463 withval=$with_md5_passwords;
15464 if test "x$withval" != "xno" ; then
15466 $as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h
15475 # Whether to disable shadow password support
15477 # Check whether --with-shadow was given.
15478 if test "${with_shadow+set}" = set; then :
15479 withval=$with_shadow;
15480 if test "x$withval" = "xno" ; then
15481 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
15490 if test -z "$disable_shadow" ; then
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5
15492 $as_echo_n "checking if the systems has expire shadow information... " >&6; }
15493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15494 /* end confdefs.h. */
15496 #include <sys/types.h>
15497 #include <shadow.h>
15503 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
15508 if ac_fn_c_try_compile "$LINENO"; then :
15509 sp_expire_available=yes
15511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15513 if test "x$sp_expire_available" = "xyes" ; then
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15515 $as_echo "yes" >&6; }
15517 $as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15521 $as_echo "no" >&6; }
15525 # Use ip address instead of hostname in $DISPLAY
15526 if test ! -z "$IPADDR_IN_DISPLAY" ; then
15527 DISPLAY_HACK_MSG="yes"
15529 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
15532 DISPLAY_HACK_MSG="no"
15534 # Check whether --with-ipaddr-display was given.
15535 if test "${with_ipaddr_display+set}" = set; then :
15536 withval=$with_ipaddr_display;
15537 if test "x$withval" != "xno" ; then
15538 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
15540 DISPLAY_HACK_MSG="yes"
15548 # check for /etc/default/login and use it if present.
15549 # Check whether --enable-etc-default-login was given.
15550 if test "${enable_etc_default_login+set}" = set; then :
15551 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5
15553 $as_echo "$as_me: /etc/default/login handling disabled" >&6;}
15554 etc_default_login=no
15556 etc_default_login=yes
15559 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5
15562 $as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
15563 etc_default_login=no
15565 etc_default_login=yes
15571 if test "x$etc_default_login" != "xno"; then
15572 as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh`
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5
15574 $as_echo_n "checking for \"/etc/default/login\"... " >&6; }
15575 if eval "test \"\${$as_ac_File+set}\"" = set; then :
15576 $as_echo_n "(cached) " >&6
15578 test "$cross_compiling" = yes &&
15579 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15580 if test -r ""/etc/default/login""; then
15581 eval "$as_ac_File=yes"
15583 eval "$as_ac_File=no"
15586 eval ac_res=\$$as_ac_File
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15588 $as_echo "$ac_res" >&6; }
15589 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15590 external_path_file=/etc/default/login
15593 if test "x$external_path_file" = "x/etc/default/login"; then
15595 $as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h
15600 if test $ac_cv_func_login_getcapbool = "yes" && \
15601 test $ac_cv_header_login_cap_h = "yes" ; then
15602 external_path_file=/etc/login.conf
15605 # Whether to mess with the default path
15606 SERVER_PATH_MSG="(default)"
15608 # Check whether --with-default-path was given.
15609 if test "${with_default_path+set}" = set; then :
15610 withval=$with_default_path;
15611 if test "x$external_path_file" = "x/etc/login.conf" ; then
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15613 --with-default-path=PATH has no effect on this system.
15614 Edit /etc/login.conf instead." >&5
15615 $as_echo "$as_me: WARNING:
15616 --with-default-path=PATH has no effect on this system.
15617 Edit /etc/login.conf instead." >&2;}
15618 elif test "x$withval" != "xno" ; then
15619 if test ! -z "$external_path_file" ; then
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15621 --with-default-path=PATH will only be used if PATH is not defined in
15622 $external_path_file ." >&5
15623 $as_echo "$as_me: WARNING:
15624 --with-default-path=PATH will only be used if PATH is not defined in
15625 $external_path_file ." >&2;}
15627 user_path="$withval"
15628 SERVER_PATH_MSG="$withval"
15632 if test "x$external_path_file" = "x/etc/login.conf" ; then
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
15634 $as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
15636 if test ! -z "$external_path_file" ; then
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15638 If PATH is defined in $external_path_file, ensure the path to scp is included,
15639 otherwise scp will not work." >&5
15640 $as_echo "$as_me: WARNING:
15641 If PATH is defined in $external_path_file, ensure the path to scp is included,
15642 otherwise scp will not work." >&2;}
15644 if test "$cross_compiling" = yes; then :
15645 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
15648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15649 /* end confdefs.h. */
15651 /* find out what STDPATH is */
15653 #ifdef HAVE_PATHS_H
15654 # include <paths.h>
15656 #ifndef _PATH_STDPATH
15657 # ifdef _PATH_USERPATH /* Irix */
15658 # define _PATH_STDPATH _PATH_USERPATH
15660 # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
15663 #include <sys/types.h>
15664 #include <sys/stat.h>
15666 #define DATA "conftest.stdpath"
15675 fd = fopen(DATA,"w");
15679 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
15688 if ac_fn_c_try_run "$LINENO"; then :
15689 user_path=`cat conftest.stdpath`
15691 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
15693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15694 conftest.$ac_objext conftest.beam conftest.$ac_ext
15697 # make sure $bindir is in USER_PATH so scp will work
15698 t_bindir=`eval echo ${bindir}`
15700 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
15703 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
15705 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
15706 if test $? -ne 0 ; then
15707 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
15708 if test $? -ne 0 ; then
15709 user_path=$user_path:$t_bindir
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5
15711 $as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; }
15718 if test "x$external_path_file" != "x/etc/login.conf" ; then
15720 cat >>confdefs.h <<_ACEOF
15721 #define USER_PATH "$user_path"
15727 # Set superuser path separately to user path
15729 # Check whether --with-superuser-path was given.
15730 if test "${with_superuser_path+set}" = set; then :
15731 withval=$with_superuser_path;
15732 if test -n "$withval" && test "x$withval" != "xno" && \
15733 test "x${withval}" != "xyes"; then
15735 cat >>confdefs.h <<_ACEOF
15736 #define SUPERUSER_PATH "$withval"
15739 superuser_path=$withval
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
15748 $as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; }
15749 IPV4_IN6_HACK_MSG="no"
15751 # Check whether --with-4in6 was given.
15752 if test "${with_4in6+set}" = set; then :
15753 withval=$with_4in6;
15754 if test "x$withval" != "xno" ; then
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15756 $as_echo "yes" >&6; }
15758 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
15760 IPV4_IN6_HACK_MSG="yes"
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15763 $as_echo "no" >&6; }
15768 if test "x$inet6_default_4in6" = "xyes"; then
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
15770 $as_echo "yes (default)" >&6; }
15771 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
15773 IPV4_IN6_HACK_MSG="yes"
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
15776 $as_echo "no (default)" >&6; }
15783 # Whether to enable BSD auth support
15786 # Check whether --with-bsd-auth was given.
15787 if test "${with_bsd_auth+set}" = set; then :
15788 withval=$with_bsd_auth;
15789 if test "x$withval" != "xno" ; then
15791 $as_echo "#define BSD_AUTH 1" >>confdefs.h
15800 # Where to place sshd.pid
15802 # make sure the directory exists
15803 if test ! -d $piddir ; then
15804 piddir=`eval echo ${sysconfdir}`
15806 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
15811 # Check whether --with-pid-dir was given.
15812 if test "${with_pid_dir+set}" = set; then :
15813 withval=$with_pid_dir;
15814 if test -n "$withval" && test "x$withval" != "xno" && \
15815 test "x${withval}" != "xyes"; then
15817 if test ! -d $piddir ; then
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5
15819 $as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
15828 cat >>confdefs.h <<_ACEOF
15829 #define _PATH_SSH_PIDDIR "$piddir"
15834 # Check whether --enable-lastlog was given.
15835 if test "${enable_lastlog+set}" = set; then :
15836 enableval=$enable_lastlog;
15837 if test "x$enableval" = "xno" ; then
15838 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
15845 # Check whether --enable-utmp was given.
15846 if test "${enable_utmp+set}" = set; then :
15847 enableval=$enable_utmp;
15848 if test "x$enableval" = "xno" ; then
15849 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
15856 # Check whether --enable-utmpx was given.
15857 if test "${enable_utmpx+set}" = set; then :
15858 enableval=$enable_utmpx;
15859 if test "x$enableval" = "xno" ; then
15861 $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
15868 # Check whether --enable-wtmp was given.
15869 if test "${enable_wtmp+set}" = set; then :
15870 enableval=$enable_wtmp;
15871 if test "x$enableval" = "xno" ; then
15872 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
15879 # Check whether --enable-wtmpx was given.
15880 if test "${enable_wtmpx+set}" = set; then :
15881 enableval=$enable_wtmpx;
15882 if test "x$enableval" = "xno" ; then
15884 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
15891 # Check whether --enable-libutil was given.
15892 if test "${enable_libutil+set}" = set; then :
15893 enableval=$enable_libutil;
15894 if test "x$enableval" = "xno" ; then
15895 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
15902 # Check whether --enable-pututline was given.
15903 if test "${enable_pututline+set}" = set; then :
15904 enableval=$enable_pututline;
15905 if test "x$enableval" = "xno" ; then
15907 $as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h
15914 # Check whether --enable-pututxline was given.
15915 if test "${enable_pututxline+set}" = set; then :
15916 enableval=$enable_pututxline;
15917 if test "x$enableval" = "xno" ; then
15919 $as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h
15927 # Check whether --with-lastlog was given.
15928 if test "${with_lastlog+set}" = set; then :
15929 withval=$with_lastlog;
15930 if test "x$withval" = "xno" ; then
15931 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
15933 elif test -n "$withval" && test "x${withval}" != "xyes"; then
15934 conf_lastlog_location=$withval
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5
15943 $as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; }
15944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15945 /* end confdefs.h. */
15947 #include <sys/types.h>
15949 #ifdef HAVE_LASTLOG_H
15950 # include <lastlog.h>
15952 #ifdef HAVE_PATHS_H
15953 # include <paths.h>
15955 #ifdef HAVE_LOGIN_H
15956 # include <login.h>
15962 char *lastlog = LASTLOG_FILE;
15967 if ac_fn_c_try_compile "$LINENO"; then :
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15969 $as_echo "yes" >&6; }
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15973 $as_echo "no" >&6; }
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5
15975 $as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; }
15976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15977 /* end confdefs.h. */
15979 #include <sys/types.h>
15981 #ifdef HAVE_LASTLOG_H
15982 # include <lastlog.h>
15984 #ifdef HAVE_PATHS_H
15985 # include <paths.h>
15991 char *lastlog = _PATH_LASTLOG;
15996 if ac_fn_c_try_compile "$LINENO"; then :
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15998 $as_echo "yes" >&6; }
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16002 $as_echo "no" >&6; }
16003 system_lastlog_path=no
16006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16011 if test -z "$conf_lastlog_location"; then
16012 if test x"$system_lastlog_path" = x"no" ; then
16013 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
16014 if (test -d "$f" || test -f "$f") ; then
16015 conf_lastlog_location=$f
16018 if test -z "$conf_lastlog_location"; then
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5
16020 $as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
16025 if test -n "$conf_lastlog_location"; then
16027 cat >>confdefs.h <<_ACEOF
16028 #define CONF_LASTLOG_FILE "$conf_lastlog_location"
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5
16034 $as_echo_n "checking if your system defines UTMP_FILE... " >&6; }
16035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16036 /* end confdefs.h. */
16038 #include <sys/types.h>
16040 #ifdef HAVE_PATHS_H
16041 # include <paths.h>
16047 char *utmp = UTMP_FILE;
16052 if ac_fn_c_try_compile "$LINENO"; then :
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16054 $as_echo "yes" >&6; }
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16057 $as_echo "no" >&6; }
16058 system_utmp_path=no
16061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16062 if test -z "$conf_utmp_location"; then
16063 if test x"$system_utmp_path" = x"no" ; then
16064 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
16065 if test -f $f ; then
16066 conf_utmp_location=$f
16069 if test -z "$conf_utmp_location"; then
16070 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
16075 if test -n "$conf_utmp_location"; then
16077 cat >>confdefs.h <<_ACEOF
16078 #define CONF_UTMP_FILE "$conf_utmp_location"
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5
16084 $as_echo_n "checking if your system defines WTMP_FILE... " >&6; }
16085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16086 /* end confdefs.h. */
16088 #include <sys/types.h>
16090 #ifdef HAVE_PATHS_H
16091 # include <paths.h>
16097 char *wtmp = WTMP_FILE;
16102 if ac_fn_c_try_compile "$LINENO"; then :
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16104 $as_echo "yes" >&6; }
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16107 $as_echo "no" >&6; }
16108 system_wtmp_path=no
16111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16112 if test -z "$conf_wtmp_location"; then
16113 if test x"$system_wtmp_path" = x"no" ; then
16114 for f in /usr/adm/wtmp /var/log/wtmp; do
16115 if test -f $f ; then
16116 conf_wtmp_location=$f
16119 if test -z "$conf_wtmp_location"; then
16120 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
16125 if test -n "$conf_wtmp_location"; then
16127 cat >>confdefs.h <<_ACEOF
16128 #define CONF_WTMP_FILE "$conf_wtmp_location"
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5
16135 $as_echo_n "checking if your system defines WTMPX_FILE... " >&6; }
16136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16137 /* end confdefs.h. */
16139 #include <sys/types.h>
16141 #ifdef HAVE_UTMPX_H
16144 #ifdef HAVE_PATHS_H
16145 # include <paths.h>
16151 char *wtmpx = WTMPX_FILE;
16156 if ac_fn_c_try_compile "$LINENO"; then :
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16158 $as_echo "yes" >&6; }
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16161 $as_echo "no" >&6; }
16162 system_wtmpx_path=no
16165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16166 if test -z "$conf_wtmpx_location"; then
16167 if test x"$system_wtmpx_path" = x"no" ; then
16168 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
16173 cat >>confdefs.h <<_ACEOF
16174 #define CONF_WTMPX_FILE "$conf_wtmpx_location"
16180 if test ! -z "$blibpath" ; then
16181 LDFLAGS="$LDFLAGS $blibflags$blibpath"
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
16183 $as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
16186 CFLAGS="$CFLAGS $werror_flags"
16188 if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
16193 ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default"
16194 if test "x$ac_cv_have_decl_BROKEN_GETADDRINFO" = x""yes; then :
16198 TEST_SSH_IPV6=$TEST_SSH_IPV6
16202 ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh"
16204 cat >confcache <<\_ACEOF
16205 # This file is a shell script that caches the results of configure
16206 # tests run on this system so they can be shared between configure
16207 # scripts and configure runs, see configure's option --config-cache.
16208 # It is not useful on other systems. If it contains results you don't
16209 # want to keep, you may remove or edit it.
16211 # config.status only pays attention to the cache file if you give it
16212 # the --recheck option to rerun configure.
16214 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16215 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16216 # following values.
16220 # The following way of writing the cache mishandles newlines in values,
16221 # but we know of no workaround that is simple, portable, and efficient.
16222 # So, we kill variables containing newlines.
16223 # Ultrix sh set writes to stderr and can't be redirected directly,
16224 # and sets the high bit in the cache file unless we assign to the vars.
16226 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16227 eval ac_val=\$$ac_var
16231 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16232 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16235 _ | IFS | as_nl) ;; #(
16236 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16237 *) { eval $ac_var=; unset $ac_var;} ;;
16243 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16244 *${as_nl}ac_space=\ *)
16245 # `set' does not quote correctly, so add quotes: double-quote
16246 # substitution turns \\\\ into \\, and sed turns \\ into \.
16249 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16252 # `set' quotes correctly as required by POSIX, so do not add quotes.
16253 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16262 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16264 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16266 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16267 if test -w "$cache_file"; then
16268 test "x$cache_file" != "x/dev/null" &&
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16270 $as_echo "$as_me: updating cache $cache_file" >&6;}
16271 cat confcache >$cache_file
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16274 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16279 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16280 # Let make expand exec_prefix.
16281 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16283 DEFS=-DHAVE_CONFIG_H
16288 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16289 # 1. Remove the extension, and $U if already installed.
16290 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16291 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16292 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16293 # will be set to the directory where LIBOBJS objects are built.
16294 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16295 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16297 LIBOBJS=$ac_libobjs
16299 LTLIBOBJS=$ac_ltlibobjs
16304 : ${CONFIG_STATUS=./config.status}
16306 ac_clean_files_save=$ac_clean_files
16307 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16309 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16311 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16313 # Generated by $as_me.
16314 # Run this file to recreate the current configuration.
16315 # Compiler output produced by configure, useful for debugging
16316 # configure, is in config.log if it exists.
16319 ac_cs_recheck=false
16322 SHELL=\${CONFIG_SHELL-$SHELL}
16325 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16326 ## -------------------- ##
16327 ## M4sh Initialization. ##
16328 ## -------------------- ##
16330 # Be more Bourne compatible
16331 DUALCASE=1; export DUALCASE # for MKS sh
16332 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16335 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16336 # is contrary to our usage. Disable this feature.
16337 alias -g '${1+"$@"}'='"$@"'
16338 setopt NO_GLOB_SUBST
16340 case `(set -o) 2>/dev/null` in #(
16352 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16353 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16354 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16355 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16356 # Prefer a ksh shell builtin over an external printf program on Solaris,
16357 # but without wasting forks for bash or zsh.
16358 if test -z "$BASH_VERSION$ZSH_VERSION" \
16359 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16360 as_echo='print -r --'
16361 as_echo_n='print -rn --'
16362 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16363 as_echo='printf %s\n'
16364 as_echo_n='printf %s'
16366 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16367 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16368 as_echo_n='/usr/ucb/echo -n'
16370 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16371 as_echo_n_body='eval
16375 expr "X$arg" : "X\\(.*\\)$as_nl";
16376 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16378 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16380 export as_echo_n_body
16381 as_echo_n='sh -c $as_echo_n_body as_echo'
16383 export as_echo_body
16384 as_echo='sh -c $as_echo_body as_echo'
16387 # The user is always right.
16388 if test "${PATH_SEPARATOR+set}" != set; then
16390 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16391 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16398 # We need space, tab and new line, in precisely that order. Quoting is
16399 # there to prevent editors from complaining about space-tab.
16400 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16401 # splitting by setting IFS to empty value.)
16404 # Find who we are. Look in the path if we contain no directory separator.
16406 *[\\/]* ) as_myself=$0 ;;
16407 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16408 for as_dir in $PATH
16411 test -z "$as_dir" && as_dir=.
16412 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16418 # We did not find ourselves, most probably we were run as `sh COMMAND'
16419 # in which case we are not to be found in the path.
16420 if test "x$as_myself" = x; then
16423 if test ! -f "$as_myself"; then
16424 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16428 # Unset variables that we do not need and which cause bugs (e.g. in
16429 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16430 # suppresses any "Segmentation fault" message there. '((' could
16431 # trigger a bug in pdksh 5.2.14.
16432 for as_var in BASH_ENV ENV MAIL MAILPATH
16433 do eval test x\${$as_var+set} = xset \
16434 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16447 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16450 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16451 # ----------------------------------------
16452 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16453 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16454 # script with STATUS, using 1 if that was 0.
16457 as_status=$1; test $as_status -eq 0 && as_status=1
16459 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16460 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16462 $as_echo "$as_me: error: $2" >&2
16463 as_fn_exit $as_status
16467 # as_fn_set_status STATUS
16468 # -----------------------
16469 # Set $? to STATUS, without forking.
16470 as_fn_set_status ()
16473 } # as_fn_set_status
16475 # as_fn_exit STATUS
16476 # -----------------
16477 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16481 as_fn_set_status $1
16487 # Portably unset VAR.
16490 { eval $1=; unset $1;}
16492 as_unset=as_fn_unset
16493 # as_fn_append VAR VALUE
16494 # ----------------------
16495 # Append the text in VALUE to the end of the definition contained in VAR. Take
16496 # advantage of any shell optimizations that allow amortized linear growth over
16497 # repeated appends, instead of the typical quadratic growth present in naive
16499 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16500 eval 'as_fn_append ()
16511 # as_fn_arith ARG...
16512 # ------------------
16513 # Perform arithmetic evaluation on the ARGs, and store the result in the
16514 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16515 # must be portable across $(()) and expr.
16516 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16517 eval 'as_fn_arith ()
16524 as_val=`expr "$@" || test $? -eq 1`
16529 if expr a : '\(a\)' >/dev/null 2>&1 &&
16530 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16536 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16537 as_basename=basename
16542 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16548 as_me=`$as_basename -- "$0" ||
16549 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16550 X"$0" : 'X\(//\)$' \| \
16551 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16553 sed '/^.*\/\([^/][^/]*\)\/*$/{
16567 # Avoid depending upon Character Ranges.
16568 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16569 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16570 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16571 as_cr_digits='0123456789'
16572 as_cr_alnum=$as_cr_Letters$as_cr_digits
16574 ECHO_C= ECHO_N= ECHO_T=
16575 case `echo -n x` in #(((((
16577 case `echo 'xy\c'` in
16578 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16580 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16587 rm -f conf$$ conf$$.exe conf$$.file
16588 if test -d conf$$.dir; then
16589 rm -f conf$$.dir/conf$$.file
16592 mkdir conf$$.dir 2>/dev/null
16594 if (echo >conf$$.file) 2>/dev/null; then
16595 if ln -s conf$$.file conf$$ 2>/dev/null; then
16597 # ... but there are two gotchas:
16598 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16599 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16600 # In both cases, we have to default to `cp -p'.
16601 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16603 elif ln conf$$.file conf$$ 2>/dev/null; then
16611 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16612 rmdir conf$$.dir 2>/dev/null
16617 # Create "$as_dir" as a directory, including parents if necessary.
16622 -*) as_dir=./$as_dir;;
16624 test -d "$as_dir" || eval $as_mkdir_p || {
16628 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16629 *) as_qdir=$as_dir;;
16631 as_dirs="'$as_qdir' $as_dirs"
16632 as_dir=`$as_dirname -- "$as_dir" ||
16633 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16634 X"$as_dir" : 'X\(//\)[^/]' \| \
16635 X"$as_dir" : 'X\(//\)$' \| \
16636 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16637 $as_echo X"$as_dir" |
16638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16642 /^X\(\/\/\)[^/].*/{
16655 test -d "$as_dir" && break
16657 test -z "$as_dirs" || eval "mkdir $as_dirs"
16658 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16662 if mkdir -p . 2>/dev/null; then
16663 as_mkdir_p='mkdir -p "$as_dir"'
16665 test -d ./-p && rmdir ./-p
16669 if test -x / >/dev/null 2>&1; then
16670 as_test_x='test -x'
16672 if ls -dL / >/dev/null 2>&1; then
16679 if test -d "$1"; then
16685 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16686 ???[sx]*):;;*)false;;esac;fi
16690 as_executable_p=$as_test_x
16692 # Sed expression to map a string onto a valid CPP name.
16693 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16695 # Sed expression to map a string onto a valid variable name.
16696 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16700 ## ----------------------------------- ##
16701 ## Main body of $CONFIG_STATUS script. ##
16702 ## ----------------------------------- ##
16704 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16707 # Save the log message, to keep $0 and so on meaningful, and to
16708 # report actual input values of CONFIG_FILES etc. instead of their
16709 # values after options handling.
16711 This file was extended by OpenSSH $as_me Portable, which was
16712 generated by GNU Autoconf 2.67. Invocation command line was
16714 CONFIG_FILES = $CONFIG_FILES
16715 CONFIG_HEADERS = $CONFIG_HEADERS
16716 CONFIG_LINKS = $CONFIG_LINKS
16717 CONFIG_COMMANDS = $CONFIG_COMMANDS
16720 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16725 case $ac_config_files in *"
16726 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16729 case $ac_config_headers in *"
16730 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16735 # Files that config.status was made for.
16736 config_files="$ac_config_files"
16737 config_headers="$ac_config_headers"
16741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16743 \`$as_me' instantiates files and other configuration actions
16744 from templates according to the current configuration. Unless the files
16745 and actions are specified as TAGs, all are instantiated by default.
16747 Usage: $0 [OPTION]... [TAG]...
16749 -h, --help print this help, then exit
16750 -V, --version print version number and configuration settings, then exit
16751 --config print configuration, then exit
16752 -q, --quiet, --silent
16753 do not print progress messages
16754 -d, --debug don't remove temporary files
16755 --recheck update $as_me by reconfiguring in the same conditions
16756 --file=FILE[:TEMPLATE]
16757 instantiate the configuration file FILE
16758 --header=FILE[:TEMPLATE]
16759 instantiate the configuration header FILE
16761 Configuration files:
16764 Configuration headers:
16767 Report bugs to <openssh-unix-dev@mindrot.org>."
16770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16771 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16773 OpenSSH config.status Portable
16774 configured by $0, generated by GNU Autoconf 2.67,
16775 with options \\"\$ac_cs_config\\"
16777 Copyright (C) 2010 Free Software Foundation, Inc.
16778 This config.status script is free software; the Free Software Foundation
16779 gives unlimited permission to copy, distribute and modify it."
16785 test -n "\$AWK" || AWK=awk
16788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16789 # The default lists apply if the user does not specify any file.
16795 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16796 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16800 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16812 # Handling of the options.
16813 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16815 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16816 $as_echo "$ac_cs_version"; exit ;;
16817 --config | --confi | --conf | --con | --co | --c )
16818 $as_echo "$ac_cs_config"; exit ;;
16819 --debug | --debu | --deb | --de | --d | -d )
16821 --file | --fil | --fi | --f )
16824 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16825 '') as_fn_error $? "missing file argument" ;;
16827 as_fn_append CONFIG_FILES " '$ac_optarg'"
16828 ac_need_defaults=false;;
16829 --header | --heade | --head | --hea )
16832 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16834 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16835 ac_need_defaults=false;;
16837 # Conflict between --help and --header
16838 as_fn_error $? "ambiguous option: \`$1'
16839 Try \`$0 --help' for more information.";;
16840 --help | --hel | -h )
16841 $as_echo "$ac_cs_usage"; exit ;;
16842 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16843 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16846 # This is an error.
16847 -*) as_fn_error $? "unrecognized option: \`$1'
16848 Try \`$0 --help' for more information." ;;
16850 *) as_fn_append ac_config_targets " $1"
16851 ac_need_defaults=false ;;
16857 ac_configure_extra_args=
16859 if $ac_cs_silent; then
16861 ac_configure_extra_args="$ac_configure_extra_args --silent"
16865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16866 if \$ac_cs_recheck; then
16867 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16869 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16870 CONFIG_SHELL='$SHELL'
16871 export CONFIG_SHELL
16876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16880 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16881 ## Running $as_me. ##
16887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16892 # Handling of arguments.
16893 for ac_config_target in $ac_config_targets
16895 case $ac_config_target in
16896 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16897 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16898 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
16899 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
16900 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
16901 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
16902 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
16903 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
16905 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
16910 # If the user did not use the arguments to specify the items to instantiate,
16911 # then the envvar interface is used. Set only those that are not.
16912 # We use the long form for the default assignment because of an extremely
16913 # bizarre bug on SunOS 4.1.3.
16914 if $ac_need_defaults; then
16915 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16916 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16919 # Have a temporary directory for convenience. Make it in the build tree
16920 # simply because there is no reason against having it here, and in addition,
16921 # creating and moving files from /tmp can sometimes cause problems.
16922 # Hook for its removal unless debugging.
16923 # Note that there is a small window in which the directory will not be cleaned:
16924 # after its creation but before its name has been assigned to `$tmp'.
16928 trap 'exit_status=$?
16929 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16931 trap 'as_fn_exit 1' 1 2 13 15
16933 # Create a (secure) tmp directory for tmp files.
16936 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16937 test -n "$tmp" && test -d "$tmp"
16940 tmp=./conf$$-$RANDOM
16941 (umask 077 && mkdir "$tmp")
16942 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16944 # Set up the scripts for CONFIG_FILES section.
16945 # No need to generate them if there are no CONFIG_FILES.
16946 # This happens for instance with `./config.status config.h'.
16947 if test -n "$CONFIG_FILES"; then
16950 ac_cr=`echo X | tr X '\015'`
16951 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16952 # But we know of no other shell where ac_cr would be empty at this
16953 # point, so we can use a bashism as a fallback.
16954 if test "x$ac_cr" = x; then
16955 eval ac_cr=\$\'\\r\'
16957 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16958 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16961 ac_cs_awk_cr=$ac_cr
16964 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16969 echo "cat >conf$$subs.awk <<_ACEOF" &&
16970 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16972 } >conf$$subs.sh ||
16973 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16974 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16976 for ac_last_try in false false false false false :; do
16977 . ./conf$$subs.sh ||
16978 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16980 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16981 if test $ac_delim_n = $ac_delim_num; then
16983 elif $ac_last_try; then
16984 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16986 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16989 rm -f conf$$subs.sh
16991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16992 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16996 s/^/S["/; s/!.*/"]=/
17006 s/\(.\{148\}\)..*/\1/
17008 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17013 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17020 s/\(.\{148\}\)..*/\1/
17022 s/["\\]/\\&/g; s/^/"/; s/$/"/
17026 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17031 ' <conf$$subs.awk | sed '
17036 ' >>$CONFIG_STATUS || ac_write_fail=1
17037 rm -f conf$$subs.awk
17038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17040 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17041 for (key in S) S_is_set[key] = 1
17047 nfields = split(line, field, "@")
17049 len = length(field[1])
17050 for (i = 2; i < nfields; i++) {
17052 keylen = length(key)
17053 if (S_is_set[key]) {
17055 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17056 len += length(value) + length(field[++i])
17067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17068 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17069 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17072 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17073 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17076 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17077 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17078 # trailing colons and then remove the whole line if VPATH becomes empty
17079 # (actually we leave an empty line to preserve line numbers).
17080 if test "x$srcdir" = x.; then
17081 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17100 fi # test -n "$CONFIG_FILES"
17102 # Set up the scripts for CONFIG_HEADERS section.
17103 # No need to generate them if there are no CONFIG_HEADERS.
17104 # This happens for instance with `./config.status Makefile'.
17105 if test -n "$CONFIG_HEADERS"; then
17106 cat >"$tmp/defines.awk" <<\_ACAWK ||
17110 # Transform confdefs.h into an awk script `defines.awk', embedded as
17111 # here-document in config.status, that substitutes the proper values into
17112 # config.h.in to produce config.h.
17114 # Create a delimiter string that does not exist in confdefs.h, to ease
17115 # handling of long lines.
17117 for ac_last_try in false false :; do
17118 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17119 if test -z "$ac_t"; then
17121 elif $ac_last_try; then
17122 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17124 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17128 # For the awk script, D is an array of macro values keyed by name,
17129 # likewise P contains macro parameters if any. Preserve backslash
17130 # newline sequences.
17132 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17134 s/.\{148\}/&'"$ac_delim"'/g
17137 s/^[ ]*#[ ]*define[ ][ ]*/ /
17144 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17146 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17150 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17151 D["\1"]=" \3\\\\\\n"\\/p
17153 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17158 s/.\{148\}/&'"$ac_delim"'/g
17163 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17166 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17168 ' <confdefs.h | sed '
17169 s/'"$ac_delim"'/"\\\
17170 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17173 for (key in D) D_is_set[key] = 1
17176 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17178 split(line, arg, " ")
17179 if (arg[1] == "#") {
17183 defundef = substr(arg[1], 2)
17186 split(mac1, mac2, "(") #)
17188 prefix = substr(line, 1, index(line, defundef) - 1)
17189 if (D_is_set[macro]) {
17190 # Preserve the white space surrounding the "#".
17191 print prefix "define", macro P[macro] D[macro]
17194 # Replace #undef with comments. This is necessary, for example,
17195 # in the case of _POSIX_SOURCE, which is predefined and required
17196 # on some systems where configure will not decide to define it.
17197 if (defundef == "undef") {
17198 print "/*", prefix defundef, macro, "*/"
17206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17207 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17208 fi # test -n "$CONFIG_HEADERS"
17211 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
17216 :[FHLC]) ac_mode=$ac_tag; continue;;
17218 case $ac_mode$ac_tag in
17220 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
17221 :[FH]-) ac_tag=-:-;;
17222 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17239 -) ac_f="$tmp/stdin";;
17240 *) # Look for the file first in the build tree, then in the source tree
17241 # (if the path is not absolute). The absolute path cannot be DOS-style,
17242 # because $ac_f cannot contain `:'.
17246 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17248 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
17250 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17251 as_fn_append ac_file_inputs " '$ac_f'"
17254 # Let's still pretend it is `configure' which instantiates (i.e., don't
17255 # use $as_me), people would be surprised to read:
17256 # /* config.h. Generated by config.status. */
17257 configure_input='Generated from '`
17258 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17260 if test x"$ac_file" != x-; then
17261 configure_input="$ac_file. $configure_input"
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17263 $as_echo "$as_me: creating $ac_file" >&6;}
17265 # Neutralize special characters interpreted by sed in replacement strings.
17266 case $configure_input in #(
17267 *\&* | *\|* | *\\* )
17268 ac_sed_conf_input=`$as_echo "$configure_input" |
17269 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17270 *) ac_sed_conf_input=$configure_input;;
17274 *:-:* | *:-) cat >"$tmp/stdin" \
17275 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17280 ac_dir=`$as_dirname -- "$ac_file" ||
17281 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17282 X"$ac_file" : 'X\(//\)[^/]' \| \
17283 X"$ac_file" : 'X\(//\)$' \| \
17284 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17285 $as_echo X"$ac_file" |
17286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17290 /^X\(\/\/\)[^/].*/{
17303 as_dir="$ac_dir"; as_fn_mkdir_p
17307 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17309 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17310 # A ".." for each directory in $ac_dir_suffix.
17311 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17312 case $ac_top_builddir_sub in
17313 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17314 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17317 ac_abs_top_builddir=$ac_pwd
17318 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17319 # for backward compatibility:
17320 ac_top_builddir=$ac_top_build_prefix
17323 .) # We are building in place.
17325 ac_top_srcdir=$ac_top_builddir_sub
17326 ac_abs_top_srcdir=$ac_pwd ;;
17327 [\\/]* | ?:[\\/]* ) # Absolute name.
17328 ac_srcdir=$srcdir$ac_dir_suffix;
17329 ac_top_srcdir=$srcdir
17330 ac_abs_top_srcdir=$srcdir ;;
17331 *) # Relative name.
17332 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17333 ac_top_srcdir=$ac_top_build_prefix$srcdir
17334 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17336 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17346 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17347 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17352 # If the template does not know about datarootdir, expand it.
17353 # FIXME: This hack should be removed a few years after 2.60.
17354 ac_datarootdir_hack=; ac_datarootdir_seen=
17365 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17366 *datarootdir*) ac_datarootdir_seen=yes;;
17367 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17369 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17372 ac_datarootdir_hack='
17373 s&@datadir@&$datadir&g
17374 s&@docdir@&$docdir&g
17375 s&@infodir@&$infodir&g
17376 s&@localedir@&$localedir&g
17377 s&@mandir@&$mandir&g
17378 s&\\\${datarootdir}&$datarootdir&g' ;;
17382 # Neutralize VPATH when `$srcdir' = `.'.
17383 # Shell code in configure.ac might set extrasub.
17384 # FIXME: do we really want to maintain this feature?
17385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17386 ac_sed_extra="$ac_vpsub
17389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17391 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17392 s|@configure_input@|$ac_sed_conf_input|;t t
17393 s&@top_builddir@&$ac_top_builddir_sub&;t t
17394 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17395 s&@srcdir@&$ac_srcdir&;t t
17396 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17397 s&@top_srcdir@&$ac_top_srcdir&;t t
17398 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17399 s&@builddir@&$ac_builddir&;t t
17400 s&@abs_builddir@&$ac_abs_builddir&;t t
17401 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17402 s&@INSTALL@&$ac_INSTALL&;t t
17403 $ac_datarootdir_hack
17405 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17406 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17408 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17409 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17410 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17412 which seems to be undefined. Please make sure it is defined" >&5
17413 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17414 which seems to be undefined. Please make sure it is defined" >&2;}
17418 -) cat "$tmp/out" && rm -f "$tmp/out";;
17419 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17421 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17427 if test x"$ac_file" != x-; then
17429 $as_echo "/* $configure_input */" \
17430 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17431 } >"$tmp/config.h" \
17432 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17433 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17435 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17438 mv "$tmp/config.h" "$ac_file" \
17439 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17442 $as_echo "/* $configure_input */" \
17443 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17444 || as_fn_error $? "could not create -" "$LINENO" 5
17456 ac_clean_files=$ac_clean_files_save
17458 test $ac_write_fail = 0 ||
17459 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17462 # configure is writing to config.log, and then calls config.status.
17463 # config.status does its own redirection, appending to config.log.
17464 # Unfortunately, on DOS this fails, as config.log is still kept open
17465 # by configure, so config.status won't be able to write to it; its
17466 # output is simply discarded. So we exec the FD to /dev/null,
17467 # effectively closing config.log, so it can be properly (re)opened and
17468 # appended to by config.status. When coming back to configure, we
17469 # need to make the FD available again.
17470 if test "$no_create" != yes; then
17472 ac_config_status_args=
17473 test "$silent" = yes &&
17474 ac_config_status_args="$ac_config_status_args --quiet"
17476 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17478 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17479 # would make configure fail if this is the last instruction.
17480 $ac_cs_success || as_fn_exit 1
17482 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17484 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17488 # Print summary of options
17490 # Someone please show me a better way :)
17491 A=`eval echo ${prefix}` ; A=`eval echo ${A}`
17492 B=`eval echo ${bindir}` ; B=`eval echo ${B}`
17493 C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
17494 D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
17495 E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
17496 F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
17497 G=`eval echo ${piddir}` ; G=`eval echo ${G}`
17498 H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
17499 I=`eval echo ${user_path}` ; I=`eval echo ${I}`
17500 J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
17503 echo "OpenSSH has been configured with the following options:"
17504 echo " User binaries: $B"
17505 echo " System binaries: $C"
17506 echo " Configuration files: $D"
17507 echo " Askpass program: $E"
17508 echo " Manual pages: $F"
17509 echo " PID file: $G"
17510 echo " Privilege separation chroot path: $H"
17511 if test "x$external_path_file" = "x/etc/login.conf" ; then
17512 echo " At runtime, sshd will use the path defined in $external_path_file"
17513 echo " Make sure the path to scp is present, otherwise scp will not work"
17515 echo " sshd default user PATH: $I"
17516 if test ! -z "$external_path_file"; then
17517 echo " (If PATH is set in $external_path_file it will be used instead. If"
17518 echo " used, ensure the path to scp is present, otherwise scp will not work.)"
17521 if test ! -z "$superuser_path" ; then
17522 echo " sshd superuser user PATH: $J"
17524 echo " Manpage format: $MANTYPE"
17525 echo " PAM support: $PAM_MSG"
17526 echo " OSF SIA support: $SIA_MSG"
17527 echo " KerberosV support: $KRB5_MSG"
17528 echo " SELinux support: $SELINUX_MSG"
17529 echo " Smartcard support: $SCARD_MSG"
17530 echo " S/KEY support: $SKEY_MSG"
17531 echo " TCP Wrappers support: $TCPW_MSG"
17532 echo " MD5 password support: $MD5_MSG"
17533 echo " libedit support: $LIBEDIT_MSG"
17534 echo " Solaris process contract support: $SPC_MSG"
17535 echo " Solaris project support: $SP_MSG"
17536 echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
17537 echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
17538 echo " BSD Auth support: $BSD_AUTH_MSG"
17539 echo " Random number source: $RAND_MSG"
17540 echo " Privsep sandbox style: $SANDBOX_STYLE"
17544 echo " Host: ${host}"
17545 echo " Compiler: ${CC}"
17546 echo " Compiler flags: ${CFLAGS}"
17547 echo "Preprocessor flags: ${CPPFLAGS}"
17548 echo " Linker flags: ${LDFLAGS}"
17549 echo " Libraries: ${LIBS}"
17550 if test ! -z "${SSHDLIBS}"; then
17551 echo " +for sshd: ${SSHDLIBS}"
17553 if test ! -z "${SSHLIBS}"; then
17554 echo " +for ssh: ${SSHLIBS}"
17559 if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
17560 echo "SVR4 style packages are supported with \"make package\""
17564 if test "x$PAM_MSG" = "xyes" ; then
17565 echo "PAM is enabled. You may need to install a PAM control file "
17566 echo "for sshd, otherwise password authentication may fail. "
17567 echo "Example PAM control files can be found in the contrib/ "
17568 echo "subdirectory"
17572 if test ! -z "$NO_PEERCHECK" ; then
17573 echo "WARNING: the operating system that you are using does not"
17574 echo "appear to support getpeereid(), getpeerucred() or the"
17575 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
17576 echo "enforce security checks to prevent unauthorised connections to"
17577 echo "ssh-agent. Their absence increases the risk that a malicious"
17578 echo "user can connect to your agent."
17582 if test "$AUDIT_MODULE" = "bsm" ; then
17583 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
17584 echo "See the Solaris section in README.platform for details."