summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure20337
1 files changed, 20337 insertions, 0 deletions
diff --git a/configure b/configure
new file mode 100755
index 000000000..ec3a98ffc
--- /dev/null
+++ b/configure
@@ -0,0 +1,20337 @@
1#! /bin/sh
2# From configure.ac Revision: 1.583 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.69 for OpenSSH Portable.
5#
6# Report bugs to <openssh-unix-dev@mindrot.org>.
7#
8#
9# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33esac
34fi
35
36
37as_nl='
38'
39export as_nl
40# Printing a long string crashes Solaris 7 /usr/bin/printf.
41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44# Prefer a ksh shell builtin over an external printf program on Solaris,
45# but without wasting forks for bash or zsh.
46if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73fi
74
75# The user is always right.
76if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82fi
83
84
85# IFS
86# We need space, tab and new line, in precisely that order. Quoting is
87# there to prevent editors from complaining about space-tab.
88# (If _AS_PATH_WALK were called with IFS unset, it would disable word
89# splitting by setting IFS to empty value.)
90IFS=" "" $as_nl"
91
92# Find who we are. Look in the path if we contain no directory separator.
93as_myself=
94case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138# Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143# neutralization value for shells without unset; and this also
144# works around shells that cannot unset nonexistent variables.
145# Preserve -v and -x to the replacement shell.
146BASH_ENV=/dev/null
147ENV=/dev/null
148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154esac
155exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156# Admittedly, this is quite paranoid, since all the known shells bail
157# out after a failed `exec'.
158$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159as_fn_exit 255
160 fi
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 emulate sh
166 NULLCMD=:
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 setopt NO_GLOB_SUBST
171else
172 case \`(set -o) 2>/dev/null\` in #(
173 *posix*) :
174 set -o posix ;; #(
175 *) :
176 ;;
177esac
178fi
179"
180 as_required="as_fn_return () { (exit \$1); }
181as_fn_success () { as_fn_return 0; }
182as_fn_failure () { as_fn_return 1; }
183as_fn_ret_success () { return 0; }
184as_fn_ret_failure () { return 1; }
185
186exitcode=0
187as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193else
194 exitcode=1; echo positional parameters were not saved.
195fi
196test x\$exitcode = x0 || exit 1
197test -x / || exit 1"
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202test \$(( 1 + 1 )) = 2 || exit 1"
203 if (eval "$as_required") 2>/dev/null; then :
204 as_have_required=yes
205else
206 as_have_required=no
207fi
208 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209
210else
211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212as_found=false
213for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214do
215 IFS=$as_save_IFS
216 test -z "$as_dir" && as_dir=.
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir/$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 CONFIG_SHELL=$as_shell as_have_required=yes
226 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
227 break 2
228fi
229fi
230 done;;
231 esac
232 as_found=false
233done
234$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
235 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237fi; }
238IFS=$as_save_IFS
239
240
241 if test "x$CONFIG_SHELL" != x; then :
242 export CONFIG_SHELL
243 # We cannot yet assume a decent shell, so we have to provide a
244# neutralization value for shells without unset; and this also
245# works around shells that cannot unset nonexistent variables.
246# Preserve -v and -x to the replacement shell.
247BASH_ENV=/dev/null
248ENV=/dev/null
249(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250case $- in # ((((
251 *v*x* | *x*v* ) as_opts=-vx ;;
252 *v* ) as_opts=-v ;;
253 *x* ) as_opts=-x ;;
254 * ) as_opts= ;;
255esac
256exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257# Admittedly, this is quite paranoid, since all the known shells bail
258# out after a failed `exec'.
259$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260exit 255
261fi
262
263 if test x$as_have_required = xno; then :
264 $as_echo "$0: This script requires a shell more modern than all"
265 $as_echo "$0: the shells that I found on your system."
266 if test x${ZSH_VERSION+set} = xset ; then
267 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 $as_echo "$0: Please tell bug-autoconf@gnu.org and
271$0: openssh-unix-dev@mindrot.org about your system,
272$0: including any error possibly output before this
273$0: message. Then install a modern shell, or manually run
274$0: the script under such a shell if you do have one."
275 fi
276 exit 1
277fi
278fi
279fi
280SHELL=${CONFIG_SHELL-/bin/sh}
281export SHELL
282# Unset more variables known to interfere with behavior of common tools.
283CLICOLOR_FORCE= GREP_OPTIONS=
284unset CLICOLOR_FORCE GREP_OPTIONS
285
286## --------------------- ##
287## M4sh Shell Functions. ##
288## --------------------- ##
289# as_fn_unset VAR
290# ---------------
291# Portably unset VAR.
292as_fn_unset ()
293{
294 { eval $1=; unset $1;}
295}
296as_unset=as_fn_unset
297
298# as_fn_set_status STATUS
299# -----------------------
300# Set $? to STATUS, without forking.
301as_fn_set_status ()
302{
303 return $1
304} # as_fn_set_status
305
306# as_fn_exit STATUS
307# -----------------
308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309as_fn_exit ()
310{
311 set +e
312 as_fn_set_status $1
313 exit $1
314} # as_fn_exit
315
316# as_fn_mkdir_p
317# -------------
318# Create "$as_dir" as a directory, including parents if necessary.
319as_fn_mkdir_p ()
320{
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338$as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362} # as_fn_mkdir_p
363
364# as_fn_executable_p FILE
365# -----------------------
366# Test if FILE is an executable regular file.
367as_fn_executable_p ()
368{
369 test -f "$1" && test -x "$1"
370} # as_fn_executable_p
371# as_fn_append VAR VALUE
372# ----------------------
373# Append the text in VALUE to the end of the definition contained in VAR. Take
374# advantage of any shell optimizations that allow amortized linear growth over
375# repeated appends, instead of the typical quadratic growth present in naive
376# implementations.
377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387fi # as_fn_append
388
389# as_fn_arith ARG...
390# ------------------
391# Perform arithmetic evaluation on the ARGs, and store the result in the
392# global $as_val. Take advantage of shells that can avoid forks. The arguments
393# must be portable across $(()) and expr.
394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404fi # as_fn_arith
405
406
407# as_fn_error STATUS ERROR [LINENO LOG_FD]
408# ----------------------------------------
409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411# script with STATUS, using 1 if that was 0.
412as_fn_error ()
413{
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421} # as_fn_error
422
423if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426else
427 as_expr=false
428fi
429
430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432else
433 as_basename=false
434fi
435
436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438else
439 as_dirname=false
440fi
441
442as_me=`$as_basename -- "$0" ||
443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446$as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461# Avoid depending upon Character Ranges.
462as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465as_cr_digits='0123456789'
466as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502}
503
504ECHO_C= ECHO_N= ECHO_T=
505case `echo -n x` in #(((((
506-n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513*)
514 ECHO_N='-n';;
515esac
516
517rm -f conf$$ conf$$.exe conf$$.file
518if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523fi
524if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538else
539 as_ln_s='cp -pR'
540fi
541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542rmdir conf$$.dir 2>/dev/null
543
544if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549fi
550
551as_test_x='test -x'
552as_executable_p=as_fn_executable_p
553
554# Sed expression to map a string onto a valid CPP name.
555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557# Sed expression to map a string onto a valid variable name.
558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561test -n "$DJDIR" || exec 7<&0 </dev/null
562exec 6>&1
563
564# Name of the host.
565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566# so uname gets run too.
567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569#
570# Initializations.
571#
572ac_default_prefix=/usr/local
573ac_clean_files=
574ac_config_libobj_dir=.
575LIBOBJS=
576cross_compiling=no
577subdirs=
578MFLAGS=
579MAKEFLAGS=
580
581# Identity of this package.
582PACKAGE_NAME='OpenSSH'
583PACKAGE_TARNAME='openssh'
584PACKAGE_VERSION='Portable'
585PACKAGE_STRING='OpenSSH Portable'
586PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
587PACKAGE_URL=''
588
589ac_unique_file="ssh.c"
590# Factoring default headers for most tests.
591ac_includes_default="\
592#include <stdio.h>
593#ifdef HAVE_SYS_TYPES_H
594# include <sys/types.h>
595#endif
596#ifdef HAVE_SYS_STAT_H
597# include <sys/stat.h>
598#endif
599#ifdef STDC_HEADERS
600# include <stdlib.h>
601# include <stddef.h>
602#else
603# ifdef HAVE_STDLIB_H
604# include <stdlib.h>
605# endif
606#endif
607#ifdef HAVE_STRING_H
608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609# include <memory.h>
610# endif
611# include <string.h>
612#endif
613#ifdef HAVE_STRINGS_H
614# include <strings.h>
615#endif
616#ifdef HAVE_INTTYPES_H
617# include <inttypes.h>
618#endif
619#ifdef HAVE_STDINT_H
620# include <stdint.h>
621#endif
622#ifdef HAVE_UNISTD_H
623# include <unistd.h>
624#endif"
625
626ac_subst_vars='LTLIBOBJS
627LIBOBJS
628UNSUPPORTED_ALGORITHMS
629TEST_MALLOC_OPTIONS
630TEST_SSH_UTF8
631TEST_SSH_IPV6
632piddir
633user_path
634mansubdir
635MANTYPE
636XAUTH_PATH
637STRIP_OPT
638xauth_path
639PRIVSEP_PATH
640K5LIBS
641GSSLIBS
642KRB5CONF
643SSHDLIBS
644SSHLIBS
645SSH_PRIVSEP_USER
646COMMENT_OUT_ECC
647TEST_SSH_ECC
648LIBEDIT
649PKGCONFIG
650COMMENT_OUT_RSA1
651LD
652PATH_PASSWD_PROG
653STARTUP_SCRIPT_SHELL
654MAKE_PACKAGE_SUPPORTED
655PATH_USERADD_PROG
656PATH_GROUPADD_PROG
657MANFMT
658TEST_SHELL
659MANDOC
660NROFF
661GROFF
662SH
663TEST_MINUS_S_SH
664ENT
665SED
666PERL
667KILL
668CAT
669ac_ct_AR
670AR
671INSTALL_DATA
672INSTALL_SCRIPT
673INSTALL_PROGRAM
674RANLIB
675AWK
676EGREP
677GREP
678CPP
679host_os
680host_vendor
681host_cpu
682host
683build_os
684build_vendor
685build_cpu
686build
687OBJEXT
688EXEEXT
689ac_ct_CC
690CPPFLAGS
691LDFLAGS
692CFLAGS
693CC
694target_alias
695host_alias
696build_alias
697LIBS
698ECHO_T
699ECHO_N
700ECHO_C
701DEFS
702mandir
703localedir
704libdir
705psdir
706pdfdir
707dvidir
708htmldir
709infodir
710docdir
711oldincludedir
712includedir
713localstatedir
714sharedstatedir
715sysconfdir
716datadir
717datarootdir
718libexecdir
719sbindir
720bindir
721program_transform_name
722prefix
723exec_prefix
724PACKAGE_URL
725PACKAGE_BUGREPORT
726PACKAGE_STRING
727PACKAGE_VERSION
728PACKAGE_TARNAME
729PACKAGE_NAME
730PATH_SEPARATOR
731SHELL'
732ac_subst_files=''
733ac_user_opts='
734enable_option_checking
735enable_largefile
736with_openssl
737with_ssh1
738with_stackprotect
739with_hardening
740with_rpath
741with_cflags
742with_cppflags
743with_ldflags
744with_libs
745with_Werror
746with_solaris_contracts
747with_solaris_projects
748with_solaris_privs
749with_osfsia
750with_zlib
751with_zlib_version_check
752with_skey
753with_ldns
754with_libedit
755with_audit
756with_pie
757enable_pkcs11
758with_ssl_dir
759with_openssl_header_check
760with_ssl_engine
761with_prngd_port
762with_prngd_socket
763with_pam
764with_pam_service
765with_privsep_user
766with_sandbox
767with_selinux
768with_kerberos5
769with_privsep_path
770with_xauth
771enable_strip
772with_maildir
773with_mantype
774with_md5_passwords
775with_shadow
776with_ipaddr_display
777enable_etc_default_login
778with_default_path
779with_superuser_path
780with_4in6
781with_bsd_auth
782with_pid_dir
783enable_lastlog
784enable_utmp
785enable_utmpx
786enable_wtmp
787enable_wtmpx
788enable_libutil
789enable_pututline
790enable_pututxline
791with_lastlog
792'
793 ac_precious_vars='build_alias
794host_alias
795target_alias
796CC
797CFLAGS
798LDFLAGS
799LIBS
800CPPFLAGS
801CPP'
802
803
804# Initialize some variables set by options.
805ac_init_help=
806ac_init_version=false
807ac_unrecognized_opts=
808ac_unrecognized_sep=
809# The variables have the same names as the options, with
810# dashes changed to underlines.
811cache_file=/dev/null
812exec_prefix=NONE
813no_create=
814no_recursion=
815prefix=NONE
816program_prefix=NONE
817program_suffix=NONE
818program_transform_name=s,x,x,
819silent=
820site=
821srcdir=
822verbose=
823x_includes=NONE
824x_libraries=NONE
825
826# Installation directory options.
827# These are left unexpanded so users can "make install exec_prefix=/foo"
828# and all the variables that are supposed to be based on exec_prefix
829# by default will actually change.
830# Use braces instead of parens because sh, perl, etc. also accept them.
831# (The list follows the same order as the GNU Coding Standards.)
832bindir='${exec_prefix}/bin'
833sbindir='${exec_prefix}/sbin'
834libexecdir='${exec_prefix}/libexec'
835datarootdir='${prefix}/share'
836datadir='${datarootdir}'
837sysconfdir='${prefix}/etc'
838sharedstatedir='${prefix}/com'
839localstatedir='${prefix}/var'
840includedir='${prefix}/include'
841oldincludedir='/usr/include'
842docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
843infodir='${datarootdir}/info'
844htmldir='${docdir}'
845dvidir='${docdir}'
846pdfdir='${docdir}'
847psdir='${docdir}'
848libdir='${exec_prefix}/lib'
849localedir='${datarootdir}/locale'
850mandir='${datarootdir}/man'
851
852ac_prev=
853ac_dashdash=
854for ac_option
855do
856 # If the previous option needs an argument, assign it.
857 if test -n "$ac_prev"; then
858 eval $ac_prev=\$ac_option
859 ac_prev=
860 continue
861 fi
862
863 case $ac_option in
864 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
865 *=) ac_optarg= ;;
866 *) ac_optarg=yes ;;
867 esac
868
869 # Accept the important Cygnus configure options, so we can diagnose typos.
870
871 case $ac_dashdash$ac_option in
872 --)
873 ac_dashdash=yes ;;
874
875 -bindir | --bindir | --bindi | --bind | --bin | --bi)
876 ac_prev=bindir ;;
877 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
878 bindir=$ac_optarg ;;
879
880 -build | --build | --buil | --bui | --bu)
881 ac_prev=build_alias ;;
882 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
883 build_alias=$ac_optarg ;;
884
885 -cache-file | --cache-file | --cache-fil | --cache-fi \
886 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
887 ac_prev=cache_file ;;
888 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
889 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
890 cache_file=$ac_optarg ;;
891
892 --config-cache | -C)
893 cache_file=config.cache ;;
894
895 -datadir | --datadir | --datadi | --datad)
896 ac_prev=datadir ;;
897 -datadir=* | --datadir=* | --datadi=* | --datad=*)
898 datadir=$ac_optarg ;;
899
900 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
901 | --dataroo | --dataro | --datar)
902 ac_prev=datarootdir ;;
903 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
904 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
905 datarootdir=$ac_optarg ;;
906
907 -disable-* | --disable-*)
908 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911 as_fn_error $? "invalid feature name: $ac_useropt"
912 ac_useropt_orig=$ac_useropt
913 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914 case $ac_user_opts in
915 *"
916"enable_$ac_useropt"
917"*) ;;
918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
919 ac_unrecognized_sep=', ';;
920 esac
921 eval enable_$ac_useropt=no ;;
922
923 -docdir | --docdir | --docdi | --doc | --do)
924 ac_prev=docdir ;;
925 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
926 docdir=$ac_optarg ;;
927
928 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
929 ac_prev=dvidir ;;
930 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
931 dvidir=$ac_optarg ;;
932
933 -enable-* | --enable-*)
934 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937 as_fn_error $? "invalid feature name: $ac_useropt"
938 ac_useropt_orig=$ac_useropt
939 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
941 *"
942"enable_$ac_useropt"
943"*) ;;
944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
945 ac_unrecognized_sep=', ';;
946 esac
947 eval enable_$ac_useropt=\$ac_optarg ;;
948
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
957
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
960 with_gas=yes ;;
961
962 -help | --help | --hel | --he | -h)
963 ac_init_help=long ;;
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
968
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
973
974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 ac_prev=htmldir ;;
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 | --ht=*)
978 htmldir=$ac_optarg ;;
979
980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
986
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 ac_prev=infodir ;;
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
991
992 -libdir | --libdir | --libdi | --libd)
993 ac_prev=libdir ;;
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 libdir=$ac_optarg ;;
996
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1003
1004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1008
1009 -localstatedir | --localstatedir | --localstatedi | --localstated \
1010 | --localstate | --localstat | --localsta | --localst | --locals)
1011 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014 localstatedir=$ac_optarg ;;
1015
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 ac_prev=mandir ;;
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1020
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1023 with_fp=no ;;
1024
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1027 no_create=yes ;;
1028
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 no_recursion=yes ;;
1032
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1041
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 ac_prev=prefix ;;
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1046
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1053
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1060
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1077
1078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 ac_prev=pdfdir ;;
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1082
1083 -psdir | --psdir | --psdi | --psd | --ps)
1084 ac_prev=psdir ;;
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 psdir=$ac_optarg ;;
1087
1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1090 silent=yes ;;
1091
1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093 ac_prev=sbindir ;;
1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095 | --sbi=* | --sb=*)
1096 sbindir=$ac_optarg ;;
1097
1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100 | --sharedst | --shareds | --shared | --share | --shar \
1101 | --sha | --sh)
1102 ac_prev=sharedstatedir ;;
1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106 | --sha=* | --sh=*)
1107 sharedstatedir=$ac_optarg ;;
1108
1109 -site | --site | --sit)
1110 ac_prev=site ;;
1111 -site=* | --site=* | --sit=*)
1112 site=$ac_optarg ;;
1113
1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115 ac_prev=srcdir ;;
1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117 srcdir=$ac_optarg ;;
1118
1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120 | --syscon | --sysco | --sysc | --sys | --sy)
1121 ac_prev=sysconfdir ;;
1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124 sysconfdir=$ac_optarg ;;
1125
1126 -target | --target | --targe | --targ | --tar | --ta | --t)
1127 ac_prev=target_alias ;;
1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129 target_alias=$ac_optarg ;;
1130
1131 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 verbose=yes ;;
1133
1134 -version | --version | --versio | --versi | --vers | -V)
1135 ac_init_version=: ;;
1136
1137 -with-* | --with-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error $? "invalid package name: $ac_useropt"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1145 *"
1146"with_$ac_useropt"
1147"*) ;;
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1150 esac
1151 eval with_$ac_useropt=\$ac_optarg ;;
1152
1153 -without-* | --without-*)
1154 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 as_fn_error $? "invalid package name: $ac_useropt"
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1161 *"
1162"with_$ac_useropt"
1163"*) ;;
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1166 esac
1167 eval with_$ac_useropt=no ;;
1168
1169 --x)
1170 # Obsolete; use --with-x.
1171 with_x=yes ;;
1172
1173 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1174 | --x-incl | --x-inc | --x-in | --x-i)
1175 ac_prev=x_includes ;;
1176 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1177 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1178 x_includes=$ac_optarg ;;
1179
1180 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1181 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1182 ac_prev=x_libraries ;;
1183 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1184 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1185 x_libraries=$ac_optarg ;;
1186
1187 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1188Try \`$0 --help' for more information"
1189 ;;
1190
1191 *=*)
1192 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193 # Reject names that are not valid shell variable names.
1194 case $ac_envvar in #(
1195 '' | [0-9]* | *[!_$as_cr_alnum]* )
1196 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1197 esac
1198 eval $ac_envvar=\$ac_optarg
1199 export $ac_envvar ;;
1200
1201 *)
1202 # FIXME: should be removed in autoconf 3.0.
1203 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1204 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1205 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1206 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1207 ;;
1208
1209 esac
1210done
1211
1212if test -n "$ac_prev"; then
1213 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1214 as_fn_error $? "missing argument to $ac_option"
1215fi
1216
1217if test -n "$ac_unrecognized_opts"; then
1218 case $enable_option_checking in
1219 no) ;;
1220 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1221 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1222 esac
1223fi
1224
1225# Check all directory arguments for consistency.
1226for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1227 datadir sysconfdir sharedstatedir localstatedir includedir \
1228 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1229 libdir localedir mandir
1230do
1231 eval ac_val=\$$ac_var
1232 # Remove trailing slashes.
1233 case $ac_val in
1234 */ )
1235 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1236 eval $ac_var=\$ac_val;;
1237 esac
1238 # Be sure to have absolute directory names.
1239 case $ac_val in
1240 [\\/$]* | ?:[\\/]* ) continue;;
1241 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1242 esac
1243 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1244done
1245
1246# There might be people who depend on the old broken behavior: `$host'
1247# used to hold the argument of --host etc.
1248# FIXME: To remove some day.
1249build=$build_alias
1250host=$host_alias
1251target=$target_alias
1252
1253# FIXME: To remove some day.
1254if test "x$host_alias" != x; then
1255 if test "x$build_alias" = x; then
1256 cross_compiling=maybe
1257 elif test "x$build_alias" != "x$host_alias"; then
1258 cross_compiling=yes
1259 fi
1260fi
1261
1262ac_tool_prefix=
1263test -n "$host_alias" && ac_tool_prefix=$host_alias-
1264
1265test "$silent" = yes && exec 6>/dev/null
1266
1267
1268ac_pwd=`pwd` && test -n "$ac_pwd" &&
1269ac_ls_di=`ls -di .` &&
1270ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1271 as_fn_error $? "working directory cannot be determined"
1272test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1273 as_fn_error $? "pwd does not report name of working directory"
1274
1275
1276# Find the source files, if location was not specified.
1277if test -z "$srcdir"; then
1278 ac_srcdir_defaulted=yes
1279 # Try the directory containing this script, then the parent directory.
1280 ac_confdir=`$as_dirname -- "$as_myself" ||
1281$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1282 X"$as_myself" : 'X\(//\)[^/]' \| \
1283 X"$as_myself" : 'X\(//\)$' \| \
1284 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1285$as_echo X"$as_myself" |
1286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287 s//\1/
1288 q
1289 }
1290 /^X\(\/\/\)[^/].*/{
1291 s//\1/
1292 q
1293 }
1294 /^X\(\/\/\)$/{
1295 s//\1/
1296 q
1297 }
1298 /^X\(\/\).*/{
1299 s//\1/
1300 q
1301 }
1302 s/.*/./; q'`
1303 srcdir=$ac_confdir
1304 if test ! -r "$srcdir/$ac_unique_file"; then
1305 srcdir=..
1306 fi
1307else
1308 ac_srcdir_defaulted=no
1309fi
1310if test ! -r "$srcdir/$ac_unique_file"; then
1311 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1312 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1313fi
1314ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1315ac_abs_confdir=`(
1316 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1317 pwd)`
1318# When building in place, set srcdir=.
1319if test "$ac_abs_confdir" = "$ac_pwd"; then
1320 srcdir=.
1321fi
1322# Remove unnecessary trailing slashes from srcdir.
1323# Double slashes in file names in object file debugging info
1324# mess up M-x gdb in Emacs.
1325case $srcdir in
1326*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1327esac
1328for ac_var in $ac_precious_vars; do
1329 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_env_${ac_var}_value=\$${ac_var}
1331 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1332 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1333done
1334
1335#
1336# Report the --help message.
1337#
1338if test "$ac_init_help" = "long"; then
1339 # Omit some internal or obsolete options to make the list less imposing.
1340 # This message is too long to be a string in the A/UX 3.1 sh.
1341 cat <<_ACEOF
1342\`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1343
1344Usage: $0 [OPTION]... [VAR=VALUE]...
1345
1346To assign environment variables (e.g., CC, CFLAGS...), specify them as
1347VAR=VALUE. See below for descriptions of some of the useful variables.
1348
1349Defaults for the options are specified in brackets.
1350
1351Configuration:
1352 -h, --help display this help and exit
1353 --help=short display options specific to this package
1354 --help=recursive display the short help of all the included packages
1355 -V, --version display version information and exit
1356 -q, --quiet, --silent do not print \`checking ...' messages
1357 --cache-file=FILE cache test results in FILE [disabled]
1358 -C, --config-cache alias for \`--cache-file=config.cache'
1359 -n, --no-create do not create output files
1360 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1361
1362Installation directories:
1363 --prefix=PREFIX install architecture-independent files in PREFIX
1364 [$ac_default_prefix]
1365 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1366 [PREFIX]
1367
1368By default, \`make install' will install all the files in
1369\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1370an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1371for instance \`--prefix=\$HOME'.
1372
1373For better control, use the options below.
1374
1375Fine tuning of the installation directories:
1376 --bindir=DIR user executables [EPREFIX/bin]
1377 --sbindir=DIR system admin executables [EPREFIX/sbin]
1378 --libexecdir=DIR program executables [EPREFIX/libexec]
1379 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1380 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1381 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1382 --libdir=DIR object code libraries [EPREFIX/lib]
1383 --includedir=DIR C header files [PREFIX/include]
1384 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1385 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1386 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1387 --infodir=DIR info documentation [DATAROOTDIR/info]
1388 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1389 --mandir=DIR man documentation [DATAROOTDIR/man]
1390 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1391 --htmldir=DIR html documentation [DOCDIR]
1392 --dvidir=DIR dvi documentation [DOCDIR]
1393 --pdfdir=DIR pdf documentation [DOCDIR]
1394 --psdir=DIR ps documentation [DOCDIR]
1395_ACEOF
1396
1397 cat <<\_ACEOF
1398
1399System types:
1400 --build=BUILD configure for building on BUILD [guessed]
1401 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1402_ACEOF
1403fi
1404
1405if test -n "$ac_init_help"; then
1406 case $ac_init_help in
1407 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1408 esac
1409 cat <<\_ACEOF
1410
1411Optional Features:
1412 --disable-option-checking ignore unrecognized --enable/--with options
1413 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1414 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1415 --disable-largefile omit support for large files
1416 --disable-pkcs11 disable PKCS#11 support code [no]
1417 --disable-strip Disable calling strip(1) on install
1418 --disable-etc-default-login Disable using PATH from /etc/default/login no
1419 --disable-lastlog disable use of lastlog even if detected no
1420 --disable-utmp disable use of utmp even if detected no
1421 --disable-utmpx disable use of utmpx even if detected no
1422 --disable-wtmp disable use of wtmp even if detected no
1423 --disable-wtmpx disable use of wtmpx even if detected no
1424 --disable-libutil disable use of libutil (login() etc.) no
1425 --disable-pututline disable use of pututline() etc. (uwtmp) no
1426 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1427
1428Optional Packages:
1429 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1430 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1431 --without-openssl Disable use of OpenSSL; use only limited internal crypto **EXPERIMENTAL**
1432 --with-ssh1 Enable support for SSH protocol 1
1433 --without-stackprotect Don't use compiler's stack protection
1434 --without-hardening Don't use toolchain hardening flags
1435 --without-rpath Disable auto-added -R linker paths
1436 --with-cflags Specify additional flags to pass to compiler
1437 --with-cppflags Specify additional flags to pass to preprocessor
1438 --with-ldflags Specify additional flags to pass to linker
1439 --with-libs Specify additional libraries to link with
1440 --with-Werror Build main code with -Werror
1441 --with-solaris-contracts Enable Solaris process contracts (experimental)
1442 --with-solaris-projects Enable Solaris projects (experimental)
1443 --with-solaris-privs Enable Solaris/Illumos privileges (experimental)
1444 --with-osfsia Enable Digital Unix SIA
1445 --with-zlib=PATH Use zlib in PATH
1446 --without-zlib-version-check Disable zlib version check
1447 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1448 --with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH)
1449 --with-libedit[=PATH] Enable libedit support for sftp
1450 --with-audit=module Enable audit support (modules=debug,bsm,linux)
1451 --with-pie Build Position Independent Executables if possible
1452 --with-ssl-dir=PATH Specify path to OpenSSL installation
1453 --without-openssl-header-check Disable OpenSSL version consistency check
1454 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1455 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1456 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1457 --with-pam Enable PAM support
1458 --with-pam-service=name Specify PAM service name
1459 --with-privsep-user=user Specify non-privileged user for privilege separation
1460 --with-sandbox=style Specify privilege separation sandbox (no, capsicum, darwin, rlimit, seccomp_filter, systrace, pledge)
1461 --with-selinux Enable SELinux support
1462 --with-kerberos5=PATH Enable Kerberos 5 support
1463 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1464 --with-xauth=PATH Specify path to xauth program
1465 --with-maildir=/path/to/mail Specify your system mail directory
1466 --with-mantype=man|cat|doc Set man page type
1467 --with-md5-passwords Enable use of MD5 passwords
1468 --without-shadow Disable shadow password support
1469 --with-ipaddr-display Use ip address instead of hostname in $DISPLAY
1470 --with-default-path= Specify default $PATH environment for server
1471 --with-superuser-path= Specify different path for super-user
1472 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1473 --with-bsd-auth Enable BSD auth support
1474 --with-pid-dir=PATH Specify location of ssh.pid file
1475 --with-lastlog=FILE|DIR specify lastlog location common locations
1476
1477Some influential environment variables:
1478 CC C compiler command
1479 CFLAGS C compiler flags
1480 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1481 nonstandard directory <lib dir>
1482 LIBS libraries to pass to the linker, e.g. -l<library>
1483 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1484 you have headers in a nonstandard directory <include dir>
1485 CPP C preprocessor
1486
1487Use these variables to override the choices made by `configure' or to help
1488it to find libraries and programs with nonstandard names/locations.
1489
1490Report bugs to <openssh-unix-dev@mindrot.org>.
1491_ACEOF
1492ac_status=$?
1493fi
1494
1495if test "$ac_init_help" = "recursive"; then
1496 # If there are subdirs, report their specific --help.
1497 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1498 test -d "$ac_dir" ||
1499 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1500 continue
1501 ac_builddir=.
1502
1503case "$ac_dir" in
1504.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505*)
1506 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1507 # A ".." for each directory in $ac_dir_suffix.
1508 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1509 case $ac_top_builddir_sub in
1510 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1512 esac ;;
1513esac
1514ac_abs_top_builddir=$ac_pwd
1515ac_abs_builddir=$ac_pwd$ac_dir_suffix
1516# for backward compatibility:
1517ac_top_builddir=$ac_top_build_prefix
1518
1519case $srcdir in
1520 .) # We are building in place.
1521 ac_srcdir=.
1522 ac_top_srcdir=$ac_top_builddir_sub
1523 ac_abs_top_srcdir=$ac_pwd ;;
1524 [\\/]* | ?:[\\/]* ) # Absolute name.
1525 ac_srcdir=$srcdir$ac_dir_suffix;
1526 ac_top_srcdir=$srcdir
1527 ac_abs_top_srcdir=$srcdir ;;
1528 *) # Relative name.
1529 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1530 ac_top_srcdir=$ac_top_build_prefix$srcdir
1531 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1532esac
1533ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1534
1535 cd "$ac_dir" || { ac_status=$?; continue; }
1536 # Check for guested configure.
1537 if test -f "$ac_srcdir/configure.gnu"; then
1538 echo &&
1539 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1540 elif test -f "$ac_srcdir/configure"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure" --help=recursive
1543 else
1544 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1545 fi || ac_status=$?
1546 cd "$ac_pwd" || { ac_status=$?; break; }
1547 done
1548fi
1549
1550test -n "$ac_init_help" && exit $ac_status
1551if $ac_init_version; then
1552 cat <<\_ACEOF
1553OpenSSH configure Portable
1554generated by GNU Autoconf 2.69
1555
1556Copyright (C) 2012 Free Software Foundation, Inc.
1557This configure script is free software; the Free Software Foundation
1558gives unlimited permission to copy, distribute and modify it.
1559_ACEOF
1560 exit
1561fi
1562
1563## ------------------------ ##
1564## Autoconf initialization. ##
1565## ------------------------ ##
1566
1567# ac_fn_c_try_compile LINENO
1568# --------------------------
1569# Try to compile conftest.$ac_ext, and return whether this succeeded.
1570ac_fn_c_try_compile ()
1571{
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 rm -f conftest.$ac_objext
1574 if { { ac_try="$ac_compile"
1575case "(($ac_try" in
1576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577 *) ac_try_echo=$ac_try;;
1578esac
1579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580$as_echo "$ac_try_echo"; } >&5
1581 (eval "$ac_compile") 2>conftest.err
1582 ac_status=$?
1583 if test -s conftest.err; then
1584 grep -v '^ *+' conftest.err >conftest.er1
1585 cat conftest.er1 >&5
1586 mv -f conftest.er1 conftest.err
1587 fi
1588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589 test $ac_status = 0; } && {
1590 test -z "$ac_c_werror_flag" ||
1591 test ! -s conftest.err
1592 } && test -s conftest.$ac_objext; then :
1593 ac_retval=0
1594else
1595 $as_echo "$as_me: failed program was:" >&5
1596sed 's/^/| /' conftest.$ac_ext >&5
1597
1598 ac_retval=1
1599fi
1600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601 as_fn_set_status $ac_retval
1602
1603} # ac_fn_c_try_compile
1604
1605# ac_fn_c_try_run LINENO
1606# ----------------------
1607# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1608# that executables *can* be run.
1609ac_fn_c_try_run ()
1610{
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 if { { ac_try="$ac_link"
1613case "(($ac_try" in
1614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615 *) ac_try_echo=$ac_try;;
1616esac
1617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618$as_echo "$ac_try_echo"; } >&5
1619 (eval "$ac_link") 2>&5
1620 ac_status=$?
1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1623 { { case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1626esac
1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628$as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_try") 2>&5
1630 ac_status=$?
1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; }; }; then :
1633 ac_retval=0
1634else
1635 $as_echo "$as_me: program exited with status $ac_status" >&5
1636 $as_echo "$as_me: failed program was:" >&5
1637sed 's/^/| /' conftest.$ac_ext >&5
1638
1639 ac_retval=$ac_status
1640fi
1641 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643 as_fn_set_status $ac_retval
1644
1645} # ac_fn_c_try_run
1646
1647# ac_fn_c_try_cpp LINENO
1648# ----------------------
1649# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1650ac_fn_c_try_cpp ()
1651{
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 if { { ac_try="$ac_cpp conftest.$ac_ext"
1654case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657esac
1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659$as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1661 ac_status=$?
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1666 fi
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } > conftest.i && {
1669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1670 test ! -s conftest.err
1671 }; then :
1672 ac_retval=0
1673else
1674 $as_echo "$as_me: failed program was:" >&5
1675sed 's/^/| /' conftest.$ac_ext >&5
1676
1677 ac_retval=1
1678fi
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680 as_fn_set_status $ac_retval
1681
1682} # ac_fn_c_try_cpp
1683
1684# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1685# -------------------------------------------------------
1686# Tests whether HEADER exists and can be compiled using the include files in
1687# INCLUDES, setting the cache variable VAR accordingly.
1688ac_fn_c_check_header_compile ()
1689{
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692$as_echo_n "checking for $2... " >&6; }
1693if eval \${$3+:} false; then :
1694 $as_echo_n "(cached) " >&6
1695else
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697/* end confdefs.h. */
1698$4
1699#include <$2>
1700_ACEOF
1701if ac_fn_c_try_compile "$LINENO"; then :
1702 eval "$3=yes"
1703else
1704 eval "$3=no"
1705fi
1706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1707fi
1708eval ac_res=\$$3
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1710$as_echo "$ac_res" >&6; }
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712
1713} # ac_fn_c_check_header_compile
1714
1715# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1716# ---------------------------------------------
1717# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1718# accordingly.
1719ac_fn_c_check_decl ()
1720{
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 as_decl_name=`echo $2|sed 's/ *(.*//'`
1723 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1725$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1726if eval \${$3+:} false; then :
1727 $as_echo_n "(cached) " >&6
1728else
1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730/* end confdefs.h. */
1731$4
1732int
1733main ()
1734{
1735#ifndef $as_decl_name
1736#ifdef __cplusplus
1737 (void) $as_decl_use;
1738#else
1739 (void) $as_decl_name;
1740#endif
1741#endif
1742
1743 ;
1744 return 0;
1745}
1746_ACEOF
1747if ac_fn_c_try_compile "$LINENO"; then :
1748 eval "$3=yes"
1749else
1750 eval "$3=no"
1751fi
1752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1753fi
1754eval ac_res=\$$3
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756$as_echo "$ac_res" >&6; }
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758
1759} # ac_fn_c_check_decl
1760
1761# ac_fn_c_try_link LINENO
1762# -----------------------
1763# Try to link conftest.$ac_ext, and return whether this succeeded.
1764ac_fn_c_try_link ()
1765{
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 rm -f conftest.$ac_objext conftest$ac_exeext
1768 if { { ac_try="$ac_link"
1769case "(($ac_try" in
1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771 *) ac_try_echo=$ac_try;;
1772esac
1773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774$as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_link") 2>conftest.err
1776 ac_status=$?
1777 if test -s conftest.err; then
1778 grep -v '^ *+' conftest.err >conftest.er1
1779 cat conftest.er1 >&5
1780 mv -f conftest.er1 conftest.err
1781 fi
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; } && {
1784 test -z "$ac_c_werror_flag" ||
1785 test ! -s conftest.err
1786 } && test -s conftest$ac_exeext && {
1787 test "$cross_compiling" = yes ||
1788 test -x conftest$ac_exeext
1789 }; then :
1790 ac_retval=0
1791else
1792 $as_echo "$as_me: failed program was:" >&5
1793sed 's/^/| /' conftest.$ac_ext >&5
1794
1795 ac_retval=1
1796fi
1797 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1798 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1799 # interfere with the next link command; also delete a directory that is
1800 # left behind by Apple's compiler. We do this before executing the actions.
1801 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 as_fn_set_status $ac_retval
1804
1805} # ac_fn_c_try_link
1806
1807# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1808# -------------------------------------------------------
1809# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1810# the include files in INCLUDES and setting the cache variable VAR
1811# accordingly.
1812ac_fn_c_check_header_mongrel ()
1813{
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 if eval \${$3+:} false; then :
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817$as_echo_n "checking for $2... " >&6; }
1818if eval \${$3+:} false; then :
1819 $as_echo_n "(cached) " >&6
1820fi
1821eval ac_res=\$$3
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823$as_echo "$ac_res" >&6; }
1824else
1825 # Is the header compilable?
1826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1827$as_echo_n "checking $2 usability... " >&6; }
1828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829/* end confdefs.h. */
1830$4
1831#include <$2>
1832_ACEOF
1833if ac_fn_c_try_compile "$LINENO"; then :
1834 ac_header_compiler=yes
1835else
1836 ac_header_compiler=no
1837fi
1838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1840$as_echo "$ac_header_compiler" >&6; }
1841
1842# Is the header present?
1843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1844$as_echo_n "checking $2 presence... " >&6; }
1845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846/* end confdefs.h. */
1847#include <$2>
1848_ACEOF
1849if ac_fn_c_try_cpp "$LINENO"; then :
1850 ac_header_preproc=yes
1851else
1852 ac_header_preproc=no
1853fi
1854rm -f conftest.err conftest.i conftest.$ac_ext
1855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1856$as_echo "$ac_header_preproc" >&6; }
1857
1858# So? What about this header?
1859case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1860 yes:no: )
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1862$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1864$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1865 ;;
1866 no:yes:* )
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1868$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1870$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1872$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1874$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1876$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1877( $as_echo "## ------------------------------------------- ##
1878## Report this to openssh-unix-dev@mindrot.org ##
1879## ------------------------------------------- ##"
1880 ) | sed "s/^/$as_me: WARNING: /" >&2
1881 ;;
1882esac
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884$as_echo_n "checking for $2... " >&6; }
1885if eval \${$3+:} false; then :
1886 $as_echo_n "(cached) " >&6
1887else
1888 eval "$3=\$ac_header_compiler"
1889fi
1890eval ac_res=\$$3
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892$as_echo "$ac_res" >&6; }
1893fi
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895
1896} # ac_fn_c_check_header_mongrel
1897
1898# ac_fn_c_check_func LINENO FUNC VAR
1899# ----------------------------------
1900# Tests whether FUNC exists, setting the cache variable VAR accordingly
1901ac_fn_c_check_func ()
1902{
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905$as_echo_n "checking for $2... " >&6; }
1906if eval \${$3+:} false; then :
1907 $as_echo_n "(cached) " >&6
1908else
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910/* end confdefs.h. */
1911/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1913#define $2 innocuous_$2
1914
1915/* System header to define __stub macros and hopefully few prototypes,
1916 which can conflict with char $2 (); below.
1917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1918 <limits.h> exists even on freestanding compilers. */
1919
1920#ifdef __STDC__
1921# include <limits.h>
1922#else
1923# include <assert.h>
1924#endif
1925
1926#undef $2
1927
1928/* Override any GCC internal prototype to avoid an error.
1929 Use char because int might match the return type of a GCC
1930 builtin and then its argument prototype would still apply. */
1931#ifdef __cplusplus
1932extern "C"
1933#endif
1934char $2 ();
1935/* The GNU C library defines this for functions which it implements
1936 to always fail with ENOSYS. Some functions are actually named
1937 something starting with __ and the normal name is an alias. */
1938#if defined __stub_$2 || defined __stub___$2
1939choke me
1940#endif
1941
1942int
1943main ()
1944{
1945return $2 ();
1946 ;
1947 return 0;
1948}
1949_ACEOF
1950if ac_fn_c_try_link "$LINENO"; then :
1951 eval "$3=yes"
1952else
1953 eval "$3=no"
1954fi
1955rm -f core conftest.err conftest.$ac_objext \
1956 conftest$ac_exeext conftest.$ac_ext
1957fi
1958eval ac_res=\$$3
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960$as_echo "$ac_res" >&6; }
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962
1963} # ac_fn_c_check_func
1964
1965# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1966# -------------------------------------------
1967# Tests whether TYPE exists after having included INCLUDES, setting cache
1968# variable VAR accordingly.
1969ac_fn_c_check_type ()
1970{
1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973$as_echo_n "checking for $2... " >&6; }
1974if eval \${$3+:} false; then :
1975 $as_echo_n "(cached) " >&6
1976else
1977 eval "$3=no"
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979/* end confdefs.h. */
1980$4
1981int
1982main ()
1983{
1984if (sizeof ($2))
1985 return 0;
1986 ;
1987 return 0;
1988}
1989_ACEOF
1990if ac_fn_c_try_compile "$LINENO"; then :
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992/* end confdefs.h. */
1993$4
1994int
1995main ()
1996{
1997if (sizeof (($2)))
1998 return 0;
1999 ;
2000 return 0;
2001}
2002_ACEOF
2003if ac_fn_c_try_compile "$LINENO"; then :
2004
2005else
2006 eval "$3=yes"
2007fi
2008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009fi
2010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011fi
2012eval ac_res=\$$3
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014$as_echo "$ac_res" >&6; }
2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016
2017} # ac_fn_c_check_type
2018
2019# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2020# --------------------------------------------
2021# Tries to find the compile-time value of EXPR in a program that includes
2022# INCLUDES, setting VAR accordingly. Returns whether the value could be
2023# computed
2024ac_fn_c_compute_int ()
2025{
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 if test "$cross_compiling" = yes; then
2028 # Depending upon the size, compute the lo and hi bounds.
2029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030/* end confdefs.h. */
2031$4
2032int
2033main ()
2034{
2035static int test_array [1 - 2 * !(($2) >= 0)];
2036test_array [0] = 0;
2037return test_array [0];
2038
2039 ;
2040 return 0;
2041}
2042_ACEOF
2043if ac_fn_c_try_compile "$LINENO"; then :
2044 ac_lo=0 ac_mid=0
2045 while :; do
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047/* end confdefs.h. */
2048$4
2049int
2050main ()
2051{
2052static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2053test_array [0] = 0;
2054return test_array [0];
2055
2056 ;
2057 return 0;
2058}
2059_ACEOF
2060if ac_fn_c_try_compile "$LINENO"; then :
2061 ac_hi=$ac_mid; break
2062else
2063 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2064 if test $ac_lo -le $ac_mid; then
2065 ac_lo= ac_hi=
2066 break
2067 fi
2068 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2069fi
2070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 done
2072else
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074/* end confdefs.h. */
2075$4
2076int
2077main ()
2078{
2079static int test_array [1 - 2 * !(($2) < 0)];
2080test_array [0] = 0;
2081return test_array [0];
2082
2083 ;
2084 return 0;
2085}
2086_ACEOF
2087if ac_fn_c_try_compile "$LINENO"; then :
2088 ac_hi=-1 ac_mid=-1
2089 while :; do
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091/* end confdefs.h. */
2092$4
2093int
2094main ()
2095{
2096static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2097test_array [0] = 0;
2098return test_array [0];
2099
2100 ;
2101 return 0;
2102}
2103_ACEOF
2104if ac_fn_c_try_compile "$LINENO"; then :
2105 ac_lo=$ac_mid; break
2106else
2107 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2108 if test $ac_mid -le $ac_hi; then
2109 ac_lo= ac_hi=
2110 break
2111 fi
2112 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2113fi
2114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 done
2116else
2117 ac_lo= ac_hi=
2118fi
2119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120fi
2121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122# Binary search between lo and hi bounds.
2123while test "x$ac_lo" != "x$ac_hi"; do
2124 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126/* end confdefs.h. */
2127$4
2128int
2129main ()
2130{
2131static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2132test_array [0] = 0;
2133return test_array [0];
2134
2135 ;
2136 return 0;
2137}
2138_ACEOF
2139if ac_fn_c_try_compile "$LINENO"; then :
2140 ac_hi=$ac_mid
2141else
2142 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2143fi
2144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145done
2146case $ac_lo in #((
2147?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2148'') ac_retval=1 ;;
2149esac
2150 else
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152/* end confdefs.h. */
2153$4
2154static long int longval () { return $2; }
2155static unsigned long int ulongval () { return $2; }
2156#include <stdio.h>
2157#include <stdlib.h>
2158int
2159main ()
2160{
2161
2162 FILE *f = fopen ("conftest.val", "w");
2163 if (! f)
2164 return 1;
2165 if (($2) < 0)
2166 {
2167 long int i = longval ();
2168 if (i != ($2))
2169 return 1;
2170 fprintf (f, "%ld", i);
2171 }
2172 else
2173 {
2174 unsigned long int i = ulongval ();
2175 if (i != ($2))
2176 return 1;
2177 fprintf (f, "%lu", i);
2178 }
2179 /* Do not output a trailing newline, as this causes \r\n confusion
2180 on some platforms. */
2181 return ferror (f) || fclose (f) != 0;
2182
2183 ;
2184 return 0;
2185}
2186_ACEOF
2187if ac_fn_c_try_run "$LINENO"; then :
2188 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2189else
2190 ac_retval=1
2191fi
2192rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2193 conftest.$ac_objext conftest.beam conftest.$ac_ext
2194rm -f conftest.val
2195
2196 fi
2197 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2198 as_fn_set_status $ac_retval
2199
2200} # ac_fn_c_compute_int
2201
2202# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2203# ----------------------------------------------------
2204# Tries to find if the field MEMBER exists in type AGGR, after including
2205# INCLUDES, setting cache variable VAR accordingly.
2206ac_fn_c_check_member ()
2207{
2208 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2210$as_echo_n "checking for $2.$3... " >&6; }
2211if eval \${$4+:} false; then :
2212 $as_echo_n "(cached) " >&6
2213else
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215/* end confdefs.h. */
2216$5
2217int
2218main ()
2219{
2220static $2 ac_aggr;
2221if (ac_aggr.$3)
2222return 0;
2223 ;
2224 return 0;
2225}
2226_ACEOF
2227if ac_fn_c_try_compile "$LINENO"; then :
2228 eval "$4=yes"
2229else
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231/* end confdefs.h. */
2232$5
2233int
2234main ()
2235{
2236static $2 ac_aggr;
2237if (sizeof ac_aggr.$3)
2238return 0;
2239 ;
2240 return 0;
2241}
2242_ACEOF
2243if ac_fn_c_try_compile "$LINENO"; then :
2244 eval "$4=yes"
2245else
2246 eval "$4=no"
2247fi
2248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249fi
2250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2251fi
2252eval ac_res=\$$4
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2254$as_echo "$ac_res" >&6; }
2255 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2256
2257} # ac_fn_c_check_member
2258cat >config.log <<_ACEOF
2259This file contains any messages produced by compilers while
2260running configure, to aid debugging if configure makes a mistake.
2261
2262It was created by OpenSSH $as_me Portable, which was
2263generated by GNU Autoconf 2.69. Invocation command line was
2264
2265 $ $0 $@
2266
2267_ACEOF
2268exec 5>>config.log
2269{
2270cat <<_ASUNAME
2271## --------- ##
2272## Platform. ##
2273## --------- ##
2274
2275hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2276uname -m = `(uname -m) 2>/dev/null || echo unknown`
2277uname -r = `(uname -r) 2>/dev/null || echo unknown`
2278uname -s = `(uname -s) 2>/dev/null || echo unknown`
2279uname -v = `(uname -v) 2>/dev/null || echo unknown`
2280
2281/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2282/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2283
2284/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2285/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2286/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2287/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2288/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2289/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2290/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2291
2292_ASUNAME
2293
2294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295for as_dir in $PATH
2296do
2297 IFS=$as_save_IFS
2298 test -z "$as_dir" && as_dir=.
2299 $as_echo "PATH: $as_dir"
2300 done
2301IFS=$as_save_IFS
2302
2303} >&5
2304
2305cat >&5 <<_ACEOF
2306
2307
2308## ----------- ##
2309## Core tests. ##
2310## ----------- ##
2311
2312_ACEOF
2313
2314
2315# Keep a trace of the command line.
2316# Strip out --no-create and --no-recursion so they do not pile up.
2317# Strip out --silent because we don't want to record it for future runs.
2318# Also quote any args containing shell meta-characters.
2319# Make two passes to allow for proper duplicate-argument suppression.
2320ac_configure_args=
2321ac_configure_args0=
2322ac_configure_args1=
2323ac_must_keep_next=false
2324for ac_pass in 1 2
2325do
2326 for ac_arg
2327 do
2328 case $ac_arg in
2329 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2331 | -silent | --silent | --silen | --sile | --sil)
2332 continue ;;
2333 *\'*)
2334 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2335 esac
2336 case $ac_pass in
2337 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2338 2)
2339 as_fn_append ac_configure_args1 " '$ac_arg'"
2340 if test $ac_must_keep_next = true; then
2341 ac_must_keep_next=false # Got value, back to normal.
2342 else
2343 case $ac_arg in
2344 *=* | --config-cache | -C | -disable-* | --disable-* \
2345 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2346 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2347 | -with-* | --with-* | -without-* | --without-* | --x)
2348 case "$ac_configure_args0 " in
2349 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2350 esac
2351 ;;
2352 -* ) ac_must_keep_next=true ;;
2353 esac
2354 fi
2355 as_fn_append ac_configure_args " '$ac_arg'"
2356 ;;
2357 esac
2358 done
2359done
2360{ ac_configure_args0=; unset ac_configure_args0;}
2361{ ac_configure_args1=; unset ac_configure_args1;}
2362
2363# When interrupted or exit'd, cleanup temporary files, and complete
2364# config.log. We remove comments because anyway the quotes in there
2365# would cause problems or look ugly.
2366# WARNING: Use '\'' to represent an apostrophe within the trap.
2367# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2368trap 'exit_status=$?
2369 # Save into config.log some information that might help in debugging.
2370 {
2371 echo
2372
2373 $as_echo "## ---------------- ##
2374## Cache variables. ##
2375## ---------------- ##"
2376 echo
2377 # The following way of writing the cache mishandles newlines in values,
2378(
2379 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2380 eval ac_val=\$$ac_var
2381 case $ac_val in #(
2382 *${as_nl}*)
2383 case $ac_var in #(
2384 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2385$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2386 esac
2387 case $ac_var in #(
2388 _ | IFS | as_nl) ;; #(
2389 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2390 *) { eval $ac_var=; unset $ac_var;} ;;
2391 esac ;;
2392 esac
2393 done
2394 (set) 2>&1 |
2395 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2396 *${as_nl}ac_space=\ *)
2397 sed -n \
2398 "s/'\''/'\''\\\\'\'''\''/g;
2399 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2400 ;; #(
2401 *)
2402 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2403 ;;
2404 esac |
2405 sort
2406)
2407 echo
2408
2409 $as_echo "## ----------------- ##
2410## Output variables. ##
2411## ----------------- ##"
2412 echo
2413 for ac_var in $ac_subst_vars
2414 do
2415 eval ac_val=\$$ac_var
2416 case $ac_val in
2417 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2418 esac
2419 $as_echo "$ac_var='\''$ac_val'\''"
2420 done | sort
2421 echo
2422
2423 if test -n "$ac_subst_files"; then
2424 $as_echo "## ------------------- ##
2425## File substitutions. ##
2426## ------------------- ##"
2427 echo
2428 for ac_var in $ac_subst_files
2429 do
2430 eval ac_val=\$$ac_var
2431 case $ac_val in
2432 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2433 esac
2434 $as_echo "$ac_var='\''$ac_val'\''"
2435 done | sort
2436 echo
2437 fi
2438
2439 if test -s confdefs.h; then
2440 $as_echo "## ----------- ##
2441## confdefs.h. ##
2442## ----------- ##"
2443 echo
2444 cat confdefs.h
2445 echo
2446 fi
2447 test "$ac_signal" != 0 &&
2448 $as_echo "$as_me: caught signal $ac_signal"
2449 $as_echo "$as_me: exit $exit_status"
2450 } >&5
2451 rm -f core *.core core.conftest.* &&
2452 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2453 exit $exit_status
2454' 0
2455for ac_signal in 1 2 13 15; do
2456 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2457done
2458ac_signal=0
2459
2460# confdefs.h avoids OS command line length limits that DEFS can exceed.
2461rm -f -r conftest* confdefs.h
2462
2463$as_echo "/* confdefs.h */" > confdefs.h
2464
2465# Predefined preprocessor variables.
2466
2467cat >>confdefs.h <<_ACEOF
2468#define PACKAGE_NAME "$PACKAGE_NAME"
2469_ACEOF
2470
2471cat >>confdefs.h <<_ACEOF
2472#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2473_ACEOF
2474
2475cat >>confdefs.h <<_ACEOF
2476#define PACKAGE_VERSION "$PACKAGE_VERSION"
2477_ACEOF
2478
2479cat >>confdefs.h <<_ACEOF
2480#define PACKAGE_STRING "$PACKAGE_STRING"
2481_ACEOF
2482
2483cat >>confdefs.h <<_ACEOF
2484#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2485_ACEOF
2486
2487cat >>confdefs.h <<_ACEOF
2488#define PACKAGE_URL "$PACKAGE_URL"
2489_ACEOF
2490
2491
2492# Let the site file select an alternate cache file if it wants to.
2493# Prefer an explicitly selected file to automatically selected ones.
2494ac_site_file1=NONE
2495ac_site_file2=NONE
2496if test -n "$CONFIG_SITE"; then
2497 # We do not want a PATH search for config.site.
2498 case $CONFIG_SITE in #((
2499 -*) ac_site_file1=./$CONFIG_SITE;;
2500 */*) ac_site_file1=$CONFIG_SITE;;
2501 *) ac_site_file1=./$CONFIG_SITE;;
2502 esac
2503elif test "x$prefix" != xNONE; then
2504 ac_site_file1=$prefix/share/config.site
2505 ac_site_file2=$prefix/etc/config.site
2506else
2507 ac_site_file1=$ac_default_prefix/share/config.site
2508 ac_site_file2=$ac_default_prefix/etc/config.site
2509fi
2510for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2511do
2512 test "x$ac_site_file" = xNONE && continue
2513 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2515$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2516 sed 's/^/| /' "$ac_site_file" >&5
2517 . "$ac_site_file" \
2518 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2520as_fn_error $? "failed to load site script $ac_site_file
2521See \`config.log' for more details" "$LINENO" 5; }
2522 fi
2523done
2524
2525if test -r "$cache_file"; then
2526 # Some versions of bash will fail to source /dev/null (special files
2527 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2528 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2530$as_echo "$as_me: loading cache $cache_file" >&6;}
2531 case $cache_file in
2532 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2533 *) . "./$cache_file";;
2534 esac
2535 fi
2536else
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2538$as_echo "$as_me: creating cache $cache_file" >&6;}
2539 >$cache_file
2540fi
2541
2542# Check that the precious variables saved in the cache have kept the same
2543# value.
2544ac_cache_corrupted=false
2545for ac_var in $ac_precious_vars; do
2546 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2547 eval ac_new_set=\$ac_env_${ac_var}_set
2548 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2549 eval ac_new_val=\$ac_env_${ac_var}_value
2550 case $ac_old_set,$ac_new_set in
2551 set,)
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2553$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2554 ac_cache_corrupted=: ;;
2555 ,set)
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2557$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2558 ac_cache_corrupted=: ;;
2559 ,);;
2560 *)
2561 if test "x$ac_old_val" != "x$ac_new_val"; then
2562 # differences in whitespace do not lead to failure.
2563 ac_old_val_w=`echo x $ac_old_val`
2564 ac_new_val_w=`echo x $ac_new_val`
2565 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2567$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2568 ac_cache_corrupted=:
2569 else
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2571$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2572 eval $ac_var=\$ac_old_val
2573 fi
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2575$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2577$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2578 fi;;
2579 esac
2580 # Pass precious variables to config.status.
2581 if test "$ac_new_set" = set; then
2582 case $ac_new_val in
2583 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2584 *) ac_arg=$ac_var=$ac_new_val ;;
2585 esac
2586 case " $ac_configure_args " in
2587 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2588 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2589 esac
2590 fi
2591done
2592if $ac_cache_corrupted; then
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2594$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2596$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2597 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2598fi
2599## -------------------- ##
2600## Main body of script. ##
2601## -------------------- ##
2602
2603ac_ext=c
2604ac_cpp='$CPP $CPPFLAGS'
2605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2607ac_compiler_gnu=$ac_cv_c_compiler_gnu
2608
2609
2610
2611
2612ac_ext=c
2613ac_cpp='$CPP $CPPFLAGS'
2614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2616ac_compiler_gnu=$ac_cv_c_compiler_gnu
2617
2618
2619ac_config_headers="$ac_config_headers config.h"
2620
2621ac_ext=c
2622ac_cpp='$CPP $CPPFLAGS'
2623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2625ac_compiler_gnu=$ac_cv_c_compiler_gnu
2626if test -n "$ac_tool_prefix"; then
2627 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2628set dummy ${ac_tool_prefix}gcc; ac_word=$2
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2630$as_echo_n "checking for $ac_word... " >&6; }
2631if ${ac_cv_prog_CC+:} false; then :
2632 $as_echo_n "(cached) " >&6
2633else
2634 if test -n "$CC"; then
2635 ac_cv_prog_CC="$CC" # Let the user override the test.
2636else
2637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638for as_dir in $PATH
2639do
2640 IFS=$as_save_IFS
2641 test -z "$as_dir" && as_dir=.
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2644 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 break 2
2647 fi
2648done
2649 done
2650IFS=$as_save_IFS
2651
2652fi
2653fi
2654CC=$ac_cv_prog_CC
2655if test -n "$CC"; then
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2657$as_echo "$CC" >&6; }
2658else
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2660$as_echo "no" >&6; }
2661fi
2662
2663
2664fi
2665if test -z "$ac_cv_prog_CC"; then
2666 ac_ct_CC=$CC
2667 # Extract the first word of "gcc", so it can be a program name with args.
2668set dummy gcc; ac_word=$2
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2670$as_echo_n "checking for $ac_word... " >&6; }
2671if ${ac_cv_prog_ac_ct_CC+:} false; then :
2672 $as_echo_n "(cached) " >&6
2673else
2674 if test -n "$ac_ct_CC"; then
2675 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2676else
2677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678for as_dir in $PATH
2679do
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2684 ac_cv_prog_ac_ct_CC="gcc"
2685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 break 2
2687 fi
2688done
2689 done
2690IFS=$as_save_IFS
2691
2692fi
2693fi
2694ac_ct_CC=$ac_cv_prog_ac_ct_CC
2695if test -n "$ac_ct_CC"; then
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2697$as_echo "$ac_ct_CC" >&6; }
2698else
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2700$as_echo "no" >&6; }
2701fi
2702
2703 if test "x$ac_ct_CC" = x; then
2704 CC=""
2705 else
2706 case $cross_compiling:$ac_tool_warned in
2707yes:)
2708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2710ac_tool_warned=yes ;;
2711esac
2712 CC=$ac_ct_CC
2713 fi
2714else
2715 CC="$ac_cv_prog_CC"
2716fi
2717
2718if test -z "$CC"; then
2719 if test -n "$ac_tool_prefix"; then
2720 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2721set dummy ${ac_tool_prefix}cc; ac_word=$2
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723$as_echo_n "checking for $ac_word... " >&6; }
2724if ${ac_cv_prog_CC+:} false; then :
2725 $as_echo_n "(cached) " >&6
2726else
2727 if test -n "$CC"; then
2728 ac_cv_prog_CC="$CC" # Let the user override the test.
2729else
2730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731for as_dir in $PATH
2732do
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2737 ac_cv_prog_CC="${ac_tool_prefix}cc"
2738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2740 fi
2741done
2742 done
2743IFS=$as_save_IFS
2744
2745fi
2746fi
2747CC=$ac_cv_prog_CC
2748if test -n "$CC"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2750$as_echo "$CC" >&6; }
2751else
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753$as_echo "no" >&6; }
2754fi
2755
2756
2757 fi
2758fi
2759if test -z "$CC"; then
2760 # Extract the first word of "cc", so it can be a program name with args.
2761set dummy cc; ac_word=$2
2762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2763$as_echo_n "checking for $ac_word... " >&6; }
2764if ${ac_cv_prog_CC+:} false; then :
2765 $as_echo_n "(cached) " >&6
2766else
2767 if test -n "$CC"; then
2768 ac_cv_prog_CC="$CC" # Let the user override the test.
2769else
2770 ac_prog_rejected=no
2771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772for as_dir in $PATH
2773do
2774 IFS=$as_save_IFS
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2779 ac_prog_rejected=yes
2780 continue
2781 fi
2782 ac_cv_prog_CC="cc"
2783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 break 2
2785 fi
2786done
2787 done
2788IFS=$as_save_IFS
2789
2790if test $ac_prog_rejected = yes; then
2791 # We found a bogon in the path, so make sure we never use it.
2792 set dummy $ac_cv_prog_CC
2793 shift
2794 if test $# != 0; then
2795 # We chose a different compiler from the bogus one.
2796 # However, it has the same basename, so the bogon will be chosen
2797 # first if we set CC to just the basename; use the full file name.
2798 shift
2799 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2800 fi
2801fi
2802fi
2803fi
2804CC=$ac_cv_prog_CC
2805if test -n "$CC"; then
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2807$as_echo "$CC" >&6; }
2808else
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810$as_echo "no" >&6; }
2811fi
2812
2813
2814fi
2815if test -z "$CC"; then
2816 if test -n "$ac_tool_prefix"; then
2817 for ac_prog in cl.exe
2818 do
2819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2820set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2822$as_echo_n "checking for $ac_word... " >&6; }
2823if ${ac_cv_prog_CC+:} false; then :
2824 $as_echo_n "(cached) " >&6
2825else
2826 if test -n "$CC"; then
2827 ac_cv_prog_CC="$CC" # Let the user override the test.
2828else
2829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830for as_dir in $PATH
2831do
2832 IFS=$as_save_IFS
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2836 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 break 2
2839 fi
2840done
2841 done
2842IFS=$as_save_IFS
2843
2844fi
2845fi
2846CC=$ac_cv_prog_CC
2847if test -n "$CC"; then
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2849$as_echo "$CC" >&6; }
2850else
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852$as_echo "no" >&6; }
2853fi
2854
2855
2856 test -n "$CC" && break
2857 done
2858fi
2859if test -z "$CC"; then
2860 ac_ct_CC=$CC
2861 for ac_prog in cl.exe
2862do
2863 # Extract the first word of "$ac_prog", so it can be a program name with args.
2864set dummy $ac_prog; ac_word=$2
2865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2866$as_echo_n "checking for $ac_word... " >&6; }
2867if ${ac_cv_prog_ac_ct_CC+:} false; then :
2868 $as_echo_n "(cached) " >&6
2869else
2870 if test -n "$ac_ct_CC"; then
2871 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2872else
2873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874for as_dir in $PATH
2875do
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2880 ac_cv_prog_ac_ct_CC="$ac_prog"
2881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 break 2
2883 fi
2884done
2885 done
2886IFS=$as_save_IFS
2887
2888fi
2889fi
2890ac_ct_CC=$ac_cv_prog_ac_ct_CC
2891if test -n "$ac_ct_CC"; then
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2893$as_echo "$ac_ct_CC" >&6; }
2894else
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896$as_echo "no" >&6; }
2897fi
2898
2899
2900 test -n "$ac_ct_CC" && break
2901done
2902
2903 if test "x$ac_ct_CC" = x; then
2904 CC=""
2905 else
2906 case $cross_compiling:$ac_tool_warned in
2907yes:)
2908{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2909$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2910ac_tool_warned=yes ;;
2911esac
2912 CC=$ac_ct_CC
2913 fi
2914fi
2915
2916fi
2917
2918
2919test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2920$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2921as_fn_error $? "no acceptable C compiler found in \$PATH
2922See \`config.log' for more details" "$LINENO" 5; }
2923
2924# Provide some information about the compiler.
2925$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2926set X $ac_compile
2927ac_compiler=$2
2928for ac_option in --version -v -V -qversion; do
2929 { { ac_try="$ac_compiler $ac_option >&5"
2930case "(($ac_try" in
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2933esac
2934eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2935$as_echo "$ac_try_echo"; } >&5
2936 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2937 ac_status=$?
2938 if test -s conftest.err; then
2939 sed '10a\
2940... rest of stderr output deleted ...
2941 10q' conftest.err >conftest.er1
2942 cat conftest.er1 >&5
2943 fi
2944 rm -f conftest.er1 conftest.err
2945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2946 test $ac_status = 0; }
2947done
2948
2949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2950/* end confdefs.h. */
2951
2952int
2953main ()
2954{
2955
2956 ;
2957 return 0;
2958}
2959_ACEOF
2960ac_clean_files_save=$ac_clean_files
2961ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2962# Try to create an executable without -o first, disregard a.out.
2963# It will help us diagnose broken compilers, and finding out an intuition
2964# of exeext.
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2966$as_echo_n "checking whether the C compiler works... " >&6; }
2967ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2968
2969# The possible output files:
2970ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2971
2972ac_rmfiles=
2973for ac_file in $ac_files
2974do
2975 case $ac_file in
2976 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2977 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2978 esac
2979done
2980rm -f $ac_rmfiles
2981
2982if { { ac_try="$ac_link_default"
2983case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986esac
2987eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2988$as_echo "$ac_try_echo"; } >&5
2989 (eval "$ac_link_default") 2>&5
2990 ac_status=$?
2991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2992 test $ac_status = 0; }; then :
2993 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2994# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2995# in a Makefile. We should not override ac_cv_exeext if it was cached,
2996# so that the user can short-circuit this test for compilers unknown to
2997# Autoconf.
2998for ac_file in $ac_files ''
2999do
3000 test -f "$ac_file" || continue
3001 case $ac_file in
3002 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3003 ;;
3004 [ab].out )
3005 # We found the default executable, but exeext='' is most
3006 # certainly right.
3007 break;;
3008 *.* )
3009 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3010 then :; else
3011 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3012 fi
3013 # We set ac_cv_exeext here because the later test for it is not
3014 # safe: cross compilers may not add the suffix if given an `-o'
3015 # argument, so we may need to know it at that point already.
3016 # Even if this section looks crufty: it has the advantage of
3017 # actually working.
3018 break;;
3019 * )
3020 break;;
3021 esac
3022done
3023test "$ac_cv_exeext" = no && ac_cv_exeext=
3024
3025else
3026 ac_file=''
3027fi
3028if test -z "$ac_file"; then :
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3030$as_echo "no" >&6; }
3031$as_echo "$as_me: failed program was:" >&5
3032sed 's/^/| /' conftest.$ac_ext >&5
3033
3034{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3035$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3036as_fn_error 77 "C compiler cannot create executables
3037See \`config.log' for more details" "$LINENO" 5; }
3038else
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3040$as_echo "yes" >&6; }
3041fi
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3043$as_echo_n "checking for C compiler default output file name... " >&6; }
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3045$as_echo "$ac_file" >&6; }
3046ac_exeext=$ac_cv_exeext
3047
3048rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3049ac_clean_files=$ac_clean_files_save
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3051$as_echo_n "checking for suffix of executables... " >&6; }
3052if { { ac_try="$ac_link"
3053case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056esac
3057eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3058$as_echo "$ac_try_echo"; } >&5
3059 (eval "$ac_link") 2>&5
3060 ac_status=$?
3061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3062 test $ac_status = 0; }; then :
3063 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3064# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3065# work properly (i.e., refer to `conftest.exe'), while it won't with
3066# `rm'.
3067for ac_file in conftest.exe conftest conftest.*; do
3068 test -f "$ac_file" || continue
3069 case $ac_file in
3070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3071 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3072 break;;
3073 * ) break;;
3074 esac
3075done
3076else
3077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3078$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3079as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3080See \`config.log' for more details" "$LINENO" 5; }
3081fi
3082rm -f conftest conftest$ac_cv_exeext
3083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3084$as_echo "$ac_cv_exeext" >&6; }
3085
3086rm -f conftest.$ac_ext
3087EXEEXT=$ac_cv_exeext
3088ac_exeext=$EXEEXT
3089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3090/* end confdefs.h. */
3091#include <stdio.h>
3092int
3093main ()
3094{
3095FILE *f = fopen ("conftest.out", "w");
3096 return ferror (f) || fclose (f) != 0;
3097
3098 ;
3099 return 0;
3100}
3101_ACEOF
3102ac_clean_files="$ac_clean_files conftest.out"
3103# Check that the compiler produces executables we can run. If not, either
3104# the compiler is broken, or we cross compile.
3105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3106$as_echo_n "checking whether we are cross compiling... " >&6; }
3107if test "$cross_compiling" != yes; then
3108 { { ac_try="$ac_link"
3109case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3112esac
3113eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3114$as_echo "$ac_try_echo"; } >&5
3115 (eval "$ac_link") 2>&5
3116 ac_status=$?
3117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118 test $ac_status = 0; }
3119 if { ac_try='./conftest$ac_cv_exeext'
3120 { { case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3123esac
3124eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3125$as_echo "$ac_try_echo"; } >&5
3126 (eval "$ac_try") 2>&5
3127 ac_status=$?
3128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3129 test $ac_status = 0; }; }; then
3130 cross_compiling=no
3131 else
3132 if test "$cross_compiling" = maybe; then
3133 cross_compiling=yes
3134 else
3135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3137as_fn_error $? "cannot run C compiled programs.
3138If you meant to cross compile, use \`--host'.
3139See \`config.log' for more details" "$LINENO" 5; }
3140 fi
3141 fi
3142fi
3143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3144$as_echo "$cross_compiling" >&6; }
3145
3146rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3147ac_clean_files=$ac_clean_files_save
3148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3149$as_echo_n "checking for suffix of object files... " >&6; }
3150if ${ac_cv_objext+:} false; then :
3151 $as_echo_n "(cached) " >&6
3152else
3153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3154/* end confdefs.h. */
3155
3156int
3157main ()
3158{
3159
3160 ;
3161 return 0;
3162}
3163_ACEOF
3164rm -f conftest.o conftest.obj
3165if { { ac_try="$ac_compile"
3166case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169esac
3170eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3171$as_echo "$ac_try_echo"; } >&5
3172 (eval "$ac_compile") 2>&5
3173 ac_status=$?
3174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3175 test $ac_status = 0; }; then :
3176 for ac_file in conftest.o conftest.obj conftest.*; do
3177 test -f "$ac_file" || continue;
3178 case $ac_file in
3179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3180 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3181 break;;
3182 esac
3183done
3184else
3185 $as_echo "$as_me: failed program was:" >&5
3186sed 's/^/| /' conftest.$ac_ext >&5
3187
3188{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3189$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3190as_fn_error $? "cannot compute suffix of object files: cannot compile
3191See \`config.log' for more details" "$LINENO" 5; }
3192fi
3193rm -f conftest.$ac_cv_objext conftest.$ac_ext
3194fi
3195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3196$as_echo "$ac_cv_objext" >&6; }
3197OBJEXT=$ac_cv_objext
3198ac_objext=$OBJEXT
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3200$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3201if ${ac_cv_c_compiler_gnu+:} false; then :
3202 $as_echo_n "(cached) " >&6
3203else
3204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3205/* end confdefs.h. */
3206
3207int
3208main ()
3209{
3210#ifndef __GNUC__
3211 choke me
3212#endif
3213
3214 ;
3215 return 0;
3216}
3217_ACEOF
3218if ac_fn_c_try_compile "$LINENO"; then :
3219 ac_compiler_gnu=yes
3220else
3221 ac_compiler_gnu=no
3222fi
3223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224ac_cv_c_compiler_gnu=$ac_compiler_gnu
3225
3226fi
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3228$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3229if test $ac_compiler_gnu = yes; then
3230 GCC=yes
3231else
3232 GCC=
3233fi
3234ac_test_CFLAGS=${CFLAGS+set}
3235ac_save_CFLAGS=$CFLAGS
3236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3237$as_echo_n "checking whether $CC accepts -g... " >&6; }
3238if ${ac_cv_prog_cc_g+:} false; then :
3239 $as_echo_n "(cached) " >&6
3240else
3241 ac_save_c_werror_flag=$ac_c_werror_flag
3242 ac_c_werror_flag=yes
3243 ac_cv_prog_cc_g=no
3244 CFLAGS="-g"
3245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3246/* end confdefs.h. */
3247
3248int
3249main ()
3250{
3251
3252 ;
3253 return 0;
3254}
3255_ACEOF
3256if ac_fn_c_try_compile "$LINENO"; then :
3257 ac_cv_prog_cc_g=yes
3258else
3259 CFLAGS=""
3260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3261/* end confdefs.h. */
3262
3263int
3264main ()
3265{
3266
3267 ;
3268 return 0;
3269}
3270_ACEOF
3271if ac_fn_c_try_compile "$LINENO"; then :
3272
3273else
3274 ac_c_werror_flag=$ac_save_c_werror_flag
3275 CFLAGS="-g"
3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277/* end confdefs.h. */
3278
3279int
3280main ()
3281{
3282
3283 ;
3284 return 0;
3285}
3286_ACEOF
3287if ac_fn_c_try_compile "$LINENO"; then :
3288 ac_cv_prog_cc_g=yes
3289fi
3290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291fi
3292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3293fi
3294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3295 ac_c_werror_flag=$ac_save_c_werror_flag
3296fi
3297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3298$as_echo "$ac_cv_prog_cc_g" >&6; }
3299if test "$ac_test_CFLAGS" = set; then
3300 CFLAGS=$ac_save_CFLAGS
3301elif test $ac_cv_prog_cc_g = yes; then
3302 if test "$GCC" = yes; then
3303 CFLAGS="-g -O2"
3304 else
3305 CFLAGS="-g"
3306 fi
3307else
3308 if test "$GCC" = yes; then
3309 CFLAGS="-O2"
3310 else
3311 CFLAGS=
3312 fi
3313fi
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3315$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3316if ${ac_cv_prog_cc_c89+:} false; then :
3317 $as_echo_n "(cached) " >&6
3318else
3319 ac_cv_prog_cc_c89=no
3320ac_save_CC=$CC
3321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322/* end confdefs.h. */
3323#include <stdarg.h>
3324#include <stdio.h>
3325struct stat;
3326/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3327struct buf { int x; };
3328FILE * (*rcsopen) (struct buf *, struct stat *, int);
3329static char *e (p, i)
3330 char **p;
3331 int i;
3332{
3333 return p[i];
3334}
3335static char *f (char * (*g) (char **, int), char **p, ...)
3336{
3337 char *s;
3338 va_list v;
3339 va_start (v,p);
3340 s = g (p, va_arg (v,int));
3341 va_end (v);
3342 return s;
3343}
3344
3345/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3346 function prototypes and stuff, but not '\xHH' hex character constants.
3347 These don't provoke an error unfortunately, instead are silently treated
3348 as 'x'. The following induces an error, until -std is added to get
3349 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3350 array size at least. It's necessary to write '\x00'==0 to get something
3351 that's true only with -std. */
3352int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3353
3354/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3355 inside strings and character constants. */
3356#define FOO(x) 'x'
3357int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3358
3359int test (int i, double x);
3360struct s1 {int (*f) (int a);};
3361struct s2 {int (*f) (double a);};
3362int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3363int argc;
3364char **argv;
3365int
3366main ()
3367{
3368return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3369 ;
3370 return 0;
3371}
3372_ACEOF
3373for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3374 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3375do
3376 CC="$ac_save_CC $ac_arg"
3377 if ac_fn_c_try_compile "$LINENO"; then :
3378 ac_cv_prog_cc_c89=$ac_arg
3379fi
3380rm -f core conftest.err conftest.$ac_objext
3381 test "x$ac_cv_prog_cc_c89" != "xno" && break
3382done
3383rm -f conftest.$ac_ext
3384CC=$ac_save_CC
3385
3386fi
3387# AC_CACHE_VAL
3388case "x$ac_cv_prog_cc_c89" in
3389 x)
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3391$as_echo "none needed" >&6; } ;;
3392 xno)
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3394$as_echo "unsupported" >&6; } ;;
3395 *)
3396 CC="$CC $ac_cv_prog_cc_c89"
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3398$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3399esac
3400if test "x$ac_cv_prog_cc_c89" != xno; then :
3401
3402fi
3403
3404ac_ext=c
3405ac_cpp='$CPP $CPPFLAGS'
3406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409
3410ac_aux_dir=
3411for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3412 if test -f "$ac_dir/install-sh"; then
3413 ac_aux_dir=$ac_dir
3414 ac_install_sh="$ac_aux_dir/install-sh -c"
3415 break
3416 elif test -f "$ac_dir/install.sh"; then
3417 ac_aux_dir=$ac_dir
3418 ac_install_sh="$ac_aux_dir/install.sh -c"
3419 break
3420 elif test -f "$ac_dir/shtool"; then
3421 ac_aux_dir=$ac_dir
3422 ac_install_sh="$ac_aux_dir/shtool install -c"
3423 break
3424 fi
3425done
3426if test -z "$ac_aux_dir"; then
3427 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3428fi
3429
3430# These three variables are undocumented and unsupported,
3431# and are intended to be withdrawn in a future Autoconf release.
3432# They can cause serious problems if a builder's source tree is in a directory
3433# whose full name contains unusual characters.
3434ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3435ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3436ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3437
3438
3439# Make sure we can run config.sub.
3440$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3441 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3442
3443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3444$as_echo_n "checking build system type... " >&6; }
3445if ${ac_cv_build+:} false; then :
3446 $as_echo_n "(cached) " >&6
3447else
3448 ac_build_alias=$build_alias
3449test "x$ac_build_alias" = x &&
3450 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3451test "x$ac_build_alias" = x &&
3452 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3453ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3454 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3455
3456fi
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3458$as_echo "$ac_cv_build" >&6; }
3459case $ac_cv_build in
3460*-*-*) ;;
3461*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3462esac
3463build=$ac_cv_build
3464ac_save_IFS=$IFS; IFS='-'
3465set x $ac_cv_build
3466shift
3467build_cpu=$1
3468build_vendor=$2
3469shift; shift
3470# Remember, the first character of IFS is used to create $*,
3471# except with old shells:
3472build_os=$*
3473IFS=$ac_save_IFS
3474case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3475
3476
3477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3478$as_echo_n "checking host system type... " >&6; }
3479if ${ac_cv_host+:} false; then :
3480 $as_echo_n "(cached) " >&6
3481else
3482 if test "x$host_alias" = x; then
3483 ac_cv_host=$ac_cv_build
3484else
3485 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3486 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3487fi
3488
3489fi
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3491$as_echo "$ac_cv_host" >&6; }
3492case $ac_cv_host in
3493*-*-*) ;;
3494*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3495esac
3496host=$ac_cv_host
3497ac_save_IFS=$IFS; IFS='-'
3498set x $ac_cv_host
3499shift
3500host_cpu=$1
3501host_vendor=$2
3502shift; shift
3503# Remember, the first character of IFS is used to create $*,
3504# except with old shells:
3505host_os=$*
3506IFS=$ac_save_IFS
3507case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3508
3509
3510
3511ac_ext=c
3512ac_cpp='$CPP $CPPFLAGS'
3513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3515ac_compiler_gnu=$ac_cv_c_compiler_gnu
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3517$as_echo_n "checking how to run the C preprocessor... " >&6; }
3518# On Suns, sometimes $CPP names a directory.
3519if test -n "$CPP" && test -d "$CPP"; then
3520 CPP=
3521fi
3522if test -z "$CPP"; then
3523 if ${ac_cv_prog_CPP+:} false; then :
3524 $as_echo_n "(cached) " >&6
3525else
3526 # Double quotes because CPP needs to be expanded
3527 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3528 do
3529 ac_preproc_ok=false
3530for ac_c_preproc_warn_flag in '' yes
3531do
3532 # Use a header file that comes with gcc, so configuring glibc
3533 # with a fresh cross-compiler works.
3534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3535 # <limits.h> exists even on freestanding compilers.
3536 # On the NeXT, cc -E runs the code through the compiler's parser,
3537 # not just through cpp. "Syntax error" is here to catch this case.
3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539/* end confdefs.h. */
3540#ifdef __STDC__
3541# include <limits.h>
3542#else
3543# include <assert.h>
3544#endif
3545 Syntax error
3546_ACEOF
3547if ac_fn_c_try_cpp "$LINENO"; then :
3548
3549else
3550 # Broken: fails on valid input.
3551continue
3552fi
3553rm -f conftest.err conftest.i conftest.$ac_ext
3554
3555 # OK, works on sane cases. Now check whether nonexistent headers
3556 # can be detected and how.
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558/* end confdefs.h. */
3559#include <ac_nonexistent.h>
3560_ACEOF
3561if ac_fn_c_try_cpp "$LINENO"; then :
3562 # Broken: success on invalid input.
3563continue
3564else
3565 # Passes both tests.
3566ac_preproc_ok=:
3567break
3568fi
3569rm -f conftest.err conftest.i conftest.$ac_ext
3570
3571done
3572# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3573rm -f conftest.i conftest.err conftest.$ac_ext
3574if $ac_preproc_ok; then :
3575 break
3576fi
3577
3578 done
3579 ac_cv_prog_CPP=$CPP
3580
3581fi
3582 CPP=$ac_cv_prog_CPP
3583else
3584 ac_cv_prog_CPP=$CPP
3585fi
3586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3587$as_echo "$CPP" >&6; }
3588ac_preproc_ok=false
3589for ac_c_preproc_warn_flag in '' yes
3590do
3591 # Use a header file that comes with gcc, so configuring glibc
3592 # with a fresh cross-compiler works.
3593 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3594 # <limits.h> exists even on freestanding compilers.
3595 # On the NeXT, cc -E runs the code through the compiler's parser,
3596 # not just through cpp. "Syntax error" is here to catch this case.
3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598/* end confdefs.h. */
3599#ifdef __STDC__
3600# include <limits.h>
3601#else
3602# include <assert.h>
3603#endif
3604 Syntax error
3605_ACEOF
3606if ac_fn_c_try_cpp "$LINENO"; then :
3607
3608else
3609 # Broken: fails on valid input.
3610continue
3611fi
3612rm -f conftest.err conftest.i conftest.$ac_ext
3613
3614 # OK, works on sane cases. Now check whether nonexistent headers
3615 # can be detected and how.
3616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617/* end confdefs.h. */
3618#include <ac_nonexistent.h>
3619_ACEOF
3620if ac_fn_c_try_cpp "$LINENO"; then :
3621 # Broken: success on invalid input.
3622continue
3623else
3624 # Passes both tests.
3625ac_preproc_ok=:
3626break
3627fi
3628rm -f conftest.err conftest.i conftest.$ac_ext
3629
3630done
3631# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3632rm -f conftest.i conftest.err conftest.$ac_ext
3633if $ac_preproc_ok; then :
3634
3635else
3636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3639See \`config.log' for more details" "$LINENO" 5; }
3640fi
3641
3642ac_ext=c
3643ac_cpp='$CPP $CPPFLAGS'
3644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3646ac_compiler_gnu=$ac_cv_c_compiler_gnu
3647
3648
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3650$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3651if ${ac_cv_path_GREP+:} false; then :
3652 $as_echo_n "(cached) " >&6
3653else
3654 if test -z "$GREP"; then
3655 ac_path_GREP_found=false
3656 # Loop through the user's path and test for each of PROGNAME-LIST
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3659do
3660 IFS=$as_save_IFS
3661 test -z "$as_dir" && as_dir=.
3662 for ac_prog in grep ggrep; do
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3665 as_fn_executable_p "$ac_path_GREP" || continue
3666# Check for GNU ac_path_GREP and select it if it is found.
3667 # Check for GNU $ac_path_GREP
3668case `"$ac_path_GREP" --version 2>&1` in
3669*GNU*)
3670 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3671*)
3672 ac_count=0
3673 $as_echo_n 0123456789 >"conftest.in"
3674 while :
3675 do
3676 cat "conftest.in" "conftest.in" >"conftest.tmp"
3677 mv "conftest.tmp" "conftest.in"
3678 cp "conftest.in" "conftest.nl"
3679 $as_echo 'GREP' >> "conftest.nl"
3680 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3681 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3682 as_fn_arith $ac_count + 1 && ac_count=$as_val
3683 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3684 # Best one so far, save it but keep looking for a better one
3685 ac_cv_path_GREP="$ac_path_GREP"
3686 ac_path_GREP_max=$ac_count
3687 fi
3688 # 10*(2^10) chars as input seems more than enough
3689 test $ac_count -gt 10 && break
3690 done
3691 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3692esac
3693
3694 $ac_path_GREP_found && break 3
3695 done
3696 done
3697 done
3698IFS=$as_save_IFS
3699 if test -z "$ac_cv_path_GREP"; then
3700 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3701 fi
3702else
3703 ac_cv_path_GREP=$GREP
3704fi
3705
3706fi
3707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3708$as_echo "$ac_cv_path_GREP" >&6; }
3709 GREP="$ac_cv_path_GREP"
3710
3711
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3713$as_echo_n "checking for egrep... " >&6; }
3714if ${ac_cv_path_EGREP+:} false; then :
3715 $as_echo_n "(cached) " >&6
3716else
3717 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3718 then ac_cv_path_EGREP="$GREP -E"
3719 else
3720 if test -z "$EGREP"; then
3721 ac_path_EGREP_found=false
3722 # Loop through the user's path and test for each of PROGNAME-LIST
3723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3725do
3726 IFS=$as_save_IFS
3727 test -z "$as_dir" && as_dir=.
3728 for ac_prog in egrep; do
3729 for ac_exec_ext in '' $ac_executable_extensions; do
3730 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3731 as_fn_executable_p "$ac_path_EGREP" || continue
3732# Check for GNU ac_path_EGREP and select it if it is found.
3733 # Check for GNU $ac_path_EGREP
3734case `"$ac_path_EGREP" --version 2>&1` in
3735*GNU*)
3736 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3737*)
3738 ac_count=0
3739 $as_echo_n 0123456789 >"conftest.in"
3740 while :
3741 do
3742 cat "conftest.in" "conftest.in" >"conftest.tmp"
3743 mv "conftest.tmp" "conftest.in"
3744 cp "conftest.in" "conftest.nl"
3745 $as_echo 'EGREP' >> "conftest.nl"
3746 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3747 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3748 as_fn_arith $ac_count + 1 && ac_count=$as_val
3749 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3750 # Best one so far, save it but keep looking for a better one
3751 ac_cv_path_EGREP="$ac_path_EGREP"
3752 ac_path_EGREP_max=$ac_count
3753 fi
3754 # 10*(2^10) chars as input seems more than enough
3755 test $ac_count -gt 10 && break
3756 done
3757 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3758esac
3759
3760 $ac_path_EGREP_found && break 3
3761 done
3762 done
3763 done
3764IFS=$as_save_IFS
3765 if test -z "$ac_cv_path_EGREP"; then
3766 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3767 fi
3768else
3769 ac_cv_path_EGREP=$EGREP
3770fi
3771
3772 fi
3773fi
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3775$as_echo "$ac_cv_path_EGREP" >&6; }
3776 EGREP="$ac_cv_path_EGREP"
3777
3778
3779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3780$as_echo_n "checking for ANSI C header files... " >&6; }
3781if ${ac_cv_header_stdc+:} false; then :
3782 $as_echo_n "(cached) " >&6
3783else
3784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785/* end confdefs.h. */
3786#include <stdlib.h>
3787#include <stdarg.h>
3788#include <string.h>
3789#include <float.h>
3790
3791int
3792main ()
3793{
3794
3795 ;
3796 return 0;
3797}
3798_ACEOF
3799if ac_fn_c_try_compile "$LINENO"; then :
3800 ac_cv_header_stdc=yes
3801else
3802 ac_cv_header_stdc=no
3803fi
3804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805
3806if test $ac_cv_header_stdc = yes; then
3807 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809/* end confdefs.h. */
3810#include <string.h>
3811
3812_ACEOF
3813if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3814 $EGREP "memchr" >/dev/null 2>&1; then :
3815
3816else
3817 ac_cv_header_stdc=no
3818fi
3819rm -f conftest*
3820
3821fi
3822
3823if test $ac_cv_header_stdc = yes; then
3824 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826/* end confdefs.h. */
3827#include <stdlib.h>
3828
3829_ACEOF
3830if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3831 $EGREP "free" >/dev/null 2>&1; then :
3832
3833else
3834 ac_cv_header_stdc=no
3835fi
3836rm -f conftest*
3837
3838fi
3839
3840if test $ac_cv_header_stdc = yes; then
3841 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3842 if test "$cross_compiling" = yes; then :
3843 :
3844else
3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846/* end confdefs.h. */
3847#include <ctype.h>
3848#include <stdlib.h>
3849#if ((' ' & 0x0FF) == 0x020)
3850# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3851# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3852#else
3853# define ISLOWER(c) \
3854 (('a' <= (c) && (c) <= 'i') \
3855 || ('j' <= (c) && (c) <= 'r') \
3856 || ('s' <= (c) && (c) <= 'z'))
3857# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3858#endif
3859
3860#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3861int
3862main ()
3863{
3864 int i;
3865 for (i = 0; i < 256; i++)
3866 if (XOR (islower (i), ISLOWER (i))
3867 || toupper (i) != TOUPPER (i))
3868 return 2;
3869 return 0;
3870}
3871_ACEOF
3872if ac_fn_c_try_run "$LINENO"; then :
3873
3874else
3875 ac_cv_header_stdc=no
3876fi
3877rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3878 conftest.$ac_objext conftest.beam conftest.$ac_ext
3879fi
3880
3881fi
3882fi
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3884$as_echo "$ac_cv_header_stdc" >&6; }
3885if test $ac_cv_header_stdc = yes; then
3886
3887$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3888
3889fi
3890
3891# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3892for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3893 inttypes.h stdint.h unistd.h
3894do :
3895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3896ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3897"
3898if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3899 cat >>confdefs.h <<_ACEOF
3900#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3901_ACEOF
3902
3903fi
3904
3905done
3906
3907
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3909$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3910if ${ac_cv_c_bigendian+:} false; then :
3911 $as_echo_n "(cached) " >&6
3912else
3913 ac_cv_c_bigendian=unknown
3914 # See if we're dealing with a universal compiler.
3915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916/* end confdefs.h. */
3917#ifndef __APPLE_CC__
3918 not a universal capable compiler
3919 #endif
3920 typedef int dummy;
3921
3922_ACEOF
3923if ac_fn_c_try_compile "$LINENO"; then :
3924
3925 # Check for potential -arch flags. It is not universal unless
3926 # there are at least two -arch flags with different values.
3927 ac_arch=
3928 ac_prev=
3929 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3930 if test -n "$ac_prev"; then
3931 case $ac_word in
3932 i?86 | x86_64 | ppc | ppc64)
3933 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3934 ac_arch=$ac_word
3935 else
3936 ac_cv_c_bigendian=universal
3937 break
3938 fi
3939 ;;
3940 esac
3941 ac_prev=
3942 elif test "x$ac_word" = "x-arch"; then
3943 ac_prev=arch
3944 fi
3945 done
3946fi
3947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3948 if test $ac_cv_c_bigendian = unknown; then
3949 # See if sys/param.h defines the BYTE_ORDER macro.
3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951/* end confdefs.h. */
3952#include <sys/types.h>
3953 #include <sys/param.h>
3954
3955int
3956main ()
3957{
3958#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3959 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3960 && LITTLE_ENDIAN)
3961 bogus endian macros
3962 #endif
3963
3964 ;
3965 return 0;
3966}
3967_ACEOF
3968if ac_fn_c_try_compile "$LINENO"; then :
3969 # It does; now see whether it defined to BIG_ENDIAN or not.
3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971/* end confdefs.h. */
3972#include <sys/types.h>
3973 #include <sys/param.h>
3974
3975int
3976main ()
3977{
3978#if BYTE_ORDER != BIG_ENDIAN
3979 not big endian
3980 #endif
3981
3982 ;
3983 return 0;
3984}
3985_ACEOF
3986if ac_fn_c_try_compile "$LINENO"; then :
3987 ac_cv_c_bigendian=yes
3988else
3989 ac_cv_c_bigendian=no
3990fi
3991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3992fi
3993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3994 fi
3995 if test $ac_cv_c_bigendian = unknown; then
3996 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998/* end confdefs.h. */
3999#include <limits.h>
4000
4001int
4002main ()
4003{
4004#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4005 bogus endian macros
4006 #endif
4007
4008 ;
4009 return 0;
4010}
4011_ACEOF
4012if ac_fn_c_try_compile "$LINENO"; then :
4013 # It does; now see whether it defined to _BIG_ENDIAN or not.
4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015/* end confdefs.h. */
4016#include <limits.h>
4017
4018int
4019main ()
4020{
4021#ifndef _BIG_ENDIAN
4022 not big endian
4023 #endif
4024
4025 ;
4026 return 0;
4027}
4028_ACEOF
4029if ac_fn_c_try_compile "$LINENO"; then :
4030 ac_cv_c_bigendian=yes
4031else
4032 ac_cv_c_bigendian=no
4033fi
4034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4035fi
4036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4037 fi
4038 if test $ac_cv_c_bigendian = unknown; then
4039 # Compile a test program.
4040 if test "$cross_compiling" = yes; then :
4041 # Try to guess by grepping values from an object file.
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043/* end confdefs.h. */
4044short int ascii_mm[] =
4045 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4046 short int ascii_ii[] =
4047 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4048 int use_ascii (int i) {
4049 return ascii_mm[i] + ascii_ii[i];
4050 }
4051 short int ebcdic_ii[] =
4052 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4053 short int ebcdic_mm[] =
4054 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4055 int use_ebcdic (int i) {
4056 return ebcdic_mm[i] + ebcdic_ii[i];
4057 }
4058 extern int foo;
4059
4060int
4061main ()
4062{
4063return use_ascii (foo) == use_ebcdic (foo);
4064 ;
4065 return 0;
4066}
4067_ACEOF
4068if ac_fn_c_try_compile "$LINENO"; then :
4069 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4070 ac_cv_c_bigendian=yes
4071 fi
4072 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4073 if test "$ac_cv_c_bigendian" = unknown; then
4074 ac_cv_c_bigendian=no
4075 else
4076 # finding both strings is unlikely to happen, but who knows?
4077 ac_cv_c_bigendian=unknown
4078 fi
4079 fi
4080fi
4081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4082else
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084/* end confdefs.h. */
4085$ac_includes_default
4086int
4087main ()
4088{
4089
4090 /* Are we little or big endian? From Harbison&Steele. */
4091 union
4092 {
4093 long int l;
4094 char c[sizeof (long int)];
4095 } u;
4096 u.l = 1;
4097 return u.c[sizeof (long int) - 1] == 1;
4098
4099 ;
4100 return 0;
4101}
4102_ACEOF
4103if ac_fn_c_try_run "$LINENO"; then :
4104 ac_cv_c_bigendian=no
4105else
4106 ac_cv_c_bigendian=yes
4107fi
4108rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4109 conftest.$ac_objext conftest.beam conftest.$ac_ext
4110fi
4111
4112 fi
4113fi
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4115$as_echo "$ac_cv_c_bigendian" >&6; }
4116 case $ac_cv_c_bigendian in #(
4117 yes)
4118 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4119;; #(
4120 no)
4121 ;; #(
4122 universal)
4123
4124$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4125
4126 ;; #(
4127 *)
4128 as_fn_error $? "unknown endianness
4129 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4130 esac
4131
4132
4133# Checks for programs.
4134for ac_prog in gawk mawk nawk awk
4135do
4136 # Extract the first word of "$ac_prog", so it can be a program name with args.
4137set dummy $ac_prog; ac_word=$2
4138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4139$as_echo_n "checking for $ac_word... " >&6; }
4140if ${ac_cv_prog_AWK+:} false; then :
4141 $as_echo_n "(cached) " >&6
4142else
4143 if test -n "$AWK"; then
4144 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4145else
4146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147for as_dir in $PATH
4148do
4149 IFS=$as_save_IFS
4150 test -z "$as_dir" && as_dir=.
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153 ac_cv_prog_AWK="$ac_prog"
4154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 break 2
4156 fi
4157done
4158 done
4159IFS=$as_save_IFS
4160
4161fi
4162fi
4163AWK=$ac_cv_prog_AWK
4164if test -n "$AWK"; then
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4166$as_echo "$AWK" >&6; }
4167else
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4169$as_echo "no" >&6; }
4170fi
4171
4172
4173 test -n "$AWK" && break
4174done
4175
4176ac_ext=c
4177ac_cpp='$CPP $CPPFLAGS'
4178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180ac_compiler_gnu=$ac_cv_c_compiler_gnu
4181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4182$as_echo_n "checking how to run the C preprocessor... " >&6; }
4183# On Suns, sometimes $CPP names a directory.
4184if test -n "$CPP" && test -d "$CPP"; then
4185 CPP=
4186fi
4187if test -z "$CPP"; then
4188 if ${ac_cv_prog_CPP+:} false; then :
4189 $as_echo_n "(cached) " >&6
4190else
4191 # Double quotes because CPP needs to be expanded
4192 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4193 do
4194 ac_preproc_ok=false
4195for ac_c_preproc_warn_flag in '' yes
4196do
4197 # Use a header file that comes with gcc, so configuring glibc
4198 # with a fresh cross-compiler works.
4199 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4200 # <limits.h> exists even on freestanding compilers.
4201 # On the NeXT, cc -E runs the code through the compiler's parser,
4202 # not just through cpp. "Syntax error" is here to catch this case.
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204/* end confdefs.h. */
4205#ifdef __STDC__
4206# include <limits.h>
4207#else
4208# include <assert.h>
4209#endif
4210 Syntax error
4211_ACEOF
4212if ac_fn_c_try_cpp "$LINENO"; then :
4213
4214else
4215 # Broken: fails on valid input.
4216continue
4217fi
4218rm -f conftest.err conftest.i conftest.$ac_ext
4219
4220 # OK, works on sane cases. Now check whether nonexistent headers
4221 # can be detected and how.
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223/* end confdefs.h. */
4224#include <ac_nonexistent.h>
4225_ACEOF
4226if ac_fn_c_try_cpp "$LINENO"; then :
4227 # Broken: success on invalid input.
4228continue
4229else
4230 # Passes both tests.
4231ac_preproc_ok=:
4232break
4233fi
4234rm -f conftest.err conftest.i conftest.$ac_ext
4235
4236done
4237# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4238rm -f conftest.i conftest.err conftest.$ac_ext
4239if $ac_preproc_ok; then :
4240 break
4241fi
4242
4243 done
4244 ac_cv_prog_CPP=$CPP
4245
4246fi
4247 CPP=$ac_cv_prog_CPP
4248else
4249 ac_cv_prog_CPP=$CPP
4250fi
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4252$as_echo "$CPP" >&6; }
4253ac_preproc_ok=false
4254for ac_c_preproc_warn_flag in '' yes
4255do
4256 # Use a header file that comes with gcc, so configuring glibc
4257 # with a fresh cross-compiler works.
4258 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4259 # <limits.h> exists even on freestanding compilers.
4260 # On the NeXT, cc -E runs the code through the compiler's parser,
4261 # not just through cpp. "Syntax error" is here to catch this case.
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263/* end confdefs.h. */
4264#ifdef __STDC__
4265# include <limits.h>
4266#else
4267# include <assert.h>
4268#endif
4269 Syntax error
4270_ACEOF
4271if ac_fn_c_try_cpp "$LINENO"; then :
4272
4273else
4274 # Broken: fails on valid input.
4275continue
4276fi
4277rm -f conftest.err conftest.i conftest.$ac_ext
4278
4279 # OK, works on sane cases. Now check whether nonexistent headers
4280 # can be detected and how.
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282/* end confdefs.h. */
4283#include <ac_nonexistent.h>
4284_ACEOF
4285if ac_fn_c_try_cpp "$LINENO"; then :
4286 # Broken: success on invalid input.
4287continue
4288else
4289 # Passes both tests.
4290ac_preproc_ok=:
4291break
4292fi
4293rm -f conftest.err conftest.i conftest.$ac_ext
4294
4295done
4296# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4297rm -f conftest.i conftest.err conftest.$ac_ext
4298if $ac_preproc_ok; then :
4299
4300else
4301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4303as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4304See \`config.log' for more details" "$LINENO" 5; }
4305fi
4306
4307ac_ext=c
4308ac_cpp='$CPP $CPPFLAGS'
4309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4311ac_compiler_gnu=$ac_cv_c_compiler_gnu
4312
4313if test -n "$ac_tool_prefix"; then
4314 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4315set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4317$as_echo_n "checking for $ac_word... " >&6; }
4318if ${ac_cv_prog_RANLIB+:} false; then :
4319 $as_echo_n "(cached) " >&6
4320else
4321 if test -n "$RANLIB"; then
4322 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4323else
4324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325for as_dir in $PATH
4326do
4327 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4331 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 break 2
4334 fi
4335done
4336 done
4337IFS=$as_save_IFS
4338
4339fi
4340fi
4341RANLIB=$ac_cv_prog_RANLIB
4342if test -n "$RANLIB"; then
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4344$as_echo "$RANLIB" >&6; }
4345else
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347$as_echo "no" >&6; }
4348fi
4349
4350
4351fi
4352if test -z "$ac_cv_prog_RANLIB"; then
4353 ac_ct_RANLIB=$RANLIB
4354 # Extract the first word of "ranlib", so it can be a program name with args.
4355set dummy ranlib; ac_word=$2
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4357$as_echo_n "checking for $ac_word... " >&6; }
4358if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4359 $as_echo_n "(cached) " >&6
4360else
4361 if test -n "$ac_ct_RANLIB"; then
4362 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4363else
4364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365for as_dir in $PATH
4366do
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4371 ac_cv_prog_ac_ct_RANLIB="ranlib"
4372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 break 2
4374 fi
4375done
4376 done
4377IFS=$as_save_IFS
4378
4379fi
4380fi
4381ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4382if test -n "$ac_ct_RANLIB"; then
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4384$as_echo "$ac_ct_RANLIB" >&6; }
4385else
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387$as_echo "no" >&6; }
4388fi
4389
4390 if test "x$ac_ct_RANLIB" = x; then
4391 RANLIB=":"
4392 else
4393 case $cross_compiling:$ac_tool_warned in
4394yes:)
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4396$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4397ac_tool_warned=yes ;;
4398esac
4399 RANLIB=$ac_ct_RANLIB
4400 fi
4401else
4402 RANLIB="$ac_cv_prog_RANLIB"
4403fi
4404
4405# Find a good install program. We prefer a C program (faster),
4406# so one script is as good as another. But avoid the broken or
4407# incompatible versions:
4408# SysV /etc/install, /usr/sbin/install
4409# SunOS /usr/etc/install
4410# IRIX /sbin/install
4411# AIX /bin/install
4412# AmigaOS /C/install, which installs bootblocks on floppy discs
4413# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4414# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4415# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4416# OS/2's system install, which has a completely different semantic
4417# ./install, which can be erroneously created by make from ./install.sh.
4418# Reject install programs that cannot install multiple files.
4419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4420$as_echo_n "checking for a BSD-compatible install... " >&6; }
4421if test -z "$INSTALL"; then
4422if ${ac_cv_path_install+:} false; then :
4423 $as_echo_n "(cached) " >&6
4424else
4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426for as_dir in $PATH
4427do
4428 IFS=$as_save_IFS
4429 test -z "$as_dir" && as_dir=.
4430 # Account for people who put trailing slashes in PATH elements.
4431case $as_dir/ in #((
4432 ./ | .// | /[cC]/* | \
4433 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4434 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4435 /usr/ucb/* ) ;;
4436 *)
4437 # OSF1 and SCO ODT 3.0 have their own names for install.
4438 # Don't use installbsd from OSF since it installs stuff as root
4439 # by default.
4440 for ac_prog in ginstall scoinst install; do
4441 for ac_exec_ext in '' $ac_executable_extensions; do
4442 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4443 if test $ac_prog = install &&
4444 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4445 # AIX install. It has an incompatible calling convention.
4446 :
4447 elif test $ac_prog = install &&
4448 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4449 # program-specific install script used by HP pwplus--don't use.
4450 :
4451 else
4452 rm -rf conftest.one conftest.two conftest.dir
4453 echo one > conftest.one
4454 echo two > conftest.two
4455 mkdir conftest.dir
4456 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4457 test -s conftest.one && test -s conftest.two &&
4458 test -s conftest.dir/conftest.one &&
4459 test -s conftest.dir/conftest.two
4460 then
4461 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4462 break 3
4463 fi
4464 fi
4465 fi
4466 done
4467 done
4468 ;;
4469esac
4470
4471 done
4472IFS=$as_save_IFS
4473
4474rm -rf conftest.one conftest.two conftest.dir
4475
4476fi
4477 if test "${ac_cv_path_install+set}" = set; then
4478 INSTALL=$ac_cv_path_install
4479 else
4480 # As a last resort, use the slow shell script. Don't cache a
4481 # value for INSTALL within a source directory, because that will
4482 # break other packages using the cache if that directory is
4483 # removed, or if the value is a relative name.
4484 INSTALL=$ac_install_sh
4485 fi
4486fi
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4488$as_echo "$INSTALL" >&6; }
4489
4490# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4491# It thinks the first close brace ends the variable substitution.
4492test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4493
4494test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4495
4496test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4497
4498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4499$as_echo_n "checking for egrep... " >&6; }
4500if ${ac_cv_path_EGREP+:} false; then :
4501 $as_echo_n "(cached) " >&6
4502else
4503 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4504 then ac_cv_path_EGREP="$GREP -E"
4505 else
4506 if test -z "$EGREP"; then
4507 ac_path_EGREP_found=false
4508 # Loop through the user's path and test for each of PROGNAME-LIST
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4511do
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_prog in egrep; do
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4517 as_fn_executable_p "$ac_path_EGREP" || continue
4518# Check for GNU ac_path_EGREP and select it if it is found.
4519 # Check for GNU $ac_path_EGREP
4520case `"$ac_path_EGREP" --version 2>&1` in
4521*GNU*)
4522 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4523*)
4524 ac_count=0
4525 $as_echo_n 0123456789 >"conftest.in"
4526 while :
4527 do
4528 cat "conftest.in" "conftest.in" >"conftest.tmp"
4529 mv "conftest.tmp" "conftest.in"
4530 cp "conftest.in" "conftest.nl"
4531 $as_echo 'EGREP' >> "conftest.nl"
4532 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4534 as_fn_arith $ac_count + 1 && ac_count=$as_val
4535 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4536 # Best one so far, save it but keep looking for a better one
4537 ac_cv_path_EGREP="$ac_path_EGREP"
4538 ac_path_EGREP_max=$ac_count
4539 fi
4540 # 10*(2^10) chars as input seems more than enough
4541 test $ac_count -gt 10 && break
4542 done
4543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4544esac
4545
4546 $ac_path_EGREP_found && break 3
4547 done
4548 done
4549 done
4550IFS=$as_save_IFS
4551 if test -z "$ac_cv_path_EGREP"; then
4552 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4553 fi
4554else
4555 ac_cv_path_EGREP=$EGREP
4556fi
4557
4558 fi
4559fi
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4561$as_echo "$ac_cv_path_EGREP" >&6; }
4562 EGREP="$ac_cv_path_EGREP"
4563
4564
4565if test -n "$ac_tool_prefix"; then
4566 for ac_prog in ar
4567 do
4568 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4569set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4571$as_echo_n "checking for $ac_word... " >&6; }
4572if ${ac_cv_prog_AR+:} false; then :
4573 $as_echo_n "(cached) " >&6
4574else
4575 if test -n "$AR"; then
4576 ac_cv_prog_AR="$AR" # Let the user override the test.
4577else
4578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579for as_dir in $PATH
4580do
4581 IFS=$as_save_IFS
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4585 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 break 2
4588 fi
4589done
4590 done
4591IFS=$as_save_IFS
4592
4593fi
4594fi
4595AR=$ac_cv_prog_AR
4596if test -n "$AR"; then
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4598$as_echo "$AR" >&6; }
4599else
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601$as_echo "no" >&6; }
4602fi
4603
4604
4605 test -n "$AR" && break
4606 done
4607fi
4608if test -z "$AR"; then
4609 ac_ct_AR=$AR
4610 for ac_prog in ar
4611do
4612 # Extract the first word of "$ac_prog", so it can be a program name with args.
4613set dummy $ac_prog; ac_word=$2
4614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4615$as_echo_n "checking for $ac_word... " >&6; }
4616if ${ac_cv_prog_ac_ct_AR+:} false; then :
4617 $as_echo_n "(cached) " >&6
4618else
4619 if test -n "$ac_ct_AR"; then
4620 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4621else
4622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623for as_dir in $PATH
4624do
4625 IFS=$as_save_IFS
4626 test -z "$as_dir" && as_dir=.
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4629 ac_cv_prog_ac_ct_AR="$ac_prog"
4630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 break 2
4632 fi
4633done
4634 done
4635IFS=$as_save_IFS
4636
4637fi
4638fi
4639ac_ct_AR=$ac_cv_prog_ac_ct_AR
4640if test -n "$ac_ct_AR"; then
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4642$as_echo "$ac_ct_AR" >&6; }
4643else
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4645$as_echo "no" >&6; }
4646fi
4647
4648
4649 test -n "$ac_ct_AR" && break
4650done
4651
4652 if test "x$ac_ct_AR" = x; then
4653 AR=""
4654 else
4655 case $cross_compiling:$ac_tool_warned in
4656yes:)
4657{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4658$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4659ac_tool_warned=yes ;;
4660esac
4661 AR=$ac_ct_AR
4662 fi
4663fi
4664
4665# Extract the first word of "cat", so it can be a program name with args.
4666set dummy cat; ac_word=$2
4667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4668$as_echo_n "checking for $ac_word... " >&6; }
4669if ${ac_cv_path_CAT+:} false; then :
4670 $as_echo_n "(cached) " >&6
4671else
4672 case $CAT in
4673 [\\/]* | ?:[\\/]*)
4674 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4675 ;;
4676 *)
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678for as_dir in $PATH
4679do
4680 IFS=$as_save_IFS
4681 test -z "$as_dir" && as_dir=.
4682 for ac_exec_ext in '' $ac_executable_extensions; do
4683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4684 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 break 2
4687 fi
4688done
4689 done
4690IFS=$as_save_IFS
4691
4692 ;;
4693esac
4694fi
4695CAT=$ac_cv_path_CAT
4696if test -n "$CAT"; then
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4698$as_echo "$CAT" >&6; }
4699else
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701$as_echo "no" >&6; }
4702fi
4703
4704
4705# Extract the first word of "kill", so it can be a program name with args.
4706set dummy kill; ac_word=$2
4707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4708$as_echo_n "checking for $ac_word... " >&6; }
4709if ${ac_cv_path_KILL+:} false; then :
4710 $as_echo_n "(cached) " >&6
4711else
4712 case $KILL in
4713 [\\/]* | ?:[\\/]*)
4714 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4715 ;;
4716 *)
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718for as_dir in $PATH
4719do
4720 IFS=$as_save_IFS
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4724 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 break 2
4727 fi
4728done
4729 done
4730IFS=$as_save_IFS
4731
4732 ;;
4733esac
4734fi
4735KILL=$ac_cv_path_KILL
4736if test -n "$KILL"; then
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5
4738$as_echo "$KILL" >&6; }
4739else
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4741$as_echo "no" >&6; }
4742fi
4743
4744
4745for ac_prog in perl5 perl
4746do
4747 # Extract the first word of "$ac_prog", so it can be a program name with args.
4748set dummy $ac_prog; ac_word=$2
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4750$as_echo_n "checking for $ac_word... " >&6; }
4751if ${ac_cv_path_PERL+:} false; then :
4752 $as_echo_n "(cached) " >&6
4753else
4754 case $PERL in
4755 [\\/]* | ?:[\\/]*)
4756 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4757 ;;
4758 *)
4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760for as_dir in $PATH
4761do
4762 IFS=$as_save_IFS
4763 test -z "$as_dir" && as_dir=.
4764 for ac_exec_ext in '' $ac_executable_extensions; do
4765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4766 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4768 break 2
4769 fi
4770done
4771 done
4772IFS=$as_save_IFS
4773
4774 ;;
4775esac
4776fi
4777PERL=$ac_cv_path_PERL
4778if test -n "$PERL"; then
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4780$as_echo "$PERL" >&6; }
4781else
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783$as_echo "no" >&6; }
4784fi
4785
4786
4787 test -n "$PERL" && break
4788done
4789
4790# Extract the first word of "sed", so it can be a program name with args.
4791set dummy sed; ac_word=$2
4792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4793$as_echo_n "checking for $ac_word... " >&6; }
4794if ${ac_cv_path_SED+:} false; then :
4795 $as_echo_n "(cached) " >&6
4796else
4797 case $SED in
4798 [\\/]* | ?:[\\/]*)
4799 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4800 ;;
4801 *)
4802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803for as_dir in $PATH
4804do
4805 IFS=$as_save_IFS
4806 test -z "$as_dir" && as_dir=.
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4809 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 break 2
4812 fi
4813done
4814 done
4815IFS=$as_save_IFS
4816
4817 ;;
4818esac
4819fi
4820SED=$ac_cv_path_SED
4821if test -n "$SED"; then
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4823$as_echo "$SED" >&6; }
4824else
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4826$as_echo "no" >&6; }
4827fi
4828
4829
4830
4831# Extract the first word of "ent", so it can be a program name with args.
4832set dummy ent; ac_word=$2
4833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4834$as_echo_n "checking for $ac_word... " >&6; }
4835if ${ac_cv_path_ENT+:} false; then :
4836 $as_echo_n "(cached) " >&6
4837else
4838 case $ENT in
4839 [\\/]* | ?:[\\/]*)
4840 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4841 ;;
4842 *)
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844for as_dir in $PATH
4845do
4846 IFS=$as_save_IFS
4847 test -z "$as_dir" && as_dir=.
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4850 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4852 break 2
4853 fi
4854done
4855 done
4856IFS=$as_save_IFS
4857
4858 ;;
4859esac
4860fi
4861ENT=$ac_cv_path_ENT
4862if test -n "$ENT"; then
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5
4864$as_echo "$ENT" >&6; }
4865else
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4867$as_echo "no" >&6; }
4868fi
4869
4870
4871
4872# Extract the first word of "bash", so it can be a program name with args.
4873set dummy bash; ac_word=$2
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4875$as_echo_n "checking for $ac_word... " >&6; }
4876if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4877 $as_echo_n "(cached) " >&6
4878else
4879 case $TEST_MINUS_S_SH in
4880 [\\/]* | ?:[\\/]*)
4881 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4882 ;;
4883 *)
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885for as_dir in $PATH
4886do
4887 IFS=$as_save_IFS
4888 test -z "$as_dir" && as_dir=.
4889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4891 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 break 2
4894 fi
4895done
4896 done
4897IFS=$as_save_IFS
4898
4899 ;;
4900esac
4901fi
4902TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4903if test -n "$TEST_MINUS_S_SH"; then
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4905$as_echo "$TEST_MINUS_S_SH" >&6; }
4906else
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908$as_echo "no" >&6; }
4909fi
4910
4911
4912# Extract the first word of "ksh", so it can be a program name with args.
4913set dummy ksh; ac_word=$2
4914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915$as_echo_n "checking for $ac_word... " >&6; }
4916if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4917 $as_echo_n "(cached) " >&6
4918else
4919 case $TEST_MINUS_S_SH in
4920 [\\/]* | ?:[\\/]*)
4921 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4922 ;;
4923 *)
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925for as_dir in $PATH
4926do
4927 IFS=$as_save_IFS
4928 test -z "$as_dir" && as_dir=.
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4931 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 break 2
4934 fi
4935done
4936 done
4937IFS=$as_save_IFS
4938
4939 ;;
4940esac
4941fi
4942TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4943if test -n "$TEST_MINUS_S_SH"; then
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4945$as_echo "$TEST_MINUS_S_SH" >&6; }
4946else
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948$as_echo "no" >&6; }
4949fi
4950
4951
4952# Extract the first word of "sh", so it can be a program name with args.
4953set dummy sh; ac_word=$2
4954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4955$as_echo_n "checking for $ac_word... " >&6; }
4956if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4957 $as_echo_n "(cached) " >&6
4958else
4959 case $TEST_MINUS_S_SH in
4960 [\\/]* | ?:[\\/]*)
4961 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4962 ;;
4963 *)
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965for as_dir in $PATH
4966do
4967 IFS=$as_save_IFS
4968 test -z "$as_dir" && as_dir=.
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4971 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 break 2
4974 fi
4975done
4976 done
4977IFS=$as_save_IFS
4978
4979 ;;
4980esac
4981fi
4982TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4983if test -n "$TEST_MINUS_S_SH"; then
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4985$as_echo "$TEST_MINUS_S_SH" >&6; }
4986else
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988$as_echo "no" >&6; }
4989fi
4990
4991
4992# Extract the first word of "sh", so it can be a program name with args.
4993set dummy sh; ac_word=$2
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4995$as_echo_n "checking for $ac_word... " >&6; }
4996if ${ac_cv_path_SH+:} false; then :
4997 $as_echo_n "(cached) " >&6
4998else
4999 case $SH in
5000 [\\/]* | ?:[\\/]*)
5001 ac_cv_path_SH="$SH" # Let the user override the test with a path.
5002 ;;
5003 *)
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005for as_dir in $PATH
5006do
5007 IFS=$as_save_IFS
5008 test -z "$as_dir" && as_dir=.
5009 for ac_exec_ext in '' $ac_executable_extensions; do
5010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5011 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
5012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5013 break 2
5014 fi
5015done
5016 done
5017IFS=$as_save_IFS
5018
5019 ;;
5020esac
5021fi
5022SH=$ac_cv_path_SH
5023if test -n "$SH"; then
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
5025$as_echo "$SH" >&6; }
5026else
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028$as_echo "no" >&6; }
5029fi
5030
5031
5032# Extract the first word of "groff", so it can be a program name with args.
5033set dummy groff; ac_word=$2
5034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5035$as_echo_n "checking for $ac_word... " >&6; }
5036if ${ac_cv_path_GROFF+:} false; then :
5037 $as_echo_n "(cached) " >&6
5038else
5039 case $GROFF in
5040 [\\/]* | ?:[\\/]*)
5041 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5042 ;;
5043 *)
5044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045for as_dir in $PATH
5046do
5047 IFS=$as_save_IFS
5048 test -z "$as_dir" && as_dir=.
5049 for ac_exec_ext in '' $ac_executable_extensions; do
5050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5051 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5053 break 2
5054 fi
5055done
5056 done
5057IFS=$as_save_IFS
5058
5059 ;;
5060esac
5061fi
5062GROFF=$ac_cv_path_GROFF
5063if test -n "$GROFF"; then
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
5065$as_echo "$GROFF" >&6; }
5066else
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5068$as_echo "no" >&6; }
5069fi
5070
5071
5072# Extract the first word of "nroff", so it can be a program name with args.
5073set dummy nroff; ac_word=$2
5074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075$as_echo_n "checking for $ac_word... " >&6; }
5076if ${ac_cv_path_NROFF+:} false; then :
5077 $as_echo_n "(cached) " >&6
5078else
5079 case $NROFF in
5080 [\\/]* | ?:[\\/]*)
5081 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
5082 ;;
5083 *)
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085for as_dir in $PATH
5086do
5087 IFS=$as_save_IFS
5088 test -z "$as_dir" && as_dir=.
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5091 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5093 break 2
5094 fi
5095done
5096 done
5097IFS=$as_save_IFS
5098
5099 ;;
5100esac
5101fi
5102NROFF=$ac_cv_path_NROFF
5103if test -n "$NROFF"; then
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
5105$as_echo "$NROFF" >&6; }
5106else
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108$as_echo "no" >&6; }
5109fi
5110
5111
5112# Extract the first word of "mandoc", so it can be a program name with args.
5113set dummy mandoc; ac_word=$2
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115$as_echo_n "checking for $ac_word... " >&6; }
5116if ${ac_cv_path_MANDOC+:} false; then :
5117 $as_echo_n "(cached) " >&6
5118else
5119 case $MANDOC in
5120 [\\/]* | ?:[\\/]*)
5121 ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path.
5122 ;;
5123 *)
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125for as_dir in $PATH
5126do
5127 IFS=$as_save_IFS
5128 test -z "$as_dir" && as_dir=.
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5131 ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext"
5132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5133 break 2
5134 fi
5135done
5136 done
5137IFS=$as_save_IFS
5138
5139 ;;
5140esac
5141fi
5142MANDOC=$ac_cv_path_MANDOC
5143if test -n "$MANDOC"; then
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5
5145$as_echo "$MANDOC" >&6; }
5146else
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148$as_echo "no" >&6; }
5149fi
5150
5151
5152TEST_SHELL=sh
5153
5154
5155if test "x$MANDOC" != "x" ; then
5156 MANFMT="$MANDOC"
5157elif test "x$NROFF" != "x" ; then
5158 MANFMT="$NROFF -mandoc"
5159elif test "x$GROFF" != "x" ; then
5160 MANFMT="$GROFF -mandoc -Tascii"
5161else
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatted found" >&5
5163$as_echo "$as_me: WARNING: no manpage formatted found" >&2;}
5164 MANFMT="false"
5165fi
5166
5167
5168# Extract the first word of "groupadd", so it can be a program name with args.
5169set dummy groupadd; ac_word=$2
5170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5171$as_echo_n "checking for $ac_word... " >&6; }
5172if ${ac_cv_path_PATH_GROUPADD_PROG+:} false; then :
5173 $as_echo_n "(cached) " >&6
5174else
5175 case $PATH_GROUPADD_PROG in
5176 [\\/]* | ?:[\\/]*)
5177 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
5178 ;;
5179 *)
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5182do
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5187 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 break 2
5190 fi
5191done
5192 done
5193IFS=$as_save_IFS
5194
5195 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
5196 ;;
5197esac
5198fi
5199PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
5200if test -n "$PATH_GROUPADD_PROG"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5
5202$as_echo "$PATH_GROUPADD_PROG" >&6; }
5203else
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205$as_echo "no" >&6; }
5206fi
5207
5208
5209# Extract the first word of "useradd", so it can be a program name with args.
5210set dummy useradd; ac_word=$2
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5212$as_echo_n "checking for $ac_word... " >&6; }
5213if ${ac_cv_path_PATH_USERADD_PROG+:} false; then :
5214 $as_echo_n "(cached) " >&6
5215else
5216 case $PATH_USERADD_PROG in
5217 [\\/]* | ?:[\\/]*)
5218 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
5219 ;;
5220 *)
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5223do
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 break 2
5231 fi
5232done
5233 done
5234IFS=$as_save_IFS
5235
5236 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
5237 ;;
5238esac
5239fi
5240PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
5241if test -n "$PATH_USERADD_PROG"; then
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5
5243$as_echo "$PATH_USERADD_PROG" >&6; }
5244else
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5246$as_echo "no" >&6; }
5247fi
5248
5249
5250# Extract the first word of "pkgmk", so it can be a program name with args.
5251set dummy pkgmk; ac_word=$2
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253$as_echo_n "checking for $ac_word... " >&6; }
5254if ${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+:} false; then :
5255 $as_echo_n "(cached) " >&6
5256else
5257 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5258 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
5259else
5260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261for as_dir in $PATH
5262do
5263 IFS=$as_save_IFS
5264 test -z "$as_dir" && as_dir=.
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5267 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
5268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269 break 2
5270 fi
5271done
5272 done
5273IFS=$as_save_IFS
5274
5275 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
5276fi
5277fi
5278MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
5279if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5
5281$as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; }
5282else
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284$as_echo "no" >&6; }
5285fi
5286
5287
5288if test -x /sbin/sh; then
5289 STARTUP_SCRIPT_SHELL=/sbin/sh
5290
5291else
5292 STARTUP_SCRIPT_SHELL=/bin/sh
5293
5294fi
5295
5296# System features
5297# Check whether --enable-largefile was given.
5298if test "${enable_largefile+set}" = set; then :
5299 enableval=$enable_largefile;
5300fi
5301
5302if test "$enable_largefile" != no; then
5303
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5305$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5306if ${ac_cv_sys_largefile_CC+:} false; then :
5307 $as_echo_n "(cached) " >&6
5308else
5309 ac_cv_sys_largefile_CC=no
5310 if test "$GCC" != yes; then
5311 ac_save_CC=$CC
5312 while :; do
5313 # IRIX 6.2 and later do not support large files by default,
5314 # so use the C compiler's -n32 option if that helps.
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316/* end confdefs.h. */
5317#include <sys/types.h>
5318 /* Check that off_t can represent 2**63 - 1 correctly.
5319 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5320 since some C++ compilers masquerading as C compilers
5321 incorrectly reject 9223372036854775807. */
5322#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5323 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5324 && LARGE_OFF_T % 2147483647 == 1)
5325 ? 1 : -1];
5326int
5327main ()
5328{
5329
5330 ;
5331 return 0;
5332}
5333_ACEOF
5334 if ac_fn_c_try_compile "$LINENO"; then :
5335 break
5336fi
5337rm -f core conftest.err conftest.$ac_objext
5338 CC="$CC -n32"
5339 if ac_fn_c_try_compile "$LINENO"; then :
5340 ac_cv_sys_largefile_CC=' -n32'; break
5341fi
5342rm -f core conftest.err conftest.$ac_objext
5343 break
5344 done
5345 CC=$ac_save_CC
5346 rm -f conftest.$ac_ext
5347 fi
5348fi
5349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5350$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5351 if test "$ac_cv_sys_largefile_CC" != no; then
5352 CC=$CC$ac_cv_sys_largefile_CC
5353 fi
5354
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5356$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5357if ${ac_cv_sys_file_offset_bits+:} false; then :
5358 $as_echo_n "(cached) " >&6
5359else
5360 while :; do
5361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5362/* end confdefs.h. */
5363#include <sys/types.h>
5364 /* Check that off_t can represent 2**63 - 1 correctly.
5365 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5366 since some C++ compilers masquerading as C compilers
5367 incorrectly reject 9223372036854775807. */
5368#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5369 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5370 && LARGE_OFF_T % 2147483647 == 1)
5371 ? 1 : -1];
5372int
5373main ()
5374{
5375
5376 ;
5377 return 0;
5378}
5379_ACEOF
5380if ac_fn_c_try_compile "$LINENO"; then :
5381 ac_cv_sys_file_offset_bits=no; break
5382fi
5383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385/* end confdefs.h. */
5386#define _FILE_OFFSET_BITS 64
5387#include <sys/types.h>
5388 /* Check that off_t can represent 2**63 - 1 correctly.
5389 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5390 since some C++ compilers masquerading as C compilers
5391 incorrectly reject 9223372036854775807. */
5392#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5393 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5394 && LARGE_OFF_T % 2147483647 == 1)
5395 ? 1 : -1];
5396int
5397main ()
5398{
5399
5400 ;
5401 return 0;
5402}
5403_ACEOF
5404if ac_fn_c_try_compile "$LINENO"; then :
5405 ac_cv_sys_file_offset_bits=64; break
5406fi
5407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 ac_cv_sys_file_offset_bits=unknown
5409 break
5410done
5411fi
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5413$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5414case $ac_cv_sys_file_offset_bits in #(
5415 no | unknown) ;;
5416 *)
5417cat >>confdefs.h <<_ACEOF
5418#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5419_ACEOF
5420;;
5421esac
5422rm -rf conftest*
5423 if test $ac_cv_sys_file_offset_bits = unknown; then
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5425$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5426if ${ac_cv_sys_large_files+:} false; then :
5427 $as_echo_n "(cached) " >&6
5428else
5429 while :; do
5430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431/* end confdefs.h. */
5432#include <sys/types.h>
5433 /* Check that off_t can represent 2**63 - 1 correctly.
5434 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5435 since some C++ compilers masquerading as C compilers
5436 incorrectly reject 9223372036854775807. */
5437#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5438 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5439 && LARGE_OFF_T % 2147483647 == 1)
5440 ? 1 : -1];
5441int
5442main ()
5443{
5444
5445 ;
5446 return 0;
5447}
5448_ACEOF
5449if ac_fn_c_try_compile "$LINENO"; then :
5450 ac_cv_sys_large_files=no; break
5451fi
5452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454/* end confdefs.h. */
5455#define _LARGE_FILES 1
5456#include <sys/types.h>
5457 /* Check that off_t can represent 2**63 - 1 correctly.
5458 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5459 since some C++ compilers masquerading as C compilers
5460 incorrectly reject 9223372036854775807. */
5461#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5462 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5463 && LARGE_OFF_T % 2147483647 == 1)
5464 ? 1 : -1];
5465int
5466main ()
5467{
5468
5469 ;
5470 return 0;
5471}
5472_ACEOF
5473if ac_fn_c_try_compile "$LINENO"; then :
5474 ac_cv_sys_large_files=1; break
5475fi
5476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5477 ac_cv_sys_large_files=unknown
5478 break
5479done
5480fi
5481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5482$as_echo "$ac_cv_sys_large_files" >&6; }
5483case $ac_cv_sys_large_files in #(
5484 no | unknown) ;;
5485 *)
5486cat >>confdefs.h <<_ACEOF
5487#define _LARGE_FILES $ac_cv_sys_large_files
5488_ACEOF
5489;;
5490esac
5491rm -rf conftest*
5492 fi
5493
5494
5495fi
5496
5497
5498if test -z "$AR" ; then
5499 as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5
5500fi
5501
5502# Extract the first word of "passwd", so it can be a program name with args.
5503set dummy passwd; ac_word=$2
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505$as_echo_n "checking for $ac_word... " >&6; }
5506if ${ac_cv_path_PATH_PASSWD_PROG+:} false; then :
5507 $as_echo_n "(cached) " >&6
5508else
5509 case $PATH_PASSWD_PROG in
5510 [\\/]* | ?:[\\/]*)
5511 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5512 ;;
5513 *)
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515for as_dir in $PATH
5516do
5517 IFS=$as_save_IFS
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5521 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5523 break 2
5524 fi
5525done
5526 done
5527IFS=$as_save_IFS
5528
5529 ;;
5530esac
5531fi
5532PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5533if test -n "$PATH_PASSWD_PROG"; then
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5
5535$as_echo "$PATH_PASSWD_PROG" >&6; }
5536else
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538$as_echo "no" >&6; }
5539fi
5540
5541
5542if test ! -z "$PATH_PASSWD_PROG" ; then
5543
5544cat >>confdefs.h <<_ACEOF
5545#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5546_ACEOF
5547
5548fi
5549
5550if test -z "$LD" ; then
5551 LD=$CC
5552fi
5553
5554
5555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5556$as_echo_n "checking for inline... " >&6; }
5557if ${ac_cv_c_inline+:} false; then :
5558 $as_echo_n "(cached) " >&6
5559else
5560 ac_cv_c_inline=no
5561for ac_kw in inline __inline__ __inline; do
5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563/* end confdefs.h. */
5564#ifndef __cplusplus
5565typedef int foo_t;
5566static $ac_kw foo_t static_foo () {return 0; }
5567$ac_kw foo_t foo () {return 0; }
5568#endif
5569
5570_ACEOF
5571if ac_fn_c_try_compile "$LINENO"; then :
5572 ac_cv_c_inline=$ac_kw
5573fi
5574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5575 test "$ac_cv_c_inline" != no && break
5576done
5577
5578fi
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5580$as_echo "$ac_cv_c_inline" >&6; }
5581
5582case $ac_cv_c_inline in
5583 inline | yes) ;;
5584 *)
5585 case $ac_cv_c_inline in
5586 no) ac_val=;;
5587 *) ac_val=$ac_cv_c_inline;;
5588 esac
5589 cat >>confdefs.h <<_ACEOF
5590#ifndef __cplusplus
5591#define inline $ac_val
5592#endif
5593_ACEOF
5594 ;;
5595esac
5596
5597
5598ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5599"
5600if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
5601 have_llong_max=1
5602fi
5603
5604ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" "
5605 #include <sys/types.h>
5606 #include <sys/param.h>
5607 #include <dev/systrace.h>
5608
5609"
5610if test "x$ac_cv_have_decl_SYSTR_POLICY_KILL" = xyes; then :
5611 have_systr_policy_kill=1
5612fi
5613
5614ac_fn_c_check_decl "$LINENO" "RLIMIT_NPROC" "ac_cv_have_decl_RLIMIT_NPROC" "
5615 #include <sys/types.h>
5616 #include <sys/resource.h>
5617
5618"
5619if test "x$ac_cv_have_decl_RLIMIT_NPROC" = xyes; then :
5620
5621$as_echo "#define HAVE_RLIMIT_NPROC /**/" >>confdefs.h
5622
5623fi
5624
5625ac_fn_c_check_decl "$LINENO" "PR_SET_NO_NEW_PRIVS" "ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" "
5626 #include <sys/types.h>
5627 #include <linux/prctl.h>
5628
5629"
5630if test "x$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" = xyes; then :
5631 have_linux_no_new_privs=1
5632fi
5633
5634
5635openssl=yes
5636ssh1=no
5637COMMENT_OUT_RSA1="#no ssh1#"
5638
5639# Check whether --with-openssl was given.
5640if test "${with_openssl+set}" = set; then :
5641 withval=$with_openssl; if test "x$withval" = "xno" ; then
5642 openssl=no
5643 ssh1=no
5644 fi
5645
5646
5647fi
5648
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL will be used for cryptography" >&5
5650$as_echo_n "checking whether OpenSSL will be used for cryptography... " >&6; }
5651if test "x$openssl" = "xyes" ; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5653$as_echo "yes" >&6; }
5654
5655cat >>confdefs.h <<_ACEOF
5656#define WITH_OPENSSL 1
5657_ACEOF
5658
5659else
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661$as_echo "no" >&6; }
5662fi
5663
5664
5665# Check whether --with-ssh1 was given.
5666if test "${with_ssh1+set}" = set; then :
5667 withval=$with_ssh1;
5668 if test "x$withval" = "xyes" ; then
5669 if test "x$openssl" = "xno" ; then
5670 as_fn_error $? "Cannot enable SSH protocol 1 with OpenSSL disabled" "$LINENO" 5
5671 fi
5672 ssh1=yes
5673 COMMENT_OUT_RSA1=""
5674 elif test "x$withval" = "xno" ; then
5675 ssh1=no
5676 else
5677 as_fn_error $? "unknown --with-ssh1 argument" "$LINENO" 5
5678 fi
5679
5680
5681fi
5682
5683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SSH protocol 1 support is enabled" >&5
5684$as_echo_n "checking whether SSH protocol 1 support is enabled... " >&6; }
5685if test "x$ssh1" = "xyes" ; then
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5687$as_echo "yes" >&6; }
5688
5689cat >>confdefs.h <<_ACEOF
5690#define WITH_SSH1 1
5691_ACEOF
5692
5693
5694else
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696$as_echo "no" >&6; }
5697fi
5698
5699use_stack_protector=1
5700use_toolchain_hardening=1
5701
5702# Check whether --with-stackprotect was given.
5703if test "${with_stackprotect+set}" = set; then :
5704 withval=$with_stackprotect;
5705 if test "x$withval" = "xno"; then
5706 use_stack_protector=0
5707 fi
5708fi
5709
5710
5711# Check whether --with-hardening was given.
5712if test "${with_hardening+set}" = set; then :
5713 withval=$with_hardening;
5714 if test "x$withval" = "xno"; then
5715 use_toolchain_hardening=0
5716 fi
5717fi
5718
5719
5720# We use -Werror for the tests only so that we catch warnings like "this is
5721# on by default" for things like -fPIE.
5722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
5723$as_echo_n "checking if $CC supports -Werror... " >&6; }
5724saved_CFLAGS="$CFLAGS"
5725CFLAGS="$CFLAGS -Werror"
5726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5727/* end confdefs.h. */
5728int main(void) { return 0; }
5729_ACEOF
5730if ac_fn_c_try_compile "$LINENO"; then :
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5732$as_echo "yes" >&6; }
5733 WERROR="-Werror"
5734else
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736$as_echo "no" >&6; }
5737 WERROR=""
5738
5739fi
5740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741CFLAGS="$saved_CFLAGS"
5742
5743if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5744 {
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Qunused-arguments" >&5
5746$as_echo_n "checking if $CC supports compile flag -Qunused-arguments... " >&6; }
5747 saved_CFLAGS="$CFLAGS"
5748 CFLAGS="$CFLAGS $WERROR -Qunused-arguments"
5749 _define_flag=""
5750 test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments"
5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752/* end confdefs.h. */
5753
5754#include <stdlib.h>
5755#include <stdio.h>
5756int main(int argc, char **argv) {
5757 /* Some math to catch -ftrapv problems in the toolchain */
5758 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5759 float l = i * 2.1;
5760 double m = l / 0.5;
5761 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5762 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5763 exit(0);
5764}
5765
5766_ACEOF
5767if ac_fn_c_try_compile "$LINENO"; then :
5768
5769if `grep -i "unrecognized option" conftest.err >/dev/null`
5770then
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772$as_echo "no" >&6; }
5773 CFLAGS="$saved_CFLAGS"
5774else
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5776$as_echo "yes" >&6; }
5777 CFLAGS="$saved_CFLAGS $_define_flag"
5778fi
5779else
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781$as_echo "no" >&6; }
5782 CFLAGS="$saved_CFLAGS"
5783
5784fi
5785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5786}
5787 {
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunknown-warning-option" >&5
5789$as_echo_n "checking if $CC supports compile flag -Wunknown-warning-option... " >&6; }
5790 saved_CFLAGS="$CFLAGS"
5791 CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option"
5792 _define_flag=""
5793 test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option"
5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795/* end confdefs.h. */
5796
5797#include <stdlib.h>
5798#include <stdio.h>
5799int main(int argc, char **argv) {
5800 /* Some math to catch -ftrapv problems in the toolchain */
5801 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5802 float l = i * 2.1;
5803 double m = l / 0.5;
5804 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5805 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5806 exit(0);
5807}
5808
5809_ACEOF
5810if ac_fn_c_try_compile "$LINENO"; then :
5811
5812if `grep -i "unrecognized option" conftest.err >/dev/null`
5813then
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5815$as_echo "no" >&6; }
5816 CFLAGS="$saved_CFLAGS"
5817else
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5819$as_echo "yes" >&6; }
5820 CFLAGS="$saved_CFLAGS $_define_flag"
5821fi
5822else
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5824$as_echo "no" >&6; }
5825 CFLAGS="$saved_CFLAGS"
5826
5827fi
5828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5829}
5830 {
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wall" >&5
5832$as_echo_n "checking if $CC supports compile flag -Wall... " >&6; }
5833 saved_CFLAGS="$CFLAGS"
5834 CFLAGS="$CFLAGS $WERROR -Wall"
5835 _define_flag=""
5836 test "x$_define_flag" = "x" && _define_flag="-Wall"
5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838/* end confdefs.h. */
5839
5840#include <stdlib.h>
5841#include <stdio.h>
5842int main(int argc, char **argv) {
5843 /* Some math to catch -ftrapv problems in the toolchain */
5844 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5845 float l = i * 2.1;
5846 double m = l / 0.5;
5847 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5848 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5849 exit(0);
5850}
5851
5852_ACEOF
5853if ac_fn_c_try_compile "$LINENO"; then :
5854
5855if `grep -i "unrecognized option" conftest.err >/dev/null`
5856then
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858$as_echo "no" >&6; }
5859 CFLAGS="$saved_CFLAGS"
5860else
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5862$as_echo "yes" >&6; }
5863 CFLAGS="$saved_CFLAGS $_define_flag"
5864fi
5865else
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5867$as_echo "no" >&6; }
5868 CFLAGS="$saved_CFLAGS"
5869
5870fi
5871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5872}
5873 {
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-arith" >&5
5875$as_echo_n "checking if $CC supports compile flag -Wpointer-arith... " >&6; }
5876 saved_CFLAGS="$CFLAGS"
5877 CFLAGS="$CFLAGS $WERROR -Wpointer-arith"
5878 _define_flag=""
5879 test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith"
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881/* end confdefs.h. */
5882
5883#include <stdlib.h>
5884#include <stdio.h>
5885int main(int argc, char **argv) {
5886 /* Some math to catch -ftrapv problems in the toolchain */
5887 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5888 float l = i * 2.1;
5889 double m = l / 0.5;
5890 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5891 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5892 exit(0);
5893}
5894
5895_ACEOF
5896if ac_fn_c_try_compile "$LINENO"; then :
5897
5898if `grep -i "unrecognized option" conftest.err >/dev/null`
5899then
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901$as_echo "no" >&6; }
5902 CFLAGS="$saved_CFLAGS"
5903else
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5905$as_echo "yes" >&6; }
5906 CFLAGS="$saved_CFLAGS $_define_flag"
5907fi
5908else
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910$as_echo "no" >&6; }
5911 CFLAGS="$saved_CFLAGS"
5912
5913fi
5914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915}
5916 {
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wuninitialized" >&5
5918$as_echo_n "checking if $CC supports compile flag -Wuninitialized... " >&6; }
5919 saved_CFLAGS="$CFLAGS"
5920 CFLAGS="$CFLAGS $WERROR -Wuninitialized"
5921 _define_flag=""
5922 test "x$_define_flag" = "x" && _define_flag="-Wuninitialized"
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924/* end confdefs.h. */
5925
5926#include <stdlib.h>
5927#include <stdio.h>
5928int main(int argc, char **argv) {
5929 /* Some math to catch -ftrapv problems in the toolchain */
5930 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5931 float l = i * 2.1;
5932 double m = l / 0.5;
5933 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5934 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5935 exit(0);
5936}
5937
5938_ACEOF
5939if ac_fn_c_try_compile "$LINENO"; then :
5940
5941if `grep -i "unrecognized option" conftest.err >/dev/null`
5942then
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944$as_echo "no" >&6; }
5945 CFLAGS="$saved_CFLAGS"
5946else
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5948$as_echo "yes" >&6; }
5949 CFLAGS="$saved_CFLAGS $_define_flag"
5950fi
5951else
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953$as_echo "no" >&6; }
5954 CFLAGS="$saved_CFLAGS"
5955
5956fi
5957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5958}
5959 {
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsign-compare" >&5
5961$as_echo_n "checking if $CC supports compile flag -Wsign-compare... " >&6; }
5962 saved_CFLAGS="$CFLAGS"
5963 CFLAGS="$CFLAGS $WERROR -Wsign-compare"
5964 _define_flag=""
5965 test "x$_define_flag" = "x" && _define_flag="-Wsign-compare"
5966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967/* end confdefs.h. */
5968
5969#include <stdlib.h>
5970#include <stdio.h>
5971int main(int argc, char **argv) {
5972 /* Some math to catch -ftrapv problems in the toolchain */
5973 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5974 float l = i * 2.1;
5975 double m = l / 0.5;
5976 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5977 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5978 exit(0);
5979}
5980
5981_ACEOF
5982if ac_fn_c_try_compile "$LINENO"; then :
5983
5984if `grep -i "unrecognized option" conftest.err >/dev/null`
5985then
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987$as_echo "no" >&6; }
5988 CFLAGS="$saved_CFLAGS"
5989else
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5991$as_echo "yes" >&6; }
5992 CFLAGS="$saved_CFLAGS $_define_flag"
5993fi
5994else
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5996$as_echo "no" >&6; }
5997 CFLAGS="$saved_CFLAGS"
5998
5999fi
6000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6001}
6002 {
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wformat-security" >&5
6004$as_echo_n "checking if $CC supports compile flag -Wformat-security... " >&6; }
6005 saved_CFLAGS="$CFLAGS"
6006 CFLAGS="$CFLAGS $WERROR -Wformat-security"
6007 _define_flag=""
6008 test "x$_define_flag" = "x" && _define_flag="-Wformat-security"
6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010/* end confdefs.h. */
6011
6012#include <stdlib.h>
6013#include <stdio.h>
6014int main(int argc, char **argv) {
6015 /* Some math to catch -ftrapv problems in the toolchain */
6016 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6017 float l = i * 2.1;
6018 double m = l / 0.5;
6019 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6020 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6021 exit(0);
6022}
6023
6024_ACEOF
6025if ac_fn_c_try_compile "$LINENO"; then :
6026
6027if `grep -i "unrecognized option" conftest.err >/dev/null`
6028then
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6030$as_echo "no" >&6; }
6031 CFLAGS="$saved_CFLAGS"
6032else
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6034$as_echo "yes" >&6; }
6035 CFLAGS="$saved_CFLAGS $_define_flag"
6036fi
6037else
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039$as_echo "no" >&6; }
6040 CFLAGS="$saved_CFLAGS"
6041
6042fi
6043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6044}
6045 {
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsizeof-pointer-memaccess" >&5
6047$as_echo_n "checking if $CC supports compile flag -Wsizeof-pointer-memaccess... " >&6; }
6048 saved_CFLAGS="$CFLAGS"
6049 CFLAGS="$CFLAGS $WERROR -Wsizeof-pointer-memaccess"
6050 _define_flag=""
6051 test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess"
6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053/* end confdefs.h. */
6054
6055#include <stdlib.h>
6056#include <stdio.h>
6057int main(int argc, char **argv) {
6058 /* Some math to catch -ftrapv problems in the toolchain */
6059 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6060 float l = i * 2.1;
6061 double m = l / 0.5;
6062 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6063 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6064 exit(0);
6065}
6066
6067_ACEOF
6068if ac_fn_c_try_compile "$LINENO"; then :
6069
6070if `grep -i "unrecognized option" conftest.err >/dev/null`
6071then
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6073$as_echo "no" >&6; }
6074 CFLAGS="$saved_CFLAGS"
6075else
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6077$as_echo "yes" >&6; }
6078 CFLAGS="$saved_CFLAGS $_define_flag"
6079fi
6080else
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082$as_echo "no" >&6; }
6083 CFLAGS="$saved_CFLAGS"
6084
6085fi
6086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6087}
6088 {
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-sign" >&5
6090$as_echo_n "checking if $CC supports compile flag -Wpointer-sign... " >&6; }
6091 saved_CFLAGS="$CFLAGS"
6092 CFLAGS="$CFLAGS $WERROR -Wpointer-sign"
6093 _define_flag="-Wno-pointer-sign"
6094 test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign"
6095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6096/* end confdefs.h. */
6097
6098#include <stdlib.h>
6099#include <stdio.h>
6100int main(int argc, char **argv) {
6101 /* Some math to catch -ftrapv problems in the toolchain */
6102 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6103 float l = i * 2.1;
6104 double m = l / 0.5;
6105 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6106 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6107 exit(0);
6108}
6109
6110_ACEOF
6111if ac_fn_c_try_compile "$LINENO"; then :
6112
6113if `grep -i "unrecognized option" conftest.err >/dev/null`
6114then
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6116$as_echo "no" >&6; }
6117 CFLAGS="$saved_CFLAGS"
6118else
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6120$as_echo "yes" >&6; }
6121 CFLAGS="$saved_CFLAGS $_define_flag"
6122fi
6123else
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6125$as_echo "no" >&6; }
6126 CFLAGS="$saved_CFLAGS"
6127
6128fi
6129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6130}
6131 {
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunused-result" >&5
6133$as_echo_n "checking if $CC supports compile flag -Wunused-result... " >&6; }
6134 saved_CFLAGS="$CFLAGS"
6135 CFLAGS="$CFLAGS $WERROR -Wunused-result"
6136 _define_flag="-Wno-unused-result"
6137 test "x$_define_flag" = "x" && _define_flag="-Wunused-result"
6138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6139/* end confdefs.h. */
6140
6141#include <stdlib.h>
6142#include <stdio.h>
6143int main(int argc, char **argv) {
6144 /* Some math to catch -ftrapv problems in the toolchain */
6145 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6146 float l = i * 2.1;
6147 double m = l / 0.5;
6148 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6149 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6150 exit(0);
6151}
6152
6153_ACEOF
6154if ac_fn_c_try_compile "$LINENO"; then :
6155
6156if `grep -i "unrecognized option" conftest.err >/dev/null`
6157then
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6159$as_echo "no" >&6; }
6160 CFLAGS="$saved_CFLAGS"
6161else
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6163$as_echo "yes" >&6; }
6164 CFLAGS="$saved_CFLAGS $_define_flag"
6165fi
6166else
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6168$as_echo "no" >&6; }
6169 CFLAGS="$saved_CFLAGS"
6170
6171fi
6172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6173}
6174 {
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fno-strict-aliasing" >&5
6176$as_echo_n "checking if $CC supports compile flag -fno-strict-aliasing... " >&6; }
6177 saved_CFLAGS="$CFLAGS"
6178 CFLAGS="$CFLAGS $WERROR -fno-strict-aliasing"
6179 _define_flag=""
6180 test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing"
6181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6182/* end confdefs.h. */
6183
6184#include <stdlib.h>
6185#include <stdio.h>
6186int main(int argc, char **argv) {
6187 /* Some math to catch -ftrapv problems in the toolchain */
6188 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6189 float l = i * 2.1;
6190 double m = l / 0.5;
6191 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6192 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6193 exit(0);
6194}
6195
6196_ACEOF
6197if ac_fn_c_try_compile "$LINENO"; then :
6198
6199if `grep -i "unrecognized option" conftest.err >/dev/null`
6200then
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202$as_echo "no" >&6; }
6203 CFLAGS="$saved_CFLAGS"
6204else
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6206$as_echo "yes" >&6; }
6207 CFLAGS="$saved_CFLAGS $_define_flag"
6208fi
6209else
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211$as_echo "no" >&6; }
6212 CFLAGS="$saved_CFLAGS"
6213
6214fi
6215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216}
6217 {
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -D_FORTIFY_SOURCE=2" >&5
6219$as_echo_n "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... " >&6; }
6220 saved_CFLAGS="$CFLAGS"
6221 CFLAGS="$CFLAGS $WERROR -D_FORTIFY_SOURCE=2"
6222 _define_flag=""
6223 test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2"
6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225/* end confdefs.h. */
6226
6227#include <stdlib.h>
6228#include <stdio.h>
6229int main(int argc, char **argv) {
6230 /* Some math to catch -ftrapv problems in the toolchain */
6231 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6232 float l = i * 2.1;
6233 double m = l / 0.5;
6234 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6235 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6236 exit(0);
6237}
6238
6239_ACEOF
6240if ac_fn_c_try_compile "$LINENO"; then :
6241
6242if `grep -i "unrecognized option" conftest.err >/dev/null`
6243then
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6245$as_echo "no" >&6; }
6246 CFLAGS="$saved_CFLAGS"
6247else
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6249$as_echo "yes" >&6; }
6250 CFLAGS="$saved_CFLAGS $_define_flag"
6251fi
6252else
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254$as_echo "no" >&6; }
6255 CFLAGS="$saved_CFLAGS"
6256
6257fi
6258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6259}
6260 if test "x$use_toolchain_hardening" = "x1"; then
6261 {
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,relro" >&5
6263$as_echo_n "checking if $LD supports link flag -Wl,-z,relro... " >&6; }
6264 saved_LDFLAGS="$LDFLAGS"
6265 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,relro"
6266 _define_flag=""
6267 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,relro"
6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269/* end confdefs.h. */
6270
6271#include <stdlib.h>
6272#include <stdio.h>
6273int main(int argc, char **argv) {
6274 /* Some math to catch -ftrapv problems in the toolchain */
6275 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6276 float l = i * 2.1;
6277 double m = l / 0.5;
6278 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6279 long long p = n * o;
6280 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
6281 exit(0);
6282}
6283
6284_ACEOF
6285if ac_fn_c_try_link "$LINENO"; then :
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6287$as_echo "yes" >&6; }
6288 LDFLAGS="$saved_LDFLAGS $_define_flag"
6289else
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6291$as_echo "no" >&6; }
6292 LDFLAGS="$saved_LDFLAGS"
6293
6294fi
6295rm -f core conftest.err conftest.$ac_objext \
6296 conftest$ac_exeext conftest.$ac_ext
6297}
6298 {
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,now" >&5
6300$as_echo_n "checking if $LD supports link flag -Wl,-z,now... " >&6; }
6301 saved_LDFLAGS="$LDFLAGS"
6302 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,now"
6303 _define_flag=""
6304 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,now"
6305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6306/* end confdefs.h. */
6307
6308#include <stdlib.h>
6309#include <stdio.h>
6310int main(int argc, char **argv) {
6311 /* Some math to catch -ftrapv problems in the toolchain */
6312 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6313 float l = i * 2.1;
6314 double m = l / 0.5;
6315 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6316 long long p = n * o;
6317 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
6318 exit(0);
6319}
6320
6321_ACEOF
6322if ac_fn_c_try_link "$LINENO"; then :
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6324$as_echo "yes" >&6; }
6325 LDFLAGS="$saved_LDFLAGS $_define_flag"
6326else
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328$as_echo "no" >&6; }
6329 LDFLAGS="$saved_LDFLAGS"
6330
6331fi
6332rm -f core conftest.err conftest.$ac_objext \
6333 conftest$ac_exeext conftest.$ac_ext
6334}
6335 {
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,noexecstack" >&5
6337$as_echo_n "checking if $LD supports link flag -Wl,-z,noexecstack... " >&6; }
6338 saved_LDFLAGS="$LDFLAGS"
6339 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,noexecstack"
6340 _define_flag=""
6341 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,noexecstack"
6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343/* end confdefs.h. */
6344
6345#include <stdlib.h>
6346#include <stdio.h>
6347int main(int argc, char **argv) {
6348 /* Some math to catch -ftrapv problems in the toolchain */
6349 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6350 float l = i * 2.1;
6351 double m = l / 0.5;
6352 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6353 long long p = n * o;
6354 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
6355 exit(0);
6356}
6357
6358_ACEOF
6359if ac_fn_c_try_link "$LINENO"; then :
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6361$as_echo "yes" >&6; }
6362 LDFLAGS="$saved_LDFLAGS $_define_flag"
6363else
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365$as_echo "no" >&6; }
6366 LDFLAGS="$saved_LDFLAGS"
6367
6368fi
6369rm -f core conftest.err conftest.$ac_objext \
6370 conftest$ac_exeext conftest.$ac_ext
6371}
6372 # NB. -ftrapv expects certain support functions to be present in
6373 # the compiler library (libgcc or similar) to detect integer operations
6374 # that can overflow. We must check that the result of enabling it
6375 # actually links. The test program compiled/linked includes a number
6376 # of integer operations that should exercise this.
6377 {
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -ftrapv and linking succeeds" >&5
6379$as_echo_n "checking if $CC supports compile flag -ftrapv and linking succeeds... " >&6; }
6380 saved_CFLAGS="$CFLAGS"
6381 CFLAGS="$CFLAGS $WERROR -ftrapv"
6382 _define_flag=""
6383 test "x$_define_flag" = "x" && _define_flag="-ftrapv"
6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385/* end confdefs.h. */
6386
6387#include <stdlib.h>
6388#include <stdio.h>
6389int main(int argc, char **argv) {
6390 /* Some math to catch -ftrapv problems in the toolchain */
6391 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6392 float l = i * 2.1;
6393 double m = l / 0.5;
6394 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6395 long long int p = n * o;
6396 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
6397 exit(0);
6398}
6399
6400_ACEOF
6401if ac_fn_c_try_link "$LINENO"; then :
6402
6403if `grep -i "unrecognized option" conftest.err >/dev/null`
6404then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6406$as_echo "no" >&6; }
6407 CFLAGS="$saved_CFLAGS"
6408else
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6410$as_echo "yes" >&6; }
6411 CFLAGS="$saved_CFLAGS $_define_flag"
6412fi
6413else
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6415$as_echo "no" >&6; }
6416 CFLAGS="$saved_CFLAGS"
6417
6418fi
6419rm -f core conftest.err conftest.$ac_objext \
6420 conftest$ac_exeext conftest.$ac_ext
6421}
6422 fi
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
6424$as_echo_n "checking gcc version... " >&6; }
6425 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
6426 case $GCC_VER in
6427 1.*) no_attrib_nonnull=1 ;;
6428 2.8* | 2.9*)
6429 no_attrib_nonnull=1
6430 ;;
6431 2.*) no_attrib_nonnull=1 ;;
6432 *) ;;
6433 esac
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5
6435$as_echo "$GCC_VER" >&6; }
6436
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5
6438$as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; }
6439 saved_CFLAGS="$CFLAGS"
6440 CFLAGS="$CFLAGS -fno-builtin-memset"
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442/* end confdefs.h. */
6443 #include <string.h>
6444int
6445main ()
6446{
6447 char b[10]; memset(b, 0, sizeof(b));
6448 ;
6449 return 0;
6450}
6451_ACEOF
6452if ac_fn_c_try_link "$LINENO"; then :
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6454$as_echo "yes" >&6; }
6455else
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6457$as_echo "no" >&6; }
6458 CFLAGS="$saved_CFLAGS"
6459
6460fi
6461rm -f core conftest.err conftest.$ac_objext \
6462 conftest$ac_exeext conftest.$ac_ext
6463
6464 # -fstack-protector-all doesn't always work for some GCC versions
6465 # and/or platforms, so we test if we can. If it's not supported
6466 # on a given platform gcc will emit a warning so we use -Werror.
6467 if test "x$use_stack_protector" = "x1"; then
6468 for t in -fstack-protector-strong -fstack-protector-all \
6469 -fstack-protector; do
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5
6471$as_echo_n "checking if $CC supports $t... " >&6; }
6472 saved_CFLAGS="$CFLAGS"
6473 saved_LDFLAGS="$LDFLAGS"
6474 CFLAGS="$CFLAGS $t -Werror"
6475 LDFLAGS="$LDFLAGS $t -Werror"
6476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477/* end confdefs.h. */
6478 #include <stdio.h>
6479int
6480main ()
6481{
6482
6483 char x[256];
6484 snprintf(x, sizeof(x), "XXX");
6485
6486 ;
6487 return 0;
6488}
6489_ACEOF
6490if ac_fn_c_try_link "$LINENO"; then :
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6492$as_echo "yes" >&6; }
6493 CFLAGS="$saved_CFLAGS $t"
6494 LDFLAGS="$saved_LDFLAGS $t"
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5
6496$as_echo_n "checking if $t works... " >&6; }
6497 if test "$cross_compiling" = yes; then :
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5
6499$as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
6500 break
6501
6502else
6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504/* end confdefs.h. */
6505 #include <stdio.h>
6506int
6507main ()
6508{
6509
6510 char x[256];
6511 snprintf(x, sizeof(x), "XXX");
6512
6513 ;
6514 return 0;
6515}
6516_ACEOF
6517if ac_fn_c_try_run "$LINENO"; then :
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6519$as_echo "yes" >&6; }
6520 break
6521else
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523$as_echo "no" >&6; }
6524fi
6525rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6526 conftest.$ac_objext conftest.beam conftest.$ac_ext
6527fi
6528
6529
6530else
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532$as_echo "no" >&6; }
6533
6534fi
6535rm -f core conftest.err conftest.$ac_objext \
6536 conftest$ac_exeext conftest.$ac_ext
6537 CFLAGS="$saved_CFLAGS"
6538 LDFLAGS="$saved_LDFLAGS"
6539 done
6540 fi
6541
6542 if test -z "$have_llong_max"; then
6543 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
6544 unset ac_cv_have_decl_LLONG_MAX
6545 saved_CFLAGS="$CFLAGS"
6546 CFLAGS="$CFLAGS -std=gnu99"
6547 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
6548
6549"
6550if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
6551 have_llong_max=1
6552else
6553 CFLAGS="$saved_CFLAGS"
6554fi
6555
6556 fi
6557fi
6558
6559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows __attribute__ on return types" >&5
6560$as_echo_n "checking if compiler allows __attribute__ on return types... " >&6; }
6561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562/* end confdefs.h. */
6563
6564#include <stdlib.h>
6565__attribute__((__unused__)) static void foo(void){return;}
6566int
6567main ()
6568{
6569 exit(0);
6570 ;
6571 return 0;
6572}
6573_ACEOF
6574if ac_fn_c_try_compile "$LINENO"; then :
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6576$as_echo "yes" >&6; }
6577else
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579$as_echo "no" >&6; }
6580
6581$as_echo "#define NO_ATTRIBUTE_ON_RETURN_TYPE 1" >>confdefs.h
6582
6583
6584fi
6585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6586
6587if test "x$no_attrib_nonnull" != "x1" ; then
6588
6589$as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h
6590
6591fi
6592
6593
6594# Check whether --with-rpath was given.
6595if test "${with_rpath+set}" = set; then :
6596 withval=$with_rpath;
6597 if test "x$withval" = "xno" ; then
6598 need_dash_r=""
6599 fi
6600 if test "x$withval" = "xyes" ; then
6601 need_dash_r=1
6602 fi
6603
6604
6605fi
6606
6607
6608# Allow user to specify flags
6609
6610# Check whether --with-cflags was given.
6611if test "${with_cflags+set}" = set; then :
6612 withval=$with_cflags;
6613 if test -n "$withval" && test "x$withval" != "xno" && \
6614 test "x${withval}" != "xyes"; then
6615 CFLAGS="$CFLAGS $withval"
6616 fi
6617
6618
6619fi
6620
6621
6622# Check whether --with-cppflags was given.
6623if test "${with_cppflags+set}" = set; then :
6624 withval=$with_cppflags;
6625 if test -n "$withval" && test "x$withval" != "xno" && \
6626 test "x${withval}" != "xyes"; then
6627 CPPFLAGS="$CPPFLAGS $withval"
6628 fi
6629
6630
6631fi
6632
6633
6634# Check whether --with-ldflags was given.
6635if test "${with_ldflags+set}" = set; then :
6636 withval=$with_ldflags;
6637 if test -n "$withval" && test "x$withval" != "xno" && \
6638 test "x${withval}" != "xyes"; then
6639 LDFLAGS="$LDFLAGS $withval"
6640 fi
6641
6642
6643fi
6644
6645
6646# Check whether --with-libs was given.
6647if test "${with_libs+set}" = set; then :
6648 withval=$with_libs;
6649 if test -n "$withval" && test "x$withval" != "xno" && \
6650 test "x${withval}" != "xyes"; then
6651 LIBS="$LIBS $withval"
6652 fi
6653
6654
6655fi
6656
6657
6658# Check whether --with-Werror was given.
6659if test "${with_Werror+set}" = set; then :
6660 withval=$with_Werror;
6661 if test -n "$withval" && test "x$withval" != "xno"; then
6662 werror_flags="-Werror"
6663 if test "x${withval}" != "xyes"; then
6664 werror_flags="$withval"
6665 fi
6666 fi
6667
6668
6669fi
6670
6671
6672for ac_header in \
6673 blf.h \
6674 bstring.h \
6675 crypt.h \
6676 crypto/sha2.h \
6677 dirent.h \
6678 endian.h \
6679 elf.h \
6680 err.h \
6681 features.h \
6682 fcntl.h \
6683 floatingpoint.h \
6684 getopt.h \
6685 glob.h \
6686 ia.h \
6687 iaf.h \
6688 inttypes.h \
6689 langinfo.h \
6690 limits.h \
6691 locale.h \
6692 login.h \
6693 maillock.h \
6694 ndir.h \
6695 net/if_tun.h \
6696 netdb.h \
6697 netgroup.h \
6698 pam/pam_appl.h \
6699 paths.h \
6700 poll.h \
6701 pty.h \
6702 readpassphrase.h \
6703 rpc/types.h \
6704 security/pam_appl.h \
6705 sha2.h \
6706 shadow.h \
6707 stddef.h \
6708 stdint.h \
6709 string.h \
6710 strings.h \
6711 sys/audit.h \
6712 sys/bitypes.h \
6713 sys/bsdtty.h \
6714 sys/capability.h \
6715 sys/cdefs.h \
6716 sys/dir.h \
6717 sys/mman.h \
6718 sys/ndir.h \
6719 sys/poll.h \
6720 sys/prctl.h \
6721 sys/pstat.h \
6722 sys/ptrace.h \
6723 sys/select.h \
6724 sys/stat.h \
6725 sys/stream.h \
6726 sys/stropts.h \
6727 sys/strtio.h \
6728 sys/statvfs.h \
6729 sys/sysmacros.h \
6730 sys/time.h \
6731 sys/timers.h \
6732 time.h \
6733 tmpdir.h \
6734 ttyent.h \
6735 ucred.h \
6736 unistd.h \
6737 usersec.h \
6738 util.h \
6739 utime.h \
6740 utmp.h \
6741 utmpx.h \
6742 vis.h \
6743 wchar.h \
6744
6745do :
6746 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6747ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6748if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6749 cat >>confdefs.h <<_ACEOF
6750#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6751_ACEOF
6752
6753fi
6754
6755done
6756
6757
6758# lastlog.h requires sys/time.h to be included first on Solaris
6759for ac_header in lastlog.h
6760do :
6761 ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "
6762#ifdef HAVE_SYS_TIME_H
6763# include <sys/time.h>
6764#endif
6765
6766"
6767if test "x$ac_cv_header_lastlog_h" = xyes; then :
6768 cat >>confdefs.h <<_ACEOF
6769#define HAVE_LASTLOG_H 1
6770_ACEOF
6771
6772fi
6773
6774done
6775
6776
6777# sys/ptms.h requires sys/stream.h to be included first on Solaris
6778for ac_header in sys/ptms.h
6779do :
6780 ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" "
6781#ifdef HAVE_SYS_STREAM_H
6782# include <sys/stream.h>
6783#endif
6784
6785"
6786if test "x$ac_cv_header_sys_ptms_h" = xyes; then :
6787 cat >>confdefs.h <<_ACEOF
6788#define HAVE_SYS_PTMS_H 1
6789_ACEOF
6790
6791fi
6792
6793done
6794
6795
6796# login_cap.h requires sys/types.h on NetBSD
6797for ac_header in login_cap.h
6798do :
6799 ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "
6800#include <sys/types.h>
6801
6802"
6803if test "x$ac_cv_header_login_cap_h" = xyes; then :
6804 cat >>confdefs.h <<_ACEOF
6805#define HAVE_LOGIN_CAP_H 1
6806_ACEOF
6807
6808fi
6809
6810done
6811
6812
6813# older BSDs need sys/param.h before sys/mount.h
6814for ac_header in sys/mount.h
6815do :
6816 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "
6817#include <sys/param.h>
6818
6819"
6820if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6821 cat >>confdefs.h <<_ACEOF
6822#define HAVE_SYS_MOUNT_H 1
6823_ACEOF
6824
6825fi
6826
6827done
6828
6829
6830# Android requires sys/socket.h to be included before sys/un.h
6831for ac_header in sys/un.h
6832do :
6833 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "
6834#include <sys/types.h>
6835#include <sys/socket.h>
6836
6837"
6838if test "x$ac_cv_header_sys_un_h" = xyes; then :
6839 cat >>confdefs.h <<_ACEOF
6840#define HAVE_SYS_UN_H 1
6841_ACEOF
6842
6843fi
6844
6845done
6846
6847
6848# Messages for features tested for in target-specific section
6849SIA_MSG="no"
6850SPC_MSG="no"
6851SP_MSG="no"
6852SPP_MSG="no"
6853
6854# Support for Solaris/Illumos privileges (this test is used by both
6855# the --with-solaris-privs option and --with-sandbox=solaris).
6856SOLARIS_PRIVS="no"
6857
6858# Check for some target-specific stuff
6859case "$host" in
6860*-*-aix*)
6861 # Some versions of VAC won't allow macro redefinitions at
6862 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
6863 # particularly with older versions of vac or xlc.
6864 # It also throws errors about null macro argments, but these are
6865 # not fatal.
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5
6867$as_echo_n "checking if compiler allows macro redefinitions... " >&6; }
6868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869/* end confdefs.h. */
6870
6871#define testmacro foo
6872#define testmacro bar
6873int
6874main ()
6875{
6876 exit(0);
6877 ;
6878 return 0;
6879}
6880_ACEOF
6881if ac_fn_c_try_compile "$LINENO"; then :
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6883$as_echo "yes" >&6; }
6884else
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6886$as_echo "no" >&6; }
6887 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
6888 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
6889 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6890 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6891
6892
6893fi
6894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6895
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5
6897$as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; }
6898 if (test -z "$blibpath"); then
6899 blibpath="/usr/lib:/lib"
6900 fi
6901 saved_LDFLAGS="$LDFLAGS"
6902 if test "$GCC" = "yes"; then
6903 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
6904 else
6905 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
6906 fi
6907 for tryflags in $flags ;do
6908 if (test -z "$blibflags"); then
6909 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
6910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911/* end confdefs.h. */
6912
6913int
6914main ()
6915{
6916
6917 ;
6918 return 0;
6919}
6920_ACEOF
6921if ac_fn_c_try_link "$LINENO"; then :
6922 blibflags=$tryflags
6923fi
6924rm -f core conftest.err conftest.$ac_objext \
6925 conftest$ac_exeext conftest.$ac_ext
6926 fi
6927 done
6928 if (test -z "$blibflags"); then
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6930$as_echo "not found" >&6; }
6931 as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5
6932 else
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5
6934$as_echo "$blibflags" >&6; }
6935 fi
6936 LDFLAGS="$saved_LDFLAGS"
6937 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
6938if test "x$ac_cv_func_authenticate" = xyes; then :
6939
6940$as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
6941
6942else
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5
6944$as_echo_n "checking for authenticate in -ls... " >&6; }
6945if ${ac_cv_lib_s_authenticate+:} false; then :
6946 $as_echo_n "(cached) " >&6
6947else
6948 ac_check_lib_save_LIBS=$LIBS
6949LIBS="-ls $LIBS"
6950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6951/* end confdefs.h. */
6952
6953/* Override any GCC internal prototype to avoid an error.
6954 Use char because int might match the return type of a GCC
6955 builtin and then its argument prototype would still apply. */
6956#ifdef __cplusplus
6957extern "C"
6958#endif
6959char authenticate ();
6960int
6961main ()
6962{
6963return authenticate ();
6964 ;
6965 return 0;
6966}
6967_ACEOF
6968if ac_fn_c_try_link "$LINENO"; then :
6969 ac_cv_lib_s_authenticate=yes
6970else
6971 ac_cv_lib_s_authenticate=no
6972fi
6973rm -f core conftest.err conftest.$ac_objext \
6974 conftest$ac_exeext conftest.$ac_ext
6975LIBS=$ac_check_lib_save_LIBS
6976fi
6977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5
6978$as_echo "$ac_cv_lib_s_authenticate" >&6; }
6979if test "x$ac_cv_lib_s_authenticate" = xyes; then :
6980 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
6981
6982 LIBS="$LIBS -ls"
6983
6984fi
6985
6986
6987fi
6988
6989 ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h>
6990"
6991if test "x$ac_cv_have_decl_authenticate" = xyes; then :
6992 ac_have_decl=1
6993else
6994 ac_have_decl=0
6995fi
6996
6997cat >>confdefs.h <<_ACEOF
6998#define HAVE_DECL_AUTHENTICATE $ac_have_decl
6999_ACEOF
7000ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h>
7001"
7002if test "x$ac_cv_have_decl_loginrestrictions" = xyes; then :
7003 ac_have_decl=1
7004else
7005 ac_have_decl=0
7006fi
7007
7008cat >>confdefs.h <<_ACEOF
7009#define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl
7010_ACEOF
7011ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h>
7012"
7013if test "x$ac_cv_have_decl_loginsuccess" = xyes; then :
7014 ac_have_decl=1
7015else
7016 ac_have_decl=0
7017fi
7018
7019cat >>confdefs.h <<_ACEOF
7020#define HAVE_DECL_LOGINSUCCESS $ac_have_decl
7021_ACEOF
7022ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h>
7023"
7024if test "x$ac_cv_have_decl_passwdexpired" = xyes; then :
7025 ac_have_decl=1
7026else
7027 ac_have_decl=0
7028fi
7029
7030cat >>confdefs.h <<_ACEOF
7031#define HAVE_DECL_PASSWDEXPIRED $ac_have_decl
7032_ACEOF
7033ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h>
7034"
7035if test "x$ac_cv_have_decl_setauthdb" = xyes; then :
7036 ac_have_decl=1
7037else
7038 ac_have_decl=0
7039fi
7040
7041cat >>confdefs.h <<_ACEOF
7042#define HAVE_DECL_SETAUTHDB $ac_have_decl
7043_ACEOF
7044
7045 ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h>
7046
7047"
7048if test "x$ac_cv_have_decl_loginfailed" = xyes; then :
7049 ac_have_decl=1
7050else
7051 ac_have_decl=0
7052fi
7053
7054cat >>confdefs.h <<_ACEOF
7055#define HAVE_DECL_LOGINFAILED $ac_have_decl
7056_ACEOF
7057if test $ac_have_decl = 1; then :
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5
7059$as_echo_n "checking if loginfailed takes 4 arguments... " >&6; }
7060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061/* end confdefs.h. */
7062 #include <usersec.h>
7063int
7064main ()
7065{
7066 (void)loginfailed("user","host","tty",0);
7067 ;
7068 return 0;
7069}
7070_ACEOF
7071if ac_fn_c_try_compile "$LINENO"; then :
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7073$as_echo "yes" >&6; }
7074
7075$as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h
7076
7077else
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079$as_echo "no" >&6; }
7080
7081fi
7082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083fi
7084
7085 for ac_func in getgrset setauthdb
7086do :
7087 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7088ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7089if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7090 cat >>confdefs.h <<_ACEOF
7091#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7092_ACEOF
7093
7094fi
7095done
7096
7097 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
7098 #include <fcntl.h>
7099
7100"
7101if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
7102
7103$as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
7104
7105fi
7106
7107 check_for_aix_broken_getaddrinfo=1
7108
7109$as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
7110
7111
7112$as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7113
7114
7115$as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7116
7117
7118$as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7119
7120
7121$as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
7122
7123
7124$as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
7125
7126
7127$as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7128
7129
7130$as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
7131
7132
7133$as_echo "#define PTY_ZEROREAD 1" >>confdefs.h
7134
7135
7136$as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h
7137
7138 ;;
7139*-*-android*)
7140
7141$as_echo "#define DISABLE_UTMP 1" >>confdefs.h
7142
7143
7144$as_echo "#define DISABLE_WTMP 1" >>confdefs.h
7145
7146 ;;
7147*-*-cygwin*)
7148 check_for_libcrypt_later=1
7149 LIBS="$LIBS /usr/lib/textreadmode.o"
7150
7151$as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
7152
7153
7154$as_echo "#define USE_PIPES 1" >>confdefs.h
7155
7156
7157$as_echo "#define NO_UID_RESTORATION_TEST 1" >>confdefs.h
7158
7159
7160$as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
7161
7162
7163$as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
7164
7165
7166$as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7167
7168
7169$as_echo "#define SSH_IOBUFSZ 65535" >>confdefs.h
7170
7171
7172$as_echo "#define FILESYSTEM_NO_BACKSLASH 1" >>confdefs.h
7173
7174 # Cygwin defines optargs, optargs as declspec(dllimport) for historical
7175 # reasons which cause compile warnings, so we disable those warnings.
7176 {
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wno-attributes" >&5
7178$as_echo_n "checking if $CC supports compile flag -Wno-attributes... " >&6; }
7179 saved_CFLAGS="$CFLAGS"
7180 CFLAGS="$CFLAGS $WERROR -Wno-attributes"
7181 _define_flag=""
7182 test "x$_define_flag" = "x" && _define_flag="-Wno-attributes"
7183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184/* end confdefs.h. */
7185
7186#include <stdlib.h>
7187#include <stdio.h>
7188int main(int argc, char **argv) {
7189 /* Some math to catch -ftrapv problems in the toolchain */
7190 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
7191 float l = i * 2.1;
7192 double m = l / 0.5;
7193 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
7194 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
7195 exit(0);
7196}
7197
7198_ACEOF
7199if ac_fn_c_try_compile "$LINENO"; then :
7200
7201if `grep -i "unrecognized option" conftest.err >/dev/null`
7202then
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7204$as_echo "no" >&6; }
7205 CFLAGS="$saved_CFLAGS"
7206else
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7208$as_echo "yes" >&6; }
7209 CFLAGS="$saved_CFLAGS $_define_flag"
7210fi
7211else
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213$as_echo "no" >&6; }
7214 CFLAGS="$saved_CFLAGS"
7215
7216fi
7217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7218}
7219 ;;
7220*-*-dgux*)
7221
7222$as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
7223
7224 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7225
7226 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7227
7228 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7229
7230 ;;
7231*-*-darwin*)
7232 use_pie=auto
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5
7234$as_echo_n "checking if we have working getaddrinfo... " >&6; }
7235 if test "$cross_compiling" = yes; then :
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5
7237$as_echo "assume it is working" >&6; }
7238else
7239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240/* end confdefs.h. */
7241 #include <mach-o/dyld.h>
7242main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
7243 exit(0);
7244 else
7245 exit(1);
7246}
7247
7248_ACEOF
7249if ac_fn_c_try_run "$LINENO"; then :
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5
7251$as_echo "working" >&6; }
7252else
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
7254$as_echo "buggy" >&6; }
7255
7256$as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7257
7258
7259fi
7260rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7261 conftest.$ac_objext conftest.beam conftest.$ac_ext
7262fi
7263
7264 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7265
7266 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7267
7268 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7269
7270
7271$as_echo "#define BROKEN_GLOB 1" >>confdefs.h
7272
7273
7274cat >>confdefs.h <<_ACEOF
7275#define BIND_8_COMPAT 1
7276_ACEOF
7277
7278
7279$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
7280
7281
7282$as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
7283
7284
7285$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
7286
7287
7288 ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default"
7289if test "x$ac_cv_have_decl_AU_IPv4" = xyes; then :
7290
7291else
7292
7293$as_echo "#define AU_IPv4 0" >>confdefs.h
7294
7295 #include <bsm/audit.h>
7296
7297$as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h
7298
7299
7300fi
7301
7302
7303$as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7304
7305 for ac_func in sandbox_init
7306do :
7307 ac_fn_c_check_func "$LINENO" "sandbox_init" "ac_cv_func_sandbox_init"
7308if test "x$ac_cv_func_sandbox_init" = xyes; then :
7309 cat >>confdefs.h <<_ACEOF
7310#define HAVE_SANDBOX_INIT 1
7311_ACEOF
7312
7313fi
7314done
7315
7316 for ac_header in sandbox.h
7317do :
7318 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
7319if test "x$ac_cv_header_sandbox_h" = xyes; then :
7320 cat >>confdefs.h <<_ACEOF
7321#define HAVE_SANDBOX_H 1
7322_ACEOF
7323
7324fi
7325
7326done
7327
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox_apply in -lsandbox" >&5
7329$as_echo_n "checking for sandbox_apply in -lsandbox... " >&6; }
7330if ${ac_cv_lib_sandbox_sandbox_apply+:} false; then :
7331 $as_echo_n "(cached) " >&6
7332else
7333 ac_check_lib_save_LIBS=$LIBS
7334LIBS="-lsandbox $LIBS"
7335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7336/* end confdefs.h. */
7337
7338/* Override any GCC internal prototype to avoid an error.
7339 Use char because int might match the return type of a GCC
7340 builtin and then its argument prototype would still apply. */
7341#ifdef __cplusplus
7342extern "C"
7343#endif
7344char sandbox_apply ();
7345int
7346main ()
7347{
7348return sandbox_apply ();
7349 ;
7350 return 0;
7351}
7352_ACEOF
7353if ac_fn_c_try_link "$LINENO"; then :
7354 ac_cv_lib_sandbox_sandbox_apply=yes
7355else
7356 ac_cv_lib_sandbox_sandbox_apply=no
7357fi
7358rm -f core conftest.err conftest.$ac_objext \
7359 conftest$ac_exeext conftest.$ac_ext
7360LIBS=$ac_check_lib_save_LIBS
7361fi
7362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sandbox_sandbox_apply" >&5
7363$as_echo "$ac_cv_lib_sandbox_sandbox_apply" >&6; }
7364if test "x$ac_cv_lib_sandbox_sandbox_apply" = xyes; then :
7365
7366 SSHDLIBS="$SSHDLIBS -lsandbox"
7367
7368fi
7369
7370 ;;
7371*-*-dragonfly*)
7372 SSHDLIBS="$SSHDLIBS -lcrypt"
7373 TEST_MALLOC_OPTIONS="AFGJPRX"
7374 ;;
7375*-*-haiku*)
7376 LIBS="$LIBS -lbsd "
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
7378$as_echo_n "checking for socket in -lnetwork... " >&6; }
7379if ${ac_cv_lib_network_socket+:} false; then :
7380 $as_echo_n "(cached) " >&6
7381else
7382 ac_check_lib_save_LIBS=$LIBS
7383LIBS="-lnetwork $LIBS"
7384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385/* end confdefs.h. */
7386
7387/* Override any GCC internal prototype to avoid an error.
7388 Use char because int might match the return type of a GCC
7389 builtin and then its argument prototype would still apply. */
7390#ifdef __cplusplus
7391extern "C"
7392#endif
7393char socket ();
7394int
7395main ()
7396{
7397return socket ();
7398 ;
7399 return 0;
7400}
7401_ACEOF
7402if ac_fn_c_try_link "$LINENO"; then :
7403 ac_cv_lib_network_socket=yes
7404else
7405 ac_cv_lib_network_socket=no
7406fi
7407rm -f core conftest.err conftest.$ac_objext \
7408 conftest$ac_exeext conftest.$ac_ext
7409LIBS=$ac_check_lib_save_LIBS
7410fi
7411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
7412$as_echo "$ac_cv_lib_network_socket" >&6; }
7413if test "x$ac_cv_lib_network_socket" = xyes; then :
7414 cat >>confdefs.h <<_ACEOF
7415#define HAVE_LIBNETWORK 1
7416_ACEOF
7417
7418 LIBS="-lnetwork $LIBS"
7419
7420fi
7421
7422 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
7423
7424 MANTYPE=man
7425 ;;
7426*-*-hpux*)
7427 # first we define all of the options common to all HP-UX releases
7428 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
7429 IPADDR_IN_DISPLAY=yes
7430 $as_echo "#define USE_PIPES 1" >>confdefs.h
7431
7432 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
7433
7434
7435$as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h
7436
7437 $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h
7438
7439
7440$as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h
7441
7442 maildir="/var/mail"
7443 LIBS="$LIBS -lsec"
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5
7445$as_echo_n "checking for t_error in -lxnet... " >&6; }
7446if ${ac_cv_lib_xnet_t_error+:} false; then :
7447 $as_echo_n "(cached) " >&6
7448else
7449 ac_check_lib_save_LIBS=$LIBS
7450LIBS="-lxnet $LIBS"
7451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452/* end confdefs.h. */
7453
7454/* Override any GCC internal prototype to avoid an error.
7455 Use char because int might match the return type of a GCC
7456 builtin and then its argument prototype would still apply. */
7457#ifdef __cplusplus
7458extern "C"
7459#endif
7460char t_error ();
7461int
7462main ()
7463{
7464return t_error ();
7465 ;
7466 return 0;
7467}
7468_ACEOF
7469if ac_fn_c_try_link "$LINENO"; then :
7470 ac_cv_lib_xnet_t_error=yes
7471else
7472 ac_cv_lib_xnet_t_error=no
7473fi
7474rm -f core conftest.err conftest.$ac_objext \
7475 conftest$ac_exeext conftest.$ac_ext
7476LIBS=$ac_check_lib_save_LIBS
7477fi
7478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5
7479$as_echo "$ac_cv_lib_xnet_t_error" >&6; }
7480if test "x$ac_cv_lib_xnet_t_error" = xyes; then :
7481 cat >>confdefs.h <<_ACEOF
7482#define HAVE_LIBXNET 1
7483_ACEOF
7484
7485 LIBS="-lxnet $LIBS"
7486
7487else
7488 as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5
7489fi
7490
7491
7492 # next, we define all of the options specific to major releases
7493 case "$host" in
7494 *-*-hpux10*)
7495 if test -z "$GCC"; then
7496 CFLAGS="$CFLAGS -Ae"
7497 fi
7498 ;;
7499 *-*-hpux11*)
7500
7501$as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7502
7503
7504$as_echo "#define DISABLE_UTMP 1" >>confdefs.h
7505
7506
7507$as_echo "#define USE_BTMP 1" >>confdefs.h
7508
7509 check_for_hpux_broken_getaddrinfo=1
7510 check_for_conflicting_getspnam=1
7511 ;;
7512 esac
7513
7514 # lastly, we define options specific to minor releases
7515 case "$host" in
7516 *-*-hpux10.26)
7517
7518$as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
7519
7520 disable_ptmx_check=yes
7521 LIBS="$LIBS -lsecpw"
7522 ;;
7523 esac
7524 ;;
7525*-*-irix5*)
7526 PATH="$PATH:/usr/etc"
7527
7528$as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
7529
7530 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7531
7532 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7533
7534 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7535
7536
7537$as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7538
7539 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7540
7541 ;;
7542*-*-irix6*)
7543 PATH="$PATH:/usr/etc"
7544
7545$as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h
7546
7547
7548$as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h
7549
7550
7551$as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h
7552
7553 ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob"
7554if test "x$ac_cv_func_jlimit_startjob" = xyes; then :
7555
7556$as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h
7557
7558fi
7559
7560 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
7561
7562 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7563
7564 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7565
7566 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7567
7568
7569$as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7570
7571 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7572
7573 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7574
7575 ;;
7576*-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7577 check_for_libcrypt_later=1
7578 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
7579
7580 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
7581
7582 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7583
7584
7585$as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
7586
7587
7588$as_echo "#define USE_BTMP 1" >>confdefs.h
7589
7590 ;;
7591*-*-linux*)
7592 no_dev_ptmx=1
7593 use_pie=auto
7594 check_for_libcrypt_later=1
7595 check_for_openpty_ctty_bug=1
7596
7597$as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
7598
7599
7600$as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
7601
7602 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7603
7604
7605$as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h
7606
7607
7608$as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
7609
7610 $as_echo "#define USE_BTMP 1" >>confdefs.h
7611
7612
7613$as_echo "#define LINUX_OOM_ADJUST 1" >>confdefs.h
7614
7615 inet6_default_4in6=yes
7616 case `uname -r` in
7617 1.*|2.0.*)
7618
7619$as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h
7620
7621 ;;
7622 esac
7623 # tun(4) forwarding compat code
7624 for ac_header in linux/if_tun.h
7625do :
7626 ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
7627if test "x$ac_cv_header_linux_if_tun_h" = xyes; then :
7628 cat >>confdefs.h <<_ACEOF
7629#define HAVE_LINUX_IF_TUN_H 1
7630_ACEOF
7631
7632fi
7633
7634done
7635
7636 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
7637
7638$as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h
7639
7640
7641$as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
7642
7643
7644$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
7645
7646 fi
7647 for ac_header in linux/seccomp.h linux/filter.h linux/audit.h
7648do :
7649 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7650ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <linux/types.h>
7651"
7652if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7653 cat >>confdefs.h <<_ACEOF
7654#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7655_ACEOF
7656
7657fi
7658
7659done
7660
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp architecture" >&5
7662$as_echo_n "checking for seccomp architecture... " >&6; }
7663 seccomp_audit_arch=
7664 case "$host" in
7665 x86_64-*)
7666 seccomp_audit_arch=AUDIT_ARCH_X86_64
7667 ;;
7668 i*86-*)
7669 seccomp_audit_arch=AUDIT_ARCH_I386
7670 ;;
7671 arm*-*)
7672 seccomp_audit_arch=AUDIT_ARCH_ARM
7673 ;;
7674 aarch64*-*)
7675 seccomp_audit_arch=AUDIT_ARCH_AARCH64
7676 ;;
7677 s390x-*)
7678 seccomp_audit_arch=AUDIT_ARCH_S390X
7679 ;;
7680 s390-*)
7681 seccomp_audit_arch=AUDIT_ARCH_S390
7682 ;;
7683 powerpc64-*)
7684 seccomp_audit_arch=AUDIT_ARCH_PPC64
7685 ;;
7686 powerpc64le-*)
7687 seccomp_audit_arch=AUDIT_ARCH_PPC64LE
7688 ;;
7689 mips-*)
7690 seccomp_audit_arch=AUDIT_ARCH_MIPS
7691 ;;
7692 mipsel-*)
7693 seccomp_audit_arch=AUDIT_ARCH_MIPSEL
7694 ;;
7695 mips64-*)
7696 seccomp_audit_arch=AUDIT_ARCH_MIPS64
7697 ;;
7698 mips64el-*)
7699 seccomp_audit_arch=AUDIT_ARCH_MIPSEL64
7700 ;;
7701 esac
7702 if test "x$seccomp_audit_arch" != "x" ; then
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$seccomp_audit_arch\"" >&5
7704$as_echo "\"$seccomp_audit_arch\"" >&6; }
7705
7706cat >>confdefs.h <<_ACEOF
7707#define SECCOMP_AUDIT_ARCH $seccomp_audit_arch
7708_ACEOF
7709
7710 else
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: architecture not supported" >&5
7712$as_echo "architecture not supported" >&6; }
7713 fi
7714 ;;
7715mips-sony-bsd|mips-sony-newsos4)
7716
7717$as_echo "#define NEED_SETPGRP 1" >>confdefs.h
7718
7719 SONY=1
7720 ;;
7721*-*-netbsd*)
7722 check_for_libcrypt_before=1
7723 if test "x$withval" != "xno" ; then
7724 need_dash_r=1
7725 fi
7726 CPPFLAGS="$CPPFLAGS -D_OPENBSD_SOURCE"
7727
7728$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
7729
7730 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
7731if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
7732
7733else
7734
7735$as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
7736
7737fi
7738
7739
7740
7741$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
7742
7743 TEST_MALLOC_OPTIONS="AJRX"
7744
7745$as_echo "#define BROKEN_READ_COMPARISON 1" >>confdefs.h
7746
7747 ;;
7748*-*-freebsd*)
7749 check_for_libcrypt_later=1
7750
7751$as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h
7752
7753
7754$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
7755
7756 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
7757if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
7758
7759else
7760
7761$as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
7762
7763fi
7764
7765
7766
7767$as_echo "#define BROKEN_GLOB 1" >>confdefs.h
7768
7769 TEST_MALLOC_OPTIONS="AJRX"
7770 # Preauth crypto occasionally uses file descriptors for crypto offload
7771 # and will crash if they cannot be opened.
7772
7773$as_echo "#define SANDBOX_SKIP_RLIMIT_NOFILE 1" >>confdefs.h
7774
7775 ;;
7776*-*-bsdi*)
7777 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7778
7779 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7780
7781 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7782
7783 ;;
7784*-next-*)
7785 conf_lastlog_location="/usr/adm/lastlog"
7786 conf_utmp_location=/etc/utmp
7787 conf_wtmp_location=/usr/adm/wtmp
7788 maildir=/usr/spool/mail
7789
7790$as_echo "#define HAVE_NEXT 1" >>confdefs.h
7791
7792 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
7793
7794 $as_echo "#define USE_PIPES 1" >>confdefs.h
7795
7796
7797$as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h
7798
7799 ;;
7800*-*-openbsd*)
7801 use_pie=auto
7802
7803$as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h
7804
7805
7806$as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h
7807
7808
7809$as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h
7810
7811
7812$as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h
7813
7814 TEST_MALLOC_OPTIONS="AFGJPRX"
7815 ;;
7816*-*-solaris*)
7817 if test "x$withval" != "xno" ; then
7818 need_dash_r=1
7819 fi
7820 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7821
7822 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
7823
7824 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
7825
7826
7827$as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
7828
7829 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7830
7831 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
7832
7833$as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7834
7835
7836$as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7837
7838
7839$as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h
7840
7841 external_path_file=/etc/default/login
7842 # hardwire lastlog location (can't detect it on some versions)
7843 conf_lastlog_location="/var/adm/lastlog"
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5
7845$as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; }
7846 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
7847 if test "$sol2ver" -ge 8; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7849$as_echo "yes" >&6; }
7850 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
7851
7852
7853$as_echo "#define DISABLE_WTMP 1" >>confdefs.h
7854
7855 else
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7857$as_echo "no" >&6; }
7858 fi
7859 for ac_func in setpflags
7860do :
7861 ac_fn_c_check_func "$LINENO" "setpflags" "ac_cv_func_setpflags"
7862if test "x$ac_cv_func_setpflags" = xyes; then :
7863 cat >>confdefs.h <<_ACEOF
7864#define HAVE_SETPFLAGS 1
7865_ACEOF
7866
7867fi
7868done
7869
7870 for ac_func in setppriv
7871do :
7872 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
7873if test "x$ac_cv_func_setppriv" = xyes; then :
7874 cat >>confdefs.h <<_ACEOF
7875#define HAVE_SETPPRIV 1
7876_ACEOF
7877
7878fi
7879done
7880
7881 for ac_func in priv_basicset
7882do :
7883 ac_fn_c_check_func "$LINENO" "priv_basicset" "ac_cv_func_priv_basicset"
7884if test "x$ac_cv_func_priv_basicset" = xyes; then :
7885 cat >>confdefs.h <<_ACEOF
7886#define HAVE_PRIV_BASICSET 1
7887_ACEOF
7888
7889fi
7890done
7891
7892 for ac_header in priv.h
7893do :
7894 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
7895if test "x$ac_cv_header_priv_h" = xyes; then :
7896 cat >>confdefs.h <<_ACEOF
7897#define HAVE_PRIV_H 1
7898_ACEOF
7899
7900fi
7901
7902done
7903
7904
7905# Check whether --with-solaris-contracts was given.
7906if test "${with_solaris_contracts+set}" = set; then :
7907 withval=$with_solaris_contracts;
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5
7909$as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; }
7910if ${ac_cv_lib_contract_ct_tmpl_activate+:} false; then :
7911 $as_echo_n "(cached) " >&6
7912else
7913 ac_check_lib_save_LIBS=$LIBS
7914LIBS="-lcontract $LIBS"
7915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916/* end confdefs.h. */
7917
7918/* Override any GCC internal prototype to avoid an error.
7919 Use char because int might match the return type of a GCC
7920 builtin and then its argument prototype would still apply. */
7921#ifdef __cplusplus
7922extern "C"
7923#endif
7924char ct_tmpl_activate ();
7925int
7926main ()
7927{
7928return ct_tmpl_activate ();
7929 ;
7930 return 0;
7931}
7932_ACEOF
7933if ac_fn_c_try_link "$LINENO"; then :
7934 ac_cv_lib_contract_ct_tmpl_activate=yes
7935else
7936 ac_cv_lib_contract_ct_tmpl_activate=no
7937fi
7938rm -f core conftest.err conftest.$ac_objext \
7939 conftest$ac_exeext conftest.$ac_ext
7940LIBS=$ac_check_lib_save_LIBS
7941fi
7942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
7943$as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
7944if test "x$ac_cv_lib_contract_ct_tmpl_activate" = xyes; then :
7945
7946$as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h
7947
7948 LIBS="$LIBS -lcontract"
7949 SPC_MSG="yes"
7950fi
7951
7952
7953fi
7954
7955
7956# Check whether --with-solaris-projects was given.
7957if test "${with_solaris_projects+set}" = set; then :
7958 withval=$with_solaris_projects;
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
7960$as_echo_n "checking for setproject in -lproject... " >&6; }
7961if ${ac_cv_lib_project_setproject+:} false; then :
7962 $as_echo_n "(cached) " >&6
7963else
7964 ac_check_lib_save_LIBS=$LIBS
7965LIBS="-lproject $LIBS"
7966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7967/* end confdefs.h. */
7968
7969/* Override any GCC internal prototype to avoid an error.
7970 Use char because int might match the return type of a GCC
7971 builtin and then its argument prototype would still apply. */
7972#ifdef __cplusplus
7973extern "C"
7974#endif
7975char setproject ();
7976int
7977main ()
7978{
7979return setproject ();
7980 ;
7981 return 0;
7982}
7983_ACEOF
7984if ac_fn_c_try_link "$LINENO"; then :
7985 ac_cv_lib_project_setproject=yes
7986else
7987 ac_cv_lib_project_setproject=no
7988fi
7989rm -f core conftest.err conftest.$ac_objext \
7990 conftest$ac_exeext conftest.$ac_ext
7991LIBS=$ac_check_lib_save_LIBS
7992fi
7993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
7994$as_echo "$ac_cv_lib_project_setproject" >&6; }
7995if test "x$ac_cv_lib_project_setproject" = xyes; then :
7996
7997$as_echo "#define USE_SOLARIS_PROJECTS 1" >>confdefs.h
7998
7999 LIBS="$LIBS -lproject"
8000 SP_MSG="yes"
8001fi
8002
8003
8004fi
8005
8006
8007# Check whether --with-solaris-privs was given.
8008if test "${with_solaris_privs+set}" = set; then :
8009 withval=$with_solaris_privs;
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/Illumos privilege support" >&5
8011$as_echo_n "checking for Solaris/Illumos privilege support... " >&6; }
8012 if test "x$ac_cv_func_setppriv" = "xyes" -a \
8013 "x$ac_cv_header_priv_h" = "xyes" ; then
8014 SOLARIS_PRIVS=yes
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
8016$as_echo "found" >&6; }
8017
8018$as_echo "#define NO_UID_RESTORATION_TEST 1" >>confdefs.h
8019
8020
8021$as_echo "#define USE_SOLARIS_PRIVS 1" >>confdefs.h
8022
8023 SPP_MSG="yes"
8024 else
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8026$as_echo "not found" >&6; }
8027 as_fn_error $? "*** must have support for Solaris privileges to use --with-solaris-privs" "$LINENO" 5
8028 fi
8029
8030fi
8031
8032 TEST_SHELL=$SHELL # let configure find us a capable shell
8033 ;;
8034*-*-sunos4*)
8035 CPPFLAGS="$CPPFLAGS -DSUNOS4"
8036 for ac_func in getpwanam
8037do :
8038 ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam"
8039if test "x$ac_cv_func_getpwanam" = xyes; then :
8040 cat >>confdefs.h <<_ACEOF
8041#define HAVE_GETPWANAM 1
8042_ACEOF
8043
8044fi
8045done
8046
8047 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
8048
8049 conf_utmp_location=/etc/utmp
8050 conf_wtmp_location=/var/adm/wtmp
8051 conf_lastlog_location=/var/adm/lastlog
8052 $as_echo "#define USE_PIPES 1" >>confdefs.h
8053
8054 ;;
8055*-ncr-sysv*)
8056 LIBS="$LIBS -lc89"
8057 $as_echo "#define USE_PIPES 1" >>confdefs.h
8058
8059 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
8060
8061 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8062
8063 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8064
8065 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8066
8067 ;;
8068*-sni-sysv*)
8069 # /usr/ucblib MUST NOT be searched on ReliantUNIX
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
8071$as_echo_n "checking for dlsym in -ldl... " >&6; }
8072if ${ac_cv_lib_dl_dlsym+:} false; then :
8073 $as_echo_n "(cached) " >&6
8074else
8075 ac_check_lib_save_LIBS=$LIBS
8076LIBS="-ldl $LIBS"
8077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078/* end confdefs.h. */
8079
8080/* Override any GCC internal prototype to avoid an error.
8081 Use char because int might match the return type of a GCC
8082 builtin and then its argument prototype would still apply. */
8083#ifdef __cplusplus
8084extern "C"
8085#endif
8086char dlsym ();
8087int
8088main ()
8089{
8090return dlsym ();
8091 ;
8092 return 0;
8093}
8094_ACEOF
8095if ac_fn_c_try_link "$LINENO"; then :
8096 ac_cv_lib_dl_dlsym=yes
8097else
8098 ac_cv_lib_dl_dlsym=no
8099fi
8100rm -f core conftest.err conftest.$ac_objext \
8101 conftest$ac_exeext conftest.$ac_ext
8102LIBS=$ac_check_lib_save_LIBS
8103fi
8104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
8105$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
8106if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
8107 cat >>confdefs.h <<_ACEOF
8108#define HAVE_LIBDL 1
8109_ACEOF
8110
8111 LIBS="-ldl $LIBS"
8112
8113fi
8114
8115 # -lresolv needs to be at the end of LIBS or DNS lookups break
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
8117$as_echo_n "checking for res_query in -lresolv... " >&6; }
8118if ${ac_cv_lib_resolv_res_query+:} false; then :
8119 $as_echo_n "(cached) " >&6
8120else
8121 ac_check_lib_save_LIBS=$LIBS
8122LIBS="-lresolv $LIBS"
8123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8124/* end confdefs.h. */
8125
8126/* Override any GCC internal prototype to avoid an error.
8127 Use char because int might match the return type of a GCC
8128 builtin and then its argument prototype would still apply. */
8129#ifdef __cplusplus
8130extern "C"
8131#endif
8132char res_query ();
8133int
8134main ()
8135{
8136return res_query ();
8137 ;
8138 return 0;
8139}
8140_ACEOF
8141if ac_fn_c_try_link "$LINENO"; then :
8142 ac_cv_lib_resolv_res_query=yes
8143else
8144 ac_cv_lib_resolv_res_query=no
8145fi
8146rm -f core conftest.err conftest.$ac_objext \
8147 conftest$ac_exeext conftest.$ac_ext
8148LIBS=$ac_check_lib_save_LIBS
8149fi
8150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5
8151$as_echo "$ac_cv_lib_resolv_res_query" >&6; }
8152if test "x$ac_cv_lib_resolv_res_query" = xyes; then :
8153 LIBS="$LIBS -lresolv"
8154fi
8155
8156 IPADDR_IN_DISPLAY=yes
8157 $as_echo "#define USE_PIPES 1" >>confdefs.h
8158
8159 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
8160
8161 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8162
8163 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8164
8165 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8166
8167 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
8168
8169 external_path_file=/etc/default/login
8170 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
8171 # Attention: always take care to bind libsocket and libnsl before libc,
8172 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
8173 ;;
8174# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
8175*-*-sysv4.2*)
8176 $as_echo "#define USE_PIPES 1" >>confdefs.h
8177
8178 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8179
8180 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8181
8182 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8183
8184
8185$as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
8186
8187 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
8188
8189 TEST_SHELL=$SHELL # let configure find us a capable shell
8190 ;;
8191# UnixWare 7.x, OpenUNIX 8
8192*-*-sysv5*)
8193 CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf"
8194
8195$as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h
8196
8197 $as_echo "#define USE_PIPES 1" >>confdefs.h
8198
8199 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8200
8201 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
8202
8203 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8204
8205 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8206
8207 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
8208
8209 TEST_SHELL=$SHELL # let configure find us a capable shell
8210 case "$host" in
8211 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
8212 maildir=/var/spool/mail
8213
8214$as_echo "#define BROKEN_LIBIAF 1" >>confdefs.h
8215
8216 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
8217
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5
8219$as_echo_n "checking for getluid in -lprot... " >&6; }
8220if ${ac_cv_lib_prot_getluid+:} false; then :
8221 $as_echo_n "(cached) " >&6
8222else
8223 ac_check_lib_save_LIBS=$LIBS
8224LIBS="-lprot $LIBS"
8225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8226/* end confdefs.h. */
8227
8228/* Override any GCC internal prototype to avoid an error.
8229 Use char because int might match the return type of a GCC
8230 builtin and then its argument prototype would still apply. */
8231#ifdef __cplusplus
8232extern "C"
8233#endif
8234char getluid ();
8235int
8236main ()
8237{
8238return getluid ();
8239 ;
8240 return 0;
8241}
8242_ACEOF
8243if ac_fn_c_try_link "$LINENO"; then :
8244 ac_cv_lib_prot_getluid=yes
8245else
8246 ac_cv_lib_prot_getluid=no
8247fi
8248rm -f core conftest.err conftest.$ac_objext \
8249 conftest$ac_exeext conftest.$ac_ext
8250LIBS=$ac_check_lib_save_LIBS
8251fi
8252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5
8253$as_echo "$ac_cv_lib_prot_getluid" >&6; }
8254if test "x$ac_cv_lib_prot_getluid" = xyes; then :
8255 LIBS="$LIBS -lprot"
8256 for ac_func in getluid setluid
8257do :
8258 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8259ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8260if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8261 cat >>confdefs.h <<_ACEOF
8262#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8263_ACEOF
8264
8265fi
8266done
8267
8268 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
8269
8270 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
8271
8272
8273fi
8274
8275 ;;
8276 *) $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
8277
8278 check_for_libcrypt_later=1
8279 ;;
8280 esac
8281 ;;
8282*-*-sysv*)
8283 ;;
8284# SCO UNIX and OEM versions of SCO UNIX
8285*-*-sco3.2v4*)
8286 as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5
8287 ;;
8288# SCO OpenServer 5.x
8289*-*-sco3.2v5*)
8290 if test -z "$GCC"; then
8291 CFLAGS="$CFLAGS -belf"
8292 fi
8293 LIBS="$LIBS -lprot -lx -ltinfo -lm"
8294 no_dev_ptmx=1
8295 $as_echo "#define USE_PIPES 1" >>confdefs.h
8296
8297 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
8298
8299 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
8300
8301 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8302
8303 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8304
8305 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
8306
8307 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8308
8309 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8310
8311 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
8312
8313 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
8314
8315 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
8316
8317 for ac_func in getluid setluid
8318do :
8319 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8320ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8321if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8322 cat >>confdefs.h <<_ACEOF
8323#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8324_ACEOF
8325
8326fi
8327done
8328
8329 MANTYPE=man
8330 TEST_SHELL=$SHELL # let configure find us a capable shell
8331 SKIP_DISABLE_LASTLOG_DEFINE=yes
8332 ;;
8333*-*-unicosmk*)
8334
8335$as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
8336
8337 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8338
8339 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8340
8341 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8342
8343 $as_echo "#define USE_PIPES 1" >>confdefs.h
8344
8345 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8346
8347 LDFLAGS="$LDFLAGS"
8348 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
8349 MANTYPE=cat
8350 ;;
8351*-*-unicosmp*)
8352 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8353
8354 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8355
8356 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8357
8358 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
8359
8360 $as_echo "#define USE_PIPES 1" >>confdefs.h
8361
8362 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8363
8364 LDFLAGS="$LDFLAGS"
8365 LIBS="$LIBS -lgen -lacid -ldb"
8366 MANTYPE=cat
8367 ;;
8368*-*-unicos*)
8369 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8370
8371 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8372
8373 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8374
8375 $as_echo "#define USE_PIPES 1" >>confdefs.h
8376
8377 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8378
8379 $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
8380
8381 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
8382 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
8383 MANTYPE=cat
8384 ;;
8385*-dec-osf*)
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5
8387$as_echo_n "checking for Digital Unix SIA... " >&6; }
8388 no_osfsia=""
8389
8390# Check whether --with-osfsia was given.
8391if test "${with_osfsia+set}" = set; then :
8392 withval=$with_osfsia;
8393 if test "x$withval" = "xno" ; then
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8395$as_echo "disabled" >&6; }
8396 no_osfsia=1
8397 fi
8398
8399fi
8400
8401 if test -z "$no_osfsia" ; then
8402 if test -f /etc/sia/matrix.conf; then
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8404$as_echo "yes" >&6; }
8405
8406$as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h
8407
8408
8409$as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
8410
8411 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8412
8413 LIBS="$LIBS -lsecurity -ldb -lm -laud"
8414 SIA_MSG="yes"
8415 else
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417$as_echo "no" >&6; }
8418
8419$as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h
8420
8421 fi
8422 fi
8423 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
8424
8425 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8426
8427 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8428
8429 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8430
8431
8432$as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h
8433
8434 ;;
8435
8436*-*-nto-qnx*)
8437 $as_echo "#define USE_PIPES 1" >>confdefs.h
8438
8439 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
8440
8441 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
8442
8443 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
8444
8445
8446$as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h
8447
8448 enable_etc_default_login=no # has incompatible /etc/default/login
8449 case "$host" in
8450 *-*-nto-qnx6*)
8451 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8452
8453 ;;
8454 esac
8455 ;;
8456
8457*-*-ultrix*)
8458
8459$as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h
8460
8461 $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
8462
8463
8464$as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h
8465
8466 ;;
8467
8468*-*-lynxos)
8469 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
8470
8471$as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h
8472
8473 ;;
8474esac
8475
8476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5
8477$as_echo_n "checking compiler and flags for sanity... " >&6; }
8478if test "$cross_compiling" = yes; then :
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5
8480$as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
8481
8482else
8483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484/* end confdefs.h. */
8485 #include <stdio.h>
8486int
8487main ()
8488{
8489 exit(0);
8490 ;
8491 return 0;
8492}
8493_ACEOF
8494if ac_fn_c_try_run "$LINENO"; then :
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8496$as_echo "yes" >&6; }
8497else
8498
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8500$as_echo "no" >&6; }
8501 as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5
8502
8503fi
8504rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8505 conftest.$ac_objext conftest.beam conftest.$ac_ext
8506fi
8507
8508
8509# Checks for libraries.
8510ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
8511if test "x$ac_cv_func_setsockopt" = xyes; then :
8512
8513else
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
8515$as_echo_n "checking for setsockopt in -lsocket... " >&6; }
8516if ${ac_cv_lib_socket_setsockopt+:} false; then :
8517 $as_echo_n "(cached) " >&6
8518else
8519 ac_check_lib_save_LIBS=$LIBS
8520LIBS="-lsocket $LIBS"
8521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522/* end confdefs.h. */
8523
8524/* Override any GCC internal prototype to avoid an error.
8525 Use char because int might match the return type of a GCC
8526 builtin and then its argument prototype would still apply. */
8527#ifdef __cplusplus
8528extern "C"
8529#endif
8530char setsockopt ();
8531int
8532main ()
8533{
8534return setsockopt ();
8535 ;
8536 return 0;
8537}
8538_ACEOF
8539if ac_fn_c_try_link "$LINENO"; then :
8540 ac_cv_lib_socket_setsockopt=yes
8541else
8542 ac_cv_lib_socket_setsockopt=no
8543fi
8544rm -f core conftest.err conftest.$ac_objext \
8545 conftest$ac_exeext conftest.$ac_ext
8546LIBS=$ac_check_lib_save_LIBS
8547fi
8548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
8549$as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
8550if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
8551 cat >>confdefs.h <<_ACEOF
8552#define HAVE_LIBSOCKET 1
8553_ACEOF
8554
8555 LIBS="-lsocket $LIBS"
8556
8557fi
8558
8559fi
8560
8561
8562for ac_func in dirname
8563do :
8564 ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
8565if test "x$ac_cv_func_dirname" = xyes; then :
8566 cat >>confdefs.h <<_ACEOF
8567#define HAVE_DIRNAME 1
8568_ACEOF
8569 for ac_header in libgen.h
8570do :
8571 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
8572if test "x$ac_cv_header_libgen_h" = xyes; then :
8573 cat >>confdefs.h <<_ACEOF
8574#define HAVE_LIBGEN_H 1
8575_ACEOF
8576
8577fi
8578
8579done
8580
8581else
8582
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5
8584$as_echo_n "checking for dirname in -lgen... " >&6; }
8585if ${ac_cv_lib_gen_dirname+:} false; then :
8586 $as_echo_n "(cached) " >&6
8587else
8588 ac_check_lib_save_LIBS=$LIBS
8589LIBS="-lgen $LIBS"
8590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8591/* end confdefs.h. */
8592
8593/* Override any GCC internal prototype to avoid an error.
8594 Use char because int might match the return type of a GCC
8595 builtin and then its argument prototype would still apply. */
8596#ifdef __cplusplus
8597extern "C"
8598#endif
8599char dirname ();
8600int
8601main ()
8602{
8603return dirname ();
8604 ;
8605 return 0;
8606}
8607_ACEOF
8608if ac_fn_c_try_link "$LINENO"; then :
8609 ac_cv_lib_gen_dirname=yes
8610else
8611 ac_cv_lib_gen_dirname=no
8612fi
8613rm -f core conftest.err conftest.$ac_objext \
8614 conftest$ac_exeext conftest.$ac_ext
8615LIBS=$ac_check_lib_save_LIBS
8616fi
8617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5
8618$as_echo "$ac_cv_lib_gen_dirname" >&6; }
8619if test "x$ac_cv_lib_gen_dirname" = xyes; then :
8620
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5
8622$as_echo_n "checking for broken dirname... " >&6; }
8623if ${ac_cv_have_broken_dirname+:} false; then :
8624 $as_echo_n "(cached) " >&6
8625else
8626
8627 save_LIBS="$LIBS"
8628 LIBS="$LIBS -lgen"
8629 if test "$cross_compiling" = yes; then :
8630 ac_cv_have_broken_dirname="no"
8631else
8632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633/* end confdefs.h. */
8634
8635#include <libgen.h>
8636#include <string.h>
8637
8638int main(int argc, char **argv) {
8639 char *s, buf[32];
8640
8641 strncpy(buf,"/etc", 32);
8642 s = dirname(buf);
8643 if (!s || strncmp(s, "/", 32) != 0) {
8644 exit(1);
8645 } else {
8646 exit(0);
8647 }
8648}
8649
8650_ACEOF
8651if ac_fn_c_try_run "$LINENO"; then :
8652 ac_cv_have_broken_dirname="no"
8653else
8654 ac_cv_have_broken_dirname="yes"
8655fi
8656rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8657 conftest.$ac_objext conftest.beam conftest.$ac_ext
8658fi
8659
8660 LIBS="$save_LIBS"
8661
8662fi
8663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5
8664$as_echo "$ac_cv_have_broken_dirname" >&6; }
8665 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
8666 LIBS="$LIBS -lgen"
8667 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
8668
8669 for ac_header in libgen.h
8670do :
8671 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
8672if test "x$ac_cv_header_libgen_h" = xyes; then :
8673 cat >>confdefs.h <<_ACEOF
8674#define HAVE_LIBGEN_H 1
8675_ACEOF
8676
8677fi
8678
8679done
8680
8681 fi
8682
8683fi
8684
8685
8686fi
8687done
8688
8689
8690ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
8691if test "x$ac_cv_func_getspnam" = xyes; then :
8692
8693else
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5
8695$as_echo_n "checking for getspnam in -lgen... " >&6; }
8696if ${ac_cv_lib_gen_getspnam+:} false; then :
8697 $as_echo_n "(cached) " >&6
8698else
8699 ac_check_lib_save_LIBS=$LIBS
8700LIBS="-lgen $LIBS"
8701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8702/* end confdefs.h. */
8703
8704/* Override any GCC internal prototype to avoid an error.
8705 Use char because int might match the return type of a GCC
8706 builtin and then its argument prototype would still apply. */
8707#ifdef __cplusplus
8708extern "C"
8709#endif
8710char getspnam ();
8711int
8712main ()
8713{
8714return getspnam ();
8715 ;
8716 return 0;
8717}
8718_ACEOF
8719if ac_fn_c_try_link "$LINENO"; then :
8720 ac_cv_lib_gen_getspnam=yes
8721else
8722 ac_cv_lib_gen_getspnam=no
8723fi
8724rm -f core conftest.err conftest.$ac_objext \
8725 conftest$ac_exeext conftest.$ac_ext
8726LIBS=$ac_check_lib_save_LIBS
8727fi
8728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5
8729$as_echo "$ac_cv_lib_gen_getspnam" >&6; }
8730if test "x$ac_cv_lib_gen_getspnam" = xyes; then :
8731 LIBS="$LIBS -lgen"
8732fi
8733
8734fi
8735
8736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5
8737$as_echo_n "checking for library containing basename... " >&6; }
8738if ${ac_cv_search_basename+:} false; then :
8739 $as_echo_n "(cached) " >&6
8740else
8741 ac_func_search_save_LIBS=$LIBS
8742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743/* end confdefs.h. */
8744
8745/* Override any GCC internal prototype to avoid an error.
8746 Use char because int might match the return type of a GCC
8747 builtin and then its argument prototype would still apply. */
8748#ifdef __cplusplus
8749extern "C"
8750#endif
8751char basename ();
8752int
8753main ()
8754{
8755return basename ();
8756 ;
8757 return 0;
8758}
8759_ACEOF
8760for ac_lib in '' gen; do
8761 if test -z "$ac_lib"; then
8762 ac_res="none required"
8763 else
8764 ac_res=-l$ac_lib
8765 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8766 fi
8767 if ac_fn_c_try_link "$LINENO"; then :
8768 ac_cv_search_basename=$ac_res
8769fi
8770rm -f core conftest.err conftest.$ac_objext \
8771 conftest$ac_exeext
8772 if ${ac_cv_search_basename+:} false; then :
8773 break
8774fi
8775done
8776if ${ac_cv_search_basename+:} false; then :
8777
8778else
8779 ac_cv_search_basename=no
8780fi
8781rm conftest.$ac_ext
8782LIBS=$ac_func_search_save_LIBS
8783fi
8784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5
8785$as_echo "$ac_cv_search_basename" >&6; }
8786ac_res=$ac_cv_search_basename
8787if test "$ac_res" != no; then :
8788 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8789
8790$as_echo "#define HAVE_BASENAME 1" >>confdefs.h
8791
8792fi
8793
8794
8795
8796# Check whether --with-zlib was given.
8797if test "${with_zlib+set}" = set; then :
8798 withval=$with_zlib; if test "x$withval" = "xno" ; then
8799 as_fn_error $? "*** zlib is required ***" "$LINENO" 5
8800 elif test "x$withval" != "xyes"; then
8801 if test -d "$withval/lib"; then
8802 if test -n "${need_dash_r}"; then
8803 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8804 else
8805 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8806 fi
8807 else
8808 if test -n "${need_dash_r}"; then
8809 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8810 else
8811 LDFLAGS="-L${withval} ${LDFLAGS}"
8812 fi
8813 fi
8814 if test -d "$withval/include"; then
8815 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8816 else
8817 CPPFLAGS="-I${withval} ${CPPFLAGS}"
8818 fi
8819 fi
8820
8821fi
8822
8823
8824ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
8825if test "x$ac_cv_header_zlib_h" = xyes; then :
8826
8827else
8828 as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5
8829fi
8830
8831
8832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
8833$as_echo_n "checking for deflate in -lz... " >&6; }
8834if ${ac_cv_lib_z_deflate+:} false; then :
8835 $as_echo_n "(cached) " >&6
8836else
8837 ac_check_lib_save_LIBS=$LIBS
8838LIBS="-lz $LIBS"
8839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8840/* end confdefs.h. */
8841
8842/* Override any GCC internal prototype to avoid an error.
8843 Use char because int might match the return type of a GCC
8844 builtin and then its argument prototype would still apply. */
8845#ifdef __cplusplus
8846extern "C"
8847#endif
8848char deflate ();
8849int
8850main ()
8851{
8852return deflate ();
8853 ;
8854 return 0;
8855}
8856_ACEOF
8857if ac_fn_c_try_link "$LINENO"; then :
8858 ac_cv_lib_z_deflate=yes
8859else
8860 ac_cv_lib_z_deflate=no
8861fi
8862rm -f core conftest.err conftest.$ac_objext \
8863 conftest$ac_exeext conftest.$ac_ext
8864LIBS=$ac_check_lib_save_LIBS
8865fi
8866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
8867$as_echo "$ac_cv_lib_z_deflate" >&6; }
8868if test "x$ac_cv_lib_z_deflate" = xyes; then :
8869 cat >>confdefs.h <<_ACEOF
8870#define HAVE_LIBZ 1
8871_ACEOF
8872
8873 LIBS="-lz $LIBS"
8874
8875else
8876
8877 saved_CPPFLAGS="$CPPFLAGS"
8878 saved_LDFLAGS="$LDFLAGS"
8879 save_LIBS="$LIBS"
8880 if test -n "${need_dash_r}"; then
8881 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
8882 else
8883 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
8884 fi
8885 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
8886 LIBS="$LIBS -lz"
8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8888/* end confdefs.h. */
8889
8890/* Override any GCC internal prototype to avoid an error.
8891 Use char because int might match the return type of a GCC
8892 builtin and then its argument prototype would still apply. */
8893#ifdef __cplusplus
8894extern "C"
8895#endif
8896char deflate ();
8897int
8898main ()
8899{
8900return deflate ();
8901 ;
8902 return 0;
8903}
8904_ACEOF
8905if ac_fn_c_try_link "$LINENO"; then :
8906 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
8907
8908else
8909
8910 as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5
8911
8912
8913fi
8914rm -f core conftest.err conftest.$ac_objext \
8915 conftest$ac_exeext conftest.$ac_ext
8916
8917
8918fi
8919
8920
8921
8922# Check whether --with-zlib-version-check was given.
8923if test "${with_zlib_version_check+set}" = set; then :
8924 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
8925 zlib_check_nonfatal=1
8926 fi
8927
8928
8929fi
8930
8931
8932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5
8933$as_echo_n "checking for possibly buggy zlib... " >&6; }
8934if test "$cross_compiling" = yes; then :
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5
8936$as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
8937
8938else
8939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8940/* end confdefs.h. */
8941
8942#include <stdio.h>
8943#include <stdlib.h>
8944#include <zlib.h>
8945
8946int
8947main ()
8948{
8949
8950 int a=0, b=0, c=0, d=0, n, v;
8951 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
8952 if (n != 3 && n != 4)
8953 exit(1);
8954 v = a*1000000 + b*10000 + c*100 + d;
8955 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
8956
8957 /* 1.1.4 is OK */
8958 if (a == 1 && b == 1 && c >= 4)
8959 exit(0);
8960
8961 /* 1.2.3 and up are OK */
8962 if (v >= 1020300)
8963 exit(0);
8964
8965 exit(2);
8966
8967 ;
8968 return 0;
8969}
8970_ACEOF
8971if ac_fn_c_try_run "$LINENO"; then :
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8973$as_echo "no" >&6; }
8974else
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8976$as_echo "yes" >&6; }
8977 if test -z "$zlib_check_nonfatal" ; then
8978 as_fn_error $? "*** zlib too old - check config.log ***
8979Your reported zlib version has known security problems. It's possible your
8980vendor has fixed these problems without changing the version number. If you
8981are sure this is the case, you can disable the check by running
8982\"./configure --without-zlib-version-check\".
8983If you are in doubt, upgrade zlib to version 1.2.3 or greater.
8984See http://www.gzip.org/zlib/ for details." "$LINENO" 5
8985 else
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5
8987$as_echo "$as_me: WARNING: zlib version may have security problems" >&2;}
8988 fi
8989
8990fi
8991rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8992 conftest.$ac_objext conftest.beam conftest.$ac_ext
8993fi
8994
8995
8996ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
8997if test "x$ac_cv_func_strcasecmp" = xyes; then :
8998
8999else
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5
9001$as_echo_n "checking for strcasecmp in -lresolv... " >&6; }
9002if ${ac_cv_lib_resolv_strcasecmp+:} false; then :
9003 $as_echo_n "(cached) " >&6
9004else
9005 ac_check_lib_save_LIBS=$LIBS
9006LIBS="-lresolv $LIBS"
9007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008/* end confdefs.h. */
9009
9010/* Override any GCC internal prototype to avoid an error.
9011 Use char because int might match the return type of a GCC
9012 builtin and then its argument prototype would still apply. */
9013#ifdef __cplusplus
9014extern "C"
9015#endif
9016char strcasecmp ();
9017int
9018main ()
9019{
9020return strcasecmp ();
9021 ;
9022 return 0;
9023}
9024_ACEOF
9025if ac_fn_c_try_link "$LINENO"; then :
9026 ac_cv_lib_resolv_strcasecmp=yes
9027else
9028 ac_cv_lib_resolv_strcasecmp=no
9029fi
9030rm -f core conftest.err conftest.$ac_objext \
9031 conftest$ac_exeext conftest.$ac_ext
9032LIBS=$ac_check_lib_save_LIBS
9033fi
9034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5
9035$as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; }
9036if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then :
9037 LIBS="$LIBS -lresolv"
9038fi
9039
9040
9041fi
9042
9043for ac_func in utimes
9044do :
9045 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
9046if test "x$ac_cv_func_utimes" = xyes; then :
9047 cat >>confdefs.h <<_ACEOF
9048#define HAVE_UTIMES 1
9049_ACEOF
9050
9051else
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5
9053$as_echo_n "checking for utimes in -lc89... " >&6; }
9054if ${ac_cv_lib_c89_utimes+:} false; then :
9055 $as_echo_n "(cached) " >&6
9056else
9057 ac_check_lib_save_LIBS=$LIBS
9058LIBS="-lc89 $LIBS"
9059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9060/* end confdefs.h. */
9061
9062/* Override any GCC internal prototype to avoid an error.
9063 Use char because int might match the return type of a GCC
9064 builtin and then its argument prototype would still apply. */
9065#ifdef __cplusplus
9066extern "C"
9067#endif
9068char utimes ();
9069int
9070main ()
9071{
9072return utimes ();
9073 ;
9074 return 0;
9075}
9076_ACEOF
9077if ac_fn_c_try_link "$LINENO"; then :
9078 ac_cv_lib_c89_utimes=yes
9079else
9080 ac_cv_lib_c89_utimes=no
9081fi
9082rm -f core conftest.err conftest.$ac_objext \
9083 conftest$ac_exeext conftest.$ac_ext
9084LIBS=$ac_check_lib_save_LIBS
9085fi
9086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5
9087$as_echo "$ac_cv_lib_c89_utimes" >&6; }
9088if test "x$ac_cv_lib_c89_utimes" = xyes; then :
9089 $as_echo "#define HAVE_UTIMES 1" >>confdefs.h
9090
9091 LIBS="$LIBS -lc89"
9092fi
9093
9094
9095fi
9096done
9097
9098
9099for ac_header in bsd/libutil.h libutil.h
9100do :
9101 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9102ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9103if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9104 cat >>confdefs.h <<_ACEOF
9105#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9106_ACEOF
9107
9108fi
9109
9110done
9111
9112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmt_scaled" >&5
9113$as_echo_n "checking for library containing fmt_scaled... " >&6; }
9114if ${ac_cv_search_fmt_scaled+:} false; then :
9115 $as_echo_n "(cached) " >&6
9116else
9117 ac_func_search_save_LIBS=$LIBS
9118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119/* end confdefs.h. */
9120
9121/* Override any GCC internal prototype to avoid an error.
9122 Use char because int might match the return type of a GCC
9123 builtin and then its argument prototype would still apply. */
9124#ifdef __cplusplus
9125extern "C"
9126#endif
9127char fmt_scaled ();
9128int
9129main ()
9130{
9131return fmt_scaled ();
9132 ;
9133 return 0;
9134}
9135_ACEOF
9136for ac_lib in '' util bsd; do
9137 if test -z "$ac_lib"; then
9138 ac_res="none required"
9139 else
9140 ac_res=-l$ac_lib
9141 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9142 fi
9143 if ac_fn_c_try_link "$LINENO"; then :
9144 ac_cv_search_fmt_scaled=$ac_res
9145fi
9146rm -f core conftest.err conftest.$ac_objext \
9147 conftest$ac_exeext
9148 if ${ac_cv_search_fmt_scaled+:} false; then :
9149 break
9150fi
9151done
9152if ${ac_cv_search_fmt_scaled+:} false; then :
9153
9154else
9155 ac_cv_search_fmt_scaled=no
9156fi
9157rm conftest.$ac_ext
9158LIBS=$ac_func_search_save_LIBS
9159fi
9160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmt_scaled" >&5
9161$as_echo "$ac_cv_search_fmt_scaled" >&6; }
9162ac_res=$ac_cv_search_fmt_scaled
9163if test "$ac_res" != no; then :
9164 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9165
9166fi
9167
9168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing scan_scaled" >&5
9169$as_echo_n "checking for library containing scan_scaled... " >&6; }
9170if ${ac_cv_search_scan_scaled+:} false; then :
9171 $as_echo_n "(cached) " >&6
9172else
9173 ac_func_search_save_LIBS=$LIBS
9174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9175/* end confdefs.h. */
9176
9177/* Override any GCC internal prototype to avoid an error.
9178 Use char because int might match the return type of a GCC
9179 builtin and then its argument prototype would still apply. */
9180#ifdef __cplusplus
9181extern "C"
9182#endif
9183char scan_scaled ();
9184int
9185main ()
9186{
9187return scan_scaled ();
9188 ;
9189 return 0;
9190}
9191_ACEOF
9192for ac_lib in '' util bsd; do
9193 if test -z "$ac_lib"; then
9194 ac_res="none required"
9195 else
9196 ac_res=-l$ac_lib
9197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9198 fi
9199 if ac_fn_c_try_link "$LINENO"; then :
9200 ac_cv_search_scan_scaled=$ac_res
9201fi
9202rm -f core conftest.err conftest.$ac_objext \
9203 conftest$ac_exeext
9204 if ${ac_cv_search_scan_scaled+:} false; then :
9205 break
9206fi
9207done
9208if ${ac_cv_search_scan_scaled+:} false; then :
9209
9210else
9211 ac_cv_search_scan_scaled=no
9212fi
9213rm conftest.$ac_ext
9214LIBS=$ac_func_search_save_LIBS
9215fi
9216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_scan_scaled" >&5
9217$as_echo "$ac_cv_search_scan_scaled" >&6; }
9218ac_res=$ac_cv_search_scan_scaled
9219if test "$ac_res" != no; then :
9220 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9221
9222fi
9223
9224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5
9225$as_echo_n "checking for library containing login... " >&6; }
9226if ${ac_cv_search_login+:} false; then :
9227 $as_echo_n "(cached) " >&6
9228else
9229 ac_func_search_save_LIBS=$LIBS
9230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231/* end confdefs.h. */
9232
9233/* Override any GCC internal prototype to avoid an error.
9234 Use char because int might match the return type of a GCC
9235 builtin and then its argument prototype would still apply. */
9236#ifdef __cplusplus
9237extern "C"
9238#endif
9239char login ();
9240int
9241main ()
9242{
9243return login ();
9244 ;
9245 return 0;
9246}
9247_ACEOF
9248for ac_lib in '' util bsd; do
9249 if test -z "$ac_lib"; then
9250 ac_res="none required"
9251 else
9252 ac_res=-l$ac_lib
9253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9254 fi
9255 if ac_fn_c_try_link "$LINENO"; then :
9256 ac_cv_search_login=$ac_res
9257fi
9258rm -f core conftest.err conftest.$ac_objext \
9259 conftest$ac_exeext
9260 if ${ac_cv_search_login+:} false; then :
9261 break
9262fi
9263done
9264if ${ac_cv_search_login+:} false; then :
9265
9266else
9267 ac_cv_search_login=no
9268fi
9269rm conftest.$ac_ext
9270LIBS=$ac_func_search_save_LIBS
9271fi
9272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5
9273$as_echo "$ac_cv_search_login" >&6; }
9274ac_res=$ac_cv_search_login
9275if test "$ac_res" != no; then :
9276 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9277
9278fi
9279
9280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logout" >&5
9281$as_echo_n "checking for library containing logout... " >&6; }
9282if ${ac_cv_search_logout+:} false; then :
9283 $as_echo_n "(cached) " >&6
9284else
9285 ac_func_search_save_LIBS=$LIBS
9286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9287/* end confdefs.h. */
9288
9289/* Override any GCC internal prototype to avoid an error.
9290 Use char because int might match the return type of a GCC
9291 builtin and then its argument prototype would still apply. */
9292#ifdef __cplusplus
9293extern "C"
9294#endif
9295char logout ();
9296int
9297main ()
9298{
9299return logout ();
9300 ;
9301 return 0;
9302}
9303_ACEOF
9304for ac_lib in '' util bsd; do
9305 if test -z "$ac_lib"; then
9306 ac_res="none required"
9307 else
9308 ac_res=-l$ac_lib
9309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9310 fi
9311 if ac_fn_c_try_link "$LINENO"; then :
9312 ac_cv_search_logout=$ac_res
9313fi
9314rm -f core conftest.err conftest.$ac_objext \
9315 conftest$ac_exeext
9316 if ${ac_cv_search_logout+:} false; then :
9317 break
9318fi
9319done
9320if ${ac_cv_search_logout+:} false; then :
9321
9322else
9323 ac_cv_search_logout=no
9324fi
9325rm conftest.$ac_ext
9326LIBS=$ac_func_search_save_LIBS
9327fi
9328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logout" >&5
9329$as_echo "$ac_cv_search_logout" >&6; }
9330ac_res=$ac_cv_search_logout
9331if test "$ac_res" != no; then :
9332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9333
9334fi
9335
9336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logwtmp" >&5
9337$as_echo_n "checking for library containing logwtmp... " >&6; }
9338if ${ac_cv_search_logwtmp+:} false; then :
9339 $as_echo_n "(cached) " >&6
9340else
9341 ac_func_search_save_LIBS=$LIBS
9342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9343/* end confdefs.h. */
9344
9345/* Override any GCC internal prototype to avoid an error.
9346 Use char because int might match the return type of a GCC
9347 builtin and then its argument prototype would still apply. */
9348#ifdef __cplusplus
9349extern "C"
9350#endif
9351char logwtmp ();
9352int
9353main ()
9354{
9355return logwtmp ();
9356 ;
9357 return 0;
9358}
9359_ACEOF
9360for ac_lib in '' util bsd; do
9361 if test -z "$ac_lib"; then
9362 ac_res="none required"
9363 else
9364 ac_res=-l$ac_lib
9365 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9366 fi
9367 if ac_fn_c_try_link "$LINENO"; then :
9368 ac_cv_search_logwtmp=$ac_res
9369fi
9370rm -f core conftest.err conftest.$ac_objext \
9371 conftest$ac_exeext
9372 if ${ac_cv_search_logwtmp+:} false; then :
9373 break
9374fi
9375done
9376if ${ac_cv_search_logwtmp+:} false; then :
9377
9378else
9379 ac_cv_search_logwtmp=no
9380fi
9381rm conftest.$ac_ext
9382LIBS=$ac_func_search_save_LIBS
9383fi
9384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logwtmp" >&5
9385$as_echo "$ac_cv_search_logwtmp" >&6; }
9386ac_res=$ac_cv_search_logwtmp
9387if test "$ac_res" != no; then :
9388 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9389
9390fi
9391
9392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
9393$as_echo_n "checking for library containing openpty... " >&6; }
9394if ${ac_cv_search_openpty+:} false; then :
9395 $as_echo_n "(cached) " >&6
9396else
9397 ac_func_search_save_LIBS=$LIBS
9398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9399/* end confdefs.h. */
9400
9401/* Override any GCC internal prototype to avoid an error.
9402 Use char because int might match the return type of a GCC
9403 builtin and then its argument prototype would still apply. */
9404#ifdef __cplusplus
9405extern "C"
9406#endif
9407char openpty ();
9408int
9409main ()
9410{
9411return openpty ();
9412 ;
9413 return 0;
9414}
9415_ACEOF
9416for ac_lib in '' util bsd; do
9417 if test -z "$ac_lib"; then
9418 ac_res="none required"
9419 else
9420 ac_res=-l$ac_lib
9421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9422 fi
9423 if ac_fn_c_try_link "$LINENO"; then :
9424 ac_cv_search_openpty=$ac_res
9425fi
9426rm -f core conftest.err conftest.$ac_objext \
9427 conftest$ac_exeext
9428 if ${ac_cv_search_openpty+:} false; then :
9429 break
9430fi
9431done
9432if ${ac_cv_search_openpty+:} false; then :
9433
9434else
9435 ac_cv_search_openpty=no
9436fi
9437rm conftest.$ac_ext
9438LIBS=$ac_func_search_save_LIBS
9439fi
9440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
9441$as_echo "$ac_cv_search_openpty" >&6; }
9442ac_res=$ac_cv_search_openpty
9443if test "$ac_res" != no; then :
9444 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9445
9446fi
9447
9448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing updwtmp" >&5
9449$as_echo_n "checking for library containing updwtmp... " >&6; }
9450if ${ac_cv_search_updwtmp+:} false; then :
9451 $as_echo_n "(cached) " >&6
9452else
9453 ac_func_search_save_LIBS=$LIBS
9454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455/* end confdefs.h. */
9456
9457/* Override any GCC internal prototype to avoid an error.
9458 Use char because int might match the return type of a GCC
9459 builtin and then its argument prototype would still apply. */
9460#ifdef __cplusplus
9461extern "C"
9462#endif
9463char updwtmp ();
9464int
9465main ()
9466{
9467return updwtmp ();
9468 ;
9469 return 0;
9470}
9471_ACEOF
9472for ac_lib in '' util bsd; do
9473 if test -z "$ac_lib"; then
9474 ac_res="none required"
9475 else
9476 ac_res=-l$ac_lib
9477 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9478 fi
9479 if ac_fn_c_try_link "$LINENO"; then :
9480 ac_cv_search_updwtmp=$ac_res
9481fi
9482rm -f core conftest.err conftest.$ac_objext \
9483 conftest$ac_exeext
9484 if ${ac_cv_search_updwtmp+:} false; then :
9485 break
9486fi
9487done
9488if ${ac_cv_search_updwtmp+:} false; then :
9489
9490else
9491 ac_cv_search_updwtmp=no
9492fi
9493rm conftest.$ac_ext
9494LIBS=$ac_func_search_save_LIBS
9495fi
9496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_updwtmp" >&5
9497$as_echo "$ac_cv_search_updwtmp" >&6; }
9498ac_res=$ac_cv_search_updwtmp
9499if test "$ac_res" != no; then :
9500 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9501
9502fi
9503
9504for ac_func in fmt_scaled scan_scaled login logout openpty updwtmp logwtmp
9505do :
9506 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9507ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9508if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9509 cat >>confdefs.h <<_ACEOF
9510#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9511_ACEOF
9512
9513fi
9514done
9515
9516
9517# On some platforms, inet_ntop and gethostbyname may be found in libresolv
9518# or libnsl.
9519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
9520$as_echo_n "checking for library containing inet_ntop... " >&6; }
9521if ${ac_cv_search_inet_ntop+:} false; then :
9522 $as_echo_n "(cached) " >&6
9523else
9524 ac_func_search_save_LIBS=$LIBS
9525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9526/* end confdefs.h. */
9527
9528/* Override any GCC internal prototype to avoid an error.
9529 Use char because int might match the return type of a GCC
9530 builtin and then its argument prototype would still apply. */
9531#ifdef __cplusplus
9532extern "C"
9533#endif
9534char inet_ntop ();
9535int
9536main ()
9537{
9538return inet_ntop ();
9539 ;
9540 return 0;
9541}
9542_ACEOF
9543for ac_lib in '' resolv nsl; do
9544 if test -z "$ac_lib"; then
9545 ac_res="none required"
9546 else
9547 ac_res=-l$ac_lib
9548 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9549 fi
9550 if ac_fn_c_try_link "$LINENO"; then :
9551 ac_cv_search_inet_ntop=$ac_res
9552fi
9553rm -f core conftest.err conftest.$ac_objext \
9554 conftest$ac_exeext
9555 if ${ac_cv_search_inet_ntop+:} false; then :
9556 break
9557fi
9558done
9559if ${ac_cv_search_inet_ntop+:} false; then :
9560
9561else
9562 ac_cv_search_inet_ntop=no
9563fi
9564rm conftest.$ac_ext
9565LIBS=$ac_func_search_save_LIBS
9566fi
9567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
9568$as_echo "$ac_cv_search_inet_ntop" >&6; }
9569ac_res=$ac_cv_search_inet_ntop
9570if test "$ac_res" != no; then :
9571 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9572
9573fi
9574
9575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9576$as_echo_n "checking for library containing gethostbyname... " >&6; }
9577if ${ac_cv_search_gethostbyname+:} false; then :
9578 $as_echo_n "(cached) " >&6
9579else
9580 ac_func_search_save_LIBS=$LIBS
9581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582/* end confdefs.h. */
9583
9584/* Override any GCC internal prototype to avoid an error.
9585 Use char because int might match the return type of a GCC
9586 builtin and then its argument prototype would still apply. */
9587#ifdef __cplusplus
9588extern "C"
9589#endif
9590char gethostbyname ();
9591int
9592main ()
9593{
9594return gethostbyname ();
9595 ;
9596 return 0;
9597}
9598_ACEOF
9599for ac_lib in '' resolv nsl; do
9600 if test -z "$ac_lib"; then
9601 ac_res="none required"
9602 else
9603 ac_res=-l$ac_lib
9604 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9605 fi
9606 if ac_fn_c_try_link "$LINENO"; then :
9607 ac_cv_search_gethostbyname=$ac_res
9608fi
9609rm -f core conftest.err conftest.$ac_objext \
9610 conftest$ac_exeext
9611 if ${ac_cv_search_gethostbyname+:} false; then :
9612 break
9613fi
9614done
9615if ${ac_cv_search_gethostbyname+:} false; then :
9616
9617else
9618 ac_cv_search_gethostbyname=no
9619fi
9620rm conftest.$ac_ext
9621LIBS=$ac_func_search_save_LIBS
9622fi
9623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9624$as_echo "$ac_cv_search_gethostbyname" >&6; }
9625ac_res=$ac_cv_search_gethostbyname
9626if test "$ac_res" != no; then :
9627 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9628
9629fi
9630
9631
9632for ac_func in strftime
9633do :
9634 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
9635if test "x$ac_cv_func_strftime" = xyes; then :
9636 cat >>confdefs.h <<_ACEOF
9637#define HAVE_STRFTIME 1
9638_ACEOF
9639
9640else
9641 # strftime is in -lintl on SCO UNIX.
9642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
9643$as_echo_n "checking for strftime in -lintl... " >&6; }
9644if ${ac_cv_lib_intl_strftime+:} false; then :
9645 $as_echo_n "(cached) " >&6
9646else
9647 ac_check_lib_save_LIBS=$LIBS
9648LIBS="-lintl $LIBS"
9649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650/* end confdefs.h. */
9651
9652/* Override any GCC internal prototype to avoid an error.
9653 Use char because int might match the return type of a GCC
9654 builtin and then its argument prototype would still apply. */
9655#ifdef __cplusplus
9656extern "C"
9657#endif
9658char strftime ();
9659int
9660main ()
9661{
9662return strftime ();
9663 ;
9664 return 0;
9665}
9666_ACEOF
9667if ac_fn_c_try_link "$LINENO"; then :
9668 ac_cv_lib_intl_strftime=yes
9669else
9670 ac_cv_lib_intl_strftime=no
9671fi
9672rm -f core conftest.err conftest.$ac_objext \
9673 conftest$ac_exeext conftest.$ac_ext
9674LIBS=$ac_check_lib_save_LIBS
9675fi
9676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
9677$as_echo "$ac_cv_lib_intl_strftime" >&6; }
9678if test "x$ac_cv_lib_intl_strftime" = xyes; then :
9679 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
9680
9681LIBS="-lintl $LIBS"
9682fi
9683
9684fi
9685done
9686
9687
9688# Check for ALTDIRFUNC glob() extension
9689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5
9690$as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; }
9691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692/* end confdefs.h. */
9693
9694 #include <glob.h>
9695 #ifdef GLOB_ALTDIRFUNC
9696 FOUNDIT
9697 #endif
9698
9699_ACEOF
9700if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9701 $EGREP "FOUNDIT" >/dev/null 2>&1; then :
9702
9703
9704$as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h
9705
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9707$as_echo "yes" >&6; }
9708
9709else
9710
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9712$as_echo "no" >&6; }
9713
9714
9715fi
9716rm -f conftest*
9717
9718
9719# Check for g.gl_matchc glob() extension
9720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5
9721$as_echo_n "checking for gl_matchc field in glob_t... " >&6; }
9722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9723/* end confdefs.h. */
9724 #include <glob.h>
9725int
9726main ()
9727{
9728 glob_t g; g.gl_matchc = 1;
9729 ;
9730 return 0;
9731}
9732_ACEOF
9733if ac_fn_c_try_compile "$LINENO"; then :
9734
9735
9736$as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h
9737
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9739$as_echo "yes" >&6; }
9740
9741else
9742
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9744$as_echo "no" >&6; }
9745
9746fi
9747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9748
9749# Check for g.gl_statv glob() extension
9750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5
9751$as_echo_n "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... " >&6; }
9752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9753/* end confdefs.h. */
9754 #include <glob.h>
9755int
9756main ()
9757{
9758
9759#ifndef GLOB_KEEPSTAT
9760#error "glob does not support GLOB_KEEPSTAT extension"
9761#endif
9762glob_t g;
9763g.gl_statv = NULL;
9764
9765 ;
9766 return 0;
9767}
9768_ACEOF
9769if ac_fn_c_try_compile "$LINENO"; then :
9770
9771
9772$as_echo "#define GLOB_HAS_GL_STATV 1" >>confdefs.h
9773
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9775$as_echo "yes" >&6; }
9776
9777else
9778
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9780$as_echo "no" >&6; }
9781
9782
9783fi
9784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9785
9786ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h>
9787"
9788if test "x$ac_cv_have_decl_GLOB_NOMATCH" = xyes; then :
9789 ac_have_decl=1
9790else
9791 ac_have_decl=0
9792fi
9793
9794cat >>confdefs.h <<_ACEOF
9795#define HAVE_DECL_GLOB_NOMATCH $ac_have_decl
9796_ACEOF
9797
9798
9799ac_fn_c_check_decl "$LINENO" "VIS_ALL" "ac_cv_have_decl_VIS_ALL" "#include <vis.h>
9800"
9801if test "x$ac_cv_have_decl_VIS_ALL" = xyes; then :
9802
9803else
9804
9805$as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h
9806
9807fi
9808
9809
9810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5
9811$as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; }
9812if test "$cross_compiling" = yes; then :
9813
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
9815$as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
9816 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
9817
9818
9819
9820else
9821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9822/* end confdefs.h. */
9823
9824#include <sys/types.h>
9825#include <dirent.h>
9826int
9827main ()
9828{
9829
9830 struct dirent d;
9831 exit(sizeof(d.d_name)<=sizeof(char));
9832
9833 ;
9834 return 0;
9835}
9836_ACEOF
9837if ac_fn_c_try_run "$LINENO"; then :
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9839$as_echo "yes" >&6; }
9840else
9841
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9843$as_echo "no" >&6; }
9844
9845$as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
9846
9847
9848fi
9849rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9850 conftest.$ac_objext conftest.beam conftest.$ac_ext
9851fi
9852
9853
9854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5
9855$as_echo_n "checking for /proc/pid/fd directory... " >&6; }
9856if test -d "/proc/$$/fd" ; then
9857
9858$as_echo "#define HAVE_PROC_PID 1" >>confdefs.h
9859
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9861$as_echo "yes" >&6; }
9862else
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9864$as_echo "no" >&6; }
9865fi
9866
9867# Check whether user wants S/Key support
9868SKEY_MSG="no"
9869
9870# Check whether --with-skey was given.
9871if test "${with_skey+set}" = set; then :
9872 withval=$with_skey;
9873 if test "x$withval" != "xno" ; then
9874
9875 if test "x$withval" != "xyes" ; then
9876 CPPFLAGS="$CPPFLAGS -I${withval}/include"
9877 LDFLAGS="$LDFLAGS -L${withval}/lib"
9878 fi
9879
9880
9881$as_echo "#define SKEY 1" >>confdefs.h
9882
9883 LIBS="-lskey $LIBS"
9884 SKEY_MSG="yes"
9885
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for s/key support" >&5
9887$as_echo_n "checking for s/key support... " >&6; }
9888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9889/* end confdefs.h. */
9890
9891#include <stdio.h>
9892#include <skey.h>
9893
9894int
9895main ()
9896{
9897
9898 char *ff = skey_keyinfo(""); ff="";
9899 exit(0);
9900
9901 ;
9902 return 0;
9903}
9904_ACEOF
9905if ac_fn_c_try_link "$LINENO"; then :
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9907$as_echo "yes" >&6; }
9908else
9909
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9911$as_echo "no" >&6; }
9912 as_fn_error $? "** Incomplete or missing s/key libraries." "$LINENO" 5
9913
9914fi
9915rm -f core conftest.err conftest.$ac_objext \
9916 conftest$ac_exeext conftest.$ac_ext
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if skeychallenge takes 4 arguments" >&5
9918$as_echo_n "checking if skeychallenge takes 4 arguments... " >&6; }
9919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9920/* end confdefs.h. */
9921
9922#include <stdio.h>
9923#include <skey.h>
9924
9925int
9926main ()
9927{
9928
9929 (void)skeychallenge(NULL,"name","",0);
9930
9931 ;
9932 return 0;
9933}
9934_ACEOF
9935if ac_fn_c_try_compile "$LINENO"; then :
9936
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9938$as_echo "yes" >&6; }
9939
9940$as_echo "#define SKEYCHALLENGE_4ARG 1" >>confdefs.h
9941
9942else
9943
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9945$as_echo "no" >&6; }
9946
9947fi
9948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9949 fi
9950
9951
9952fi
9953
9954
9955# Check whether user wants to use ldns
9956LDNS_MSG="no"
9957
9958# Check whether --with-ldns was given.
9959if test "${with_ldns+set}" = set; then :
9960 withval=$with_ldns;
9961 if test "x$withval" != "xno" ; then
9962
9963 if test "x$withval" != "xyes" ; then
9964 CPPFLAGS="$CPPFLAGS -I${withval}/include"
9965 LDFLAGS="$LDFLAGS -L${withval}/lib"
9966 fi
9967
9968
9969$as_echo "#define HAVE_LDNS 1" >>confdefs.h
9970
9971 LIBS="-lldns $LIBS"
9972 LDNS_MSG="yes"
9973
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns support" >&5
9975$as_echo_n "checking for ldns support... " >&6; }
9976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9977/* end confdefs.h. */
9978
9979#include <stdio.h>
9980#include <stdlib.h>
9981#include <stdint.h>
9982#include <ldns/ldns.h>
9983int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); }
9984
9985
9986_ACEOF
9987if ac_fn_c_try_link "$LINENO"; then :
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9989$as_echo "yes" >&6; }
9990else
9991
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9993$as_echo "no" >&6; }
9994 as_fn_error $? "** Incomplete or missing ldns libraries." "$LINENO" 5
9995
9996fi
9997rm -f core conftest.err conftest.$ac_objext \
9998 conftest$ac_exeext conftest.$ac_ext
9999 fi
10000
10001
10002fi
10003
10004
10005# Check whether user wants libedit support
10006LIBEDIT_MSG="no"
10007
10008# Check whether --with-libedit was given.
10009if test "${with_libedit+set}" = set; then :
10010 withval=$with_libedit; if test "x$withval" != "xno" ; then
10011 if test "x$withval" = "xyes" ; then
10012 if test -n "$ac_tool_prefix"; then
10013 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10014set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10016$as_echo_n "checking for $ac_word... " >&6; }
10017if ${ac_cv_path_PKGCONFIG+:} false; then :
10018 $as_echo_n "(cached) " >&6
10019else
10020 case $PKGCONFIG in
10021 [\\/]* | ?:[\\/]*)
10022 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
10023 ;;
10024 *)
10025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10026for as_dir in $PATH
10027do
10028 IFS=$as_save_IFS
10029 test -z "$as_dir" && as_dir=.
10030 for ac_exec_ext in '' $ac_executable_extensions; do
10031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10032 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
10033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10034 break 2
10035 fi
10036done
10037 done
10038IFS=$as_save_IFS
10039
10040 ;;
10041esac
10042fi
10043PKGCONFIG=$ac_cv_path_PKGCONFIG
10044if test -n "$PKGCONFIG"; then
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
10046$as_echo "$PKGCONFIG" >&6; }
10047else
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10049$as_echo "no" >&6; }
10050fi
10051
10052
10053fi
10054if test -z "$ac_cv_path_PKGCONFIG"; then
10055 ac_pt_PKGCONFIG=$PKGCONFIG
10056 # Extract the first word of "pkg-config", so it can be a program name with args.
10057set dummy pkg-config; ac_word=$2
10058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10059$as_echo_n "checking for $ac_word... " >&6; }
10060if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
10061 $as_echo_n "(cached) " >&6
10062else
10063 case $ac_pt_PKGCONFIG in
10064 [\\/]* | ?:[\\/]*)
10065 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
10066 ;;
10067 *)
10068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10069for as_dir in $PATH
10070do
10071 IFS=$as_save_IFS
10072 test -z "$as_dir" && as_dir=.
10073 for ac_exec_ext in '' $ac_executable_extensions; do
10074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10075 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
10076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10077 break 2
10078 fi
10079done
10080 done
10081IFS=$as_save_IFS
10082
10083 ;;
10084esac
10085fi
10086ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
10087if test -n "$ac_pt_PKGCONFIG"; then
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
10089$as_echo "$ac_pt_PKGCONFIG" >&6; }
10090else
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10092$as_echo "no" >&6; }
10093fi
10094
10095 if test "x$ac_pt_PKGCONFIG" = x; then
10096 PKGCONFIG="no"
10097 else
10098 case $cross_compiling:$ac_tool_warned in
10099yes:)
10100{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10101$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10102ac_tool_warned=yes ;;
10103esac
10104 PKGCONFIG=$ac_pt_PKGCONFIG
10105 fi
10106else
10107 PKGCONFIG="$ac_cv_path_PKGCONFIG"
10108fi
10109
10110 if test "x$PKGCONFIG" != "xno"; then
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5
10112$as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; }
10113 if "$PKGCONFIG" libedit; then
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10115$as_echo "yes" >&6; }
10116 use_pkgconfig_for_libedit=yes
10117 else
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10119$as_echo "no" >&6; }
10120 fi
10121 fi
10122 else
10123 CPPFLAGS="$CPPFLAGS -I${withval}/include"
10124 if test -n "${need_dash_r}"; then
10125 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
10126 else
10127 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
10128 fi
10129 fi
10130 if test "x$use_pkgconfig_for_libedit" = "xyes"; then
10131 LIBEDIT=`$PKGCONFIG --libs libedit`
10132 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
10133 else
10134 LIBEDIT="-ledit -lcurses"
10135 fi
10136 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5
10138$as_echo_n "checking for el_init in -ledit... " >&6; }
10139if ${ac_cv_lib_edit_el_init+:} false; then :
10140 $as_echo_n "(cached) " >&6
10141else
10142 ac_check_lib_save_LIBS=$LIBS
10143LIBS="-ledit $OTHERLIBS
10144 $LIBS"
10145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146/* end confdefs.h. */
10147
10148/* Override any GCC internal prototype to avoid an error.
10149 Use char because int might match the return type of a GCC
10150 builtin and then its argument prototype would still apply. */
10151#ifdef __cplusplus
10152extern "C"
10153#endif
10154char el_init ();
10155int
10156main ()
10157{
10158return el_init ();
10159 ;
10160 return 0;
10161}
10162_ACEOF
10163if ac_fn_c_try_link "$LINENO"; then :
10164 ac_cv_lib_edit_el_init=yes
10165else
10166 ac_cv_lib_edit_el_init=no
10167fi
10168rm -f core conftest.err conftest.$ac_objext \
10169 conftest$ac_exeext conftest.$ac_ext
10170LIBS=$ac_check_lib_save_LIBS
10171fi
10172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5
10173$as_echo "$ac_cv_lib_edit_el_init" >&6; }
10174if test "x$ac_cv_lib_edit_el_init" = xyes; then :
10175
10176$as_echo "#define USE_LIBEDIT 1" >>confdefs.h
10177
10178 LIBEDIT_MSG="yes"
10179
10180
10181else
10182 as_fn_error $? "libedit not found" "$LINENO" 5
10183fi
10184
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5
10186$as_echo_n "checking if libedit version is compatible... " >&6; }
10187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10188/* end confdefs.h. */
10189 #include <histedit.h>
10190int
10191main ()
10192{
10193
10194 int i = H_SETSIZE;
10195 el_init("", NULL, NULL, NULL);
10196 exit(0);
10197
10198 ;
10199 return 0;
10200}
10201_ACEOF
10202if ac_fn_c_try_compile "$LINENO"; then :
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10204$as_echo "yes" >&6; }
10205else
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10207$as_echo "no" >&6; }
10208 as_fn_error $? "libedit version is not compatible" "$LINENO" 5
10209
10210fi
10211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10212 fi
10213
10214fi
10215
10216
10217AUDIT_MODULE=none
10218
10219# Check whether --with-audit was given.
10220if test "${with_audit+set}" = set; then :
10221 withval=$with_audit;
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5
10223$as_echo_n "checking for supported audit module... " >&6; }
10224 case "$withval" in
10225 bsm)
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5
10227$as_echo "bsm" >&6; }
10228 AUDIT_MODULE=bsm
10229 for ac_header in bsm/audit.h
10230do :
10231 ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" "
10232#ifdef HAVE_TIME_H
10233# include <time.h>
10234#endif
10235
10236
10237"
10238if test "x$ac_cv_header_bsm_audit_h" = xyes; then :
10239 cat >>confdefs.h <<_ACEOF
10240#define HAVE_BSM_AUDIT_H 1
10241_ACEOF
10242
10243else
10244 as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5
10245fi
10246
10247done
10248
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5
10250$as_echo_n "checking for getaudit in -lbsm... " >&6; }
10251if ${ac_cv_lib_bsm_getaudit+:} false; then :
10252 $as_echo_n "(cached) " >&6
10253else
10254 ac_check_lib_save_LIBS=$LIBS
10255LIBS="-lbsm $LIBS"
10256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257/* end confdefs.h. */
10258
10259/* Override any GCC internal prototype to avoid an error.
10260 Use char because int might match the return type of a GCC
10261 builtin and then its argument prototype would still apply. */
10262#ifdef __cplusplus
10263extern "C"
10264#endif
10265char getaudit ();
10266int
10267main ()
10268{
10269return getaudit ();
10270 ;
10271 return 0;
10272}
10273_ACEOF
10274if ac_fn_c_try_link "$LINENO"; then :
10275 ac_cv_lib_bsm_getaudit=yes
10276else
10277 ac_cv_lib_bsm_getaudit=no
10278fi
10279rm -f core conftest.err conftest.$ac_objext \
10280 conftest$ac_exeext conftest.$ac_ext
10281LIBS=$ac_check_lib_save_LIBS
10282fi
10283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5
10284$as_echo "$ac_cv_lib_bsm_getaudit" >&6; }
10285if test "x$ac_cv_lib_bsm_getaudit" = xyes; then :
10286 cat >>confdefs.h <<_ACEOF
10287#define HAVE_LIBBSM 1
10288_ACEOF
10289
10290 LIBS="-lbsm $LIBS"
10291
10292else
10293 as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5
10294fi
10295
10296 for ac_func in getaudit
10297do :
10298 ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit"
10299if test "x$ac_cv_func_getaudit" = xyes; then :
10300 cat >>confdefs.h <<_ACEOF
10301#define HAVE_GETAUDIT 1
10302_ACEOF
10303
10304else
10305 as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5
10306fi
10307done
10308
10309 # These are optional
10310 for ac_func in getaudit_addr aug_get_machine
10311do :
10312 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10313ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10314if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10315 cat >>confdefs.h <<_ACEOF
10316#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10317_ACEOF
10318
10319fi
10320done
10321
10322
10323$as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h
10324
10325 if test "$sol2ver" -ge 11; then
10326 SSHDLIBS="$SSHDLIBS -lscf"
10327
10328$as_echo "#define BROKEN_BSM_API 1" >>confdefs.h
10329
10330 fi
10331 ;;
10332 linux)
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5
10334$as_echo "linux" >&6; }
10335 AUDIT_MODULE=linux
10336 for ac_header in libaudit.h
10337do :
10338 ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
10339if test "x$ac_cv_header_libaudit_h" = xyes; then :
10340 cat >>confdefs.h <<_ACEOF
10341#define HAVE_LIBAUDIT_H 1
10342_ACEOF
10343
10344fi
10345
10346done
10347
10348 SSHDLIBS="$SSHDLIBS -laudit"
10349
10350$as_echo "#define USE_LINUX_AUDIT 1" >>confdefs.h
10351
10352 ;;
10353 debug)
10354 AUDIT_MODULE=debug
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
10356$as_echo "debug" >&6; }
10357
10358$as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h
10359
10360 ;;
10361 no)
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10363$as_echo "no" >&6; }
10364 ;;
10365 *)
10366 as_fn_error $? "Unknown audit module $withval" "$LINENO" 5
10367 ;;
10368 esac
10369
10370fi
10371
10372
10373
10374# Check whether --with-pie was given.
10375if test "${with_pie+set}" = set; then :
10376 withval=$with_pie;
10377 if test "x$withval" = "xno"; then
10378 use_pie=no
10379 fi
10380 if test "x$withval" = "xyes"; then
10381 use_pie=yes
10382 fi
10383
10384
10385fi
10386
10387if test "x$use_pie" = "x"; then
10388 use_pie=no
10389fi
10390if test "x$use_toolchain_hardening" != "x1" && test "x$use_pie" = "xauto"; then
10391 # Turn off automatic PIE when toolchain hardening is off.
10392 use_pie=no
10393fi
10394if test "x$use_pie" = "xauto"; then
10395 # Automatic PIE requires gcc >= 4.x
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.x" >&5
10397$as_echo_n "checking for gcc >= 4.x... " >&6; }
10398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10399/* end confdefs.h. */
10400
10401#if !defined(__GNUC__) || __GNUC__ < 4
10402#error gcc is too old
10403#endif
10404
10405_ACEOF
10406if ac_fn_c_try_compile "$LINENO"; then :
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10408$as_echo "yes" >&6; }
10409else
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10411$as_echo "no" >&6; }
10412 use_pie=no
10413
10414fi
10415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10416fi
10417if test "x$use_pie" != "xno"; then
10418 SAVED_CFLAGS="$CFLAGS"
10419 SAVED_LDFLAGS="$LDFLAGS"
10420 {
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fPIE" >&5
10422$as_echo_n "checking if $CC supports compile flag -fPIE... " >&6; }
10423 saved_CFLAGS="$CFLAGS"
10424 CFLAGS="$CFLAGS $WERROR -fPIE"
10425 _define_flag=""
10426 test "x$_define_flag" = "x" && _define_flag="-fPIE"
10427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10428/* end confdefs.h. */
10429
10430#include <stdlib.h>
10431#include <stdio.h>
10432int main(int argc, char **argv) {
10433 /* Some math to catch -ftrapv problems in the toolchain */
10434 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
10435 float l = i * 2.1;
10436 double m = l / 0.5;
10437 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
10438 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
10439 exit(0);
10440}
10441
10442_ACEOF
10443if ac_fn_c_try_compile "$LINENO"; then :
10444
10445if `grep -i "unrecognized option" conftest.err >/dev/null`
10446then
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10448$as_echo "no" >&6; }
10449 CFLAGS="$saved_CFLAGS"
10450else
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10452$as_echo "yes" >&6; }
10453 CFLAGS="$saved_CFLAGS $_define_flag"
10454fi
10455else
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10457$as_echo "no" >&6; }
10458 CFLAGS="$saved_CFLAGS"
10459
10460fi
10461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10462}
10463 {
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -pie" >&5
10465$as_echo_n "checking if $LD supports link flag -pie... " >&6; }
10466 saved_LDFLAGS="$LDFLAGS"
10467 LDFLAGS="$LDFLAGS $WERROR -pie"
10468 _define_flag=""
10469 test "x$_define_flag" = "x" && _define_flag="-pie"
10470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10471/* end confdefs.h. */
10472
10473#include <stdlib.h>
10474#include <stdio.h>
10475int main(int argc, char **argv) {
10476 /* Some math to catch -ftrapv problems in the toolchain */
10477 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
10478 float l = i * 2.1;
10479 double m = l / 0.5;
10480 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
10481 long long p = n * o;
10482 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
10483 exit(0);
10484}
10485
10486_ACEOF
10487if ac_fn_c_try_link "$LINENO"; then :
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10489$as_echo "yes" >&6; }
10490 LDFLAGS="$saved_LDFLAGS $_define_flag"
10491else
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10493$as_echo "no" >&6; }
10494 LDFLAGS="$saved_LDFLAGS"
10495
10496fi
10497rm -f core conftest.err conftest.$ac_objext \
10498 conftest$ac_exeext conftest.$ac_ext
10499}
10500 # We use both -fPIE and -pie or neither.
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether both -fPIE and -pie are supported" >&5
10502$as_echo_n "checking whether both -fPIE and -pie are supported... " >&6; }
10503 if echo "x $CFLAGS" | grep ' -fPIE' >/dev/null 2>&1 && \
10504 echo "x $LDFLAGS" | grep ' -pie' >/dev/null 2>&1 ; then
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10506$as_echo "yes" >&6; }
10507 else
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10509$as_echo "no" >&6; }
10510 CFLAGS="$SAVED_CFLAGS"
10511 LDFLAGS="$SAVED_LDFLAGS"
10512 fi
10513fi
10514
10515for ac_func in \
10516 Blowfish_initstate \
10517 Blowfish_expandstate \
10518 Blowfish_expand0state \
10519 Blowfish_stream2word \
10520 asprintf \
10521 b64_ntop \
10522 __b64_ntop \
10523 b64_pton \
10524 __b64_pton \
10525 bcopy \
10526 bcrypt_pbkdf \
10527 bindresvport_sa \
10528 blf_enc \
10529 cap_rights_limit \
10530 clock \
10531 closefrom \
10532 dirfd \
10533 endgrent \
10534 err \
10535 errx \
10536 explicit_bzero \
10537 fchmod \
10538 fchown \
10539 freeaddrinfo \
10540 fstatfs \
10541 fstatvfs \
10542 futimes \
10543 getaddrinfo \
10544 getcwd \
10545 getgrouplist \
10546 getnameinfo \
10547 getopt \
10548 getpeereid \
10549 getpeerucred \
10550 getpgid \
10551 getpgrp \
10552 _getpty \
10553 getrlimit \
10554 getttyent \
10555 glob \
10556 group_from_gid \
10557 inet_aton \
10558 inet_ntoa \
10559 inet_ntop \
10560 innetgr \
10561 login_getcapbool \
10562 md5_crypt \
10563 memmove \
10564 memset_s \
10565 mkdtemp \
10566 ngetaddrinfo \
10567 nsleep \
10568 ogetaddrinfo \
10569 openlog_r \
10570 pledge \
10571 poll \
10572 prctl \
10573 pstat \
10574 readpassphrase \
10575 reallocarray \
10576 recvmsg \
10577 rresvport_af \
10578 sendmsg \
10579 setdtablesize \
10580 setegid \
10581 setenv \
10582 seteuid \
10583 setgroupent \
10584 setgroups \
10585 setlinebuf \
10586 setlogin \
10587 setpassent\
10588 setpcred \
10589 setproctitle \
10590 setregid \
10591 setreuid \
10592 setrlimit \
10593 setsid \
10594 setvbuf \
10595 sigaction \
10596 sigvec \
10597 snprintf \
10598 socketpair \
10599 statfs \
10600 statvfs \
10601 strcasestr \
10602 strdup \
10603 strerror \
10604 strlcat \
10605 strlcpy \
10606 strmode \
10607 strnlen \
10608 strnvis \
10609 strptime \
10610 strtonum \
10611 strtoll \
10612 strtoul \
10613 strtoull \
10614 swap32 \
10615 sysconf \
10616 tcgetpgrp \
10617 timingsafe_bcmp \
10618 truncate \
10619 unsetenv \
10620 updwtmpx \
10621 user_from_uid \
10622 usleep \
10623 vasprintf \
10624 vsnprintf \
10625 waitpid \
10626 warn \
10627
10628do :
10629 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10630ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10631if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10632 cat >>confdefs.h <<_ACEOF
10633#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10634_ACEOF
10635
10636fi
10637done
10638
10639
10640saved_CFLAGS="$CFLAGS"
10641CFLAGS="$CFLAGS -D_XOPEN_SOURCE"
10642for ac_func in mblen mbtowc nl_langinfo wcwidth
10643do :
10644 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10645ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10646if 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
10649_ACEOF
10650
10651fi
10652done
10653
10654CFLAGS="$saved_CFLAGS"
10655
10656TEST_SSH_UTF8=${TEST_SSH_UTF8:=yes}
10657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8 locale support" >&5
10658$as_echo_n "checking for utf8 locale support... " >&6; }
10659if test "$cross_compiling" = yes; then :
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
10661$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
10662
10663else
10664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10665/* end confdefs.h. */
10666
10667#include <locale.h>
10668#include <stdlib.h>
10669
10670int
10671main ()
10672{
10673
10674 char *loc = setlocale(LC_CTYPE, "en_US.UTF-8");
10675 if (loc != NULL)
10676 exit(0);
10677 exit(1);
10678
10679 ;
10680 return 0;
10681}
10682_ACEOF
10683if ac_fn_c_try_run "$LINENO"; then :
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10685$as_echo "yes" >&6; }
10686else
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10688$as_echo "no" >&6; }
10689 TEST_SSH_UTF8=no
10690fi
10691rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10692 conftest.$ac_objext conftest.beam conftest.$ac_ext
10693fi
10694
10695
10696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10697/* end confdefs.h. */
10698 #include <ctype.h>
10699int
10700main ()
10701{
10702 return (isblank('a'));
10703 ;
10704 return 0;
10705}
10706_ACEOF
10707if ac_fn_c_try_link "$LINENO"; then :
10708
10709$as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
10710
10711
10712fi
10713rm -f core conftest.err conftest.$ac_objext \
10714 conftest$ac_exeext conftest.$ac_ext
10715
10716disable_pkcs11=
10717# Check whether --enable-pkcs11 was given.
10718if test "${enable_pkcs11+set}" = set; then :
10719 enableval=$enable_pkcs11;
10720 if test "x$enableval" = "xno" ; then
10721 disable_pkcs11=1
10722 fi
10723
10724
10725fi
10726
10727
10728# PKCS11 depends on OpenSSL.
10729if test "x$openssl" = "xyes" && test "x$disable_pkcs11" = "x"; then
10730 # PKCS#11 support requires dlopen() and co
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10732$as_echo_n "checking for library containing dlopen... " >&6; }
10733if ${ac_cv_search_dlopen+:} false; then :
10734 $as_echo_n "(cached) " >&6
10735else
10736 ac_func_search_save_LIBS=$LIBS
10737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738/* end confdefs.h. */
10739
10740/* Override any GCC internal prototype to avoid an error.
10741 Use char because int might match the return type of a GCC
10742 builtin and then its argument prototype would still apply. */
10743#ifdef __cplusplus
10744extern "C"
10745#endif
10746char dlopen ();
10747int
10748main ()
10749{
10750return dlopen ();
10751 ;
10752 return 0;
10753}
10754_ACEOF
10755for ac_lib in '' dl; do
10756 if test -z "$ac_lib"; then
10757 ac_res="none required"
10758 else
10759 ac_res=-l$ac_lib
10760 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10761 fi
10762 if ac_fn_c_try_link "$LINENO"; then :
10763 ac_cv_search_dlopen=$ac_res
10764fi
10765rm -f core conftest.err conftest.$ac_objext \
10766 conftest$ac_exeext
10767 if ${ac_cv_search_dlopen+:} false; then :
10768 break
10769fi
10770done
10771if ${ac_cv_search_dlopen+:} false; then :
10772
10773else
10774 ac_cv_search_dlopen=no
10775fi
10776rm conftest.$ac_ext
10777LIBS=$ac_func_search_save_LIBS
10778fi
10779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10780$as_echo "$ac_cv_search_dlopen" >&6; }
10781ac_res=$ac_cv_search_dlopen
10782if test "$ac_res" != no; then :
10783 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10784
10785$as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h
10786
10787
10788fi
10789
10790fi
10791
10792# IRIX has a const char return value for gai_strerror()
10793for ac_func in gai_strerror
10794do :
10795 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
10796if test "x$ac_cv_func_gai_strerror" = xyes; then :
10797 cat >>confdefs.h <<_ACEOF
10798#define HAVE_GAI_STRERROR 1
10799_ACEOF
10800
10801 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
10802
10803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10804/* end confdefs.h. */
10805
10806#include <sys/types.h>
10807#include <sys/socket.h>
10808#include <netdb.h>
10809
10810const char *gai_strerror(int);
10811
10812int
10813main ()
10814{
10815
10816 char *str;
10817 str = gai_strerror(0);
10818
10819 ;
10820 return 0;
10821}
10822_ACEOF
10823if ac_fn_c_try_compile "$LINENO"; then :
10824
10825
10826$as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h
10827
10828fi
10829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10830fi
10831done
10832
10833
10834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
10835$as_echo_n "checking for library containing nanosleep... " >&6; }
10836if ${ac_cv_search_nanosleep+:} false; then :
10837 $as_echo_n "(cached) " >&6
10838else
10839 ac_func_search_save_LIBS=$LIBS
10840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10841/* end confdefs.h. */
10842
10843/* Override any GCC internal prototype to avoid an error.
10844 Use char because int might match the return type of a GCC
10845 builtin and then its argument prototype would still apply. */
10846#ifdef __cplusplus
10847extern "C"
10848#endif
10849char nanosleep ();
10850int
10851main ()
10852{
10853return nanosleep ();
10854 ;
10855 return 0;
10856}
10857_ACEOF
10858for ac_lib in '' rt posix4; do
10859 if test -z "$ac_lib"; then
10860 ac_res="none required"
10861 else
10862 ac_res=-l$ac_lib
10863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10864 fi
10865 if ac_fn_c_try_link "$LINENO"; then :
10866 ac_cv_search_nanosleep=$ac_res
10867fi
10868rm -f core conftest.err conftest.$ac_objext \
10869 conftest$ac_exeext
10870 if ${ac_cv_search_nanosleep+:} false; then :
10871 break
10872fi
10873done
10874if ${ac_cv_search_nanosleep+:} false; then :
10875
10876else
10877 ac_cv_search_nanosleep=no
10878fi
10879rm conftest.$ac_ext
10880LIBS=$ac_func_search_save_LIBS
10881fi
10882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
10883$as_echo "$ac_cv_search_nanosleep" >&6; }
10884ac_res=$ac_cv_search_nanosleep
10885if test "$ac_res" != no; then :
10886 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10887
10888$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
10889
10890fi
10891
10892
10893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
10894$as_echo_n "checking for library containing clock_gettime... " >&6; }
10895if ${ac_cv_search_clock_gettime+:} false; then :
10896 $as_echo_n "(cached) " >&6
10897else
10898 ac_func_search_save_LIBS=$LIBS
10899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10900/* end confdefs.h. */
10901
10902/* Override any GCC internal prototype to avoid an error.
10903 Use char because int might match the return type of a GCC
10904 builtin and then its argument prototype would still apply. */
10905#ifdef __cplusplus
10906extern "C"
10907#endif
10908char clock_gettime ();
10909int
10910main ()
10911{
10912return clock_gettime ();
10913 ;
10914 return 0;
10915}
10916_ACEOF
10917for ac_lib in '' rt; do
10918 if test -z "$ac_lib"; then
10919 ac_res="none required"
10920 else
10921 ac_res=-l$ac_lib
10922 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10923 fi
10924 if ac_fn_c_try_link "$LINENO"; then :
10925 ac_cv_search_clock_gettime=$ac_res
10926fi
10927rm -f core conftest.err conftest.$ac_objext \
10928 conftest$ac_exeext
10929 if ${ac_cv_search_clock_gettime+:} false; then :
10930 break
10931fi
10932done
10933if ${ac_cv_search_clock_gettime+:} false; then :
10934
10935else
10936 ac_cv_search_clock_gettime=no
10937fi
10938rm conftest.$ac_ext
10939LIBS=$ac_func_search_save_LIBS
10940fi
10941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
10942$as_echo "$ac_cv_search_clock_gettime" >&6; }
10943ac_res=$ac_cv_search_clock_gettime
10944if test "$ac_res" != no; then :
10945 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10946
10947$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
10948
10949fi
10950
10951
10952ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default"
10953if test "x$ac_cv_have_decl_getrusage" = xyes; then :
10954 for ac_func in getrusage
10955do :
10956 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
10957if test "x$ac_cv_func_getrusage" = xyes; then :
10958 cat >>confdefs.h <<_ACEOF
10959#define HAVE_GETRUSAGE 1
10960_ACEOF
10961
10962fi
10963done
10964
10965fi
10966
10967ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "
10968#ifdef HAVE_STRING_H
10969# include <string.h>
10970#endif
10971
10972"
10973if test "x$ac_cv_have_decl_strsep" = xyes; then :
10974 for ac_func in strsep
10975do :
10976 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
10977if test "x$ac_cv_func_strsep" = xyes; then :
10978 cat >>confdefs.h <<_ACEOF
10979#define HAVE_STRSEP 1
10980_ACEOF
10981
10982fi
10983done
10984
10985fi
10986
10987
10988ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h>
10989
10990"
10991if test "x$ac_cv_have_decl_tcsendbreak" = xyes; then :
10992 $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h
10993
10994else
10995 for ac_func in tcsendbreak
10996do :
10997 ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak"
10998if test "x$ac_cv_func_tcsendbreak" = xyes; then :
10999 cat >>confdefs.h <<_ACEOF
11000#define HAVE_TCSENDBREAK 1
11001_ACEOF
11002
11003fi
11004done
11005
11006fi
11007
11008
11009ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h>
11010"
11011if test "x$ac_cv_have_decl_h_errno" = xyes; then :
11012 ac_have_decl=1
11013else
11014 ac_have_decl=0
11015fi
11016
11017cat >>confdefs.h <<_ACEOF
11018#define HAVE_DECL_H_ERRNO $ac_have_decl
11019_ACEOF
11020
11021
11022ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" "
11023#include <sys/types.h>
11024#include <sys/socket.h>
11025
11026"
11027if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then :
11028 ac_have_decl=1
11029else
11030 ac_have_decl=0
11031fi
11032
11033cat >>confdefs.h <<_ACEOF
11034#define HAVE_DECL_SHUT_RD $ac_have_decl
11035_ACEOF
11036
11037
11038ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "
11039#include <sys/types.h>
11040#ifdef HAVE_SYS_STAT_H
11041# include <sys/stat.h>
11042#endif
11043#ifdef HAVE_FCNTL_H
11044# include <fcntl.h>
11045#endif
11046
11047"
11048if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
11049 ac_have_decl=1
11050else
11051 ac_have_decl=0
11052fi
11053
11054cat >>confdefs.h <<_ACEOF
11055#define HAVE_DECL_O_NONBLOCK $ac_have_decl
11056_ACEOF
11057
11058
11059ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" "
11060#include <sys/types.h>
11061#include <sys/uio.h>
11062#include <unistd.h>
11063
11064"
11065if test "x$ac_cv_have_decl_writev" = xyes; then :
11066 ac_have_decl=1
11067else
11068 ac_have_decl=0
11069fi
11070
11071cat >>confdefs.h <<_ACEOF
11072#define HAVE_DECL_WRITEV $ac_have_decl
11073_ACEOF
11074
11075
11076ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" "
11077#include <sys/param.h>
11078
11079"
11080if test "x$ac_cv_have_decl_MAXSYMLINKS" = xyes; then :
11081 ac_have_decl=1
11082else
11083 ac_have_decl=0
11084fi
11085
11086cat >>confdefs.h <<_ACEOF
11087#define HAVE_DECL_MAXSYMLINKS $ac_have_decl
11088_ACEOF
11089
11090
11091ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" "
11092#include <stddef.h>
11093
11094"
11095if test "x$ac_cv_have_decl_offsetof" = xyes; then :
11096 ac_have_decl=1
11097else
11098 ac_have_decl=0
11099fi
11100
11101cat >>confdefs.h <<_ACEOF
11102#define HAVE_DECL_OFFSETOF $ac_have_decl
11103_ACEOF
11104
11105
11106# extra bits for select(2)
11107ac_fn_c_check_decl "$LINENO" "howmany" "ac_cv_have_decl_howmany" "
11108#include <sys/param.h>
11109#include <sys/types.h>
11110#ifdef HAVE_SYS_SYSMACROS_H
11111#include <sys/sysmacros.h>
11112#endif
11113#ifdef HAVE_SYS_SELECT_H
11114#include <sys/select.h>
11115#endif
11116#ifdef HAVE_SYS_TIME_H
11117#include <sys/time.h>
11118#endif
11119#ifdef HAVE_UNISTD_H
11120#include <unistd.h>
11121#endif
11122
11123"
11124if test "x$ac_cv_have_decl_howmany" = xyes; then :
11125 ac_have_decl=1
11126else
11127 ac_have_decl=0
11128fi
11129
11130cat >>confdefs.h <<_ACEOF
11131#define HAVE_DECL_HOWMANY $ac_have_decl
11132_ACEOF
11133ac_fn_c_check_decl "$LINENO" "NFDBITS" "ac_cv_have_decl_NFDBITS" "
11134#include <sys/param.h>
11135#include <sys/types.h>
11136#ifdef HAVE_SYS_SYSMACROS_H
11137#include <sys/sysmacros.h>
11138#endif
11139#ifdef HAVE_SYS_SELECT_H
11140#include <sys/select.h>
11141#endif
11142#ifdef HAVE_SYS_TIME_H
11143#include <sys/time.h>
11144#endif
11145#ifdef HAVE_UNISTD_H
11146#include <unistd.h>
11147#endif
11148
11149"
11150if test "x$ac_cv_have_decl_NFDBITS" = xyes; then :
11151 ac_have_decl=1
11152else
11153 ac_have_decl=0
11154fi
11155
11156cat >>confdefs.h <<_ACEOF
11157#define HAVE_DECL_NFDBITS $ac_have_decl
11158_ACEOF
11159
11160ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "
11161#include <sys/param.h>
11162#include <sys/types.h>
11163#ifdef HAVE_SYS_SELECT_H
11164#include <sys/select.h>
11165#endif
11166#ifdef HAVE_SYS_TIME_H
11167#include <sys/time.h>
11168#endif
11169#ifdef HAVE_UNISTD_H
11170#include <unistd.h>
11171#endif
11172
11173"
11174if test "x$ac_cv_type_fd_mask" = xyes; then :
11175
11176cat >>confdefs.h <<_ACEOF
11177#define HAVE_FD_MASK 1
11178_ACEOF
11179
11180
11181fi
11182
11183
11184for ac_func in setresuid
11185do :
11186 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
11187if test "x$ac_cv_func_setresuid" = xyes; then :
11188 cat >>confdefs.h <<_ACEOF
11189#define HAVE_SETRESUID 1
11190_ACEOF
11191
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5
11193$as_echo_n "checking if setresuid seems to work... " >&6; }
11194 if test "$cross_compiling" = yes; then :
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
11196$as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
11197
11198else
11199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11200/* end confdefs.h. */
11201
11202#include <stdlib.h>
11203#include <errno.h>
11204
11205int
11206main ()
11207{
11208
11209 errno=0;
11210 setresuid(0,0,0);
11211 if (errno==ENOSYS)
11212 exit(1);
11213 else
11214 exit(0);
11215
11216 ;
11217 return 0;
11218}
11219_ACEOF
11220if ac_fn_c_try_run "$LINENO"; then :
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11222$as_echo "yes" >&6; }
11223else
11224
11225$as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h
11226
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
11228$as_echo "not implemented" >&6; }
11229fi
11230rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11231 conftest.$ac_objext conftest.beam conftest.$ac_ext
11232fi
11233
11234
11235fi
11236done
11237
11238
11239for ac_func in setresgid
11240do :
11241 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
11242if test "x$ac_cv_func_setresgid" = xyes; then :
11243 cat >>confdefs.h <<_ACEOF
11244#define HAVE_SETRESGID 1
11245_ACEOF
11246
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5
11248$as_echo_n "checking if setresgid seems to work... " >&6; }
11249 if test "$cross_compiling" = yes; then :
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
11251$as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
11252
11253else
11254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11255/* end confdefs.h. */
11256
11257#include <stdlib.h>
11258#include <errno.h>
11259
11260int
11261main ()
11262{
11263
11264 errno=0;
11265 setresgid(0,0,0);
11266 if (errno==ENOSYS)
11267 exit(1);
11268 else
11269 exit(0);
11270
11271 ;
11272 return 0;
11273}
11274_ACEOF
11275if ac_fn_c_try_run "$LINENO"; then :
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11277$as_echo "yes" >&6; }
11278else
11279
11280$as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h
11281
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
11283$as_echo "not implemented" >&6; }
11284fi
11285rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11286 conftest.$ac_objext conftest.beam conftest.$ac_ext
11287fi
11288
11289
11290fi
11291done
11292
11293
11294for ac_func in realpath
11295do :
11296 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
11297if test "x$ac_cv_func_realpath" = xyes; then :
11298 cat >>confdefs.h <<_ACEOF
11299#define HAVE_REALPATH 1
11300_ACEOF
11301
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if realpath works with non-existent files" >&5
11303$as_echo_n "checking if realpath works with non-existent files... " >&6; }
11304 if test "$cross_compiling" = yes; then :
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming working" >&5
11306$as_echo "$as_me: WARNING: cross compiling: assuming working" >&2;}
11307
11308else
11309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11310/* end confdefs.h. */
11311
11312#include <limits.h>
11313#include <stdlib.h>
11314#include <errno.h>
11315
11316int
11317main ()
11318{
11319
11320 char buf[PATH_MAX];
11321 if (realpath("/opensshnonexistentfilename1234", buf) == NULL)
11322 if (errno == ENOENT)
11323 exit(1);
11324 exit(0);
11325
11326 ;
11327 return 0;
11328}
11329_ACEOF
11330if ac_fn_c_try_run "$LINENO"; then :
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11332$as_echo "yes" >&6; }
11333else
11334
11335$as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
11336
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338$as_echo "no" >&6; }
11339fi
11340rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11341 conftest.$ac_objext conftest.beam conftest.$ac_ext
11342fi
11343
11344
11345fi
11346done
11347
11348
11349for ac_func in gettimeofday time
11350do :
11351 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11352ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11353if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11354 cat >>confdefs.h <<_ACEOF
11355#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11356_ACEOF
11357
11358fi
11359done
11360
11361for ac_func in endutent getutent getutid getutline pututline setutent
11362do :
11363 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11364ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11365if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11366 cat >>confdefs.h <<_ACEOF
11367#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11368_ACEOF
11369
11370fi
11371done
11372
11373for ac_func in utmpname
11374do :
11375 ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname"
11376if test "x$ac_cv_func_utmpname" = xyes; then :
11377 cat >>confdefs.h <<_ACEOF
11378#define HAVE_UTMPNAME 1
11379_ACEOF
11380
11381fi
11382done
11383
11384for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline
11385do :
11386 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11387ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11388if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11389 cat >>confdefs.h <<_ACEOF
11390#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11391_ACEOF
11392
11393fi
11394done
11395
11396for ac_func in setutxdb setutxent utmpxname
11397do :
11398 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11399ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11400if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11401 cat >>confdefs.h <<_ACEOF
11402#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11403_ACEOF
11404
11405fi
11406done
11407
11408for ac_func in getlastlogxbyname
11409do :
11410 ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname"
11411if test "x$ac_cv_func_getlastlogxbyname" = xyes; then :
11412 cat >>confdefs.h <<_ACEOF
11413#define HAVE_GETLASTLOGXBYNAME 1
11414_ACEOF
11415
11416fi
11417done
11418
11419
11420ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
11421if test "x$ac_cv_func_daemon" = xyes; then :
11422
11423$as_echo "#define HAVE_DAEMON 1" >>confdefs.h
11424
11425else
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5
11427$as_echo_n "checking for daemon in -lbsd... " >&6; }
11428if ${ac_cv_lib_bsd_daemon+:} false; then :
11429 $as_echo_n "(cached) " >&6
11430else
11431 ac_check_lib_save_LIBS=$LIBS
11432LIBS="-lbsd $LIBS"
11433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11434/* end confdefs.h. */
11435
11436/* Override any GCC internal prototype to avoid an error.
11437 Use char because int might match the return type of a GCC
11438 builtin and then its argument prototype would still apply. */
11439#ifdef __cplusplus
11440extern "C"
11441#endif
11442char daemon ();
11443int
11444main ()
11445{
11446return daemon ();
11447 ;
11448 return 0;
11449}
11450_ACEOF
11451if ac_fn_c_try_link "$LINENO"; then :
11452 ac_cv_lib_bsd_daemon=yes
11453else
11454 ac_cv_lib_bsd_daemon=no
11455fi
11456rm -f core conftest.err conftest.$ac_objext \
11457 conftest$ac_exeext conftest.$ac_ext
11458LIBS=$ac_check_lib_save_LIBS
11459fi
11460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5
11461$as_echo "$ac_cv_lib_bsd_daemon" >&6; }
11462if test "x$ac_cv_lib_bsd_daemon" = xyes; then :
11463 LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
11464
11465fi
11466
11467
11468fi
11469
11470
11471ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11472if test "x$ac_cv_func_getpagesize" = xyes; then :
11473
11474$as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
11475
11476else
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5
11478$as_echo_n "checking for getpagesize in -lucb... " >&6; }
11479if ${ac_cv_lib_ucb_getpagesize+:} false; then :
11480 $as_echo_n "(cached) " >&6
11481else
11482 ac_check_lib_save_LIBS=$LIBS
11483LIBS="-lucb $LIBS"
11484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11485/* end confdefs.h. */
11486
11487/* Override any GCC internal prototype to avoid an error.
11488 Use char because int might match the return type of a GCC
11489 builtin and then its argument prototype would still apply. */
11490#ifdef __cplusplus
11491extern "C"
11492#endif
11493char getpagesize ();
11494int
11495main ()
11496{
11497return getpagesize ();
11498 ;
11499 return 0;
11500}
11501_ACEOF
11502if ac_fn_c_try_link "$LINENO"; then :
11503 ac_cv_lib_ucb_getpagesize=yes
11504else
11505 ac_cv_lib_ucb_getpagesize=no
11506fi
11507rm -f core conftest.err conftest.$ac_objext \
11508 conftest$ac_exeext conftest.$ac_ext
11509LIBS=$ac_check_lib_save_LIBS
11510fi
11511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5
11512$as_echo "$ac_cv_lib_ucb_getpagesize" >&6; }
11513if test "x$ac_cv_lib_ucb_getpagesize" = xyes; then :
11514 LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
11515
11516fi
11517
11518
11519fi
11520
11521
11522# Check for broken snprintf
11523if test "x$ac_cv_func_snprintf" = "xyes" ; then
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5
11525$as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; }
11526 if test "$cross_compiling" = yes; then :
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
11528$as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
11529
11530else
11531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11532/* end confdefs.h. */
11533 #include <stdio.h>
11534int
11535main ()
11536{
11537
11538 char b[5];
11539 snprintf(b,5,"123456789");
11540 exit(b[4]!='\0');
11541
11542 ;
11543 return 0;
11544}
11545_ACEOF
11546if ac_fn_c_try_run "$LINENO"; then :
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11548$as_echo "yes" >&6; }
11549else
11550
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11552$as_echo "no" >&6; }
11553
11554$as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
11555
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
11557$as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
11558
11559fi
11560rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11561 conftest.$ac_objext conftest.beam conftest.$ac_ext
11562fi
11563
11564fi
11565
11566# We depend on vsnprintf returning the right thing on overflow: the
11567# number of characters it tried to create (as per SUSv3)
11568if test "x$ac_cv_func_vsnprintf" = "xyes" ; then
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5
11570$as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; }
11571 if test "$cross_compiling" = yes; then :
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5
11573$as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
11574
11575else
11576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11577/* end confdefs.h. */
11578
11579#include <sys/types.h>
11580#include <stdio.h>
11581#include <stdarg.h>
11582
11583int x_snprintf(char *str, size_t count, const char *fmt, ...)
11584{
11585 size_t ret;
11586 va_list ap;
11587
11588 va_start(ap, fmt);
11589 ret = vsnprintf(str, count, fmt, ap);
11590 va_end(ap);
11591 return ret;
11592}
11593
11594int
11595main ()
11596{
11597
11598char x[1];
11599if (x_snprintf(x, 1, "%s %d", "hello", 12345) != 11)
11600 return 1;
11601if (x_snprintf(NULL, 0, "%s %d", "hello", 12345) != 11)
11602 return 1;
11603return 0;
11604
11605 ;
11606 return 0;
11607}
11608_ACEOF
11609if ac_fn_c_try_run "$LINENO"; then :
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11611$as_echo "yes" >&6; }
11612else
11613
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11615$as_echo "no" >&6; }
11616
11617$as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
11618
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
11620$as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
11621
11622fi
11623rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11624 conftest.$ac_objext conftest.beam conftest.$ac_ext
11625fi
11626
11627fi
11628
11629# On systems where [v]snprintf is broken, but is declared in stdio,
11630# check that the fmt argument is const char * or just char *.
11631# This is only useful for when BROKEN_SNPRINTF
11632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5
11633$as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; }
11634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11635/* end confdefs.h. */
11636
11637#include <stdio.h>
11638int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
11639
11640int
11641main ()
11642{
11643
11644 snprintf(0, 0, 0);
11645
11646 ;
11647 return 0;
11648}
11649_ACEOF
11650if ac_fn_c_try_compile "$LINENO"; then :
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11652$as_echo "yes" >&6; }
11653
11654$as_echo "#define SNPRINTF_CONST const" >>confdefs.h
11655
11656else
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11658$as_echo "no" >&6; }
11659 $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h
11660
11661fi
11662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11663
11664# Check for missing getpeereid (or equiv) support
11665NO_PEERCHECK=""
11666if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5
11668$as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; }
11669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11670/* end confdefs.h. */
11671
11672#include <sys/types.h>
11673#include <sys/socket.h>
11674int
11675main ()
11676{
11677int i = SO_PEERCRED;
11678 ;
11679 return 0;
11680}
11681_ACEOF
11682if ac_fn_c_try_compile "$LINENO"; then :
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11684$as_echo "yes" >&6; }
11685
11686$as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h
11687
11688
11689else
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11691$as_echo "no" >&6; }
11692 NO_PEERCHECK=1
11693
11694fi
11695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11696fi
11697
11698if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
11699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5
11700$as_echo_n "checking for (overly) strict mkstemp... " >&6; }
11701if test "$cross_compiling" = yes; then :
11702
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11704$as_echo "yes" >&6; }
11705 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
11706
11707
11708
11709else
11710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11711/* end confdefs.h. */
11712
11713#include <stdlib.h>
11714
11715int
11716main ()
11717{
11718
11719 char template[]="conftest.mkstemp-test";
11720 if (mkstemp(template) == -1)
11721 exit(1);
11722 unlink(template);
11723 exit(0);
11724
11725 ;
11726 return 0;
11727}
11728_ACEOF
11729if ac_fn_c_try_run "$LINENO"; then :
11730
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732$as_echo "no" >&6; }
11733
11734else
11735
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11737$as_echo "yes" >&6; }
11738
11739$as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
11740
11741
11742fi
11743rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11744 conftest.$ac_objext conftest.beam conftest.$ac_ext
11745fi
11746
11747fi
11748
11749if test ! -z "$check_for_openpty_ctty_bug"; then
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5
11751$as_echo_n "checking if openpty correctly handles controlling tty... " >&6; }
11752 if test "$cross_compiling" = yes; then :
11753
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
11755$as_echo "cross-compiling, assuming yes" >&6; }
11756
11757
11758else
11759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11760/* end confdefs.h. */
11761
11762#include <stdio.h>
11763#include <sys/fcntl.h>
11764#include <sys/types.h>
11765#include <sys/wait.h>
11766
11767int
11768main ()
11769{
11770
11771 pid_t pid;
11772 int fd, ptyfd, ttyfd, status;
11773
11774 pid = fork();
11775 if (pid < 0) { /* failed */
11776 exit(1);
11777 } else if (pid > 0) { /* parent */
11778 waitpid(pid, &status, 0);
11779 if (WIFEXITED(status))
11780 exit(WEXITSTATUS(status));
11781 else
11782 exit(2);
11783 } else { /* child */
11784 close(0); close(1); close(2);
11785 setsid();
11786 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
11787 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
11788 if (fd >= 0)
11789 exit(3); /* Acquired ctty: broken */
11790 else
11791 exit(0); /* Did not acquire ctty: OK */
11792 }
11793
11794 ;
11795 return 0;
11796}
11797_ACEOF
11798if ac_fn_c_try_run "$LINENO"; then :
11799
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11801$as_echo "yes" >&6; }
11802
11803else
11804
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806$as_echo "no" >&6; }
11807 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
11808
11809
11810fi
11811rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11812 conftest.$ac_objext conftest.beam conftest.$ac_ext
11813fi
11814
11815fi
11816
11817if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
11818 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
11820$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
11821 if test "$cross_compiling" = yes; then :
11822
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
11824$as_echo "cross-compiling, assuming yes" >&6; }
11825
11826
11827else
11828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11829/* end confdefs.h. */
11830
11831#include <stdio.h>
11832#include <sys/socket.h>
11833#include <netdb.h>
11834#include <errno.h>
11835#include <netinet/in.h>
11836
11837#define TEST_PORT "2222"
11838
11839int
11840main ()
11841{
11842
11843 int err, sock;
11844 struct addrinfo *gai_ai, *ai, hints;
11845 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
11846
11847 memset(&hints, 0, sizeof(hints));
11848 hints.ai_family = PF_UNSPEC;
11849 hints.ai_socktype = SOCK_STREAM;
11850 hints.ai_flags = AI_PASSIVE;
11851
11852 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
11853 if (err != 0) {
11854 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
11855 exit(1);
11856 }
11857
11858 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
11859 if (ai->ai_family != AF_INET6)
11860 continue;
11861
11862 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
11863 sizeof(ntop), strport, sizeof(strport),
11864 NI_NUMERICHOST|NI_NUMERICSERV);
11865
11866 if (err != 0) {
11867 if (err == EAI_SYSTEM)
11868 perror("getnameinfo EAI_SYSTEM");
11869 else
11870 fprintf(stderr, "getnameinfo failed: %s\n",
11871 gai_strerror(err));
11872 exit(2);
11873 }
11874
11875 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
11876 if (sock < 0)
11877 perror("socket");
11878 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
11879 if (errno == EBADF)
11880 exit(3);
11881 }
11882 }
11883 exit(0);
11884
11885 ;
11886 return 0;
11887}
11888_ACEOF
11889if ac_fn_c_try_run "$LINENO"; then :
11890
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11892$as_echo "yes" >&6; }
11893
11894else
11895
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897$as_echo "no" >&6; }
11898 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
11899
11900
11901fi
11902rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11903 conftest.$ac_objext conftest.beam conftest.$ac_ext
11904fi
11905
11906fi
11907
11908if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
11909 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
11911$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
11912 if test "$cross_compiling" = yes; then :
11913
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming no" >&5
11915$as_echo "cross-compiling, assuming no" >&6; }
11916
11917
11918else
11919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11920/* end confdefs.h. */
11921
11922#include <stdio.h>
11923#include <sys/socket.h>
11924#include <netdb.h>
11925#include <errno.h>
11926#include <netinet/in.h>
11927
11928#define TEST_PORT "2222"
11929
11930int
11931main ()
11932{
11933
11934 int err, sock;
11935 struct addrinfo *gai_ai, *ai, hints;
11936 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
11937
11938 memset(&hints, 0, sizeof(hints));
11939 hints.ai_family = PF_UNSPEC;
11940 hints.ai_socktype = SOCK_STREAM;
11941 hints.ai_flags = AI_PASSIVE;
11942
11943 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
11944 if (err != 0) {
11945 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
11946 exit(1);
11947 }
11948
11949 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
11950 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
11951 continue;
11952
11953 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
11954 sizeof(ntop), strport, sizeof(strport),
11955 NI_NUMERICHOST|NI_NUMERICSERV);
11956
11957 if (ai->ai_family == AF_INET && err != 0) {
11958 perror("getnameinfo");
11959 exit(2);
11960 }
11961 }
11962 exit(0);
11963
11964 ;
11965 return 0;
11966}
11967_ACEOF
11968if ac_fn_c_try_run "$LINENO"; then :
11969
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11971$as_echo "yes" >&6; }
11972
11973$as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h
11974
11975
11976else
11977
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979$as_echo "no" >&6; }
11980 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
11981
11982
11983fi
11984rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11985 conftest.$ac_objext conftest.beam conftest.$ac_ext
11986fi
11987
11988fi
11989
11990if test "x$ac_cv_func_getaddrinfo" = "xyes"; then
11991 ac_fn_c_check_decl "$LINENO" "AI_NUMERICSERV" "ac_cv_have_decl_AI_NUMERICSERV" "#include <sys/types.h>
11992 #include <sys/socket.h>
11993 #include <netdb.h>
11994"
11995if test "x$ac_cv_have_decl_AI_NUMERICSERV" = xyes; then :
11996 ac_have_decl=1
11997else
11998 ac_have_decl=0
11999fi
12000
12001cat >>confdefs.h <<_ACEOF
12002#define HAVE_DECL_AI_NUMERICSERV $ac_have_decl
12003_ACEOF
12004
12005fi
12006
12007if test "x$check_for_conflicting_getspnam" = "x1"; then
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5
12009$as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; }
12010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12011/* end confdefs.h. */
12012 #include <shadow.h>
12013int
12014main ()
12015{
12016 exit(0);
12017 ;
12018 return 0;
12019}
12020_ACEOF
12021if ac_fn_c_try_compile "$LINENO"; then :
12022
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024$as_echo "no" >&6; }
12025
12026else
12027
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12029$as_echo "yes" >&6; }
12030
12031$as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h
12032
12033
12034
12035fi
12036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12037fi
12038
12039if test "x$ac_cv_func_strnvis" = "xyes"; then
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnvis" >&5
12041$as_echo_n "checking for working strnvis... " >&6; }
12042 if test "$cross_compiling" = yes; then :
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming broken" >&5
12044$as_echo "$as_me: WARNING: cross compiling: assuming broken" >&2;}
12045
12046$as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h
12047
12048
12049else
12050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12051/* end confdefs.h. */
12052
12053#include <signal.h>
12054#include <stdlib.h>
12055#include <string.h>
12056#include <vis.h>
12057static void sighandler(int sig) { _exit(1); }
12058
12059int
12060main ()
12061{
12062
12063 char dst[16];
12064
12065 signal(SIGSEGV, sighandler);
12066 if (strnvis(dst, "src", 4, 0) && strcmp(dst, "src") == 0)
12067 exit(0);
12068 exit(1)
12069
12070 ;
12071 return 0;
12072}
12073_ACEOF
12074if ac_fn_c_try_run "$LINENO"; then :
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12076$as_echo "yes" >&6; }
12077else
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12079$as_echo "no" >&6; }
12080
12081$as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h
12082
12083fi
12084rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12085 conftest.$ac_objext conftest.beam conftest.$ac_ext
12086fi
12087
12088fi
12089
12090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12091$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12092if ${ac_cv_func_getpgrp_void+:} false; then :
12093 $as_echo_n "(cached) " >&6
12094else
12095 # Use it with a single arg.
12096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097/* end confdefs.h. */
12098$ac_includes_default
12099int
12100main ()
12101{
12102getpgrp (0);
12103 ;
12104 return 0;
12105}
12106_ACEOF
12107if ac_fn_c_try_compile "$LINENO"; then :
12108 ac_cv_func_getpgrp_void=no
12109else
12110 ac_cv_func_getpgrp_void=yes
12111fi
12112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12113
12114fi
12115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12116$as_echo "$ac_cv_func_getpgrp_void" >&6; }
12117if test $ac_cv_func_getpgrp_void = yes; then
12118
12119$as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12120
12121fi
12122
12123
12124# Search for OpenSSL
12125saved_CPPFLAGS="$CPPFLAGS"
12126saved_LDFLAGS="$LDFLAGS"
12127
12128# Check whether --with-ssl-dir was given.
12129if test "${with_ssl_dir+set}" = set; then :
12130 withval=$with_ssl_dir;
12131 if test "x$openssl" = "xno" ; then
12132 as_fn_error $? "cannot use --with-ssl-dir when OpenSSL disabled" "$LINENO" 5
12133 fi
12134 if test "x$withval" != "xno" ; then
12135 case "$withval" in
12136 # Relative paths
12137 ./*|../*) withval="`pwd`/$withval"
12138 esac
12139 if test -d "$withval/lib"; then
12140 if test -n "${need_dash_r}"; then
12141 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
12142 else
12143 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
12144 fi
12145 elif test -d "$withval/lib64"; then
12146 if test -n "${need_dash_r}"; then
12147 LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}"
12148 else
12149 LDFLAGS="-L${withval}/lib64 ${LDFLAGS}"
12150 fi
12151 else
12152 if test -n "${need_dash_r}"; then
12153 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
12154 else
12155 LDFLAGS="-L${withval} ${LDFLAGS}"
12156 fi
12157 fi
12158 if test -d "$withval/include"; then
12159 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
12160 else
12161 CPPFLAGS="-I${withval} ${CPPFLAGS}"
12162 fi
12163 fi
12164
12165
12166fi
12167
12168
12169
12170# Check whether --with-openssl-header-check was given.
12171if test "${with_openssl_header_check+set}" = set; then :
12172 withval=$with_openssl_header_check;
12173 if test "x$withval" = "xno" ; then
12174 openssl_check_nonfatal=1
12175 fi
12176
12177
12178fi
12179
12180
12181openssl_engine=no
12182
12183# Check whether --with-ssl-engine was given.
12184if test "${with_ssl_engine+set}" = set; then :
12185 withval=$with_ssl_engine;
12186 if test "x$withval" != "xno" ; then
12187 if test "x$openssl" = "xno" ; then
12188 as_fn_error $? "cannot use --with-ssl-engine when OpenSSL disabled" "$LINENO" 5
12189 fi
12190 openssl_engine=yes
12191 fi
12192
12193
12194fi
12195
12196
12197if test "x$openssl" = "xyes" ; then
12198 LIBS="-lcrypto $LIBS"
12199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12200/* end confdefs.h. */
12201
12202/* Override any GCC internal prototype to avoid an error.
12203 Use char because int might match the return type of a GCC
12204 builtin and then its argument prototype would still apply. */
12205#ifdef __cplusplus
12206extern "C"
12207#endif
12208char RAND_add ();
12209int
12210main ()
12211{
12212return RAND_add ();
12213 ;
12214 return 0;
12215}
12216_ACEOF
12217if ac_fn_c_try_link "$LINENO"; then :
12218
12219$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
12220
12221else
12222
12223 if test -n "${need_dash_r}"; then
12224 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
12225 else
12226 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
12227 fi
12228 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
12229 ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
12230if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then :
12231
12232else
12233 as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5
12234fi
12235
12236
12237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12238/* end confdefs.h. */
12239
12240/* Override any GCC internal prototype to avoid an error.
12241 Use char because int might match the return type of a GCC
12242 builtin and then its argument prototype would still apply. */
12243#ifdef __cplusplus
12244extern "C"
12245#endif
12246char RAND_add ();
12247int
12248main ()
12249{
12250return RAND_add ();
12251 ;
12252 return 0;
12253}
12254_ACEOF
12255if ac_fn_c_try_link "$LINENO"; then :
12256 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
12257
12258else
12259
12260 as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5
12261
12262
12263fi
12264rm -f core conftest.err conftest.$ac_objext \
12265 conftest$ac_exeext conftest.$ac_ext
12266
12267
12268fi
12269rm -f core conftest.err conftest.$ac_objext \
12270 conftest$ac_exeext conftest.$ac_ext
12271
12272 # Determine OpenSSL header version
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5
12274$as_echo_n "checking OpenSSL header version... " >&6; }
12275 if test "$cross_compiling" = yes; then :
12276
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
12278$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
12279
12280
12281else
12282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12283/* end confdefs.h. */
12284
12285 #include <stdlib.h>
12286 #include <stdio.h>
12287 #include <string.h>
12288 #include <openssl/opensslv.h>
12289 #define DATA "conftest.sslincver"
12290
12291int
12292main ()
12293{
12294
12295 FILE *fd;
12296 int rc;
12297
12298 fd = fopen(DATA,"w");
12299 if(fd == NULL)
12300 exit(1);
12301
12302 if ((rc = fprintf(fd, "%08lx (%s)\n",
12303 (unsigned long)OPENSSL_VERSION_NUMBER,
12304 OPENSSL_VERSION_TEXT)) < 0)
12305 exit(1);
12306
12307 exit(0);
12308
12309 ;
12310 return 0;
12311}
12312_ACEOF
12313if ac_fn_c_try_run "$LINENO"; then :
12314
12315 ssl_header_ver=`cat conftest.sslincver`
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5
12317$as_echo "$ssl_header_ver" >&6; }
12318
12319else
12320
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12322$as_echo "not found" >&6; }
12323 as_fn_error $? "OpenSSL version header not found." "$LINENO" 5
12324
12325fi
12326rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12327 conftest.$ac_objext conftest.beam conftest.$ac_ext
12328fi
12329
12330
12331 # Determine OpenSSL library version
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5
12333$as_echo_n "checking OpenSSL library version... " >&6; }
12334 if test "$cross_compiling" = yes; then :
12335
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
12337$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
12338
12339
12340else
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342/* end confdefs.h. */
12343
12344 #include <stdio.h>
12345 #include <string.h>
12346 #include <openssl/opensslv.h>
12347 #include <openssl/crypto.h>
12348 #define DATA "conftest.ssllibver"
12349
12350int
12351main ()
12352{
12353
12354 FILE *fd;
12355 int rc;
12356
12357 fd = fopen(DATA,"w");
12358 if(fd == NULL)
12359 exit(1);
12360
12361 if ((rc = fprintf(fd, "%08lx (%s)\n", (unsigned long)SSLeay(),
12362 SSLeay_version(SSLEAY_VERSION))) < 0)
12363 exit(1);
12364
12365 exit(0);
12366
12367 ;
12368 return 0;
12369}
12370_ACEOF
12371if ac_fn_c_try_run "$LINENO"; then :
12372
12373 ssl_library_ver=`cat conftest.ssllibver`
12374 # Check version is supported.
12375 case "$ssl_library_ver" in
12376 0090[0-7]*|009080[0-5]*)
12377 as_fn_error $? "OpenSSL >= 0.9.8f required (have \"$ssl_library_ver\")" "$LINENO" 5
12378 ;;
12379 *) ;;
12380 esac
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5
12382$as_echo "$ssl_library_ver" >&6; }
12383
12384else
12385
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12387$as_echo "not found" >&6; }
12388 as_fn_error $? "OpenSSL library not found." "$LINENO" 5
12389
12390fi
12391rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12392 conftest.$ac_objext conftest.beam conftest.$ac_ext
12393fi
12394
12395
12396 # Sanity check OpenSSL headers
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5
12398$as_echo_n "checking whether OpenSSL's headers match the library... " >&6; }
12399 if test "$cross_compiling" = yes; then :
12400
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
12402$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
12403
12404
12405else
12406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12407/* end confdefs.h. */
12408
12409 #include <string.h>
12410 #include <openssl/opensslv.h>
12411 #include <openssl/crypto.h>
12412
12413int
12414main ()
12415{
12416
12417 exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1);
12418
12419 ;
12420 return 0;
12421}
12422_ACEOF
12423if ac_fn_c_try_run "$LINENO"; then :
12424
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12426$as_echo "yes" >&6; }
12427
12428else
12429
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12431$as_echo "no" >&6; }
12432 if test "x$openssl_check_nonfatal" = "x"; then
12433 as_fn_error $? "Your OpenSSL headers do not match your
12434 library. Check config.log for details.
12435 If you are sure your installation is consistent, you can disable the check
12436 by running \"./configure --without-openssl-header-check\".
12437 Also see contrib/findssl.sh for help identifying header/library mismatches.
12438 " "$LINENO" 5
12439 else
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your
12441 library. Check config.log for details.
12442 Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
12443$as_echo "$as_me: WARNING: Your OpenSSL headers do not match your
12444 library. Check config.log for details.
12445 Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
12446 fi
12447
12448fi
12449rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12450 conftest.$ac_objext conftest.beam conftest.$ac_ext
12451fi
12452
12453
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5
12455$as_echo_n "checking if programs using OpenSSL functions will link... " >&6; }
12456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12457/* end confdefs.h. */
12458 #include <openssl/evp.h>
12459int
12460main ()
12461{
12462 SSLeay_add_all_algorithms();
12463 ;
12464 return 0;
12465}
12466_ACEOF
12467if ac_fn_c_try_link "$LINENO"; then :
12468
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12470$as_echo "yes" >&6; }
12471
12472else
12473
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12475$as_echo "no" >&6; }
12476 saved_LIBS="$LIBS"
12477 LIBS="$LIBS -ldl"
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5
12479$as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; }
12480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12481/* end confdefs.h. */
12482 #include <openssl/evp.h>
12483int
12484main ()
12485{
12486 SSLeay_add_all_algorithms();
12487 ;
12488 return 0;
12489}
12490_ACEOF
12491if ac_fn_c_try_link "$LINENO"; then :
12492
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12494$as_echo "yes" >&6; }
12495
12496else
12497
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12499$as_echo "no" >&6; }
12500 LIBS="$saved_LIBS"
12501
12502
12503fi
12504rm -f core conftest.err conftest.$ac_objext \
12505 conftest$ac_exeext conftest.$ac_ext
12506
12507
12508fi
12509rm -f core conftest.err conftest.$ac_objext \
12510 conftest$ac_exeext conftest.$ac_ext
12511
12512 for ac_func in \
12513 BN_is_prime_ex \
12514 DSA_generate_parameters_ex \
12515 EVP_DigestInit_ex \
12516 EVP_DigestFinal_ex \
12517 EVP_MD_CTX_init \
12518 EVP_MD_CTX_cleanup \
12519 EVP_MD_CTX_copy_ex \
12520 HMAC_CTX_init \
12521 RSA_generate_key_ex \
12522 RSA_get_default_method \
12523
12524do :
12525 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12526ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12527if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12528 cat >>confdefs.h <<_ACEOF
12529#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12530_ACEOF
12531
12532fi
12533done
12534
12535
12536 if test "x$openssl_engine" = "xyes" ; then
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5
12538$as_echo_n "checking for OpenSSL ENGINE support... " >&6; }
12539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540/* end confdefs.h. */
12541
12542 #include <openssl/engine.h>
12543
12544int
12545main ()
12546{
12547
12548 ENGINE_load_builtin_engines();
12549 ENGINE_register_all_complete();
12550
12551 ;
12552 return 0;
12553}
12554_ACEOF
12555if ac_fn_c_try_compile "$LINENO"; then :
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12557$as_echo "yes" >&6; }
12558
12559$as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h
12560
12561
12562else
12563 as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5
12564
12565fi
12566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12567 fi
12568
12569 # Check for OpenSSL without EVP_aes_{192,256}_cbc
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5
12571$as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; }
12572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12573/* end confdefs.h. */
12574
12575 #include <string.h>
12576 #include <openssl/evp.h>
12577
12578int
12579main ()
12580{
12581
12582 exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);
12583
12584 ;
12585 return 0;
12586}
12587_ACEOF
12588if ac_fn_c_try_link "$LINENO"; then :
12589
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12591$as_echo "no" >&6; }
12592
12593else
12594
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12596$as_echo "yes" >&6; }
12597
12598$as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h
12599
12600
12601
12602fi
12603rm -f core conftest.err conftest.$ac_objext \
12604 conftest$ac_exeext conftest.$ac_ext
12605
12606 # Check for OpenSSL with EVP_aes_*ctr
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES CTR via EVP" >&5
12608$as_echo_n "checking whether OpenSSL has AES CTR via EVP... " >&6; }
12609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12610/* end confdefs.h. */
12611
12612 #include <string.h>
12613 #include <openssl/evp.h>
12614
12615int
12616main ()
12617{
12618
12619 exit(EVP_aes_128_ctr() == NULL ||
12620 EVP_aes_192_cbc() == NULL ||
12621 EVP_aes_256_cbc() == NULL);
12622
12623 ;
12624 return 0;
12625}
12626_ACEOF
12627if ac_fn_c_try_link "$LINENO"; then :
12628
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12630$as_echo "yes" >&6; }
12631
12632$as_echo "#define OPENSSL_HAVE_EVPCTR 1" >>confdefs.h
12633
12634
12635else
12636
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12638$as_echo "no" >&6; }
12639
12640
12641fi
12642rm -f core conftest.err conftest.$ac_objext \
12643 conftest$ac_exeext conftest.$ac_ext
12644
12645 # Check for OpenSSL with EVP_aes_*gcm
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES GCM via EVP" >&5
12647$as_echo_n "checking whether OpenSSL has AES GCM via EVP... " >&6; }
12648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12649/* end confdefs.h. */
12650
12651 #include <string.h>
12652 #include <openssl/evp.h>
12653
12654int
12655main ()
12656{
12657
12658 exit(EVP_aes_128_gcm() == NULL ||
12659 EVP_aes_256_gcm() == NULL ||
12660 EVP_CTRL_GCM_SET_IV_FIXED == 0 ||
12661 EVP_CTRL_GCM_IV_GEN == 0 ||
12662 EVP_CTRL_GCM_SET_TAG == 0 ||
12663 EVP_CTRL_GCM_GET_TAG == 0 ||
12664 EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0);
12665
12666 ;
12667 return 0;
12668}
12669_ACEOF
12670if ac_fn_c_try_link "$LINENO"; then :
12671
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12673$as_echo "yes" >&6; }
12674
12675$as_echo "#define OPENSSL_HAVE_EVPGCM 1" >>confdefs.h
12676
12677
12678else
12679
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12681$as_echo "no" >&6; }
12682 unsupported_algorithms="$unsupported_cipers \
12683 aes128-gcm@openssh.com \
12684 aes256-gcm@openssh.com"
12685
12686
12687fi
12688rm -f core conftest.err conftest.$ac_objext \
12689 conftest$ac_exeext conftest.$ac_ext
12690
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_CIPHER_CTX_ctrl" >&5
12692$as_echo_n "checking for library containing EVP_CIPHER_CTX_ctrl... " >&6; }
12693if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
12694 $as_echo_n "(cached) " >&6
12695else
12696 ac_func_search_save_LIBS=$LIBS
12697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12698/* end confdefs.h. */
12699
12700/* Override any GCC internal prototype to avoid an error.
12701 Use char because int might match the return type of a GCC
12702 builtin and then its argument prototype would still apply. */
12703#ifdef __cplusplus
12704extern "C"
12705#endif
12706char EVP_CIPHER_CTX_ctrl ();
12707int
12708main ()
12709{
12710return EVP_CIPHER_CTX_ctrl ();
12711 ;
12712 return 0;
12713}
12714_ACEOF
12715for ac_lib in '' crypto; do
12716 if test -z "$ac_lib"; then
12717 ac_res="none required"
12718 else
12719 ac_res=-l$ac_lib
12720 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12721 fi
12722 if ac_fn_c_try_link "$LINENO"; then :
12723 ac_cv_search_EVP_CIPHER_CTX_ctrl=$ac_res
12724fi
12725rm -f core conftest.err conftest.$ac_objext \
12726 conftest$ac_exeext
12727 if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
12728 break
12729fi
12730done
12731if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
12732
12733else
12734 ac_cv_search_EVP_CIPHER_CTX_ctrl=no
12735fi
12736rm conftest.$ac_ext
12737LIBS=$ac_func_search_save_LIBS
12738fi
12739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_CIPHER_CTX_ctrl" >&5
12740$as_echo "$ac_cv_search_EVP_CIPHER_CTX_ctrl" >&6; }
12741ac_res=$ac_cv_search_EVP_CIPHER_CTX_ctrl
12742if test "$ac_res" != no; then :
12743 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12744
12745$as_echo "#define HAVE_EVP_CIPHER_CTX_CTRL 1" >>confdefs.h
12746
12747fi
12748
12749
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5
12751$as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; }
12752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12753/* end confdefs.h. */
12754
12755 #include <string.h>
12756 #include <openssl/evp.h>
12757
12758int
12759main ()
12760{
12761
12762 if(EVP_DigestUpdate(NULL, NULL,0))
12763 exit(0);
12764
12765 ;
12766 return 0;
12767}
12768_ACEOF
12769if ac_fn_c_try_link "$LINENO"; then :
12770
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12772$as_echo "yes" >&6; }
12773
12774else
12775
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777$as_echo "no" >&6; }
12778
12779$as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h
12780
12781
12782
12783fi
12784rm -f core conftest.err conftest.$ac_objext \
12785 conftest$ac_exeext conftest.$ac_ext
12786
12787 # Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
12788 # because the system crypt() is more featureful.
12789 if test "x$check_for_libcrypt_before" = "x1"; then
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
12791$as_echo_n "checking for crypt in -lcrypt... " >&6; }
12792if ${ac_cv_lib_crypt_crypt+:} false; then :
12793 $as_echo_n "(cached) " >&6
12794else
12795 ac_check_lib_save_LIBS=$LIBS
12796LIBS="-lcrypt $LIBS"
12797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12798/* end confdefs.h. */
12799
12800/* Override any GCC internal prototype to avoid an error.
12801 Use char because int might match the return type of a GCC
12802 builtin and then its argument prototype would still apply. */
12803#ifdef __cplusplus
12804extern "C"
12805#endif
12806char crypt ();
12807int
12808main ()
12809{
12810return crypt ();
12811 ;
12812 return 0;
12813}
12814_ACEOF
12815if ac_fn_c_try_link "$LINENO"; then :
12816 ac_cv_lib_crypt_crypt=yes
12817else
12818 ac_cv_lib_crypt_crypt=no
12819fi
12820rm -f core conftest.err conftest.$ac_objext \
12821 conftest$ac_exeext conftest.$ac_ext
12822LIBS=$ac_check_lib_save_LIBS
12823fi
12824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
12825$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
12826if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
12827 cat >>confdefs.h <<_ACEOF
12828#define HAVE_LIBCRYPT 1
12829_ACEOF
12830
12831 LIBS="-lcrypt $LIBS"
12832
12833fi
12834
12835 fi
12836
12837 # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
12838 # version in OpenSSL.
12839 if test "x$check_for_libcrypt_later" = "x1"; then
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
12841$as_echo_n "checking for crypt in -lcrypt... " >&6; }
12842if ${ac_cv_lib_crypt_crypt+:} false; then :
12843 $as_echo_n "(cached) " >&6
12844else
12845 ac_check_lib_save_LIBS=$LIBS
12846LIBS="-lcrypt $LIBS"
12847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12848/* end confdefs.h. */
12849
12850/* Override any GCC internal prototype to avoid an error.
12851 Use char because int might match the return type of a GCC
12852 builtin and then its argument prototype would still apply. */
12853#ifdef __cplusplus
12854extern "C"
12855#endif
12856char crypt ();
12857int
12858main ()
12859{
12860return crypt ();
12861 ;
12862 return 0;
12863}
12864_ACEOF
12865if ac_fn_c_try_link "$LINENO"; then :
12866 ac_cv_lib_crypt_crypt=yes
12867else
12868 ac_cv_lib_crypt_crypt=no
12869fi
12870rm -f core conftest.err conftest.$ac_objext \
12871 conftest$ac_exeext conftest.$ac_ext
12872LIBS=$ac_check_lib_save_LIBS
12873fi
12874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
12875$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
12876if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
12877 LIBS="$LIBS -lcrypt"
12878fi
12879
12880 fi
12881 for ac_func in crypt DES_crypt
12882do :
12883 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12884ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12885if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12886 cat >>confdefs.h <<_ACEOF
12887#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12888_ACEOF
12889
12890fi
12891done
12892
12893
12894 # Search for SHA256 support in libc and/or OpenSSL
12895 for ac_func in SHA256_Update EVP_sha256
12896do :
12897 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12898ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12899if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12900 cat >>confdefs.h <<_ACEOF
12901#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12902_ACEOF
12903
12904else
12905 unsupported_algorithms="$unsupported_algorithms \
12906 hmac-sha2-256 \
12907 hmac-sha2-512 \
12908 diffie-hellman-group-exchange-sha256 \
12909 hmac-sha2-256-etm@openssh.com \
12910 hmac-sha2-512-etm@openssh.com"
12911
12912
12913fi
12914done
12915
12916 # Search for RIPE-MD support in OpenSSL
12917 for ac_func in EVP_ripemd160
12918do :
12919 ac_fn_c_check_func "$LINENO" "EVP_ripemd160" "ac_cv_func_EVP_ripemd160"
12920if test "x$ac_cv_func_EVP_ripemd160" = xyes; then :
12921 cat >>confdefs.h <<_ACEOF
12922#define HAVE_EVP_RIPEMD160 1
12923_ACEOF
12924
12925else
12926 unsupported_algorithms="$unsupported_algorithms \
12927 hmac-ripemd160 \
12928 hmac-ripemd160@openssh.com \
12929 hmac-ripemd160-etm@openssh.com"
12930
12931
12932fi
12933done
12934
12935
12936 # Check complete ECC support in OpenSSL
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_X9_62_prime256v1" >&5
12938$as_echo_n "checking whether OpenSSL has NID_X9_62_prime256v1... " >&6; }
12939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12940/* end confdefs.h. */
12941
12942 #include <openssl/ec.h>
12943 #include <openssl/ecdh.h>
12944 #include <openssl/ecdsa.h>
12945 #include <openssl/evp.h>
12946 #include <openssl/objects.h>
12947 #include <openssl/opensslv.h>
12948 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
12949 # error "OpenSSL < 0.9.8g has unreliable ECC code"
12950 #endif
12951
12952int
12953main ()
12954{
12955
12956 EC_KEY *e = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
12957 const EVP_MD *m = EVP_sha256(); /* We need this too */
12958
12959 ;
12960 return 0;
12961}
12962_ACEOF
12963if ac_fn_c_try_link "$LINENO"; then :
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12965$as_echo "yes" >&6; }
12966 enable_nistp256=1
12967else
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12969$as_echo "no" >&6; }
12970
12971fi
12972rm -f core conftest.err conftest.$ac_objext \
12973 conftest$ac_exeext conftest.$ac_ext
12974
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp384r1" >&5
12976$as_echo_n "checking whether OpenSSL has NID_secp384r1... " >&6; }
12977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12978/* end confdefs.h. */
12979
12980 #include <openssl/ec.h>
12981 #include <openssl/ecdh.h>
12982 #include <openssl/ecdsa.h>
12983 #include <openssl/evp.h>
12984 #include <openssl/objects.h>
12985 #include <openssl/opensslv.h>
12986 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
12987 # error "OpenSSL < 0.9.8g has unreliable ECC code"
12988 #endif
12989
12990int
12991main ()
12992{
12993
12994 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp384r1);
12995 const EVP_MD *m = EVP_sha384(); /* We need this too */
12996
12997 ;
12998 return 0;
12999}
13000_ACEOF
13001if ac_fn_c_try_link "$LINENO"; then :
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13003$as_echo "yes" >&6; }
13004 enable_nistp384=1
13005else
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13007$as_echo "no" >&6; }
13008
13009fi
13010rm -f core conftest.err conftest.$ac_objext \
13011 conftest$ac_exeext conftest.$ac_ext
13012
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp521r1" >&5
13014$as_echo_n "checking whether OpenSSL has NID_secp521r1... " >&6; }
13015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13016/* end confdefs.h. */
13017
13018 #include <openssl/ec.h>
13019 #include <openssl/ecdh.h>
13020 #include <openssl/ecdsa.h>
13021 #include <openssl/evp.h>
13022 #include <openssl/objects.h>
13023 #include <openssl/opensslv.h>
13024 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
13025 # error "OpenSSL < 0.9.8g has unreliable ECC code"
13026 #endif
13027
13028int
13029main ()
13030{
13031
13032 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
13033 const EVP_MD *m = EVP_sha512(); /* We need this too */
13034
13035 ;
13036 return 0;
13037}
13038_ACEOF
13039if ac_fn_c_try_link "$LINENO"; then :
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13041$as_echo "yes" >&6; }
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL's NID_secp521r1 is functional" >&5
13043$as_echo_n "checking if OpenSSL's NID_secp521r1 is functional... " >&6; }
13044 if test "$cross_compiling" = yes; then :
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: assuming yes" >&5
13046$as_echo "$as_me: WARNING: cross-compiling: assuming yes" >&2;}
13047 enable_nistp521=1
13048
13049else
13050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13051/* end confdefs.h. */
13052
13053 #include <openssl/ec.h>
13054 #include <openssl/ecdh.h>
13055 #include <openssl/ecdsa.h>
13056 #include <openssl/evp.h>
13057 #include <openssl/objects.h>
13058 #include <openssl/opensslv.h>
13059
13060int
13061main ()
13062{
13063
13064 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
13065 const EVP_MD *m = EVP_sha512(); /* We need this too */
13066 exit(e == NULL || m == NULL);
13067
13068 ;
13069 return 0;
13070}
13071_ACEOF
13072if ac_fn_c_try_run "$LINENO"; then :
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13074$as_echo "yes" >&6; }
13075 enable_nistp521=1
13076else
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13078$as_echo "no" >&6; }
13079fi
13080rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13081 conftest.$ac_objext conftest.beam conftest.$ac_ext
13082fi
13083
13084else
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13086$as_echo "no" >&6; }
13087
13088fi
13089rm -f core conftest.err conftest.$ac_objext \
13090 conftest$ac_exeext conftest.$ac_ext
13091
13092 COMMENT_OUT_ECC="#no ecc#"
13093 TEST_SSH_ECC=no
13094
13095 if test x$enable_nistp256 = x1 || test x$enable_nistp384 = x1 || \
13096 test x$enable_nistp521 = x1; then
13097
13098$as_echo "#define OPENSSL_HAS_ECC 1" >>confdefs.h
13099
13100 fi
13101 if test x$enable_nistp256 = x1; then
13102
13103$as_echo "#define OPENSSL_HAS_NISTP256 1" >>confdefs.h
13104
13105 TEST_SSH_ECC=yes
13106 COMMENT_OUT_ECC=""
13107 else
13108 unsupported_algorithms="$unsupported_algorithms \
13109 ecdsa-sha2-nistp256 \
13110 ecdh-sha2-nistp256 \
13111 ecdsa-sha2-nistp256-cert-v01@openssh.com"
13112 fi
13113 if test x$enable_nistp384 = x1; then
13114
13115$as_echo "#define OPENSSL_HAS_NISTP384 1" >>confdefs.h
13116
13117 TEST_SSH_ECC=yes
13118 COMMENT_OUT_ECC=""
13119 else
13120 unsupported_algorithms="$unsupported_algorithms \
13121 ecdsa-sha2-nistp384 \
13122 ecdh-sha2-nistp384 \
13123 ecdsa-sha2-nistp384-cert-v01@openssh.com"
13124 fi
13125 if test x$enable_nistp521 = x1; then
13126
13127$as_echo "#define OPENSSL_HAS_NISTP521 1" >>confdefs.h
13128
13129 TEST_SSH_ECC=yes
13130 COMMENT_OUT_ECC=""
13131 else
13132 unsupported_algorithms="$unsupported_algorithms \
13133 ecdh-sha2-nistp521 \
13134 ecdsa-sha2-nistp521 \
13135 ecdsa-sha2-nistp521-cert-v01@openssh.com"
13136 fi
13137
13138
13139
13140else
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
13142$as_echo_n "checking for crypt in -lcrypt... " >&6; }
13143if ${ac_cv_lib_crypt_crypt+:} false; then :
13144 $as_echo_n "(cached) " >&6
13145else
13146 ac_check_lib_save_LIBS=$LIBS
13147LIBS="-lcrypt $LIBS"
13148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13149/* end confdefs.h. */
13150
13151/* Override any GCC internal prototype to avoid an error.
13152 Use char because int might match the return type of a GCC
13153 builtin and then its argument prototype would still apply. */
13154#ifdef __cplusplus
13155extern "C"
13156#endif
13157char crypt ();
13158int
13159main ()
13160{
13161return crypt ();
13162 ;
13163 return 0;
13164}
13165_ACEOF
13166if ac_fn_c_try_link "$LINENO"; then :
13167 ac_cv_lib_crypt_crypt=yes
13168else
13169 ac_cv_lib_crypt_crypt=no
13170fi
13171rm -f core conftest.err conftest.$ac_objext \
13172 conftest$ac_exeext conftest.$ac_ext
13173LIBS=$ac_check_lib_save_LIBS
13174fi
13175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
13176$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
13177if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
13178 LIBS="$LIBS -lcrypt"
13179fi
13180
13181 for ac_func in crypt
13182do :
13183 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
13184if test "x$ac_cv_func_crypt" = xyes; then :
13185 cat >>confdefs.h <<_ACEOF
13186#define HAVE_CRYPT 1
13187_ACEOF
13188
13189fi
13190done
13191
13192fi
13193
13194for ac_func in \
13195 arc4random \
13196 arc4random_buf \
13197 arc4random_stir \
13198 arc4random_uniform \
13199
13200do :
13201 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13202ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13203if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13204 cat >>confdefs.h <<_ACEOF
13205#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13206_ACEOF
13207
13208fi
13209done
13210
13211
13212saved_LIBS="$LIBS"
13213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5
13214$as_echo_n "checking for ia_openinfo in -liaf... " >&6; }
13215if ${ac_cv_lib_iaf_ia_openinfo+:} false; then :
13216 $as_echo_n "(cached) " >&6
13217else
13218 ac_check_lib_save_LIBS=$LIBS
13219LIBS="-liaf $LIBS"
13220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13221/* end confdefs.h. */
13222
13223/* Override any GCC internal prototype to avoid an error.
13224 Use char because int might match the return type of a GCC
13225 builtin and then its argument prototype would still apply. */
13226#ifdef __cplusplus
13227extern "C"
13228#endif
13229char ia_openinfo ();
13230int
13231main ()
13232{
13233return ia_openinfo ();
13234 ;
13235 return 0;
13236}
13237_ACEOF
13238if ac_fn_c_try_link "$LINENO"; then :
13239 ac_cv_lib_iaf_ia_openinfo=yes
13240else
13241 ac_cv_lib_iaf_ia_openinfo=no
13242fi
13243rm -f core conftest.err conftest.$ac_objext \
13244 conftest$ac_exeext conftest.$ac_ext
13245LIBS=$ac_check_lib_save_LIBS
13246fi
13247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5
13248$as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; }
13249if test "x$ac_cv_lib_iaf_ia_openinfo" = xyes; then :
13250
13251 LIBS="$LIBS -liaf"
13252 for ac_func in set_id
13253do :
13254 ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id"
13255if test "x$ac_cv_func_set_id" = xyes; then :
13256 cat >>confdefs.h <<_ACEOF
13257#define HAVE_SET_ID 1
13258_ACEOF
13259 SSHDLIBS="$SSHDLIBS -liaf"
13260
13261$as_echo "#define HAVE_LIBIAF 1" >>confdefs.h
13262
13263
13264fi
13265done
13266
13267
13268fi
13269
13270LIBS="$saved_LIBS"
13271
13272### Configure cryptographic random number support
13273
13274# Check wheter OpenSSL seeds itself
13275if test "x$openssl" = "xyes" ; then
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5
13277$as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; }
13278 if test "$cross_compiling" = yes; then :
13279
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
13281$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
13282 # This is safe, since we will fatal() at runtime if
13283 # OpenSSL is not seeded correctly.
13284 OPENSSL_SEEDS_ITSELF=yes
13285
13286
13287else
13288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13289/* end confdefs.h. */
13290
13291 #include <string.h>
13292 #include <openssl/rand.h>
13293
13294int
13295main ()
13296{
13297
13298 exit(RAND_status() == 1 ? 0 : 1);
13299
13300 ;
13301 return 0;
13302}
13303_ACEOF
13304if ac_fn_c_try_run "$LINENO"; then :
13305
13306 OPENSSL_SEEDS_ITSELF=yes
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13308$as_echo "yes" >&6; }
13309
13310else
13311
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13313$as_echo "no" >&6; }
13314
13315fi
13316rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13317 conftest.$ac_objext conftest.beam conftest.$ac_ext
13318fi
13319
13320fi
13321
13322# PRNGD TCP socket
13323
13324# Check whether --with-prngd-port was given.
13325if test "${with_prngd_port+set}" = set; then :
13326 withval=$with_prngd_port;
13327 case "$withval" in
13328 no)
13329 withval=""
13330 ;;
13331 [0-9]*)
13332 ;;
13333 *)
13334 as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5
13335 ;;
13336 esac
13337 if test ! -z "$withval" ; then
13338 PRNGD_PORT="$withval"
13339
13340cat >>confdefs.h <<_ACEOF
13341#define PRNGD_PORT $PRNGD_PORT
13342_ACEOF
13343
13344 fi
13345
13346
13347fi
13348
13349
13350# PRNGD Unix domain socket
13351
13352# Check whether --with-prngd-socket was given.
13353if test "${with_prngd_socket+set}" = set; then :
13354 withval=$with_prngd_socket;
13355 case "$withval" in
13356 yes)
13357 withval="/var/run/egd-pool"
13358 ;;
13359 no)
13360 withval=""
13361 ;;
13362 /*)
13363 ;;
13364 *)
13365 as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5
13366 ;;
13367 esac
13368
13369 if test ! -z "$withval" ; then
13370 if test ! -z "$PRNGD_PORT" ; then
13371 as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5
13372 fi
13373 if test ! -r "$withval" ; then
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5
13375$as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
13376 fi
13377 PRNGD_SOCKET="$withval"
13378
13379cat >>confdefs.h <<_ACEOF
13380#define PRNGD_SOCKET "$PRNGD_SOCKET"
13381_ACEOF
13382
13383 fi
13384
13385else
13386
13387 # Check for existing socket only if we don't have a random device already
13388 if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5
13390$as_echo_n "checking for PRNGD/EGD socket... " >&6; }
13391 # Insert other locations here
13392 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
13393 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
13394 PRNGD_SOCKET="$sock"
13395 cat >>confdefs.h <<_ACEOF
13396#define PRNGD_SOCKET "$PRNGD_SOCKET"
13397_ACEOF
13398
13399 break;
13400 fi
13401 done
13402 if test ! -z "$PRNGD_SOCKET" ; then
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5
13404$as_echo "$PRNGD_SOCKET" >&6; }
13405 else
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13407$as_echo "not found" >&6; }
13408 fi
13409 fi
13410
13411
13412fi
13413
13414
13415# Which randomness source do we use?
13416if test ! -z "$PRNGD_PORT" ; then
13417 RAND_MSG="PRNGd port $PRNGD_PORT"
13418elif test ! -z "$PRNGD_SOCKET" ; then
13419 RAND_MSG="PRNGd socket $PRNGD_SOCKET"
13420elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then
13421
13422$as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h
13423
13424 RAND_MSG="OpenSSL internal ONLY"
13425elif test "x$openssl" = "xno" ; then
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSH will use /dev/urandom as a source of random numbers. It will fail if this device is not supported or accessible" >&5
13427$as_echo "$as_me: WARNING: OpenSSH will use /dev/urandom as a source of random numbers. It will fail if this device is not supported or accessible" >&2;}
13428else
13429 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
13430fi
13431
13432# Check for PAM libs
13433PAM_MSG="no"
13434
13435# Check whether --with-pam was given.
13436if test "${with_pam+set}" = set; then :
13437 withval=$with_pam;
13438 if test "x$withval" != "xno" ; then
13439 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
13440 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
13441 as_fn_error $? "PAM headers not found" "$LINENO" 5
13442 fi
13443
13444 saved_LIBS="$LIBS"
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13446$as_echo_n "checking for dlopen in -ldl... " >&6; }
13447if ${ac_cv_lib_dl_dlopen+:} false; then :
13448 $as_echo_n "(cached) " >&6
13449else
13450 ac_check_lib_save_LIBS=$LIBS
13451LIBS="-ldl $LIBS"
13452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13453/* end confdefs.h. */
13454
13455/* Override any GCC internal prototype to avoid an error.
13456 Use char because int might match the return type of a GCC
13457 builtin and then its argument prototype would still apply. */
13458#ifdef __cplusplus
13459extern "C"
13460#endif
13461char dlopen ();
13462int
13463main ()
13464{
13465return dlopen ();
13466 ;
13467 return 0;
13468}
13469_ACEOF
13470if ac_fn_c_try_link "$LINENO"; then :
13471 ac_cv_lib_dl_dlopen=yes
13472else
13473 ac_cv_lib_dl_dlopen=no
13474fi
13475rm -f core conftest.err conftest.$ac_objext \
13476 conftest$ac_exeext conftest.$ac_ext
13477LIBS=$ac_check_lib_save_LIBS
13478fi
13479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13480$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13481if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13482 cat >>confdefs.h <<_ACEOF
13483#define HAVE_LIBDL 1
13484_ACEOF
13485
13486 LIBS="-ldl $LIBS"
13487
13488fi
13489
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
13491$as_echo_n "checking for pam_set_item in -lpam... " >&6; }
13492if ${ac_cv_lib_pam_pam_set_item+:} false; then :
13493 $as_echo_n "(cached) " >&6
13494else
13495 ac_check_lib_save_LIBS=$LIBS
13496LIBS="-lpam $LIBS"
13497cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13498/* end confdefs.h. */
13499
13500/* Override any GCC internal prototype to avoid an error.
13501 Use char because int might match the return type of a GCC
13502 builtin and then its argument prototype would still apply. */
13503#ifdef __cplusplus
13504extern "C"
13505#endif
13506char pam_set_item ();
13507int
13508main ()
13509{
13510return pam_set_item ();
13511 ;
13512 return 0;
13513}
13514_ACEOF
13515if ac_fn_c_try_link "$LINENO"; then :
13516 ac_cv_lib_pam_pam_set_item=yes
13517else
13518 ac_cv_lib_pam_pam_set_item=no
13519fi
13520rm -f core conftest.err conftest.$ac_objext \
13521 conftest$ac_exeext conftest.$ac_ext
13522LIBS=$ac_check_lib_save_LIBS
13523fi
13524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
13525$as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
13526if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
13527 cat >>confdefs.h <<_ACEOF
13528#define HAVE_LIBPAM 1
13529_ACEOF
13530
13531 LIBS="-lpam $LIBS"
13532
13533else
13534 as_fn_error $? "*** libpam missing" "$LINENO" 5
13535fi
13536
13537 for ac_func in pam_getenvlist
13538do :
13539 ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
13540if test "x$ac_cv_func_pam_getenvlist" = xyes; then :
13541 cat >>confdefs.h <<_ACEOF
13542#define HAVE_PAM_GETENVLIST 1
13543_ACEOF
13544
13545fi
13546done
13547
13548 for ac_func in pam_putenv
13549do :
13550 ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv"
13551if test "x$ac_cv_func_pam_putenv" = xyes; then :
13552 cat >>confdefs.h <<_ACEOF
13553#define HAVE_PAM_PUTENV 1
13554_ACEOF
13555
13556fi
13557done
13558
13559 LIBS="$saved_LIBS"
13560
13561 PAM_MSG="yes"
13562
13563 SSHDLIBS="$SSHDLIBS -lpam"
13564
13565$as_echo "#define USE_PAM 1" >>confdefs.h
13566
13567
13568 if test $ac_cv_lib_dl_dlopen = yes; then
13569 case "$LIBS" in
13570 *-ldl*)
13571 # libdl already in LIBS
13572 ;;
13573 *)
13574 SSHDLIBS="$SSHDLIBS -ldl"
13575 ;;
13576 esac
13577 fi
13578 fi
13579
13580
13581fi
13582
13583
13584
13585# Check whether --with-pam-service was given.
13586if test "${with_pam_service+set}" = set; then :
13587 withval=$with_pam_service;
13588 if test "x$withval" != "xno" && \
13589 test "x$withval" != "xyes" ; then
13590
13591cat >>confdefs.h <<_ACEOF
13592#define SSHD_PAM_SERVICE "$withval"
13593_ACEOF
13594
13595 fi
13596
13597
13598fi
13599
13600
13601# Check for older PAM
13602if test "x$PAM_MSG" = "xyes" ; then
13603 # Check PAM strerror arguments (old PAM)
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5
13605$as_echo_n "checking whether pam_strerror takes only one argument... " >&6; }
13606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13607/* end confdefs.h. */
13608
13609#include <stdlib.h>
13610#if defined(HAVE_SECURITY_PAM_APPL_H)
13611#include <security/pam_appl.h>
13612#elif defined (HAVE_PAM_PAM_APPL_H)
13613#include <pam/pam_appl.h>
13614#endif
13615
13616int
13617main ()
13618{
13619
13620(void)pam_strerror((pam_handle_t *)NULL, -1);
13621
13622 ;
13623 return 0;
13624}
13625_ACEOF
13626if ac_fn_c_try_compile "$LINENO"; then :
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13628$as_echo "no" >&6; }
13629else
13630
13631
13632$as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h
13633
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13635$as_echo "yes" >&6; }
13636 PAM_MSG="yes (old library)"
13637
13638
13639fi
13640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13641fi
13642
13643case "$host" in
13644*-*-cygwin*)
13645 SSH_PRIVSEP_USER=CYGWIN_SSH_PRIVSEP_USER
13646 ;;
13647*)
13648 SSH_PRIVSEP_USER=sshd
13649 ;;
13650esac
13651
13652# Check whether --with-privsep-user was given.
13653if test "${with_privsep_user+set}" = set; then :
13654 withval=$with_privsep_user;
13655 if test -n "$withval" && test "x$withval" != "xno" && \
13656 test "x${withval}" != "xyes"; then
13657 SSH_PRIVSEP_USER=$withval
13658 fi
13659
13660
13661fi
13662
13663if test "x$SSH_PRIVSEP_USER" = "xCYGWIN_SSH_PRIVSEP_USER" ; then
13664
13665cat >>confdefs.h <<_ACEOF
13666#define SSH_PRIVSEP_USER CYGWIN_SSH_PRIVSEP_USER
13667_ACEOF
13668
13669else
13670
13671cat >>confdefs.h <<_ACEOF
13672#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
13673_ACEOF
13674
13675fi
13676
13677
13678if test "x$have_linux_no_new_privs" = "x1" ; then
13679ac_fn_c_check_decl "$LINENO" "SECCOMP_MODE_FILTER" "ac_cv_have_decl_SECCOMP_MODE_FILTER" "
13680 #include <sys/types.h>
13681 #include <linux/seccomp.h>
13682
13683"
13684if test "x$ac_cv_have_decl_SECCOMP_MODE_FILTER" = xyes; then :
13685 have_seccomp_filter=1
13686fi
13687
13688fi
13689if test "x$have_seccomp_filter" = "x1" ; then
13690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel for seccomp_filter support" >&5
13691$as_echo_n "checking kernel for seccomp_filter support... " >&6; }
13692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13693/* end confdefs.h. */
13694
13695 #include <errno.h>
13696 #include <elf.h>
13697 #include <linux/audit.h>
13698 #include <linux/seccomp.h>
13699 #include <stdlib.h>
13700 #include <sys/prctl.h>
13701
13702int
13703main ()
13704{
13705 int i = $seccomp_audit_arch;
13706 errno = 0;
13707 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
13708 exit(errno == EFAULT ? 0 : 1);
13709 ;
13710 return 0;
13711}
13712_ACEOF
13713if ac_fn_c_try_link "$LINENO"; then :
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13715$as_echo "yes" >&6; }
13716else
13717
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13719$as_echo "no" >&6; }
13720 # Disable seccomp filter as a target
13721 have_seccomp_filter=0
13722
13723
13724fi
13725rm -f core conftest.err conftest.$ac_objext \
13726 conftest$ac_exeext conftest.$ac_ext
13727fi
13728
13729# Decide which sandbox style to use
13730sandbox_arg=""
13731
13732# Check whether --with-sandbox was given.
13733if test "${with_sandbox+set}" = set; then :
13734 withval=$with_sandbox;
13735 if test "x$withval" = "xyes" ; then
13736 sandbox_arg=""
13737 else
13738 sandbox_arg="$withval"
13739 fi
13740
13741
13742fi
13743
13744
13745# Some platforms (seems to be the ones that have a kernel poll(2)-type
13746# function with which they implement select(2)) use an extra file descriptor
13747# when calling select(2), which means we can't use the rlimit sandbox.
13748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select works with descriptor rlimit" >&5
13749$as_echo_n "checking if select works with descriptor rlimit... " >&6; }
13750if test "$cross_compiling" = yes; then :
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
13752$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
13753
13754else
13755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13756/* end confdefs.h. */
13757
13758#include <sys/types.h>
13759#ifdef HAVE_SYS_TIME_H
13760# include <sys/time.h>
13761#endif
13762#include <sys/resource.h>
13763#ifdef HAVE_SYS_SELECT_H
13764# include <sys/select.h>
13765#endif
13766#include <errno.h>
13767#include <fcntl.h>
13768#include <stdlib.h>
13769
13770int
13771main ()
13772{
13773
13774 struct rlimit rl_zero;
13775 int fd, r;
13776 fd_set fds;
13777 struct timeval tv;
13778
13779 fd = open("/dev/null", O_RDONLY);
13780 FD_ZERO(&fds);
13781 FD_SET(fd, &fds);
13782 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
13783 setrlimit(RLIMIT_FSIZE, &rl_zero);
13784 setrlimit(RLIMIT_NOFILE, &rl_zero);
13785 tv.tv_sec = 1;
13786 tv.tv_usec = 0;
13787 r = select(fd+1, &fds, NULL, NULL, &tv);
13788 exit (r == -1 ? 1 : 0);
13789
13790 ;
13791 return 0;
13792}
13793_ACEOF
13794if ac_fn_c_try_run "$LINENO"; then :
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13796$as_echo "yes" >&6; }
13797 select_works_with_rlimit=yes
13798else
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13800$as_echo "no" >&6; }
13801 select_works_with_rlimit=no
13802fi
13803rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13804 conftest.$ac_objext conftest.beam conftest.$ac_ext
13805fi
13806
13807
13808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5
13809$as_echo_n "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... " >&6; }
13810if test "$cross_compiling" = yes; then :
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
13812$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
13813
13814else
13815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13816/* end confdefs.h. */
13817
13818#include <sys/types.h>
13819#ifdef HAVE_SYS_TIME_H
13820# include <sys/time.h>
13821#endif
13822#include <sys/resource.h>
13823#include <errno.h>
13824#include <stdlib.h>
13825
13826int
13827main ()
13828{
13829
13830 struct rlimit rl_zero;
13831 int fd, r;
13832 fd_set fds;
13833
13834 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
13835 r = setrlimit(RLIMIT_NOFILE, &rl_zero);
13836 exit (r == -1 ? 1 : 0);
13837
13838 ;
13839 return 0;
13840}
13841_ACEOF
13842if ac_fn_c_try_run "$LINENO"; then :
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13844$as_echo "yes" >&6; }
13845 rlimit_nofile_zero_works=yes
13846else
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13848$as_echo "no" >&6; }
13849 rlimit_nofile_zero_works=no
13850fi
13851rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13852 conftest.$ac_objext conftest.beam conftest.$ac_ext
13853fi
13854
13855
13856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit RLIMIT_FSIZE works" >&5
13857$as_echo_n "checking if setrlimit RLIMIT_FSIZE works... " >&6; }
13858if test "$cross_compiling" = yes; then :
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
13860$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
13861
13862else
13863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13864/* end confdefs.h. */
13865
13866#include <sys/types.h>
13867#include <sys/resource.h>
13868#include <stdlib.h>
13869
13870int
13871main ()
13872{
13873
13874 struct rlimit rl_zero;
13875
13876 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
13877 exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0);
13878
13879 ;
13880 return 0;
13881}
13882_ACEOF
13883if ac_fn_c_try_run "$LINENO"; then :
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13885$as_echo "yes" >&6; }
13886else
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13888$as_echo "no" >&6; }
13889
13890$as_echo "#define SANDBOX_SKIP_RLIMIT_FSIZE 1" >>confdefs.h
13891
13892fi
13893rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13894 conftest.$ac_objext conftest.beam conftest.$ac_ext
13895fi
13896
13897
13898if test "x$sandbox_arg" = "xpledge" || \
13899 ( test -z "$sandbox_arg" && test "x$ac_cv_func_pledge" = "xyes" ) ; then
13900 test "x$ac_cv_func_pledge" != "xyes" && \
13901 as_fn_error $? "pledge sandbox requires pledge(2) support" "$LINENO" 5
13902 SANDBOX_STYLE="pledge"
13903
13904$as_echo "#define SANDBOX_PLEDGE 1" >>confdefs.h
13905
13906elif test "x$sandbox_arg" = "xsystrace" || \
13907 ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then
13908 test "x$have_systr_policy_kill" != "x1" && \
13909 as_fn_error $? "systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" "$LINENO" 5
13910 SANDBOX_STYLE="systrace"
13911
13912$as_echo "#define SANDBOX_SYSTRACE 1" >>confdefs.h
13913
13914elif test "x$sandbox_arg" = "xdarwin" || \
13915 ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \
13916 test "x$ac_cv_header_sandbox_h" = "xyes") ; then
13917 test "x$ac_cv_func_sandbox_init" != "xyes" -o \
13918 "x$ac_cv_header_sandbox_h" != "xyes" && \
13919 as_fn_error $? "Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" "$LINENO" 5
13920 SANDBOX_STYLE="darwin"
13921
13922$as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h
13923
13924elif test "x$sandbox_arg" = "xseccomp_filter" || \
13925 ( test -z "$sandbox_arg" && \
13926 test "x$have_seccomp_filter" = "x1" && \
13927 test "x$ac_cv_header_elf_h" = "xyes" && \
13928 test "x$ac_cv_header_linux_audit_h" = "xyes" && \
13929 test "x$ac_cv_header_linux_filter_h" = "xyes" && \
13930 test "x$seccomp_audit_arch" != "x" && \
13931 test "x$have_linux_no_new_privs" = "x1" && \
13932 test "x$ac_cv_func_prctl" = "xyes" ) ; then
13933 test "x$seccomp_audit_arch" = "x" && \
13934 as_fn_error $? "seccomp_filter sandbox not supported on $host" "$LINENO" 5
13935 test "x$have_linux_no_new_privs" != "x1" && \
13936 as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5
13937 test "x$have_seccomp_filter" != "x1" && \
13938 as_fn_error $? "seccomp_filter sandbox requires seccomp headers" "$LINENO" 5
13939 test "x$ac_cv_func_prctl" != "xyes" && \
13940 as_fn_error $? "seccomp_filter sandbox requires prctl function" "$LINENO" 5
13941 SANDBOX_STYLE="seccomp_filter"
13942
13943$as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h
13944
13945elif test "x$sandbox_arg" = "xcapsicum" || \
13946 ( test -z "$sandbox_arg" && \
13947 test "x$ac_cv_header_sys_capability_h" = "xyes" && \
13948 test "x$ac_cv_func_cap_rights_limit" = "xyes") ; then
13949 test "x$ac_cv_header_sys_capability_h" != "xyes" && \
13950 as_fn_error $? "capsicum sandbox requires sys/capability.h header" "$LINENO" 5
13951 test "x$ac_cv_func_cap_rights_limit" != "xyes" && \
13952 as_fn_error $? "capsicum sandbox requires cap_rights_limit function" "$LINENO" 5
13953 SANDBOX_STYLE="capsicum"
13954
13955$as_echo "#define SANDBOX_CAPSICUM 1" >>confdefs.h
13956
13957elif test "x$sandbox_arg" = "xrlimit" || \
13958 ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \
13959 test "x$select_works_with_rlimit" = "xyes" && \
13960 test "x$rlimit_nofile_zero_works" = "xyes" ) ; then
13961 test "x$ac_cv_func_setrlimit" != "xyes" && \
13962 as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5
13963 test "x$select_works_with_rlimit" != "xyes" && \
13964 as_fn_error $? "rlimit sandbox requires select to work with rlimit" "$LINENO" 5
13965 SANDBOX_STYLE="rlimit"
13966
13967$as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h
13968
13969elif test "x$sandbox_arg" = "xsolaris" || \
13970 ( test -z "$sandbox_arg" && test "x$SOLARIS_PRIVS" = "xyes" ) ; then
13971 SANDBOX_STYLE="solaris"
13972
13973$as_echo "#define SANDBOX_SOLARIS 1" >>confdefs.h
13974
13975elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \
13976 test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then
13977 SANDBOX_STYLE="none"
13978
13979$as_echo "#define SANDBOX_NULL 1" >>confdefs.h
13980
13981else
13982 as_fn_error $? "unsupported --with-sandbox" "$LINENO" 5
13983fi
13984
13985# Cheap hack to ensure NEWS-OS libraries are arranged right.
13986if test ! -z "$SONY" ; then
13987 LIBS="$LIBS -liberty";
13988fi
13989
13990# Check for long long datatypes
13991ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13992if test "x$ac_cv_type_long_long" = xyes; then :
13993
13994cat >>confdefs.h <<_ACEOF
13995#define HAVE_LONG_LONG 1
13996_ACEOF
13997
13998
13999fi
14000ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
14001if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
14002
14003cat >>confdefs.h <<_ACEOF
14004#define HAVE_UNSIGNED_LONG_LONG 1
14005_ACEOF
14006
14007
14008fi
14009ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
14010if test "x$ac_cv_type_long_double" = xyes; then :
14011
14012cat >>confdefs.h <<_ACEOF
14013#define HAVE_LONG_DOUBLE 1
14014_ACEOF
14015
14016
14017fi
14018
14019
14020# Check datatype sizes
14021# The cast to long int works around a bug in the HP C Compiler
14022# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14023# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14024# This bug is HP SR number 8606223364.
14025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
14026$as_echo_n "checking size of short int... " >&6; }
14027if ${ac_cv_sizeof_short_int+:} false; then :
14028 $as_echo_n "(cached) " >&6
14029else
14030 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
14031
14032else
14033 if test "$ac_cv_type_short_int" = yes; then
14034 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14035$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14036as_fn_error 77 "cannot compute sizeof (short int)
14037See \`config.log' for more details" "$LINENO" 5; }
14038 else
14039 ac_cv_sizeof_short_int=0
14040 fi
14041fi
14042
14043fi
14044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
14045$as_echo "$ac_cv_sizeof_short_int" >&6; }
14046
14047
14048
14049cat >>confdefs.h <<_ACEOF
14050#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
14051_ACEOF
14052
14053
14054# The cast to long int works around a bug in the HP C Compiler
14055# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14056# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14057# This bug is HP SR number 8606223364.
14058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14059$as_echo_n "checking size of int... " >&6; }
14060if ${ac_cv_sizeof_int+:} false; then :
14061 $as_echo_n "(cached) " >&6
14062else
14063 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14064
14065else
14066 if test "$ac_cv_type_int" = yes; then
14067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14068$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14069as_fn_error 77 "cannot compute sizeof (int)
14070See \`config.log' for more details" "$LINENO" 5; }
14071 else
14072 ac_cv_sizeof_int=0
14073 fi
14074fi
14075
14076fi
14077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14078$as_echo "$ac_cv_sizeof_int" >&6; }
14079
14080
14081
14082cat >>confdefs.h <<_ACEOF
14083#define SIZEOF_INT $ac_cv_sizeof_int
14084_ACEOF
14085
14086
14087# The cast to long int works around a bug in the HP C Compiler
14088# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14089# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14090# This bug is HP SR number 8606223364.
14091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
14092$as_echo_n "checking size of long int... " >&6; }
14093if ${ac_cv_sizeof_long_int+:} false; then :
14094 $as_echo_n "(cached) " >&6
14095else
14096 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
14097
14098else
14099 if test "$ac_cv_type_long_int" = yes; then
14100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14101$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14102as_fn_error 77 "cannot compute sizeof (long int)
14103See \`config.log' for more details" "$LINENO" 5; }
14104 else
14105 ac_cv_sizeof_long_int=0
14106 fi
14107fi
14108
14109fi
14110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
14111$as_echo "$ac_cv_sizeof_long_int" >&6; }
14112
14113
14114
14115cat >>confdefs.h <<_ACEOF
14116#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
14117_ACEOF
14118
14119
14120# The cast to long int works around a bug in the HP C Compiler
14121# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14122# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14123# This bug is HP SR number 8606223364.
14124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
14125$as_echo_n "checking size of long long int... " >&6; }
14126if ${ac_cv_sizeof_long_long_int+:} false; then :
14127 $as_echo_n "(cached) " >&6
14128else
14129 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
14130
14131else
14132 if test "$ac_cv_type_long_long_int" = yes; then
14133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14135as_fn_error 77 "cannot compute sizeof (long long int)
14136See \`config.log' for more details" "$LINENO" 5; }
14137 else
14138 ac_cv_sizeof_long_long_int=0
14139 fi
14140fi
14141
14142fi
14143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
14144$as_echo "$ac_cv_sizeof_long_long_int" >&6; }
14145
14146
14147
14148cat >>confdefs.h <<_ACEOF
14149#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14150_ACEOF
14151
14152
14153
14154# Sanity check long long for some platforms (AIX)
14155if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
14156 ac_cv_sizeof_long_long_int=0
14157fi
14158
14159# compute LLONG_MIN and LLONG_MAX if we don't know them.
14160if test -z "$have_llong_max"; then
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5
14162$as_echo_n "checking for max value of long long... " >&6; }
14163 if test "$cross_compiling" = yes; then :
14164
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
14166$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
14167
14168
14169else
14170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14171/* end confdefs.h. */
14172
14173#include <stdio.h>
14174/* Why is this so damn hard? */
14175#ifdef __GNUC__
14176# undef __GNUC__
14177#endif
14178#define __USE_ISOC99
14179#include <limits.h>
14180#define DATA "conftest.llminmax"
14181#define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
14182
14183/*
14184 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
14185 * we do this the hard way.
14186 */
14187static int
14188fprint_ll(FILE *f, long long n)
14189{
14190 unsigned int i;
14191 int l[sizeof(long long) * 8];
14192
14193 if (n < 0)
14194 if (fprintf(f, "-") < 0)
14195 return -1;
14196 for (i = 0; n != 0; i++) {
14197 l[i] = my_abs(n % 10);
14198 n /= 10;
14199 }
14200 do {
14201 if (fprintf(f, "%d", l[--i]) < 0)
14202 return -1;
14203 } while (i != 0);
14204 if (fprintf(f, " ") < 0)
14205 return -1;
14206 return 0;
14207}
14208
14209int
14210main ()
14211{
14212
14213 FILE *f;
14214 long long i, llmin, llmax = 0;
14215
14216 if((f = fopen(DATA,"w")) == NULL)
14217 exit(1);
14218
14219#if defined(LLONG_MIN) && defined(LLONG_MAX)
14220 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
14221 llmin = LLONG_MIN;
14222 llmax = LLONG_MAX;
14223#else
14224 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
14225 /* This will work on one's complement and two's complement */
14226 for (i = 1; i > llmax; i <<= 1, i++)
14227 llmax = i;
14228 llmin = llmax + 1LL; /* wrap */
14229#endif
14230
14231 /* Sanity check */
14232 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
14233 || llmax - 1 > llmax || llmin == llmax || llmin == 0
14234 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
14235 fprintf(f, "unknown unknown\n");
14236 exit(2);
14237 }
14238
14239 if (fprint_ll(f, llmin) < 0)
14240 exit(3);
14241 if (fprint_ll(f, llmax) < 0)
14242 exit(4);
14243 if (fclose(f) < 0)
14244 exit(5);
14245 exit(0);
14246
14247 ;
14248 return 0;
14249}
14250_ACEOF
14251if ac_fn_c_try_run "$LINENO"; then :
14252
14253 llong_min=`$AWK '{print $1}' conftest.llminmax`
14254 llong_max=`$AWK '{print $2}' conftest.llminmax`
14255
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5
14257$as_echo "$llong_max" >&6; }
14258
14259cat >>confdefs.h <<_ACEOF
14260#define LLONG_MAX ${llong_max}LL
14261_ACEOF
14262
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5
14264$as_echo_n "checking for min value of long long... " >&6; }
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5
14266$as_echo "$llong_min" >&6; }
14267
14268cat >>confdefs.h <<_ACEOF
14269#define LLONG_MIN ${llong_min}LL
14270_ACEOF
14271
14272
14273else
14274
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14276$as_echo "not found" >&6; }
14277
14278fi
14279rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14280 conftest.$ac_objext conftest.beam conftest.$ac_ext
14281fi
14282
14283fi
14284
14285
14286# More checks for data types
14287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
14288$as_echo_n "checking for u_int type... " >&6; }
14289if ${ac_cv_have_u_int+:} false; then :
14290 $as_echo_n "(cached) " >&6
14291else
14292
14293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14294/* end confdefs.h. */
14295 #include <sys/types.h>
14296int
14297main ()
14298{
14299 u_int a; a = 1;
14300 ;
14301 return 0;
14302}
14303_ACEOF
14304if ac_fn_c_try_compile "$LINENO"; then :
14305 ac_cv_have_u_int="yes"
14306else
14307 ac_cv_have_u_int="no"
14308
14309fi
14310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14311
14312fi
14313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
14314$as_echo "$ac_cv_have_u_int" >&6; }
14315if test "x$ac_cv_have_u_int" = "xyes" ; then
14316
14317$as_echo "#define HAVE_U_INT 1" >>confdefs.h
14318
14319 have_u_int=1
14320fi
14321
14322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
14323$as_echo_n "checking for intXX_t types... " >&6; }
14324if ${ac_cv_have_intxx_t+:} false; then :
14325 $as_echo_n "(cached) " >&6
14326else
14327
14328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14329/* end confdefs.h. */
14330 #include <sys/types.h>
14331int
14332main ()
14333{
14334 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14335 ;
14336 return 0;
14337}
14338_ACEOF
14339if ac_fn_c_try_compile "$LINENO"; then :
14340 ac_cv_have_intxx_t="yes"
14341else
14342 ac_cv_have_intxx_t="no"
14343
14344fi
14345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14346
14347fi
14348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
14349$as_echo "$ac_cv_have_intxx_t" >&6; }
14350if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14351
14352$as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
14353
14354 have_intxx_t=1
14355fi
14356
14357if (test -z "$have_intxx_t" && \
14358 test "x$ac_cv_header_stdint_h" = "xyes")
14359then
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5
14361$as_echo_n "checking for intXX_t types in stdint.h... " >&6; }
14362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14363/* end confdefs.h. */
14364 #include <stdint.h>
14365int
14366main ()
14367{
14368 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14369 ;
14370 return 0;
14371}
14372_ACEOF
14373if ac_fn_c_try_compile "$LINENO"; then :
14374
14375 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
14376
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14378$as_echo "yes" >&6; }
14379
14380else
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14382$as_echo "no" >&6; }
14383
14384fi
14385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14386fi
14387
14388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
14389$as_echo_n "checking for int64_t type... " >&6; }
14390if ${ac_cv_have_int64_t+:} false; then :
14391 $as_echo_n "(cached) " >&6
14392else
14393
14394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14395/* end confdefs.h. */
14396
14397#include <sys/types.h>
14398#ifdef HAVE_STDINT_H
14399# include <stdint.h>
14400#endif
14401#include <sys/socket.h>
14402#ifdef HAVE_SYS_BITYPES_H
14403# include <sys/bitypes.h>
14404#endif
14405
14406int
14407main ()
14408{
14409
14410int64_t a; a = 1;
14411
14412 ;
14413 return 0;
14414}
14415_ACEOF
14416if ac_fn_c_try_compile "$LINENO"; then :
14417 ac_cv_have_int64_t="yes"
14418else
14419 ac_cv_have_int64_t="no"
14420
14421fi
14422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14423
14424fi
14425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
14426$as_echo "$ac_cv_have_int64_t" >&6; }
14427if test "x$ac_cv_have_int64_t" = "xyes" ; then
14428
14429$as_echo "#define HAVE_INT64_T 1" >>confdefs.h
14430
14431fi
14432
14433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
14434$as_echo_n "checking for u_intXX_t types... " >&6; }
14435if ${ac_cv_have_u_intxx_t+:} false; then :
14436 $as_echo_n "(cached) " >&6
14437else
14438
14439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14440/* end confdefs.h. */
14441 #include <sys/types.h>
14442int
14443main ()
14444{
14445 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14446 ;
14447 return 0;
14448}
14449_ACEOF
14450if ac_fn_c_try_compile "$LINENO"; then :
14451 ac_cv_have_u_intxx_t="yes"
14452else
14453 ac_cv_have_u_intxx_t="no"
14454
14455fi
14456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14457
14458fi
14459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
14460$as_echo "$ac_cv_have_u_intxx_t" >&6; }
14461if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14462
14463$as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
14464
14465 have_u_intxx_t=1
14466fi
14467
14468if test -z "$have_u_intxx_t" ; then
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5
14470$as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; }
14471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14472/* end confdefs.h. */
14473 #include <sys/socket.h>
14474int
14475main ()
14476{
14477 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14478 ;
14479 return 0;
14480}
14481_ACEOF
14482if ac_fn_c_try_compile "$LINENO"; then :
14483
14484 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
14485
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14487$as_echo "yes" >&6; }
14488
14489else
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14491$as_echo "no" >&6; }
14492
14493fi
14494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14495fi
14496
14497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
14498$as_echo_n "checking for u_int64_t types... " >&6; }
14499if ${ac_cv_have_u_int64_t+:} false; then :
14500 $as_echo_n "(cached) " >&6
14501else
14502
14503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14504/* end confdefs.h. */
14505 #include <sys/types.h>
14506int
14507main ()
14508{
14509 u_int64_t a; a = 1;
14510 ;
14511 return 0;
14512}
14513_ACEOF
14514if ac_fn_c_try_compile "$LINENO"; then :
14515 ac_cv_have_u_int64_t="yes"
14516else
14517 ac_cv_have_u_int64_t="no"
14518
14519fi
14520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14521
14522fi
14523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
14524$as_echo "$ac_cv_have_u_int64_t" >&6; }
14525if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14526
14527$as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
14528
14529 have_u_int64_t=1
14530fi
14531
14532if (test -z "$have_u_int64_t" && \
14533 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14534then
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5
14536$as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; }
14537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14538/* end confdefs.h. */
14539 #include <sys/bitypes.h>
14540int
14541main ()
14542{
14543 u_int64_t a; a = 1
14544 ;
14545 return 0;
14546}
14547_ACEOF
14548if ac_fn_c_try_compile "$LINENO"; then :
14549
14550 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
14551
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14553$as_echo "yes" >&6; }
14554
14555else
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14557$as_echo "no" >&6; }
14558
14559fi
14560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14561fi
14562
14563if test -z "$have_u_intxx_t" ; then
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
14565$as_echo_n "checking for uintXX_t types... " >&6; }
14566if ${ac_cv_have_uintxx_t+:} false; then :
14567 $as_echo_n "(cached) " >&6
14568else
14569
14570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14571/* end confdefs.h. */
14572
14573#include <sys/types.h>
14574
14575int
14576main ()
14577{
14578
14579 uint8_t a;
14580 uint16_t b;
14581 uint32_t c;
14582 a = b = c = 1;
14583
14584 ;
14585 return 0;
14586}
14587_ACEOF
14588if ac_fn_c_try_compile "$LINENO"; then :
14589 ac_cv_have_uintxx_t="yes"
14590else
14591 ac_cv_have_uintxx_t="no"
14592
14593fi
14594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14595
14596fi
14597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
14598$as_echo "$ac_cv_have_uintxx_t" >&6; }
14599 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14600
14601$as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
14602
14603 fi
14604fi
14605
14606if (test -z "$have_uintxx_t" && \
14607 test "x$ac_cv_header_stdint_h" = "xyes")
14608then
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5
14610$as_echo_n "checking for uintXX_t types in stdint.h... " >&6; }
14611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612/* end confdefs.h. */
14613 #include <stdint.h>
14614int
14615main ()
14616{
14617 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
14618 ;
14619 return 0;
14620}
14621_ACEOF
14622if ac_fn_c_try_compile "$LINENO"; then :
14623
14624 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
14625
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14627$as_echo "yes" >&6; }
14628
14629else
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14631$as_echo "no" >&6; }
14632
14633fi
14634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14635fi
14636
14637if (test -z "$have_uintxx_t" && \
14638 test "x$ac_cv_header_inttypes_h" = "xyes")
14639then
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in inttypes.h" >&5
14641$as_echo_n "checking for uintXX_t types in inttypes.h... " >&6; }
14642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14643/* end confdefs.h. */
14644 #include <inttypes.h>
14645int
14646main ()
14647{
14648 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
14649 ;
14650 return 0;
14651}
14652_ACEOF
14653if ac_fn_c_try_compile "$LINENO"; then :
14654
14655 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
14656
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14658$as_echo "yes" >&6; }
14659
14660else
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14662$as_echo "no" >&6; }
14663
14664fi
14665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14666fi
14667
14668if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14669 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14670then
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14672$as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
14673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14674/* end confdefs.h. */
14675
14676#include <sys/bitypes.h>
14677
14678int
14679main ()
14680{
14681
14682 int8_t a; int16_t b; int32_t c;
14683 u_int8_t e; u_int16_t f; u_int32_t g;
14684 a = b = c = e = f = g = 1;
14685
14686 ;
14687 return 0;
14688}
14689_ACEOF
14690if ac_fn_c_try_compile "$LINENO"; then :
14691
14692 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
14693
14694 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
14695
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14697$as_echo "yes" >&6; }
14698
14699else
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14701$as_echo "no" >&6; }
14702
14703fi
14704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14705fi
14706
14707
14708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5
14709$as_echo_n "checking for u_char... " >&6; }
14710if ${ac_cv_have_u_char+:} false; then :
14711 $as_echo_n "(cached) " >&6
14712else
14713
14714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14715/* end confdefs.h. */
14716 #include <sys/types.h>
14717int
14718main ()
14719{
14720 u_char foo; foo = 125;
14721 ;
14722 return 0;
14723}
14724_ACEOF
14725if ac_fn_c_try_compile "$LINENO"; then :
14726 ac_cv_have_u_char="yes"
14727else
14728 ac_cv_have_u_char="no"
14729
14730fi
14731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14732
14733fi
14734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5
14735$as_echo "$ac_cv_have_u_char" >&6; }
14736if test "x$ac_cv_have_u_char" = "xyes" ; then
14737
14738$as_echo "#define HAVE_U_CHAR 1" >>confdefs.h
14739
14740fi
14741
14742ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "
14743#include <sys/types.h>
14744#include <stdint.h>
14745
14746"
14747if test "x$ac_cv_type_intmax_t" = xyes; then :
14748
14749cat >>confdefs.h <<_ACEOF
14750#define HAVE_INTMAX_T 1
14751_ACEOF
14752
14753
14754fi
14755ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "
14756#include <sys/types.h>
14757#include <stdint.h>
14758
14759"
14760if test "x$ac_cv_type_uintmax_t" = xyes; then :
14761
14762cat >>confdefs.h <<_ACEOF
14763#define HAVE_UINTMAX_T 1
14764_ACEOF
14765
14766
14767fi
14768
14769
14770
14771 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
14772#include <sys/socket.h>
14773"
14774if test "x$ac_cv_type_socklen_t" = xyes; then :
14775
14776else
14777
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
14779$as_echo_n "checking for socklen_t equivalent... " >&6; }
14780 if ${curl_cv_socklen_t_equiv+:} false; then :
14781 $as_echo_n "(cached) " >&6
14782else
14783
14784 # Systems have either "struct sockaddr *" or
14785 # "void *" as the second argument to getpeername
14786 curl_cv_socklen_t_equiv=
14787 for arg2 in "struct sockaddr" void; do
14788 for t in int size_t unsigned long "unsigned long"; do
14789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14790/* end confdefs.h. */
14791
14792 #include <sys/types.h>
14793 #include <sys/socket.h>
14794
14795 int getpeername (int, $arg2 *, $t *);
14796
14797int
14798main ()
14799{
14800
14801 $t len;
14802 getpeername(0,0,&len);
14803
14804 ;
14805 return 0;
14806}
14807_ACEOF
14808if ac_fn_c_try_compile "$LINENO"; then :
14809
14810 curl_cv_socklen_t_equiv="$t"
14811 break
14812
14813fi
14814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14815 done
14816 done
14817
14818 if test "x$curl_cv_socklen_t_equiv" = x; then
14819 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
14820 fi
14821
14822fi
14823
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
14825$as_echo "$curl_cv_socklen_t_equiv" >&6; }
14826
14827cat >>confdefs.h <<_ACEOF
14828#define socklen_t $curl_cv_socklen_t_equiv
14829_ACEOF
14830
14831fi
14832
14833
14834
14835ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
14836"
14837if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
14838
14839cat >>confdefs.h <<_ACEOF
14840#define HAVE_SIG_ATOMIC_T 1
14841_ACEOF
14842
14843
14844fi
14845
14846ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "
14847#include <sys/types.h>
14848#ifdef HAVE_SYS_BITYPES_H
14849#include <sys/bitypes.h>
14850#endif
14851#ifdef HAVE_SYS_STATFS_H
14852#include <sys/statfs.h>
14853#endif
14854#ifdef HAVE_SYS_STATVFS_H
14855#include <sys/statvfs.h>
14856#endif
14857
14858"
14859if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
14860
14861cat >>confdefs.h <<_ACEOF
14862#define HAVE_FSBLKCNT_T 1
14863_ACEOF
14864
14865
14866fi
14867ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "
14868#include <sys/types.h>
14869#ifdef HAVE_SYS_BITYPES_H
14870#include <sys/bitypes.h>
14871#endif
14872#ifdef HAVE_SYS_STATFS_H
14873#include <sys/statfs.h>
14874#endif
14875#ifdef HAVE_SYS_STATVFS_H
14876#include <sys/statvfs.h>
14877#endif
14878
14879"
14880if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
14881
14882cat >>confdefs.h <<_ACEOF
14883#define HAVE_FSFILCNT_T 1
14884_ACEOF
14885
14886
14887fi
14888
14889
14890ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h>
14891#include <netinet/in.h>
14892"
14893if test "x$ac_cv_type_in_addr_t" = xyes; then :
14894
14895cat >>confdefs.h <<_ACEOF
14896#define HAVE_IN_ADDR_T 1
14897_ACEOF
14898
14899
14900fi
14901ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
14902#include <netinet/in.h>
14903"
14904if test "x$ac_cv_type_in_port_t" = xyes; then :
14905
14906cat >>confdefs.h <<_ACEOF
14907#define HAVE_IN_PORT_T 1
14908_ACEOF
14909
14910
14911fi
14912
14913
14914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
14915$as_echo_n "checking for size_t... " >&6; }
14916if ${ac_cv_have_size_t+:} false; then :
14917 $as_echo_n "(cached) " >&6
14918else
14919
14920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14921/* end confdefs.h. */
14922 #include <sys/types.h>
14923int
14924main ()
14925{
14926 size_t foo; foo = 1235;
14927 ;
14928 return 0;
14929}
14930_ACEOF
14931if ac_fn_c_try_compile "$LINENO"; then :
14932 ac_cv_have_size_t="yes"
14933else
14934 ac_cv_have_size_t="no"
14935
14936fi
14937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14938
14939fi
14940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5
14941$as_echo "$ac_cv_have_size_t" >&6; }
14942if test "x$ac_cv_have_size_t" = "xyes" ; then
14943
14944$as_echo "#define HAVE_SIZE_T 1" >>confdefs.h
14945
14946fi
14947
14948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
14949$as_echo_n "checking for ssize_t... " >&6; }
14950if ${ac_cv_have_ssize_t+:} false; then :
14951 $as_echo_n "(cached) " >&6
14952else
14953
14954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14955/* end confdefs.h. */
14956 #include <sys/types.h>
14957int
14958main ()
14959{
14960 ssize_t foo; foo = 1235;
14961 ;
14962 return 0;
14963}
14964_ACEOF
14965if ac_fn_c_try_compile "$LINENO"; then :
14966 ac_cv_have_ssize_t="yes"
14967else
14968 ac_cv_have_ssize_t="no"
14969
14970fi
14971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14972
14973fi
14974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5
14975$as_echo "$ac_cv_have_ssize_t" >&6; }
14976if test "x$ac_cv_have_ssize_t" = "xyes" ; then
14977
14978$as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
14979
14980fi
14981
14982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
14983$as_echo_n "checking for clock_t... " >&6; }
14984if ${ac_cv_have_clock_t+:} false; then :
14985 $as_echo_n "(cached) " >&6
14986else
14987
14988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14989/* end confdefs.h. */
14990 #include <time.h>
14991int
14992main ()
14993{
14994 clock_t foo; foo = 1235;
14995 ;
14996 return 0;
14997}
14998_ACEOF
14999if ac_fn_c_try_compile "$LINENO"; then :
15000 ac_cv_have_clock_t="yes"
15001else
15002 ac_cv_have_clock_t="no"
15003
15004fi
15005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15006
15007fi
15008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5
15009$as_echo "$ac_cv_have_clock_t" >&6; }
15010if test "x$ac_cv_have_clock_t" = "xyes" ; then
15011
15012$as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
15013
15014fi
15015
15016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5
15017$as_echo_n "checking for sa_family_t... " >&6; }
15018if ${ac_cv_have_sa_family_t+:} false; then :
15019 $as_echo_n "(cached) " >&6
15020else
15021
15022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15023/* end confdefs.h. */
15024
15025#include <sys/types.h>
15026#include <sys/socket.h>
15027
15028int
15029main ()
15030{
15031 sa_family_t foo; foo = 1235;
15032 ;
15033 return 0;
15034}
15035_ACEOF
15036if ac_fn_c_try_compile "$LINENO"; then :
15037 ac_cv_have_sa_family_t="yes"
15038else
15039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15040/* end confdefs.h. */
15041
15042#include <sys/types.h>
15043#include <sys/socket.h>
15044#include <netinet/in.h>
15045
15046int
15047main ()
15048{
15049 sa_family_t foo; foo = 1235;
15050 ;
15051 return 0;
15052}
15053_ACEOF
15054if ac_fn_c_try_compile "$LINENO"; then :
15055 ac_cv_have_sa_family_t="yes"
15056else
15057 ac_cv_have_sa_family_t="no"
15058
15059fi
15060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15061
15062fi
15063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15064
15065fi
15066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5
15067$as_echo "$ac_cv_have_sa_family_t" >&6; }
15068if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
15069
15070$as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h
15071
15072fi
15073
15074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5
15075$as_echo_n "checking for pid_t... " >&6; }
15076if ${ac_cv_have_pid_t+:} false; then :
15077 $as_echo_n "(cached) " >&6
15078else
15079
15080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15081/* end confdefs.h. */
15082 #include <sys/types.h>
15083int
15084main ()
15085{
15086 pid_t foo; foo = 1235;
15087 ;
15088 return 0;
15089}
15090_ACEOF
15091if ac_fn_c_try_compile "$LINENO"; then :
15092 ac_cv_have_pid_t="yes"
15093else
15094 ac_cv_have_pid_t="no"
15095
15096fi
15097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15098
15099fi
15100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5
15101$as_echo "$ac_cv_have_pid_t" >&6; }
15102if test "x$ac_cv_have_pid_t" = "xyes" ; then
15103
15104$as_echo "#define HAVE_PID_T 1" >>confdefs.h
15105
15106fi
15107
15108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5
15109$as_echo_n "checking for mode_t... " >&6; }
15110if ${ac_cv_have_mode_t+:} false; then :
15111 $as_echo_n "(cached) " >&6
15112else
15113
15114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15115/* end confdefs.h. */
15116 #include <sys/types.h>
15117int
15118main ()
15119{
15120 mode_t foo; foo = 1235;
15121 ;
15122 return 0;
15123}
15124_ACEOF
15125if ac_fn_c_try_compile "$LINENO"; then :
15126 ac_cv_have_mode_t="yes"
15127else
15128 ac_cv_have_mode_t="no"
15129
15130fi
15131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15132
15133fi
15134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5
15135$as_echo "$ac_cv_have_mode_t" >&6; }
15136if test "x$ac_cv_have_mode_t" = "xyes" ; then
15137
15138$as_echo "#define HAVE_MODE_T 1" >>confdefs.h
15139
15140fi
15141
15142
15143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
15144$as_echo_n "checking for struct sockaddr_storage... " >&6; }
15145if ${ac_cv_have_struct_sockaddr_storage+:} false; then :
15146 $as_echo_n "(cached) " >&6
15147else
15148
15149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15150/* end confdefs.h. */
15151
15152#include <sys/types.h>
15153#include <sys/socket.h>
15154
15155int
15156main ()
15157{
15158 struct sockaddr_storage s;
15159 ;
15160 return 0;
15161}
15162_ACEOF
15163if ac_fn_c_try_compile "$LINENO"; then :
15164 ac_cv_have_struct_sockaddr_storage="yes"
15165else
15166 ac_cv_have_struct_sockaddr_storage="no"
15167
15168fi
15169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15170
15171fi
15172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5
15173$as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; }
15174if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
15175
15176$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
15177
15178fi
15179
15180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
15181$as_echo_n "checking for struct sockaddr_in6... " >&6; }
15182if ${ac_cv_have_struct_sockaddr_in6+:} false; then :
15183 $as_echo_n "(cached) " >&6
15184else
15185
15186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15187/* end confdefs.h. */
15188
15189#include <sys/types.h>
15190#include <netinet/in.h>
15191
15192int
15193main ()
15194{
15195 struct sockaddr_in6 s; s.sin6_family = 0;
15196 ;
15197 return 0;
15198}
15199_ACEOF
15200if ac_fn_c_try_compile "$LINENO"; then :
15201 ac_cv_have_struct_sockaddr_in6="yes"
15202else
15203 ac_cv_have_struct_sockaddr_in6="no"
15204
15205fi
15206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15207
15208fi
15209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5
15210$as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; }
15211if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
15212
15213$as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
15214
15215fi
15216
15217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
15218$as_echo_n "checking for struct in6_addr... " >&6; }
15219if ${ac_cv_have_struct_in6_addr+:} false; then :
15220 $as_echo_n "(cached) " >&6
15221else
15222
15223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15224/* end confdefs.h. */
15225
15226#include <sys/types.h>
15227#include <netinet/in.h>
15228
15229int
15230main ()
15231{
15232 struct in6_addr s; s.s6_addr[0] = 0;
15233 ;
15234 return 0;
15235}
15236_ACEOF
15237if ac_fn_c_try_compile "$LINENO"; then :
15238 ac_cv_have_struct_in6_addr="yes"
15239else
15240 ac_cv_have_struct_in6_addr="no"
15241
15242fi
15243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15244
15245fi
15246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5
15247$as_echo "$ac_cv_have_struct_in6_addr" >&6; }
15248if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
15249
15250$as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
15251
15252
15253 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
15254#ifdef HAVE_SYS_TYPES_H
15255#include <sys/types.h>
15256#endif
15257#include <netinet/in.h>
15258
15259"
15260if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
15261
15262cat >>confdefs.h <<_ACEOF
15263#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
15264_ACEOF
15265
15266
15267fi
15268
15269fi
15270
15271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
15272$as_echo_n "checking for struct addrinfo... " >&6; }
15273if ${ac_cv_have_struct_addrinfo+:} false; then :
15274 $as_echo_n "(cached) " >&6
15275else
15276
15277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15278/* end confdefs.h. */
15279
15280#include <sys/types.h>
15281#include <sys/socket.h>
15282#include <netdb.h>
15283
15284int
15285main ()
15286{
15287 struct addrinfo s; s.ai_flags = AI_PASSIVE;
15288 ;
15289 return 0;
15290}
15291_ACEOF
15292if ac_fn_c_try_compile "$LINENO"; then :
15293 ac_cv_have_struct_addrinfo="yes"
15294else
15295 ac_cv_have_struct_addrinfo="no"
15296
15297fi
15298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15299
15300fi
15301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5
15302$as_echo "$ac_cv_have_struct_addrinfo" >&6; }
15303if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
15304
15305$as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
15306
15307fi
15308
15309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
15310$as_echo_n "checking for struct timeval... " >&6; }
15311if ${ac_cv_have_struct_timeval+:} false; then :
15312 $as_echo_n "(cached) " >&6
15313else
15314
15315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15316/* end confdefs.h. */
15317 #include <sys/time.h>
15318int
15319main ()
15320{
15321 struct timeval tv; tv.tv_sec = 1;
15322 ;
15323 return 0;
15324}
15325_ACEOF
15326if ac_fn_c_try_compile "$LINENO"; then :
15327 ac_cv_have_struct_timeval="yes"
15328else
15329 ac_cv_have_struct_timeval="no"
15330
15331fi
15332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15333
15334fi
15335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5
15336$as_echo "$ac_cv_have_struct_timeval" >&6; }
15337if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
15338
15339$as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
15340
15341 have_struct_timeval=1
15342fi
15343
15344ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
15345if test "x$ac_cv_type_struct_timespec" = xyes; then :
15346
15347cat >>confdefs.h <<_ACEOF
15348#define HAVE_STRUCT_TIMESPEC 1
15349_ACEOF
15350
15351
15352fi
15353
15354
15355# We need int64_t or else certian parts of the compile will fail.
15356if test "x$ac_cv_have_int64_t" = "xno" && \
15357 test "x$ac_cv_sizeof_long_int" != "x8" && \
15358 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
15359 echo "OpenSSH requires int64_t support. Contact your vendor or install"
15360 echo "an alternative compiler (I.E., GCC) before continuing."
15361 echo ""
15362 exit 1;
15363else
15364 if test "$cross_compiling" = yes; then :
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
15366$as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
15367
15368else
15369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15370/* end confdefs.h. */
15371
15372#include <stdio.h>
15373#include <string.h>
15374#ifdef HAVE_SNPRINTF
15375main()
15376{
15377 char buf[50];
15378 char expected_out[50];
15379 int mazsize = 50 ;
15380#if (SIZEOF_LONG_INT == 8)
15381 long int num = 0x7fffffffffffffff;
15382#else
15383 long long num = 0x7fffffffffffffffll;
15384#endif
15385 strcpy(expected_out, "9223372036854775807");
15386 snprintf(buf, mazsize, "%lld", num);
15387 if(strcmp(buf, expected_out) != 0)
15388 exit(1);
15389 exit(0);
15390}
15391#else
15392main() { exit(0); }
15393#endif
15394
15395_ACEOF
15396if ac_fn_c_try_run "$LINENO"; then :
15397 true
15398else
15399 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
15400
15401fi
15402rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15403 conftest.$ac_objext conftest.beam conftest.$ac_ext
15404fi
15405
15406fi
15407
15408
15409# look for field 'ut_host' in header 'utmp.h'
15410 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15411 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5
15413$as_echo_n "checking for ut_host field in utmp.h... " >&6; }
15414 if eval \${$ossh_varname+:} false; then :
15415 $as_echo_n "(cached) " >&6
15416else
15417
15418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15419/* end confdefs.h. */
15420#include <utmp.h>
15421
15422_ACEOF
15423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15424 $EGREP "ut_host" >/dev/null 2>&1; then :
15425 eval "$ossh_varname=yes"
15426else
15427 eval "$ossh_varname=no"
15428fi
15429rm -f conftest*
15430
15431fi
15432
15433 ossh_result=`eval 'echo $'"$ossh_varname"`
15434 if test -n "`echo $ossh_varname`"; then
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15436$as_echo "$ossh_result" >&6; }
15437 if test "x$ossh_result" = "xyes"; then
15438
15439$as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h
15440
15441 fi
15442 else
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15444$as_echo "no" >&6; }
15445 fi
15446
15447
15448# look for field 'ut_host' in header 'utmpx.h'
15449 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15450 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5
15452$as_echo_n "checking for ut_host field in utmpx.h... " >&6; }
15453 if eval \${$ossh_varname+:} false; then :
15454 $as_echo_n "(cached) " >&6
15455else
15456
15457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15458/* end confdefs.h. */
15459#include <utmpx.h>
15460
15461_ACEOF
15462if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15463 $EGREP "ut_host" >/dev/null 2>&1; then :
15464 eval "$ossh_varname=yes"
15465else
15466 eval "$ossh_varname=no"
15467fi
15468rm -f conftest*
15469
15470fi
15471
15472 ossh_result=`eval 'echo $'"$ossh_varname"`
15473 if test -n "`echo $ossh_varname`"; then
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15475$as_echo "$ossh_result" >&6; }
15476 if test "x$ossh_result" = "xyes"; then
15477
15478$as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h
15479
15480 fi
15481 else
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15483$as_echo "no" >&6; }
15484 fi
15485
15486
15487# look for field 'syslen' in header 'utmpx.h'
15488 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15489 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5
15491$as_echo_n "checking for syslen field in utmpx.h... " >&6; }
15492 if eval \${$ossh_varname+:} false; then :
15493 $as_echo_n "(cached) " >&6
15494else
15495
15496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15497/* end confdefs.h. */
15498#include <utmpx.h>
15499
15500_ACEOF
15501if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15502 $EGREP "syslen" >/dev/null 2>&1; then :
15503 eval "$ossh_varname=yes"
15504else
15505 eval "$ossh_varname=no"
15506fi
15507rm -f conftest*
15508
15509fi
15510
15511 ossh_result=`eval 'echo $'"$ossh_varname"`
15512 if test -n "`echo $ossh_varname`"; then
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15514$as_echo "$ossh_result" >&6; }
15515 if test "x$ossh_result" = "xyes"; then
15516
15517$as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h
15518
15519 fi
15520 else
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15522$as_echo "no" >&6; }
15523 fi
15524
15525
15526# look for field 'ut_pid' in header 'utmp.h'
15527 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15528 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5
15530$as_echo_n "checking for ut_pid field in utmp.h... " >&6; }
15531 if eval \${$ossh_varname+:} false; then :
15532 $as_echo_n "(cached) " >&6
15533else
15534
15535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15536/* end confdefs.h. */
15537#include <utmp.h>
15538
15539_ACEOF
15540if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15541 $EGREP "ut_pid" >/dev/null 2>&1; then :
15542 eval "$ossh_varname=yes"
15543else
15544 eval "$ossh_varname=no"
15545fi
15546rm -f conftest*
15547
15548fi
15549
15550 ossh_result=`eval 'echo $'"$ossh_varname"`
15551 if test -n "`echo $ossh_varname`"; then
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15553$as_echo "$ossh_result" >&6; }
15554 if test "x$ossh_result" = "xyes"; then
15555
15556$as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h
15557
15558 fi
15559 else
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15561$as_echo "no" >&6; }
15562 fi
15563
15564
15565# look for field 'ut_type' in header 'utmp.h'
15566 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15567 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5
15569$as_echo_n "checking for ut_type field in utmp.h... " >&6; }
15570 if eval \${$ossh_varname+:} false; then :
15571 $as_echo_n "(cached) " >&6
15572else
15573
15574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15575/* end confdefs.h. */
15576#include <utmp.h>
15577
15578_ACEOF
15579if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15580 $EGREP "ut_type" >/dev/null 2>&1; then :
15581 eval "$ossh_varname=yes"
15582else
15583 eval "$ossh_varname=no"
15584fi
15585rm -f conftest*
15586
15587fi
15588
15589 ossh_result=`eval 'echo $'"$ossh_varname"`
15590 if test -n "`echo $ossh_varname`"; then
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15592$as_echo "$ossh_result" >&6; }
15593 if test "x$ossh_result" = "xyes"; then
15594
15595$as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h
15596
15597 fi
15598 else
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15600$as_echo "no" >&6; }
15601 fi
15602
15603
15604# look for field 'ut_type' in header 'utmpx.h'
15605 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15606 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5
15608$as_echo_n "checking for ut_type field in utmpx.h... " >&6; }
15609 if eval \${$ossh_varname+:} false; then :
15610 $as_echo_n "(cached) " >&6
15611else
15612
15613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15614/* end confdefs.h. */
15615#include <utmpx.h>
15616
15617_ACEOF
15618if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15619 $EGREP "ut_type" >/dev/null 2>&1; then :
15620 eval "$ossh_varname=yes"
15621else
15622 eval "$ossh_varname=no"
15623fi
15624rm -f conftest*
15625
15626fi
15627
15628 ossh_result=`eval 'echo $'"$ossh_varname"`
15629 if test -n "`echo $ossh_varname`"; then
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15631$as_echo "$ossh_result" >&6; }
15632 if test "x$ossh_result" = "xyes"; then
15633
15634$as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h
15635
15636 fi
15637 else
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15639$as_echo "no" >&6; }
15640 fi
15641
15642
15643# look for field 'ut_tv' in header 'utmp.h'
15644 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15645 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5
15647$as_echo_n "checking for ut_tv field in utmp.h... " >&6; }
15648 if eval \${$ossh_varname+:} false; then :
15649 $as_echo_n "(cached) " >&6
15650else
15651
15652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15653/* end confdefs.h. */
15654#include <utmp.h>
15655
15656_ACEOF
15657if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15658 $EGREP "ut_tv" >/dev/null 2>&1; then :
15659 eval "$ossh_varname=yes"
15660else
15661 eval "$ossh_varname=no"
15662fi
15663rm -f conftest*
15664
15665fi
15666
15667 ossh_result=`eval 'echo $'"$ossh_varname"`
15668 if test -n "`echo $ossh_varname`"; then
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15670$as_echo "$ossh_result" >&6; }
15671 if test "x$ossh_result" = "xyes"; then
15672
15673$as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h
15674
15675 fi
15676 else
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15678$as_echo "no" >&6; }
15679 fi
15680
15681
15682# look for field 'ut_id' in header 'utmp.h'
15683 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15684 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5
15686$as_echo_n "checking for ut_id field in utmp.h... " >&6; }
15687 if eval \${$ossh_varname+:} false; then :
15688 $as_echo_n "(cached) " >&6
15689else
15690
15691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15692/* end confdefs.h. */
15693#include <utmp.h>
15694
15695_ACEOF
15696if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15697 $EGREP "ut_id" >/dev/null 2>&1; then :
15698 eval "$ossh_varname=yes"
15699else
15700 eval "$ossh_varname=no"
15701fi
15702rm -f conftest*
15703
15704fi
15705
15706 ossh_result=`eval 'echo $'"$ossh_varname"`
15707 if test -n "`echo $ossh_varname`"; then
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15709$as_echo "$ossh_result" >&6; }
15710 if test "x$ossh_result" = "xyes"; then
15711
15712$as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h
15713
15714 fi
15715 else
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15717$as_echo "no" >&6; }
15718 fi
15719
15720
15721# look for field 'ut_id' in header 'utmpx.h'
15722 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15723 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5
15725$as_echo_n "checking for ut_id field in utmpx.h... " >&6; }
15726 if eval \${$ossh_varname+:} false; then :
15727 $as_echo_n "(cached) " >&6
15728else
15729
15730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15731/* end confdefs.h. */
15732#include <utmpx.h>
15733
15734_ACEOF
15735if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15736 $EGREP "ut_id" >/dev/null 2>&1; then :
15737 eval "$ossh_varname=yes"
15738else
15739 eval "$ossh_varname=no"
15740fi
15741rm -f conftest*
15742
15743fi
15744
15745 ossh_result=`eval 'echo $'"$ossh_varname"`
15746 if test -n "`echo $ossh_varname`"; then
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15748$as_echo "$ossh_result" >&6; }
15749 if test "x$ossh_result" = "xyes"; then
15750
15751$as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h
15752
15753 fi
15754 else
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15756$as_echo "no" >&6; }
15757 fi
15758
15759
15760# look for field 'ut_addr' in header 'utmp.h'
15761 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15762 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5
15764$as_echo_n "checking for ut_addr field in utmp.h... " >&6; }
15765 if eval \${$ossh_varname+:} false; then :
15766 $as_echo_n "(cached) " >&6
15767else
15768
15769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15770/* end confdefs.h. */
15771#include <utmp.h>
15772
15773_ACEOF
15774if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15775 $EGREP "ut_addr" >/dev/null 2>&1; then :
15776 eval "$ossh_varname=yes"
15777else
15778 eval "$ossh_varname=no"
15779fi
15780rm -f conftest*
15781
15782fi
15783
15784 ossh_result=`eval 'echo $'"$ossh_varname"`
15785 if test -n "`echo $ossh_varname`"; then
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15787$as_echo "$ossh_result" >&6; }
15788 if test "x$ossh_result" = "xyes"; then
15789
15790$as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h
15791
15792 fi
15793 else
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15795$as_echo "no" >&6; }
15796 fi
15797
15798
15799# look for field 'ut_addr' in header 'utmpx.h'
15800 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15801 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5
15803$as_echo_n "checking for ut_addr field in utmpx.h... " >&6; }
15804 if eval \${$ossh_varname+:} false; then :
15805 $as_echo_n "(cached) " >&6
15806else
15807
15808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15809/* end confdefs.h. */
15810#include <utmpx.h>
15811
15812_ACEOF
15813if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15814 $EGREP "ut_addr" >/dev/null 2>&1; then :
15815 eval "$ossh_varname=yes"
15816else
15817 eval "$ossh_varname=no"
15818fi
15819rm -f conftest*
15820
15821fi
15822
15823 ossh_result=`eval 'echo $'"$ossh_varname"`
15824 if test -n "`echo $ossh_varname`"; then
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15826$as_echo "$ossh_result" >&6; }
15827 if test "x$ossh_result" = "xyes"; then
15828
15829$as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h
15830
15831 fi
15832 else
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15834$as_echo "no" >&6; }
15835 fi
15836
15837
15838# look for field 'ut_addr_v6' in header 'utmp.h'
15839 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15840 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5
15842$as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; }
15843 if eval \${$ossh_varname+:} false; then :
15844 $as_echo_n "(cached) " >&6
15845else
15846
15847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15848/* end confdefs.h. */
15849#include <utmp.h>
15850
15851_ACEOF
15852if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15853 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
15854 eval "$ossh_varname=yes"
15855else
15856 eval "$ossh_varname=no"
15857fi
15858rm -f conftest*
15859
15860fi
15861
15862 ossh_result=`eval 'echo $'"$ossh_varname"`
15863 if test -n "`echo $ossh_varname`"; then
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15865$as_echo "$ossh_result" >&6; }
15866 if test "x$ossh_result" = "xyes"; then
15867
15868$as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h
15869
15870 fi
15871 else
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15873$as_echo "no" >&6; }
15874 fi
15875
15876
15877# look for field 'ut_addr_v6' in header 'utmpx.h'
15878 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15879 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5
15881$as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; }
15882 if eval \${$ossh_varname+:} false; then :
15883 $as_echo_n "(cached) " >&6
15884else
15885
15886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15887/* end confdefs.h. */
15888#include <utmpx.h>
15889
15890_ACEOF
15891if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15892 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
15893 eval "$ossh_varname=yes"
15894else
15895 eval "$ossh_varname=no"
15896fi
15897rm -f conftest*
15898
15899fi
15900
15901 ossh_result=`eval 'echo $'"$ossh_varname"`
15902 if test -n "`echo $ossh_varname`"; then
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15904$as_echo "$ossh_result" >&6; }
15905 if test "x$ossh_result" = "xyes"; then
15906
15907$as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h
15908
15909 fi
15910 else
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15912$as_echo "no" >&6; }
15913 fi
15914
15915
15916# look for field 'ut_exit' in header 'utmp.h'
15917 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15918 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5
15920$as_echo_n "checking for ut_exit field in utmp.h... " >&6; }
15921 if eval \${$ossh_varname+:} false; then :
15922 $as_echo_n "(cached) " >&6
15923else
15924
15925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15926/* end confdefs.h. */
15927#include <utmp.h>
15928
15929_ACEOF
15930if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15931 $EGREP "ut_exit" >/dev/null 2>&1; then :
15932 eval "$ossh_varname=yes"
15933else
15934 eval "$ossh_varname=no"
15935fi
15936rm -f conftest*
15937
15938fi
15939
15940 ossh_result=`eval 'echo $'"$ossh_varname"`
15941 if test -n "`echo $ossh_varname`"; then
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15943$as_echo "$ossh_result" >&6; }
15944 if test "x$ossh_result" = "xyes"; then
15945
15946$as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h
15947
15948 fi
15949 else
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15951$as_echo "no" >&6; }
15952 fi
15953
15954
15955# look for field 'ut_time' in header 'utmp.h'
15956 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15957 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5
15959$as_echo_n "checking for ut_time field in utmp.h... " >&6; }
15960 if eval \${$ossh_varname+:} false; then :
15961 $as_echo_n "(cached) " >&6
15962else
15963
15964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15965/* end confdefs.h. */
15966#include <utmp.h>
15967
15968_ACEOF
15969if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15970 $EGREP "ut_time" >/dev/null 2>&1; then :
15971 eval "$ossh_varname=yes"
15972else
15973 eval "$ossh_varname=no"
15974fi
15975rm -f conftest*
15976
15977fi
15978
15979 ossh_result=`eval 'echo $'"$ossh_varname"`
15980 if test -n "`echo $ossh_varname`"; then
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15982$as_echo "$ossh_result" >&6; }
15983 if test "x$ossh_result" = "xyes"; then
15984
15985$as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h
15986
15987 fi
15988 else
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15990$as_echo "no" >&6; }
15991 fi
15992
15993
15994# look for field 'ut_time' in header 'utmpx.h'
15995 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15996 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5
15998$as_echo_n "checking for ut_time field in utmpx.h... " >&6; }
15999 if eval \${$ossh_varname+:} false; then :
16000 $as_echo_n "(cached) " >&6
16001else
16002
16003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16004/* end confdefs.h. */
16005#include <utmpx.h>
16006
16007_ACEOF
16008if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16009 $EGREP "ut_time" >/dev/null 2>&1; then :
16010 eval "$ossh_varname=yes"
16011else
16012 eval "$ossh_varname=no"
16013fi
16014rm -f conftest*
16015
16016fi
16017
16018 ossh_result=`eval 'echo $'"$ossh_varname"`
16019 if test -n "`echo $ossh_varname`"; then
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16021$as_echo "$ossh_result" >&6; }
16022 if test "x$ossh_result" = "xyes"; then
16023
16024$as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h
16025
16026 fi
16027 else
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16029$as_echo "no" >&6; }
16030 fi
16031
16032
16033# look for field 'ut_tv' in header 'utmpx.h'
16034 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
16035 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5
16037$as_echo_n "checking for ut_tv field in utmpx.h... " >&6; }
16038 if eval \${$ossh_varname+:} false; then :
16039 $as_echo_n "(cached) " >&6
16040else
16041
16042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16043/* end confdefs.h. */
16044#include <utmpx.h>
16045
16046_ACEOF
16047if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16048 $EGREP "ut_tv" >/dev/null 2>&1; then :
16049 eval "$ossh_varname=yes"
16050else
16051 eval "$ossh_varname=no"
16052fi
16053rm -f conftest*
16054
16055fi
16056
16057 ossh_result=`eval 'echo $'"$ossh_varname"`
16058 if test -n "`echo $ossh_varname`"; then
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16060$as_echo "$ossh_result" >&6; }
16061 if test "x$ossh_result" = "xyes"; then
16062
16063$as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h
16064
16065 fi
16066 else
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16068$as_echo "no" >&6; }
16069 fi
16070
16071
16072ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16073if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
16074
16075cat >>confdefs.h <<_ACEOF
16076#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16077_ACEOF
16078
16079
16080fi
16081
16082ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "
16083#include <sys/types.h>
16084#include <pwd.h>
16085
16086"
16087if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then :
16088
16089cat >>confdefs.h <<_ACEOF
16090#define HAVE_STRUCT_PASSWD_PW_GECOS 1
16091_ACEOF
16092
16093
16094fi
16095ac_fn_c_check_member "$LINENO" "struct passwd" "pw_class" "ac_cv_member_struct_passwd_pw_class" "
16096#include <sys/types.h>
16097#include <pwd.h>
16098
16099"
16100if test "x$ac_cv_member_struct_passwd_pw_class" = xyes; then :
16101
16102cat >>confdefs.h <<_ACEOF
16103#define HAVE_STRUCT_PASSWD_PW_CLASS 1
16104_ACEOF
16105
16106
16107fi
16108ac_fn_c_check_member "$LINENO" "struct passwd" "pw_change" "ac_cv_member_struct_passwd_pw_change" "
16109#include <sys/types.h>
16110#include <pwd.h>
16111
16112"
16113if test "x$ac_cv_member_struct_passwd_pw_change" = xyes; then :
16114
16115cat >>confdefs.h <<_ACEOF
16116#define HAVE_STRUCT_PASSWD_PW_CHANGE 1
16117_ACEOF
16118
16119
16120fi
16121ac_fn_c_check_member "$LINENO" "struct passwd" "pw_expire" "ac_cv_member_struct_passwd_pw_expire" "
16122#include <sys/types.h>
16123#include <pwd.h>
16124
16125"
16126if test "x$ac_cv_member_struct_passwd_pw_expire" = xyes; then :
16127
16128cat >>confdefs.h <<_ACEOF
16129#define HAVE_STRUCT_PASSWD_PW_EXPIRE 1
16130_ACEOF
16131
16132
16133fi
16134
16135
16136ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" "
16137#include <stdio.h>
16138#if HAVE_SYS_TYPES_H
16139# include <sys/types.h>
16140#endif
16141#include <netinet/in.h>
16142#include <arpa/nameser.h>
16143#include <resolv.h>
16144
16145"
16146if test "x$ac_cv_member_struct___res_state_retrans" = xyes; then :
16147
16148else
16149
16150$as_echo "#define __res_state state" >>confdefs.h
16151
16152fi
16153
16154
16155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5
16156$as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; }
16157if ${ac_cv_have_ss_family_in_struct_ss+:} false; then :
16158 $as_echo_n "(cached) " >&6
16159else
16160
16161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16162/* end confdefs.h. */
16163
16164#include <sys/types.h>
16165#include <sys/socket.h>
16166
16167int
16168main ()
16169{
16170 struct sockaddr_storage s; s.ss_family = 1;
16171 ;
16172 return 0;
16173}
16174_ACEOF
16175if ac_fn_c_try_compile "$LINENO"; then :
16176 ac_cv_have_ss_family_in_struct_ss="yes"
16177else
16178 ac_cv_have_ss_family_in_struct_ss="no"
16179fi
16180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16181
16182fi
16183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5
16184$as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; }
16185if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
16186
16187$as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h
16188
16189fi
16190
16191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5
16192$as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; }
16193if ${ac_cv_have___ss_family_in_struct_ss+:} false; then :
16194 $as_echo_n "(cached) " >&6
16195else
16196
16197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16198/* end confdefs.h. */
16199
16200#include <sys/types.h>
16201#include <sys/socket.h>
16202
16203int
16204main ()
16205{
16206 struct sockaddr_storage s; s.__ss_family = 1;
16207 ;
16208 return 0;
16209}
16210_ACEOF
16211if ac_fn_c_try_compile "$LINENO"; then :
16212 ac_cv_have___ss_family_in_struct_ss="yes"
16213else
16214 ac_cv_have___ss_family_in_struct_ss="no"
16215
16216fi
16217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16218
16219fi
16220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5
16221$as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; }
16222if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
16223
16224$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
16225
16226fi
16227
16228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5
16229$as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; }
16230if ${ac_cv_have_accrights_in_msghdr+:} false; then :
16231 $as_echo_n "(cached) " >&6
16232else
16233
16234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16235/* end confdefs.h. */
16236
16237#include <sys/types.h>
16238#include <sys/socket.h>
16239#include <sys/uio.h>
16240
16241int
16242main ()
16243{
16244
16245#ifdef msg_accrights
16246#error "msg_accrights is a macro"
16247exit(1);
16248#endif
16249struct msghdr m;
16250m.msg_accrights = 0;
16251exit(0);
16252
16253 ;
16254 return 0;
16255}
16256_ACEOF
16257if ac_fn_c_try_compile "$LINENO"; then :
16258 ac_cv_have_accrights_in_msghdr="yes"
16259else
16260 ac_cv_have_accrights_in_msghdr="no"
16261
16262fi
16263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16264
16265fi
16266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5
16267$as_echo "$ac_cv_have_accrights_in_msghdr" >&6; }
16268if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
16269
16270$as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h
16271
16272fi
16273
16274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5
16275$as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; }
16276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16277/* end confdefs.h. */
16278
16279#include <sys/param.h>
16280#include <sys/stat.h>
16281#ifdef HAVE_SYS_TIME_H
16282# include <sys/time.h>
16283#endif
16284#ifdef HAVE_SYS_MOUNT_H
16285#include <sys/mount.h>
16286#endif
16287#ifdef HAVE_SYS_STATVFS_H
16288#include <sys/statvfs.h>
16289#endif
16290
16291int
16292main ()
16293{
16294 struct statvfs s; s.f_fsid = 0;
16295 ;
16296 return 0;
16297}
16298_ACEOF
16299if ac_fn_c_try_compile "$LINENO"; then :
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16301$as_echo "yes" >&6; }
16302else
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16304$as_echo "no" >&6; }
16305
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5
16307$as_echo_n "checking if fsid_t has member val... " >&6; }
16308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16309/* end confdefs.h. */
16310
16311#include <sys/types.h>
16312#include <sys/statvfs.h>
16313
16314int
16315main ()
16316{
16317 fsid_t t; t.val[0] = 0;
16318 ;
16319 return 0;
16320}
16321_ACEOF
16322if ac_fn_c_try_compile "$LINENO"; then :
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16324$as_echo "yes" >&6; }
16325
16326$as_echo "#define FSID_HAS_VAL 1" >>confdefs.h
16327
16328else
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16330$as_echo "no" >&6; }
16331fi
16332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16333
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5
16335$as_echo_n "checking if f_fsid has member __val... " >&6; }
16336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16337/* end confdefs.h. */
16338
16339#include <sys/types.h>
16340#include <sys/statvfs.h>
16341
16342int
16343main ()
16344{
16345 fsid_t t; t.__val[0] = 0;
16346 ;
16347 return 0;
16348}
16349_ACEOF
16350if ac_fn_c_try_compile "$LINENO"; then :
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16352$as_echo "yes" >&6; }
16353
16354$as_echo "#define FSID_HAS___VAL 1" >>confdefs.h
16355
16356else
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16358$as_echo "no" >&6; }
16359fi
16360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16361
16362fi
16363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16364
16365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5
16366$as_echo_n "checking for msg_control field in struct msghdr... " >&6; }
16367if ${ac_cv_have_control_in_msghdr+:} false; then :
16368 $as_echo_n "(cached) " >&6
16369else
16370
16371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16372/* end confdefs.h. */
16373
16374#include <sys/types.h>
16375#include <sys/socket.h>
16376#include <sys/uio.h>
16377
16378int
16379main ()
16380{
16381
16382#ifdef msg_control
16383#error "msg_control is a macro"
16384exit(1);
16385#endif
16386struct msghdr m;
16387m.msg_control = 0;
16388exit(0);
16389
16390 ;
16391 return 0;
16392}
16393_ACEOF
16394if ac_fn_c_try_compile "$LINENO"; then :
16395 ac_cv_have_control_in_msghdr="yes"
16396else
16397 ac_cv_have_control_in_msghdr="no"
16398
16399fi
16400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16401
16402fi
16403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5
16404$as_echo "$ac_cv_have_control_in_msghdr" >&6; }
16405if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
16406
16407$as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h
16408
16409fi
16410
16411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5
16412$as_echo_n "checking if libc defines __progname... " >&6; }
16413if ${ac_cv_libc_defines___progname+:} false; then :
16414 $as_echo_n "(cached) " >&6
16415else
16416
16417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16418/* end confdefs.h. */
16419
16420int
16421main ()
16422{
16423 extern char *__progname; printf("%s", __progname);
16424 ;
16425 return 0;
16426}
16427_ACEOF
16428if ac_fn_c_try_link "$LINENO"; then :
16429 ac_cv_libc_defines___progname="yes"
16430else
16431 ac_cv_libc_defines___progname="no"
16432
16433fi
16434rm -f core conftest.err conftest.$ac_objext \
16435 conftest$ac_exeext conftest.$ac_ext
16436
16437fi
16438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5
16439$as_echo "$ac_cv_libc_defines___progname" >&6; }
16440if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
16441
16442$as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
16443
16444fi
16445
16446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5
16447$as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; }
16448if ${ac_cv_cc_implements___FUNCTION__+:} false; then :
16449 $as_echo_n "(cached) " >&6
16450else
16451
16452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16453/* end confdefs.h. */
16454 #include <stdio.h>
16455int
16456main ()
16457{
16458 printf("%s", __FUNCTION__);
16459 ;
16460 return 0;
16461}
16462_ACEOF
16463if ac_fn_c_try_link "$LINENO"; then :
16464 ac_cv_cc_implements___FUNCTION__="yes"
16465else
16466 ac_cv_cc_implements___FUNCTION__="no"
16467
16468fi
16469rm -f core conftest.err conftest.$ac_objext \
16470 conftest$ac_exeext conftest.$ac_ext
16471
16472fi
16473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5
16474$as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; }
16475if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
16476
16477$as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h
16478
16479fi
16480
16481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5
16482$as_echo_n "checking whether $CC implements __func__... " >&6; }
16483if ${ac_cv_cc_implements___func__+:} false; then :
16484 $as_echo_n "(cached) " >&6
16485else
16486
16487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16488/* end confdefs.h. */
16489 #include <stdio.h>
16490int
16491main ()
16492{
16493 printf("%s", __func__);
16494 ;
16495 return 0;
16496}
16497_ACEOF
16498if ac_fn_c_try_link "$LINENO"; then :
16499 ac_cv_cc_implements___func__="yes"
16500else
16501 ac_cv_cc_implements___func__="no"
16502
16503fi
16504rm -f core conftest.err conftest.$ac_objext \
16505 conftest$ac_exeext conftest.$ac_ext
16506
16507fi
16508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5
16509$as_echo "$ac_cv_cc_implements___func__" >&6; }
16510if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
16511
16512$as_echo "#define HAVE___func__ 1" >>confdefs.h
16513
16514fi
16515
16516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5
16517$as_echo_n "checking whether va_copy exists... " >&6; }
16518if ${ac_cv_have_va_copy+:} false; then :
16519 $as_echo_n "(cached) " >&6
16520else
16521
16522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16523/* end confdefs.h. */
16524
16525#include <stdarg.h>
16526va_list x,y;
16527
16528int
16529main ()
16530{
16531 va_copy(x,y);
16532 ;
16533 return 0;
16534}
16535_ACEOF
16536if ac_fn_c_try_link "$LINENO"; then :
16537 ac_cv_have_va_copy="yes"
16538else
16539 ac_cv_have_va_copy="no"
16540
16541fi
16542rm -f core conftest.err conftest.$ac_objext \
16543 conftest$ac_exeext conftest.$ac_ext
16544
16545fi
16546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5
16547$as_echo "$ac_cv_have_va_copy" >&6; }
16548if test "x$ac_cv_have_va_copy" = "xyes" ; then
16549
16550$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
16551
16552fi
16553
16554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5
16555$as_echo_n "checking whether __va_copy exists... " >&6; }
16556if ${ac_cv_have___va_copy+:} false; then :
16557 $as_echo_n "(cached) " >&6
16558else
16559
16560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16561/* end confdefs.h. */
16562
16563#include <stdarg.h>
16564va_list x,y;
16565
16566int
16567main ()
16568{
16569 __va_copy(x,y);
16570 ;
16571 return 0;
16572}
16573_ACEOF
16574if ac_fn_c_try_link "$LINENO"; then :
16575 ac_cv_have___va_copy="yes"
16576else
16577 ac_cv_have___va_copy="no"
16578
16579fi
16580rm -f core conftest.err conftest.$ac_objext \
16581 conftest$ac_exeext conftest.$ac_ext
16582
16583fi
16584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5
16585$as_echo "$ac_cv_have___va_copy" >&6; }
16586if test "x$ac_cv_have___va_copy" = "xyes" ; then
16587
16588$as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
16589
16590fi
16591
16592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5
16593$as_echo_n "checking whether getopt has optreset support... " >&6; }
16594if ${ac_cv_have_getopt_optreset+:} false; then :
16595 $as_echo_n "(cached) " >&6
16596else
16597
16598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16599/* end confdefs.h. */
16600 #include <getopt.h>
16601int
16602main ()
16603{
16604 extern int optreset; optreset = 0;
16605 ;
16606 return 0;
16607}
16608_ACEOF
16609if ac_fn_c_try_link "$LINENO"; then :
16610 ac_cv_have_getopt_optreset="yes"
16611else
16612 ac_cv_have_getopt_optreset="no"
16613
16614fi
16615rm -f core conftest.err conftest.$ac_objext \
16616 conftest$ac_exeext conftest.$ac_ext
16617
16618fi
16619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5
16620$as_echo "$ac_cv_have_getopt_optreset" >&6; }
16621if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
16622
16623$as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h
16624
16625fi
16626
16627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5
16628$as_echo_n "checking if libc defines sys_errlist... " >&6; }
16629if ${ac_cv_libc_defines_sys_errlist+:} false; then :
16630 $as_echo_n "(cached) " >&6
16631else
16632
16633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16634/* end confdefs.h. */
16635
16636int
16637main ()
16638{
16639 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
16640 ;
16641 return 0;
16642}
16643_ACEOF
16644if ac_fn_c_try_link "$LINENO"; then :
16645 ac_cv_libc_defines_sys_errlist="yes"
16646else
16647 ac_cv_libc_defines_sys_errlist="no"
16648
16649fi
16650rm -f core conftest.err conftest.$ac_objext \
16651 conftest$ac_exeext conftest.$ac_ext
16652
16653fi
16654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5
16655$as_echo "$ac_cv_libc_defines_sys_errlist" >&6; }
16656if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
16657
16658$as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
16659
16660fi
16661
16662
16663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5
16664$as_echo_n "checking if libc defines sys_nerr... " >&6; }
16665if ${ac_cv_libc_defines_sys_nerr+:} false; then :
16666 $as_echo_n "(cached) " >&6
16667else
16668
16669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16670/* end confdefs.h. */
16671
16672int
16673main ()
16674{
16675 extern int sys_nerr; printf("%i", sys_nerr);
16676 ;
16677 return 0;
16678}
16679_ACEOF
16680if ac_fn_c_try_link "$LINENO"; then :
16681 ac_cv_libc_defines_sys_nerr="yes"
16682else
16683 ac_cv_libc_defines_sys_nerr="no"
16684
16685fi
16686rm -f core conftest.err conftest.$ac_objext \
16687 conftest$ac_exeext conftest.$ac_ext
16688
16689fi
16690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5
16691$as_echo "$ac_cv_libc_defines_sys_nerr" >&6; }
16692if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
16693
16694$as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
16695
16696fi
16697
16698# Check libraries needed by DNS fingerprint support
16699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5
16700$as_echo_n "checking for library containing getrrsetbyname... " >&6; }
16701if ${ac_cv_search_getrrsetbyname+:} false; then :
16702 $as_echo_n "(cached) " >&6
16703else
16704 ac_func_search_save_LIBS=$LIBS
16705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16706/* end confdefs.h. */
16707
16708/* Override any GCC internal prototype to avoid an error.
16709 Use char because int might match the return type of a GCC
16710 builtin and then its argument prototype would still apply. */
16711#ifdef __cplusplus
16712extern "C"
16713#endif
16714char getrrsetbyname ();
16715int
16716main ()
16717{
16718return getrrsetbyname ();
16719 ;
16720 return 0;
16721}
16722_ACEOF
16723for ac_lib in '' resolv; do
16724 if test -z "$ac_lib"; then
16725 ac_res="none required"
16726 else
16727 ac_res=-l$ac_lib
16728 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16729 fi
16730 if ac_fn_c_try_link "$LINENO"; then :
16731 ac_cv_search_getrrsetbyname=$ac_res
16732fi
16733rm -f core conftest.err conftest.$ac_objext \
16734 conftest$ac_exeext
16735 if ${ac_cv_search_getrrsetbyname+:} false; then :
16736 break
16737fi
16738done
16739if ${ac_cv_search_getrrsetbyname+:} false; then :
16740
16741else
16742 ac_cv_search_getrrsetbyname=no
16743fi
16744rm conftest.$ac_ext
16745LIBS=$ac_func_search_save_LIBS
16746fi
16747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5
16748$as_echo "$ac_cv_search_getrrsetbyname" >&6; }
16749ac_res=$ac_cv_search_getrrsetbyname
16750if test "$ac_res" != no; then :
16751 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16752
16753$as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h
16754
16755else
16756
16757 # Needed by our getrrsetbyname()
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
16759$as_echo_n "checking for library containing res_query... " >&6; }
16760if ${ac_cv_search_res_query+:} false; then :
16761 $as_echo_n "(cached) " >&6
16762else
16763 ac_func_search_save_LIBS=$LIBS
16764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16765/* end confdefs.h. */
16766
16767/* Override any GCC internal prototype to avoid an error.
16768 Use char because int might match the return type of a GCC
16769 builtin and then its argument prototype would still apply. */
16770#ifdef __cplusplus
16771extern "C"
16772#endif
16773char res_query ();
16774int
16775main ()
16776{
16777return res_query ();
16778 ;
16779 return 0;
16780}
16781_ACEOF
16782for ac_lib in '' resolv; do
16783 if test -z "$ac_lib"; then
16784 ac_res="none required"
16785 else
16786 ac_res=-l$ac_lib
16787 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16788 fi
16789 if ac_fn_c_try_link "$LINENO"; then :
16790 ac_cv_search_res_query=$ac_res
16791fi
16792rm -f core conftest.err conftest.$ac_objext \
16793 conftest$ac_exeext
16794 if ${ac_cv_search_res_query+:} false; then :
16795 break
16796fi
16797done
16798if ${ac_cv_search_res_query+:} false; then :
16799
16800else
16801 ac_cv_search_res_query=no
16802fi
16803rm conftest.$ac_ext
16804LIBS=$ac_func_search_save_LIBS
16805fi
16806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
16807$as_echo "$ac_cv_search_res_query" >&6; }
16808ac_res=$ac_cv_search_res_query
16809if test "$ac_res" != no; then :
16810 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16811
16812fi
16813
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
16815$as_echo_n "checking for library containing dn_expand... " >&6; }
16816if ${ac_cv_search_dn_expand+:} false; then :
16817 $as_echo_n "(cached) " >&6
16818else
16819 ac_func_search_save_LIBS=$LIBS
16820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16821/* end confdefs.h. */
16822
16823/* Override any GCC internal prototype to avoid an error.
16824 Use char because int might match the return type of a GCC
16825 builtin and then its argument prototype would still apply. */
16826#ifdef __cplusplus
16827extern "C"
16828#endif
16829char dn_expand ();
16830int
16831main ()
16832{
16833return dn_expand ();
16834 ;
16835 return 0;
16836}
16837_ACEOF
16838for ac_lib in '' resolv; do
16839 if test -z "$ac_lib"; then
16840 ac_res="none required"
16841 else
16842 ac_res=-l$ac_lib
16843 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16844 fi
16845 if ac_fn_c_try_link "$LINENO"; then :
16846 ac_cv_search_dn_expand=$ac_res
16847fi
16848rm -f core conftest.err conftest.$ac_objext \
16849 conftest$ac_exeext
16850 if ${ac_cv_search_dn_expand+:} false; then :
16851 break
16852fi
16853done
16854if ${ac_cv_search_dn_expand+:} false; then :
16855
16856else
16857 ac_cv_search_dn_expand=no
16858fi
16859rm conftest.$ac_ext
16860LIBS=$ac_func_search_save_LIBS
16861fi
16862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
16863$as_echo "$ac_cv_search_dn_expand" >&6; }
16864ac_res=$ac_cv_search_dn_expand
16865if test "$ac_res" != no; then :
16866 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16867
16868fi
16869
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5
16871$as_echo_n "checking if res_query will link... " >&6; }
16872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16873/* end confdefs.h. */
16874
16875#include <sys/types.h>
16876#include <netinet/in.h>
16877#include <arpa/nameser.h>
16878#include <netdb.h>
16879#include <resolv.h>
16880
16881int
16882main ()
16883{
16884
16885 res_query (0, 0, 0, 0, 0);
16886
16887 ;
16888 return 0;
16889}
16890_ACEOF
16891if ac_fn_c_try_link "$LINENO"; then :
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16893$as_echo "yes" >&6; }
16894else
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16896$as_echo "no" >&6; }
16897 saved_LIBS="$LIBS"
16898 LIBS="$LIBS -lresolv"
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
16900$as_echo_n "checking for res_query in -lresolv... " >&6; }
16901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16902/* end confdefs.h. */
16903
16904#include <sys/types.h>
16905#include <netinet/in.h>
16906#include <arpa/nameser.h>
16907#include <netdb.h>
16908#include <resolv.h>
16909
16910int
16911main ()
16912{
16913
16914 res_query (0, 0, 0, 0, 0);
16915
16916 ;
16917 return 0;
16918}
16919_ACEOF
16920if ac_fn_c_try_link "$LINENO"; then :
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16922$as_echo "yes" >&6; }
16923else
16924 LIBS="$saved_LIBS"
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16926$as_echo "no" >&6; }
16927fi
16928rm -f core conftest.err conftest.$ac_objext \
16929 conftest$ac_exeext conftest.$ac_ext
16930
16931fi
16932rm -f core conftest.err conftest.$ac_objext \
16933 conftest$ac_exeext conftest.$ac_ext
16934 for ac_func in _getshort _getlong
16935do :
16936 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16937ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16938if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16939 cat >>confdefs.h <<_ACEOF
16940#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16941_ACEOF
16942
16943fi
16944done
16945
16946 ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h>
16947 #include <arpa/nameser.h>
16948"
16949if test "x$ac_cv_have_decl__getshort" = xyes; then :
16950 ac_have_decl=1
16951else
16952 ac_have_decl=0
16953fi
16954
16955cat >>confdefs.h <<_ACEOF
16956#define HAVE_DECL__GETSHORT $ac_have_decl
16957_ACEOF
16958ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h>
16959 #include <arpa/nameser.h>
16960"
16961if test "x$ac_cv_have_decl__getlong" = xyes; then :
16962 ac_have_decl=1
16963else
16964 ac_have_decl=0
16965fi
16966
16967cat >>confdefs.h <<_ACEOF
16968#define HAVE_DECL__GETLONG $ac_have_decl
16969_ACEOF
16970
16971 ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h>
16972"
16973if test "x$ac_cv_member_HEADER_ad" = xyes; then :
16974
16975$as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h
16976
16977fi
16978
16979
16980fi
16981
16982
16983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5
16984$as_echo_n "checking if struct __res_state _res is an extern... " >&6; }
16985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16986/* end confdefs.h. */
16987
16988#include <stdio.h>
16989#if HAVE_SYS_TYPES_H
16990# include <sys/types.h>
16991#endif
16992#include <netinet/in.h>
16993#include <arpa/nameser.h>
16994#include <resolv.h>
16995extern struct __res_state _res;
16996
16997int
16998main ()
16999{
17000
17001struct __res_state *volatile p = &_res; /* force resolution of _res */
17002return 0;
17003
17004 ;
17005 return 0;
17006}
17007_ACEOF
17008if ac_fn_c_try_link "$LINENO"; then :
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17010$as_echo "yes" >&6; }
17011
17012$as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h
17013
17014
17015else
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17017$as_echo "no" >&6; }
17018
17019fi
17020rm -f core conftest.err conftest.$ac_objext \
17021 conftest$ac_exeext conftest.$ac_ext
17022
17023# Check whether user wants SELinux support
17024SELINUX_MSG="no"
17025LIBSELINUX=""
17026
17027# Check whether --with-selinux was given.
17028if test "${with_selinux+set}" = set; then :
17029 withval=$with_selinux; if test "x$withval" != "xno" ; then
17030 save_LIBS="$LIBS"
17031
17032$as_echo "#define WITH_SELINUX 1" >>confdefs.h
17033
17034 SELINUX_MSG="yes"
17035 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
17036if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
17037
17038else
17039 as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5
17040fi
17041
17042
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5
17044$as_echo_n "checking for setexeccon in -lselinux... " >&6; }
17045if ${ac_cv_lib_selinux_setexeccon+:} false; then :
17046 $as_echo_n "(cached) " >&6
17047else
17048 ac_check_lib_save_LIBS=$LIBS
17049LIBS="-lselinux $LIBS"
17050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17051/* end confdefs.h. */
17052
17053/* Override any GCC internal prototype to avoid an error.
17054 Use char because int might match the return type of a GCC
17055 builtin and then its argument prototype would still apply. */
17056#ifdef __cplusplus
17057extern "C"
17058#endif
17059char setexeccon ();
17060int
17061main ()
17062{
17063return setexeccon ();
17064 ;
17065 return 0;
17066}
17067_ACEOF
17068if ac_fn_c_try_link "$LINENO"; then :
17069 ac_cv_lib_selinux_setexeccon=yes
17070else
17071 ac_cv_lib_selinux_setexeccon=no
17072fi
17073rm -f core conftest.err conftest.$ac_objext \
17074 conftest$ac_exeext conftest.$ac_ext
17075LIBS=$ac_check_lib_save_LIBS
17076fi
17077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5
17078$as_echo "$ac_cv_lib_selinux_setexeccon" >&6; }
17079if test "x$ac_cv_lib_selinux_setexeccon" = xyes; then :
17080 LIBSELINUX="-lselinux"
17081 LIBS="$LIBS -lselinux"
17082
17083else
17084 as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5
17085fi
17086
17087 SSHLIBS="$SSHLIBS $LIBSELINUX"
17088 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
17089 for ac_func in getseuserbyname get_default_context_with_level
17090do :
17091 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17092ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17093if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17094 cat >>confdefs.h <<_ACEOF
17095#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17096_ACEOF
17097
17098fi
17099done
17100
17101 LIBS="$save_LIBS"
17102 fi
17103
17104fi
17105
17106
17107
17108
17109# Check whether user wants Kerberos 5 support
17110KRB5_MSG="no"
17111
17112# Check whether --with-kerberos5 was given.
17113if test "${with_kerberos5+set}" = set; then :
17114 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
17115 if test "x$withval" = "xyes" ; then
17116 KRB5ROOT="/usr/local"
17117 else
17118 KRB5ROOT=${withval}
17119 fi
17120
17121
17122$as_echo "#define KRB5 1" >>confdefs.h
17123
17124 KRB5_MSG="yes"
17125
17126 if test -n "$ac_tool_prefix"; then
17127 # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args.
17128set dummy ${ac_tool_prefix}krb5-config; ac_word=$2
17129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17130$as_echo_n "checking for $ac_word... " >&6; }
17131if ${ac_cv_path_KRB5CONF+:} false; then :
17132 $as_echo_n "(cached) " >&6
17133else
17134 case $KRB5CONF in
17135 [\\/]* | ?:[\\/]*)
17136 ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
17137 ;;
17138 *)
17139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17140as_dummy="$KRB5ROOT/bin:$PATH"
17141for as_dir in $as_dummy
17142do
17143 IFS=$as_save_IFS
17144 test -z "$as_dir" && as_dir=.
17145 for ac_exec_ext in '' $ac_executable_extensions; do
17146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17147 ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
17148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17149 break 2
17150 fi
17151done
17152 done
17153IFS=$as_save_IFS
17154
17155 ;;
17156esac
17157fi
17158KRB5CONF=$ac_cv_path_KRB5CONF
17159if test -n "$KRB5CONF"; then
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5
17161$as_echo "$KRB5CONF" >&6; }
17162else
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17164$as_echo "no" >&6; }
17165fi
17166
17167
17168fi
17169if test -z "$ac_cv_path_KRB5CONF"; then
17170 ac_pt_KRB5CONF=$KRB5CONF
17171 # Extract the first word of "krb5-config", so it can be a program name with args.
17172set dummy krb5-config; ac_word=$2
17173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17174$as_echo_n "checking for $ac_word... " >&6; }
17175if ${ac_cv_path_ac_pt_KRB5CONF+:} false; then :
17176 $as_echo_n "(cached) " >&6
17177else
17178 case $ac_pt_KRB5CONF in
17179 [\\/]* | ?:[\\/]*)
17180 ac_cv_path_ac_pt_KRB5CONF="$ac_pt_KRB5CONF" # Let the user override the test with a path.
17181 ;;
17182 *)
17183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17184as_dummy="$KRB5ROOT/bin:$PATH"
17185for as_dir in $as_dummy
17186do
17187 IFS=$as_save_IFS
17188 test -z "$as_dir" && as_dir=.
17189 for ac_exec_ext in '' $ac_executable_extensions; do
17190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17191 ac_cv_path_ac_pt_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
17192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17193 break 2
17194 fi
17195done
17196 done
17197IFS=$as_save_IFS
17198
17199 ;;
17200esac
17201fi
17202ac_pt_KRB5CONF=$ac_cv_path_ac_pt_KRB5CONF
17203if test -n "$ac_pt_KRB5CONF"; then
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONF" >&5
17205$as_echo "$ac_pt_KRB5CONF" >&6; }
17206else
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17208$as_echo "no" >&6; }
17209fi
17210
17211 if test "x$ac_pt_KRB5CONF" = x; then
17212 KRB5CONF="$KRB5ROOT/bin/krb5-config"
17213 else
17214 case $cross_compiling:$ac_tool_warned in
17215yes:)
17216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17218ac_tool_warned=yes ;;
17219esac
17220 KRB5CONF=$ac_pt_KRB5CONF
17221 fi
17222else
17223 KRB5CONF="$ac_cv_path_KRB5CONF"
17224fi
17225
17226 if test -x $KRB5CONF ; then
17227 K5CFLAGS="`$KRB5CONF --cflags`"
17228 K5LIBS="`$KRB5CONF --libs`"
17229 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
17230
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5
17232$as_echo_n "checking for gssapi support... " >&6; }
17233 if $KRB5CONF | grep gssapi >/dev/null ; then
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17235$as_echo "yes" >&6; }
17236
17237$as_echo "#define GSSAPI 1" >>confdefs.h
17238
17239 GSSCFLAGS="`$KRB5CONF --cflags gssapi`"
17240 GSSLIBS="`$KRB5CONF --libs gssapi`"
17241 CPPFLAGS="$CPPFLAGS $GSSCFLAGS"
17242 else
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17244$as_echo "no" >&6; }
17245 fi
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
17247$as_echo_n "checking whether we are using Heimdal... " >&6; }
17248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17249/* end confdefs.h. */
17250 #include <krb5.h>
17251
17252int
17253main ()
17254{
17255 char *tmp = heimdal_version;
17256 ;
17257 return 0;
17258}
17259_ACEOF
17260if ac_fn_c_try_compile "$LINENO"; then :
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17262$as_echo "yes" >&6; }
17263
17264$as_echo "#define HEIMDAL 1" >>confdefs.h
17265
17266else
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17268$as_echo "no" >&6; }
17269
17270fi
17271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17272 else
17273 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
17274 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
17276$as_echo_n "checking whether we are using Heimdal... " >&6; }
17277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17278/* end confdefs.h. */
17279 #include <krb5.h>
17280
17281int
17282main ()
17283{
17284 char *tmp = heimdal_version;
17285 ;
17286 return 0;
17287}
17288_ACEOF
17289if ac_fn_c_try_compile "$LINENO"; then :
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17291$as_echo "yes" >&6; }
17292 $as_echo "#define HEIMDAL 1" >>confdefs.h
17293
17294 K5LIBS="-lkrb5"
17295 K5LIBS="$K5LIBS -lcom_err -lasn1"
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5
17297$as_echo_n "checking for net_write in -lroken... " >&6; }
17298if ${ac_cv_lib_roken_net_write+:} false; then :
17299 $as_echo_n "(cached) " >&6
17300else
17301 ac_check_lib_save_LIBS=$LIBS
17302LIBS="-lroken $LIBS"
17303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17304/* end confdefs.h. */
17305
17306/* Override any GCC internal prototype to avoid an error.
17307 Use char because int might match the return type of a GCC
17308 builtin and then its argument prototype would still apply. */
17309#ifdef __cplusplus
17310extern "C"
17311#endif
17312char net_write ();
17313int
17314main ()
17315{
17316return net_write ();
17317 ;
17318 return 0;
17319}
17320_ACEOF
17321if ac_fn_c_try_link "$LINENO"; then :
17322 ac_cv_lib_roken_net_write=yes
17323else
17324 ac_cv_lib_roken_net_write=no
17325fi
17326rm -f core conftest.err conftest.$ac_objext \
17327 conftest$ac_exeext conftest.$ac_ext
17328LIBS=$ac_check_lib_save_LIBS
17329fi
17330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5
17331$as_echo "$ac_cv_lib_roken_net_write" >&6; }
17332if test "x$ac_cv_lib_roken_net_write" = xyes; then :
17333 K5LIBS="$K5LIBS -lroken"
17334fi
17335
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
17337$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
17338if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
17339 $as_echo_n "(cached) " >&6
17340else
17341 ac_check_lib_save_LIBS=$LIBS
17342LIBS="-ldes $LIBS"
17343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17344/* end confdefs.h. */
17345
17346/* Override any GCC internal prototype to avoid an error.
17347 Use char because int might match the return type of a GCC
17348 builtin and then its argument prototype would still apply. */
17349#ifdef __cplusplus
17350extern "C"
17351#endif
17352char des_cbc_encrypt ();
17353int
17354main ()
17355{
17356return des_cbc_encrypt ();
17357 ;
17358 return 0;
17359}
17360_ACEOF
17361if ac_fn_c_try_link "$LINENO"; then :
17362 ac_cv_lib_des_des_cbc_encrypt=yes
17363else
17364 ac_cv_lib_des_des_cbc_encrypt=no
17365fi
17366rm -f core conftest.err conftest.$ac_objext \
17367 conftest$ac_exeext conftest.$ac_ext
17368LIBS=$ac_check_lib_save_LIBS
17369fi
17370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17371$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
17372if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
17373 K5LIBS="$K5LIBS -ldes"
17374fi
17375
17376
17377else
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17379$as_echo "no" >&6; }
17380 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
17381
17382fi
17383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
17385$as_echo_n "checking for library containing dn_expand... " >&6; }
17386if ${ac_cv_search_dn_expand+:} false; then :
17387 $as_echo_n "(cached) " >&6
17388else
17389 ac_func_search_save_LIBS=$LIBS
17390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17391/* end confdefs.h. */
17392
17393/* Override any GCC internal prototype to avoid an error.
17394 Use char because int might match the return type of a GCC
17395 builtin and then its argument prototype would still apply. */
17396#ifdef __cplusplus
17397extern "C"
17398#endif
17399char dn_expand ();
17400int
17401main ()
17402{
17403return dn_expand ();
17404 ;
17405 return 0;
17406}
17407_ACEOF
17408for ac_lib in '' resolv; do
17409 if test -z "$ac_lib"; then
17410 ac_res="none required"
17411 else
17412 ac_res=-l$ac_lib
17413 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17414 fi
17415 if ac_fn_c_try_link "$LINENO"; then :
17416 ac_cv_search_dn_expand=$ac_res
17417fi
17418rm -f core conftest.err conftest.$ac_objext \
17419 conftest$ac_exeext
17420 if ${ac_cv_search_dn_expand+:} false; then :
17421 break
17422fi
17423done
17424if ${ac_cv_search_dn_expand+:} false; then :
17425
17426else
17427 ac_cv_search_dn_expand=no
17428fi
17429rm conftest.$ac_ext
17430LIBS=$ac_func_search_save_LIBS
17431fi
17432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
17433$as_echo "$ac_cv_search_dn_expand" >&6; }
17434ac_res=$ac_cv_search_dn_expand
17435if test "$ac_res" != no; then :
17436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17437
17438fi
17439
17440
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5
17442$as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; }
17443if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then :
17444 $as_echo_n "(cached) " >&6
17445else
17446 ac_check_lib_save_LIBS=$LIBS
17447LIBS="-lgssapi_krb5 $LIBS"
17448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17449/* end confdefs.h. */
17450
17451/* Override any GCC internal prototype to avoid an error.
17452 Use char because int might match the return type of a GCC
17453 builtin and then its argument prototype would still apply. */
17454#ifdef __cplusplus
17455extern "C"
17456#endif
17457char gss_init_sec_context ();
17458int
17459main ()
17460{
17461return gss_init_sec_context ();
17462 ;
17463 return 0;
17464}
17465_ACEOF
17466if ac_fn_c_try_link "$LINENO"; then :
17467 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
17468else
17469 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
17470fi
17471rm -f core conftest.err conftest.$ac_objext \
17472 conftest$ac_exeext conftest.$ac_ext
17473LIBS=$ac_check_lib_save_LIBS
17474fi
17475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
17476$as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
17477if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then :
17478 $as_echo "#define GSSAPI 1" >>confdefs.h
17479
17480 GSSLIBS="-lgssapi_krb5"
17481else
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5
17483$as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; }
17484if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then :
17485 $as_echo_n "(cached) " >&6
17486else
17487 ac_check_lib_save_LIBS=$LIBS
17488LIBS="-lgssapi $LIBS"
17489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17490/* end confdefs.h. */
17491
17492/* Override any GCC internal prototype to avoid an error.
17493 Use char because int might match the return type of a GCC
17494 builtin and then its argument prototype would still apply. */
17495#ifdef __cplusplus
17496extern "C"
17497#endif
17498char gss_init_sec_context ();
17499int
17500main ()
17501{
17502return gss_init_sec_context ();
17503 ;
17504 return 0;
17505}
17506_ACEOF
17507if ac_fn_c_try_link "$LINENO"; then :
17508 ac_cv_lib_gssapi_gss_init_sec_context=yes
17509else
17510 ac_cv_lib_gssapi_gss_init_sec_context=no
17511fi
17512rm -f core conftest.err conftest.$ac_objext \
17513 conftest$ac_exeext conftest.$ac_ext
17514LIBS=$ac_check_lib_save_LIBS
17515fi
17516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
17517$as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
17518if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then :
17519 $as_echo "#define GSSAPI 1" >>confdefs.h
17520
17521 GSSLIBS="-lgssapi"
17522else
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgss" >&5
17524$as_echo_n "checking for gss_init_sec_context in -lgss... " >&6; }
17525if ${ac_cv_lib_gss_gss_init_sec_context+:} false; then :
17526 $as_echo_n "(cached) " >&6
17527else
17528 ac_check_lib_save_LIBS=$LIBS
17529LIBS="-lgss $LIBS"
17530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17531/* end confdefs.h. */
17532
17533/* Override any GCC internal prototype to avoid an error.
17534 Use char because int might match the return type of a GCC
17535 builtin and then its argument prototype would still apply. */
17536#ifdef __cplusplus
17537extern "C"
17538#endif
17539char gss_init_sec_context ();
17540int
17541main ()
17542{
17543return gss_init_sec_context ();
17544 ;
17545 return 0;
17546}
17547_ACEOF
17548if ac_fn_c_try_link "$LINENO"; then :
17549 ac_cv_lib_gss_gss_init_sec_context=yes
17550else
17551 ac_cv_lib_gss_gss_init_sec_context=no
17552fi
17553rm -f core conftest.err conftest.$ac_objext \
17554 conftest$ac_exeext conftest.$ac_ext
17555LIBS=$ac_check_lib_save_LIBS
17556fi
17557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_init_sec_context" >&5
17558$as_echo "$ac_cv_lib_gss_gss_init_sec_context" >&6; }
17559if test "x$ac_cv_lib_gss_gss_init_sec_context" = xyes; then :
17560 $as_echo "#define GSSAPI 1" >>confdefs.h
17561
17562 GSSLIBS="-lgss"
17563else
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
17565$as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
17566fi
17567
17568
17569fi
17570
17571
17572fi
17573
17574
17575 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
17576if test "x$ac_cv_header_gssapi_h" = xyes; then :
17577
17578else
17579 unset ac_cv_header_gssapi_h
17580 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
17581 for ac_header in gssapi.h
17582do :
17583 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
17584if test "x$ac_cv_header_gssapi_h" = xyes; then :
17585 cat >>confdefs.h <<_ACEOF
17586#define HAVE_GSSAPI_H 1
17587_ACEOF
17588
17589else
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
17591$as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
17592
17593fi
17594
17595done
17596
17597
17598
17599fi
17600
17601
17602
17603 oldCPP="$CPPFLAGS"
17604 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
17605 ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default"
17606if test "x$ac_cv_header_gssapi_krb5_h" = xyes; then :
17607
17608else
17609 CPPFLAGS="$oldCPP"
17610fi
17611
17612
17613
17614 fi
17615 if test ! -z "$need_dash_r" ; then
17616 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
17617 fi
17618 if test ! -z "$blibpath" ; then
17619 blibpath="$blibpath:${KRB5ROOT}/lib"
17620 fi
17621
17622 for ac_header in gssapi.h gssapi/gssapi.h
17623do :
17624 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17625ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17626if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17627 cat >>confdefs.h <<_ACEOF
17628#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17629_ACEOF
17630
17631fi
17632
17633done
17634
17635 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
17636do :
17637 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17638ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17639if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17640 cat >>confdefs.h <<_ACEOF
17641#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17642_ACEOF
17643
17644fi
17645
17646done
17647
17648 for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
17649do :
17650 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17651ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17652if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17653 cat >>confdefs.h <<_ACEOF
17654#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17655_ACEOF
17656
17657fi
17658
17659done
17660
17661
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5
17663$as_echo_n "checking for library containing k_hasafs... " >&6; }
17664if ${ac_cv_search_k_hasafs+:} false; then :
17665 $as_echo_n "(cached) " >&6
17666else
17667 ac_func_search_save_LIBS=$LIBS
17668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17669/* end confdefs.h. */
17670
17671/* Override any GCC internal prototype to avoid an error.
17672 Use char because int might match the return type of a GCC
17673 builtin and then its argument prototype would still apply. */
17674#ifdef __cplusplus
17675extern "C"
17676#endif
17677char k_hasafs ();
17678int
17679main ()
17680{
17681return k_hasafs ();
17682 ;
17683 return 0;
17684}
17685_ACEOF
17686for ac_lib in '' kafs; do
17687 if test -z "$ac_lib"; then
17688 ac_res="none required"
17689 else
17690 ac_res=-l$ac_lib
17691 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17692 fi
17693 if ac_fn_c_try_link "$LINENO"; then :
17694 ac_cv_search_k_hasafs=$ac_res
17695fi
17696rm -f core conftest.err conftest.$ac_objext \
17697 conftest$ac_exeext
17698 if ${ac_cv_search_k_hasafs+:} false; then :
17699 break
17700fi
17701done
17702if ${ac_cv_search_k_hasafs+:} false; then :
17703
17704else
17705 ac_cv_search_k_hasafs=no
17706fi
17707rm conftest.$ac_ext
17708LIBS=$ac_func_search_save_LIBS
17709fi
17710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5
17711$as_echo "$ac_cv_search_k_hasafs" >&6; }
17712ac_res=$ac_cv_search_k_hasafs
17713if test "$ac_res" != no; then :
17714 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17715
17716$as_echo "#define USE_AFS 1" >>confdefs.h
17717
17718fi
17719
17720
17721 ac_fn_c_check_decl "$LINENO" "GSS_C_NT_HOSTBASED_SERVICE" "ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" "
17722#ifdef HAVE_GSSAPI_H
17723# include <gssapi.h>
17724#elif defined(HAVE_GSSAPI_GSSAPI_H)
17725# include <gssapi/gssapi.h>
17726#endif
17727
17728#ifdef HAVE_GSSAPI_GENERIC_H
17729# include <gssapi_generic.h>
17730#elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H)
17731# include <gssapi/gssapi_generic.h>
17732#endif
17733
17734"
17735if test "x$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" = xyes; then :
17736 ac_have_decl=1
17737else
17738 ac_have_decl=0
17739fi
17740
17741cat >>confdefs.h <<_ACEOF
17742#define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE $ac_have_decl
17743_ACEOF
17744
17745 saved_LIBS="$LIBS"
17746 LIBS="$LIBS $K5LIBS"
17747 for ac_func in krb5_cc_new_unique krb5_get_error_message krb5_free_error_message
17748do :
17749 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17750ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17751if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17752 cat >>confdefs.h <<_ACEOF
17753#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17754_ACEOF
17755
17756fi
17757done
17758
17759 LIBS="$saved_LIBS"
17760
17761 fi
17762
17763
17764fi
17765
17766
17767
17768
17769# Looking for programs, paths and files
17770
17771PRIVSEP_PATH=/var/empty
17772
17773# Check whether --with-privsep-path was given.
17774if test "${with_privsep_path+set}" = set; then :
17775 withval=$with_privsep_path;
17776 if test -n "$withval" && test "x$withval" != "xno" && \
17777 test "x${withval}" != "xyes"; then
17778 PRIVSEP_PATH=$withval
17779 fi
17780
17781
17782fi
17783
17784
17785
17786
17787# Check whether --with-xauth was given.
17788if test "${with_xauth+set}" = set; then :
17789 withval=$with_xauth;
17790 if test -n "$withval" && test "x$withval" != "xno" && \
17791 test "x${withval}" != "xyes"; then
17792 xauth_path=$withval
17793 fi
17794
17795else
17796
17797 TestPath="$PATH"
17798 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
17799 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
17800 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
17801 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
17802 # Extract the first word of "xauth", so it can be a program name with args.
17803set dummy xauth; ac_word=$2
17804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17805$as_echo_n "checking for $ac_word... " >&6; }
17806if ${ac_cv_path_xauth_path+:} false; then :
17807 $as_echo_n "(cached) " >&6
17808else
17809 case $xauth_path in
17810 [\\/]* | ?:[\\/]*)
17811 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
17812 ;;
17813 *)
17814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17815for as_dir in $TestPath
17816do
17817 IFS=$as_save_IFS
17818 test -z "$as_dir" && as_dir=.
17819 for ac_exec_ext in '' $ac_executable_extensions; do
17820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17821 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
17822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17823 break 2
17824 fi
17825done
17826 done
17827IFS=$as_save_IFS
17828
17829 ;;
17830esac
17831fi
17832xauth_path=$ac_cv_path_xauth_path
17833if test -n "$xauth_path"; then
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5
17835$as_echo "$xauth_path" >&6; }
17836else
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17838$as_echo "no" >&6; }
17839fi
17840
17841
17842 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
17843 xauth_path="/usr/openwin/bin/xauth"
17844 fi
17845
17846
17847fi
17848
17849
17850STRIP_OPT=-s
17851# Check whether --enable-strip was given.
17852if test "${enable_strip+set}" = set; then :
17853 enableval=$enable_strip;
17854 if test "x$enableval" = "xno" ; then
17855 STRIP_OPT=
17856 fi
17857
17858
17859fi
17860
17861
17862
17863if test -z "$xauth_path" ; then
17864 XAUTH_PATH="undefined"
17865
17866else
17867
17868cat >>confdefs.h <<_ACEOF
17869#define XAUTH_PATH "$xauth_path"
17870_ACEOF
17871
17872 XAUTH_PATH=$xauth_path
17873
17874fi
17875
17876# Check for mail directory
17877
17878# Check whether --with-maildir was given.
17879if test "${with_maildir+set}" = set; then :
17880 withval=$with_maildir;
17881 if test "X$withval" != X && test "x$withval" != xno && \
17882 test "x${withval}" != xyes; then
17883
17884cat >>confdefs.h <<_ACEOF
17885#define MAIL_DIRECTORY "$withval"
17886_ACEOF
17887
17888 fi
17889
17890else
17891
17892 if test "X$maildir" != "X"; then
17893 cat >>confdefs.h <<_ACEOF
17894#define MAIL_DIRECTORY "$maildir"
17895_ACEOF
17896
17897 else
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Discovering system mail directory" >&5
17899$as_echo_n "checking Discovering system mail directory... " >&6; }
17900 if test "$cross_compiling" = yes; then :
17901
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5
17903$as_echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;}
17904
17905
17906else
17907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17908/* end confdefs.h. */
17909
17910#include <stdio.h>
17911#include <string.h>
17912#ifdef HAVE_PATHS_H
17913#include <paths.h>
17914#endif
17915#ifdef HAVE_MAILLOCK_H
17916#include <maillock.h>
17917#endif
17918#define DATA "conftest.maildir"
17919
17920int
17921main ()
17922{
17923
17924 FILE *fd;
17925 int rc;
17926
17927 fd = fopen(DATA,"w");
17928 if(fd == NULL)
17929 exit(1);
17930
17931#if defined (_PATH_MAILDIR)
17932 if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0)
17933 exit(1);
17934#elif defined (MAILDIR)
17935 if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0)
17936 exit(1);
17937#elif defined (_PATH_MAIL)
17938 if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0)
17939 exit(1);
17940#else
17941 exit (2);
17942#endif
17943
17944 exit(0);
17945
17946 ;
17947 return 0;
17948}
17949_ACEOF
17950if ac_fn_c_try_run "$LINENO"; then :
17951
17952 maildir_what=`awk -F: '{print $1}' conftest.maildir`
17953 maildir=`awk -F: '{print $2}' conftest.maildir \
17954 | sed 's|/$||'`
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: $maildir from $maildir_what" >&5
17956$as_echo "Using: $maildir from $maildir_what" >&6; }
17957 if test "x$maildir_what" != "x_PATH_MAILDIR"; then
17958 cat >>confdefs.h <<_ACEOF
17959#define MAIL_DIRECTORY "$maildir"
17960_ACEOF
17961
17962 fi
17963
17964else
17965
17966 if test "X$ac_status" = "X2";then
17967# our test program didn't find it. Default to /var/spool/mail
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: default value of /var/spool/mail" >&5
17969$as_echo "Using: default value of /var/spool/mail" >&6; }
17970 cat >>confdefs.h <<_ACEOF
17971#define MAIL_DIRECTORY "/var/spool/mail"
17972_ACEOF
17973
17974 else
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** not found ***" >&5
17976$as_echo "*** not found ***" >&6; }
17977 fi
17978
17979fi
17980rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17981 conftest.$ac_objext conftest.beam conftest.$ac_ext
17982fi
17983
17984 fi
17985
17986
17987fi
17988 # maildir
17989
17990if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
17992$as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
17993 disable_ptmx_check=yes
17994fi
17995if test -z "$no_dev_ptmx" ; then
17996 if test "x$disable_ptmx_check" != "xyes" ; then
17997 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh`
17998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5
17999$as_echo_n "checking for \"/dev/ptmx\"... " >&6; }
18000if eval \${$as_ac_File+:} false; then :
18001 $as_echo_n "(cached) " >&6
18002else
18003 test "$cross_compiling" = yes &&
18004 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18005if test -r ""/dev/ptmx""; then
18006 eval "$as_ac_File=yes"
18007else
18008 eval "$as_ac_File=no"
18009fi
18010fi
18011eval ac_res=\$$as_ac_File
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18013$as_echo "$ac_res" >&6; }
18014if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18015
18016
18017cat >>confdefs.h <<_ACEOF
18018#define HAVE_DEV_PTMX 1
18019_ACEOF
18020
18021 have_dev_ptmx=1
18022
18023
18024fi
18025
18026 fi
18027fi
18028
18029if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
18030 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh`
18031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5
18032$as_echo_n "checking for \"/dev/ptc\"... " >&6; }
18033if eval \${$as_ac_File+:} false; then :
18034 $as_echo_n "(cached) " >&6
18035else
18036 test "$cross_compiling" = yes &&
18037 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18038if test -r ""/dev/ptc""; then
18039 eval "$as_ac_File=yes"
18040else
18041 eval "$as_ac_File=no"
18042fi
18043fi
18044eval ac_res=\$$as_ac_File
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18046$as_echo "$ac_res" >&6; }
18047if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18048
18049
18050cat >>confdefs.h <<_ACEOF
18051#define HAVE_DEV_PTS_AND_PTC 1
18052_ACEOF
18053
18054 have_dev_ptc=1
18055
18056
18057fi
18058
18059else
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5
18061$as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
18062fi
18063
18064# Options from here on. Some of these are preset by platform above
18065
18066# Check whether --with-mantype was given.
18067if test "${with_mantype+set}" = set; then :
18068 withval=$with_mantype;
18069 case "$withval" in
18070 man|cat|doc)
18071 MANTYPE=$withval
18072 ;;
18073 *)
18074 as_fn_error $? "invalid man type: $withval" "$LINENO" 5
18075 ;;
18076 esac
18077
18078
18079fi
18080
18081if test -z "$MANTYPE"; then
18082 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
18083 for ac_prog in nroff awf
18084do
18085 # Extract the first word of "$ac_prog", so it can be a program name with args.
18086set dummy $ac_prog; ac_word=$2
18087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18088$as_echo_n "checking for $ac_word... " >&6; }
18089if ${ac_cv_path_NROFF+:} false; then :
18090 $as_echo_n "(cached) " >&6
18091else
18092 case $NROFF in
18093 [\\/]* | ?:[\\/]*)
18094 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
18095 ;;
18096 *)
18097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18098for as_dir in $TestPath
18099do
18100 IFS=$as_save_IFS
18101 test -z "$as_dir" && as_dir=.
18102 for ac_exec_ext in '' $ac_executable_extensions; do
18103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18104 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
18105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18106 break 2
18107 fi
18108done
18109 done
18110IFS=$as_save_IFS
18111
18112 ;;
18113esac
18114fi
18115NROFF=$ac_cv_path_NROFF
18116if test -n "$NROFF"; then
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
18118$as_echo "$NROFF" >&6; }
18119else
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18121$as_echo "no" >&6; }
18122fi
18123
18124
18125 test -n "$NROFF" && break
18126done
18127test -n "$NROFF" || NROFF="/bin/false"
18128
18129 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
18130 MANTYPE=doc
18131 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
18132 MANTYPE=man
18133 else
18134 MANTYPE=cat
18135 fi
18136fi
18137
18138if test "$MANTYPE" = "doc"; then
18139 mansubdir=man;
18140else
18141 mansubdir=$MANTYPE;
18142fi
18143
18144
18145# Check whether to enable MD5 passwords
18146MD5_MSG="no"
18147
18148# Check whether --with-md5-passwords was given.
18149if test "${with_md5_passwords+set}" = set; then :
18150 withval=$with_md5_passwords;
18151 if test "x$withval" != "xno" ; then
18152
18153$as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h
18154
18155 MD5_MSG="yes"
18156 fi
18157
18158
18159fi
18160
18161
18162# Whether to disable shadow password support
18163
18164# Check whether --with-shadow was given.
18165if test "${with_shadow+set}" = set; then :
18166 withval=$with_shadow;
18167 if test "x$withval" = "xno" ; then
18168 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
18169
18170 disable_shadow=yes
18171 fi
18172
18173
18174fi
18175
18176
18177if test -z "$disable_shadow" ; then
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5
18179$as_echo_n "checking if the systems has expire shadow information... " >&6; }
18180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18181/* end confdefs.h. */
18182
18183#include <sys/types.h>
18184#include <shadow.h>
18185struct spwd sp;
18186
18187int
18188main ()
18189{
18190 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
18191 ;
18192 return 0;
18193}
18194_ACEOF
18195if ac_fn_c_try_compile "$LINENO"; then :
18196 sp_expire_available=yes
18197fi
18198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18199
18200 if test "x$sp_expire_available" = "xyes" ; then
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18202$as_echo "yes" >&6; }
18203
18204$as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h
18205
18206 else
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18208$as_echo "no" >&6; }
18209 fi
18210fi
18211
18212# Use ip address instead of hostname in $DISPLAY
18213if test ! -z "$IPADDR_IN_DISPLAY" ; then
18214 DISPLAY_HACK_MSG="yes"
18215
18216$as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
18217
18218else
18219 DISPLAY_HACK_MSG="no"
18220
18221# Check whether --with-ipaddr-display was given.
18222if test "${with_ipaddr_display+set}" = set; then :
18223 withval=$with_ipaddr_display;
18224 if test "x$withval" != "xno" ; then
18225 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
18226
18227 DISPLAY_HACK_MSG="yes"
18228 fi
18229
18230
18231fi
18232
18233fi
18234
18235# check for /etc/default/login and use it if present.
18236# Check whether --enable-etc-default-login was given.
18237if test "${enable_etc_default_login+set}" = set; then :
18238 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5
18240$as_echo "$as_me: /etc/default/login handling disabled" >&6;}
18241 etc_default_login=no
18242 else
18243 etc_default_login=yes
18244 fi
18245else
18246 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
18247 then
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5
18249$as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
18250 etc_default_login=no
18251 else
18252 etc_default_login=yes
18253 fi
18254
18255fi
18256
18257
18258if test "x$etc_default_login" != "xno"; then
18259 as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh`
18260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5
18261$as_echo_n "checking for \"/etc/default/login\"... " >&6; }
18262if eval \${$as_ac_File+:} false; then :
18263 $as_echo_n "(cached) " >&6
18264else
18265 test "$cross_compiling" = yes &&
18266 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18267if test -r ""/etc/default/login""; then
18268 eval "$as_ac_File=yes"
18269else
18270 eval "$as_ac_File=no"
18271fi
18272fi
18273eval ac_res=\$$as_ac_File
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18275$as_echo "$ac_res" >&6; }
18276if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18277 external_path_file=/etc/default/login
18278fi
18279
18280 if test "x$external_path_file" = "x/etc/default/login"; then
18281
18282$as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h
18283
18284 fi
18285fi
18286
18287if test $ac_cv_func_login_getcapbool = "yes" && \
18288 test $ac_cv_header_login_cap_h = "yes" ; then
18289 external_path_file=/etc/login.conf
18290fi
18291
18292# Whether to mess with the default path
18293SERVER_PATH_MSG="(default)"
18294
18295# Check whether --with-default-path was given.
18296if test "${with_default_path+set}" = set; then :
18297 withval=$with_default_path;
18298 if test "x$external_path_file" = "x/etc/login.conf" ; then
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18300--with-default-path=PATH has no effect on this system.
18301Edit /etc/login.conf instead." >&5
18302$as_echo "$as_me: WARNING:
18303--with-default-path=PATH has no effect on this system.
18304Edit /etc/login.conf instead." >&2;}
18305 elif test "x$withval" != "xno" ; then
18306 if test ! -z "$external_path_file" ; then
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18308--with-default-path=PATH will only be used if PATH is not defined in
18309$external_path_file ." >&5
18310$as_echo "$as_me: WARNING:
18311--with-default-path=PATH will only be used if PATH is not defined in
18312$external_path_file ." >&2;}
18313 fi
18314 user_path="$withval"
18315 SERVER_PATH_MSG="$withval"
18316 fi
18317
18318else
18319 if test "x$external_path_file" = "x/etc/login.conf" ; then
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
18321$as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
18322 else
18323 if test ! -z "$external_path_file" ; then
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18325If PATH is defined in $external_path_file, ensure the path to scp is included,
18326otherwise scp will not work." >&5
18327$as_echo "$as_me: WARNING:
18328If PATH is defined in $external_path_file, ensure the path to scp is included,
18329otherwise scp will not work." >&2;}
18330 fi
18331 if test "$cross_compiling" = yes; then :
18332 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
18333
18334else
18335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18336/* end confdefs.h. */
18337
18338/* find out what STDPATH is */
18339#include <stdio.h>
18340#ifdef HAVE_PATHS_H
18341# include <paths.h>
18342#endif
18343#ifndef _PATH_STDPATH
18344# ifdef _PATH_USERPATH /* Irix */
18345# define _PATH_STDPATH _PATH_USERPATH
18346# else
18347# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
18348# endif
18349#endif
18350#include <sys/types.h>
18351#include <sys/stat.h>
18352#include <fcntl.h>
18353#define DATA "conftest.stdpath"
18354
18355int
18356main ()
18357{
18358
18359 FILE *fd;
18360 int rc;
18361
18362 fd = fopen(DATA,"w");
18363 if(fd == NULL)
18364 exit(1);
18365
18366 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
18367 exit(1);
18368
18369 exit(0);
18370
18371 ;
18372 return 0;
18373}
18374_ACEOF
18375if ac_fn_c_try_run "$LINENO"; then :
18376 user_path=`cat conftest.stdpath`
18377else
18378 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
18379fi
18380rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18381 conftest.$ac_objext conftest.beam conftest.$ac_ext
18382fi
18383
18384# make sure $bindir is in USER_PATH so scp will work
18385 t_bindir="${bindir}"
18386 while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do
18387 t_bindir=`eval echo ${t_bindir}`
18388 case $t_bindir in
18389 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
18390 esac
18391 case $t_bindir in
18392 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
18393 esac
18394 done
18395 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
18396 if test $? -ne 0 ; then
18397 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
18398 if test $? -ne 0 ; then
18399 user_path=$user_path:$t_bindir
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5
18401$as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; }
18402 fi
18403 fi
18404 fi
18405
18406fi
18407
18408if test "x$external_path_file" != "x/etc/login.conf" ; then
18409
18410cat >>confdefs.h <<_ACEOF
18411#define USER_PATH "$user_path"
18412_ACEOF
18413
18414
18415fi
18416
18417# Set superuser path separately to user path
18418
18419# Check whether --with-superuser-path was given.
18420if test "${with_superuser_path+set}" = set; then :
18421 withval=$with_superuser_path;
18422 if test -n "$withval" && test "x$withval" != "xno" && \
18423 test "x${withval}" != "xyes"; then
18424
18425cat >>confdefs.h <<_ACEOF
18426#define SUPERUSER_PATH "$withval"
18427_ACEOF
18428
18429 superuser_path=$withval
18430 fi
18431
18432
18433fi
18434
18435
18436
18437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
18438$as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; }
18439IPV4_IN6_HACK_MSG="no"
18440
18441# Check whether --with-4in6 was given.
18442if test "${with_4in6+set}" = set; then :
18443 withval=$with_4in6;
18444 if test "x$withval" != "xno" ; then
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18446$as_echo "yes" >&6; }
18447
18448$as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
18449
18450 IPV4_IN6_HACK_MSG="yes"
18451 else
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18453$as_echo "no" >&6; }
18454 fi
18455
18456else
18457
18458 if test "x$inet6_default_4in6" = "xyes"; then
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
18460$as_echo "yes (default)" >&6; }
18461 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
18462
18463 IPV4_IN6_HACK_MSG="yes"
18464 else
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
18466$as_echo "no (default)" >&6; }
18467 fi
18468
18469
18470fi
18471
18472
18473# Whether to enable BSD auth support
18474BSD_AUTH_MSG=no
18475
18476# Check whether --with-bsd-auth was given.
18477if test "${with_bsd_auth+set}" = set; then :
18478 withval=$with_bsd_auth;
18479 if test "x$withval" != "xno" ; then
18480
18481$as_echo "#define BSD_AUTH 1" >>confdefs.h
18482
18483 BSD_AUTH_MSG=yes
18484 fi
18485
18486
18487fi
18488
18489
18490# Where to place sshd.pid
18491piddir=/var/run
18492# make sure the directory exists
18493if test ! -d $piddir ; then
18494 piddir=`eval echo ${sysconfdir}`
18495 case $piddir in
18496 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
18497 esac
18498fi
18499
18500
18501# Check whether --with-pid-dir was given.
18502if test "${with_pid_dir+set}" = set; then :
18503 withval=$with_pid_dir;
18504 if test -n "$withval" && test "x$withval" != "xno" && \
18505 test "x${withval}" != "xyes"; then
18506 piddir=$withval
18507 if test ! -d $piddir ; then
18508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5
18509$as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
18510 fi
18511 fi
18512
18513
18514fi
18515
18516
18517
18518cat >>confdefs.h <<_ACEOF
18519#define _PATH_SSH_PIDDIR "$piddir"
18520_ACEOF
18521
18522
18523
18524# Check whether --enable-lastlog was given.
18525if test "${enable_lastlog+set}" = set; then :
18526 enableval=$enable_lastlog;
18527 if test "x$enableval" = "xno" ; then
18528 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
18529
18530 fi
18531
18532
18533fi
18534
18535# Check whether --enable-utmp was given.
18536if test "${enable_utmp+set}" = set; then :
18537 enableval=$enable_utmp;
18538 if test "x$enableval" = "xno" ; then
18539 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
18540
18541 fi
18542
18543
18544fi
18545
18546# Check whether --enable-utmpx was given.
18547if test "${enable_utmpx+set}" = set; then :
18548 enableval=$enable_utmpx;
18549 if test "x$enableval" = "xno" ; then
18550
18551$as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
18552
18553 fi
18554
18555
18556fi
18557
18558# Check whether --enable-wtmp was given.
18559if test "${enable_wtmp+set}" = set; then :
18560 enableval=$enable_wtmp;
18561 if test "x$enableval" = "xno" ; then
18562 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
18563
18564 fi
18565
18566
18567fi
18568
18569# Check whether --enable-wtmpx was given.
18570if test "${enable_wtmpx+set}" = set; then :
18571 enableval=$enable_wtmpx;
18572 if test "x$enableval" = "xno" ; then
18573
18574$as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
18575
18576 fi
18577
18578
18579fi
18580
18581# Check whether --enable-libutil was given.
18582if test "${enable_libutil+set}" = set; then :
18583 enableval=$enable_libutil;
18584 if test "x$enableval" = "xno" ; then
18585 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
18586
18587 fi
18588
18589
18590fi
18591
18592# Check whether --enable-pututline was given.
18593if test "${enable_pututline+set}" = set; then :
18594 enableval=$enable_pututline;
18595 if test "x$enableval" = "xno" ; then
18596
18597$as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h
18598
18599 fi
18600
18601
18602fi
18603
18604# Check whether --enable-pututxline was given.
18605if test "${enable_pututxline+set}" = set; then :
18606 enableval=$enable_pututxline;
18607 if test "x$enableval" = "xno" ; then
18608
18609$as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h
18610
18611 fi
18612
18613
18614fi
18615
18616
18617# Check whether --with-lastlog was given.
18618if test "${with_lastlog+set}" = set; then :
18619 withval=$with_lastlog;
18620 if test "x$withval" = "xno" ; then
18621 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
18622
18623 elif test -n "$withval" && test "x${withval}" != "xyes"; then
18624 conf_lastlog_location=$withval
18625 fi
18626
18627
18628fi
18629
18630
18631
18632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5
18633$as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; }
18634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18635/* end confdefs.h. */
18636
18637#include <sys/types.h>
18638#include <utmp.h>
18639#ifdef HAVE_LASTLOG_H
18640# include <lastlog.h>
18641#endif
18642#ifdef HAVE_PATHS_H
18643# include <paths.h>
18644#endif
18645#ifdef HAVE_LOGIN_H
18646# include <login.h>
18647#endif
18648
18649int
18650main ()
18651{
18652 char *lastlog = LASTLOG_FILE;
18653 ;
18654 return 0;
18655}
18656_ACEOF
18657if ac_fn_c_try_compile "$LINENO"; then :
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18659$as_echo "yes" >&6; }
18660else
18661
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18663$as_echo "no" >&6; }
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5
18665$as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; }
18666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18667/* end confdefs.h. */
18668
18669#include <sys/types.h>
18670#include <utmp.h>
18671#ifdef HAVE_LASTLOG_H
18672# include <lastlog.h>
18673#endif
18674#ifdef HAVE_PATHS_H
18675# include <paths.h>
18676#endif
18677
18678int
18679main ()
18680{
18681 char *lastlog = _PATH_LASTLOG;
18682 ;
18683 return 0;
18684}
18685_ACEOF
18686if ac_fn_c_try_compile "$LINENO"; then :
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18688$as_echo "yes" >&6; }
18689else
18690
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18692$as_echo "no" >&6; }
18693 system_lastlog_path=no
18694
18695fi
18696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18697
18698fi
18699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18700
18701if test -z "$conf_lastlog_location"; then
18702 if test x"$system_lastlog_path" = x"no" ; then
18703 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
18704 if (test -d "$f" || test -f "$f") ; then
18705 conf_lastlog_location=$f
18706 fi
18707 done
18708 if test -z "$conf_lastlog_location"; then
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5
18710$as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
18711 fi
18712 fi
18713fi
18714
18715if test -n "$conf_lastlog_location"; then
18716
18717cat >>confdefs.h <<_ACEOF
18718#define CONF_LASTLOG_FILE "$conf_lastlog_location"
18719_ACEOF
18720
18721fi
18722
18723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5
18724$as_echo_n "checking if your system defines UTMP_FILE... " >&6; }
18725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18726/* end confdefs.h. */
18727
18728#include <sys/types.h>
18729#include <utmp.h>
18730#ifdef HAVE_PATHS_H
18731# include <paths.h>
18732#endif
18733
18734int
18735main ()
18736{
18737 char *utmp = UTMP_FILE;
18738 ;
18739 return 0;
18740}
18741_ACEOF
18742if ac_fn_c_try_compile "$LINENO"; then :
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18744$as_echo "yes" >&6; }
18745else
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18747$as_echo "no" >&6; }
18748 system_utmp_path=no
18749
18750fi
18751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18752if test -z "$conf_utmp_location"; then
18753 if test x"$system_utmp_path" = x"no" ; then
18754 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
18755 if test -f $f ; then
18756 conf_utmp_location=$f
18757 fi
18758 done
18759 if test -z "$conf_utmp_location"; then
18760 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
18761
18762 fi
18763 fi
18764fi
18765if test -n "$conf_utmp_location"; then
18766
18767cat >>confdefs.h <<_ACEOF
18768#define CONF_UTMP_FILE "$conf_utmp_location"
18769_ACEOF
18770
18771fi
18772
18773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5
18774$as_echo_n "checking if your system defines WTMP_FILE... " >&6; }
18775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18776/* end confdefs.h. */
18777
18778#include <sys/types.h>
18779#include <utmp.h>
18780#ifdef HAVE_PATHS_H
18781# include <paths.h>
18782#endif
18783
18784int
18785main ()
18786{
18787 char *wtmp = WTMP_FILE;
18788 ;
18789 return 0;
18790}
18791_ACEOF
18792if ac_fn_c_try_compile "$LINENO"; then :
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18794$as_echo "yes" >&6; }
18795else
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18797$as_echo "no" >&6; }
18798 system_wtmp_path=no
18799
18800fi
18801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18802if test -z "$conf_wtmp_location"; then
18803 if test x"$system_wtmp_path" = x"no" ; then
18804 for f in /usr/adm/wtmp /var/log/wtmp; do
18805 if test -f $f ; then
18806 conf_wtmp_location=$f
18807 fi
18808 done
18809 if test -z "$conf_wtmp_location"; then
18810 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
18811
18812 fi
18813 fi
18814fi
18815if test -n "$conf_wtmp_location"; then
18816
18817cat >>confdefs.h <<_ACEOF
18818#define CONF_WTMP_FILE "$conf_wtmp_location"
18819_ACEOF
18820
18821fi
18822
18823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5
18824$as_echo_n "checking if your system defines WTMPX_FILE... " >&6; }
18825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18826/* end confdefs.h. */
18827
18828#include <sys/types.h>
18829#include <utmp.h>
18830#ifdef HAVE_UTMPX_H
18831#include <utmpx.h>
18832#endif
18833#ifdef HAVE_PATHS_H
18834# include <paths.h>
18835#endif
18836
18837int
18838main ()
18839{
18840 char *wtmpx = WTMPX_FILE;
18841 ;
18842 return 0;
18843}
18844_ACEOF
18845if ac_fn_c_try_compile "$LINENO"; then :
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18847$as_echo "yes" >&6; }
18848else
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18850$as_echo "no" >&6; }
18851 system_wtmpx_path=no
18852
18853fi
18854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18855if test -z "$conf_wtmpx_location"; then
18856 if test x"$system_wtmpx_path" = x"no" ; then
18857 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
18858
18859 fi
18860else
18861
18862cat >>confdefs.h <<_ACEOF
18863#define CONF_WTMPX_FILE "$conf_wtmpx_location"
18864_ACEOF
18865
18866fi
18867
18868
18869if test ! -z "$blibpath" ; then
18870 LDFLAGS="$LDFLAGS $blibflags$blibpath"
18871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
18872$as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
18873fi
18874
18875ac_fn_c_check_member "$LINENO" "struct lastlog" "ll_line" "ac_cv_member_struct_lastlog_ll_line" "
18876#ifdef HAVE_SYS_TYPES_H
18877#include <sys/types.h>
18878#endif
18879#ifdef HAVE_UTMP_H
18880#include <utmp.h>
18881#endif
18882#ifdef HAVE_UTMPX_H
18883#include <utmpx.h>
18884#endif
18885#ifdef HAVE_LASTLOG_H
18886#include <lastlog.h>
18887#endif
18888
18889"
18890if test "x$ac_cv_member_struct_lastlog_ll_line" = xyes; then :
18891
18892else
18893
18894 if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then
18895 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
18896
18897 fi
18898
18899fi
18900
18901
18902ac_fn_c_check_member "$LINENO" "struct utmp" "ut_line" "ac_cv_member_struct_utmp_ut_line" "
18903#ifdef HAVE_SYS_TYPES_H
18904#include <sys/types.h>
18905#endif
18906#ifdef HAVE_UTMP_H
18907#include <utmp.h>
18908#endif
18909#ifdef HAVE_UTMPX_H
18910#include <utmpx.h>
18911#endif
18912#ifdef HAVE_LASTLOG_H
18913#include <lastlog.h>
18914#endif
18915
18916"
18917if test "x$ac_cv_member_struct_utmp_ut_line" = xyes; then :
18918
18919else
18920
18921 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
18922
18923 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
18924
18925
18926fi
18927
18928
18929CFLAGS="$CFLAGS $werror_flags"
18930
18931if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
18932 TEST_SSH_IPV6=no
18933else
18934 TEST_SSH_IPV6=yes
18935fi
18936ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default"
18937if test "x$ac_cv_have_decl_BROKEN_GETADDRINFO" = xyes; then :
18938 TEST_SSH_IPV6=no
18939fi
18940
18941TEST_SSH_IPV6=$TEST_SSH_IPV6
18942
18943TEST_SSH_UTF8=$TEST_SSH_UTF8
18944
18945TEST_MALLOC_OPTIONS=$TEST_MALLOC_OPTIONS
18946
18947UNSUPPORTED_ALGORITHMS=$unsupported_algorithms
18948
18949
18950
18951ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh"
18952
18953cat >confcache <<\_ACEOF
18954# This file is a shell script that caches the results of configure
18955# tests run on this system so they can be shared between configure
18956# scripts and configure runs, see configure's option --config-cache.
18957# It is not useful on other systems. If it contains results you don't
18958# want to keep, you may remove or edit it.
18959#
18960# config.status only pays attention to the cache file if you give it
18961# the --recheck option to rerun configure.
18962#
18963# `ac_cv_env_foo' variables (set or unset) will be overridden when
18964# loading this file, other *unset* `ac_cv_foo' will be assigned the
18965# following values.
18966
18967_ACEOF
18968
18969# The following way of writing the cache mishandles newlines in values,
18970# but we know of no workaround that is simple, portable, and efficient.
18971# So, we kill variables containing newlines.
18972# Ultrix sh set writes to stderr and can't be redirected directly,
18973# and sets the high bit in the cache file unless we assign to the vars.
18974(
18975 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18976 eval ac_val=\$$ac_var
18977 case $ac_val in #(
18978 *${as_nl}*)
18979 case $ac_var in #(
18980 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18981$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18982 esac
18983 case $ac_var in #(
18984 _ | IFS | as_nl) ;; #(
18985 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18986 *) { eval $ac_var=; unset $ac_var;} ;;
18987 esac ;;
18988 esac
18989 done
18990
18991 (set) 2>&1 |
18992 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18993 *${as_nl}ac_space=\ *)
18994 # `set' does not quote correctly, so add quotes: double-quote
18995 # substitution turns \\\\ into \\, and sed turns \\ into \.
18996 sed -n \
18997 "s/'/'\\\\''/g;
18998 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18999 ;; #(
19000 *)
19001 # `set' quotes correctly as required by POSIX, so do not add quotes.
19002 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19003 ;;
19004 esac |
19005 sort
19006) |
19007 sed '
19008 /^ac_cv_env_/b end
19009 t clear
19010 :clear
19011 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19012 t end
19013 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19014 :end' >>confcache
19015if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19016 if test -w "$cache_file"; then
19017 if test "x$cache_file" != "x/dev/null"; then
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19019$as_echo "$as_me: updating cache $cache_file" >&6;}
19020 if test ! -f "$cache_file" || test -h "$cache_file"; then
19021 cat confcache >"$cache_file"
19022 else
19023 case $cache_file in #(
19024 */* | ?:*)
19025 mv -f confcache "$cache_file"$$ &&
19026 mv -f "$cache_file"$$ "$cache_file" ;; #(
19027 *)
19028 mv -f confcache "$cache_file" ;;
19029 esac
19030 fi
19031 fi
19032 else
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19034$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19035 fi
19036fi
19037rm -f confcache
19038
19039test "x$prefix" = xNONE && prefix=$ac_default_prefix
19040# Let make expand exec_prefix.
19041test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19042
19043DEFS=-DHAVE_CONFIG_H
19044
19045ac_libobjs=
19046ac_ltlibobjs=
19047U=
19048for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19049 # 1. Remove the extension, and $U if already installed.
19050 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19051 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19052 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19053 # will be set to the directory where LIBOBJS objects are built.
19054 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19055 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19056done
19057LIBOBJS=$ac_libobjs
19058
19059LTLIBOBJS=$ac_ltlibobjs
19060
19061
19062
19063
19064: "${CONFIG_STATUS=./config.status}"
19065ac_write_fail=0
19066ac_clean_files_save=$ac_clean_files
19067ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19068{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19069$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19070as_write_fail=0
19071cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19072#! $SHELL
19073# Generated by $as_me.
19074# Run this file to recreate the current configuration.
19075# Compiler output produced by configure, useful for debugging
19076# configure, is in config.log if it exists.
19077
19078debug=false
19079ac_cs_recheck=false
19080ac_cs_silent=false
19081
19082SHELL=\${CONFIG_SHELL-$SHELL}
19083export SHELL
19084_ASEOF
19085cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19086## -------------------- ##
19087## M4sh Initialization. ##
19088## -------------------- ##
19089
19090# Be more Bourne compatible
19091DUALCASE=1; export DUALCASE # for MKS sh
19092if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19093 emulate sh
19094 NULLCMD=:
19095 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19096 # is contrary to our usage. Disable this feature.
19097 alias -g '${1+"$@"}'='"$@"'
19098 setopt NO_GLOB_SUBST
19099else
19100 case `(set -o) 2>/dev/null` in #(
19101 *posix*) :
19102 set -o posix ;; #(
19103 *) :
19104 ;;
19105esac
19106fi
19107
19108
19109as_nl='
19110'
19111export as_nl
19112# Printing a long string crashes Solaris 7 /usr/bin/printf.
19113as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19114as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19115as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19116# Prefer a ksh shell builtin over an external printf program on Solaris,
19117# but without wasting forks for bash or zsh.
19118if test -z "$BASH_VERSION$ZSH_VERSION" \
19119 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19120 as_echo='print -r --'
19121 as_echo_n='print -rn --'
19122elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19123 as_echo='printf %s\n'
19124 as_echo_n='printf %s'
19125else
19126 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19127 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19128 as_echo_n='/usr/ucb/echo -n'
19129 else
19130 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19131 as_echo_n_body='eval
19132 arg=$1;
19133 case $arg in #(
19134 *"$as_nl"*)
19135 expr "X$arg" : "X\\(.*\\)$as_nl";
19136 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19137 esac;
19138 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19139 '
19140 export as_echo_n_body
19141 as_echo_n='sh -c $as_echo_n_body as_echo'
19142 fi
19143 export as_echo_body
19144 as_echo='sh -c $as_echo_body as_echo'
19145fi
19146
19147# The user is always right.
19148if test "${PATH_SEPARATOR+set}" != set; then
19149 PATH_SEPARATOR=:
19150 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19151 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19152 PATH_SEPARATOR=';'
19153 }
19154fi
19155
19156
19157# IFS
19158# We need space, tab and new line, in precisely that order. Quoting is
19159# there to prevent editors from complaining about space-tab.
19160# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19161# splitting by setting IFS to empty value.)
19162IFS=" "" $as_nl"
19163
19164# Find who we are. Look in the path if we contain no directory separator.
19165as_myself=
19166case $0 in #((
19167 *[\\/]* ) as_myself=$0 ;;
19168 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19169for as_dir in $PATH
19170do
19171 IFS=$as_save_IFS
19172 test -z "$as_dir" && as_dir=.
19173 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19174 done
19175IFS=$as_save_IFS
19176
19177 ;;
19178esac
19179# We did not find ourselves, most probably we were run as `sh COMMAND'
19180# in which case we are not to be found in the path.
19181if test "x$as_myself" = x; then
19182 as_myself=$0
19183fi
19184if test ! -f "$as_myself"; then
19185 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19186 exit 1
19187fi
19188
19189# Unset variables that we do not need and which cause bugs (e.g. in
19190# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19191# suppresses any "Segmentation fault" message there. '((' could
19192# trigger a bug in pdksh 5.2.14.
19193for as_var in BASH_ENV ENV MAIL MAILPATH
19194do eval test x\${$as_var+set} = xset \
19195 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19196done
19197PS1='$ '
19198PS2='> '
19199PS4='+ '
19200
19201# NLS nuisances.
19202LC_ALL=C
19203export LC_ALL
19204LANGUAGE=C
19205export LANGUAGE
19206
19207# CDPATH.
19208(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19209
19210
19211# as_fn_error STATUS ERROR [LINENO LOG_FD]
19212# ----------------------------------------
19213# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19214# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19215# script with STATUS, using 1 if that was 0.
19216as_fn_error ()
19217{
19218 as_status=$1; test $as_status -eq 0 && as_status=1
19219 if test "$4"; then
19220 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19221 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19222 fi
19223 $as_echo "$as_me: error: $2" >&2
19224 as_fn_exit $as_status
19225} # as_fn_error
19226
19227
19228# as_fn_set_status STATUS
19229# -----------------------
19230# Set $? to STATUS, without forking.
19231as_fn_set_status ()
19232{
19233 return $1
19234} # as_fn_set_status
19235
19236# as_fn_exit STATUS
19237# -----------------
19238# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19239as_fn_exit ()
19240{
19241 set +e
19242 as_fn_set_status $1
19243 exit $1
19244} # as_fn_exit
19245
19246# as_fn_unset VAR
19247# ---------------
19248# Portably unset VAR.
19249as_fn_unset ()
19250{
19251 { eval $1=; unset $1;}
19252}
19253as_unset=as_fn_unset
19254# as_fn_append VAR VALUE
19255# ----------------------
19256# Append the text in VALUE to the end of the definition contained in VAR. Take
19257# advantage of any shell optimizations that allow amortized linear growth over
19258# repeated appends, instead of the typical quadratic growth present in naive
19259# implementations.
19260if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19261 eval 'as_fn_append ()
19262 {
19263 eval $1+=\$2
19264 }'
19265else
19266 as_fn_append ()
19267 {
19268 eval $1=\$$1\$2
19269 }
19270fi # as_fn_append
19271
19272# as_fn_arith ARG...
19273# ------------------
19274# Perform arithmetic evaluation on the ARGs, and store the result in the
19275# global $as_val. Take advantage of shells that can avoid forks. The arguments
19276# must be portable across $(()) and expr.
19277if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19278 eval 'as_fn_arith ()
19279 {
19280 as_val=$(( $* ))
19281 }'
19282else
19283 as_fn_arith ()
19284 {
19285 as_val=`expr "$@" || test $? -eq 1`
19286 }
19287fi # as_fn_arith
19288
19289
19290if expr a : '\(a\)' >/dev/null 2>&1 &&
19291 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19292 as_expr=expr
19293else
19294 as_expr=false
19295fi
19296
19297if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19298 as_basename=basename
19299else
19300 as_basename=false
19301fi
19302
19303if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19304 as_dirname=dirname
19305else
19306 as_dirname=false
19307fi
19308
19309as_me=`$as_basename -- "$0" ||
19310$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19311 X"$0" : 'X\(//\)$' \| \
19312 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19313$as_echo X/"$0" |
19314 sed '/^.*\/\([^/][^/]*\)\/*$/{
19315 s//\1/
19316 q
19317 }
19318 /^X\/\(\/\/\)$/{
19319 s//\1/
19320 q
19321 }
19322 /^X\/\(\/\).*/{
19323 s//\1/
19324 q
19325 }
19326 s/.*/./; q'`
19327
19328# Avoid depending upon Character Ranges.
19329as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19330as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19331as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19332as_cr_digits='0123456789'
19333as_cr_alnum=$as_cr_Letters$as_cr_digits
19334
19335ECHO_C= ECHO_N= ECHO_T=
19336case `echo -n x` in #(((((
19337-n*)
19338 case `echo 'xy\c'` in
19339 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19340 xy) ECHO_C='\c';;
19341 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19342 ECHO_T=' ';;
19343 esac;;
19344*)
19345 ECHO_N='-n';;
19346esac
19347
19348rm -f conf$$ conf$$.exe conf$$.file
19349if test -d conf$$.dir; then
19350 rm -f conf$$.dir/conf$$.file
19351else
19352 rm -f conf$$.dir
19353 mkdir conf$$.dir 2>/dev/null
19354fi
19355if (echo >conf$$.file) 2>/dev/null; then
19356 if ln -s conf$$.file conf$$ 2>/dev/null; then
19357 as_ln_s='ln -s'
19358 # ... but there are two gotchas:
19359 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19360 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19361 # In both cases, we have to default to `cp -pR'.
19362 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19363 as_ln_s='cp -pR'
19364 elif ln conf$$.file conf$$ 2>/dev/null; then
19365 as_ln_s=ln
19366 else
19367 as_ln_s='cp -pR'
19368 fi
19369else
19370 as_ln_s='cp -pR'
19371fi
19372rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19373rmdir conf$$.dir 2>/dev/null
19374
19375
19376# as_fn_mkdir_p
19377# -------------
19378# Create "$as_dir" as a directory, including parents if necessary.
19379as_fn_mkdir_p ()
19380{
19381
19382 case $as_dir in #(
19383 -*) as_dir=./$as_dir;;
19384 esac
19385 test -d "$as_dir" || eval $as_mkdir_p || {
19386 as_dirs=
19387 while :; do
19388 case $as_dir in #(
19389 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19390 *) as_qdir=$as_dir;;
19391 esac
19392 as_dirs="'$as_qdir' $as_dirs"
19393 as_dir=`$as_dirname -- "$as_dir" ||
19394$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19395 X"$as_dir" : 'X\(//\)[^/]' \| \
19396 X"$as_dir" : 'X\(//\)$' \| \
19397 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19398$as_echo X"$as_dir" |
19399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19400 s//\1/
19401 q
19402 }
19403 /^X\(\/\/\)[^/].*/{
19404 s//\1/
19405 q
19406 }
19407 /^X\(\/\/\)$/{
19408 s//\1/
19409 q
19410 }
19411 /^X\(\/\).*/{
19412 s//\1/
19413 q
19414 }
19415 s/.*/./; q'`
19416 test -d "$as_dir" && break
19417 done
19418 test -z "$as_dirs" || eval "mkdir $as_dirs"
19419 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19420
19421
19422} # as_fn_mkdir_p
19423if mkdir -p . 2>/dev/null; then
19424 as_mkdir_p='mkdir -p "$as_dir"'
19425else
19426 test -d ./-p && rmdir ./-p
19427 as_mkdir_p=false
19428fi
19429
19430
19431# as_fn_executable_p FILE
19432# -----------------------
19433# Test if FILE is an executable regular file.
19434as_fn_executable_p ()
19435{
19436 test -f "$1" && test -x "$1"
19437} # as_fn_executable_p
19438as_test_x='test -x'
19439as_executable_p=as_fn_executable_p
19440
19441# Sed expression to map a string onto a valid CPP name.
19442as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19443
19444# Sed expression to map a string onto a valid variable name.
19445as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19446
19447
19448exec 6>&1
19449## ----------------------------------- ##
19450## Main body of $CONFIG_STATUS script. ##
19451## ----------------------------------- ##
19452_ASEOF
19453test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19454
19455cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19456# Save the log message, to keep $0 and so on meaningful, and to
19457# report actual input values of CONFIG_FILES etc. instead of their
19458# values after options handling.
19459ac_log="
19460This file was extended by OpenSSH $as_me Portable, which was
19461generated by GNU Autoconf 2.69. Invocation command line was
19462
19463 CONFIG_FILES = $CONFIG_FILES
19464 CONFIG_HEADERS = $CONFIG_HEADERS
19465 CONFIG_LINKS = $CONFIG_LINKS
19466 CONFIG_COMMANDS = $CONFIG_COMMANDS
19467 $ $0 $@
19468
19469on `(hostname || uname -n) 2>/dev/null | sed 1q`
19470"
19471
19472_ACEOF
19473
19474case $ac_config_files in *"
19475"*) set x $ac_config_files; shift; ac_config_files=$*;;
19476esac
19477
19478case $ac_config_headers in *"
19479"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19480esac
19481
19482
19483cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19484# Files that config.status was made for.
19485config_files="$ac_config_files"
19486config_headers="$ac_config_headers"
19487
19488_ACEOF
19489
19490cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19491ac_cs_usage="\
19492\`$as_me' instantiates files and other configuration actions
19493from templates according to the current configuration. Unless the files
19494and actions are specified as TAGs, all are instantiated by default.
19495
19496Usage: $0 [OPTION]... [TAG]...
19497
19498 -h, --help print this help, then exit
19499 -V, --version print version number and configuration settings, then exit
19500 --config print configuration, then exit
19501 -q, --quiet, --silent
19502 do not print progress messages
19503 -d, --debug don't remove temporary files
19504 --recheck update $as_me by reconfiguring in the same conditions
19505 --file=FILE[:TEMPLATE]
19506 instantiate the configuration file FILE
19507 --header=FILE[:TEMPLATE]
19508 instantiate the configuration header FILE
19509
19510Configuration files:
19511$config_files
19512
19513Configuration headers:
19514$config_headers
19515
19516Report bugs to <openssh-unix-dev@mindrot.org>."
19517
19518_ACEOF
19519cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19520ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19521ac_cs_version="\\
19522OpenSSH config.status Portable
19523configured by $0, generated by GNU Autoconf 2.69,
19524 with options \\"\$ac_cs_config\\"
19525
19526Copyright (C) 2012 Free Software Foundation, Inc.
19527This config.status script is free software; the Free Software Foundation
19528gives unlimited permission to copy, distribute and modify it."
19529
19530ac_pwd='$ac_pwd'
19531srcdir='$srcdir'
19532INSTALL='$INSTALL'
19533AWK='$AWK'
19534test -n "\$AWK" || AWK=awk
19535_ACEOF
19536
19537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19538# The default lists apply if the user does not specify any file.
19539ac_need_defaults=:
19540while test $# != 0
19541do
19542 case $1 in
19543 --*=?*)
19544 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19545 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19546 ac_shift=:
19547 ;;
19548 --*=)
19549 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19550 ac_optarg=
19551 ac_shift=:
19552 ;;
19553 *)
19554 ac_option=$1
19555 ac_optarg=$2
19556 ac_shift=shift
19557 ;;
19558 esac
19559
19560 case $ac_option in
19561 # Handling of the options.
19562 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19563 ac_cs_recheck=: ;;
19564 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19565 $as_echo "$ac_cs_version"; exit ;;
19566 --config | --confi | --conf | --con | --co | --c )
19567 $as_echo "$ac_cs_config"; exit ;;
19568 --debug | --debu | --deb | --de | --d | -d )
19569 debug=: ;;
19570 --file | --fil | --fi | --f )
19571 $ac_shift
19572 case $ac_optarg in
19573 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19574 '') as_fn_error $? "missing file argument" ;;
19575 esac
19576 as_fn_append CONFIG_FILES " '$ac_optarg'"
19577 ac_need_defaults=false;;
19578 --header | --heade | --head | --hea )
19579 $ac_shift
19580 case $ac_optarg in
19581 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19582 esac
19583 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19584 ac_need_defaults=false;;
19585 --he | --h)
19586 # Conflict between --help and --header
19587 as_fn_error $? "ambiguous option: \`$1'
19588Try \`$0 --help' for more information.";;
19589 --help | --hel | -h )
19590 $as_echo "$ac_cs_usage"; exit ;;
19591 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19592 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19593 ac_cs_silent=: ;;
19594
19595 # This is an error.
19596 -*) as_fn_error $? "unrecognized option: \`$1'
19597Try \`$0 --help' for more information." ;;
19598
19599 *) as_fn_append ac_config_targets " $1"
19600 ac_need_defaults=false ;;
19601
19602 esac
19603 shift
19604done
19605
19606ac_configure_extra_args=
19607
19608if $ac_cs_silent; then
19609 exec 6>/dev/null
19610 ac_configure_extra_args="$ac_configure_extra_args --silent"
19611fi
19612
19613_ACEOF
19614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19615if \$ac_cs_recheck; then
19616 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19617 shift
19618 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19619 CONFIG_SHELL='$SHELL'
19620 export CONFIG_SHELL
19621 exec "\$@"
19622fi
19623
19624_ACEOF
19625cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19626exec 5>>config.log
19627{
19628 echo
19629 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19630## Running $as_me. ##
19631_ASBOX
19632 $as_echo "$ac_log"
19633} >&5
19634
19635_ACEOF
19636cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19637_ACEOF
19638
19639cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19640
19641# Handling of arguments.
19642for ac_config_target in $ac_config_targets
19643do
19644 case $ac_config_target in
19645 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19646 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19647 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
19648 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
19649 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
19650 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
19651 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
19652 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
19653
19654 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19655 esac
19656done
19657
19658
19659# If the user did not use the arguments to specify the items to instantiate,
19660# then the envvar interface is used. Set only those that are not.
19661# We use the long form for the default assignment because of an extremely
19662# bizarre bug on SunOS 4.1.3.
19663if $ac_need_defaults; then
19664 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19665 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19666fi
19667
19668# Have a temporary directory for convenience. Make it in the build tree
19669# simply because there is no reason against having it here, and in addition,
19670# creating and moving files from /tmp can sometimes cause problems.
19671# Hook for its removal unless debugging.
19672# Note that there is a small window in which the directory will not be cleaned:
19673# after its creation but before its name has been assigned to `$tmp'.
19674$debug ||
19675{
19676 tmp= ac_tmp=
19677 trap 'exit_status=$?
19678 : "${ac_tmp:=$tmp}"
19679 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19680' 0
19681 trap 'as_fn_exit 1' 1 2 13 15
19682}
19683# Create a (secure) tmp directory for tmp files.
19684
19685{
19686 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19687 test -d "$tmp"
19688} ||
19689{
19690 tmp=./conf$$-$RANDOM
19691 (umask 077 && mkdir "$tmp")
19692} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19693ac_tmp=$tmp
19694
19695# Set up the scripts for CONFIG_FILES section.
19696# No need to generate them if there are no CONFIG_FILES.
19697# This happens for instance with `./config.status config.h'.
19698if test -n "$CONFIG_FILES"; then
19699
19700
19701ac_cr=`echo X | tr X '\015'`
19702# On cygwin, bash can eat \r inside `` if the user requested igncr.
19703# But we know of no other shell where ac_cr would be empty at this
19704# point, so we can use a bashism as a fallback.
19705if test "x$ac_cr" = x; then
19706 eval ac_cr=\$\'\\r\'
19707fi
19708ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19709if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19710 ac_cs_awk_cr='\\r'
19711else
19712 ac_cs_awk_cr=$ac_cr
19713fi
19714
19715echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19716_ACEOF
19717
19718
19719{
19720 echo "cat >conf$$subs.awk <<_ACEOF" &&
19721 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19722 echo "_ACEOF"
19723} >conf$$subs.sh ||
19724 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19725ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19726ac_delim='%!_!# '
19727for ac_last_try in false false false false false :; do
19728 . ./conf$$subs.sh ||
19729 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19730
19731 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19732 if test $ac_delim_n = $ac_delim_num; then
19733 break
19734 elif $ac_last_try; then
19735 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19736 else
19737 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19738 fi
19739done
19740rm -f conf$$subs.sh
19741
19742cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19743cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19744_ACEOF
19745sed -n '
19746h
19747s/^/S["/; s/!.*/"]=/
19748p
19749g
19750s/^[^!]*!//
19751:repl
19752t repl
19753s/'"$ac_delim"'$//
19754t delim
19755:nl
19756h
19757s/\(.\{148\}\)..*/\1/
19758t more1
19759s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19760p
19761n
19762b repl
19763:more1
19764s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19765p
19766g
19767s/.\{148\}//
19768t nl
19769:delim
19770h
19771s/\(.\{148\}\)..*/\1/
19772t more2
19773s/["\\]/\\&/g; s/^/"/; s/$/"/
19774p
19775b
19776:more2
19777s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19778p
19779g
19780s/.\{148\}//
19781t delim
19782' <conf$$subs.awk | sed '
19783/^[^""]/{
19784 N
19785 s/\n//
19786}
19787' >>$CONFIG_STATUS || ac_write_fail=1
19788rm -f conf$$subs.awk
19789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19790_ACAWK
19791cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19792 for (key in S) S_is_set[key] = 1
19793 FS = ""
19794
19795}
19796{
19797 line = $ 0
19798 nfields = split(line, field, "@")
19799 substed = 0
19800 len = length(field[1])
19801 for (i = 2; i < nfields; i++) {
19802 key = field[i]
19803 keylen = length(key)
19804 if (S_is_set[key]) {
19805 value = S[key]
19806 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19807 len += length(value) + length(field[++i])
19808 substed = 1
19809 } else
19810 len += 1 + keylen
19811 }
19812
19813 print line
19814}
19815
19816_ACAWK
19817_ACEOF
19818cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19819if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19820 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19821else
19822 cat
19823fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19824 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19825_ACEOF
19826
19827# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19828# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19829# trailing colons and then remove the whole line if VPATH becomes empty
19830# (actually we leave an empty line to preserve line numbers).
19831if test "x$srcdir" = x.; then
19832 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19833h
19834s///
19835s/^/:/
19836s/[ ]*$/:/
19837s/:\$(srcdir):/:/g
19838s/:\${srcdir}:/:/g
19839s/:@srcdir@:/:/g
19840s/^:*//
19841s/:*$//
19842x
19843s/\(=[ ]*\).*/\1/
19844G
19845s/\n//
19846s/^[^=]*=[ ]*$//
19847}'
19848fi
19849
19850cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19851fi # test -n "$CONFIG_FILES"
19852
19853# Set up the scripts for CONFIG_HEADERS section.
19854# No need to generate them if there are no CONFIG_HEADERS.
19855# This happens for instance with `./config.status Makefile'.
19856if test -n "$CONFIG_HEADERS"; then
19857cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19858BEGIN {
19859_ACEOF
19860
19861# Transform confdefs.h into an awk script `defines.awk', embedded as
19862# here-document in config.status, that substitutes the proper values into
19863# config.h.in to produce config.h.
19864
19865# Create a delimiter string that does not exist in confdefs.h, to ease
19866# handling of long lines.
19867ac_delim='%!_!# '
19868for ac_last_try in false false :; do
19869 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19870 if test -z "$ac_tt"; then
19871 break
19872 elif $ac_last_try; then
19873 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19874 else
19875 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19876 fi
19877done
19878
19879# For the awk script, D is an array of macro values keyed by name,
19880# likewise P contains macro parameters if any. Preserve backslash
19881# newline sequences.
19882
19883ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19884sed -n '
19885s/.\{148\}/&'"$ac_delim"'/g
19886t rset
19887:rset
19888s/^[ ]*#[ ]*define[ ][ ]*/ /
19889t def
19890d
19891:def
19892s/\\$//
19893t bsnl
19894s/["\\]/\\&/g
19895s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19896D["\1"]=" \3"/p
19897s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19898d
19899:bsnl
19900s/["\\]/\\&/g
19901s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19902D["\1"]=" \3\\\\\\n"\\/p
19903t cont
19904s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19905t cont
19906d
19907:cont
19908n
19909s/.\{148\}/&'"$ac_delim"'/g
19910t clear
19911:clear
19912s/\\$//
19913t bsnlc
19914s/["\\]/\\&/g; s/^/"/; s/$/"/p
19915d
19916:bsnlc
19917s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19918b cont
19919' <confdefs.h | sed '
19920s/'"$ac_delim"'/"\\\
19921"/g' >>$CONFIG_STATUS || ac_write_fail=1
19922
19923cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19924 for (key in D) D_is_set[key] = 1
19925 FS = ""
19926}
19927/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19928 line = \$ 0
19929 split(line, arg, " ")
19930 if (arg[1] == "#") {
19931 defundef = arg[2]
19932 mac1 = arg[3]
19933 } else {
19934 defundef = substr(arg[1], 2)
19935 mac1 = arg[2]
19936 }
19937 split(mac1, mac2, "(") #)
19938 macro = mac2[1]
19939 prefix = substr(line, 1, index(line, defundef) - 1)
19940 if (D_is_set[macro]) {
19941 # Preserve the white space surrounding the "#".
19942 print prefix "define", macro P[macro] D[macro]
19943 next
19944 } else {
19945 # Replace #undef with comments. This is necessary, for example,
19946 # in the case of _POSIX_SOURCE, which is predefined and required
19947 # on some systems where configure will not decide to define it.
19948 if (defundef == "undef") {
19949 print "/*", prefix defundef, macro, "*/"
19950 next
19951 }
19952 }
19953}
19954{ print }
19955_ACAWK
19956_ACEOF
19957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19958 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19959fi # test -n "$CONFIG_HEADERS"
19960
19961
19962eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
19963shift
19964for ac_tag
19965do
19966 case $ac_tag in
19967 :[FHLC]) ac_mode=$ac_tag; continue;;
19968 esac
19969 case $ac_mode$ac_tag in
19970 :[FHL]*:*);;
19971 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19972 :[FH]-) ac_tag=-:-;;
19973 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19974 esac
19975 ac_save_IFS=$IFS
19976 IFS=:
19977 set x $ac_tag
19978 IFS=$ac_save_IFS
19979 shift
19980 ac_file=$1
19981 shift
19982
19983 case $ac_mode in
19984 :L) ac_source=$1;;
19985 :[FH])
19986 ac_file_inputs=
19987 for ac_f
19988 do
19989 case $ac_f in
19990 -) ac_f="$ac_tmp/stdin";;
19991 *) # Look for the file first in the build tree, then in the source tree
19992 # (if the path is not absolute). The absolute path cannot be DOS-style,
19993 # because $ac_f cannot contain `:'.
19994 test -f "$ac_f" ||
19995 case $ac_f in
19996 [\\/$]*) false;;
19997 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19998 esac ||
19999 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20000 esac
20001 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20002 as_fn_append ac_file_inputs " '$ac_f'"
20003 done
20004
20005 # Let's still pretend it is `configure' which instantiates (i.e., don't
20006 # use $as_me), people would be surprised to read:
20007 # /* config.h. Generated by config.status. */
20008 configure_input='Generated from '`
20009 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20010 `' by configure.'
20011 if test x"$ac_file" != x-; then
20012 configure_input="$ac_file. $configure_input"
20013 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20014$as_echo "$as_me: creating $ac_file" >&6;}
20015 fi
20016 # Neutralize special characters interpreted by sed in replacement strings.
20017 case $configure_input in #(
20018 *\&* | *\|* | *\\* )
20019 ac_sed_conf_input=`$as_echo "$configure_input" |
20020 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20021 *) ac_sed_conf_input=$configure_input;;
20022 esac
20023
20024 case $ac_tag in
20025 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20026 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20027 esac
20028 ;;
20029 esac
20030
20031 ac_dir=`$as_dirname -- "$ac_file" ||
20032$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20033 X"$ac_file" : 'X\(//\)[^/]' \| \
20034 X"$ac_file" : 'X\(//\)$' \| \
20035 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20036$as_echo X"$ac_file" |
20037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20038 s//\1/
20039 q
20040 }
20041 /^X\(\/\/\)[^/].*/{
20042 s//\1/
20043 q
20044 }
20045 /^X\(\/\/\)$/{
20046 s//\1/
20047 q
20048 }
20049 /^X\(\/\).*/{
20050 s//\1/
20051 q
20052 }
20053 s/.*/./; q'`
20054 as_dir="$ac_dir"; as_fn_mkdir_p
20055 ac_builddir=.
20056
20057case "$ac_dir" in
20058.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20059*)
20060 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20061 # A ".." for each directory in $ac_dir_suffix.
20062 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20063 case $ac_top_builddir_sub in
20064 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20065 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20066 esac ;;
20067esac
20068ac_abs_top_builddir=$ac_pwd
20069ac_abs_builddir=$ac_pwd$ac_dir_suffix
20070# for backward compatibility:
20071ac_top_builddir=$ac_top_build_prefix
20072
20073case $srcdir in
20074 .) # We are building in place.
20075 ac_srcdir=.
20076 ac_top_srcdir=$ac_top_builddir_sub
20077 ac_abs_top_srcdir=$ac_pwd ;;
20078 [\\/]* | ?:[\\/]* ) # Absolute name.
20079 ac_srcdir=$srcdir$ac_dir_suffix;
20080 ac_top_srcdir=$srcdir
20081 ac_abs_top_srcdir=$srcdir ;;
20082 *) # Relative name.
20083 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20084 ac_top_srcdir=$ac_top_build_prefix$srcdir
20085 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20086esac
20087ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20088
20089
20090 case $ac_mode in
20091 :F)
20092 #
20093 # CONFIG_FILE
20094 #
20095
20096 case $INSTALL in
20097 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20098 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20099 esac
20100_ACEOF
20101
20102cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20103# If the template does not know about datarootdir, expand it.
20104# FIXME: This hack should be removed a few years after 2.60.
20105ac_datarootdir_hack=; ac_datarootdir_seen=
20106ac_sed_dataroot='
20107/datarootdir/ {
20108 p
20109 q
20110}
20111/@datadir@/p
20112/@docdir@/p
20113/@infodir@/p
20114/@localedir@/p
20115/@mandir@/p'
20116case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20117*datarootdir*) ac_datarootdir_seen=yes;;
20118*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20120$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20121_ACEOF
20122cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20123 ac_datarootdir_hack='
20124 s&@datadir@&$datadir&g
20125 s&@docdir@&$docdir&g
20126 s&@infodir@&$infodir&g
20127 s&@localedir@&$localedir&g
20128 s&@mandir@&$mandir&g
20129 s&\\\${datarootdir}&$datarootdir&g' ;;
20130esac
20131_ACEOF
20132
20133# Neutralize VPATH when `$srcdir' = `.'.
20134# Shell code in configure.ac might set extrasub.
20135# FIXME: do we really want to maintain this feature?
20136cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20137ac_sed_extra="$ac_vpsub
20138$extrasub
20139_ACEOF
20140cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20141:t
20142/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20143s|@configure_input@|$ac_sed_conf_input|;t t
20144s&@top_builddir@&$ac_top_builddir_sub&;t t
20145s&@top_build_prefix@&$ac_top_build_prefix&;t t
20146s&@srcdir@&$ac_srcdir&;t t
20147s&@abs_srcdir@&$ac_abs_srcdir&;t t
20148s&@top_srcdir@&$ac_top_srcdir&;t t
20149s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20150s&@builddir@&$ac_builddir&;t t
20151s&@abs_builddir@&$ac_abs_builddir&;t t
20152s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20153s&@INSTALL@&$ac_INSTALL&;t t
20154$ac_datarootdir_hack
20155"
20156eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20157 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20158
20159test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20160 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20161 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20162 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20164which seems to be undefined. Please make sure it is defined" >&5
20165$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20166which seems to be undefined. Please make sure it is defined" >&2;}
20167
20168 rm -f "$ac_tmp/stdin"
20169 case $ac_file in
20170 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20171 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20172 esac \
20173 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20174 ;;
20175 :H)
20176 #
20177 # CONFIG_HEADER
20178 #
20179 if test x"$ac_file" != x-; then
20180 {
20181 $as_echo "/* $configure_input */" \
20182 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20183 } >"$ac_tmp/config.h" \
20184 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20185 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20186 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20187$as_echo "$as_me: $ac_file is unchanged" >&6;}
20188 else
20189 rm -f "$ac_file"
20190 mv "$ac_tmp/config.h" "$ac_file" \
20191 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20192 fi
20193 else
20194 $as_echo "/* $configure_input */" \
20195 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20196 || as_fn_error $? "could not create -" "$LINENO" 5
20197 fi
20198 ;;
20199
20200
20201 esac
20202
20203done # for ac_tag
20204
20205
20206as_fn_exit 0
20207_ACEOF
20208ac_clean_files=$ac_clean_files_save
20209
20210test $ac_write_fail = 0 ||
20211 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20212
20213
20214# configure is writing to config.log, and then calls config.status.
20215# config.status does its own redirection, appending to config.log.
20216# Unfortunately, on DOS this fails, as config.log is still kept open
20217# by configure, so config.status won't be able to write to it; its
20218# output is simply discarded. So we exec the FD to /dev/null,
20219# effectively closing config.log, so it can be properly (re)opened and
20220# appended to by config.status. When coming back to configure, we
20221# need to make the FD available again.
20222if test "$no_create" != yes; then
20223 ac_cs_success=:
20224 ac_config_status_args=
20225 test "$silent" = yes &&
20226 ac_config_status_args="$ac_config_status_args --quiet"
20227 exec 5>/dev/null
20228 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20229 exec 5>>config.log
20230 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20231 # would make configure fail if this is the last instruction.
20232 $ac_cs_success || as_fn_exit 1
20233fi
20234if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20236$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20237fi
20238
20239
20240# Print summary of options
20241
20242# Someone please show me a better way :)
20243A=`eval echo ${prefix}` ; A=`eval echo ${A}`
20244B=`eval echo ${bindir}` ; B=`eval echo ${B}`
20245C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
20246D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
20247E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
20248F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
20249G=`eval echo ${piddir}` ; G=`eval echo ${G}`
20250H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
20251I=`eval echo ${user_path}` ; I=`eval echo ${I}`
20252J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
20253
20254echo ""
20255echo "OpenSSH has been configured with the following options:"
20256echo " User binaries: $B"
20257echo " System binaries: $C"
20258echo " Configuration files: $D"
20259echo " Askpass program: $E"
20260echo " Manual pages: $F"
20261echo " PID file: $G"
20262echo " Privilege separation chroot path: $H"
20263if test "x$external_path_file" = "x/etc/login.conf" ; then
20264echo " At runtime, sshd will use the path defined in $external_path_file"
20265echo " Make sure the path to scp is present, otherwise scp will not work"
20266else
20267echo " sshd default user PATH: $I"
20268 if test ! -z "$external_path_file"; then
20269echo " (If PATH is set in $external_path_file it will be used instead. If"
20270echo " used, ensure the path to scp is present, otherwise scp will not work.)"
20271 fi
20272fi
20273if test ! -z "$superuser_path" ; then
20274echo " sshd superuser user PATH: $J"
20275fi
20276echo " Manpage format: $MANTYPE"
20277echo " PAM support: $PAM_MSG"
20278echo " OSF SIA support: $SIA_MSG"
20279echo " KerberosV support: $KRB5_MSG"
20280echo " SELinux support: $SELINUX_MSG"
20281echo " Smartcard support: $SCARD_MSG"
20282echo " S/KEY support: $SKEY_MSG"
20283echo " MD5 password support: $MD5_MSG"
20284echo " libedit support: $LIBEDIT_MSG"
20285echo " Solaris process contract support: $SPC_MSG"
20286echo " Solaris project support: $SP_MSG"
20287echo " Solaris privilege support: $SPP_MSG"
20288echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
20289echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
20290echo " BSD Auth support: $BSD_AUTH_MSG"
20291echo " Random number source: $RAND_MSG"
20292echo " Privsep sandbox style: $SANDBOX_STYLE"
20293
20294echo ""
20295
20296echo " Host: ${host}"
20297echo " Compiler: ${CC}"
20298echo " Compiler flags: ${CFLAGS}"
20299echo "Preprocessor flags: ${CPPFLAGS}"
20300echo " Linker flags: ${LDFLAGS}"
20301echo " Libraries: ${LIBS}"
20302if test ! -z "${SSHDLIBS}"; then
20303echo " +for sshd: ${SSHDLIBS}"
20304fi
20305if test ! -z "${SSHLIBS}"; then
20306echo " +for ssh: ${SSHLIBS}"
20307fi
20308
20309echo ""
20310
20311if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
20312 echo "SVR4 style packages are supported with \"make package\""
20313 echo ""
20314fi
20315
20316if test "x$PAM_MSG" = "xyes" ; then
20317 echo "PAM is enabled. You may need to install a PAM control file "
20318 echo "for sshd, otherwise password authentication may fail. "
20319 echo "Example PAM control files can be found in the contrib/ "
20320 echo "subdirectory"
20321 echo ""
20322fi
20323
20324if test ! -z "$NO_PEERCHECK" ; then
20325 echo "WARNING: the operating system that you are using does not"
20326 echo "appear to support getpeereid(), getpeerucred() or the"
20327 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
20328 echo "enforce security checks to prevent unauthorised connections to"
20329 echo "ssh-agent. Their absence increases the risk that a malicious"
20330 echo "user can connect to your agent."
20331 echo ""
20332fi
20333
20334if test "$AUDIT_MODULE" = "bsm" ; then
20335 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
20336 echo "See the Solaris section in README.platform for details."
20337fi