summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure21326
1 files changed, 21326 insertions, 0 deletions
diff --git a/configure b/configure
new file mode 100755
index 000000000..09db0a335
--- /dev/null
+++ b/configure
@@ -0,0 +1,21326 @@
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
627CFLAGS_NOPIE
628LDFLAGS_NOPIE
629DEPEND
630UNSUPPORTED_ALGORITHMS
631TEST_MALLOC_OPTIONS
632TEST_SSH_UTF8
633TEST_SSH_IPV6
634piddir
635user_path
636mansubdir
637MANTYPE
638XAUTH_PATH
639STRIP_OPT
640xauth_path
641PRIVSEP_PATH
642K5LIBS
643GSSLIBS
644KRB5CONF
645SSHDLIBS
646SSHLIBS
647SSH_PRIVSEP_USER
648LIBFIDO2
649COMMENT_OUT_ECC
650TEST_SSH_ECC
651PICFLAG
652LIBEDIT
653PKGCONFIG
654LDNSCONFIG
655LIBOBJS
656LD
657PATH_PASSWD_PROG
658STARTUP_SCRIPT_SHELL
659MAKE_PACKAGE_SUPPORTED
660PATH_USERADD_PROG
661PATH_GROUPADD_PROG
662MANFMT
663TEST_SHELL
664MANDOC
665NROFF
666GROFF
667SH
668TEST_MINUS_S_SH
669ENT
670SED
671KILL
672CAT
673ac_ct_AR
674AR
675MKDIR_P
676INSTALL_DATA
677INSTALL_SCRIPT
678INSTALL_PROGRAM
679RANLIB
680AWK
681EGREP
682GREP
683CPP
684host_os
685host_vendor
686host_cpu
687host
688build_os
689build_vendor
690build_cpu
691build
692OBJEXT
693EXEEXT
694ac_ct_CC
695CPPFLAGS
696LDFLAGS
697CFLAGS
698CC
699target_alias
700host_alias
701build_alias
702LIBS
703ECHO_T
704ECHO_N
705ECHO_C
706DEFS
707mandir
708localedir
709libdir
710psdir
711pdfdir
712dvidir
713htmldir
714infodir
715docdir
716oldincludedir
717includedir
718localstatedir
719sharedstatedir
720sysconfdir
721datadir
722datarootdir
723libexecdir
724sbindir
725bindir
726program_transform_name
727prefix
728exec_prefix
729PACKAGE_URL
730PACKAGE_BUGREPORT
731PACKAGE_STRING
732PACKAGE_VERSION
733PACKAGE_TARNAME
734PACKAGE_NAME
735PATH_SEPARATOR
736SHELL'
737ac_subst_files=''
738ac_user_opts='
739enable_option_checking
740enable_largefile
741with_openssl
742with_stackprotect
743with_hardening
744with_rpath
745with_cflags
746with_cflags_after
747with_cppflags
748with_ldflags
749with_ldflags_after
750with_libs
751with_Werror
752with_solaris_contracts
753with_solaris_projects
754with_solaris_privs
755with_osfsia
756with_zlib
757with_zlib_version_check
758with_ldns
759with_libedit
760with_audit
761with_pie
762enable_pkcs11
763enable_security_key
764with_security_key_builtin
765with_ssl_dir
766with_openssl_header_check
767with_ssl_engine
768with_prngd_port
769with_prngd_socket
770with_pam
771with_pam_service
772with_privsep_user
773with_sandbox
774with_selinux
775with_kerberos5
776with_privsep_path
777with_xauth
778enable_strip
779with_maildir
780with_mantype
781with_md5_passwords
782with_shadow
783with_ipaddr_display
784enable_etc_default_login
785with_default_path
786with_superuser_path
787with_4in6
788with_bsd_auth
789with_pid_dir
790enable_lastlog
791enable_utmp
792enable_utmpx
793enable_wtmp
794enable_wtmpx
795enable_libutil
796enable_pututline
797enable_pututxline
798with_lastlog
799'
800 ac_precious_vars='build_alias
801host_alias
802target_alias
803CC
804CFLAGS
805LDFLAGS
806LIBS
807CPPFLAGS
808CPP'
809
810
811# Initialize some variables set by options.
812ac_init_help=
813ac_init_version=false
814ac_unrecognized_opts=
815ac_unrecognized_sep=
816# The variables have the same names as the options, with
817# dashes changed to underlines.
818cache_file=/dev/null
819exec_prefix=NONE
820no_create=
821no_recursion=
822prefix=NONE
823program_prefix=NONE
824program_suffix=NONE
825program_transform_name=s,x,x,
826silent=
827site=
828srcdir=
829verbose=
830x_includes=NONE
831x_libraries=NONE
832
833# Installation directory options.
834# These are left unexpanded so users can "make install exec_prefix=/foo"
835# and all the variables that are supposed to be based on exec_prefix
836# by default will actually change.
837# Use braces instead of parens because sh, perl, etc. also accept them.
838# (The list follows the same order as the GNU Coding Standards.)
839bindir='${exec_prefix}/bin'
840sbindir='${exec_prefix}/sbin'
841libexecdir='${exec_prefix}/libexec'
842datarootdir='${prefix}/share'
843datadir='${datarootdir}'
844sysconfdir='${prefix}/etc'
845sharedstatedir='${prefix}/com'
846localstatedir='${prefix}/var'
847includedir='${prefix}/include'
848oldincludedir='/usr/include'
849docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
850infodir='${datarootdir}/info'
851htmldir='${docdir}'
852dvidir='${docdir}'
853pdfdir='${docdir}'
854psdir='${docdir}'
855libdir='${exec_prefix}/lib'
856localedir='${datarootdir}/locale'
857mandir='${datarootdir}/man'
858
859ac_prev=
860ac_dashdash=
861for ac_option
862do
863 # If the previous option needs an argument, assign it.
864 if test -n "$ac_prev"; then
865 eval $ac_prev=\$ac_option
866 ac_prev=
867 continue
868 fi
869
870 case $ac_option in
871 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
872 *=) ac_optarg= ;;
873 *) ac_optarg=yes ;;
874 esac
875
876 # Accept the important Cygnus configure options, so we can diagnose typos.
877
878 case $ac_dashdash$ac_option in
879 --)
880 ac_dashdash=yes ;;
881
882 -bindir | --bindir | --bindi | --bind | --bin | --bi)
883 ac_prev=bindir ;;
884 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
885 bindir=$ac_optarg ;;
886
887 -build | --build | --buil | --bui | --bu)
888 ac_prev=build_alias ;;
889 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
890 build_alias=$ac_optarg ;;
891
892 -cache-file | --cache-file | --cache-fil | --cache-fi \
893 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
894 ac_prev=cache_file ;;
895 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
896 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
897 cache_file=$ac_optarg ;;
898
899 --config-cache | -C)
900 cache_file=config.cache ;;
901
902 -datadir | --datadir | --datadi | --datad)
903 ac_prev=datadir ;;
904 -datadir=* | --datadir=* | --datadi=* | --datad=*)
905 datadir=$ac_optarg ;;
906
907 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
908 | --dataroo | --dataro | --datar)
909 ac_prev=datarootdir ;;
910 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
911 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
912 datarootdir=$ac_optarg ;;
913
914 -disable-* | --disable-*)
915 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error $? "invalid feature name: $ac_useropt"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
922 *"
923"enable_$ac_useropt"
924"*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
928 eval enable_$ac_useropt=no ;;
929
930 -docdir | --docdir | --docdi | --doc | --do)
931 ac_prev=docdir ;;
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 docdir=$ac_optarg ;;
934
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 ac_prev=dvidir ;;
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 dvidir=$ac_optarg ;;
939
940 -enable-* | --enable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error $? "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
948 *"
949"enable_$ac_useropt"
950"*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=\$ac_optarg ;;
955
956 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
957 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
958 | --exec | --exe | --ex)
959 ac_prev=exec_prefix ;;
960 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
961 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
962 | --exec=* | --exe=* | --ex=*)
963 exec_prefix=$ac_optarg ;;
964
965 -gas | --gas | --ga | --g)
966 # Obsolete; use --with-gas.
967 with_gas=yes ;;
968
969 -help | --help | --hel | --he | -h)
970 ac_init_help=long ;;
971 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
972 ac_init_help=recursive ;;
973 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
974 ac_init_help=short ;;
975
976 -host | --host | --hos | --ho)
977 ac_prev=host_alias ;;
978 -host=* | --host=* | --hos=* | --ho=*)
979 host_alias=$ac_optarg ;;
980
981 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982 ac_prev=htmldir ;;
983 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984 | --ht=*)
985 htmldir=$ac_optarg ;;
986
987 -includedir | --includedir | --includedi | --included | --include \
988 | --includ | --inclu | --incl | --inc)
989 ac_prev=includedir ;;
990 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
991 | --includ=* | --inclu=* | --incl=* | --inc=*)
992 includedir=$ac_optarg ;;
993
994 -infodir | --infodir | --infodi | --infod | --info | --inf)
995 ac_prev=infodir ;;
996 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
997 infodir=$ac_optarg ;;
998
999 -libdir | --libdir | --libdi | --libd)
1000 ac_prev=libdir ;;
1001 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1002 libdir=$ac_optarg ;;
1003
1004 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1005 | --libexe | --libex | --libe)
1006 ac_prev=libexecdir ;;
1007 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1008 | --libexe=* | --libex=* | --libe=*)
1009 libexecdir=$ac_optarg ;;
1010
1011 -localedir | --localedir | --localedi | --localed | --locale)
1012 ac_prev=localedir ;;
1013 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1014 localedir=$ac_optarg ;;
1015
1016 -localstatedir | --localstatedir | --localstatedi | --localstated \
1017 | --localstate | --localstat | --localsta | --localst | --locals)
1018 ac_prev=localstatedir ;;
1019 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1020 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1021 localstatedir=$ac_optarg ;;
1022
1023 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024 ac_prev=mandir ;;
1025 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1026 mandir=$ac_optarg ;;
1027
1028 -nfp | --nfp | --nf)
1029 # Obsolete; use --without-fp.
1030 with_fp=no ;;
1031
1032 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1033 | --no-cr | --no-c | -n)
1034 no_create=yes ;;
1035
1036 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1037 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038 no_recursion=yes ;;
1039
1040 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1041 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1042 | --oldin | --oldi | --old | --ol | --o)
1043 ac_prev=oldincludedir ;;
1044 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1045 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1046 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1047 oldincludedir=$ac_optarg ;;
1048
1049 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050 ac_prev=prefix ;;
1051 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1052 prefix=$ac_optarg ;;
1053
1054 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1055 | --program-pre | --program-pr | --program-p)
1056 ac_prev=program_prefix ;;
1057 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1058 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1059 program_prefix=$ac_optarg ;;
1060
1061 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1062 | --program-suf | --program-su | --program-s)
1063 ac_prev=program_suffix ;;
1064 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1065 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1066 program_suffix=$ac_optarg ;;
1067
1068 -program-transform-name | --program-transform-name \
1069 | --program-transform-nam | --program-transform-na \
1070 | --program-transform-n | --program-transform- \
1071 | --program-transform | --program-transfor \
1072 | --program-transfo | --program-transf \
1073 | --program-trans | --program-tran \
1074 | --progr-tra | --program-tr | --program-t)
1075 ac_prev=program_transform_name ;;
1076 -program-transform-name=* | --program-transform-name=* \
1077 | --program-transform-nam=* | --program-transform-na=* \
1078 | --program-transform-n=* | --program-transform-=* \
1079 | --program-transform=* | --program-transfor=* \
1080 | --program-transfo=* | --program-transf=* \
1081 | --program-trans=* | --program-tran=* \
1082 | --progr-tra=* | --program-tr=* | --program-t=*)
1083 program_transform_name=$ac_optarg ;;
1084
1085 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086 ac_prev=pdfdir ;;
1087 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1088 pdfdir=$ac_optarg ;;
1089
1090 -psdir | --psdir | --psdi | --psd | --ps)
1091 ac_prev=psdir ;;
1092 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1093 psdir=$ac_optarg ;;
1094
1095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1096 | -silent | --silent | --silen | --sile | --sil)
1097 silent=yes ;;
1098
1099 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100 ac_prev=sbindir ;;
1101 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102 | --sbi=* | --sb=*)
1103 sbindir=$ac_optarg ;;
1104
1105 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1106 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1107 | --sharedst | --shareds | --shared | --share | --shar \
1108 | --sha | --sh)
1109 ac_prev=sharedstatedir ;;
1110 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1111 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1112 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113 | --sha=* | --sh=*)
1114 sharedstatedir=$ac_optarg ;;
1115
1116 -site | --site | --sit)
1117 ac_prev=site ;;
1118 -site=* | --site=* | --sit=*)
1119 site=$ac_optarg ;;
1120
1121 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122 ac_prev=srcdir ;;
1123 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1124 srcdir=$ac_optarg ;;
1125
1126 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1127 | --syscon | --sysco | --sysc | --sys | --sy)
1128 ac_prev=sysconfdir ;;
1129 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1130 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1131 sysconfdir=$ac_optarg ;;
1132
1133 -target | --target | --targe | --targ | --tar | --ta | --t)
1134 ac_prev=target_alias ;;
1135 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1136 target_alias=$ac_optarg ;;
1137
1138 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1139 verbose=yes ;;
1140
1141 -version | --version | --versio | --versi | --vers | -V)
1142 ac_init_version=: ;;
1143
1144 -with-* | --with-*)
1145 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 as_fn_error $? "invalid package name: $ac_useropt"
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1152 *"
1153"with_$ac_useropt"
1154"*) ;;
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
1157 esac
1158 eval with_$ac_useropt=\$ac_optarg ;;
1159
1160 -without-* | --without-*)
1161 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164 as_fn_error $? "invalid package name: $ac_useropt"
1165 ac_useropt_orig=$ac_useropt
1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1168 *"
1169"with_$ac_useropt"
1170"*) ;;
1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1172 ac_unrecognized_sep=', ';;
1173 esac
1174 eval with_$ac_useropt=no ;;
1175
1176 --x)
1177 # Obsolete; use --with-x.
1178 with_x=yes ;;
1179
1180 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1181 | --x-incl | --x-inc | --x-in | --x-i)
1182 ac_prev=x_includes ;;
1183 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1184 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1185 x_includes=$ac_optarg ;;
1186
1187 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1188 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1189 ac_prev=x_libraries ;;
1190 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1191 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1192 x_libraries=$ac_optarg ;;
1193
1194 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1195Try \`$0 --help' for more information"
1196 ;;
1197
1198 *=*)
1199 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1200 # Reject names that are not valid shell variable names.
1201 case $ac_envvar in #(
1202 '' | [0-9]* | *[!_$as_cr_alnum]* )
1203 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1204 esac
1205 eval $ac_envvar=\$ac_optarg
1206 export $ac_envvar ;;
1207
1208 *)
1209 # FIXME: should be removed in autoconf 3.0.
1210 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1211 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1213 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1214 ;;
1215
1216 esac
1217done
1218
1219if test -n "$ac_prev"; then
1220 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1221 as_fn_error $? "missing argument to $ac_option"
1222fi
1223
1224if test -n "$ac_unrecognized_opts"; then
1225 case $enable_option_checking in
1226 no) ;;
1227 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1228 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1229 esac
1230fi
1231
1232# Check all directory arguments for consistency.
1233for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1234 datadir sysconfdir sharedstatedir localstatedir includedir \
1235 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1236 libdir localedir mandir
1237do
1238 eval ac_val=\$$ac_var
1239 # Remove trailing slashes.
1240 case $ac_val in
1241 */ )
1242 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1243 eval $ac_var=\$ac_val;;
1244 esac
1245 # Be sure to have absolute directory names.
1246 case $ac_val in
1247 [\\/$]* | ?:[\\/]* ) continue;;
1248 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1249 esac
1250 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1251done
1252
1253# There might be people who depend on the old broken behavior: `$host'
1254# used to hold the argument of --host etc.
1255# FIXME: To remove some day.
1256build=$build_alias
1257host=$host_alias
1258target=$target_alias
1259
1260# FIXME: To remove some day.
1261if test "x$host_alias" != x; then
1262 if test "x$build_alias" = x; then
1263 cross_compiling=maybe
1264 elif test "x$build_alias" != "x$host_alias"; then
1265 cross_compiling=yes
1266 fi
1267fi
1268
1269ac_tool_prefix=
1270test -n "$host_alias" && ac_tool_prefix=$host_alias-
1271
1272test "$silent" = yes && exec 6>/dev/null
1273
1274
1275ac_pwd=`pwd` && test -n "$ac_pwd" &&
1276ac_ls_di=`ls -di .` &&
1277ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1278 as_fn_error $? "working directory cannot be determined"
1279test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1280 as_fn_error $? "pwd does not report name of working directory"
1281
1282
1283# Find the source files, if location was not specified.
1284if test -z "$srcdir"; then
1285 ac_srcdir_defaulted=yes
1286 # Try the directory containing this script, then the parent directory.
1287 ac_confdir=`$as_dirname -- "$as_myself" ||
1288$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1289 X"$as_myself" : 'X\(//\)[^/]' \| \
1290 X"$as_myself" : 'X\(//\)$' \| \
1291 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1292$as_echo X"$as_myself" |
1293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\/\)[^/].*/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\/\)$/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\).*/{
1306 s//\1/
1307 q
1308 }
1309 s/.*/./; q'`
1310 srcdir=$ac_confdir
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312 srcdir=..
1313 fi
1314else
1315 ac_srcdir_defaulted=no
1316fi
1317if test ! -r "$srcdir/$ac_unique_file"; then
1318 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1319 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1320fi
1321ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1322ac_abs_confdir=`(
1323 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1324 pwd)`
1325# When building in place, set srcdir=.
1326if test "$ac_abs_confdir" = "$ac_pwd"; then
1327 srcdir=.
1328fi
1329# Remove unnecessary trailing slashes from srcdir.
1330# Double slashes in file names in object file debugging info
1331# mess up M-x gdb in Emacs.
1332case $srcdir in
1333*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334esac
1335for ac_var in $ac_precious_vars; do
1336 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_env_${ac_var}_value=\$${ac_var}
1338 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1340done
1341
1342#
1343# Report the --help message.
1344#
1345if test "$ac_init_help" = "long"; then
1346 # Omit some internal or obsolete options to make the list less imposing.
1347 # This message is too long to be a string in the A/UX 3.1 sh.
1348 cat <<_ACEOF
1349\`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1350
1351Usage: $0 [OPTION]... [VAR=VALUE]...
1352
1353To assign environment variables (e.g., CC, CFLAGS...), specify them as
1354VAR=VALUE. See below for descriptions of some of the useful variables.
1355
1356Defaults for the options are specified in brackets.
1357
1358Configuration:
1359 -h, --help display this help and exit
1360 --help=short display options specific to this package
1361 --help=recursive display the short help of all the included packages
1362 -V, --version display version information and exit
1363 -q, --quiet, --silent do not print \`checking ...' messages
1364 --cache-file=FILE cache test results in FILE [disabled]
1365 -C, --config-cache alias for \`--cache-file=config.cache'
1366 -n, --no-create do not create output files
1367 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1368
1369Installation directories:
1370 --prefix=PREFIX install architecture-independent files in PREFIX
1371 [$ac_default_prefix]
1372 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1373 [PREFIX]
1374
1375By default, \`make install' will install all the files in
1376\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1377an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1378for instance \`--prefix=\$HOME'.
1379
1380For better control, use the options below.
1381
1382Fine tuning of the installation directories:
1383 --bindir=DIR user executables [EPREFIX/bin]
1384 --sbindir=DIR system admin executables [EPREFIX/sbin]
1385 --libexecdir=DIR program executables [EPREFIX/libexec]
1386 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1387 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1388 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1389 --libdir=DIR object code libraries [EPREFIX/lib]
1390 --includedir=DIR C header files [PREFIX/include]
1391 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1394 --infodir=DIR info documentation [DATAROOTDIR/info]
1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1396 --mandir=DIR man documentation [DATAROOTDIR/man]
1397 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1398 --htmldir=DIR html documentation [DOCDIR]
1399 --dvidir=DIR dvi documentation [DOCDIR]
1400 --pdfdir=DIR pdf documentation [DOCDIR]
1401 --psdir=DIR ps documentation [DOCDIR]
1402_ACEOF
1403
1404 cat <<\_ACEOF
1405
1406System types:
1407 --build=BUILD configure for building on BUILD [guessed]
1408 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1409_ACEOF
1410fi
1411
1412if test -n "$ac_init_help"; then
1413 case $ac_init_help in
1414 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1415 esac
1416 cat <<\_ACEOF
1417
1418Optional Features:
1419 --disable-option-checking ignore unrecognized --enable/--with options
1420 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1421 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1422 --disable-largefile omit support for large files
1423 --disable-pkcs11 disable PKCS#11 support code [no]
1424 --disable-security-key disable U2F/FIDO support code no
1425 --disable-strip Disable calling strip(1) on install
1426 --disable-etc-default-login Disable using PATH from /etc/default/login no
1427 --disable-lastlog disable use of lastlog even if detected no
1428 --disable-utmp disable use of utmp even if detected no
1429 --disable-utmpx disable use of utmpx even if detected no
1430 --disable-wtmp disable use of wtmp even if detected no
1431 --disable-wtmpx disable use of wtmpx even if detected no
1432 --disable-libutil disable use of libutil (login() etc.) no
1433 --disable-pututline disable use of pututline() etc. (uwtmp) no
1434 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1435
1436Optional Packages:
1437 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1438 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1439 --without-openssl Disable use of OpenSSL; use only limited internal crypto **EXPERIMENTAL**
1440 --without-stackprotect Don't use compiler's stack protection
1441 --without-hardening Don't use toolchain hardening flags
1442 --without-rpath Disable auto-added -R linker paths
1443 --with-cflags Specify additional flags to pass to compiler
1444 --with-cflags-after Specify additional flags to pass to compiler after configure
1445 --with-cppflags Specify additional flags to pass to preprocessor
1446 --with-ldflags Specify additional flags to pass to linker
1447 --with-ldflags-after Specify additional flags to pass to linker after configure
1448 --with-libs Specify additional libraries to link with
1449 --with-Werror Build main code with -Werror
1450 --with-solaris-contracts Enable Solaris process contracts (experimental)
1451 --with-solaris-projects Enable Solaris projects (experimental)
1452 --with-solaris-privs Enable Solaris/Illumos privileges (experimental)
1453 --with-osfsia Enable Digital Unix SIA
1454 --with-zlib=PATH Use zlib in PATH
1455 --without-zlib-version-check Disable zlib version check
1456 --with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH)
1457 --with-libedit[=PATH] Enable libedit support for sftp
1458 --with-audit=module Enable audit support (modules=debug,bsm,linux)
1459 --with-pie Build Position Independent Executables if possible
1460 --with-security-key-builtin include builtin U2F/FIDO support
1461 --with-ssl-dir=PATH Specify path to OpenSSL installation
1462 --without-openssl-header-check Disable OpenSSL version consistency check
1463 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1464 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1465 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1466 --with-pam Enable PAM support
1467 --with-pam-service=name Specify PAM service name
1468 --with-privsep-user=user Specify non-privileged user for privilege separation
1469 --with-sandbox=style Specify privilege separation sandbox (no, capsicum, darwin, rlimit, seccomp_filter, systrace, pledge)
1470 --with-selinux Enable SELinux support
1471 --with-kerberos5=PATH Enable Kerberos 5 support
1472 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1473 --with-xauth=PATH Specify path to xauth program
1474 --with-maildir=/path/to/mail Specify your system mail directory
1475 --with-mantype=man|cat|doc Set man page type
1476 --with-md5-passwords Enable use of MD5 passwords
1477 --without-shadow Disable shadow password support
1478 --with-ipaddr-display Use ip address instead of hostname in $DISPLAY
1479 --with-default-path= Specify default $PATH environment for server
1480 --with-superuser-path= Specify different path for super-user
1481 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1482 --with-bsd-auth Enable BSD auth support
1483 --with-pid-dir=PATH Specify location of sshd.pid file
1484 --with-lastlog=FILE|DIR specify lastlog location common locations
1485
1486Some influential environment variables:
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 LIBS libraries to pass to the linker, e.g. -l<library>
1492 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1493 you have headers in a nonstandard directory <include dir>
1494 CPP C preprocessor
1495
1496Use these variables to override the choices made by `configure' or to help
1497it to find libraries and programs with nonstandard names/locations.
1498
1499Report bugs to <openssh-unix-dev@mindrot.org>.
1500_ACEOF
1501ac_status=$?
1502fi
1503
1504if test "$ac_init_help" = "recursive"; then
1505 # If there are subdirs, report their specific --help.
1506 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1507 test -d "$ac_dir" ||
1508 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1509 continue
1510 ac_builddir=.
1511
1512case "$ac_dir" in
1513.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514*)
1515 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1516 # A ".." for each directory in $ac_dir_suffix.
1517 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1518 case $ac_top_builddir_sub in
1519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521 esac ;;
1522esac
1523ac_abs_top_builddir=$ac_pwd
1524ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525# for backward compatibility:
1526ac_top_builddir=$ac_top_build_prefix
1527
1528case $srcdir in
1529 .) # We are building in place.
1530 ac_srcdir=.
1531 ac_top_srcdir=$ac_top_builddir_sub
1532 ac_abs_top_srcdir=$ac_pwd ;;
1533 [\\/]* | ?:[\\/]* ) # Absolute name.
1534 ac_srcdir=$srcdir$ac_dir_suffix;
1535 ac_top_srcdir=$srcdir
1536 ac_abs_top_srcdir=$srcdir ;;
1537 *) # Relative name.
1538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539 ac_top_srcdir=$ac_top_build_prefix$srcdir
1540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1541esac
1542ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1543
1544 cd "$ac_dir" || { ac_status=$?; continue; }
1545 # Check for guested configure.
1546 if test -f "$ac_srcdir/configure.gnu"; then
1547 echo &&
1548 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549 elif test -f "$ac_srcdir/configure"; then
1550 echo &&
1551 $SHELL "$ac_srcdir/configure" --help=recursive
1552 else
1553 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1554 fi || ac_status=$?
1555 cd "$ac_pwd" || { ac_status=$?; break; }
1556 done
1557fi
1558
1559test -n "$ac_init_help" && exit $ac_status
1560if $ac_init_version; then
1561 cat <<\_ACEOF
1562OpenSSH configure Portable
1563generated by GNU Autoconf 2.69
1564
1565Copyright (C) 2012 Free Software Foundation, Inc.
1566This configure script is free software; the Free Software Foundation
1567gives unlimited permission to copy, distribute and modify it.
1568_ACEOF
1569 exit
1570fi
1571
1572## ------------------------ ##
1573## Autoconf initialization. ##
1574## ------------------------ ##
1575
1576# ac_fn_c_try_compile LINENO
1577# --------------------------
1578# Try to compile conftest.$ac_ext, and return whether this succeeded.
1579ac_fn_c_try_compile ()
1580{
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 rm -f conftest.$ac_objext
1583 if { { ac_try="$ac_compile"
1584case "(($ac_try" in
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1587esac
1588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589$as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_compile") 2>conftest.err
1591 ac_status=$?
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1596 fi
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } && {
1599 test -z "$ac_c_werror_flag" ||
1600 test ! -s conftest.err
1601 } && test -s conftest.$ac_objext; then :
1602 ac_retval=0
1603else
1604 $as_echo "$as_me: failed program was:" >&5
1605sed 's/^/| /' conftest.$ac_ext >&5
1606
1607 ac_retval=1
1608fi
1609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610 as_fn_set_status $ac_retval
1611
1612} # ac_fn_c_try_compile
1613
1614# ac_fn_c_try_run LINENO
1615# ----------------------
1616# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1617# that executables *can* be run.
1618ac_fn_c_try_run ()
1619{
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 if { { ac_try="$ac_link"
1622case "(($ac_try" in
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1625esac
1626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627$as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_link") 2>&5
1629 ac_status=$?
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1632 { { case "(($ac_try" in
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1635esac
1636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637$as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_try") 2>&5
1639 ac_status=$?
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; }; }; then :
1642 ac_retval=0
1643else
1644 $as_echo "$as_me: program exited with status $ac_status" >&5
1645 $as_echo "$as_me: failed program was:" >&5
1646sed 's/^/| /' conftest.$ac_ext >&5
1647
1648 ac_retval=$ac_status
1649fi
1650 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 as_fn_set_status $ac_retval
1653
1654} # ac_fn_c_try_run
1655
1656# ac_fn_c_try_cpp LINENO
1657# ----------------------
1658# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1659ac_fn_c_try_cpp ()
1660{
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 if { { ac_try="$ac_cpp conftest.$ac_ext"
1663case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666esac
1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668$as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1670 ac_status=$?
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1675 fi
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } > conftest.i && {
1678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1679 test ! -s conftest.err
1680 }; then :
1681 ac_retval=0
1682else
1683 $as_echo "$as_me: failed program was:" >&5
1684sed 's/^/| /' conftest.$ac_ext >&5
1685
1686 ac_retval=1
1687fi
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 as_fn_set_status $ac_retval
1690
1691} # ac_fn_c_try_cpp
1692
1693# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1694# -------------------------------------------------------
1695# Tests whether HEADER exists and can be compiled using the include files in
1696# INCLUDES, setting the cache variable VAR accordingly.
1697ac_fn_c_check_header_compile ()
1698{
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701$as_echo_n "checking for $2... " >&6; }
1702if eval \${$3+:} false; then :
1703 $as_echo_n "(cached) " >&6
1704else
1705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706/* end confdefs.h. */
1707$4
1708#include <$2>
1709_ACEOF
1710if ac_fn_c_try_compile "$LINENO"; then :
1711 eval "$3=yes"
1712else
1713 eval "$3=no"
1714fi
1715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1716fi
1717eval ac_res=\$$3
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719$as_echo "$ac_res" >&6; }
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721
1722} # ac_fn_c_check_header_compile
1723
1724# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1725# ---------------------------------------------
1726# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1727# accordingly.
1728ac_fn_c_check_decl ()
1729{
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 as_decl_name=`echo $2|sed 's/ *(.*//'`
1732 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1734$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1735if eval \${$3+:} false; then :
1736 $as_echo_n "(cached) " >&6
1737else
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739/* end confdefs.h. */
1740$4
1741int
1742main ()
1743{
1744#ifndef $as_decl_name
1745#ifdef __cplusplus
1746 (void) $as_decl_use;
1747#else
1748 (void) $as_decl_name;
1749#endif
1750#endif
1751
1752 ;
1753 return 0;
1754}
1755_ACEOF
1756if ac_fn_c_try_compile "$LINENO"; then :
1757 eval "$3=yes"
1758else
1759 eval "$3=no"
1760fi
1761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1762fi
1763eval ac_res=\$$3
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1765$as_echo "$ac_res" >&6; }
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767
1768} # ac_fn_c_check_decl
1769
1770# ac_fn_c_try_link LINENO
1771# -----------------------
1772# Try to link conftest.$ac_ext, and return whether this succeeded.
1773ac_fn_c_try_link ()
1774{
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 rm -f conftest.$ac_objext conftest$ac_exeext
1777 if { { ac_try="$ac_link"
1778case "(($ac_try" in
1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780 *) ac_try_echo=$ac_try;;
1781esac
1782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783$as_echo "$ac_try_echo"; } >&5
1784 (eval "$ac_link") 2>conftest.err
1785 ac_status=$?
1786 if test -s conftest.err; then
1787 grep -v '^ *+' conftest.err >conftest.er1
1788 cat conftest.er1 >&5
1789 mv -f conftest.er1 conftest.err
1790 fi
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; } && {
1793 test -z "$ac_c_werror_flag" ||
1794 test ! -s conftest.err
1795 } && test -s conftest$ac_exeext && {
1796 test "$cross_compiling" = yes ||
1797 test -x conftest$ac_exeext
1798 }; then :
1799 ac_retval=0
1800else
1801 $as_echo "$as_me: failed program was:" >&5
1802sed 's/^/| /' conftest.$ac_ext >&5
1803
1804 ac_retval=1
1805fi
1806 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1807 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1808 # interfere with the next link command; also delete a directory that is
1809 # left behind by Apple's compiler. We do this before executing the actions.
1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
1813
1814} # ac_fn_c_try_link
1815
1816# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1817# -------------------------------------------------------
1818# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1819# the include files in INCLUDES and setting the cache variable VAR
1820# accordingly.
1821ac_fn_c_check_header_mongrel ()
1822{
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 if eval \${$3+:} false; then :
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826$as_echo_n "checking for $2... " >&6; }
1827if eval \${$3+:} false; then :
1828 $as_echo_n "(cached) " >&6
1829fi
1830eval ac_res=\$$3
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832$as_echo "$ac_res" >&6; }
1833else
1834 # Is the header compilable?
1835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1836$as_echo_n "checking $2 usability... " >&6; }
1837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838/* end confdefs.h. */
1839$4
1840#include <$2>
1841_ACEOF
1842if ac_fn_c_try_compile "$LINENO"; then :
1843 ac_header_compiler=yes
1844else
1845 ac_header_compiler=no
1846fi
1847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1849$as_echo "$ac_header_compiler" >&6; }
1850
1851# Is the header present?
1852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1853$as_echo_n "checking $2 presence... " >&6; }
1854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855/* end confdefs.h. */
1856#include <$2>
1857_ACEOF
1858if ac_fn_c_try_cpp "$LINENO"; then :
1859 ac_header_preproc=yes
1860else
1861 ac_header_preproc=no
1862fi
1863rm -f conftest.err conftest.i conftest.$ac_ext
1864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1865$as_echo "$ac_header_preproc" >&6; }
1866
1867# So? What about this header?
1868case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1869 yes:no: )
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1871$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1873$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1874 ;;
1875 no:yes:* )
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1877$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1879$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1881$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1883$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1885$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1886( $as_echo "## ------------------------------------------- ##
1887## Report this to openssh-unix-dev@mindrot.org ##
1888## ------------------------------------------- ##"
1889 ) | sed "s/^/$as_me: WARNING: /" >&2
1890 ;;
1891esac
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893$as_echo_n "checking for $2... " >&6; }
1894if eval \${$3+:} false; then :
1895 $as_echo_n "(cached) " >&6
1896else
1897 eval "$3=\$ac_header_compiler"
1898fi
1899eval ac_res=\$$3
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901$as_echo "$ac_res" >&6; }
1902fi
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904
1905} # ac_fn_c_check_header_mongrel
1906
1907# ac_fn_c_check_func LINENO FUNC VAR
1908# ----------------------------------
1909# Tests whether FUNC exists, setting the cache variable VAR accordingly
1910ac_fn_c_check_func ()
1911{
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914$as_echo_n "checking for $2... " >&6; }
1915if eval \${$3+:} false; then :
1916 $as_echo_n "(cached) " >&6
1917else
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919/* end confdefs.h. */
1920/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1922#define $2 innocuous_$2
1923
1924/* System header to define __stub macros and hopefully few prototypes,
1925 which can conflict with char $2 (); below.
1926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1927 <limits.h> exists even on freestanding compilers. */
1928
1929#ifdef __STDC__
1930# include <limits.h>
1931#else
1932# include <assert.h>
1933#endif
1934
1935#undef $2
1936
1937/* Override any GCC internal prototype to avoid an error.
1938 Use char because int might match the return type of a GCC
1939 builtin and then its argument prototype would still apply. */
1940#ifdef __cplusplus
1941extern "C"
1942#endif
1943char $2 ();
1944/* The GNU C library defines this for functions which it implements
1945 to always fail with ENOSYS. Some functions are actually named
1946 something starting with __ and the normal name is an alias. */
1947#if defined __stub_$2 || defined __stub___$2
1948choke me
1949#endif
1950
1951int
1952main ()
1953{
1954return $2 ();
1955 ;
1956 return 0;
1957}
1958_ACEOF
1959if ac_fn_c_try_link "$LINENO"; then :
1960 eval "$3=yes"
1961else
1962 eval "$3=no"
1963fi
1964rm -f core conftest.err conftest.$ac_objext \
1965 conftest$ac_exeext conftest.$ac_ext
1966fi
1967eval ac_res=\$$3
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969$as_echo "$ac_res" >&6; }
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971
1972} # ac_fn_c_check_func
1973
1974# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1975# -------------------------------------------
1976# Tests whether TYPE exists after having included INCLUDES, setting cache
1977# variable VAR accordingly.
1978ac_fn_c_check_type ()
1979{
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982$as_echo_n "checking for $2... " >&6; }
1983if eval \${$3+:} false; then :
1984 $as_echo_n "(cached) " >&6
1985else
1986 eval "$3=no"
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988/* end confdefs.h. */
1989$4
1990int
1991main ()
1992{
1993if (sizeof ($2))
1994 return 0;
1995 ;
1996 return 0;
1997}
1998_ACEOF
1999if ac_fn_c_try_compile "$LINENO"; then :
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001/* end confdefs.h. */
2002$4
2003int
2004main ()
2005{
2006if (sizeof (($2)))
2007 return 0;
2008 ;
2009 return 0;
2010}
2011_ACEOF
2012if ac_fn_c_try_compile "$LINENO"; then :
2013
2014else
2015 eval "$3=yes"
2016fi
2017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018fi
2019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2020fi
2021eval ac_res=\$$3
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023$as_echo "$ac_res" >&6; }
2024 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025
2026} # ac_fn_c_check_type
2027
2028# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2029# --------------------------------------------
2030# Tries to find the compile-time value of EXPR in a program that includes
2031# INCLUDES, setting VAR accordingly. Returns whether the value could be
2032# computed
2033ac_fn_c_compute_int ()
2034{
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 if test "$cross_compiling" = yes; then
2037 # Depending upon the size, compute the lo and hi bounds.
2038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039/* end confdefs.h. */
2040$4
2041int
2042main ()
2043{
2044static int test_array [1 - 2 * !(($2) >= 0)];
2045test_array [0] = 0;
2046return test_array [0];
2047
2048 ;
2049 return 0;
2050}
2051_ACEOF
2052if ac_fn_c_try_compile "$LINENO"; then :
2053 ac_lo=0 ac_mid=0
2054 while :; do
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056/* end confdefs.h. */
2057$4
2058int
2059main ()
2060{
2061static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2062test_array [0] = 0;
2063return test_array [0];
2064
2065 ;
2066 return 0;
2067}
2068_ACEOF
2069if ac_fn_c_try_compile "$LINENO"; then :
2070 ac_hi=$ac_mid; break
2071else
2072 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2073 if test $ac_lo -le $ac_mid; then
2074 ac_lo= ac_hi=
2075 break
2076 fi
2077 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2078fi
2079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080 done
2081else
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083/* end confdefs.h. */
2084$4
2085int
2086main ()
2087{
2088static int test_array [1 - 2 * !(($2) < 0)];
2089test_array [0] = 0;
2090return test_array [0];
2091
2092 ;
2093 return 0;
2094}
2095_ACEOF
2096if ac_fn_c_try_compile "$LINENO"; then :
2097 ac_hi=-1 ac_mid=-1
2098 while :; do
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100/* end confdefs.h. */
2101$4
2102int
2103main ()
2104{
2105static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2106test_array [0] = 0;
2107return test_array [0];
2108
2109 ;
2110 return 0;
2111}
2112_ACEOF
2113if ac_fn_c_try_compile "$LINENO"; then :
2114 ac_lo=$ac_mid; break
2115else
2116 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2117 if test $ac_mid -le $ac_hi; then
2118 ac_lo= ac_hi=
2119 break
2120 fi
2121 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2122fi
2123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 done
2125else
2126 ac_lo= ac_hi=
2127fi
2128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129fi
2130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131# Binary search between lo and hi bounds.
2132while test "x$ac_lo" != "x$ac_hi"; do
2133 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135/* end confdefs.h. */
2136$4
2137int
2138main ()
2139{
2140static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2141test_array [0] = 0;
2142return test_array [0];
2143
2144 ;
2145 return 0;
2146}
2147_ACEOF
2148if ac_fn_c_try_compile "$LINENO"; then :
2149 ac_hi=$ac_mid
2150else
2151 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2152fi
2153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154done
2155case $ac_lo in #((
2156?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2157'') ac_retval=1 ;;
2158esac
2159 else
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161/* end confdefs.h. */
2162$4
2163static long int longval () { return $2; }
2164static unsigned long int ulongval () { return $2; }
2165#include <stdio.h>
2166#include <stdlib.h>
2167int
2168main ()
2169{
2170
2171 FILE *f = fopen ("conftest.val", "w");
2172 if (! f)
2173 return 1;
2174 if (($2) < 0)
2175 {
2176 long int i = longval ();
2177 if (i != ($2))
2178 return 1;
2179 fprintf (f, "%ld", i);
2180 }
2181 else
2182 {
2183 unsigned long int i = ulongval ();
2184 if (i != ($2))
2185 return 1;
2186 fprintf (f, "%lu", i);
2187 }
2188 /* Do not output a trailing newline, as this causes \r\n confusion
2189 on some platforms. */
2190 return ferror (f) || fclose (f) != 0;
2191
2192 ;
2193 return 0;
2194}
2195_ACEOF
2196if ac_fn_c_try_run "$LINENO"; then :
2197 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2198else
2199 ac_retval=1
2200fi
2201rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2202 conftest.$ac_objext conftest.beam conftest.$ac_ext
2203rm -f conftest.val
2204
2205 fi
2206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207 as_fn_set_status $ac_retval
2208
2209} # ac_fn_c_compute_int
2210
2211# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2212# ----------------------------------------------------
2213# Tries to find if the field MEMBER exists in type AGGR, after including
2214# INCLUDES, setting cache variable VAR accordingly.
2215ac_fn_c_check_member ()
2216{
2217 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2219$as_echo_n "checking for $2.$3... " >&6; }
2220if eval \${$4+:} false; then :
2221 $as_echo_n "(cached) " >&6
2222else
2223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224/* end confdefs.h. */
2225$5
2226int
2227main ()
2228{
2229static $2 ac_aggr;
2230if (ac_aggr.$3)
2231return 0;
2232 ;
2233 return 0;
2234}
2235_ACEOF
2236if ac_fn_c_try_compile "$LINENO"; then :
2237 eval "$4=yes"
2238else
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240/* end confdefs.h. */
2241$5
2242int
2243main ()
2244{
2245static $2 ac_aggr;
2246if (sizeof ac_aggr.$3)
2247return 0;
2248 ;
2249 return 0;
2250}
2251_ACEOF
2252if ac_fn_c_try_compile "$LINENO"; then :
2253 eval "$4=yes"
2254else
2255 eval "$4=no"
2256fi
2257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258fi
2259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260fi
2261eval ac_res=\$$4
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2263$as_echo "$ac_res" >&6; }
2264 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2265
2266} # ac_fn_c_check_member
2267cat >config.log <<_ACEOF
2268This file contains any messages produced by compilers while
2269running configure, to aid debugging if configure makes a mistake.
2270
2271It was created by OpenSSH $as_me Portable, which was
2272generated by GNU Autoconf 2.69. Invocation command line was
2273
2274 $ $0 $@
2275
2276_ACEOF
2277exec 5>>config.log
2278{
2279cat <<_ASUNAME
2280## --------- ##
2281## Platform. ##
2282## --------- ##
2283
2284hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2285uname -m = `(uname -m) 2>/dev/null || echo unknown`
2286uname -r = `(uname -r) 2>/dev/null || echo unknown`
2287uname -s = `(uname -s) 2>/dev/null || echo unknown`
2288uname -v = `(uname -v) 2>/dev/null || echo unknown`
2289
2290/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2291/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2292
2293/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2294/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2295/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2296/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2297/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2298/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2299/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2300
2301_ASUNAME
2302
2303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304for as_dir in $PATH
2305do
2306 IFS=$as_save_IFS
2307 test -z "$as_dir" && as_dir=.
2308 $as_echo "PATH: $as_dir"
2309 done
2310IFS=$as_save_IFS
2311
2312} >&5
2313
2314cat >&5 <<_ACEOF
2315
2316
2317## ----------- ##
2318## Core tests. ##
2319## ----------- ##
2320
2321_ACEOF
2322
2323
2324# Keep a trace of the command line.
2325# Strip out --no-create and --no-recursion so they do not pile up.
2326# Strip out --silent because we don't want to record it for future runs.
2327# Also quote any args containing shell meta-characters.
2328# Make two passes to allow for proper duplicate-argument suppression.
2329ac_configure_args=
2330ac_configure_args0=
2331ac_configure_args1=
2332ac_must_keep_next=false
2333for ac_pass in 1 2
2334do
2335 for ac_arg
2336 do
2337 case $ac_arg in
2338 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2340 | -silent | --silent | --silen | --sile | --sil)
2341 continue ;;
2342 *\'*)
2343 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2344 esac
2345 case $ac_pass in
2346 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2347 2)
2348 as_fn_append ac_configure_args1 " '$ac_arg'"
2349 if test $ac_must_keep_next = true; then
2350 ac_must_keep_next=false # Got value, back to normal.
2351 else
2352 case $ac_arg in
2353 *=* | --config-cache | -C | -disable-* | --disable-* \
2354 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2355 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2356 | -with-* | --with-* | -without-* | --without-* | --x)
2357 case "$ac_configure_args0 " in
2358 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2359 esac
2360 ;;
2361 -* ) ac_must_keep_next=true ;;
2362 esac
2363 fi
2364 as_fn_append ac_configure_args " '$ac_arg'"
2365 ;;
2366 esac
2367 done
2368done
2369{ ac_configure_args0=; unset ac_configure_args0;}
2370{ ac_configure_args1=; unset ac_configure_args1;}
2371
2372# When interrupted or exit'd, cleanup temporary files, and complete
2373# config.log. We remove comments because anyway the quotes in there
2374# would cause problems or look ugly.
2375# WARNING: Use '\'' to represent an apostrophe within the trap.
2376# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2377trap 'exit_status=$?
2378 # Save into config.log some information that might help in debugging.
2379 {
2380 echo
2381
2382 $as_echo "## ---------------- ##
2383## Cache variables. ##
2384## ---------------- ##"
2385 echo
2386 # The following way of writing the cache mishandles newlines in values,
2387(
2388 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2389 eval ac_val=\$$ac_var
2390 case $ac_val in #(
2391 *${as_nl}*)
2392 case $ac_var in #(
2393 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2394$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2395 esac
2396 case $ac_var in #(
2397 _ | IFS | as_nl) ;; #(
2398 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2399 *) { eval $ac_var=; unset $ac_var;} ;;
2400 esac ;;
2401 esac
2402 done
2403 (set) 2>&1 |
2404 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2405 *${as_nl}ac_space=\ *)
2406 sed -n \
2407 "s/'\''/'\''\\\\'\'''\''/g;
2408 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2409 ;; #(
2410 *)
2411 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2412 ;;
2413 esac |
2414 sort
2415)
2416 echo
2417
2418 $as_echo "## ----------------- ##
2419## Output variables. ##
2420## ----------------- ##"
2421 echo
2422 for ac_var in $ac_subst_vars
2423 do
2424 eval ac_val=\$$ac_var
2425 case $ac_val in
2426 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2427 esac
2428 $as_echo "$ac_var='\''$ac_val'\''"
2429 done | sort
2430 echo
2431
2432 if test -n "$ac_subst_files"; then
2433 $as_echo "## ------------------- ##
2434## File substitutions. ##
2435## ------------------- ##"
2436 echo
2437 for ac_var in $ac_subst_files
2438 do
2439 eval ac_val=\$$ac_var
2440 case $ac_val in
2441 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2442 esac
2443 $as_echo "$ac_var='\''$ac_val'\''"
2444 done | sort
2445 echo
2446 fi
2447
2448 if test -s confdefs.h; then
2449 $as_echo "## ----------- ##
2450## confdefs.h. ##
2451## ----------- ##"
2452 echo
2453 cat confdefs.h
2454 echo
2455 fi
2456 test "$ac_signal" != 0 &&
2457 $as_echo "$as_me: caught signal $ac_signal"
2458 $as_echo "$as_me: exit $exit_status"
2459 } >&5
2460 rm -f core *.core core.conftest.* &&
2461 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2462 exit $exit_status
2463' 0
2464for ac_signal in 1 2 13 15; do
2465 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2466done
2467ac_signal=0
2468
2469# confdefs.h avoids OS command line length limits that DEFS can exceed.
2470rm -f -r conftest* confdefs.h
2471
2472$as_echo "/* confdefs.h */" > confdefs.h
2473
2474# Predefined preprocessor variables.
2475
2476cat >>confdefs.h <<_ACEOF
2477#define PACKAGE_NAME "$PACKAGE_NAME"
2478_ACEOF
2479
2480cat >>confdefs.h <<_ACEOF
2481#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2482_ACEOF
2483
2484cat >>confdefs.h <<_ACEOF
2485#define PACKAGE_VERSION "$PACKAGE_VERSION"
2486_ACEOF
2487
2488cat >>confdefs.h <<_ACEOF
2489#define PACKAGE_STRING "$PACKAGE_STRING"
2490_ACEOF
2491
2492cat >>confdefs.h <<_ACEOF
2493#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2494_ACEOF
2495
2496cat >>confdefs.h <<_ACEOF
2497#define PACKAGE_URL "$PACKAGE_URL"
2498_ACEOF
2499
2500
2501# Let the site file select an alternate cache file if it wants to.
2502# Prefer an explicitly selected file to automatically selected ones.
2503ac_site_file1=NONE
2504ac_site_file2=NONE
2505if test -n "$CONFIG_SITE"; then
2506 # We do not want a PATH search for config.site.
2507 case $CONFIG_SITE in #((
2508 -*) ac_site_file1=./$CONFIG_SITE;;
2509 */*) ac_site_file1=$CONFIG_SITE;;
2510 *) ac_site_file1=./$CONFIG_SITE;;
2511 esac
2512elif test "x$prefix" != xNONE; then
2513 ac_site_file1=$prefix/share/config.site
2514 ac_site_file2=$prefix/etc/config.site
2515else
2516 ac_site_file1=$ac_default_prefix/share/config.site
2517 ac_site_file2=$ac_default_prefix/etc/config.site
2518fi
2519for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2520do
2521 test "x$ac_site_file" = xNONE && continue
2522 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2524$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2525 sed 's/^/| /' "$ac_site_file" >&5
2526 . "$ac_site_file" \
2527 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2528$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2529as_fn_error $? "failed to load site script $ac_site_file
2530See \`config.log' for more details" "$LINENO" 5; }
2531 fi
2532done
2533
2534if test -r "$cache_file"; then
2535 # Some versions of bash will fail to source /dev/null (special files
2536 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2537 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2539$as_echo "$as_me: loading cache $cache_file" >&6;}
2540 case $cache_file in
2541 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2542 *) . "./$cache_file";;
2543 esac
2544 fi
2545else
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2547$as_echo "$as_me: creating cache $cache_file" >&6;}
2548 >$cache_file
2549fi
2550
2551# Check that the precious variables saved in the cache have kept the same
2552# value.
2553ac_cache_corrupted=false
2554for ac_var in $ac_precious_vars; do
2555 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2556 eval ac_new_set=\$ac_env_${ac_var}_set
2557 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2558 eval ac_new_val=\$ac_env_${ac_var}_value
2559 case $ac_old_set,$ac_new_set in
2560 set,)
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2562$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2563 ac_cache_corrupted=: ;;
2564 ,set)
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2566$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2567 ac_cache_corrupted=: ;;
2568 ,);;
2569 *)
2570 if test "x$ac_old_val" != "x$ac_new_val"; then
2571 # differences in whitespace do not lead to failure.
2572 ac_old_val_w=`echo x $ac_old_val`
2573 ac_new_val_w=`echo x $ac_new_val`
2574 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2576$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2577 ac_cache_corrupted=:
2578 else
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2580$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2581 eval $ac_var=\$ac_old_val
2582 fi
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2584$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2586$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2587 fi;;
2588 esac
2589 # Pass precious variables to config.status.
2590 if test "$ac_new_set" = set; then
2591 case $ac_new_val in
2592 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2593 *) ac_arg=$ac_var=$ac_new_val ;;
2594 esac
2595 case " $ac_configure_args " in
2596 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2597 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2598 esac
2599 fi
2600done
2601if $ac_cache_corrupted; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2605$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2606 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2607fi
2608## -------------------- ##
2609## Main body of script. ##
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
2619
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
2626
2627
2628ac_config_headers="$ac_config_headers config.h"
2629
2630ac_ext=c
2631ac_cpp='$CPP $CPPFLAGS'
2632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2634ac_compiler_gnu=$ac_cv_c_compiler_gnu
2635if test -n "$ac_tool_prefix"; then
2636 for ac_prog in cc gcc
2637 do
2638 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2639set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2641$as_echo_n "checking for $ac_word... " >&6; }
2642if ${ac_cv_prog_CC+:} false; then :
2643 $as_echo_n "(cached) " >&6
2644else
2645 if test -n "$CC"; then
2646 ac_cv_prog_CC="$CC" # Let the user override the test.
2647else
2648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649for as_dir in $PATH
2650do
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2655 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 break 2
2658 fi
2659done
2660 done
2661IFS=$as_save_IFS
2662
2663fi
2664fi
2665CC=$ac_cv_prog_CC
2666if test -n "$CC"; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2668$as_echo "$CC" >&6; }
2669else
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671$as_echo "no" >&6; }
2672fi
2673
2674
2675 test -n "$CC" && break
2676 done
2677fi
2678if test -z "$CC"; then
2679 ac_ct_CC=$CC
2680 for ac_prog in cc gcc
2681do
2682 # Extract the first word of "$ac_prog", so it can be a program name with args.
2683set dummy $ac_prog; ac_word=$2
2684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2685$as_echo_n "checking for $ac_word... " >&6; }
2686if ${ac_cv_prog_ac_ct_CC+:} false; then :
2687 $as_echo_n "(cached) " >&6
2688else
2689 if test -n "$ac_ct_CC"; then
2690 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2691else
2692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693for as_dir in $PATH
2694do
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2699 ac_cv_prog_ac_ct_CC="$ac_prog"
2700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 break 2
2702 fi
2703done
2704 done
2705IFS=$as_save_IFS
2706
2707fi
2708fi
2709ac_ct_CC=$ac_cv_prog_ac_ct_CC
2710if test -n "$ac_ct_CC"; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2712$as_echo "$ac_ct_CC" >&6; }
2713else
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715$as_echo "no" >&6; }
2716fi
2717
2718
2719 test -n "$ac_ct_CC" && break
2720done
2721
2722 if test "x$ac_ct_CC" = x; then
2723 CC=""
2724 else
2725 case $cross_compiling:$ac_tool_warned in
2726yes:)
2727{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2728$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2729ac_tool_warned=yes ;;
2730esac
2731 CC=$ac_ct_CC
2732 fi
2733fi
2734
2735
2736test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2737$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2738as_fn_error $? "no acceptable C compiler found in \$PATH
2739See \`config.log' for more details" "$LINENO" 5; }
2740
2741# Provide some information about the compiler.
2742$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2743set X $ac_compile
2744ac_compiler=$2
2745for ac_option in --version -v -V -qversion; do
2746 { { ac_try="$ac_compiler $ac_option >&5"
2747case "(($ac_try" in
2748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749 *) ac_try_echo=$ac_try;;
2750esac
2751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2752$as_echo "$ac_try_echo"; } >&5
2753 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2754 ac_status=$?
2755 if test -s conftest.err; then
2756 sed '10a\
2757... rest of stderr output deleted ...
2758 10q' conftest.err >conftest.er1
2759 cat conftest.er1 >&5
2760 fi
2761 rm -f conftest.er1 conftest.err
2762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2763 test $ac_status = 0; }
2764done
2765
2766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2767/* end confdefs.h. */
2768
2769int
2770main ()
2771{
2772
2773 ;
2774 return 0;
2775}
2776_ACEOF
2777ac_clean_files_save=$ac_clean_files
2778ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2779# Try to create an executable without -o first, disregard a.out.
2780# It will help us diagnose broken compilers, and finding out an intuition
2781# of exeext.
2782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2783$as_echo_n "checking whether the C compiler works... " >&6; }
2784ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2785
2786# The possible output files:
2787ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2788
2789ac_rmfiles=
2790for ac_file in $ac_files
2791do
2792 case $ac_file in
2793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2794 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2795 esac
2796done
2797rm -f $ac_rmfiles
2798
2799if { { ac_try="$ac_link_default"
2800case "(($ac_try" in
2801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2802 *) ac_try_echo=$ac_try;;
2803esac
2804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2805$as_echo "$ac_try_echo"; } >&5
2806 (eval "$ac_link_default") 2>&5
2807 ac_status=$?
2808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2809 test $ac_status = 0; }; then :
2810 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2811# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2812# in a Makefile. We should not override ac_cv_exeext if it was cached,
2813# so that the user can short-circuit this test for compilers unknown to
2814# Autoconf.
2815for ac_file in $ac_files ''
2816do
2817 test -f "$ac_file" || continue
2818 case $ac_file in
2819 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2820 ;;
2821 [ab].out )
2822 # We found the default executable, but exeext='' is most
2823 # certainly right.
2824 break;;
2825 *.* )
2826 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2827 then :; else
2828 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2829 fi
2830 # We set ac_cv_exeext here because the later test for it is not
2831 # safe: cross compilers may not add the suffix if given an `-o'
2832 # argument, so we may need to know it at that point already.
2833 # Even if this section looks crufty: it has the advantage of
2834 # actually working.
2835 break;;
2836 * )
2837 break;;
2838 esac
2839done
2840test "$ac_cv_exeext" = no && ac_cv_exeext=
2841
2842else
2843 ac_file=''
2844fi
2845if test -z "$ac_file"; then :
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847$as_echo "no" >&6; }
2848$as_echo "$as_me: failed program was:" >&5
2849sed 's/^/| /' conftest.$ac_ext >&5
2850
2851{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2852$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2853as_fn_error 77 "C compiler cannot create executables
2854See \`config.log' for more details" "$LINENO" 5; }
2855else
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2857$as_echo "yes" >&6; }
2858fi
2859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2860$as_echo_n "checking for C compiler default output file name... " >&6; }
2861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2862$as_echo "$ac_file" >&6; }
2863ac_exeext=$ac_cv_exeext
2864
2865rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2866ac_clean_files=$ac_clean_files_save
2867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2868$as_echo_n "checking for suffix of executables... " >&6; }
2869if { { ac_try="$ac_link"
2870case "(($ac_try" in
2871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2872 *) ac_try_echo=$ac_try;;
2873esac
2874eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2875$as_echo "$ac_try_echo"; } >&5
2876 (eval "$ac_link") 2>&5
2877 ac_status=$?
2878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2879 test $ac_status = 0; }; then :
2880 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2881# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2882# work properly (i.e., refer to `conftest.exe'), while it won't with
2883# `rm'.
2884for ac_file in conftest.exe conftest conftest.*; do
2885 test -f "$ac_file" || continue
2886 case $ac_file in
2887 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2888 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2889 break;;
2890 * ) break;;
2891 esac
2892done
2893else
2894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2895$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2896as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2897See \`config.log' for more details" "$LINENO" 5; }
2898fi
2899rm -f conftest conftest$ac_cv_exeext
2900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2901$as_echo "$ac_cv_exeext" >&6; }
2902
2903rm -f conftest.$ac_ext
2904EXEEXT=$ac_cv_exeext
2905ac_exeext=$EXEEXT
2906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2907/* end confdefs.h. */
2908#include <stdio.h>
2909int
2910main ()
2911{
2912FILE *f = fopen ("conftest.out", "w");
2913 return ferror (f) || fclose (f) != 0;
2914
2915 ;
2916 return 0;
2917}
2918_ACEOF
2919ac_clean_files="$ac_clean_files conftest.out"
2920# Check that the compiler produces executables we can run. If not, either
2921# the compiler is broken, or we cross compile.
2922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2923$as_echo_n "checking whether we are cross compiling... " >&6; }
2924if test "$cross_compiling" != yes; then
2925 { { ac_try="$ac_link"
2926case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929esac
2930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2931$as_echo "$ac_try_echo"; } >&5
2932 (eval "$ac_link") 2>&5
2933 ac_status=$?
2934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2935 test $ac_status = 0; }
2936 if { ac_try='./conftest$ac_cv_exeext'
2937 { { case "(($ac_try" in
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2940esac
2941eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2942$as_echo "$ac_try_echo"; } >&5
2943 (eval "$ac_try") 2>&5
2944 ac_status=$?
2945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2946 test $ac_status = 0; }; }; then
2947 cross_compiling=no
2948 else
2949 if test "$cross_compiling" = maybe; then
2950 cross_compiling=yes
2951 else
2952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2953$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2954as_fn_error $? "cannot run C compiled programs.
2955If you meant to cross compile, use \`--host'.
2956See \`config.log' for more details" "$LINENO" 5; }
2957 fi
2958 fi
2959fi
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2961$as_echo "$cross_compiling" >&6; }
2962
2963rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2964ac_clean_files=$ac_clean_files_save
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2966$as_echo_n "checking for suffix of object files... " >&6; }
2967if ${ac_cv_objext+:} false; then :
2968 $as_echo_n "(cached) " >&6
2969else
2970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2971/* end confdefs.h. */
2972
2973int
2974main ()
2975{
2976
2977 ;
2978 return 0;
2979}
2980_ACEOF
2981rm -f conftest.o conftest.obj
2982if { { ac_try="$ac_compile"
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_compile") 2>&5
2990 ac_status=$?
2991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2992 test $ac_status = 0; }; then :
2993 for ac_file in conftest.o conftest.obj conftest.*; do
2994 test -f "$ac_file" || continue;
2995 case $ac_file in
2996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2997 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2998 break;;
2999 esac
3000done
3001else
3002 $as_echo "$as_me: failed program was:" >&5
3003sed 's/^/| /' conftest.$ac_ext >&5
3004
3005{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3007as_fn_error $? "cannot compute suffix of object files: cannot compile
3008See \`config.log' for more details" "$LINENO" 5; }
3009fi
3010rm -f conftest.$ac_cv_objext conftest.$ac_ext
3011fi
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3013$as_echo "$ac_cv_objext" >&6; }
3014OBJEXT=$ac_cv_objext
3015ac_objext=$OBJEXT
3016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3017$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3018if ${ac_cv_c_compiler_gnu+:} false; then :
3019 $as_echo_n "(cached) " >&6
3020else
3021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3022/* end confdefs.h. */
3023
3024int
3025main ()
3026{
3027#ifndef __GNUC__
3028 choke me
3029#endif
3030
3031 ;
3032 return 0;
3033}
3034_ACEOF
3035if ac_fn_c_try_compile "$LINENO"; then :
3036 ac_compiler_gnu=yes
3037else
3038 ac_compiler_gnu=no
3039fi
3040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3041ac_cv_c_compiler_gnu=$ac_compiler_gnu
3042
3043fi
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3045$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3046if test $ac_compiler_gnu = yes; then
3047 GCC=yes
3048else
3049 GCC=
3050fi
3051ac_test_CFLAGS=${CFLAGS+set}
3052ac_save_CFLAGS=$CFLAGS
3053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3054$as_echo_n "checking whether $CC accepts -g... " >&6; }
3055if ${ac_cv_prog_cc_g+:} false; then :
3056 $as_echo_n "(cached) " >&6
3057else
3058 ac_save_c_werror_flag=$ac_c_werror_flag
3059 ac_c_werror_flag=yes
3060 ac_cv_prog_cc_g=no
3061 CFLAGS="-g"
3062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3063/* end confdefs.h. */
3064
3065int
3066main ()
3067{
3068
3069 ;
3070 return 0;
3071}
3072_ACEOF
3073if ac_fn_c_try_compile "$LINENO"; then :
3074 ac_cv_prog_cc_g=yes
3075else
3076 CFLAGS=""
3077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3078/* end confdefs.h. */
3079
3080int
3081main ()
3082{
3083
3084 ;
3085 return 0;
3086}
3087_ACEOF
3088if ac_fn_c_try_compile "$LINENO"; then :
3089
3090else
3091 ac_c_werror_flag=$ac_save_c_werror_flag
3092 CFLAGS="-g"
3093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3094/* end confdefs.h. */
3095
3096int
3097main ()
3098{
3099
3100 ;
3101 return 0;
3102}
3103_ACEOF
3104if ac_fn_c_try_compile "$LINENO"; then :
3105 ac_cv_prog_cc_g=yes
3106fi
3107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3108fi
3109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3110fi
3111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3112 ac_c_werror_flag=$ac_save_c_werror_flag
3113fi
3114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3115$as_echo "$ac_cv_prog_cc_g" >&6; }
3116if test "$ac_test_CFLAGS" = set; then
3117 CFLAGS=$ac_save_CFLAGS
3118elif test $ac_cv_prog_cc_g = yes; then
3119 if test "$GCC" = yes; then
3120 CFLAGS="-g -O2"
3121 else
3122 CFLAGS="-g"
3123 fi
3124else
3125 if test "$GCC" = yes; then
3126 CFLAGS="-O2"
3127 else
3128 CFLAGS=
3129 fi
3130fi
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3132$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3133if ${ac_cv_prog_cc_c89+:} false; then :
3134 $as_echo_n "(cached) " >&6
3135else
3136 ac_cv_prog_cc_c89=no
3137ac_save_CC=$CC
3138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3139/* end confdefs.h. */
3140#include <stdarg.h>
3141#include <stdio.h>
3142struct stat;
3143/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3144struct buf { int x; };
3145FILE * (*rcsopen) (struct buf *, struct stat *, int);
3146static char *e (p, i)
3147 char **p;
3148 int i;
3149{
3150 return p[i];
3151}
3152static char *f (char * (*g) (char **, int), char **p, ...)
3153{
3154 char *s;
3155 va_list v;
3156 va_start (v,p);
3157 s = g (p, va_arg (v,int));
3158 va_end (v);
3159 return s;
3160}
3161
3162/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3163 function prototypes and stuff, but not '\xHH' hex character constants.
3164 These don't provoke an error unfortunately, instead are silently treated
3165 as 'x'. The following induces an error, until -std is added to get
3166 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3167 array size at least. It's necessary to write '\x00'==0 to get something
3168 that's true only with -std. */
3169int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3170
3171/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3172 inside strings and character constants. */
3173#define FOO(x) 'x'
3174int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3175
3176int test (int i, double x);
3177struct s1 {int (*f) (int a);};
3178struct s2 {int (*f) (double a);};
3179int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3180int argc;
3181char **argv;
3182int
3183main ()
3184{
3185return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3186 ;
3187 return 0;
3188}
3189_ACEOF
3190for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3191 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3192do
3193 CC="$ac_save_CC $ac_arg"
3194 if ac_fn_c_try_compile "$LINENO"; then :
3195 ac_cv_prog_cc_c89=$ac_arg
3196fi
3197rm -f core conftest.err conftest.$ac_objext
3198 test "x$ac_cv_prog_cc_c89" != "xno" && break
3199done
3200rm -f conftest.$ac_ext
3201CC=$ac_save_CC
3202
3203fi
3204# AC_CACHE_VAL
3205case "x$ac_cv_prog_cc_c89" in
3206 x)
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3208$as_echo "none needed" >&6; } ;;
3209 xno)
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3211$as_echo "unsupported" >&6; } ;;
3212 *)
3213 CC="$CC $ac_cv_prog_cc_c89"
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3215$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3216esac
3217if test "x$ac_cv_prog_cc_c89" != xno; then :
3218
3219fi
3220
3221ac_ext=c
3222ac_cpp='$CPP $CPPFLAGS'
3223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3225ac_compiler_gnu=$ac_cv_c_compiler_gnu
3226
3227ac_aux_dir=
3228for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3229 if test -f "$ac_dir/install-sh"; then
3230 ac_aux_dir=$ac_dir
3231 ac_install_sh="$ac_aux_dir/install-sh -c"
3232 break
3233 elif test -f "$ac_dir/install.sh"; then
3234 ac_aux_dir=$ac_dir
3235 ac_install_sh="$ac_aux_dir/install.sh -c"
3236 break
3237 elif test -f "$ac_dir/shtool"; then
3238 ac_aux_dir=$ac_dir
3239 ac_install_sh="$ac_aux_dir/shtool install -c"
3240 break
3241 fi
3242done
3243if test -z "$ac_aux_dir"; then
3244 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3245fi
3246
3247# These three variables are undocumented and unsupported,
3248# and are intended to be withdrawn in a future Autoconf release.
3249# They can cause serious problems if a builder's source tree is in a directory
3250# whose full name contains unusual characters.
3251ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3252ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3253ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3254
3255
3256# Make sure we can run config.sub.
3257$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3258 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3259
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3261$as_echo_n "checking build system type... " >&6; }
3262if ${ac_cv_build+:} false; then :
3263 $as_echo_n "(cached) " >&6
3264else
3265 ac_build_alias=$build_alias
3266test "x$ac_build_alias" = x &&
3267 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3268test "x$ac_build_alias" = x &&
3269 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3270ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3271 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3272
3273fi
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3275$as_echo "$ac_cv_build" >&6; }
3276case $ac_cv_build in
3277*-*-*) ;;
3278*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3279esac
3280build=$ac_cv_build
3281ac_save_IFS=$IFS; IFS='-'
3282set x $ac_cv_build
3283shift
3284build_cpu=$1
3285build_vendor=$2
3286shift; shift
3287# Remember, the first character of IFS is used to create $*,
3288# except with old shells:
3289build_os=$*
3290IFS=$ac_save_IFS
3291case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3292
3293
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3295$as_echo_n "checking host system type... " >&6; }
3296if ${ac_cv_host+:} false; then :
3297 $as_echo_n "(cached) " >&6
3298else
3299 if test "x$host_alias" = x; then
3300 ac_cv_host=$ac_cv_build
3301else
3302 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3303 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3304fi
3305
3306fi
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3308$as_echo "$ac_cv_host" >&6; }
3309case $ac_cv_host in
3310*-*-*) ;;
3311*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3312esac
3313host=$ac_cv_host
3314ac_save_IFS=$IFS; IFS='-'
3315set x $ac_cv_host
3316shift
3317host_cpu=$1
3318host_vendor=$2
3319shift; shift
3320# Remember, the first character of IFS is used to create $*,
3321# except with old shells:
3322host_os=$*
3323IFS=$ac_save_IFS
3324case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3325
3326
3327
3328ac_ext=c
3329ac_cpp='$CPP $CPPFLAGS'
3330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3332ac_compiler_gnu=$ac_cv_c_compiler_gnu
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3334$as_echo_n "checking how to run the C preprocessor... " >&6; }
3335# On Suns, sometimes $CPP names a directory.
3336if test -n "$CPP" && test -d "$CPP"; then
3337 CPP=
3338fi
3339if test -z "$CPP"; then
3340 if ${ac_cv_prog_CPP+:} false; then :
3341 $as_echo_n "(cached) " >&6
3342else
3343 # Double quotes because CPP needs to be expanded
3344 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3345 do
3346 ac_preproc_ok=false
3347for ac_c_preproc_warn_flag in '' yes
3348do
3349 # Use a header file that comes with gcc, so configuring glibc
3350 # with a fresh cross-compiler works.
3351 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3352 # <limits.h> exists even on freestanding compilers.
3353 # On the NeXT, cc -E runs the code through the compiler's parser,
3354 # not just through cpp. "Syntax error" is here to catch this case.
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356/* end confdefs.h. */
3357#ifdef __STDC__
3358# include <limits.h>
3359#else
3360# include <assert.h>
3361#endif
3362 Syntax error
3363_ACEOF
3364if ac_fn_c_try_cpp "$LINENO"; then :
3365
3366else
3367 # Broken: fails on valid input.
3368continue
3369fi
3370rm -f conftest.err conftest.i conftest.$ac_ext
3371
3372 # OK, works on sane cases. Now check whether nonexistent headers
3373 # can be detected and how.
3374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375/* end confdefs.h. */
3376#include <ac_nonexistent.h>
3377_ACEOF
3378if ac_fn_c_try_cpp "$LINENO"; then :
3379 # Broken: success on invalid input.
3380continue
3381else
3382 # Passes both tests.
3383ac_preproc_ok=:
3384break
3385fi
3386rm -f conftest.err conftest.i conftest.$ac_ext
3387
3388done
3389# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3390rm -f conftest.i conftest.err conftest.$ac_ext
3391if $ac_preproc_ok; then :
3392 break
3393fi
3394
3395 done
3396 ac_cv_prog_CPP=$CPP
3397
3398fi
3399 CPP=$ac_cv_prog_CPP
3400else
3401 ac_cv_prog_CPP=$CPP
3402fi
3403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3404$as_echo "$CPP" >&6; }
3405ac_preproc_ok=false
3406for ac_c_preproc_warn_flag in '' yes
3407do
3408 # Use a header file that comes with gcc, so configuring glibc
3409 # with a fresh cross-compiler works.
3410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3411 # <limits.h> exists even on freestanding compilers.
3412 # On the NeXT, cc -E runs the code through the compiler's parser,
3413 # not just through cpp. "Syntax error" is here to catch this case.
3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415/* end confdefs.h. */
3416#ifdef __STDC__
3417# include <limits.h>
3418#else
3419# include <assert.h>
3420#endif
3421 Syntax error
3422_ACEOF
3423if ac_fn_c_try_cpp "$LINENO"; then :
3424
3425else
3426 # Broken: fails on valid input.
3427continue
3428fi
3429rm -f conftest.err conftest.i conftest.$ac_ext
3430
3431 # OK, works on sane cases. Now check whether nonexistent headers
3432 # can be detected and how.
3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434/* end confdefs.h. */
3435#include <ac_nonexistent.h>
3436_ACEOF
3437if ac_fn_c_try_cpp "$LINENO"; then :
3438 # Broken: success on invalid input.
3439continue
3440else
3441 # Passes both tests.
3442ac_preproc_ok=:
3443break
3444fi
3445rm -f conftest.err conftest.i conftest.$ac_ext
3446
3447done
3448# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3449rm -f conftest.i conftest.err conftest.$ac_ext
3450if $ac_preproc_ok; then :
3451
3452else
3453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3455as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3456See \`config.log' for more details" "$LINENO" 5; }
3457fi
3458
3459ac_ext=c
3460ac_cpp='$CPP $CPPFLAGS'
3461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3463ac_compiler_gnu=$ac_cv_c_compiler_gnu
3464
3465
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3467$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3468if ${ac_cv_path_GREP+:} false; then :
3469 $as_echo_n "(cached) " >&6
3470else
3471 if test -z "$GREP"; then
3472 ac_path_GREP_found=false
3473 # Loop through the user's path and test for each of PROGNAME-LIST
3474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3476do
3477 IFS=$as_save_IFS
3478 test -z "$as_dir" && as_dir=.
3479 for ac_prog in grep ggrep; do
3480 for ac_exec_ext in '' $ac_executable_extensions; do
3481 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3482 as_fn_executable_p "$ac_path_GREP" || continue
3483# Check for GNU ac_path_GREP and select it if it is found.
3484 # Check for GNU $ac_path_GREP
3485case `"$ac_path_GREP" --version 2>&1` in
3486*GNU*)
3487 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3488*)
3489 ac_count=0
3490 $as_echo_n 0123456789 >"conftest.in"
3491 while :
3492 do
3493 cat "conftest.in" "conftest.in" >"conftest.tmp"
3494 mv "conftest.tmp" "conftest.in"
3495 cp "conftest.in" "conftest.nl"
3496 $as_echo 'GREP' >> "conftest.nl"
3497 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3498 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3499 as_fn_arith $ac_count + 1 && ac_count=$as_val
3500 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3501 # Best one so far, save it but keep looking for a better one
3502 ac_cv_path_GREP="$ac_path_GREP"
3503 ac_path_GREP_max=$ac_count
3504 fi
3505 # 10*(2^10) chars as input seems more than enough
3506 test $ac_count -gt 10 && break
3507 done
3508 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3509esac
3510
3511 $ac_path_GREP_found && break 3
3512 done
3513 done
3514 done
3515IFS=$as_save_IFS
3516 if test -z "$ac_cv_path_GREP"; then
3517 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3518 fi
3519else
3520 ac_cv_path_GREP=$GREP
3521fi
3522
3523fi
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3525$as_echo "$ac_cv_path_GREP" >&6; }
3526 GREP="$ac_cv_path_GREP"
3527
3528
3529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3530$as_echo_n "checking for egrep... " >&6; }
3531if ${ac_cv_path_EGREP+:} false; then :
3532 $as_echo_n "(cached) " >&6
3533else
3534 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3535 then ac_cv_path_EGREP="$GREP -E"
3536 else
3537 if test -z "$EGREP"; then
3538 ac_path_EGREP_found=false
3539 # Loop through the user's path and test for each of PROGNAME-LIST
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3542do
3543 IFS=$as_save_IFS
3544 test -z "$as_dir" && as_dir=.
3545 for ac_prog in egrep; do
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3548 as_fn_executable_p "$ac_path_EGREP" || continue
3549# Check for GNU ac_path_EGREP and select it if it is found.
3550 # Check for GNU $ac_path_EGREP
3551case `"$ac_path_EGREP" --version 2>&1` in
3552*GNU*)
3553 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3554*)
3555 ac_count=0
3556 $as_echo_n 0123456789 >"conftest.in"
3557 while :
3558 do
3559 cat "conftest.in" "conftest.in" >"conftest.tmp"
3560 mv "conftest.tmp" "conftest.in"
3561 cp "conftest.in" "conftest.nl"
3562 $as_echo 'EGREP' >> "conftest.nl"
3563 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3564 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3565 as_fn_arith $ac_count + 1 && ac_count=$as_val
3566 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3567 # Best one so far, save it but keep looking for a better one
3568 ac_cv_path_EGREP="$ac_path_EGREP"
3569 ac_path_EGREP_max=$ac_count
3570 fi
3571 # 10*(2^10) chars as input seems more than enough
3572 test $ac_count -gt 10 && break
3573 done
3574 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3575esac
3576
3577 $ac_path_EGREP_found && break 3
3578 done
3579 done
3580 done
3581IFS=$as_save_IFS
3582 if test -z "$ac_cv_path_EGREP"; then
3583 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3584 fi
3585else
3586 ac_cv_path_EGREP=$EGREP
3587fi
3588
3589 fi
3590fi
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3592$as_echo "$ac_cv_path_EGREP" >&6; }
3593 EGREP="$ac_cv_path_EGREP"
3594
3595
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3597$as_echo_n "checking for ANSI C header files... " >&6; }
3598if ${ac_cv_header_stdc+:} false; then :
3599 $as_echo_n "(cached) " >&6
3600else
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602/* end confdefs.h. */
3603#include <stdlib.h>
3604#include <stdarg.h>
3605#include <string.h>
3606#include <float.h>
3607
3608int
3609main ()
3610{
3611
3612 ;
3613 return 0;
3614}
3615_ACEOF
3616if ac_fn_c_try_compile "$LINENO"; then :
3617 ac_cv_header_stdc=yes
3618else
3619 ac_cv_header_stdc=no
3620fi
3621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622
3623if test $ac_cv_header_stdc = yes; then
3624 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626/* end confdefs.h. */
3627#include <string.h>
3628
3629_ACEOF
3630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3631 $EGREP "memchr" >/dev/null 2>&1; then :
3632
3633else
3634 ac_cv_header_stdc=no
3635fi
3636rm -f conftest*
3637
3638fi
3639
3640if test $ac_cv_header_stdc = yes; then
3641 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643/* end confdefs.h. */
3644#include <stdlib.h>
3645
3646_ACEOF
3647if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3648 $EGREP "free" >/dev/null 2>&1; then :
3649
3650else
3651 ac_cv_header_stdc=no
3652fi
3653rm -f conftest*
3654
3655fi
3656
3657if test $ac_cv_header_stdc = yes; then
3658 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3659 if test "$cross_compiling" = yes; then :
3660 :
3661else
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663/* end confdefs.h. */
3664#include <ctype.h>
3665#include <stdlib.h>
3666#if ((' ' & 0x0FF) == 0x020)
3667# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3668# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3669#else
3670# define ISLOWER(c) \
3671 (('a' <= (c) && (c) <= 'i') \
3672 || ('j' <= (c) && (c) <= 'r') \
3673 || ('s' <= (c) && (c) <= 'z'))
3674# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3675#endif
3676
3677#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3678int
3679main ()
3680{
3681 int i;
3682 for (i = 0; i < 256; i++)
3683 if (XOR (islower (i), ISLOWER (i))
3684 || toupper (i) != TOUPPER (i))
3685 return 2;
3686 return 0;
3687}
3688_ACEOF
3689if ac_fn_c_try_run "$LINENO"; then :
3690
3691else
3692 ac_cv_header_stdc=no
3693fi
3694rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3695 conftest.$ac_objext conftest.beam conftest.$ac_ext
3696fi
3697
3698fi
3699fi
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3701$as_echo "$ac_cv_header_stdc" >&6; }
3702if test $ac_cv_header_stdc = yes; then
3703
3704$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3705
3706fi
3707
3708# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3709for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3710 inttypes.h stdint.h unistd.h
3711do :
3712 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3713ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3714"
3715if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3716 cat >>confdefs.h <<_ACEOF
3717#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3718_ACEOF
3719
3720fi
3721
3722done
3723
3724
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3726$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3727if ${ac_cv_c_bigendian+:} false; then :
3728 $as_echo_n "(cached) " >&6
3729else
3730 ac_cv_c_bigendian=unknown
3731 # See if we're dealing with a universal compiler.
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733/* end confdefs.h. */
3734#ifndef __APPLE_CC__
3735 not a universal capable compiler
3736 #endif
3737 typedef int dummy;
3738
3739_ACEOF
3740if ac_fn_c_try_compile "$LINENO"; then :
3741
3742 # Check for potential -arch flags. It is not universal unless
3743 # there are at least two -arch flags with different values.
3744 ac_arch=
3745 ac_prev=
3746 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3747 if test -n "$ac_prev"; then
3748 case $ac_word in
3749 i?86 | x86_64 | ppc | ppc64)
3750 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3751 ac_arch=$ac_word
3752 else
3753 ac_cv_c_bigendian=universal
3754 break
3755 fi
3756 ;;
3757 esac
3758 ac_prev=
3759 elif test "x$ac_word" = "x-arch"; then
3760 ac_prev=arch
3761 fi
3762 done
3763fi
3764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3765 if test $ac_cv_c_bigendian = unknown; then
3766 # See if sys/param.h defines the BYTE_ORDER macro.
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768/* end confdefs.h. */
3769#include <sys/types.h>
3770 #include <sys/param.h>
3771
3772int
3773main ()
3774{
3775#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3776 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3777 && LITTLE_ENDIAN)
3778 bogus endian macros
3779 #endif
3780
3781 ;
3782 return 0;
3783}
3784_ACEOF
3785if ac_fn_c_try_compile "$LINENO"; then :
3786 # It does; now see whether it defined to BIG_ENDIAN or not.
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788/* end confdefs.h. */
3789#include <sys/types.h>
3790 #include <sys/param.h>
3791
3792int
3793main ()
3794{
3795#if BYTE_ORDER != BIG_ENDIAN
3796 not big endian
3797 #endif
3798
3799 ;
3800 return 0;
3801}
3802_ACEOF
3803if ac_fn_c_try_compile "$LINENO"; then :
3804 ac_cv_c_bigendian=yes
3805else
3806 ac_cv_c_bigendian=no
3807fi
3808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3809fi
3810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3811 fi
3812 if test $ac_cv_c_bigendian = unknown; then
3813 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815/* end confdefs.h. */
3816#include <limits.h>
3817
3818int
3819main ()
3820{
3821#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3822 bogus endian macros
3823 #endif
3824
3825 ;
3826 return 0;
3827}
3828_ACEOF
3829if ac_fn_c_try_compile "$LINENO"; then :
3830 # It does; now see whether it defined to _BIG_ENDIAN or not.
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832/* end confdefs.h. */
3833#include <limits.h>
3834
3835int
3836main ()
3837{
3838#ifndef _BIG_ENDIAN
3839 not big endian
3840 #endif
3841
3842 ;
3843 return 0;
3844}
3845_ACEOF
3846if ac_fn_c_try_compile "$LINENO"; then :
3847 ac_cv_c_bigendian=yes
3848else
3849 ac_cv_c_bigendian=no
3850fi
3851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3852fi
3853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3854 fi
3855 if test $ac_cv_c_bigendian = unknown; then
3856 # Compile a test program.
3857 if test "$cross_compiling" = yes; then :
3858 # Try to guess by grepping values from an object file.
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860/* end confdefs.h. */
3861short int ascii_mm[] =
3862 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3863 short int ascii_ii[] =
3864 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3865 int use_ascii (int i) {
3866 return ascii_mm[i] + ascii_ii[i];
3867 }
3868 short int ebcdic_ii[] =
3869 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3870 short int ebcdic_mm[] =
3871 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3872 int use_ebcdic (int i) {
3873 return ebcdic_mm[i] + ebcdic_ii[i];
3874 }
3875 extern int foo;
3876
3877int
3878main ()
3879{
3880return use_ascii (foo) == use_ebcdic (foo);
3881 ;
3882 return 0;
3883}
3884_ACEOF
3885if ac_fn_c_try_compile "$LINENO"; then :
3886 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
3887 ac_cv_c_bigendian=yes
3888 fi
3889 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3890 if test "$ac_cv_c_bigendian" = unknown; then
3891 ac_cv_c_bigendian=no
3892 else
3893 # finding both strings is unlikely to happen, but who knows?
3894 ac_cv_c_bigendian=unknown
3895 fi
3896 fi
3897fi
3898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899else
3900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901/* end confdefs.h. */
3902$ac_includes_default
3903int
3904main ()
3905{
3906
3907 /* Are we little or big endian? From Harbison&Steele. */
3908 union
3909 {
3910 long int l;
3911 char c[sizeof (long int)];
3912 } u;
3913 u.l = 1;
3914 return u.c[sizeof (long int) - 1] == 1;
3915
3916 ;
3917 return 0;
3918}
3919_ACEOF
3920if ac_fn_c_try_run "$LINENO"; then :
3921 ac_cv_c_bigendian=no
3922else
3923 ac_cv_c_bigendian=yes
3924fi
3925rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3926 conftest.$ac_objext conftest.beam conftest.$ac_ext
3927fi
3928
3929 fi
3930fi
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
3932$as_echo "$ac_cv_c_bigendian" >&6; }
3933 case $ac_cv_c_bigendian in #(
3934 yes)
3935 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
3936;; #(
3937 no)
3938 ;; #(
3939 universal)
3940
3941$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
3942
3943 ;; #(
3944 *)
3945 as_fn_error $? "unknown endianness
3946 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
3947 esac
3948
3949
3950# Checks for programs.
3951for ac_prog in gawk mawk nawk awk
3952do
3953 # Extract the first word of "$ac_prog", so it can be a program name with args.
3954set dummy $ac_prog; ac_word=$2
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956$as_echo_n "checking for $ac_word... " >&6; }
3957if ${ac_cv_prog_AWK+:} false; then :
3958 $as_echo_n "(cached) " >&6
3959else
3960 if test -n "$AWK"; then
3961 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3962else
3963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964for as_dir in $PATH
3965do
3966 IFS=$as_save_IFS
3967 test -z "$as_dir" && as_dir=.
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3970 ac_cv_prog_AWK="$ac_prog"
3971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3972 break 2
3973 fi
3974done
3975 done
3976IFS=$as_save_IFS
3977
3978fi
3979fi
3980AWK=$ac_cv_prog_AWK
3981if test -n "$AWK"; then
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3983$as_echo "$AWK" >&6; }
3984else
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986$as_echo "no" >&6; }
3987fi
3988
3989
3990 test -n "$AWK" && break
3991done
3992
3993ac_ext=c
3994ac_cpp='$CPP $CPPFLAGS'
3995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3997ac_compiler_gnu=$ac_cv_c_compiler_gnu
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3999$as_echo_n "checking how to run the C preprocessor... " >&6; }
4000# On Suns, sometimes $CPP names a directory.
4001if test -n "$CPP" && test -d "$CPP"; then
4002 CPP=
4003fi
4004if test -z "$CPP"; then
4005 if ${ac_cv_prog_CPP+:} false; then :
4006 $as_echo_n "(cached) " >&6
4007else
4008 # Double quotes because CPP needs to be expanded
4009 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4010 do
4011 ac_preproc_ok=false
4012for ac_c_preproc_warn_flag in '' yes
4013do
4014 # Use a header file that comes with gcc, so configuring glibc
4015 # with a fresh cross-compiler works.
4016 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4017 # <limits.h> exists even on freestanding compilers.
4018 # On the NeXT, cc -E runs the code through the compiler's parser,
4019 # not just through cpp. "Syntax error" is here to catch this case.
4020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021/* end confdefs.h. */
4022#ifdef __STDC__
4023# include <limits.h>
4024#else
4025# include <assert.h>
4026#endif
4027 Syntax error
4028_ACEOF
4029if ac_fn_c_try_cpp "$LINENO"; then :
4030
4031else
4032 # Broken: fails on valid input.
4033continue
4034fi
4035rm -f conftest.err conftest.i conftest.$ac_ext
4036
4037 # OK, works on sane cases. Now check whether nonexistent headers
4038 # can be detected and how.
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040/* end confdefs.h. */
4041#include <ac_nonexistent.h>
4042_ACEOF
4043if ac_fn_c_try_cpp "$LINENO"; then :
4044 # Broken: success on invalid input.
4045continue
4046else
4047 # Passes both tests.
4048ac_preproc_ok=:
4049break
4050fi
4051rm -f conftest.err conftest.i conftest.$ac_ext
4052
4053done
4054# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4055rm -f conftest.i conftest.err conftest.$ac_ext
4056if $ac_preproc_ok; then :
4057 break
4058fi
4059
4060 done
4061 ac_cv_prog_CPP=$CPP
4062
4063fi
4064 CPP=$ac_cv_prog_CPP
4065else
4066 ac_cv_prog_CPP=$CPP
4067fi
4068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4069$as_echo "$CPP" >&6; }
4070ac_preproc_ok=false
4071for ac_c_preproc_warn_flag in '' yes
4072do
4073 # Use a header file that comes with gcc, so configuring glibc
4074 # with a fresh cross-compiler works.
4075 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4076 # <limits.h> exists even on freestanding compilers.
4077 # On the NeXT, cc -E runs the code through the compiler's parser,
4078 # not just through cpp. "Syntax error" is here to catch this case.
4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080/* end confdefs.h. */
4081#ifdef __STDC__
4082# include <limits.h>
4083#else
4084# include <assert.h>
4085#endif
4086 Syntax error
4087_ACEOF
4088if ac_fn_c_try_cpp "$LINENO"; then :
4089
4090else
4091 # Broken: fails on valid input.
4092continue
4093fi
4094rm -f conftest.err conftest.i conftest.$ac_ext
4095
4096 # OK, works on sane cases. Now check whether nonexistent headers
4097 # can be detected and how.
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099/* end confdefs.h. */
4100#include <ac_nonexistent.h>
4101_ACEOF
4102if ac_fn_c_try_cpp "$LINENO"; then :
4103 # Broken: success on invalid input.
4104continue
4105else
4106 # Passes both tests.
4107ac_preproc_ok=:
4108break
4109fi
4110rm -f conftest.err conftest.i conftest.$ac_ext
4111
4112done
4113# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4114rm -f conftest.i conftest.err conftest.$ac_ext
4115if $ac_preproc_ok; then :
4116
4117else
4118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4119$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4120as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4121See \`config.log' for more details" "$LINENO" 5; }
4122fi
4123
4124ac_ext=c
4125ac_cpp='$CPP $CPPFLAGS'
4126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4128ac_compiler_gnu=$ac_cv_c_compiler_gnu
4129
4130if test -n "$ac_tool_prefix"; then
4131 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4132set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4134$as_echo_n "checking for $ac_word... " >&6; }
4135if ${ac_cv_prog_RANLIB+:} false; then :
4136 $as_echo_n "(cached) " >&6
4137else
4138 if test -n "$RANLIB"; then
4139 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4140else
4141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142for as_dir in $PATH
4143do
4144 IFS=$as_save_IFS
4145 test -z "$as_dir" && as_dir=.
4146 for ac_exec_ext in '' $ac_executable_extensions; do
4147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4148 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4150 break 2
4151 fi
4152done
4153 done
4154IFS=$as_save_IFS
4155
4156fi
4157fi
4158RANLIB=$ac_cv_prog_RANLIB
4159if test -n "$RANLIB"; then
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4161$as_echo "$RANLIB" >&6; }
4162else
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4164$as_echo "no" >&6; }
4165fi
4166
4167
4168fi
4169if test -z "$ac_cv_prog_RANLIB"; then
4170 ac_ct_RANLIB=$RANLIB
4171 # Extract the first word of "ranlib", so it can be a program name with args.
4172set dummy ranlib; ac_word=$2
4173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4174$as_echo_n "checking for $ac_word... " >&6; }
4175if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4176 $as_echo_n "(cached) " >&6
4177else
4178 if test -n "$ac_ct_RANLIB"; then
4179 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4180else
4181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182for as_dir in $PATH
4183do
4184 IFS=$as_save_IFS
4185 test -z "$as_dir" && as_dir=.
4186 for ac_exec_ext in '' $ac_executable_extensions; do
4187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4188 ac_cv_prog_ac_ct_RANLIB="ranlib"
4189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4190 break 2
4191 fi
4192done
4193 done
4194IFS=$as_save_IFS
4195
4196fi
4197fi
4198ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4199if test -n "$ac_ct_RANLIB"; then
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4201$as_echo "$ac_ct_RANLIB" >&6; }
4202else
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204$as_echo "no" >&6; }
4205fi
4206
4207 if test "x$ac_ct_RANLIB" = x; then
4208 RANLIB=":"
4209 else
4210 case $cross_compiling:$ac_tool_warned in
4211yes:)
4212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4214ac_tool_warned=yes ;;
4215esac
4216 RANLIB=$ac_ct_RANLIB
4217 fi
4218else
4219 RANLIB="$ac_cv_prog_RANLIB"
4220fi
4221
4222# Find a good install program. We prefer a C program (faster),
4223# so one script is as good as another. But avoid the broken or
4224# incompatible versions:
4225# SysV /etc/install, /usr/sbin/install
4226# SunOS /usr/etc/install
4227# IRIX /sbin/install
4228# AIX /bin/install
4229# AmigaOS /C/install, which installs bootblocks on floppy discs
4230# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4231# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4232# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4233# OS/2's system install, which has a completely different semantic
4234# ./install, which can be erroneously created by make from ./install.sh.
4235# Reject install programs that cannot install multiple files.
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4237$as_echo_n "checking for a BSD-compatible install... " >&6; }
4238if test -z "$INSTALL"; then
4239if ${ac_cv_path_install+:} false; then :
4240 $as_echo_n "(cached) " >&6
4241else
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243for as_dir in $PATH
4244do
4245 IFS=$as_save_IFS
4246 test -z "$as_dir" && as_dir=.
4247 # Account for people who put trailing slashes in PATH elements.
4248case $as_dir/ in #((
4249 ./ | .// | /[cC]/* | \
4250 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4251 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4252 /usr/ucb/* ) ;;
4253 *)
4254 # OSF1 and SCO ODT 3.0 have their own names for install.
4255 # Don't use installbsd from OSF since it installs stuff as root
4256 # by default.
4257 for ac_prog in ginstall scoinst install; do
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4260 if test $ac_prog = install &&
4261 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4262 # AIX install. It has an incompatible calling convention.
4263 :
4264 elif test $ac_prog = install &&
4265 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4266 # program-specific install script used by HP pwplus--don't use.
4267 :
4268 else
4269 rm -rf conftest.one conftest.two conftest.dir
4270 echo one > conftest.one
4271 echo two > conftest.two
4272 mkdir conftest.dir
4273 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4274 test -s conftest.one && test -s conftest.two &&
4275 test -s conftest.dir/conftest.one &&
4276 test -s conftest.dir/conftest.two
4277 then
4278 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4279 break 3
4280 fi
4281 fi
4282 fi
4283 done
4284 done
4285 ;;
4286esac
4287
4288 done
4289IFS=$as_save_IFS
4290
4291rm -rf conftest.one conftest.two conftest.dir
4292
4293fi
4294 if test "${ac_cv_path_install+set}" = set; then
4295 INSTALL=$ac_cv_path_install
4296 else
4297 # As a last resort, use the slow shell script. Don't cache a
4298 # value for INSTALL within a source directory, because that will
4299 # break other packages using the cache if that directory is
4300 # removed, or if the value is a relative name.
4301 INSTALL=$ac_install_sh
4302 fi
4303fi
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4305$as_echo "$INSTALL" >&6; }
4306
4307# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4308# It thinks the first close brace ends the variable substitution.
4309test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4310
4311test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4312
4313test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4314
4315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4316$as_echo_n "checking for egrep... " >&6; }
4317if ${ac_cv_path_EGREP+:} false; then :
4318 $as_echo_n "(cached) " >&6
4319else
4320 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4321 then ac_cv_path_EGREP="$GREP -E"
4322 else
4323 if test -z "$EGREP"; then
4324 ac_path_EGREP_found=false
4325 # Loop through the user's path and test for each of PROGNAME-LIST
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4328do
4329 IFS=$as_save_IFS
4330 test -z "$as_dir" && as_dir=.
4331 for ac_prog in egrep; do
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4334 as_fn_executable_p "$ac_path_EGREP" || continue
4335# Check for GNU ac_path_EGREP and select it if it is found.
4336 # Check for GNU $ac_path_EGREP
4337case `"$ac_path_EGREP" --version 2>&1` in
4338*GNU*)
4339 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4340*)
4341 ac_count=0
4342 $as_echo_n 0123456789 >"conftest.in"
4343 while :
4344 do
4345 cat "conftest.in" "conftest.in" >"conftest.tmp"
4346 mv "conftest.tmp" "conftest.in"
4347 cp "conftest.in" "conftest.nl"
4348 $as_echo 'EGREP' >> "conftest.nl"
4349 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4350 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4351 as_fn_arith $ac_count + 1 && ac_count=$as_val
4352 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4353 # Best one so far, save it but keep looking for a better one
4354 ac_cv_path_EGREP="$ac_path_EGREP"
4355 ac_path_EGREP_max=$ac_count
4356 fi
4357 # 10*(2^10) chars as input seems more than enough
4358 test $ac_count -gt 10 && break
4359 done
4360 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4361esac
4362
4363 $ac_path_EGREP_found && break 3
4364 done
4365 done
4366 done
4367IFS=$as_save_IFS
4368 if test -z "$ac_cv_path_EGREP"; then
4369 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4370 fi
4371else
4372 ac_cv_path_EGREP=$EGREP
4373fi
4374
4375 fi
4376fi
4377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4378$as_echo "$ac_cv_path_EGREP" >&6; }
4379 EGREP="$ac_cv_path_EGREP"
4380
4381
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4383$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4384if test -z "$MKDIR_P"; then
4385 if ${ac_cv_path_mkdir+:} false; then :
4386 $as_echo_n "(cached) " >&6
4387else
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4390do
4391 IFS=$as_save_IFS
4392 test -z "$as_dir" && as_dir=.
4393 for ac_prog in mkdir gmkdir; do
4394 for ac_exec_ext in '' $ac_executable_extensions; do
4395 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4396 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4397 'mkdir (GNU coreutils) '* | \
4398 'mkdir (coreutils) '* | \
4399 'mkdir (fileutils) '4.1*)
4400 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4401 break 3;;
4402 esac
4403 done
4404 done
4405 done
4406IFS=$as_save_IFS
4407
4408fi
4409
4410 test -d ./--version && rmdir ./--version
4411 if test "${ac_cv_path_mkdir+set}" = set; then
4412 MKDIR_P="$ac_cv_path_mkdir -p"
4413 else
4414 # As a last resort, use the slow shell script. Don't cache a
4415 # value for MKDIR_P within a source directory, because that will
4416 # break other packages using the cache if that directory is
4417 # removed, or if the value is a relative name.
4418 MKDIR_P="$ac_install_sh -d"
4419 fi
4420fi
4421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4422$as_echo "$MKDIR_P" >&6; }
4423
4424if test -n "$ac_tool_prefix"; then
4425 for ac_prog in ar
4426 do
4427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4428set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4430$as_echo_n "checking for $ac_word... " >&6; }
4431if ${ac_cv_prog_AR+:} false; then :
4432 $as_echo_n "(cached) " >&6
4433else
4434 if test -n "$AR"; then
4435 ac_cv_prog_AR="$AR" # Let the user override the test.
4436else
4437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438for as_dir in $PATH
4439do
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4444 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 break 2
4447 fi
4448done
4449 done
4450IFS=$as_save_IFS
4451
4452fi
4453fi
4454AR=$ac_cv_prog_AR
4455if test -n "$AR"; then
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4457$as_echo "$AR" >&6; }
4458else
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460$as_echo "no" >&6; }
4461fi
4462
4463
4464 test -n "$AR" && break
4465 done
4466fi
4467if test -z "$AR"; then
4468 ac_ct_AR=$AR
4469 for ac_prog in ar
4470do
4471 # Extract the first word of "$ac_prog", so it can be a program name with args.
4472set dummy $ac_prog; ac_word=$2
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4474$as_echo_n "checking for $ac_word... " >&6; }
4475if ${ac_cv_prog_ac_ct_AR+:} false; then :
4476 $as_echo_n "(cached) " >&6
4477else
4478 if test -n "$ac_ct_AR"; then
4479 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4480else
4481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482for as_dir in $PATH
4483do
4484 IFS=$as_save_IFS
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4488 ac_cv_prog_ac_ct_AR="$ac_prog"
4489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 break 2
4491 fi
4492done
4493 done
4494IFS=$as_save_IFS
4495
4496fi
4497fi
4498ac_ct_AR=$ac_cv_prog_ac_ct_AR
4499if test -n "$ac_ct_AR"; then
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4501$as_echo "$ac_ct_AR" >&6; }
4502else
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4504$as_echo "no" >&6; }
4505fi
4506
4507
4508 test -n "$ac_ct_AR" && break
4509done
4510
4511 if test "x$ac_ct_AR" = x; then
4512 AR=""
4513 else
4514 case $cross_compiling:$ac_tool_warned in
4515yes:)
4516{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4517$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4518ac_tool_warned=yes ;;
4519esac
4520 AR=$ac_ct_AR
4521 fi
4522fi
4523
4524# Extract the first word of "cat", so it can be a program name with args.
4525set dummy cat; ac_word=$2
4526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4527$as_echo_n "checking for $ac_word... " >&6; }
4528if ${ac_cv_path_CAT+:} false; then :
4529 $as_echo_n "(cached) " >&6
4530else
4531 case $CAT in
4532 [\\/]* | ?:[\\/]*)
4533 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4534 ;;
4535 *)
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537for as_dir in $PATH
4538do
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4543 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 break 2
4546 fi
4547done
4548 done
4549IFS=$as_save_IFS
4550
4551 ;;
4552esac
4553fi
4554CAT=$ac_cv_path_CAT
4555if test -n "$CAT"; then
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4557$as_echo "$CAT" >&6; }
4558else
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560$as_echo "no" >&6; }
4561fi
4562
4563
4564# Extract the first word of "kill", so it can be a program name with args.
4565set dummy kill; ac_word=$2
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4567$as_echo_n "checking for $ac_word... " >&6; }
4568if ${ac_cv_path_KILL+:} false; then :
4569 $as_echo_n "(cached) " >&6
4570else
4571 case $KILL in
4572 [\\/]* | ?:[\\/]*)
4573 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4574 ;;
4575 *)
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577for as_dir in $PATH
4578do
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4583 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 break 2
4586 fi
4587done
4588 done
4589IFS=$as_save_IFS
4590
4591 ;;
4592esac
4593fi
4594KILL=$ac_cv_path_KILL
4595if test -n "$KILL"; then
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5
4597$as_echo "$KILL" >&6; }
4598else
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600$as_echo "no" >&6; }
4601fi
4602
4603
4604# Extract the first word of "sed", so it can be a program name with args.
4605set dummy sed; ac_word=$2
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607$as_echo_n "checking for $ac_word... " >&6; }
4608if ${ac_cv_path_SED+:} false; then :
4609 $as_echo_n "(cached) " >&6
4610else
4611 case $SED in
4612 [\\/]* | ?:[\\/]*)
4613 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4614 ;;
4615 *)
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617for as_dir in $PATH
4618do
4619 IFS=$as_save_IFS
4620 test -z "$as_dir" && as_dir=.
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4623 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4625 break 2
4626 fi
4627done
4628 done
4629IFS=$as_save_IFS
4630
4631 ;;
4632esac
4633fi
4634SED=$ac_cv_path_SED
4635if test -n "$SED"; then
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4637$as_echo "$SED" >&6; }
4638else
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640$as_echo "no" >&6; }
4641fi
4642
4643
4644# Extract the first word of "ent", so it can be a program name with args.
4645set dummy ent; ac_word=$2
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647$as_echo_n "checking for $ac_word... " >&6; }
4648if ${ac_cv_path_ENT+:} false; then :
4649 $as_echo_n "(cached) " >&6
4650else
4651 case $ENT in
4652 [\\/]* | ?:[\\/]*)
4653 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4654 ;;
4655 *)
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657for as_dir in $PATH
4658do
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4663 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 break 2
4666 fi
4667done
4668 done
4669IFS=$as_save_IFS
4670
4671 ;;
4672esac
4673fi
4674ENT=$ac_cv_path_ENT
4675if test -n "$ENT"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5
4677$as_echo "$ENT" >&6; }
4678else
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680$as_echo "no" >&6; }
4681fi
4682
4683
4684
4685# Extract the first word of "bash", so it can be a program name with args.
4686set dummy bash; ac_word=$2
4687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4688$as_echo_n "checking for $ac_word... " >&6; }
4689if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4690 $as_echo_n "(cached) " >&6
4691else
4692 case $TEST_MINUS_S_SH in
4693 [\\/]* | ?:[\\/]*)
4694 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4695 ;;
4696 *)
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698for as_dir in $PATH
4699do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 break 2
4707 fi
4708done
4709 done
4710IFS=$as_save_IFS
4711
4712 ;;
4713esac
4714fi
4715TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4716if test -n "$TEST_MINUS_S_SH"; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4718$as_echo "$TEST_MINUS_S_SH" >&6; }
4719else
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4721$as_echo "no" >&6; }
4722fi
4723
4724
4725# Extract the first word of "ksh", so it can be a program name with args.
4726set dummy ksh; ac_word=$2
4727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4728$as_echo_n "checking for $ac_word... " >&6; }
4729if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4730 $as_echo_n "(cached) " >&6
4731else
4732 case $TEST_MINUS_S_SH in
4733 [\\/]* | ?:[\\/]*)
4734 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4735 ;;
4736 *)
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738for as_dir in $PATH
4739do
4740 IFS=$as_save_IFS
4741 test -z "$as_dir" && as_dir=.
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4744 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4746 break 2
4747 fi
4748done
4749 done
4750IFS=$as_save_IFS
4751
4752 ;;
4753esac
4754fi
4755TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4756if test -n "$TEST_MINUS_S_SH"; then
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4758$as_echo "$TEST_MINUS_S_SH" >&6; }
4759else
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4761$as_echo "no" >&6; }
4762fi
4763
4764
4765# Extract the first word of "sh", so it can be a program name with args.
4766set dummy sh; ac_word=$2
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768$as_echo_n "checking for $ac_word... " >&6; }
4769if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4770 $as_echo_n "(cached) " >&6
4771else
4772 case $TEST_MINUS_S_SH in
4773 [\\/]* | ?:[\\/]*)
4774 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4775 ;;
4776 *)
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778for as_dir in $PATH
4779do
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4784 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 break 2
4787 fi
4788done
4789 done
4790IFS=$as_save_IFS
4791
4792 ;;
4793esac
4794fi
4795TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4796if test -n "$TEST_MINUS_S_SH"; then
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4798$as_echo "$TEST_MINUS_S_SH" >&6; }
4799else
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801$as_echo "no" >&6; }
4802fi
4803
4804
4805# Extract the first word of "sh", so it can be a program name with args.
4806set dummy sh; ac_word=$2
4807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808$as_echo_n "checking for $ac_word... " >&6; }
4809if ${ac_cv_path_SH+:} false; then :
4810 $as_echo_n "(cached) " >&6
4811else
4812 case $SH in
4813 [\\/]* | ?:[\\/]*)
4814 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4815 ;;
4816 *)
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818for as_dir in $PATH
4819do
4820 IFS=$as_save_IFS
4821 test -z "$as_dir" && as_dir=.
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4824 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 break 2
4827 fi
4828done
4829 done
4830IFS=$as_save_IFS
4831
4832 ;;
4833esac
4834fi
4835SH=$ac_cv_path_SH
4836if test -n "$SH"; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
4838$as_echo "$SH" >&6; }
4839else
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841$as_echo "no" >&6; }
4842fi
4843
4844
4845# Extract the first word of "groff", so it can be a program name with args.
4846set dummy groff; ac_word=$2
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4848$as_echo_n "checking for $ac_word... " >&6; }
4849if ${ac_cv_path_GROFF+:} false; then :
4850 $as_echo_n "(cached) " >&6
4851else
4852 case $GROFF in
4853 [\\/]* | ?:[\\/]*)
4854 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
4855 ;;
4856 *)
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858for as_dir in $PATH
4859do
4860 IFS=$as_save_IFS
4861 test -z "$as_dir" && as_dir=.
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4864 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
4865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4866 break 2
4867 fi
4868done
4869 done
4870IFS=$as_save_IFS
4871
4872 ;;
4873esac
4874fi
4875GROFF=$ac_cv_path_GROFF
4876if test -n "$GROFF"; then
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
4878$as_echo "$GROFF" >&6; }
4879else
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4881$as_echo "no" >&6; }
4882fi
4883
4884
4885# Extract the first word of "nroff awf", so it can be a program name with args.
4886set dummy nroff awf; ac_word=$2
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4888$as_echo_n "checking for $ac_word... " >&6; }
4889if ${ac_cv_path_NROFF+:} false; then :
4890 $as_echo_n "(cached) " >&6
4891else
4892 case $NROFF in
4893 [\\/]* | ?:[\\/]*)
4894 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
4895 ;;
4896 *)
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898for as_dir in $PATH
4899do
4900 IFS=$as_save_IFS
4901 test -z "$as_dir" && as_dir=.
4902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4904 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
4905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4906 break 2
4907 fi
4908done
4909 done
4910IFS=$as_save_IFS
4911
4912 ;;
4913esac
4914fi
4915NROFF=$ac_cv_path_NROFF
4916if test -n "$NROFF"; then
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
4918$as_echo "$NROFF" >&6; }
4919else
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921$as_echo "no" >&6; }
4922fi
4923
4924
4925# Extract the first word of "mandoc", so it can be a program name with args.
4926set dummy mandoc; ac_word=$2
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928$as_echo_n "checking for $ac_word... " >&6; }
4929if ${ac_cv_path_MANDOC+:} false; then :
4930 $as_echo_n "(cached) " >&6
4931else
4932 case $MANDOC in
4933 [\\/]* | ?:[\\/]*)
4934 ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path.
4935 ;;
4936 *)
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938for as_dir in $PATH
4939do
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4944 ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext"
4945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 break 2
4947 fi
4948done
4949 done
4950IFS=$as_save_IFS
4951
4952 ;;
4953esac
4954fi
4955MANDOC=$ac_cv_path_MANDOC
4956if test -n "$MANDOC"; then
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5
4958$as_echo "$MANDOC" >&6; }
4959else
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961$as_echo "no" >&6; }
4962fi
4963
4964
4965TEST_SHELL=sh
4966
4967
4968if test "x$MANDOC" != "x" ; then
4969 MANFMT="$MANDOC"
4970elif test "x$NROFF" != "x" ; then
4971 MANFMT="$NROFF -mandoc"
4972elif test "x$GROFF" != "x" ; then
4973 MANFMT="$GROFF -mandoc -Tascii"
4974else
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatter found" >&5
4976$as_echo "$as_me: WARNING: no manpage formatter found" >&2;}
4977 MANFMT="false"
4978fi
4979
4980
4981# Extract the first word of "groupadd", so it can be a program name with args.
4982set dummy groupadd; ac_word=$2
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984$as_echo_n "checking for $ac_word... " >&6; }
4985if ${ac_cv_path_PATH_GROUPADD_PROG+:} false; then :
4986 $as_echo_n "(cached) " >&6
4987else
4988 case $PATH_GROUPADD_PROG in
4989 [\\/]* | ?:[\\/]*)
4990 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
4991 ;;
4992 *)
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4995do
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5000 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 break 2
5003 fi
5004done
5005 done
5006IFS=$as_save_IFS
5007
5008 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
5009 ;;
5010esac
5011fi
5012PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
5013if test -n "$PATH_GROUPADD_PROG"; then
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5
5015$as_echo "$PATH_GROUPADD_PROG" >&6; }
5016else
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5018$as_echo "no" >&6; }
5019fi
5020
5021
5022# Extract the first word of "useradd", so it can be a program name with args.
5023set dummy useradd; ac_word=$2
5024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025$as_echo_n "checking for $ac_word... " >&6; }
5026if ${ac_cv_path_PATH_USERADD_PROG+:} false; then :
5027 $as_echo_n "(cached) " >&6
5028else
5029 case $PATH_USERADD_PROG in
5030 [\\/]* | ?:[\\/]*)
5031 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
5032 ;;
5033 *)
5034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5036do
5037 IFS=$as_save_IFS
5038 test -z "$as_dir" && as_dir=.
5039 for ac_exec_ext in '' $ac_executable_extensions; do
5040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5041 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5043 break 2
5044 fi
5045done
5046 done
5047IFS=$as_save_IFS
5048
5049 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
5050 ;;
5051esac
5052fi
5053PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
5054if test -n "$PATH_USERADD_PROG"; then
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5
5056$as_echo "$PATH_USERADD_PROG" >&6; }
5057else
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5059$as_echo "no" >&6; }
5060fi
5061
5062
5063# Extract the first word of "pkgmk", so it can be a program name with args.
5064set dummy pkgmk; ac_word=$2
5065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5066$as_echo_n "checking for $ac_word... " >&6; }
5067if ${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+:} false; then :
5068 $as_echo_n "(cached) " >&6
5069else
5070 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5071 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
5072else
5073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074for as_dir in $PATH
5075do
5076 IFS=$as_save_IFS
5077 test -z "$as_dir" && as_dir=.
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5080 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
5081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5082 break 2
5083 fi
5084done
5085 done
5086IFS=$as_save_IFS
5087
5088 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
5089fi
5090fi
5091MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
5092if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5
5094$as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; }
5095else
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097$as_echo "no" >&6; }
5098fi
5099
5100
5101if test -x /sbin/sh; then
5102 STARTUP_SCRIPT_SHELL=/sbin/sh
5103
5104else
5105 STARTUP_SCRIPT_SHELL=/bin/sh
5106
5107fi
5108
5109# System features
5110# Check whether --enable-largefile was given.
5111if test "${enable_largefile+set}" = set; then :
5112 enableval=$enable_largefile;
5113fi
5114
5115if test "$enable_largefile" != no; then
5116
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5118$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5119if ${ac_cv_sys_largefile_CC+:} false; then :
5120 $as_echo_n "(cached) " >&6
5121else
5122 ac_cv_sys_largefile_CC=no
5123 if test "$GCC" != yes; then
5124 ac_save_CC=$CC
5125 while :; do
5126 # IRIX 6.2 and later do not support large files by default,
5127 # so use the C compiler's -n32 option if that helps.
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129/* end confdefs.h. */
5130#include <sys/types.h>
5131 /* Check that off_t can represent 2**63 - 1 correctly.
5132 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5133 since some C++ compilers masquerading as C compilers
5134 incorrectly reject 9223372036854775807. */
5135#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5136 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5137 && LARGE_OFF_T % 2147483647 == 1)
5138 ? 1 : -1];
5139int
5140main ()
5141{
5142
5143 ;
5144 return 0;
5145}
5146_ACEOF
5147 if ac_fn_c_try_compile "$LINENO"; then :
5148 break
5149fi
5150rm -f core conftest.err conftest.$ac_objext
5151 CC="$CC -n32"
5152 if ac_fn_c_try_compile "$LINENO"; then :
5153 ac_cv_sys_largefile_CC=' -n32'; break
5154fi
5155rm -f core conftest.err conftest.$ac_objext
5156 break
5157 done
5158 CC=$ac_save_CC
5159 rm -f conftest.$ac_ext
5160 fi
5161fi
5162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5163$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5164 if test "$ac_cv_sys_largefile_CC" != no; then
5165 CC=$CC$ac_cv_sys_largefile_CC
5166 fi
5167
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5169$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5170if ${ac_cv_sys_file_offset_bits+:} false; then :
5171 $as_echo_n "(cached) " >&6
5172else
5173 while :; do
5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175/* end confdefs.h. */
5176#include <sys/types.h>
5177 /* Check that off_t can represent 2**63 - 1 correctly.
5178 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5179 since some C++ compilers masquerading as C compilers
5180 incorrectly reject 9223372036854775807. */
5181#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5182 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5183 && LARGE_OFF_T % 2147483647 == 1)
5184 ? 1 : -1];
5185int
5186main ()
5187{
5188
5189 ;
5190 return 0;
5191}
5192_ACEOF
5193if ac_fn_c_try_compile "$LINENO"; then :
5194 ac_cv_sys_file_offset_bits=no; break
5195fi
5196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198/* end confdefs.h. */
5199#define _FILE_OFFSET_BITS 64
5200#include <sys/types.h>
5201 /* Check that off_t can represent 2**63 - 1 correctly.
5202 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5203 since some C++ compilers masquerading as C compilers
5204 incorrectly reject 9223372036854775807. */
5205#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5206 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5207 && LARGE_OFF_T % 2147483647 == 1)
5208 ? 1 : -1];
5209int
5210main ()
5211{
5212
5213 ;
5214 return 0;
5215}
5216_ACEOF
5217if ac_fn_c_try_compile "$LINENO"; then :
5218 ac_cv_sys_file_offset_bits=64; break
5219fi
5220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5221 ac_cv_sys_file_offset_bits=unknown
5222 break
5223done
5224fi
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5226$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5227case $ac_cv_sys_file_offset_bits in #(
5228 no | unknown) ;;
5229 *)
5230cat >>confdefs.h <<_ACEOF
5231#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5232_ACEOF
5233;;
5234esac
5235rm -rf conftest*
5236 if test $ac_cv_sys_file_offset_bits = unknown; then
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5238$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5239if ${ac_cv_sys_large_files+:} false; then :
5240 $as_echo_n "(cached) " >&6
5241else
5242 while :; do
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244/* end confdefs.h. */
5245#include <sys/types.h>
5246 /* Check that off_t can represent 2**63 - 1 correctly.
5247 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5248 since some C++ compilers masquerading as C compilers
5249 incorrectly reject 9223372036854775807. */
5250#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5251 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5252 && LARGE_OFF_T % 2147483647 == 1)
5253 ? 1 : -1];
5254int
5255main ()
5256{
5257
5258 ;
5259 return 0;
5260}
5261_ACEOF
5262if ac_fn_c_try_compile "$LINENO"; then :
5263 ac_cv_sys_large_files=no; break
5264fi
5265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267/* end confdefs.h. */
5268#define _LARGE_FILES 1
5269#include <sys/types.h>
5270 /* Check that off_t can represent 2**63 - 1 correctly.
5271 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5272 since some C++ compilers masquerading as C compilers
5273 incorrectly reject 9223372036854775807. */
5274#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5275 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5276 && LARGE_OFF_T % 2147483647 == 1)
5277 ? 1 : -1];
5278int
5279main ()
5280{
5281
5282 ;
5283 return 0;
5284}
5285_ACEOF
5286if ac_fn_c_try_compile "$LINENO"; then :
5287 ac_cv_sys_large_files=1; break
5288fi
5289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290 ac_cv_sys_large_files=unknown
5291 break
5292done
5293fi
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5295$as_echo "$ac_cv_sys_large_files" >&6; }
5296case $ac_cv_sys_large_files in #(
5297 no | unknown) ;;
5298 *)
5299cat >>confdefs.h <<_ACEOF
5300#define _LARGE_FILES $ac_cv_sys_large_files
5301_ACEOF
5302;;
5303esac
5304rm -rf conftest*
5305 fi
5306
5307
5308fi
5309
5310
5311if test -z "$AR" ; then
5312 as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5
5313fi
5314
5315# Extract the first word of "passwd", so it can be a program name with args.
5316set dummy passwd; ac_word=$2
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5318$as_echo_n "checking for $ac_word... " >&6; }
5319if ${ac_cv_path_PATH_PASSWD_PROG+:} false; then :
5320 $as_echo_n "(cached) " >&6
5321else
5322 case $PATH_PASSWD_PROG in
5323 [\\/]* | ?:[\\/]*)
5324 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5325 ;;
5326 *)
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328for as_dir in $PATH
5329do
5330 IFS=$as_save_IFS
5331 test -z "$as_dir" && as_dir=.
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5334 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 break 2
5337 fi
5338done
5339 done
5340IFS=$as_save_IFS
5341
5342 ;;
5343esac
5344fi
5345PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5346if test -n "$PATH_PASSWD_PROG"; then
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5
5348$as_echo "$PATH_PASSWD_PROG" >&6; }
5349else
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351$as_echo "no" >&6; }
5352fi
5353
5354
5355if test ! -z "$PATH_PASSWD_PROG" ; then
5356
5357cat >>confdefs.h <<_ACEOF
5358#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5359_ACEOF
5360
5361fi
5362
5363LD="$CC"
5364
5365
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5367$as_echo_n "checking for inline... " >&6; }
5368if ${ac_cv_c_inline+:} false; then :
5369 $as_echo_n "(cached) " >&6
5370else
5371 ac_cv_c_inline=no
5372for ac_kw in inline __inline__ __inline; do
5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374/* end confdefs.h. */
5375#ifndef __cplusplus
5376typedef int foo_t;
5377static $ac_kw foo_t static_foo () {return 0; }
5378$ac_kw foo_t foo () {return 0; }
5379#endif
5380
5381_ACEOF
5382if ac_fn_c_try_compile "$LINENO"; then :
5383 ac_cv_c_inline=$ac_kw
5384fi
5385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5386 test "$ac_cv_c_inline" != no && break
5387done
5388
5389fi
5390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5391$as_echo "$ac_cv_c_inline" >&6; }
5392
5393case $ac_cv_c_inline in
5394 inline | yes) ;;
5395 *)
5396 case $ac_cv_c_inline in
5397 no) ac_val=;;
5398 *) ac_val=$ac_cv_c_inline;;
5399 esac
5400 cat >>confdefs.h <<_ACEOF
5401#ifndef __cplusplus
5402#define inline $ac_val
5403#endif
5404_ACEOF
5405 ;;
5406esac
5407
5408
5409ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5410"
5411if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
5412 have_llong_max=1
5413fi
5414
5415ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" "
5416 #include <sys/types.h>
5417 #include <sys/param.h>
5418 #include <dev/systrace.h>
5419
5420"
5421if test "x$ac_cv_have_decl_SYSTR_POLICY_KILL" = xyes; then :
5422 have_systr_policy_kill=1
5423fi
5424
5425ac_fn_c_check_decl "$LINENO" "RLIMIT_NPROC" "ac_cv_have_decl_RLIMIT_NPROC" "
5426 #include <sys/types.h>
5427 #include <sys/resource.h>
5428
5429"
5430if test "x$ac_cv_have_decl_RLIMIT_NPROC" = xyes; then :
5431
5432$as_echo "#define HAVE_RLIMIT_NPROC /**/" >>confdefs.h
5433
5434fi
5435
5436ac_fn_c_check_decl "$LINENO" "PR_SET_NO_NEW_PRIVS" "ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" "
5437 #include <sys/types.h>
5438 #include <linux/prctl.h>
5439
5440"
5441if test "x$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" = xyes; then :
5442 have_linux_no_new_privs=1
5443fi
5444
5445
5446openssl=yes
5447
5448# Check whether --with-openssl was given.
5449if test "${with_openssl+set}" = set; then :
5450 withval=$with_openssl; if test "x$withval" = "xno" ; then
5451 openssl=no
5452 fi
5453
5454
5455fi
5456
5457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL will be used for cryptography" >&5
5458$as_echo_n "checking whether OpenSSL will be used for cryptography... " >&6; }
5459if test "x$openssl" = "xyes" ; then
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5461$as_echo "yes" >&6; }
5462
5463cat >>confdefs.h <<_ACEOF
5464#define WITH_OPENSSL 1
5465_ACEOF
5466
5467else
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469$as_echo "no" >&6; }
5470fi
5471
5472use_stack_protector=1
5473use_toolchain_hardening=1
5474
5475# Check whether --with-stackprotect was given.
5476if test "${with_stackprotect+set}" = set; then :
5477 withval=$with_stackprotect;
5478 if test "x$withval" = "xno"; then
5479 use_stack_protector=0
5480 fi
5481fi
5482
5483
5484# Check whether --with-hardening was given.
5485if test "${with_hardening+set}" = set; then :
5486 withval=$with_hardening;
5487 if test "x$withval" = "xno"; then
5488 use_toolchain_hardening=0
5489 fi
5490fi
5491
5492
5493# We use -Werror for the tests only so that we catch warnings like "this is
5494# on by default" for things like -fPIE.
5495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
5496$as_echo_n "checking if $CC supports -Werror... " >&6; }
5497saved_CFLAGS="$CFLAGS"
5498CFLAGS="$CFLAGS -Werror"
5499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5500/* end confdefs.h. */
5501int main(void) { return 0; }
5502_ACEOF
5503if ac_fn_c_try_compile "$LINENO"; then :
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5505$as_echo "yes" >&6; }
5506 WERROR="-Werror"
5507else
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509$as_echo "no" >&6; }
5510 WERROR=""
5511
5512fi
5513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5514CFLAGS="$saved_CFLAGS"
5515
5516if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5517 {
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -pipe" >&5
5519$as_echo_n "checking if $CC supports compile flag -pipe... " >&6; }
5520 saved_CFLAGS="$CFLAGS"
5521 CFLAGS="$CFLAGS $WERROR -pipe"
5522 _define_flag=""
5523 test "x$_define_flag" = "x" && _define_flag="-pipe"
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525/* end confdefs.h. */
5526
5527#include <stdlib.h>
5528#include <stdio.h>
5529int main(int argc, char **argv) {
5530 /* Some math to catch -ftrapv problems in the toolchain */
5531 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5532 float l = i * 2.1;
5533 double m = l / 0.5;
5534 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5535 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5536 exit(0);
5537}
5538
5539_ACEOF
5540if ac_fn_c_try_compile "$LINENO"; then :
5541
5542if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
5543then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545$as_echo "no" >&6; }
5546 CFLAGS="$saved_CFLAGS"
5547else
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5549$as_echo "yes" >&6; }
5550 CFLAGS="$saved_CFLAGS $_define_flag"
5551fi
5552else
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554$as_echo "no" >&6; }
5555 CFLAGS="$saved_CFLAGS"
5556
5557fi
5558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5559}
5560 {
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunknown-warning-option" >&5
5562$as_echo_n "checking if $CC supports compile flag -Wunknown-warning-option... " >&6; }
5563 saved_CFLAGS="$CFLAGS"
5564 CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option"
5565 _define_flag=""
5566 test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option"
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568/* end confdefs.h. */
5569
5570#include <stdlib.h>
5571#include <stdio.h>
5572int main(int argc, char **argv) {
5573 /* Some math to catch -ftrapv problems in the toolchain */
5574 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5575 float l = i * 2.1;
5576 double m = l / 0.5;
5577 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5578 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5579 exit(0);
5580}
5581
5582_ACEOF
5583if ac_fn_c_try_compile "$LINENO"; then :
5584
5585if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
5586then
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588$as_echo "no" >&6; }
5589 CFLAGS="$saved_CFLAGS"
5590else
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5592$as_echo "yes" >&6; }
5593 CFLAGS="$saved_CFLAGS $_define_flag"
5594fi
5595else
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597$as_echo "no" >&6; }
5598 CFLAGS="$saved_CFLAGS"
5599
5600fi
5601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5602}
5603 {
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wno-error=format-truncation" >&5
5605$as_echo_n "checking if $CC supports compile flag -Wno-error=format-truncation... " >&6; }
5606 saved_CFLAGS="$CFLAGS"
5607 CFLAGS="$CFLAGS $WERROR -Wno-error=format-truncation"
5608 _define_flag=""
5609 test "x$_define_flag" = "x" && _define_flag="-Wno-error=format-truncation"
5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611/* end confdefs.h. */
5612
5613#include <stdlib.h>
5614#include <stdio.h>
5615int main(int argc, char **argv) {
5616 /* Some math to catch -ftrapv problems in the toolchain */
5617 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5618 float l = i * 2.1;
5619 double m = l / 0.5;
5620 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5621 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5622 exit(0);
5623}
5624
5625_ACEOF
5626if ac_fn_c_try_compile "$LINENO"; then :
5627
5628if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
5629then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631$as_echo "no" >&6; }
5632 CFLAGS="$saved_CFLAGS"
5633else
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5635$as_echo "yes" >&6; }
5636 CFLAGS="$saved_CFLAGS $_define_flag"
5637fi
5638else
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640$as_echo "no" >&6; }
5641 CFLAGS="$saved_CFLAGS"
5642
5643fi
5644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5645}
5646 {
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Qunused-arguments" >&5
5648$as_echo_n "checking if $CC supports compile flag -Qunused-arguments... " >&6; }
5649 saved_CFLAGS="$CFLAGS"
5650 CFLAGS="$CFLAGS $WERROR -Qunused-arguments"
5651 _define_flag=""
5652 test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments"
5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654/* end confdefs.h. */
5655
5656#include <stdlib.h>
5657#include <stdio.h>
5658int main(int argc, char **argv) {
5659 /* Some math to catch -ftrapv problems in the toolchain */
5660 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5661 float l = i * 2.1;
5662 double m = l / 0.5;
5663 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5664 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5665 exit(0);
5666}
5667
5668_ACEOF
5669if ac_fn_c_try_compile "$LINENO"; then :
5670
5671if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
5672then
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674$as_echo "no" >&6; }
5675 CFLAGS="$saved_CFLAGS"
5676else
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5678$as_echo "yes" >&6; }
5679 CFLAGS="$saved_CFLAGS $_define_flag"
5680fi
5681else
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683$as_echo "no" >&6; }
5684 CFLAGS="$saved_CFLAGS"
5685
5686fi
5687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688}
5689 {
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wall" >&5
5691$as_echo_n "checking if $CC supports compile flag -Wall... " >&6; }
5692 saved_CFLAGS="$CFLAGS"
5693 CFLAGS="$CFLAGS $WERROR -Wall"
5694 _define_flag=""
5695 test "x$_define_flag" = "x" && _define_flag="-Wall"
5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697/* end confdefs.h. */
5698
5699#include <stdlib.h>
5700#include <stdio.h>
5701int main(int argc, char **argv) {
5702 /* Some math to catch -ftrapv problems in the toolchain */
5703 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5704 float l = i * 2.1;
5705 double m = l / 0.5;
5706 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5707 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5708 exit(0);
5709}
5710
5711_ACEOF
5712if ac_fn_c_try_compile "$LINENO"; then :
5713
5714if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
5715then
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717$as_echo "no" >&6; }
5718 CFLAGS="$saved_CFLAGS"
5719else
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5721$as_echo "yes" >&6; }
5722 CFLAGS="$saved_CFLAGS $_define_flag"
5723fi
5724else
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5726$as_echo "no" >&6; }
5727 CFLAGS="$saved_CFLAGS"
5728
5729fi
5730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5731}
5732 {
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wextra" >&5
5734$as_echo_n "checking if $CC supports compile flag -Wextra... " >&6; }
5735 saved_CFLAGS="$CFLAGS"
5736 CFLAGS="$CFLAGS $WERROR -Wextra"
5737 _define_flag=""
5738 test "x$_define_flag" = "x" && _define_flag="-Wextra"
5739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5740/* end confdefs.h. */
5741
5742#include <stdlib.h>
5743#include <stdio.h>
5744int main(int argc, char **argv) {
5745 /* Some math to catch -ftrapv problems in the toolchain */
5746 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5747 float l = i * 2.1;
5748 double m = l / 0.5;
5749 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5750 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5751 exit(0);
5752}
5753
5754_ACEOF
5755if ac_fn_c_try_compile "$LINENO"; then :
5756
5757if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
5758then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760$as_echo "no" >&6; }
5761 CFLAGS="$saved_CFLAGS"
5762else
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5764$as_echo "yes" >&6; }
5765 CFLAGS="$saved_CFLAGS $_define_flag"
5766fi
5767else
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769$as_echo "no" >&6; }
5770 CFLAGS="$saved_CFLAGS"
5771
5772fi
5773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774}
5775 {
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-arith" >&5
5777$as_echo_n "checking if $CC supports compile flag -Wpointer-arith... " >&6; }
5778 saved_CFLAGS="$CFLAGS"
5779 CFLAGS="$CFLAGS $WERROR -Wpointer-arith"
5780 _define_flag=""
5781 test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith"
5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783/* end confdefs.h. */
5784
5785#include <stdlib.h>
5786#include <stdio.h>
5787int main(int argc, char **argv) {
5788 /* Some math to catch -ftrapv problems in the toolchain */
5789 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5790 float l = i * 2.1;
5791 double m = l / 0.5;
5792 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5793 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5794 exit(0);
5795}
5796
5797_ACEOF
5798if ac_fn_c_try_compile "$LINENO"; then :
5799
5800if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
5801then
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803$as_echo "no" >&6; }
5804 CFLAGS="$saved_CFLAGS"
5805else
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5807$as_echo "yes" >&6; }
5808 CFLAGS="$saved_CFLAGS $_define_flag"
5809fi
5810else
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5812$as_echo "no" >&6; }
5813 CFLAGS="$saved_CFLAGS"
5814
5815fi
5816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5817}
5818 {
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wuninitialized" >&5
5820$as_echo_n "checking if $CC supports compile flag -Wuninitialized... " >&6; }
5821 saved_CFLAGS="$CFLAGS"
5822 CFLAGS="$CFLAGS $WERROR -Wuninitialized"
5823 _define_flag=""
5824 test "x$_define_flag" = "x" && _define_flag="-Wuninitialized"
5825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826/* end confdefs.h. */
5827
5828#include <stdlib.h>
5829#include <stdio.h>
5830int main(int argc, char **argv) {
5831 /* Some math to catch -ftrapv problems in the toolchain */
5832 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5833 float l = i * 2.1;
5834 double m = l / 0.5;
5835 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5836 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5837 exit(0);
5838}
5839
5840_ACEOF
5841if ac_fn_c_try_compile "$LINENO"; then :
5842
5843if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
5844then
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846$as_echo "no" >&6; }
5847 CFLAGS="$saved_CFLAGS"
5848else
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5850$as_echo "yes" >&6; }
5851 CFLAGS="$saved_CFLAGS $_define_flag"
5852fi
5853else
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5855$as_echo "no" >&6; }
5856 CFLAGS="$saved_CFLAGS"
5857
5858fi
5859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5860}
5861 {
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsign-compare" >&5
5863$as_echo_n "checking if $CC supports compile flag -Wsign-compare... " >&6; }
5864 saved_CFLAGS="$CFLAGS"
5865 CFLAGS="$CFLAGS $WERROR -Wsign-compare"
5866 _define_flag=""
5867 test "x$_define_flag" = "x" && _define_flag="-Wsign-compare"
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869/* end confdefs.h. */
5870
5871#include <stdlib.h>
5872#include <stdio.h>
5873int main(int argc, char **argv) {
5874 /* Some math to catch -ftrapv problems in the toolchain */
5875 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5876 float l = i * 2.1;
5877 double m = l / 0.5;
5878 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5879 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5880 exit(0);
5881}
5882
5883_ACEOF
5884if ac_fn_c_try_compile "$LINENO"; then :
5885
5886if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
5887then
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5889$as_echo "no" >&6; }
5890 CFLAGS="$saved_CFLAGS"
5891else
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5893$as_echo "yes" >&6; }
5894 CFLAGS="$saved_CFLAGS $_define_flag"
5895fi
5896else
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5898$as_echo "no" >&6; }
5899 CFLAGS="$saved_CFLAGS"
5900
5901fi
5902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5903}
5904 {
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wformat-security" >&5
5906$as_echo_n "checking if $CC supports compile flag -Wformat-security... " >&6; }
5907 saved_CFLAGS="$CFLAGS"
5908 CFLAGS="$CFLAGS $WERROR -Wformat-security"
5909 _define_flag=""
5910 test "x$_define_flag" = "x" && _define_flag="-Wformat-security"
5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912/* end confdefs.h. */
5913
5914#include <stdlib.h>
5915#include <stdio.h>
5916int main(int argc, char **argv) {
5917 /* Some math to catch -ftrapv problems in the toolchain */
5918 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5919 float l = i * 2.1;
5920 double m = l / 0.5;
5921 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5922 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5923 exit(0);
5924}
5925
5926_ACEOF
5927if ac_fn_c_try_compile "$LINENO"; then :
5928
5929if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
5930then
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932$as_echo "no" >&6; }
5933 CFLAGS="$saved_CFLAGS"
5934else
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5936$as_echo "yes" >&6; }
5937 CFLAGS="$saved_CFLAGS $_define_flag"
5938fi
5939else
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941$as_echo "no" >&6; }
5942 CFLAGS="$saved_CFLAGS"
5943
5944fi
5945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946}
5947 {
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsizeof-pointer-memaccess" >&5
5949$as_echo_n "checking if $CC supports compile flag -Wsizeof-pointer-memaccess... " >&6; }
5950 saved_CFLAGS="$CFLAGS"
5951 CFLAGS="$CFLAGS $WERROR -Wsizeof-pointer-memaccess"
5952 _define_flag=""
5953 test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess"
5954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955/* end confdefs.h. */
5956
5957#include <stdlib.h>
5958#include <stdio.h>
5959int main(int argc, char **argv) {
5960 /* Some math to catch -ftrapv problems in the toolchain */
5961 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5962 float l = i * 2.1;
5963 double m = l / 0.5;
5964 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5965 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5966 exit(0);
5967}
5968
5969_ACEOF
5970if ac_fn_c_try_compile "$LINENO"; then :
5971
5972if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
5973then
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5975$as_echo "no" >&6; }
5976 CFLAGS="$saved_CFLAGS"
5977else
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5979$as_echo "yes" >&6; }
5980 CFLAGS="$saved_CFLAGS $_define_flag"
5981fi
5982else
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5984$as_echo "no" >&6; }
5985 CFLAGS="$saved_CFLAGS"
5986
5987fi
5988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5989}
5990 {
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-sign" >&5
5992$as_echo_n "checking if $CC supports compile flag -Wpointer-sign... " >&6; }
5993 saved_CFLAGS="$CFLAGS"
5994 CFLAGS="$CFLAGS $WERROR -Wpointer-sign"
5995 _define_flag="-Wno-pointer-sign"
5996 test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign"
5997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998/* end confdefs.h. */
5999
6000#include <stdlib.h>
6001#include <stdio.h>
6002int main(int argc, char **argv) {
6003 /* Some math to catch -ftrapv problems in the toolchain */
6004 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6005 float l = i * 2.1;
6006 double m = l / 0.5;
6007 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6008 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6009 exit(0);
6010}
6011
6012_ACEOF
6013if ac_fn_c_try_compile "$LINENO"; then :
6014
6015if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
6016then
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6018$as_echo "no" >&6; }
6019 CFLAGS="$saved_CFLAGS"
6020else
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6022$as_echo "yes" >&6; }
6023 CFLAGS="$saved_CFLAGS $_define_flag"
6024fi
6025else
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027$as_echo "no" >&6; }
6028 CFLAGS="$saved_CFLAGS"
6029
6030fi
6031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6032}
6033 {
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunused-result" >&5
6035$as_echo_n "checking if $CC supports compile flag -Wunused-result... " >&6; }
6036 saved_CFLAGS="$CFLAGS"
6037 CFLAGS="$CFLAGS $WERROR -Wunused-result"
6038 _define_flag="-Wno-unused-result"
6039 test "x$_define_flag" = "x" && _define_flag="-Wunused-result"
6040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041/* end confdefs.h. */
6042
6043#include <stdlib.h>
6044#include <stdio.h>
6045int main(int argc, char **argv) {
6046 /* Some math to catch -ftrapv problems in the toolchain */
6047 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6048 float l = i * 2.1;
6049 double m = l / 0.5;
6050 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6051 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6052 exit(0);
6053}
6054
6055_ACEOF
6056if ac_fn_c_try_compile "$LINENO"; then :
6057
6058if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
6059then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6061$as_echo "no" >&6; }
6062 CFLAGS="$saved_CFLAGS"
6063else
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6065$as_echo "yes" >&6; }
6066 CFLAGS="$saved_CFLAGS $_define_flag"
6067fi
6068else
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6070$as_echo "no" >&6; }
6071 CFLAGS="$saved_CFLAGS"
6072
6073fi
6074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6075}
6076 {
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wimplicit-fallthrough" >&5
6078$as_echo_n "checking if $CC supports compile flag -Wimplicit-fallthrough... " >&6; }
6079 saved_CFLAGS="$CFLAGS"
6080 CFLAGS="$CFLAGS $WERROR -Wimplicit-fallthrough"
6081 _define_flag=""
6082 test "x$_define_flag" = "x" && _define_flag="-Wimplicit-fallthrough"
6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084/* end confdefs.h. */
6085
6086#include <stdlib.h>
6087#include <stdio.h>
6088int main(int argc, char **argv) {
6089 /* Some math to catch -ftrapv problems in the toolchain */
6090 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6091 float l = i * 2.1;
6092 double m = l / 0.5;
6093 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6094 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6095 exit(0);
6096}
6097
6098_ACEOF
6099if ac_fn_c_try_compile "$LINENO"; then :
6100
6101if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
6102then
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104$as_echo "no" >&6; }
6105 CFLAGS="$saved_CFLAGS"
6106else
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6108$as_echo "yes" >&6; }
6109 CFLAGS="$saved_CFLAGS $_define_flag"
6110fi
6111else
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6113$as_echo "no" >&6; }
6114 CFLAGS="$saved_CFLAGS"
6115
6116fi
6117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6118}
6119 {
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fno-strict-aliasing" >&5
6121$as_echo_n "checking if $CC supports compile flag -fno-strict-aliasing... " >&6; }
6122 saved_CFLAGS="$CFLAGS"
6123 CFLAGS="$CFLAGS $WERROR -fno-strict-aliasing"
6124 _define_flag=""
6125 test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing"
6126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127/* end confdefs.h. */
6128
6129#include <stdlib.h>
6130#include <stdio.h>
6131int main(int argc, char **argv) {
6132 /* Some math to catch -ftrapv problems in the toolchain */
6133 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6134 float l = i * 2.1;
6135 double m = l / 0.5;
6136 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6137 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6138 exit(0);
6139}
6140
6141_ACEOF
6142if ac_fn_c_try_compile "$LINENO"; then :
6143
6144if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
6145then
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147$as_echo "no" >&6; }
6148 CFLAGS="$saved_CFLAGS"
6149else
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6151$as_echo "yes" >&6; }
6152 CFLAGS="$saved_CFLAGS $_define_flag"
6153fi
6154else
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6156$as_echo "no" >&6; }
6157 CFLAGS="$saved_CFLAGS"
6158
6159fi
6160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6161}
6162 if test "x$use_toolchain_hardening" = "x1"; then
6163 {
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -mretpoline" >&5
6165$as_echo_n "checking if $CC supports compile flag -mretpoline... " >&6; }
6166 saved_CFLAGS="$CFLAGS"
6167 CFLAGS="$CFLAGS $WERROR -mretpoline"
6168 _define_flag=""
6169 test "x$_define_flag" = "x" && _define_flag="-mretpoline"
6170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6171/* end confdefs.h. */
6172
6173#include <stdlib.h>
6174#include <stdio.h>
6175int main(int argc, char **argv) {
6176 /* Some math to catch -ftrapv problems in the toolchain */
6177 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6178 float l = i * 2.1;
6179 double m = l / 0.5;
6180 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6181 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6182 exit(0);
6183}
6184
6185_ACEOF
6186if ac_fn_c_try_compile "$LINENO"; then :
6187
6188if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
6189then
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6191$as_echo "no" >&6; }
6192 CFLAGS="$saved_CFLAGS"
6193else
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6195$as_echo "yes" >&6; }
6196 CFLAGS="$saved_CFLAGS $_define_flag"
6197fi
6198else
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6200$as_echo "no" >&6; }
6201 CFLAGS="$saved_CFLAGS"
6202
6203fi
6204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6205} # clang
6206 {
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,retpolineplt" >&5
6208$as_echo_n "checking if $LD supports link flag -Wl,-z,retpolineplt... " >&6; }
6209 saved_LDFLAGS="$LDFLAGS"
6210 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,retpolineplt"
6211 _define_flag=""
6212 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,retpolineplt"
6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214/* end confdefs.h. */
6215
6216#include <stdlib.h>
6217#include <stdio.h>
6218int main(int argc, char **argv) {
6219 /* Some math to catch -ftrapv problems in the toolchain */
6220 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6221 float l = i * 2.1;
6222 double m = l / 0.5;
6223 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6224 long long p = n * o;
6225 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
6226 exit(0);
6227}
6228
6229_ACEOF
6230if ac_fn_c_try_link "$LINENO"; then :
6231
6232if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
6233then
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235$as_echo "no" >&6; }
6236 LDFLAGS="$saved_LDFLAGS"
6237else
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6239$as_echo "yes" >&6; }
6240 LDFLAGS="$saved_LDFLAGS $_define_flag"
6241fi
6242else
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6244$as_echo "no" >&6; }
6245 LDFLAGS="$saved_LDFLAGS"
6246
6247fi
6248rm -f core conftest.err conftest.$ac_objext \
6249 conftest$ac_exeext conftest.$ac_ext
6250}
6251 {
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -D_FORTIFY_SOURCE=2" >&5
6253$as_echo_n "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... " >&6; }
6254 saved_CFLAGS="$CFLAGS"
6255 CFLAGS="$CFLAGS $WERROR -D_FORTIFY_SOURCE=2"
6256 _define_flag=""
6257 test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2"
6258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6259/* end confdefs.h. */
6260
6261#include <stdlib.h>
6262#include <stdio.h>
6263int main(int argc, char **argv) {
6264 /* Some math to catch -ftrapv problems in the toolchain */
6265 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6266 float l = i * 2.1;
6267 double m = l / 0.5;
6268 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6269 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6270 exit(0);
6271}
6272
6273_ACEOF
6274if ac_fn_c_try_compile "$LINENO"; then :
6275
6276if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
6277then
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6279$as_echo "no" >&6; }
6280 CFLAGS="$saved_CFLAGS"
6281else
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6283$as_echo "yes" >&6; }
6284 CFLAGS="$saved_CFLAGS $_define_flag"
6285fi
6286else
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6288$as_echo "no" >&6; }
6289 CFLAGS="$saved_CFLAGS"
6290
6291fi
6292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6293}
6294 {
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,relro" >&5
6296$as_echo_n "checking if $LD supports link flag -Wl,-z,relro... " >&6; }
6297 saved_LDFLAGS="$LDFLAGS"
6298 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,relro"
6299 _define_flag=""
6300 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,relro"
6301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302/* end confdefs.h. */
6303
6304#include <stdlib.h>
6305#include <stdio.h>
6306int main(int argc, char **argv) {
6307 /* Some math to catch -ftrapv problems in the toolchain */
6308 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6309 float l = i * 2.1;
6310 double m = l / 0.5;
6311 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6312 long long p = n * o;
6313 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
6314 exit(0);
6315}
6316
6317_ACEOF
6318if ac_fn_c_try_link "$LINENO"; then :
6319
6320if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
6321then
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323$as_echo "no" >&6; }
6324 LDFLAGS="$saved_LDFLAGS"
6325else
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6327$as_echo "yes" >&6; }
6328 LDFLAGS="$saved_LDFLAGS $_define_flag"
6329fi
6330else
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332$as_echo "no" >&6; }
6333 LDFLAGS="$saved_LDFLAGS"
6334
6335fi
6336rm -f core conftest.err conftest.$ac_objext \
6337 conftest$ac_exeext conftest.$ac_ext
6338}
6339 {
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,now" >&5
6341$as_echo_n "checking if $LD supports link flag -Wl,-z,now... " >&6; }
6342 saved_LDFLAGS="$LDFLAGS"
6343 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,now"
6344 _define_flag=""
6345 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,now"
6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347/* end confdefs.h. */
6348
6349#include <stdlib.h>
6350#include <stdio.h>
6351int main(int argc, char **argv) {
6352 /* Some math to catch -ftrapv problems in the toolchain */
6353 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6354 float l = i * 2.1;
6355 double m = l / 0.5;
6356 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6357 long long p = n * o;
6358 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
6359 exit(0);
6360}
6361
6362_ACEOF
6363if ac_fn_c_try_link "$LINENO"; then :
6364
6365if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
6366then
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368$as_echo "no" >&6; }
6369 LDFLAGS="$saved_LDFLAGS"
6370else
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6372$as_echo "yes" >&6; }
6373 LDFLAGS="$saved_LDFLAGS $_define_flag"
6374fi
6375else
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377$as_echo "no" >&6; }
6378 LDFLAGS="$saved_LDFLAGS"
6379
6380fi
6381rm -f core conftest.err conftest.$ac_objext \
6382 conftest$ac_exeext conftest.$ac_ext
6383}
6384 {
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,noexecstack" >&5
6386$as_echo_n "checking if $LD supports link flag -Wl,-z,noexecstack... " >&6; }
6387 saved_LDFLAGS="$LDFLAGS"
6388 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,noexecstack"
6389 _define_flag=""
6390 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,noexecstack"
6391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392/* end confdefs.h. */
6393
6394#include <stdlib.h>
6395#include <stdio.h>
6396int main(int argc, char **argv) {
6397 /* Some math to catch -ftrapv problems in the toolchain */
6398 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6399 float l = i * 2.1;
6400 double m = l / 0.5;
6401 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6402 long long p = n * o;
6403 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
6404 exit(0);
6405}
6406
6407_ACEOF
6408if ac_fn_c_try_link "$LINENO"; then :
6409
6410if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
6411then
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413$as_echo "no" >&6; }
6414 LDFLAGS="$saved_LDFLAGS"
6415else
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6417$as_echo "yes" >&6; }
6418 LDFLAGS="$saved_LDFLAGS $_define_flag"
6419fi
6420else
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422$as_echo "no" >&6; }
6423 LDFLAGS="$saved_LDFLAGS"
6424
6425fi
6426rm -f core conftest.err conftest.$ac_objext \
6427 conftest$ac_exeext conftest.$ac_ext
6428}
6429 # NB. -ftrapv expects certain support functions to be present in
6430 # the compiler library (libgcc or similar) to detect integer operations
6431 # that can overflow. We must check that the result of enabling it
6432 # actually links. The test program compiled/linked includes a number
6433 # of integer operations that should exercise this.
6434 {
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -ftrapv and linking succeeds" >&5
6436$as_echo_n "checking if $CC supports compile flag -ftrapv and linking succeeds... " >&6; }
6437 saved_CFLAGS="$CFLAGS"
6438 CFLAGS="$CFLAGS $WERROR -ftrapv"
6439 _define_flag=""
6440 test "x$_define_flag" = "x" && _define_flag="-ftrapv"
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442/* end confdefs.h. */
6443
6444#include <stdlib.h>
6445#include <stdio.h>
6446int main(int argc, char **argv) {
6447 /* Some math to catch -ftrapv problems in the toolchain */
6448 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6449 float l = i * 2.1;
6450 double m = l / 0.5;
6451 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6452 long long int p = n * o;
6453 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
6454 exit(0);
6455}
6456
6457_ACEOF
6458if ac_fn_c_try_link "$LINENO"; then :
6459
6460if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
6461then
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463$as_echo "no" >&6; }
6464 CFLAGS="$saved_CFLAGS"
6465else
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6467$as_echo "yes" >&6; }
6468 CFLAGS="$saved_CFLAGS $_define_flag"
6469fi
6470else
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472$as_echo "no" >&6; }
6473 CFLAGS="$saved_CFLAGS"
6474
6475fi
6476rm -f core conftest.err conftest.$ac_objext \
6477 conftest$ac_exeext conftest.$ac_ext
6478}
6479 fi
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
6481$as_echo_n "checking gcc version... " >&6; }
6482 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
6483 case $GCC_VER in
6484 1.*) no_attrib_nonnull=1 ;;
6485 2.8* | 2.9*)
6486 no_attrib_nonnull=1
6487 ;;
6488 2.*) no_attrib_nonnull=1 ;;
6489 *) ;;
6490 esac
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5
6492$as_echo "$GCC_VER" >&6; }
6493
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5
6495$as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; }
6496 saved_CFLAGS="$CFLAGS"
6497 CFLAGS="$CFLAGS -fno-builtin-memset"
6498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6499/* end confdefs.h. */
6500 #include <string.h>
6501int
6502main ()
6503{
6504 char b[10]; memset(b, 0, sizeof(b));
6505 ;
6506 return 0;
6507}
6508_ACEOF
6509if ac_fn_c_try_link "$LINENO"; then :
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6511$as_echo "yes" >&6; }
6512else
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514$as_echo "no" >&6; }
6515 CFLAGS="$saved_CFLAGS"
6516
6517fi
6518rm -f core conftest.err conftest.$ac_objext \
6519 conftest$ac_exeext conftest.$ac_ext
6520
6521 # -fstack-protector-all doesn't always work for some GCC versions
6522 # and/or platforms, so we test if we can. If it's not supported
6523 # on a given platform gcc will emit a warning so we use -Werror.
6524 if test "x$use_stack_protector" = "x1"; then
6525 for t in -fstack-protector-strong -fstack-protector-all \
6526 -fstack-protector; do
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5
6528$as_echo_n "checking if $CC supports $t... " >&6; }
6529 saved_CFLAGS="$CFLAGS"
6530 saved_LDFLAGS="$LDFLAGS"
6531 CFLAGS="$CFLAGS $t -Werror"
6532 LDFLAGS="$LDFLAGS $t -Werror"
6533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534/* end confdefs.h. */
6535
6536 #include <stdio.h>
6537 int func (int t) {char b[100]; snprintf(b,sizeof b,"%d",t); return t;}
6538
6539int
6540main ()
6541{
6542
6543 char x[256];
6544 snprintf(x, sizeof(x), "XXX%d", func(1));
6545
6546 ;
6547 return 0;
6548}
6549_ACEOF
6550if ac_fn_c_try_link "$LINENO"; then :
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6552$as_echo "yes" >&6; }
6553 CFLAGS="$saved_CFLAGS $t"
6554 LDFLAGS="$saved_LDFLAGS $t"
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5
6556$as_echo_n "checking if $t works... " >&6; }
6557 if test "$cross_compiling" = yes; then :
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5
6559$as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
6560 break
6561
6562else
6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564/* end confdefs.h. */
6565
6566 #include <stdio.h>
6567 int func (int t) {char b[100]; snprintf(b,sizeof b,"%d",t); return t;}
6568
6569int
6570main ()
6571{
6572
6573 char x[256];
6574 snprintf(x, sizeof(x), "XXX%d", func(1));
6575
6576 ;
6577 return 0;
6578}
6579_ACEOF
6580if ac_fn_c_try_run "$LINENO"; then :
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6582$as_echo "yes" >&6; }
6583 break
6584else
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6586$as_echo "no" >&6; }
6587fi
6588rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6589 conftest.$ac_objext conftest.beam conftest.$ac_ext
6590fi
6591
6592
6593else
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595$as_echo "no" >&6; }
6596
6597fi
6598rm -f core conftest.err conftest.$ac_objext \
6599 conftest$ac_exeext conftest.$ac_ext
6600 CFLAGS="$saved_CFLAGS"
6601 LDFLAGS="$saved_LDFLAGS"
6602 done
6603 fi
6604
6605 if test -z "$have_llong_max"; then
6606 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
6607 unset ac_cv_have_decl_LLONG_MAX
6608 saved_CFLAGS="$CFLAGS"
6609 CFLAGS="$CFLAGS -std=gnu99"
6610 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
6611
6612"
6613if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
6614 have_llong_max=1
6615else
6616 CFLAGS="$saved_CFLAGS"
6617fi
6618
6619 fi
6620fi
6621
6622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows __attribute__ on return types" >&5
6623$as_echo_n "checking if compiler allows __attribute__ on return types... " >&6; }
6624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6625/* end confdefs.h. */
6626
6627#include <stdlib.h>
6628__attribute__((__unused__)) static void foo(void){return;}
6629int
6630main ()
6631{
6632 exit(0);
6633 ;
6634 return 0;
6635}
6636_ACEOF
6637if ac_fn_c_try_compile "$LINENO"; then :
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6639$as_echo "yes" >&6; }
6640else
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642$as_echo "no" >&6; }
6643
6644$as_echo "#define NO_ATTRIBUTE_ON_RETURN_TYPE 1" >>confdefs.h
6645
6646
6647fi
6648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6649
6650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows __attribute__ prototype args" >&5
6651$as_echo_n "checking if compiler allows __attribute__ prototype args... " >&6; }
6652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653/* end confdefs.h. */
6654
6655#include <stdlib.h>
6656typedef void foo(const char *, ...) __attribute__((format(printf, 1, 2)));
6657int
6658main ()
6659{
6660 exit(0);
6661 ;
6662 return 0;
6663}
6664_ACEOF
6665if ac_fn_c_try_compile "$LINENO"; then :
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6667$as_echo "yes" >&6; }
6668else
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6670$as_echo "no" >&6; }
6671
6672$as_echo "#define NO_ATTRIBUTE_ON_PROTOTYPE_ARGS 1" >>confdefs.h
6673
6674
6675fi
6676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6677
6678if test "x$no_attrib_nonnull" != "x1" ; then
6679
6680$as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h
6681
6682fi
6683
6684
6685# Check whether --with-rpath was given.
6686if test "${with_rpath+set}" = set; then :
6687 withval=$with_rpath;
6688 if test "x$withval" = "xno" ; then
6689 rpath_opt=""
6690 elif test "x$withval" = "xyes" ; then
6691 rpath_opt="-R"
6692 else
6693 rpath_opt="$withval"
6694 fi
6695
6696
6697fi
6698
6699
6700# Allow user to specify flags
6701
6702# Check whether --with-cflags was given.
6703if test "${with_cflags+set}" = set; then :
6704 withval=$with_cflags;
6705 if test -n "$withval" && test "x$withval" != "xno" && \
6706 test "x${withval}" != "xyes"; then
6707 CFLAGS="$CFLAGS $withval"
6708 fi
6709
6710
6711fi
6712
6713
6714
6715# Check whether --with-cflags-after was given.
6716if test "${with_cflags_after+set}" = set; then :
6717 withval=$with_cflags_after;
6718 if test -n "$withval" && test "x$withval" != "xno" && \
6719 test "x${withval}" != "xyes"; then
6720 CFLAGS_AFTER="$withval"
6721 fi
6722
6723
6724fi
6725
6726
6727# Check whether --with-cppflags was given.
6728if test "${with_cppflags+set}" = set; then :
6729 withval=$with_cppflags;
6730 if test -n "$withval" && test "x$withval" != "xno" && \
6731 test "x${withval}" != "xyes"; then
6732 CPPFLAGS="$CPPFLAGS $withval"
6733 fi
6734
6735
6736fi
6737
6738
6739# Check whether --with-ldflags was given.
6740if test "${with_ldflags+set}" = set; then :
6741 withval=$with_ldflags;
6742 if test -n "$withval" && test "x$withval" != "xno" && \
6743 test "x${withval}" != "xyes"; then
6744 LDFLAGS="$LDFLAGS $withval"
6745 fi
6746
6747
6748fi
6749
6750
6751# Check whether --with-ldflags-after was given.
6752if test "${with_ldflags_after+set}" = set; then :
6753 withval=$with_ldflags_after;
6754 if test -n "$withval" && test "x$withval" != "xno" && \
6755 test "x${withval}" != "xyes"; then
6756 LDFLAGS_AFTER="$withval"
6757 fi
6758
6759
6760fi
6761
6762
6763# Check whether --with-libs was given.
6764if test "${with_libs+set}" = set; then :
6765 withval=$with_libs;
6766 if test -n "$withval" && test "x$withval" != "xno" && \
6767 test "x${withval}" != "xyes"; then
6768 LIBS="$LIBS $withval"
6769 fi
6770
6771
6772fi
6773
6774
6775# Check whether --with-Werror was given.
6776if test "${with_Werror+set}" = set; then :
6777 withval=$with_Werror;
6778 if test -n "$withval" && test "x$withval" != "xno"; then
6779 werror_flags="-Werror"
6780 if test "x${withval}" != "xyes"; then
6781 werror_flags="$withval"
6782 fi
6783 fi
6784
6785
6786fi
6787
6788
6789for ac_header in \
6790 blf.h \
6791 bstring.h \
6792 crypt.h \
6793 crypto/sha2.h \
6794 dirent.h \
6795 endian.h \
6796 elf.h \
6797 err.h \
6798 features.h \
6799 fcntl.h \
6800 floatingpoint.h \
6801 fnmatch.h \
6802 getopt.h \
6803 glob.h \
6804 ia.h \
6805 iaf.h \
6806 ifaddrs.h \
6807 inttypes.h \
6808 langinfo.h \
6809 limits.h \
6810 locale.h \
6811 login.h \
6812 maillock.h \
6813 ndir.h \
6814 net/if_tun.h \
6815 netdb.h \
6816 netgroup.h \
6817 pam/pam_appl.h \
6818 paths.h \
6819 poll.h \
6820 pty.h \
6821 readpassphrase.h \
6822 rpc/types.h \
6823 security/pam_appl.h \
6824 sha2.h \
6825 shadow.h \
6826 stddef.h \
6827 stdint.h \
6828 string.h \
6829 strings.h \
6830 sys/bitypes.h \
6831 sys/bsdtty.h \
6832 sys/cdefs.h \
6833 sys/dir.h \
6834 sys/file.h \
6835 sys/mman.h \
6836 sys/label.h \
6837 sys/ndir.h \
6838 sys/poll.h \
6839 sys/prctl.h \
6840 sys/pstat.h \
6841 sys/ptrace.h \
6842 sys/random.h \
6843 sys/select.h \
6844 sys/stat.h \
6845 sys/stream.h \
6846 sys/stropts.h \
6847 sys/strtio.h \
6848 sys/statvfs.h \
6849 sys/sysmacros.h \
6850 sys/time.h \
6851 sys/timers.h \
6852 sys/vfs.h \
6853 time.h \
6854 tmpdir.h \
6855 ttyent.h \
6856 ucred.h \
6857 unistd.h \
6858 usersec.h \
6859 util.h \
6860 utime.h \
6861 utmp.h \
6862 utmpx.h \
6863 vis.h \
6864 wchar.h \
6865
6866do :
6867 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6868ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6869if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6870 cat >>confdefs.h <<_ACEOF
6871#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6872_ACEOF
6873
6874fi
6875
6876done
6877
6878
6879# On some platforms (eg SunOS4) sys/audit.h requires sys/[time|types|label.h]
6880# to be included first.
6881for ac_header in sys/audit.h
6882do :
6883 ac_fn_c_check_header_compile "$LINENO" "sys/audit.h" "ac_cv_header_sys_audit_h" "
6884#ifdef HAVE_SYS_TIME_H
6885# include <sys/time.h>
6886#endif
6887#ifdef HAVE_SYS_TYPES_H
6888# include <sys/types.h>
6889#endif
6890#ifdef HAVE_SYS_LABEL_H
6891# include <sys/label.h>
6892#endif
6893
6894"
6895if test "x$ac_cv_header_sys_audit_h" = xyes; then :
6896 cat >>confdefs.h <<_ACEOF
6897#define HAVE_SYS_AUDIT_H 1
6898_ACEOF
6899
6900fi
6901
6902done
6903
6904
6905# sys/capsicum.h requires sys/types.h
6906for ac_header in sys/capsicum.h
6907do :
6908 ac_fn_c_check_header_compile "$LINENO" "sys/capsicum.h" "ac_cv_header_sys_capsicum_h" "
6909#ifdef HAVE_SYS_TYPES_H
6910# include <sys/types.h>
6911#endif
6912
6913"
6914if test "x$ac_cv_header_sys_capsicum_h" = xyes; then :
6915 cat >>confdefs.h <<_ACEOF
6916#define HAVE_SYS_CAPSICUM_H 1
6917_ACEOF
6918
6919fi
6920
6921done
6922
6923
6924# net/route.h requires sys/socket.h and sys/types.h.
6925# sys/sysctl.h also requires sys/param.h
6926for ac_header in net/route.h sys/sysctl.h
6927do :
6928 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6929ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
6930#ifdef HAVE_SYS_TYPES_H
6931# include <sys/types.h>
6932#endif
6933#include <sys/param.h>
6934#include <sys/socket.h>
6935
6936"
6937if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6938 cat >>confdefs.h <<_ACEOF
6939#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6940_ACEOF
6941
6942fi
6943
6944done
6945
6946
6947# lastlog.h requires sys/time.h to be included first on Solaris
6948for ac_header in lastlog.h
6949do :
6950 ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "
6951#ifdef HAVE_SYS_TIME_H
6952# include <sys/time.h>
6953#endif
6954
6955"
6956if test "x$ac_cv_header_lastlog_h" = xyes; then :
6957 cat >>confdefs.h <<_ACEOF
6958#define HAVE_LASTLOG_H 1
6959_ACEOF
6960
6961fi
6962
6963done
6964
6965
6966# sys/ptms.h requires sys/stream.h to be included first on Solaris
6967for ac_header in sys/ptms.h
6968do :
6969 ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" "
6970#ifdef HAVE_SYS_STREAM_H
6971# include <sys/stream.h>
6972#endif
6973
6974"
6975if test "x$ac_cv_header_sys_ptms_h" = xyes; then :
6976 cat >>confdefs.h <<_ACEOF
6977#define HAVE_SYS_PTMS_H 1
6978_ACEOF
6979
6980fi
6981
6982done
6983
6984
6985# login_cap.h requires sys/types.h on NetBSD
6986for ac_header in login_cap.h
6987do :
6988 ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "
6989#include <sys/types.h>
6990
6991"
6992if test "x$ac_cv_header_login_cap_h" = xyes; then :
6993 cat >>confdefs.h <<_ACEOF
6994#define HAVE_LOGIN_CAP_H 1
6995_ACEOF
6996
6997fi
6998
6999done
7000
7001
7002# older BSDs need sys/param.h before sys/mount.h
7003for ac_header in sys/mount.h
7004do :
7005 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "
7006#include <sys/param.h>
7007
7008"
7009if test "x$ac_cv_header_sys_mount_h" = xyes; then :
7010 cat >>confdefs.h <<_ACEOF
7011#define HAVE_SYS_MOUNT_H 1
7012_ACEOF
7013
7014fi
7015
7016done
7017
7018
7019# Android requires sys/socket.h to be included before sys/un.h
7020for ac_header in sys/un.h
7021do :
7022 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "
7023#include <sys/types.h>
7024#include <sys/socket.h>
7025
7026"
7027if test "x$ac_cv_header_sys_un_h" = xyes; then :
7028 cat >>confdefs.h <<_ACEOF
7029#define HAVE_SYS_UN_H 1
7030_ACEOF
7031
7032fi
7033
7034done
7035
7036
7037# Messages for features tested for in target-specific section
7038SIA_MSG="no"
7039SPC_MSG="no"
7040SP_MSG="no"
7041SPP_MSG="no"
7042
7043# Support for Solaris/Illumos privileges (this test is used by both
7044# the --with-solaris-privs option and --with-sandbox=solaris).
7045SOLARIS_PRIVS="no"
7046
7047# Check for some target-specific stuff
7048case "$host" in
7049*-*-aix*)
7050 # Some versions of VAC won't allow macro redefinitions at
7051 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
7052 # particularly with older versions of vac or xlc.
7053 # It also throws errors about null macro arguments, but these are
7054 # not fatal.
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5
7056$as_echo_n "checking if compiler allows macro redefinitions... " >&6; }
7057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058/* end confdefs.h. */
7059
7060#define testmacro foo
7061#define testmacro bar
7062int
7063main ()
7064{
7065 exit(0);
7066 ;
7067 return 0;
7068}
7069_ACEOF
7070if ac_fn_c_try_compile "$LINENO"; then :
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7072$as_echo "yes" >&6; }
7073else
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7075$as_echo "no" >&6; }
7076 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
7077 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
7078 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
7079
7080
7081fi
7082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5
7085$as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; }
7086 if (test -z "$blibpath"); then
7087 blibpath="/usr/lib:/lib"
7088 fi
7089 saved_LDFLAGS="$LDFLAGS"
7090 if test "$GCC" = "yes"; then
7091 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
7092 else
7093 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
7094 fi
7095 for tryflags in $flags ;do
7096 if (test -z "$blibflags"); then
7097 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099/* end confdefs.h. */
7100
7101int
7102main ()
7103{
7104
7105 ;
7106 return 0;
7107}
7108_ACEOF
7109if ac_fn_c_try_link "$LINENO"; then :
7110 blibflags=$tryflags
7111fi
7112rm -f core conftest.err conftest.$ac_objext \
7113 conftest$ac_exeext conftest.$ac_ext
7114 fi
7115 done
7116 if (test -z "$blibflags"); then
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7118$as_echo "not found" >&6; }
7119 as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5
7120 else
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5
7122$as_echo "$blibflags" >&6; }
7123 fi
7124 LDFLAGS="$saved_LDFLAGS"
7125 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
7126if test "x$ac_cv_func_authenticate" = xyes; then :
7127
7128$as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
7129
7130else
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5
7132$as_echo_n "checking for authenticate in -ls... " >&6; }
7133if ${ac_cv_lib_s_authenticate+:} false; then :
7134 $as_echo_n "(cached) " >&6
7135else
7136 ac_check_lib_save_LIBS=$LIBS
7137LIBS="-ls $LIBS"
7138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139/* end confdefs.h. */
7140
7141/* Override any GCC internal prototype to avoid an error.
7142 Use char because int might match the return type of a GCC
7143 builtin and then its argument prototype would still apply. */
7144#ifdef __cplusplus
7145extern "C"
7146#endif
7147char authenticate ();
7148int
7149main ()
7150{
7151return authenticate ();
7152 ;
7153 return 0;
7154}
7155_ACEOF
7156if ac_fn_c_try_link "$LINENO"; then :
7157 ac_cv_lib_s_authenticate=yes
7158else
7159 ac_cv_lib_s_authenticate=no
7160fi
7161rm -f core conftest.err conftest.$ac_objext \
7162 conftest$ac_exeext conftest.$ac_ext
7163LIBS=$ac_check_lib_save_LIBS
7164fi
7165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5
7166$as_echo "$ac_cv_lib_s_authenticate" >&6; }
7167if test "x$ac_cv_lib_s_authenticate" = xyes; then :
7168 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
7169
7170 LIBS="$LIBS -ls"
7171
7172fi
7173
7174
7175fi
7176
7177 ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h>
7178"
7179if test "x$ac_cv_have_decl_authenticate" = xyes; then :
7180 ac_have_decl=1
7181else
7182 ac_have_decl=0
7183fi
7184
7185cat >>confdefs.h <<_ACEOF
7186#define HAVE_DECL_AUTHENTICATE $ac_have_decl
7187_ACEOF
7188ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h>
7189"
7190if test "x$ac_cv_have_decl_loginrestrictions" = xyes; then :
7191 ac_have_decl=1
7192else
7193 ac_have_decl=0
7194fi
7195
7196cat >>confdefs.h <<_ACEOF
7197#define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl
7198_ACEOF
7199ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h>
7200"
7201if test "x$ac_cv_have_decl_loginsuccess" = xyes; then :
7202 ac_have_decl=1
7203else
7204 ac_have_decl=0
7205fi
7206
7207cat >>confdefs.h <<_ACEOF
7208#define HAVE_DECL_LOGINSUCCESS $ac_have_decl
7209_ACEOF
7210ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h>
7211"
7212if test "x$ac_cv_have_decl_passwdexpired" = xyes; then :
7213 ac_have_decl=1
7214else
7215 ac_have_decl=0
7216fi
7217
7218cat >>confdefs.h <<_ACEOF
7219#define HAVE_DECL_PASSWDEXPIRED $ac_have_decl
7220_ACEOF
7221ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h>
7222"
7223if test "x$ac_cv_have_decl_setauthdb" = xyes; then :
7224 ac_have_decl=1
7225else
7226 ac_have_decl=0
7227fi
7228
7229cat >>confdefs.h <<_ACEOF
7230#define HAVE_DECL_SETAUTHDB $ac_have_decl
7231_ACEOF
7232
7233 ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h>
7234
7235"
7236if test "x$ac_cv_have_decl_loginfailed" = xyes; then :
7237 ac_have_decl=1
7238else
7239 ac_have_decl=0
7240fi
7241
7242cat >>confdefs.h <<_ACEOF
7243#define HAVE_DECL_LOGINFAILED $ac_have_decl
7244_ACEOF
7245if test $ac_have_decl = 1; then :
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5
7247$as_echo_n "checking if loginfailed takes 4 arguments... " >&6; }
7248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7249/* end confdefs.h. */
7250 #include <usersec.h>
7251int
7252main ()
7253{
7254 (void)loginfailed("user","host","tty",0);
7255 ;
7256 return 0;
7257}
7258_ACEOF
7259if ac_fn_c_try_compile "$LINENO"; then :
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7261$as_echo "yes" >&6; }
7262
7263$as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h
7264
7265else
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267$as_echo "no" >&6; }
7268
7269fi
7270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7271fi
7272
7273 for ac_func in getgrset setauthdb
7274do :
7275 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7276ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7277if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7278 cat >>confdefs.h <<_ACEOF
7279#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7280_ACEOF
7281
7282fi
7283done
7284
7285 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
7286 #include <fcntl.h>
7287
7288"
7289if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
7290
7291$as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
7292
7293fi
7294
7295 check_for_aix_broken_getaddrinfo=1
7296
7297$as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7298
7299
7300$as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7301
7302
7303$as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7304
7305
7306$as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
7307
7308
7309$as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
7310
7311
7312$as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7313
7314
7315$as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
7316
7317
7318$as_echo "#define PTY_ZEROREAD 1" >>confdefs.h
7319
7320
7321$as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h
7322
7323
7324$as_echo "#define BROKEN_STRNDUP 1" >>confdefs.h
7325
7326
7327$as_echo "#define BROKEN_STRNLEN 1" >>confdefs.h
7328
7329 ;;
7330*-*-android*)
7331
7332$as_echo "#define DISABLE_UTMP 1" >>confdefs.h
7333
7334
7335$as_echo "#define DISABLE_WTMP 1" >>confdefs.h
7336
7337 ;;
7338*-*-cygwin*)
7339 check_for_libcrypt_later=1
7340 LIBS="$LIBS /usr/lib/textreadmode.o"
7341
7342$as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
7343
7344
7345$as_echo "#define USE_PIPES 1" >>confdefs.h
7346
7347
7348$as_echo "#define NO_UID_RESTORATION_TEST 1" >>confdefs.h
7349
7350
7351$as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
7352
7353
7354$as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
7355
7356
7357$as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7358
7359
7360$as_echo "#define SSH_IOBUFSZ 65535" >>confdefs.h
7361
7362
7363$as_echo "#define FILESYSTEM_NO_BACKSLASH 1" >>confdefs.h
7364
7365 # Cygwin defines optargs, optargs as declspec(dllimport) for historical
7366 # reasons which cause compile warnings, so we disable those warnings.
7367 {
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wno-attributes" >&5
7369$as_echo_n "checking if $CC supports compile flag -Wno-attributes... " >&6; }
7370 saved_CFLAGS="$CFLAGS"
7371 CFLAGS="$CFLAGS $WERROR -Wno-attributes"
7372 _define_flag=""
7373 test "x$_define_flag" = "x" && _define_flag="-Wno-attributes"
7374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7375/* end confdefs.h. */
7376
7377#include <stdlib.h>
7378#include <stdio.h>
7379int main(int argc, char **argv) {
7380 /* Some math to catch -ftrapv problems in the toolchain */
7381 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
7382 float l = i * 2.1;
7383 double m = l / 0.5;
7384 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
7385 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
7386 exit(0);
7387}
7388
7389_ACEOF
7390if ac_fn_c_try_compile "$LINENO"; then :
7391
7392if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
7393then
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7395$as_echo "no" >&6; }
7396 CFLAGS="$saved_CFLAGS"
7397else
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7399$as_echo "yes" >&6; }
7400 CFLAGS="$saved_CFLAGS $_define_flag"
7401fi
7402else
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7404$as_echo "no" >&6; }
7405 CFLAGS="$saved_CFLAGS"
7406
7407fi
7408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7409}
7410 ;;
7411*-*-dgux*)
7412
7413$as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
7414
7415 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7416
7417 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7418
7419 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7420
7421 ;;
7422*-*-darwin*)
7423 use_pie=auto
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5
7425$as_echo_n "checking if we have working getaddrinfo... " >&6; }
7426 if test "$cross_compiling" = yes; then :
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5
7428$as_echo "assume it is working" >&6; }
7429else
7430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431/* end confdefs.h. */
7432 #include <mach-o/dyld.h>
7433main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
7434 exit(0);
7435 else
7436 exit(1);
7437}
7438
7439_ACEOF
7440if ac_fn_c_try_run "$LINENO"; then :
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5
7442$as_echo "working" >&6; }
7443else
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
7445$as_echo "buggy" >&6; }
7446
7447$as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7448
7449
7450fi
7451rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7452 conftest.$ac_objext conftest.beam conftest.$ac_ext
7453fi
7454
7455 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7456
7457 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7458
7459 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7460
7461
7462$as_echo "#define BROKEN_GLOB 1" >>confdefs.h
7463
7464
7465cat >>confdefs.h <<_ACEOF
7466#define BIND_8_COMPAT 1
7467_ACEOF
7468
7469
7470$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
7471
7472
7473$as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
7474
7475
7476$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
7477
7478
7479 ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default"
7480if test "x$ac_cv_have_decl_AU_IPv4" = xyes; then :
7481
7482else
7483
7484$as_echo "#define AU_IPv4 0" >>confdefs.h
7485
7486 #include <bsm/audit.h>
7487
7488$as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h
7489
7490
7491fi
7492
7493
7494$as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7495
7496 for ac_func in sandbox_init
7497do :
7498 ac_fn_c_check_func "$LINENO" "sandbox_init" "ac_cv_func_sandbox_init"
7499if test "x$ac_cv_func_sandbox_init" = xyes; then :
7500 cat >>confdefs.h <<_ACEOF
7501#define HAVE_SANDBOX_INIT 1
7502_ACEOF
7503
7504fi
7505done
7506
7507 for ac_header in sandbox.h
7508do :
7509 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
7510if test "x$ac_cv_header_sandbox_h" = xyes; then :
7511 cat >>confdefs.h <<_ACEOF
7512#define HAVE_SANDBOX_H 1
7513_ACEOF
7514
7515fi
7516
7517done
7518
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox_apply in -lsandbox" >&5
7520$as_echo_n "checking for sandbox_apply in -lsandbox... " >&6; }
7521if ${ac_cv_lib_sandbox_sandbox_apply+:} false; then :
7522 $as_echo_n "(cached) " >&6
7523else
7524 ac_check_lib_save_LIBS=$LIBS
7525LIBS="-lsandbox $LIBS"
7526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527/* end confdefs.h. */
7528
7529/* Override any GCC internal prototype to avoid an error.
7530 Use char because int might match the return type of a GCC
7531 builtin and then its argument prototype would still apply. */
7532#ifdef __cplusplus
7533extern "C"
7534#endif
7535char sandbox_apply ();
7536int
7537main ()
7538{
7539return sandbox_apply ();
7540 ;
7541 return 0;
7542}
7543_ACEOF
7544if ac_fn_c_try_link "$LINENO"; then :
7545 ac_cv_lib_sandbox_sandbox_apply=yes
7546else
7547 ac_cv_lib_sandbox_sandbox_apply=no
7548fi
7549rm -f core conftest.err conftest.$ac_objext \
7550 conftest$ac_exeext conftest.$ac_ext
7551LIBS=$ac_check_lib_save_LIBS
7552fi
7553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sandbox_sandbox_apply" >&5
7554$as_echo "$ac_cv_lib_sandbox_sandbox_apply" >&6; }
7555if test "x$ac_cv_lib_sandbox_sandbox_apply" = xyes; then :
7556
7557 SSHDLIBS="$SSHDLIBS -lsandbox"
7558
7559fi
7560
7561 # proc_pidinfo()-based closefrom() replacement.
7562 for ac_header in libproc.h
7563do :
7564 ac_fn_c_check_header_mongrel "$LINENO" "libproc.h" "ac_cv_header_libproc_h" "$ac_includes_default"
7565if test "x$ac_cv_header_libproc_h" = xyes; then :
7566 cat >>confdefs.h <<_ACEOF
7567#define HAVE_LIBPROC_H 1
7568_ACEOF
7569
7570fi
7571
7572done
7573
7574 for ac_func in proc_pidinfo
7575do :
7576 ac_fn_c_check_func "$LINENO" "proc_pidinfo" "ac_cv_func_proc_pidinfo"
7577if test "x$ac_cv_func_proc_pidinfo" = xyes; then :
7578 cat >>confdefs.h <<_ACEOF
7579#define HAVE_PROC_PIDINFO 1
7580_ACEOF
7581
7582fi
7583done
7584
7585 ;;
7586*-*-dragonfly*)
7587 SSHDLIBS="$SSHDLIBS -lcrypt"
7588 TEST_MALLOC_OPTIONS="AFGJPRX"
7589 ;;
7590*-*-haiku*)
7591 LIBS="$LIBS -lbsd "
7592 CFLAGS="$CFLAGS -D_BSD_SOURCE"
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
7594$as_echo_n "checking for socket in -lnetwork... " >&6; }
7595if ${ac_cv_lib_network_socket+:} false; then :
7596 $as_echo_n "(cached) " >&6
7597else
7598 ac_check_lib_save_LIBS=$LIBS
7599LIBS="-lnetwork $LIBS"
7600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601/* end confdefs.h. */
7602
7603/* Override any GCC internal prototype to avoid an error.
7604 Use char because int might match the return type of a GCC
7605 builtin and then its argument prototype would still apply. */
7606#ifdef __cplusplus
7607extern "C"
7608#endif
7609char socket ();
7610int
7611main ()
7612{
7613return socket ();
7614 ;
7615 return 0;
7616}
7617_ACEOF
7618if ac_fn_c_try_link "$LINENO"; then :
7619 ac_cv_lib_network_socket=yes
7620else
7621 ac_cv_lib_network_socket=no
7622fi
7623rm -f core conftest.err conftest.$ac_objext \
7624 conftest$ac_exeext conftest.$ac_ext
7625LIBS=$ac_check_lib_save_LIBS
7626fi
7627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
7628$as_echo "$ac_cv_lib_network_socket" >&6; }
7629if test "x$ac_cv_lib_network_socket" = xyes; then :
7630 cat >>confdefs.h <<_ACEOF
7631#define HAVE_LIBNETWORK 1
7632_ACEOF
7633
7634 LIBS="-lnetwork $LIBS"
7635
7636fi
7637
7638 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
7639
7640
7641$as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
7642
7643 MANTYPE=man
7644 ;;
7645*-*-hpux*)
7646 # first we define all of the options common to all HP-UX releases
7647 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
7648 IPADDR_IN_DISPLAY=yes
7649 $as_echo "#define USE_PIPES 1" >>confdefs.h
7650
7651 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
7652
7653
7654$as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h
7655
7656 $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h
7657
7658
7659$as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h
7660
7661 maildir="/var/mail"
7662 LIBS="$LIBS -lsec"
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5
7664$as_echo_n "checking for t_error in -lxnet... " >&6; }
7665if ${ac_cv_lib_xnet_t_error+:} false; then :
7666 $as_echo_n "(cached) " >&6
7667else
7668 ac_check_lib_save_LIBS=$LIBS
7669LIBS="-lxnet $LIBS"
7670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671/* end confdefs.h. */
7672
7673/* Override any GCC internal prototype to avoid an error.
7674 Use char because int might match the return type of a GCC
7675 builtin and then its argument prototype would still apply. */
7676#ifdef __cplusplus
7677extern "C"
7678#endif
7679char t_error ();
7680int
7681main ()
7682{
7683return t_error ();
7684 ;
7685 return 0;
7686}
7687_ACEOF
7688if ac_fn_c_try_link "$LINENO"; then :
7689 ac_cv_lib_xnet_t_error=yes
7690else
7691 ac_cv_lib_xnet_t_error=no
7692fi
7693rm -f core conftest.err conftest.$ac_objext \
7694 conftest$ac_exeext conftest.$ac_ext
7695LIBS=$ac_check_lib_save_LIBS
7696fi
7697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5
7698$as_echo "$ac_cv_lib_xnet_t_error" >&6; }
7699if test "x$ac_cv_lib_xnet_t_error" = xyes; then :
7700 cat >>confdefs.h <<_ACEOF
7701#define HAVE_LIBXNET 1
7702_ACEOF
7703
7704 LIBS="-lxnet $LIBS"
7705
7706else
7707 as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5
7708fi
7709
7710
7711 # next, we define all of the options specific to major releases
7712 case "$host" in
7713 *-*-hpux10*)
7714 if test -z "$GCC"; then
7715 CFLAGS="$CFLAGS -Ae"
7716 fi
7717 ;;
7718 *-*-hpux11*)
7719
7720$as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7721
7722
7723$as_echo "#define DISABLE_UTMP 1" >>confdefs.h
7724
7725
7726$as_echo "#define USE_BTMP 1" >>confdefs.h
7727
7728 check_for_hpux_broken_getaddrinfo=1
7729 check_for_conflicting_getspnam=1
7730 ;;
7731 esac
7732
7733 # lastly, we define options specific to minor releases
7734 case "$host" in
7735 *-*-hpux10.26)
7736
7737$as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
7738
7739 disable_ptmx_check=yes
7740 LIBS="$LIBS -lsecpw"
7741 ;;
7742 esac
7743 ;;
7744*-*-irix5*)
7745 PATH="$PATH:/usr/etc"
7746
7747$as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
7748
7749 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7750
7751 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7752
7753 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7754
7755
7756$as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7757
7758 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7759
7760 ;;
7761*-*-irix6*)
7762 PATH="$PATH:/usr/etc"
7763
7764$as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h
7765
7766
7767$as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h
7768
7769
7770$as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h
7771
7772 ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob"
7773if test "x$ac_cv_func_jlimit_startjob" = xyes; then :
7774
7775$as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h
7776
7777fi
7778
7779 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
7780
7781 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7782
7783 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7784
7785 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7786
7787
7788$as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7789
7790 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7791
7792 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7793
7794 ;;
7795*-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7796 check_for_libcrypt_later=1
7797 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
7798
7799 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
7800
7801 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7802
7803
7804$as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
7805
7806
7807$as_echo "#define USE_BTMP 1" >>confdefs.h
7808
7809 ;;
7810*-*-linux*)
7811 no_dev_ptmx=1
7812 use_pie=auto
7813 check_for_libcrypt_later=1
7814 check_for_openpty_ctty_bug=1
7815 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE"
7816
7817$as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
7818
7819
7820$as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
7821
7822 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7823
7824
7825$as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h
7826
7827
7828$as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
7829
7830 $as_echo "#define USE_BTMP 1" >>confdefs.h
7831
7832
7833$as_echo "#define LINUX_OOM_ADJUST 1" >>confdefs.h
7834
7835 inet6_default_4in6=yes
7836 case `uname -r` in
7837 1.*|2.0.*)
7838
7839$as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h
7840
7841 ;;
7842 esac
7843 # tun(4) forwarding compat code
7844 for ac_header in linux/if_tun.h
7845do :
7846 ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
7847if test "x$ac_cv_header_linux_if_tun_h" = xyes; then :
7848 cat >>confdefs.h <<_ACEOF
7849#define HAVE_LINUX_IF_TUN_H 1
7850_ACEOF
7851
7852fi
7853
7854done
7855
7856 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
7857
7858$as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h
7859
7860
7861$as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
7862
7863
7864$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
7865
7866 fi
7867 ac_fn_c_check_header_compile "$LINENO" "linux/if.h" "ac_cv_header_linux_if_h" "
7868#ifdef HAVE_SYS_TYPES_H
7869# include <sys/types.h>
7870#endif
7871
7872"
7873if test "x$ac_cv_header_linux_if_h" = xyes; then :
7874
7875$as_echo "#define SYS_RDOMAIN_LINUX 1" >>confdefs.h
7876
7877fi
7878
7879
7880 for ac_header in linux/seccomp.h linux/filter.h linux/audit.h
7881do :
7882 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7883ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <linux/types.h>
7884"
7885if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7886 cat >>confdefs.h <<_ACEOF
7887#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7888_ACEOF
7889
7890fi
7891
7892done
7893
7894 # Obtain MIPS ABI
7895 case "$host" in
7896 mips*)
7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898/* end confdefs.h. */
7899
7900#if _MIPS_SIM != _ABIO32
7901#error
7902#endif
7903
7904int
7905main ()
7906{
7907
7908 ;
7909 return 0;
7910}
7911_ACEOF
7912if ac_fn_c_try_compile "$LINENO"; then :
7913 mips_abi="o32"
7914else
7915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916/* end confdefs.h. */
7917
7918#if _MIPS_SIM != _ABIN32
7919#error
7920#endif
7921
7922int
7923main ()
7924{
7925
7926 ;
7927 return 0;
7928}
7929_ACEOF
7930if ac_fn_c_try_compile "$LINENO"; then :
7931 mips_abi="n32"
7932else
7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934/* end confdefs.h. */
7935
7936#if _MIPS_SIM != _ABI64
7937#error
7938#endif
7939
7940int
7941main ()
7942{
7943
7944 ;
7945 return 0;
7946}
7947_ACEOF
7948if ac_fn_c_try_compile "$LINENO"; then :
7949 mips_abi="n64"
7950else
7951 as_fn_error $? "unknown MIPS ABI" "$LINENO" 5
7952
7953fi
7954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7955
7956fi
7957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7958
7959fi
7960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7961 ;;
7962 esac
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp architecture" >&5
7964$as_echo_n "checking for seccomp architecture... " >&6; }
7965 seccomp_audit_arch=
7966 case "$host" in
7967 x86_64-*)
7968 seccomp_audit_arch=AUDIT_ARCH_X86_64
7969 ;;
7970 i*86-*)
7971 seccomp_audit_arch=AUDIT_ARCH_I386
7972 ;;
7973 arm*-*)
7974 seccomp_audit_arch=AUDIT_ARCH_ARM
7975 ;;
7976 aarch64*-*)
7977 seccomp_audit_arch=AUDIT_ARCH_AARCH64
7978 ;;
7979 s390x-*)
7980 seccomp_audit_arch=AUDIT_ARCH_S390X
7981 ;;
7982 s390-*)
7983 seccomp_audit_arch=AUDIT_ARCH_S390
7984 ;;
7985 powerpc64-*)
7986 seccomp_audit_arch=AUDIT_ARCH_PPC64
7987 ;;
7988 powerpc64le-*)
7989 seccomp_audit_arch=AUDIT_ARCH_PPC64LE
7990 ;;
7991 mips-*)
7992 seccomp_audit_arch=AUDIT_ARCH_MIPS
7993 ;;
7994 mipsel-*)
7995 seccomp_audit_arch=AUDIT_ARCH_MIPSEL
7996 ;;
7997 mips64-*)
7998 case "$mips_abi" in
7999 "n32")
8000 seccomp_audit_arch=AUDIT_ARCH_MIPS64N32
8001 ;;
8002 "n64")
8003 seccomp_audit_arch=AUDIT_ARCH_MIPS64
8004 ;;
8005 esac
8006 ;;
8007 mips64el-*)
8008 case "$mips_abi" in
8009 "n32")
8010 seccomp_audit_arch=AUDIT_ARCH_MIPSEL64N32
8011 ;;
8012 "n64")
8013 seccomp_audit_arch=AUDIT_ARCH_MIPSEL64
8014 ;;
8015 esac
8016 ;;
8017 esac
8018 if test "x$seccomp_audit_arch" != "x" ; then
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$seccomp_audit_arch\"" >&5
8020$as_echo "\"$seccomp_audit_arch\"" >&6; }
8021
8022cat >>confdefs.h <<_ACEOF
8023#define SECCOMP_AUDIT_ARCH $seccomp_audit_arch
8024_ACEOF
8025
8026 else
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: architecture not supported" >&5
8028$as_echo "architecture not supported" >&6; }
8029 fi
8030 ;;
8031mips-sony-bsd|mips-sony-newsos4)
8032
8033$as_echo "#define NEED_SETPGRP 1" >>confdefs.h
8034
8035 SONY=1
8036 ;;
8037*-*-netbsd*)
8038 check_for_libcrypt_before=1
8039 if test "x$withval" != "xno" ; then
8040 rpath_opt="-R"
8041 fi
8042 CPPFLAGS="$CPPFLAGS -D_OPENBSD_SOURCE"
8043
8044$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
8045
8046 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
8047if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
8048
8049else
8050
8051$as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
8052
8053fi
8054
8055
8056
8057$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
8058
8059 TEST_MALLOC_OPTIONS="AJRX"
8060
8061$as_echo "#define BROKEN_READ_COMPARISON 1" >>confdefs.h
8062
8063 ;;
8064*-*-freebsd*)
8065 check_for_libcrypt_later=1
8066
8067$as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h
8068
8069
8070$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
8071
8072 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
8073if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
8074
8075else
8076
8077$as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
8078
8079fi
8080
8081
8082
8083$as_echo "#define BROKEN_GLOB 1" >>confdefs.h
8084
8085 TEST_MALLOC_OPTIONS="AJRX"
8086 # Preauth crypto occasionally uses file descriptors for crypto offload
8087 # and will crash if they cannot be opened.
8088
8089$as_echo "#define SANDBOX_SKIP_RLIMIT_NOFILE 1" >>confdefs.h
8090
8091 ;;
8092*-*-bsdi*)
8093 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8094
8095 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8096
8097 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8098
8099 ;;
8100*-next-*)
8101 conf_lastlog_location="/usr/adm/lastlog"
8102 conf_utmp_location=/etc/utmp
8103 conf_wtmp_location=/usr/adm/wtmp
8104 maildir=/usr/spool/mail
8105
8106$as_echo "#define HAVE_NEXT 1" >>confdefs.h
8107
8108 $as_echo "#define USE_PIPES 1" >>confdefs.h
8109
8110
8111$as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h
8112
8113 ;;
8114*-*-openbsd*)
8115 use_pie=auto
8116
8117$as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h
8118
8119
8120$as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h
8121
8122
8123$as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h
8124
8125
8126$as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h
8127
8128 TEST_MALLOC_OPTIONS="AFGJPRX"
8129 ;;
8130*-*-solaris*)
8131 if test "x$withval" != "xno" ; then
8132 rpath_opt="-R"
8133 fi
8134 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
8135
8136 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
8137
8138 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
8139
8140
8141$as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
8142
8143 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
8144
8145 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
8146
8147$as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
8148
8149
8150$as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
8151
8152
8153$as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h
8154
8155 external_path_file=/etc/default/login
8156 # hardwire lastlog location (can't detect it on some versions)
8157 conf_lastlog_location="/var/adm/lastlog"
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5
8159$as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; }
8160 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
8161 if test "$sol2ver" -ge 8; then
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8163$as_echo "yes" >&6; }
8164 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
8165
8166
8167$as_echo "#define DISABLE_WTMP 1" >>confdefs.h
8168
8169 else
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8171$as_echo "no" >&6; }
8172 fi
8173 for ac_func in setpflags
8174do :
8175 ac_fn_c_check_func "$LINENO" "setpflags" "ac_cv_func_setpflags"
8176if test "x$ac_cv_func_setpflags" = xyes; then :
8177 cat >>confdefs.h <<_ACEOF
8178#define HAVE_SETPFLAGS 1
8179_ACEOF
8180
8181fi
8182done
8183
8184 for ac_func in setppriv
8185do :
8186 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
8187if test "x$ac_cv_func_setppriv" = xyes; then :
8188 cat >>confdefs.h <<_ACEOF
8189#define HAVE_SETPPRIV 1
8190_ACEOF
8191
8192fi
8193done
8194
8195 for ac_func in priv_basicset
8196do :
8197 ac_fn_c_check_func "$LINENO" "priv_basicset" "ac_cv_func_priv_basicset"
8198if test "x$ac_cv_func_priv_basicset" = xyes; then :
8199 cat >>confdefs.h <<_ACEOF
8200#define HAVE_PRIV_BASICSET 1
8201_ACEOF
8202
8203fi
8204done
8205
8206 for ac_header in priv.h
8207do :
8208 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
8209if test "x$ac_cv_header_priv_h" = xyes; then :
8210 cat >>confdefs.h <<_ACEOF
8211#define HAVE_PRIV_H 1
8212_ACEOF
8213
8214fi
8215
8216done
8217
8218
8219# Check whether --with-solaris-contracts was given.
8220if test "${with_solaris_contracts+set}" = set; then :
8221 withval=$with_solaris_contracts;
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5
8223$as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; }
8224if ${ac_cv_lib_contract_ct_tmpl_activate+:} false; then :
8225 $as_echo_n "(cached) " >&6
8226else
8227 ac_check_lib_save_LIBS=$LIBS
8228LIBS="-lcontract $LIBS"
8229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8230/* end confdefs.h. */
8231
8232/* Override any GCC internal prototype to avoid an error.
8233 Use char because int might match the return type of a GCC
8234 builtin and then its argument prototype would still apply. */
8235#ifdef __cplusplus
8236extern "C"
8237#endif
8238char ct_tmpl_activate ();
8239int
8240main ()
8241{
8242return ct_tmpl_activate ();
8243 ;
8244 return 0;
8245}
8246_ACEOF
8247if ac_fn_c_try_link "$LINENO"; then :
8248 ac_cv_lib_contract_ct_tmpl_activate=yes
8249else
8250 ac_cv_lib_contract_ct_tmpl_activate=no
8251fi
8252rm -f core conftest.err conftest.$ac_objext \
8253 conftest$ac_exeext conftest.$ac_ext
8254LIBS=$ac_check_lib_save_LIBS
8255fi
8256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
8257$as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
8258if test "x$ac_cv_lib_contract_ct_tmpl_activate" = xyes; then :
8259
8260$as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h
8261
8262 LIBS="$LIBS -lcontract"
8263 SPC_MSG="yes"
8264fi
8265
8266
8267fi
8268
8269
8270# Check whether --with-solaris-projects was given.
8271if test "${with_solaris_projects+set}" = set; then :
8272 withval=$with_solaris_projects;
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
8274$as_echo_n "checking for setproject in -lproject... " >&6; }
8275if ${ac_cv_lib_project_setproject+:} false; then :
8276 $as_echo_n "(cached) " >&6
8277else
8278 ac_check_lib_save_LIBS=$LIBS
8279LIBS="-lproject $LIBS"
8280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8281/* end confdefs.h. */
8282
8283/* Override any GCC internal prototype to avoid an error.
8284 Use char because int might match the return type of a GCC
8285 builtin and then its argument prototype would still apply. */
8286#ifdef __cplusplus
8287extern "C"
8288#endif
8289char setproject ();
8290int
8291main ()
8292{
8293return setproject ();
8294 ;
8295 return 0;
8296}
8297_ACEOF
8298if ac_fn_c_try_link "$LINENO"; then :
8299 ac_cv_lib_project_setproject=yes
8300else
8301 ac_cv_lib_project_setproject=no
8302fi
8303rm -f core conftest.err conftest.$ac_objext \
8304 conftest$ac_exeext conftest.$ac_ext
8305LIBS=$ac_check_lib_save_LIBS
8306fi
8307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
8308$as_echo "$ac_cv_lib_project_setproject" >&6; }
8309if test "x$ac_cv_lib_project_setproject" = xyes; then :
8310
8311$as_echo "#define USE_SOLARIS_PROJECTS 1" >>confdefs.h
8312
8313 LIBS="$LIBS -lproject"
8314 SP_MSG="yes"
8315fi
8316
8317
8318fi
8319
8320
8321# Check whether --with-solaris-privs was given.
8322if test "${with_solaris_privs+set}" = set; then :
8323 withval=$with_solaris_privs;
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/Illumos privilege support" >&5
8325$as_echo_n "checking for Solaris/Illumos privilege support... " >&6; }
8326 if test "x$ac_cv_func_setppriv" = "xyes" -a \
8327 "x$ac_cv_header_priv_h" = "xyes" ; then
8328 SOLARIS_PRIVS=yes
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
8330$as_echo "found" >&6; }
8331
8332$as_echo "#define NO_UID_RESTORATION_TEST 1" >>confdefs.h
8333
8334
8335$as_echo "#define USE_SOLARIS_PRIVS 1" >>confdefs.h
8336
8337 SPP_MSG="yes"
8338 else
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8340$as_echo "not found" >&6; }
8341 as_fn_error $? "*** must have support for Solaris privileges to use --with-solaris-privs" "$LINENO" 5
8342 fi
8343
8344fi
8345
8346 TEST_SHELL=$SHELL # let configure find us a capable shell
8347 ;;
8348*-*-sunos4*)
8349 CPPFLAGS="$CPPFLAGS -DSUNOS4"
8350 for ac_func in getpwanam
8351do :
8352 ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam"
8353if test "x$ac_cv_func_getpwanam" = xyes; then :
8354 cat >>confdefs.h <<_ACEOF
8355#define HAVE_GETPWANAM 1
8356_ACEOF
8357
8358fi
8359done
8360
8361 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
8362
8363 conf_utmp_location=/etc/utmp
8364 conf_wtmp_location=/var/adm/wtmp
8365 conf_lastlog_location=/var/adm/lastlog
8366 $as_echo "#define USE_PIPES 1" >>confdefs.h
8367
8368
8369$as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
8370
8371 ;;
8372*-ncr-sysv*)
8373 LIBS="$LIBS -lc89"
8374 $as_echo "#define USE_PIPES 1" >>confdefs.h
8375
8376 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
8377
8378 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8379
8380 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8381
8382 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8383
8384 ;;
8385*-sni-sysv*)
8386 # /usr/ucblib MUST NOT be searched on ReliantUNIX
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
8388$as_echo_n "checking for dlsym in -ldl... " >&6; }
8389if ${ac_cv_lib_dl_dlsym+:} false; then :
8390 $as_echo_n "(cached) " >&6
8391else
8392 ac_check_lib_save_LIBS=$LIBS
8393LIBS="-ldl $LIBS"
8394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8395/* end confdefs.h. */
8396
8397/* Override any GCC internal prototype to avoid an error.
8398 Use char because int might match the return type of a GCC
8399 builtin and then its argument prototype would still apply. */
8400#ifdef __cplusplus
8401extern "C"
8402#endif
8403char dlsym ();
8404int
8405main ()
8406{
8407return dlsym ();
8408 ;
8409 return 0;
8410}
8411_ACEOF
8412if ac_fn_c_try_link "$LINENO"; then :
8413 ac_cv_lib_dl_dlsym=yes
8414else
8415 ac_cv_lib_dl_dlsym=no
8416fi
8417rm -f core conftest.err conftest.$ac_objext \
8418 conftest$ac_exeext conftest.$ac_ext
8419LIBS=$ac_check_lib_save_LIBS
8420fi
8421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
8422$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
8423if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
8424 cat >>confdefs.h <<_ACEOF
8425#define HAVE_LIBDL 1
8426_ACEOF
8427
8428 LIBS="-ldl $LIBS"
8429
8430fi
8431
8432 # -lresolv needs to be at the end of LIBS or DNS lookups break
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
8434$as_echo_n "checking for res_query in -lresolv... " >&6; }
8435if ${ac_cv_lib_resolv_res_query+:} false; then :
8436 $as_echo_n "(cached) " >&6
8437else
8438 ac_check_lib_save_LIBS=$LIBS
8439LIBS="-lresolv $LIBS"
8440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8441/* end confdefs.h. */
8442
8443/* Override any GCC internal prototype to avoid an error.
8444 Use char because int might match the return type of a GCC
8445 builtin and then its argument prototype would still apply. */
8446#ifdef __cplusplus
8447extern "C"
8448#endif
8449char res_query ();
8450int
8451main ()
8452{
8453return res_query ();
8454 ;
8455 return 0;
8456}
8457_ACEOF
8458if ac_fn_c_try_link "$LINENO"; then :
8459 ac_cv_lib_resolv_res_query=yes
8460else
8461 ac_cv_lib_resolv_res_query=no
8462fi
8463rm -f core conftest.err conftest.$ac_objext \
8464 conftest$ac_exeext conftest.$ac_ext
8465LIBS=$ac_check_lib_save_LIBS
8466fi
8467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5
8468$as_echo "$ac_cv_lib_resolv_res_query" >&6; }
8469if test "x$ac_cv_lib_resolv_res_query" = xyes; then :
8470 LIBS="$LIBS -lresolv"
8471fi
8472
8473 IPADDR_IN_DISPLAY=yes
8474 $as_echo "#define USE_PIPES 1" >>confdefs.h
8475
8476 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
8477
8478 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8479
8480 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8481
8482 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8483
8484 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
8485
8486 external_path_file=/etc/default/login
8487 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
8488 # Attention: always take care to bind libsocket and libnsl before libc,
8489 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
8490 ;;
8491# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
8492*-*-sysv4.2*)
8493 $as_echo "#define USE_PIPES 1" >>confdefs.h
8494
8495 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8496
8497 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8498
8499 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8500
8501
8502$as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
8503
8504 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
8505
8506 TEST_SHELL=$SHELL # let configure find us a capable shell
8507 ;;
8508# UnixWare 7.x, OpenUNIX 8
8509*-*-sysv5*)
8510 CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf"
8511
8512$as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h
8513
8514 $as_echo "#define USE_PIPES 1" >>confdefs.h
8515
8516 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8517
8518 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
8519
8520 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8521
8522 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8523
8524 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
8525
8526 $as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h
8527
8528 TEST_SHELL=$SHELL # let configure find us a capable shell
8529 check_for_libcrypt_later=1
8530 case "$host" in
8531 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
8532 maildir=/var/spool/mail
8533 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
8534
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5
8536$as_echo_n "checking for getluid in -lprot... " >&6; }
8537if ${ac_cv_lib_prot_getluid+:} false; then :
8538 $as_echo_n "(cached) " >&6
8539else
8540 ac_check_lib_save_LIBS=$LIBS
8541LIBS="-lprot $LIBS"
8542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8543/* end confdefs.h. */
8544
8545/* Override any GCC internal prototype to avoid an error.
8546 Use char because int might match the return type of a GCC
8547 builtin and then its argument prototype would still apply. */
8548#ifdef __cplusplus
8549extern "C"
8550#endif
8551char getluid ();
8552int
8553main ()
8554{
8555return getluid ();
8556 ;
8557 return 0;
8558}
8559_ACEOF
8560if ac_fn_c_try_link "$LINENO"; then :
8561 ac_cv_lib_prot_getluid=yes
8562else
8563 ac_cv_lib_prot_getluid=no
8564fi
8565rm -f core conftest.err conftest.$ac_objext \
8566 conftest$ac_exeext conftest.$ac_ext
8567LIBS=$ac_check_lib_save_LIBS
8568fi
8569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5
8570$as_echo "$ac_cv_lib_prot_getluid" >&6; }
8571if test "x$ac_cv_lib_prot_getluid" = xyes; then :
8572 LIBS="$LIBS -lprot"
8573 for ac_func in getluid setluid
8574do :
8575 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8576ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8577if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8578 cat >>confdefs.h <<_ACEOF
8579#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8580_ACEOF
8581
8582fi
8583done
8584
8585
8586fi
8587
8588 ;;
8589 *) $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
8590
8591 ;;
8592 esac
8593 ;;
8594*-*-sysv*)
8595 ;;
8596# SCO UNIX and OEM versions of SCO UNIX
8597*-*-sco3.2v4*)
8598 as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5
8599 ;;
8600# SCO OpenServer 5.x
8601*-*-sco3.2v5*)
8602 if test -z "$GCC"; then
8603 CFLAGS="$CFLAGS -belf"
8604 fi
8605 LIBS="$LIBS -lprot -lx -ltinfo -lm"
8606 no_dev_ptmx=1
8607 $as_echo "#define USE_PIPES 1" >>confdefs.h
8608
8609 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
8610
8611 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
8612
8613 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8614
8615 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8616
8617 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
8618
8619 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8620
8621 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8622
8623 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
8624
8625 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
8626
8627 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
8628
8629 for ac_func in getluid setluid
8630do :
8631 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8632ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8633if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8634 cat >>confdefs.h <<_ACEOF
8635#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8636_ACEOF
8637
8638fi
8639done
8640
8641 MANTYPE=man
8642 TEST_SHELL=$SHELL # let configure find us a capable shell
8643 SKIP_DISABLE_LASTLOG_DEFINE=yes
8644 ;;
8645*-dec-osf*)
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5
8647$as_echo_n "checking for Digital Unix SIA... " >&6; }
8648 no_osfsia=""
8649
8650# Check whether --with-osfsia was given.
8651if test "${with_osfsia+set}" = set; then :
8652 withval=$with_osfsia;
8653 if test "x$withval" = "xno" ; then
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8655$as_echo "disabled" >&6; }
8656 no_osfsia=1
8657 fi
8658
8659fi
8660
8661 if test -z "$no_osfsia" ; then
8662 if test -f /etc/sia/matrix.conf; then
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8664$as_echo "yes" >&6; }
8665
8666$as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h
8667
8668
8669$as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
8670
8671 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8672
8673 LIBS="$LIBS -lsecurity -ldb -lm -laud"
8674 SIA_MSG="yes"
8675 else
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677$as_echo "no" >&6; }
8678
8679$as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h
8680
8681 fi
8682 fi
8683 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
8684
8685 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8686
8687 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8688
8689 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8690
8691
8692$as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h
8693
8694 ;;
8695
8696*-*-nto-qnx*)
8697 $as_echo "#define USE_PIPES 1" >>confdefs.h
8698
8699 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
8700
8701 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
8702
8703 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
8704
8705
8706$as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h
8707
8708 enable_etc_default_login=no # has incompatible /etc/default/login
8709 case "$host" in
8710 *-*-nto-qnx6*)
8711 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8712
8713 ;;
8714 esac
8715 ;;
8716
8717*-*-ultrix*)
8718
8719$as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h
8720
8721
8722$as_echo "#define NEED_SETPGRP 1" >>confdefs.h
8723
8724
8725$as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h
8726
8727
8728$as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
8729
8730 # DISABLE_FD_PASSING so that we call setpgrp as root, otherwise we
8731 # don't get a controlling tty.
8732
8733$as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8734
8735 # On Ultrix some headers are not protected against multiple includes,
8736 # so we create wrappers and put it where the compiler will find it.
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: creating compat wrappers for headers" >&5
8738$as_echo "$as_me: WARNING: creating compat wrappers for headers" >&2;}
8739 mkdir -p netinet
8740 for header in netinet/ip.h netdb.h resolv.h; do
8741 name=`echo $header | tr 'a-z/.' 'A-Z__'`
8742 cat >$header <<EOD
8743#ifndef _SSH_COMPAT_${name}
8744#define _SSH_COMPAT_${name}
8745#include "/usr/include/${header}"
8746#endif
8747EOD
8748 done
8749 ;;
8750
8751*-*-lynxos)
8752 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
8753
8754$as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h
8755
8756 ;;
8757esac
8758
8759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5
8760$as_echo_n "checking compiler and flags for sanity... " >&6; }
8761if test "$cross_compiling" = yes; then :
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5
8763$as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
8764
8765else
8766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8767/* end confdefs.h. */
8768 #include <stdio.h>
8769int
8770main ()
8771{
8772 exit(0);
8773 ;
8774 return 0;
8775}
8776_ACEOF
8777if ac_fn_c_try_run "$LINENO"; then :
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8779$as_echo "yes" >&6; }
8780else
8781
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8783$as_echo "no" >&6; }
8784 as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5
8785
8786fi
8787rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8788 conftest.$ac_objext conftest.beam conftest.$ac_ext
8789fi
8790
8791
8792# Checks for libraries.
8793ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
8794if test "x$ac_cv_func_setsockopt" = xyes; then :
8795
8796else
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
8798$as_echo_n "checking for setsockopt in -lsocket... " >&6; }
8799if ${ac_cv_lib_socket_setsockopt+:} false; then :
8800 $as_echo_n "(cached) " >&6
8801else
8802 ac_check_lib_save_LIBS=$LIBS
8803LIBS="-lsocket $LIBS"
8804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805/* end confdefs.h. */
8806
8807/* Override any GCC internal prototype to avoid an error.
8808 Use char because int might match the return type of a GCC
8809 builtin and then its argument prototype would still apply. */
8810#ifdef __cplusplus
8811extern "C"
8812#endif
8813char setsockopt ();
8814int
8815main ()
8816{
8817return setsockopt ();
8818 ;
8819 return 0;
8820}
8821_ACEOF
8822if ac_fn_c_try_link "$LINENO"; then :
8823 ac_cv_lib_socket_setsockopt=yes
8824else
8825 ac_cv_lib_socket_setsockopt=no
8826fi
8827rm -f core conftest.err conftest.$ac_objext \
8828 conftest$ac_exeext conftest.$ac_ext
8829LIBS=$ac_check_lib_save_LIBS
8830fi
8831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
8832$as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
8833if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
8834 cat >>confdefs.h <<_ACEOF
8835#define HAVE_LIBSOCKET 1
8836_ACEOF
8837
8838 LIBS="-lsocket $LIBS"
8839
8840fi
8841
8842fi
8843
8844
8845for ac_func in dirname
8846do :
8847 ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
8848if test "x$ac_cv_func_dirname" = xyes; then :
8849 cat >>confdefs.h <<_ACEOF
8850#define HAVE_DIRNAME 1
8851_ACEOF
8852 for ac_header in libgen.h
8853do :
8854 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
8855if test "x$ac_cv_header_libgen_h" = xyes; then :
8856 cat >>confdefs.h <<_ACEOF
8857#define HAVE_LIBGEN_H 1
8858_ACEOF
8859
8860fi
8861
8862done
8863
8864else
8865
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5
8867$as_echo_n "checking for dirname in -lgen... " >&6; }
8868if ${ac_cv_lib_gen_dirname+:} false; then :
8869 $as_echo_n "(cached) " >&6
8870else
8871 ac_check_lib_save_LIBS=$LIBS
8872LIBS="-lgen $LIBS"
8873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8874/* end confdefs.h. */
8875
8876/* Override any GCC internal prototype to avoid an error.
8877 Use char because int might match the return type of a GCC
8878 builtin and then its argument prototype would still apply. */
8879#ifdef __cplusplus
8880extern "C"
8881#endif
8882char dirname ();
8883int
8884main ()
8885{
8886return dirname ();
8887 ;
8888 return 0;
8889}
8890_ACEOF
8891if ac_fn_c_try_link "$LINENO"; then :
8892 ac_cv_lib_gen_dirname=yes
8893else
8894 ac_cv_lib_gen_dirname=no
8895fi
8896rm -f core conftest.err conftest.$ac_objext \
8897 conftest$ac_exeext conftest.$ac_ext
8898LIBS=$ac_check_lib_save_LIBS
8899fi
8900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5
8901$as_echo "$ac_cv_lib_gen_dirname" >&6; }
8902if test "x$ac_cv_lib_gen_dirname" = xyes; then :
8903
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5
8905$as_echo_n "checking for broken dirname... " >&6; }
8906if ${ac_cv_have_broken_dirname+:} false; then :
8907 $as_echo_n "(cached) " >&6
8908else
8909
8910 save_LIBS="$LIBS"
8911 LIBS="$LIBS -lgen"
8912 if test "$cross_compiling" = yes; then :
8913 ac_cv_have_broken_dirname="no"
8914else
8915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916/* end confdefs.h. */
8917
8918#include <libgen.h>
8919#include <string.h>
8920
8921int main(int argc, char **argv) {
8922 char *s, buf[32];
8923
8924 strncpy(buf,"/etc", 32);
8925 s = dirname(buf);
8926 if (!s || strncmp(s, "/", 32) != 0) {
8927 exit(1);
8928 } else {
8929 exit(0);
8930 }
8931}
8932
8933_ACEOF
8934if ac_fn_c_try_run "$LINENO"; then :
8935 ac_cv_have_broken_dirname="no"
8936else
8937 ac_cv_have_broken_dirname="yes"
8938fi
8939rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8940 conftest.$ac_objext conftest.beam conftest.$ac_ext
8941fi
8942
8943 LIBS="$save_LIBS"
8944
8945fi
8946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5
8947$as_echo "$ac_cv_have_broken_dirname" >&6; }
8948 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
8949 LIBS="$LIBS -lgen"
8950 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
8951
8952 for ac_header in libgen.h
8953do :
8954 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
8955if test "x$ac_cv_header_libgen_h" = xyes; then :
8956 cat >>confdefs.h <<_ACEOF
8957#define HAVE_LIBGEN_H 1
8958_ACEOF
8959
8960fi
8961
8962done
8963
8964 fi
8965
8966fi
8967
8968
8969fi
8970done
8971
8972
8973ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
8974if test "x$ac_cv_func_getspnam" = xyes; then :
8975
8976else
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5
8978$as_echo_n "checking for getspnam in -lgen... " >&6; }
8979if ${ac_cv_lib_gen_getspnam+:} false; then :
8980 $as_echo_n "(cached) " >&6
8981else
8982 ac_check_lib_save_LIBS=$LIBS
8983LIBS="-lgen $LIBS"
8984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8985/* end confdefs.h. */
8986
8987/* Override any GCC internal prototype to avoid an error.
8988 Use char because int might match the return type of a GCC
8989 builtin and then its argument prototype would still apply. */
8990#ifdef __cplusplus
8991extern "C"
8992#endif
8993char getspnam ();
8994int
8995main ()
8996{
8997return getspnam ();
8998 ;
8999 return 0;
9000}
9001_ACEOF
9002if ac_fn_c_try_link "$LINENO"; then :
9003 ac_cv_lib_gen_getspnam=yes
9004else
9005 ac_cv_lib_gen_getspnam=no
9006fi
9007rm -f core conftest.err conftest.$ac_objext \
9008 conftest$ac_exeext conftest.$ac_ext
9009LIBS=$ac_check_lib_save_LIBS
9010fi
9011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5
9012$as_echo "$ac_cv_lib_gen_getspnam" >&6; }
9013if test "x$ac_cv_lib_gen_getspnam" = xyes; then :
9014 LIBS="$LIBS -lgen"
9015fi
9016
9017fi
9018
9019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5
9020$as_echo_n "checking for library containing basename... " >&6; }
9021if ${ac_cv_search_basename+:} false; then :
9022 $as_echo_n "(cached) " >&6
9023else
9024 ac_func_search_save_LIBS=$LIBS
9025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026/* end confdefs.h. */
9027
9028/* Override any GCC internal prototype to avoid an error.
9029 Use char because int might match the return type of a GCC
9030 builtin and then its argument prototype would still apply. */
9031#ifdef __cplusplus
9032extern "C"
9033#endif
9034char basename ();
9035int
9036main ()
9037{
9038return basename ();
9039 ;
9040 return 0;
9041}
9042_ACEOF
9043for ac_lib in '' gen; do
9044 if test -z "$ac_lib"; then
9045 ac_res="none required"
9046 else
9047 ac_res=-l$ac_lib
9048 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9049 fi
9050 if ac_fn_c_try_link "$LINENO"; then :
9051 ac_cv_search_basename=$ac_res
9052fi
9053rm -f core conftest.err conftest.$ac_objext \
9054 conftest$ac_exeext
9055 if ${ac_cv_search_basename+:} false; then :
9056 break
9057fi
9058done
9059if ${ac_cv_search_basename+:} false; then :
9060
9061else
9062 ac_cv_search_basename=no
9063fi
9064rm conftest.$ac_ext
9065LIBS=$ac_func_search_save_LIBS
9066fi
9067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5
9068$as_echo "$ac_cv_search_basename" >&6; }
9069ac_res=$ac_cv_search_basename
9070if test "$ac_res" != no; then :
9071 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9072
9073$as_echo "#define HAVE_BASENAME 1" >>confdefs.h
9074
9075fi
9076
9077
9078zlib=yes
9079
9080# Check whether --with-zlib was given.
9081if test "${with_zlib+set}" = set; then :
9082 withval=$with_zlib; if test "x$withval" = "xno" ; then
9083 zlib=no
9084 elif test "x$withval" != "xyes"; then
9085 if test -d "$withval/lib"; then
9086 if test -n "${rpath_opt}"; then
9087 LDFLAGS="-L${withval}/lib ${rpath_opt}${withval}/lib ${LDFLAGS}"
9088 else
9089 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
9090 fi
9091 else
9092 if test -n "${rpath_opt}"; then
9093 LDFLAGS="-L${withval} ${rpath_opt}${withval} ${LDFLAGS}"
9094 else
9095 LDFLAGS="-L${withval} ${LDFLAGS}"
9096 fi
9097 fi
9098 if test -d "$withval/include"; then
9099 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
9100 else
9101 CPPFLAGS="-I${withval} ${CPPFLAGS}"
9102 fi
9103 fi
9104
9105fi
9106
9107
9108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
9109$as_echo_n "checking for zlib... " >&6; }
9110if test "x${zlib}" = "xno"; then
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9112$as_echo "no" >&6; }
9113else
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9115$as_echo "yes" >&6; }
9116
9117$as_echo "#define WITH_ZLIB 1" >>confdefs.h
9118
9119 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9120if test "x$ac_cv_header_zlib_h" = xyes; then :
9121
9122else
9123 as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5
9124fi
9125
9126
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
9128$as_echo_n "checking for deflate in -lz... " >&6; }
9129if ${ac_cv_lib_z_deflate+:} false; then :
9130 $as_echo_n "(cached) " >&6
9131else
9132 ac_check_lib_save_LIBS=$LIBS
9133LIBS="-lz $LIBS"
9134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135/* end confdefs.h. */
9136
9137/* Override any GCC internal prototype to avoid an error.
9138 Use char because int might match the return type of a GCC
9139 builtin and then its argument prototype would still apply. */
9140#ifdef __cplusplus
9141extern "C"
9142#endif
9143char deflate ();
9144int
9145main ()
9146{
9147return deflate ();
9148 ;
9149 return 0;
9150}
9151_ACEOF
9152if ac_fn_c_try_link "$LINENO"; then :
9153 ac_cv_lib_z_deflate=yes
9154else
9155 ac_cv_lib_z_deflate=no
9156fi
9157rm -f core conftest.err conftest.$ac_objext \
9158 conftest$ac_exeext conftest.$ac_ext
9159LIBS=$ac_check_lib_save_LIBS
9160fi
9161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
9162$as_echo "$ac_cv_lib_z_deflate" >&6; }
9163if test "x$ac_cv_lib_z_deflate" = xyes; then :
9164 cat >>confdefs.h <<_ACEOF
9165#define HAVE_LIBZ 1
9166_ACEOF
9167
9168 LIBS="-lz $LIBS"
9169
9170else
9171
9172 saved_CPPFLAGS="$CPPFLAGS"
9173 saved_LDFLAGS="$LDFLAGS"
9174 save_LIBS="$LIBS"
9175 if test -n "${rpath_opt}"; then
9176 LDFLAGS="-L/usr/local/lib ${rpath_opt}/usr/local/lib ${saved_LDFLAGS}"
9177 else
9178 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
9179 fi
9180 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
9181 LIBS="$LIBS -lz"
9182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9183/* end confdefs.h. */
9184
9185/* Override any GCC internal prototype to avoid an error.
9186 Use char because int might match the return type of a GCC
9187 builtin and then its argument prototype would still apply. */
9188#ifdef __cplusplus
9189extern "C"
9190#endif
9191char deflate ();
9192int
9193main ()
9194{
9195return deflate ();
9196 ;
9197 return 0;
9198}
9199_ACEOF
9200if ac_fn_c_try_link "$LINENO"; then :
9201 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
9202
9203else
9204
9205 as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5
9206
9207
9208fi
9209rm -f core conftest.err conftest.$ac_objext \
9210 conftest$ac_exeext conftest.$ac_ext
9211
9212
9213fi
9214
9215
9216
9217# Check whether --with-zlib-version-check was given.
9218if test "${with_zlib_version_check+set}" = set; then :
9219 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
9220 zlib_check_nonfatal=1
9221 fi
9222
9223
9224fi
9225
9226
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5
9228$as_echo_n "checking for possibly buggy zlib... " >&6; }
9229 if test "$cross_compiling" = yes; then :
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5
9231$as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
9232
9233else
9234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9235/* end confdefs.h. */
9236
9237#include <stdio.h>
9238#include <stdlib.h>
9239#include <zlib.h>
9240
9241int
9242main ()
9243{
9244
9245 int a=0, b=0, c=0, d=0, n, v;
9246 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
9247 if (n != 3 && n != 4)
9248 exit(1);
9249 v = a*1000000 + b*10000 + c*100 + d;
9250 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
9251
9252 /* 1.1.4 is OK */
9253 if (a == 1 && b == 1 && c >= 4)
9254 exit(0);
9255
9256 /* 1.2.3 and up are OK */
9257 if (v >= 1020300)
9258 exit(0);
9259
9260 exit(2);
9261
9262 ;
9263 return 0;
9264}
9265_ACEOF
9266if ac_fn_c_try_run "$LINENO"; then :
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9268$as_echo "no" >&6; }
9269else
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9271$as_echo "yes" >&6; }
9272 if test -z "$zlib_check_nonfatal" ; then
9273 as_fn_error $? "*** zlib too old - check config.log ***
9274Your reported zlib version has known security problems. It's possible your
9275vendor has fixed these problems without changing the version number. If you
9276are sure this is the case, you can disable the check by running
9277\"./configure --without-zlib-version-check\".
9278If you are in doubt, upgrade zlib to version 1.2.3 or greater.
9279See http://www.gzip.org/zlib/ for details." "$LINENO" 5
9280 else
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5
9282$as_echo "$as_me: WARNING: zlib version may have security problems" >&2;}
9283 fi
9284
9285fi
9286rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9287 conftest.$ac_objext conftest.beam conftest.$ac_ext
9288fi
9289
9290fi
9291
9292ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
9293if test "x$ac_cv_func_strcasecmp" = xyes; then :
9294
9295else
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5
9297$as_echo_n "checking for strcasecmp in -lresolv... " >&6; }
9298if ${ac_cv_lib_resolv_strcasecmp+:} false; then :
9299 $as_echo_n "(cached) " >&6
9300else
9301 ac_check_lib_save_LIBS=$LIBS
9302LIBS="-lresolv $LIBS"
9303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9304/* end confdefs.h. */
9305
9306/* Override any GCC internal prototype to avoid an error.
9307 Use char because int might match the return type of a GCC
9308 builtin and then its argument prototype would still apply. */
9309#ifdef __cplusplus
9310extern "C"
9311#endif
9312char strcasecmp ();
9313int
9314main ()
9315{
9316return strcasecmp ();
9317 ;
9318 return 0;
9319}
9320_ACEOF
9321if ac_fn_c_try_link "$LINENO"; then :
9322 ac_cv_lib_resolv_strcasecmp=yes
9323else
9324 ac_cv_lib_resolv_strcasecmp=no
9325fi
9326rm -f core conftest.err conftest.$ac_objext \
9327 conftest$ac_exeext conftest.$ac_ext
9328LIBS=$ac_check_lib_save_LIBS
9329fi
9330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5
9331$as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; }
9332if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then :
9333 LIBS="$LIBS -lresolv"
9334fi
9335
9336
9337fi
9338
9339for ac_func in utimes
9340do :
9341 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
9342if test "x$ac_cv_func_utimes" = xyes; then :
9343 cat >>confdefs.h <<_ACEOF
9344#define HAVE_UTIMES 1
9345_ACEOF
9346
9347else
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5
9349$as_echo_n "checking for utimes in -lc89... " >&6; }
9350if ${ac_cv_lib_c89_utimes+:} false; then :
9351 $as_echo_n "(cached) " >&6
9352else
9353 ac_check_lib_save_LIBS=$LIBS
9354LIBS="-lc89 $LIBS"
9355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9356/* end confdefs.h. */
9357
9358/* Override any GCC internal prototype to avoid an error.
9359 Use char because int might match the return type of a GCC
9360 builtin and then its argument prototype would still apply. */
9361#ifdef __cplusplus
9362extern "C"
9363#endif
9364char utimes ();
9365int
9366main ()
9367{
9368return utimes ();
9369 ;
9370 return 0;
9371}
9372_ACEOF
9373if ac_fn_c_try_link "$LINENO"; then :
9374 ac_cv_lib_c89_utimes=yes
9375else
9376 ac_cv_lib_c89_utimes=no
9377fi
9378rm -f core conftest.err conftest.$ac_objext \
9379 conftest$ac_exeext conftest.$ac_ext
9380LIBS=$ac_check_lib_save_LIBS
9381fi
9382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5
9383$as_echo "$ac_cv_lib_c89_utimes" >&6; }
9384if test "x$ac_cv_lib_c89_utimes" = xyes; then :
9385 $as_echo "#define HAVE_UTIMES 1" >>confdefs.h
9386
9387 LIBS="$LIBS -lc89"
9388fi
9389
9390
9391fi
9392done
9393
9394
9395for ac_header in bsd/libutil.h libutil.h
9396do :
9397 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9398ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9399if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9400 cat >>confdefs.h <<_ACEOF
9401#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9402_ACEOF
9403
9404fi
9405
9406done
9407
9408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmt_scaled" >&5
9409$as_echo_n "checking for library containing fmt_scaled... " >&6; }
9410if ${ac_cv_search_fmt_scaled+:} false; then :
9411 $as_echo_n "(cached) " >&6
9412else
9413 ac_func_search_save_LIBS=$LIBS
9414cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9415/* end confdefs.h. */
9416
9417/* Override any GCC internal prototype to avoid an error.
9418 Use char because int might match the return type of a GCC
9419 builtin and then its argument prototype would still apply. */
9420#ifdef __cplusplus
9421extern "C"
9422#endif
9423char fmt_scaled ();
9424int
9425main ()
9426{
9427return fmt_scaled ();
9428 ;
9429 return 0;
9430}
9431_ACEOF
9432for ac_lib in '' util bsd; do
9433 if test -z "$ac_lib"; then
9434 ac_res="none required"
9435 else
9436 ac_res=-l$ac_lib
9437 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9438 fi
9439 if ac_fn_c_try_link "$LINENO"; then :
9440 ac_cv_search_fmt_scaled=$ac_res
9441fi
9442rm -f core conftest.err conftest.$ac_objext \
9443 conftest$ac_exeext
9444 if ${ac_cv_search_fmt_scaled+:} false; then :
9445 break
9446fi
9447done
9448if ${ac_cv_search_fmt_scaled+:} false; then :
9449
9450else
9451 ac_cv_search_fmt_scaled=no
9452fi
9453rm conftest.$ac_ext
9454LIBS=$ac_func_search_save_LIBS
9455fi
9456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmt_scaled" >&5
9457$as_echo "$ac_cv_search_fmt_scaled" >&6; }
9458ac_res=$ac_cv_search_fmt_scaled
9459if test "$ac_res" != no; then :
9460 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9461
9462fi
9463
9464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing scan_scaled" >&5
9465$as_echo_n "checking for library containing scan_scaled... " >&6; }
9466if ${ac_cv_search_scan_scaled+:} false; then :
9467 $as_echo_n "(cached) " >&6
9468else
9469 ac_func_search_save_LIBS=$LIBS
9470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9471/* end confdefs.h. */
9472
9473/* Override any GCC internal prototype to avoid an error.
9474 Use char because int might match the return type of a GCC
9475 builtin and then its argument prototype would still apply. */
9476#ifdef __cplusplus
9477extern "C"
9478#endif
9479char scan_scaled ();
9480int
9481main ()
9482{
9483return scan_scaled ();
9484 ;
9485 return 0;
9486}
9487_ACEOF
9488for ac_lib in '' util bsd; do
9489 if test -z "$ac_lib"; then
9490 ac_res="none required"
9491 else
9492 ac_res=-l$ac_lib
9493 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9494 fi
9495 if ac_fn_c_try_link "$LINENO"; then :
9496 ac_cv_search_scan_scaled=$ac_res
9497fi
9498rm -f core conftest.err conftest.$ac_objext \
9499 conftest$ac_exeext
9500 if ${ac_cv_search_scan_scaled+:} false; then :
9501 break
9502fi
9503done
9504if ${ac_cv_search_scan_scaled+:} false; then :
9505
9506else
9507 ac_cv_search_scan_scaled=no
9508fi
9509rm conftest.$ac_ext
9510LIBS=$ac_func_search_save_LIBS
9511fi
9512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_scan_scaled" >&5
9513$as_echo "$ac_cv_search_scan_scaled" >&6; }
9514ac_res=$ac_cv_search_scan_scaled
9515if test "$ac_res" != no; then :
9516 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9517
9518fi
9519
9520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5
9521$as_echo_n "checking for library containing login... " >&6; }
9522if ${ac_cv_search_login+:} false; then :
9523 $as_echo_n "(cached) " >&6
9524else
9525 ac_func_search_save_LIBS=$LIBS
9526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9527/* end confdefs.h. */
9528
9529/* Override any GCC internal prototype to avoid an error.
9530 Use char because int might match the return type of a GCC
9531 builtin and then its argument prototype would still apply. */
9532#ifdef __cplusplus
9533extern "C"
9534#endif
9535char login ();
9536int
9537main ()
9538{
9539return login ();
9540 ;
9541 return 0;
9542}
9543_ACEOF
9544for ac_lib in '' util bsd; do
9545 if test -z "$ac_lib"; then
9546 ac_res="none required"
9547 else
9548 ac_res=-l$ac_lib
9549 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9550 fi
9551 if ac_fn_c_try_link "$LINENO"; then :
9552 ac_cv_search_login=$ac_res
9553fi
9554rm -f core conftest.err conftest.$ac_objext \
9555 conftest$ac_exeext
9556 if ${ac_cv_search_login+:} false; then :
9557 break
9558fi
9559done
9560if ${ac_cv_search_login+:} false; then :
9561
9562else
9563 ac_cv_search_login=no
9564fi
9565rm conftest.$ac_ext
9566LIBS=$ac_func_search_save_LIBS
9567fi
9568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5
9569$as_echo "$ac_cv_search_login" >&6; }
9570ac_res=$ac_cv_search_login
9571if test "$ac_res" != no; then :
9572 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9573
9574fi
9575
9576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logout" >&5
9577$as_echo_n "checking for library containing logout... " >&6; }
9578if ${ac_cv_search_logout+:} false; then :
9579 $as_echo_n "(cached) " >&6
9580else
9581 ac_func_search_save_LIBS=$LIBS
9582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583/* end confdefs.h. */
9584
9585/* Override any GCC internal prototype to avoid an error.
9586 Use char because int might match the return type of a GCC
9587 builtin and then its argument prototype would still apply. */
9588#ifdef __cplusplus
9589extern "C"
9590#endif
9591char logout ();
9592int
9593main ()
9594{
9595return logout ();
9596 ;
9597 return 0;
9598}
9599_ACEOF
9600for ac_lib in '' util bsd; do
9601 if test -z "$ac_lib"; then
9602 ac_res="none required"
9603 else
9604 ac_res=-l$ac_lib
9605 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9606 fi
9607 if ac_fn_c_try_link "$LINENO"; then :
9608 ac_cv_search_logout=$ac_res
9609fi
9610rm -f core conftest.err conftest.$ac_objext \
9611 conftest$ac_exeext
9612 if ${ac_cv_search_logout+:} false; then :
9613 break
9614fi
9615done
9616if ${ac_cv_search_logout+:} false; then :
9617
9618else
9619 ac_cv_search_logout=no
9620fi
9621rm conftest.$ac_ext
9622LIBS=$ac_func_search_save_LIBS
9623fi
9624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logout" >&5
9625$as_echo "$ac_cv_search_logout" >&6; }
9626ac_res=$ac_cv_search_logout
9627if test "$ac_res" != no; then :
9628 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9629
9630fi
9631
9632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logwtmp" >&5
9633$as_echo_n "checking for library containing logwtmp... " >&6; }
9634if ${ac_cv_search_logwtmp+:} false; then :
9635 $as_echo_n "(cached) " >&6
9636else
9637 ac_func_search_save_LIBS=$LIBS
9638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9639/* end confdefs.h. */
9640
9641/* Override any GCC internal prototype to avoid an error.
9642 Use char because int might match the return type of a GCC
9643 builtin and then its argument prototype would still apply. */
9644#ifdef __cplusplus
9645extern "C"
9646#endif
9647char logwtmp ();
9648int
9649main ()
9650{
9651return logwtmp ();
9652 ;
9653 return 0;
9654}
9655_ACEOF
9656for ac_lib in '' util bsd; do
9657 if test -z "$ac_lib"; then
9658 ac_res="none required"
9659 else
9660 ac_res=-l$ac_lib
9661 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9662 fi
9663 if ac_fn_c_try_link "$LINENO"; then :
9664 ac_cv_search_logwtmp=$ac_res
9665fi
9666rm -f core conftest.err conftest.$ac_objext \
9667 conftest$ac_exeext
9668 if ${ac_cv_search_logwtmp+:} false; then :
9669 break
9670fi
9671done
9672if ${ac_cv_search_logwtmp+:} false; then :
9673
9674else
9675 ac_cv_search_logwtmp=no
9676fi
9677rm conftest.$ac_ext
9678LIBS=$ac_func_search_save_LIBS
9679fi
9680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logwtmp" >&5
9681$as_echo "$ac_cv_search_logwtmp" >&6; }
9682ac_res=$ac_cv_search_logwtmp
9683if test "$ac_res" != no; then :
9684 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9685
9686fi
9687
9688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
9689$as_echo_n "checking for library containing openpty... " >&6; }
9690if ${ac_cv_search_openpty+:} false; then :
9691 $as_echo_n "(cached) " >&6
9692else
9693 ac_func_search_save_LIBS=$LIBS
9694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9695/* end confdefs.h. */
9696
9697/* Override any GCC internal prototype to avoid an error.
9698 Use char because int might match the return type of a GCC
9699 builtin and then its argument prototype would still apply. */
9700#ifdef __cplusplus
9701extern "C"
9702#endif
9703char openpty ();
9704int
9705main ()
9706{
9707return openpty ();
9708 ;
9709 return 0;
9710}
9711_ACEOF
9712for ac_lib in '' util bsd; do
9713 if test -z "$ac_lib"; then
9714 ac_res="none required"
9715 else
9716 ac_res=-l$ac_lib
9717 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9718 fi
9719 if ac_fn_c_try_link "$LINENO"; then :
9720 ac_cv_search_openpty=$ac_res
9721fi
9722rm -f core conftest.err conftest.$ac_objext \
9723 conftest$ac_exeext
9724 if ${ac_cv_search_openpty+:} false; then :
9725 break
9726fi
9727done
9728if ${ac_cv_search_openpty+:} false; then :
9729
9730else
9731 ac_cv_search_openpty=no
9732fi
9733rm conftest.$ac_ext
9734LIBS=$ac_func_search_save_LIBS
9735fi
9736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
9737$as_echo "$ac_cv_search_openpty" >&6; }
9738ac_res=$ac_cv_search_openpty
9739if test "$ac_res" != no; then :
9740 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9741
9742fi
9743
9744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing updwtmp" >&5
9745$as_echo_n "checking for library containing updwtmp... " >&6; }
9746if ${ac_cv_search_updwtmp+:} false; then :
9747 $as_echo_n "(cached) " >&6
9748else
9749 ac_func_search_save_LIBS=$LIBS
9750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751/* end confdefs.h. */
9752
9753/* Override any GCC internal prototype to avoid an error.
9754 Use char because int might match the return type of a GCC
9755 builtin and then its argument prototype would still apply. */
9756#ifdef __cplusplus
9757extern "C"
9758#endif
9759char updwtmp ();
9760int
9761main ()
9762{
9763return updwtmp ();
9764 ;
9765 return 0;
9766}
9767_ACEOF
9768for ac_lib in '' util bsd; do
9769 if test -z "$ac_lib"; then
9770 ac_res="none required"
9771 else
9772 ac_res=-l$ac_lib
9773 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9774 fi
9775 if ac_fn_c_try_link "$LINENO"; then :
9776 ac_cv_search_updwtmp=$ac_res
9777fi
9778rm -f core conftest.err conftest.$ac_objext \
9779 conftest$ac_exeext
9780 if ${ac_cv_search_updwtmp+:} false; then :
9781 break
9782fi
9783done
9784if ${ac_cv_search_updwtmp+:} false; then :
9785
9786else
9787 ac_cv_search_updwtmp=no
9788fi
9789rm conftest.$ac_ext
9790LIBS=$ac_func_search_save_LIBS
9791fi
9792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_updwtmp" >&5
9793$as_echo "$ac_cv_search_updwtmp" >&6; }
9794ac_res=$ac_cv_search_updwtmp
9795if test "$ac_res" != no; then :
9796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9797
9798fi
9799
9800for ac_func in fmt_scaled scan_scaled login logout openpty updwtmp logwtmp
9801do :
9802 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9803ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9804if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9805 cat >>confdefs.h <<_ACEOF
9806#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9807_ACEOF
9808
9809fi
9810done
9811
9812
9813# On some platforms, inet_ntop and gethostbyname may be found in libresolv
9814# or libnsl.
9815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
9816$as_echo_n "checking for library containing inet_ntop... " >&6; }
9817if ${ac_cv_search_inet_ntop+:} false; then :
9818 $as_echo_n "(cached) " >&6
9819else
9820 ac_func_search_save_LIBS=$LIBS
9821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9822/* end confdefs.h. */
9823
9824/* Override any GCC internal prototype to avoid an error.
9825 Use char because int might match the return type of a GCC
9826 builtin and then its argument prototype would still apply. */
9827#ifdef __cplusplus
9828extern "C"
9829#endif
9830char inet_ntop ();
9831int
9832main ()
9833{
9834return inet_ntop ();
9835 ;
9836 return 0;
9837}
9838_ACEOF
9839for ac_lib in '' resolv nsl; do
9840 if test -z "$ac_lib"; then
9841 ac_res="none required"
9842 else
9843 ac_res=-l$ac_lib
9844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9845 fi
9846 if ac_fn_c_try_link "$LINENO"; then :
9847 ac_cv_search_inet_ntop=$ac_res
9848fi
9849rm -f core conftest.err conftest.$ac_objext \
9850 conftest$ac_exeext
9851 if ${ac_cv_search_inet_ntop+:} false; then :
9852 break
9853fi
9854done
9855if ${ac_cv_search_inet_ntop+:} false; then :
9856
9857else
9858 ac_cv_search_inet_ntop=no
9859fi
9860rm conftest.$ac_ext
9861LIBS=$ac_func_search_save_LIBS
9862fi
9863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
9864$as_echo "$ac_cv_search_inet_ntop" >&6; }
9865ac_res=$ac_cv_search_inet_ntop
9866if test "$ac_res" != no; then :
9867 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9868
9869fi
9870
9871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9872$as_echo_n "checking for library containing gethostbyname... " >&6; }
9873if ${ac_cv_search_gethostbyname+:} false; then :
9874 $as_echo_n "(cached) " >&6
9875else
9876 ac_func_search_save_LIBS=$LIBS
9877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9878/* end confdefs.h. */
9879
9880/* Override any GCC internal prototype to avoid an error.
9881 Use char because int might match the return type of a GCC
9882 builtin and then its argument prototype would still apply. */
9883#ifdef __cplusplus
9884extern "C"
9885#endif
9886char gethostbyname ();
9887int
9888main ()
9889{
9890return gethostbyname ();
9891 ;
9892 return 0;
9893}
9894_ACEOF
9895for ac_lib in '' resolv nsl; do
9896 if test -z "$ac_lib"; then
9897 ac_res="none required"
9898 else
9899 ac_res=-l$ac_lib
9900 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9901 fi
9902 if ac_fn_c_try_link "$LINENO"; then :
9903 ac_cv_search_gethostbyname=$ac_res
9904fi
9905rm -f core conftest.err conftest.$ac_objext \
9906 conftest$ac_exeext
9907 if ${ac_cv_search_gethostbyname+:} false; then :
9908 break
9909fi
9910done
9911if ${ac_cv_search_gethostbyname+:} false; then :
9912
9913else
9914 ac_cv_search_gethostbyname=no
9915fi
9916rm conftest.$ac_ext
9917LIBS=$ac_func_search_save_LIBS
9918fi
9919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9920$as_echo "$ac_cv_search_gethostbyname" >&6; }
9921ac_res=$ac_cv_search_gethostbyname
9922if test "$ac_res" != no; then :
9923 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9924
9925fi
9926
9927
9928# "Particular Function Checks"
9929# see https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Particular-Functions.html
9930for ac_func in strftime
9931do :
9932 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
9933if test "x$ac_cv_func_strftime" = xyes; then :
9934 cat >>confdefs.h <<_ACEOF
9935#define HAVE_STRFTIME 1
9936_ACEOF
9937
9938else
9939 # strftime is in -lintl on SCO UNIX.
9940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
9941$as_echo_n "checking for strftime in -lintl... " >&6; }
9942if ${ac_cv_lib_intl_strftime+:} false; then :
9943 $as_echo_n "(cached) " >&6
9944else
9945 ac_check_lib_save_LIBS=$LIBS
9946LIBS="-lintl $LIBS"
9947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9948/* end confdefs.h. */
9949
9950/* Override any GCC internal prototype to avoid an error.
9951 Use char because int might match the return type of a GCC
9952 builtin and then its argument prototype would still apply. */
9953#ifdef __cplusplus
9954extern "C"
9955#endif
9956char strftime ();
9957int
9958main ()
9959{
9960return strftime ();
9961 ;
9962 return 0;
9963}
9964_ACEOF
9965if ac_fn_c_try_link "$LINENO"; then :
9966 ac_cv_lib_intl_strftime=yes
9967else
9968 ac_cv_lib_intl_strftime=no
9969fi
9970rm -f core conftest.err conftest.$ac_objext \
9971 conftest$ac_exeext conftest.$ac_ext
9972LIBS=$ac_check_lib_save_LIBS
9973fi
9974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
9975$as_echo "$ac_cv_lib_intl_strftime" >&6; }
9976if test "x$ac_cv_lib_intl_strftime" = xyes; then :
9977 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
9978
9979LIBS="-lintl $LIBS"
9980fi
9981
9982fi
9983done
9984
9985for ac_header in stdlib.h
9986do :
9987 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
9988if test "x$ac_cv_header_stdlib_h" = xyes; then :
9989 cat >>confdefs.h <<_ACEOF
9990#define HAVE_STDLIB_H 1
9991_ACEOF
9992
9993fi
9994
9995done
9996
9997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
9998$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
9999if ${ac_cv_func_malloc_0_nonnull+:} false; then :
10000 $as_echo_n "(cached) " >&6
10001else
10002 if test "$cross_compiling" = yes; then :
10003 ac_cv_func_malloc_0_nonnull=no
10004else
10005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10006/* end confdefs.h. */
10007#if defined STDC_HEADERS || defined HAVE_STDLIB_H
10008# include <stdlib.h>
10009#else
10010char *malloc ();
10011#endif
10012
10013int
10014main ()
10015{
10016return ! malloc (0);
10017 ;
10018 return 0;
10019}
10020_ACEOF
10021if ac_fn_c_try_run "$LINENO"; then :
10022 ac_cv_func_malloc_0_nonnull=yes
10023else
10024 ac_cv_func_malloc_0_nonnull=no
10025fi
10026rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10027 conftest.$ac_objext conftest.beam conftest.$ac_ext
10028fi
10029
10030fi
10031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
10032$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
10033if test $ac_cv_func_malloc_0_nonnull = yes; then :
10034
10035$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
10036
10037else
10038 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
10039
10040 case " $LIBOBJS " in
10041 *" malloc.$ac_objext "* ) ;;
10042 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
10043 ;;
10044esac
10045
10046
10047$as_echo "#define malloc rpl_malloc" >>confdefs.h
10048
10049fi
10050
10051
10052for ac_header in stdlib.h
10053do :
10054 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
10055if test "x$ac_cv_header_stdlib_h" = xyes; then :
10056 cat >>confdefs.h <<_ACEOF
10057#define HAVE_STDLIB_H 1
10058_ACEOF
10059
10060fi
10061
10062done
10063
10064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
10065$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
10066if ${ac_cv_func_realloc_0_nonnull+:} false; then :
10067 $as_echo_n "(cached) " >&6
10068else
10069 if test "$cross_compiling" = yes; then :
10070 ac_cv_func_realloc_0_nonnull=no
10071else
10072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10073/* end confdefs.h. */
10074#if defined STDC_HEADERS || defined HAVE_STDLIB_H
10075# include <stdlib.h>
10076#else
10077char *realloc ();
10078#endif
10079
10080int
10081main ()
10082{
10083return ! realloc (0, 0);
10084 ;
10085 return 0;
10086}
10087_ACEOF
10088if ac_fn_c_try_run "$LINENO"; then :
10089 ac_cv_func_realloc_0_nonnull=yes
10090else
10091 ac_cv_func_realloc_0_nonnull=no
10092fi
10093rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10094 conftest.$ac_objext conftest.beam conftest.$ac_ext
10095fi
10096
10097fi
10098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
10099$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
10100if test $ac_cv_func_realloc_0_nonnull = yes; then :
10101
10102$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
10103
10104else
10105 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
10106
10107 case " $LIBOBJS " in
10108 *" realloc.$ac_objext "* ) ;;
10109 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
10110 ;;
10111esac
10112
10113
10114$as_echo "#define realloc rpl_realloc" >>confdefs.h
10115
10116fi
10117
10118
10119# autoconf doesn't have AC_FUNC_CALLOC so fake it if malloc returns NULL;
10120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if calloc(0, N) returns non-null" >&5
10121$as_echo_n "checking if calloc(0, N) returns non-null... " >&6; }
10122if test "$cross_compiling" = yes; then :
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming same as malloc" >&5
10124$as_echo "$as_me: WARNING: cross compiling: assuming same as malloc" >&2;}
10125 func_calloc_0_nonnull="$ac_cv_func_malloc_0_nonnull"
10126
10127else
10128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10129/* end confdefs.h. */
10130 #include <stdlib.h>
10131int
10132main ()
10133{
10134 void *p = calloc(0, 1); exit(p == NULL);
10135
10136 ;
10137 return 0;
10138}
10139_ACEOF
10140if ac_fn_c_try_run "$LINENO"; then :
10141 func_calloc_0_nonnull=yes
10142else
10143 func_calloc_0_nonnull=no
10144fi
10145rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10146 conftest.$ac_objext conftest.beam conftest.$ac_ext
10147fi
10148
10149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $func_calloc_0_nonnull" >&5
10150$as_echo "$func_calloc_0_nonnull" >&6; }
10151
10152if test "x$func_calloc_0_nonnull" = "xyes"; then
10153
10154$as_echo "#define HAVE_CALLOC 1" >>confdefs.h
10155
10156else
10157
10158$as_echo "#define HAVE_CALLOC 0" >>confdefs.h
10159
10160
10161$as_echo "#define calloc rpl_calloc" >>confdefs.h
10162
10163fi
10164
10165# Check for ALTDIRFUNC glob() extension
10166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5
10167$as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; }
10168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10169/* end confdefs.h. */
10170
10171 #include <glob.h>
10172 #ifdef GLOB_ALTDIRFUNC
10173 FOUNDIT
10174 #endif
10175
10176_ACEOF
10177if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10178 $EGREP "FOUNDIT" >/dev/null 2>&1; then :
10179
10180
10181$as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h
10182
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10184$as_echo "yes" >&6; }
10185
10186else
10187
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10189$as_echo "no" >&6; }
10190
10191
10192fi
10193rm -f conftest*
10194
10195
10196# Check for g.gl_matchc glob() extension
10197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5
10198$as_echo_n "checking for gl_matchc field in glob_t... " >&6; }
10199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10200/* end confdefs.h. */
10201 #include <glob.h>
10202int
10203main ()
10204{
10205 glob_t g; g.gl_matchc = 1;
10206 ;
10207 return 0;
10208}
10209_ACEOF
10210if ac_fn_c_try_compile "$LINENO"; then :
10211
10212
10213$as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h
10214
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10216$as_echo "yes" >&6; }
10217
10218else
10219
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10221$as_echo "no" >&6; }
10222
10223fi
10224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10225
10226# Check for g.gl_statv glob() extension
10227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5
10228$as_echo_n "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... " >&6; }
10229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10230/* end confdefs.h. */
10231 #include <glob.h>
10232int
10233main ()
10234{
10235
10236#ifndef GLOB_KEEPSTAT
10237#error "glob does not support GLOB_KEEPSTAT extension"
10238#endif
10239glob_t g;
10240g.gl_statv = NULL;
10241
10242 ;
10243 return 0;
10244}
10245_ACEOF
10246if ac_fn_c_try_compile "$LINENO"; then :
10247
10248
10249$as_echo "#define GLOB_HAS_GL_STATV 1" >>confdefs.h
10250
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10252$as_echo "yes" >&6; }
10253
10254else
10255
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10257$as_echo "no" >&6; }
10258
10259
10260fi
10261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10262
10263ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h>
10264"
10265if test "x$ac_cv_have_decl_GLOB_NOMATCH" = xyes; then :
10266 ac_have_decl=1
10267else
10268 ac_have_decl=0
10269fi
10270
10271cat >>confdefs.h <<_ACEOF
10272#define HAVE_DECL_GLOB_NOMATCH $ac_have_decl
10273_ACEOF
10274
10275
10276ac_fn_c_check_decl "$LINENO" "VIS_ALL" "ac_cv_have_decl_VIS_ALL" "#include <vis.h>
10277"
10278if test "x$ac_cv_have_decl_VIS_ALL" = xyes; then :
10279
10280else
10281
10282$as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h
10283
10284fi
10285
10286
10287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5
10288$as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; }
10289if test "$cross_compiling" = yes; then :
10290
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
10292$as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
10293 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
10294
10295
10296
10297else
10298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10299/* end confdefs.h. */
10300
10301#include <sys/types.h>
10302#include <dirent.h>
10303int
10304main ()
10305{
10306
10307 struct dirent d;
10308 exit(sizeof(d.d_name)<=sizeof(char));
10309
10310 ;
10311 return 0;
10312}
10313_ACEOF
10314if ac_fn_c_try_run "$LINENO"; then :
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10316$as_echo "yes" >&6; }
10317else
10318
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10320$as_echo "no" >&6; }
10321
10322$as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
10323
10324
10325fi
10326rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10327 conftest.$ac_objext conftest.beam conftest.$ac_ext
10328fi
10329
10330
10331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5
10332$as_echo_n "checking for /proc/pid/fd directory... " >&6; }
10333if test -d "/proc/$$/fd" ; then
10334
10335$as_echo "#define HAVE_PROC_PID 1" >>confdefs.h
10336
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10338$as_echo "yes" >&6; }
10339else
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10341$as_echo "no" >&6; }
10342fi
10343
10344# Check whether user wants to use ldns
10345LDNS_MSG="no"
10346
10347# Check whether --with-ldns was given.
10348if test "${with_ldns+set}" = set; then :
10349 withval=$with_ldns;
10350 ldns=""
10351 if test "x$withval" = "xyes" ; then
10352 if test -n "$ac_tool_prefix"; then
10353 # Extract the first word of "${ac_tool_prefix}ldns-config", so it can be a program name with args.
10354set dummy ${ac_tool_prefix}ldns-config; ac_word=$2
10355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10356$as_echo_n "checking for $ac_word... " >&6; }
10357if ${ac_cv_path_LDNSCONFIG+:} false; then :
10358 $as_echo_n "(cached) " >&6
10359else
10360 case $LDNSCONFIG in
10361 [\\/]* | ?:[\\/]*)
10362 ac_cv_path_LDNSCONFIG="$LDNSCONFIG" # Let the user override the test with a path.
10363 ;;
10364 *)
10365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366for as_dir in $PATH
10367do
10368 IFS=$as_save_IFS
10369 test -z "$as_dir" && as_dir=.
10370 for ac_exec_ext in '' $ac_executable_extensions; do
10371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10372 ac_cv_path_LDNSCONFIG="$as_dir/$ac_word$ac_exec_ext"
10373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10374 break 2
10375 fi
10376done
10377 done
10378IFS=$as_save_IFS
10379
10380 ;;
10381esac
10382fi
10383LDNSCONFIG=$ac_cv_path_LDNSCONFIG
10384if test -n "$LDNSCONFIG"; then
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDNSCONFIG" >&5
10386$as_echo "$LDNSCONFIG" >&6; }
10387else
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10389$as_echo "no" >&6; }
10390fi
10391
10392
10393fi
10394if test -z "$ac_cv_path_LDNSCONFIG"; then
10395 ac_pt_LDNSCONFIG=$LDNSCONFIG
10396 # Extract the first word of "ldns-config", so it can be a program name with args.
10397set dummy ldns-config; ac_word=$2
10398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10399$as_echo_n "checking for $ac_word... " >&6; }
10400if ${ac_cv_path_ac_pt_LDNSCONFIG+:} false; then :
10401 $as_echo_n "(cached) " >&6
10402else
10403 case $ac_pt_LDNSCONFIG in
10404 [\\/]* | ?:[\\/]*)
10405 ac_cv_path_ac_pt_LDNSCONFIG="$ac_pt_LDNSCONFIG" # Let the user override the test with a path.
10406 ;;
10407 *)
10408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10409for as_dir in $PATH
10410do
10411 IFS=$as_save_IFS
10412 test -z "$as_dir" && as_dir=.
10413 for ac_exec_ext in '' $ac_executable_extensions; do
10414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10415 ac_cv_path_ac_pt_LDNSCONFIG="$as_dir/$ac_word$ac_exec_ext"
10416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10417 break 2
10418 fi
10419done
10420 done
10421IFS=$as_save_IFS
10422
10423 ;;
10424esac
10425fi
10426ac_pt_LDNSCONFIG=$ac_cv_path_ac_pt_LDNSCONFIG
10427if test -n "$ac_pt_LDNSCONFIG"; then
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LDNSCONFIG" >&5
10429$as_echo "$ac_pt_LDNSCONFIG" >&6; }
10430else
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10432$as_echo "no" >&6; }
10433fi
10434
10435 if test "x$ac_pt_LDNSCONFIG" = x; then
10436 LDNSCONFIG="no"
10437 else
10438 case $cross_compiling:$ac_tool_warned in
10439yes:)
10440{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10441$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10442ac_tool_warned=yes ;;
10443esac
10444 LDNSCONFIG=$ac_pt_LDNSCONFIG
10445 fi
10446else
10447 LDNSCONFIG="$ac_cv_path_LDNSCONFIG"
10448fi
10449
10450 if test "x$LDNSCONFIG" = "xno"; then
10451 LIBS="-lldns $LIBS"
10452 ldns=yes
10453 else
10454 LIBS="$LIBS `$LDNSCONFIG --libs`"
10455 CPPFLAGS="$CPPFLAGS `$LDNSCONFIG --cflags`"
10456 ldns=yes
10457 fi
10458 elif test "x$withval" != "xno" ; then
10459 CPPFLAGS="$CPPFLAGS -I${withval}/include"
10460 LDFLAGS="$LDFLAGS -L${withval}/lib"
10461 LIBS="-lldns $LIBS"
10462 ldns=yes
10463 fi
10464
10465 # Verify that it works.
10466 if test "x$ldns" = "xyes" ; then
10467
10468$as_echo "#define HAVE_LDNS 1" >>confdefs.h
10469
10470 LDNS_MSG="yes"
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns support" >&5
10472$as_echo_n "checking for ldns support... " >&6; }
10473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10474/* end confdefs.h. */
10475
10476#include <stdio.h>
10477#include <stdlib.h>
10478#ifdef HAVE_STDINT_H
10479# include <stdint.h>
10480#endif
10481#include <ldns/ldns.h>
10482int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); }
10483
10484
10485_ACEOF
10486if ac_fn_c_try_link "$LINENO"; then :
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10488$as_echo "yes" >&6; }
10489else
10490
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10492$as_echo "no" >&6; }
10493 as_fn_error $? "** Incomplete or missing ldns libraries." "$LINENO" 5
10494
10495fi
10496rm -f core conftest.err conftest.$ac_objext \
10497 conftest$ac_exeext conftest.$ac_ext
10498 fi
10499
10500fi
10501
10502
10503# Check whether user wants libedit support
10504LIBEDIT_MSG="no"
10505
10506# Check whether --with-libedit was given.
10507if test "${with_libedit+set}" = set; then :
10508 withval=$with_libedit; if test "x$withval" != "xno" ; then
10509 if test "x$withval" = "xyes" ; then
10510 if test -n "$ac_tool_prefix"; then
10511 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10512set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10514$as_echo_n "checking for $ac_word... " >&6; }
10515if ${ac_cv_path_PKGCONFIG+:} false; then :
10516 $as_echo_n "(cached) " >&6
10517else
10518 case $PKGCONFIG in
10519 [\\/]* | ?:[\\/]*)
10520 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
10521 ;;
10522 *)
10523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10524for as_dir in $PATH
10525do
10526 IFS=$as_save_IFS
10527 test -z "$as_dir" && as_dir=.
10528 for ac_exec_ext in '' $ac_executable_extensions; do
10529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10530 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
10531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10532 break 2
10533 fi
10534done
10535 done
10536IFS=$as_save_IFS
10537
10538 ;;
10539esac
10540fi
10541PKGCONFIG=$ac_cv_path_PKGCONFIG
10542if test -n "$PKGCONFIG"; then
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
10544$as_echo "$PKGCONFIG" >&6; }
10545else
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10547$as_echo "no" >&6; }
10548fi
10549
10550
10551fi
10552if test -z "$ac_cv_path_PKGCONFIG"; then
10553 ac_pt_PKGCONFIG=$PKGCONFIG
10554 # Extract the first word of "pkg-config", so it can be a program name with args.
10555set dummy pkg-config; ac_word=$2
10556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10557$as_echo_n "checking for $ac_word... " >&6; }
10558if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
10559 $as_echo_n "(cached) " >&6
10560else
10561 case $ac_pt_PKGCONFIG in
10562 [\\/]* | ?:[\\/]*)
10563 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
10564 ;;
10565 *)
10566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10567for as_dir in $PATH
10568do
10569 IFS=$as_save_IFS
10570 test -z "$as_dir" && as_dir=.
10571 for ac_exec_ext in '' $ac_executable_extensions; do
10572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10573 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
10574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10575 break 2
10576 fi
10577done
10578 done
10579IFS=$as_save_IFS
10580
10581 ;;
10582esac
10583fi
10584ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
10585if test -n "$ac_pt_PKGCONFIG"; then
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
10587$as_echo "$ac_pt_PKGCONFIG" >&6; }
10588else
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10590$as_echo "no" >&6; }
10591fi
10592
10593 if test "x$ac_pt_PKGCONFIG" = x; then
10594 PKGCONFIG="no"
10595 else
10596 case $cross_compiling:$ac_tool_warned in
10597yes:)
10598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10600ac_tool_warned=yes ;;
10601esac
10602 PKGCONFIG=$ac_pt_PKGCONFIG
10603 fi
10604else
10605 PKGCONFIG="$ac_cv_path_PKGCONFIG"
10606fi
10607
10608 if test "x$PKGCONFIG" != "xno"; then
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5
10610$as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; }
10611 if "$PKGCONFIG" libedit; then
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10613$as_echo "yes" >&6; }
10614 use_pkgconfig_for_libedit=yes
10615 else
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10617$as_echo "no" >&6; }
10618 fi
10619 fi
10620 else
10621 CPPFLAGS="$CPPFLAGS -I${withval}/include"
10622 if test -n "${rpath_opt}"; then
10623 LDFLAGS="-L${withval}/lib ${rpath_opt}${withval}/lib ${LDFLAGS}"
10624 else
10625 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
10626 fi
10627 fi
10628 if test "x$use_pkgconfig_for_libedit" = "xyes"; then
10629 LIBEDIT=`$PKGCONFIG --libs libedit`
10630 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
10631 else
10632 LIBEDIT="-ledit -lcurses"
10633 fi
10634 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5
10636$as_echo_n "checking for el_init in -ledit... " >&6; }
10637if ${ac_cv_lib_edit_el_init+:} false; then :
10638 $as_echo_n "(cached) " >&6
10639else
10640 ac_check_lib_save_LIBS=$LIBS
10641LIBS="-ledit $OTHERLIBS
10642 $LIBS"
10643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10644/* end confdefs.h. */
10645
10646/* Override any GCC internal prototype to avoid an error.
10647 Use char because int might match the return type of a GCC
10648 builtin and then its argument prototype would still apply. */
10649#ifdef __cplusplus
10650extern "C"
10651#endif
10652char el_init ();
10653int
10654main ()
10655{
10656return el_init ();
10657 ;
10658 return 0;
10659}
10660_ACEOF
10661if ac_fn_c_try_link "$LINENO"; then :
10662 ac_cv_lib_edit_el_init=yes
10663else
10664 ac_cv_lib_edit_el_init=no
10665fi
10666rm -f core conftest.err conftest.$ac_objext \
10667 conftest$ac_exeext conftest.$ac_ext
10668LIBS=$ac_check_lib_save_LIBS
10669fi
10670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5
10671$as_echo "$ac_cv_lib_edit_el_init" >&6; }
10672if test "x$ac_cv_lib_edit_el_init" = xyes; then :
10673
10674$as_echo "#define USE_LIBEDIT 1" >>confdefs.h
10675
10676 LIBEDIT_MSG="yes"
10677
10678
10679else
10680 as_fn_error $? "libedit not found" "$LINENO" 5
10681fi
10682
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5
10684$as_echo_n "checking if libedit version is compatible... " >&6; }
10685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10686/* end confdefs.h. */
10687 #include <histedit.h>
10688int
10689main ()
10690{
10691
10692 int i = H_SETSIZE;
10693 el_init("", NULL, NULL, NULL);
10694 exit(0);
10695
10696 ;
10697 return 0;
10698}
10699_ACEOF
10700if ac_fn_c_try_compile "$LINENO"; then :
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10702$as_echo "yes" >&6; }
10703else
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10705$as_echo "no" >&6; }
10706 as_fn_error $? "libedit version is not compatible" "$LINENO" 5
10707
10708fi
10709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10710 fi
10711
10712fi
10713
10714
10715AUDIT_MODULE=none
10716
10717# Check whether --with-audit was given.
10718if test "${with_audit+set}" = set; then :
10719 withval=$with_audit;
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5
10721$as_echo_n "checking for supported audit module... " >&6; }
10722 case "$withval" in
10723 bsm)
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5
10725$as_echo "bsm" >&6; }
10726 AUDIT_MODULE=bsm
10727 for ac_header in bsm/audit.h
10728do :
10729 ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" "
10730#ifdef HAVE_TIME_H
10731# include <time.h>
10732#endif
10733
10734
10735"
10736if test "x$ac_cv_header_bsm_audit_h" = xyes; then :
10737 cat >>confdefs.h <<_ACEOF
10738#define HAVE_BSM_AUDIT_H 1
10739_ACEOF
10740
10741else
10742 as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5
10743fi
10744
10745done
10746
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5
10748$as_echo_n "checking for getaudit in -lbsm... " >&6; }
10749if ${ac_cv_lib_bsm_getaudit+:} false; then :
10750 $as_echo_n "(cached) " >&6
10751else
10752 ac_check_lib_save_LIBS=$LIBS
10753LIBS="-lbsm $LIBS"
10754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755/* end confdefs.h. */
10756
10757/* Override any GCC internal prototype to avoid an error.
10758 Use char because int might match the return type of a GCC
10759 builtin and then its argument prototype would still apply. */
10760#ifdef __cplusplus
10761extern "C"
10762#endif
10763char getaudit ();
10764int
10765main ()
10766{
10767return getaudit ();
10768 ;
10769 return 0;
10770}
10771_ACEOF
10772if ac_fn_c_try_link "$LINENO"; then :
10773 ac_cv_lib_bsm_getaudit=yes
10774else
10775 ac_cv_lib_bsm_getaudit=no
10776fi
10777rm -f core conftest.err conftest.$ac_objext \
10778 conftest$ac_exeext conftest.$ac_ext
10779LIBS=$ac_check_lib_save_LIBS
10780fi
10781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5
10782$as_echo "$ac_cv_lib_bsm_getaudit" >&6; }
10783if test "x$ac_cv_lib_bsm_getaudit" = xyes; then :
10784 cat >>confdefs.h <<_ACEOF
10785#define HAVE_LIBBSM 1
10786_ACEOF
10787
10788 LIBS="-lbsm $LIBS"
10789
10790else
10791 as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5
10792fi
10793
10794 for ac_func in getaudit
10795do :
10796 ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit"
10797if test "x$ac_cv_func_getaudit" = xyes; then :
10798 cat >>confdefs.h <<_ACEOF
10799#define HAVE_GETAUDIT 1
10800_ACEOF
10801
10802else
10803 as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5
10804fi
10805done
10806
10807 # These are optional
10808 for ac_func in getaudit_addr aug_get_machine
10809do :
10810 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10811ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10812if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10813 cat >>confdefs.h <<_ACEOF
10814#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10815_ACEOF
10816
10817fi
10818done
10819
10820
10821$as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h
10822
10823 if test "$sol2ver" -ge 11; then
10824 SSHDLIBS="$SSHDLIBS -lscf"
10825
10826$as_echo "#define BROKEN_BSM_API 1" >>confdefs.h
10827
10828 fi
10829 ;;
10830 linux)
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5
10832$as_echo "linux" >&6; }
10833 AUDIT_MODULE=linux
10834 for ac_header in libaudit.h
10835do :
10836 ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
10837if test "x$ac_cv_header_libaudit_h" = xyes; then :
10838 cat >>confdefs.h <<_ACEOF
10839#define HAVE_LIBAUDIT_H 1
10840_ACEOF
10841
10842fi
10843
10844done
10845
10846 SSHDLIBS="$SSHDLIBS -laudit"
10847
10848$as_echo "#define USE_LINUX_AUDIT 1" >>confdefs.h
10849
10850 ;;
10851 debug)
10852 AUDIT_MODULE=debug
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
10854$as_echo "debug" >&6; }
10855
10856$as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h
10857
10858 ;;
10859 no)
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10861$as_echo "no" >&6; }
10862 ;;
10863 *)
10864 as_fn_error $? "Unknown audit module $withval" "$LINENO" 5
10865 ;;
10866 esac
10867
10868fi
10869
10870
10871
10872# Check whether --with-pie was given.
10873if test "${with_pie+set}" = set; then :
10874 withval=$with_pie;
10875 if test "x$withval" = "xno"; then
10876 use_pie=no
10877 fi
10878 if test "x$withval" = "xyes"; then
10879 use_pie=yes
10880 fi
10881
10882
10883fi
10884
10885if test "x$use_pie" = "x"; then
10886 use_pie=no
10887fi
10888if test "x$use_toolchain_hardening" != "x1" && test "x$use_pie" = "xauto"; then
10889 # Turn off automatic PIE when toolchain hardening is off.
10890 use_pie=no
10891fi
10892if test "x$use_pie" = "xauto"; then
10893 # Automatic PIE requires gcc >= 4.x
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.x" >&5
10895$as_echo_n "checking for gcc >= 4.x... " >&6; }
10896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10897/* end confdefs.h. */
10898
10899#if !defined(__GNUC__) || __GNUC__ < 4
10900#error gcc is too old
10901#endif
10902
10903_ACEOF
10904if ac_fn_c_try_compile "$LINENO"; then :
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10906$as_echo "yes" >&6; }
10907else
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10909$as_echo "no" >&6; }
10910 use_pie=no
10911
10912fi
10913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10914fi
10915if test "x$use_pie" != "xno"; then
10916 SAVED_CFLAGS="$CFLAGS"
10917 SAVED_LDFLAGS="$LDFLAGS"
10918 {
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fPIE" >&5
10920$as_echo_n "checking if $CC supports compile flag -fPIE... " >&6; }
10921 saved_CFLAGS="$CFLAGS"
10922 CFLAGS="$CFLAGS $WERROR -fPIE"
10923 _define_flag=""
10924 test "x$_define_flag" = "x" && _define_flag="-fPIE"
10925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10926/* end confdefs.h. */
10927
10928#include <stdlib.h>
10929#include <stdio.h>
10930int main(int argc, char **argv) {
10931 /* Some math to catch -ftrapv problems in the toolchain */
10932 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
10933 float l = i * 2.1;
10934 double m = l / 0.5;
10935 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
10936 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
10937 exit(0);
10938}
10939
10940_ACEOF
10941if ac_fn_c_try_compile "$LINENO"; then :
10942
10943if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
10944then
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10946$as_echo "no" >&6; }
10947 CFLAGS="$saved_CFLAGS"
10948else
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10950$as_echo "yes" >&6; }
10951 CFLAGS="$saved_CFLAGS $_define_flag"
10952fi
10953else
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10955$as_echo "no" >&6; }
10956 CFLAGS="$saved_CFLAGS"
10957
10958fi
10959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10960}
10961 {
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -pie" >&5
10963$as_echo_n "checking if $LD supports link flag -pie... " >&6; }
10964 saved_LDFLAGS="$LDFLAGS"
10965 LDFLAGS="$LDFLAGS $WERROR -pie"
10966 _define_flag=""
10967 test "x$_define_flag" = "x" && _define_flag="-pie"
10968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10969/* end confdefs.h. */
10970
10971#include <stdlib.h>
10972#include <stdio.h>
10973int main(int argc, char **argv) {
10974 /* Some math to catch -ftrapv problems in the toolchain */
10975 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
10976 float l = i * 2.1;
10977 double m = l / 0.5;
10978 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
10979 long long p = n * o;
10980 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
10981 exit(0);
10982}
10983
10984_ACEOF
10985if ac_fn_c_try_link "$LINENO"; then :
10986
10987if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
10988then
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10990$as_echo "no" >&6; }
10991 LDFLAGS="$saved_LDFLAGS"
10992else
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10994$as_echo "yes" >&6; }
10995 LDFLAGS="$saved_LDFLAGS $_define_flag"
10996fi
10997else
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10999$as_echo "no" >&6; }
11000 LDFLAGS="$saved_LDFLAGS"
11001
11002fi
11003rm -f core conftest.err conftest.$ac_objext \
11004 conftest$ac_exeext conftest.$ac_ext
11005}
11006 # We use both -fPIE and -pie or neither.
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether both -fPIE and -pie are supported" >&5
11008$as_echo_n "checking whether both -fPIE and -pie are supported... " >&6; }
11009 if echo "x $CFLAGS" | grep ' -fPIE' >/dev/null 2>&1 && \
11010 echo "x $LDFLAGS" | grep ' -pie' >/dev/null 2>&1 ; then
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11012$as_echo "yes" >&6; }
11013 else
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11015$as_echo "no" >&6; }
11016 CFLAGS="$SAVED_CFLAGS"
11017 LDFLAGS="$SAVED_LDFLAGS"
11018 fi
11019fi
11020
11021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is accepted" >&5
11022$as_echo_n "checking whether -fPIC is accepted... " >&6; }
11023SAVED_CFLAGS="$CFLAGS"
11024CFLAGS="$CFLAGS -fPIC"
11025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11026/* end confdefs.h. */
11027 #include <stdlib.h>
11028int
11029main ()
11030{
11031 exit(0);
11032 ;
11033 return 0;
11034}
11035_ACEOF
11036if ac_fn_c_try_compile "$LINENO"; then :
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11038$as_echo "yes" >&6; }
11039 PICFLAG="-fPIC";
11040else
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11042$as_echo "no" >&6; }
11043 PICFLAG="";
11044fi
11045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11046CFLAGS="$SAVED_CFLAGS"
11047
11048
11049for ac_func in \
11050 Blowfish_initstate \
11051 Blowfish_expandstate \
11052 Blowfish_expand0state \
11053 Blowfish_stream2word \
11054 SHA256Update \
11055 SHA384Update \
11056 SHA512Update \
11057 asprintf \
11058 b64_ntop \
11059 __b64_ntop \
11060 b64_pton \
11061 __b64_pton \
11062 bcopy \
11063 bcrypt_pbkdf \
11064 bindresvport_sa \
11065 blf_enc \
11066 bzero \
11067 cap_rights_limit \
11068 clock \
11069 closefrom \
11070 dirfd \
11071 endgrent \
11072 err \
11073 errx \
11074 explicit_bzero \
11075 fchmod \
11076 fchmodat \
11077 fchown \
11078 fchownat \
11079 flock \
11080 fnmatch \
11081 freeaddrinfo \
11082 freezero \
11083 fstatfs \
11084 fstatvfs \
11085 futimes \
11086 getaddrinfo \
11087 getcwd \
11088 getgrouplist \
11089 getline \
11090 getnameinfo \
11091 getopt \
11092 getpagesize \
11093 getpeereid \
11094 getpeerucred \
11095 getpgid \
11096 _getpty \
11097 getrlimit \
11098 getrandom \
11099 getsid \
11100 getttyent \
11101 glob \
11102 group_from_gid \
11103 inet_aton \
11104 inet_ntoa \
11105 inet_ntop \
11106 innetgr \
11107 llabs \
11108 localtime_r \
11109 login_getcapbool \
11110 md5_crypt \
11111 memmem \
11112 memmove \
11113 memset_s \
11114 mkdtemp \
11115 ngetaddrinfo \
11116 nsleep \
11117 ogetaddrinfo \
11118 openlog_r \
11119 pledge \
11120 poll \
11121 prctl \
11122 pstat \
11123 raise \
11124 readpassphrase \
11125 reallocarray \
11126 realpath \
11127 recvmsg \
11128 recallocarray \
11129 rresvport_af \
11130 sendmsg \
11131 setdtablesize \
11132 setegid \
11133 setenv \
11134 seteuid \
11135 setgroupent \
11136 setgroups \
11137 setlinebuf \
11138 setlogin \
11139 setpassent\
11140 setpcred \
11141 setproctitle \
11142 setregid \
11143 setreuid \
11144 setrlimit \
11145 setsid \
11146 setvbuf \
11147 sigaction \
11148 sigvec \
11149 snprintf \
11150 socketpair \
11151 statfs \
11152 statvfs \
11153 strcasestr \
11154 strdup \
11155 strerror \
11156 strlcat \
11157 strlcpy \
11158 strmode \
11159 strndup \
11160 strnlen \
11161 strnvis \
11162 strptime \
11163 strsignal \
11164 strtonum \
11165 strtoll \
11166 strtoul \
11167 strtoull \
11168 swap32 \
11169 sysconf \
11170 tcgetpgrp \
11171 timingsafe_bcmp \
11172 truncate \
11173 unsetenv \
11174 updwtmpx \
11175 utimensat \
11176 user_from_uid \
11177 usleep \
11178 vasprintf \
11179 vsnprintf \
11180 waitpid \
11181 warn \
11182
11183do :
11184 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11185ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11186if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11187 cat >>confdefs.h <<_ACEOF
11188#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11189_ACEOF
11190
11191fi
11192done
11193
11194
11195ac_fn_c_check_decl "$LINENO" "bzero" "ac_cv_have_decl_bzero" "$ac_includes_default"
11196if test "x$ac_cv_have_decl_bzero" = xyes; then :
11197 ac_have_decl=1
11198else
11199 ac_have_decl=0
11200fi
11201
11202cat >>confdefs.h <<_ACEOF
11203#define HAVE_DECL_BZERO $ac_have_decl
11204_ACEOF
11205ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
11206if test "x$ac_cv_have_decl_memmem" = xyes; then :
11207 ac_have_decl=1
11208else
11209 ac_have_decl=0
11210fi
11211
11212cat >>confdefs.h <<_ACEOF
11213#define HAVE_DECL_MEMMEM $ac_have_decl
11214_ACEOF
11215
11216
11217for ac_func in mblen mbtowc nl_langinfo wcwidth
11218do :
11219 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11220ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11221if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11222 cat >>confdefs.h <<_ACEOF
11223#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11224_ACEOF
11225
11226fi
11227done
11228
11229
11230TEST_SSH_UTF8=${TEST_SSH_UTF8:=yes}
11231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8 locale support" >&5
11232$as_echo_n "checking for utf8 locale support... " >&6; }
11233if test "$cross_compiling" = yes; then :
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
11235$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
11236
11237else
11238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11239/* end confdefs.h. */
11240
11241#include <locale.h>
11242#include <stdlib.h>
11243
11244int
11245main ()
11246{
11247
11248 char *loc = setlocale(LC_CTYPE, "en_US.UTF-8");
11249 if (loc != NULL)
11250 exit(0);
11251 exit(1);
11252
11253 ;
11254 return 0;
11255}
11256_ACEOF
11257if ac_fn_c_try_run "$LINENO"; then :
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11259$as_echo "yes" >&6; }
11260else
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11262$as_echo "no" >&6; }
11263 TEST_SSH_UTF8=no
11264fi
11265rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11266 conftest.$ac_objext conftest.beam conftest.$ac_ext
11267fi
11268
11269
11270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11271/* end confdefs.h. */
11272 #include <ctype.h>
11273int
11274main ()
11275{
11276 return (isblank('a'));
11277 ;
11278 return 0;
11279}
11280_ACEOF
11281if ac_fn_c_try_link "$LINENO"; then :
11282
11283$as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
11284
11285
11286fi
11287rm -f core conftest.err conftest.$ac_objext \
11288 conftest$ac_exeext conftest.$ac_ext
11289
11290disable_pkcs11=
11291# Check whether --enable-pkcs11 was given.
11292if test "${enable_pkcs11+set}" = set; then :
11293 enableval=$enable_pkcs11;
11294 if test "x$enableval" = "xno" ; then
11295 disable_pkcs11=1
11296 fi
11297
11298
11299fi
11300
11301
11302disable_sk=
11303# Check whether --enable-security-key was given.
11304if test "${enable_security_key+set}" = set; then :
11305 enableval=$enable_security_key;
11306 if test "x$enableval" = "xno" ; then
11307 disable_sk=1
11308 fi
11309
11310
11311fi
11312
11313enable_sk_internal=
11314
11315# Check whether --with-security-key-builtin was given.
11316if test "${with_security_key_builtin+set}" = set; then :
11317 withval=$with_security_key_builtin;
11318 if test "x$withval" != "xno" ; then
11319 enable_sk_internal=yes
11320 fi
11321
11322
11323fi
11324
11325test "x$disable_sk" != "x" && enable_sk_internal=""
11326
11327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11328$as_echo_n "checking for library containing dlopen... " >&6; }
11329if ${ac_cv_search_dlopen+:} false; then :
11330 $as_echo_n "(cached) " >&6
11331else
11332 ac_func_search_save_LIBS=$LIBS
11333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11334/* end confdefs.h. */
11335
11336/* Override any GCC internal prototype to avoid an error.
11337 Use char because int might match the return type of a GCC
11338 builtin and then its argument prototype would still apply. */
11339#ifdef __cplusplus
11340extern "C"
11341#endif
11342char dlopen ();
11343int
11344main ()
11345{
11346return dlopen ();
11347 ;
11348 return 0;
11349}
11350_ACEOF
11351for ac_lib in '' dl; do
11352 if test -z "$ac_lib"; then
11353 ac_res="none required"
11354 else
11355 ac_res=-l$ac_lib
11356 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11357 fi
11358 if ac_fn_c_try_link "$LINENO"; then :
11359 ac_cv_search_dlopen=$ac_res
11360fi
11361rm -f core conftest.err conftest.$ac_objext \
11362 conftest$ac_exeext
11363 if ${ac_cv_search_dlopen+:} false; then :
11364 break
11365fi
11366done
11367if ${ac_cv_search_dlopen+:} false; then :
11368
11369else
11370 ac_cv_search_dlopen=no
11371fi
11372rm conftest.$ac_ext
11373LIBS=$ac_func_search_save_LIBS
11374fi
11375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11376$as_echo "$ac_cv_search_dlopen" >&6; }
11377ac_res=$ac_cv_search_dlopen
11378if test "$ac_res" != no; then :
11379 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11380
11381fi
11382
11383for ac_func in dlopen
11384do :
11385 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11386if test "x$ac_cv_func_dlopen" = xyes; then :
11387 cat >>confdefs.h <<_ACEOF
11388#define HAVE_DLOPEN 1
11389_ACEOF
11390
11391fi
11392done
11393
11394ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h>
11395"
11396if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then :
11397
11398fi
11399
11400
11401# IRIX has a const char return value for gai_strerror()
11402for ac_func in gai_strerror
11403do :
11404 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
11405if test "x$ac_cv_func_gai_strerror" = xyes; then :
11406 cat >>confdefs.h <<_ACEOF
11407#define HAVE_GAI_STRERROR 1
11408_ACEOF
11409
11410 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
11411
11412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11413/* end confdefs.h. */
11414
11415#include <sys/types.h>
11416#include <sys/socket.h>
11417#include <netdb.h>
11418
11419const char *gai_strerror(int);
11420
11421int
11422main ()
11423{
11424
11425 char *str;
11426 str = gai_strerror(0);
11427
11428 ;
11429 return 0;
11430}
11431_ACEOF
11432if ac_fn_c_try_compile "$LINENO"; then :
11433
11434
11435$as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h
11436
11437fi
11438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11439fi
11440done
11441
11442
11443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
11444$as_echo_n "checking for library containing nanosleep... " >&6; }
11445if ${ac_cv_search_nanosleep+:} false; then :
11446 $as_echo_n "(cached) " >&6
11447else
11448 ac_func_search_save_LIBS=$LIBS
11449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11450/* end confdefs.h. */
11451
11452/* Override any GCC internal prototype to avoid an error.
11453 Use char because int might match the return type of a GCC
11454 builtin and then its argument prototype would still apply. */
11455#ifdef __cplusplus
11456extern "C"
11457#endif
11458char nanosleep ();
11459int
11460main ()
11461{
11462return nanosleep ();
11463 ;
11464 return 0;
11465}
11466_ACEOF
11467for ac_lib in '' rt posix4; do
11468 if test -z "$ac_lib"; then
11469 ac_res="none required"
11470 else
11471 ac_res=-l$ac_lib
11472 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11473 fi
11474 if ac_fn_c_try_link "$LINENO"; then :
11475 ac_cv_search_nanosleep=$ac_res
11476fi
11477rm -f core conftest.err conftest.$ac_objext \
11478 conftest$ac_exeext
11479 if ${ac_cv_search_nanosleep+:} false; then :
11480 break
11481fi
11482done
11483if ${ac_cv_search_nanosleep+:} false; then :
11484
11485else
11486 ac_cv_search_nanosleep=no
11487fi
11488rm conftest.$ac_ext
11489LIBS=$ac_func_search_save_LIBS
11490fi
11491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
11492$as_echo "$ac_cv_search_nanosleep" >&6; }
11493ac_res=$ac_cv_search_nanosleep
11494if test "$ac_res" != no; then :
11495 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11496
11497$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
11498
11499fi
11500
11501
11502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
11503$as_echo_n "checking for library containing clock_gettime... " >&6; }
11504if ${ac_cv_search_clock_gettime+:} false; then :
11505 $as_echo_n "(cached) " >&6
11506else
11507 ac_func_search_save_LIBS=$LIBS
11508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11509/* end confdefs.h. */
11510
11511/* Override any GCC internal prototype to avoid an error.
11512 Use char because int might match the return type of a GCC
11513 builtin and then its argument prototype would still apply. */
11514#ifdef __cplusplus
11515extern "C"
11516#endif
11517char clock_gettime ();
11518int
11519main ()
11520{
11521return clock_gettime ();
11522 ;
11523 return 0;
11524}
11525_ACEOF
11526for ac_lib in '' rt; do
11527 if test -z "$ac_lib"; then
11528 ac_res="none required"
11529 else
11530 ac_res=-l$ac_lib
11531 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11532 fi
11533 if ac_fn_c_try_link "$LINENO"; then :
11534 ac_cv_search_clock_gettime=$ac_res
11535fi
11536rm -f core conftest.err conftest.$ac_objext \
11537 conftest$ac_exeext
11538 if ${ac_cv_search_clock_gettime+:} false; then :
11539 break
11540fi
11541done
11542if ${ac_cv_search_clock_gettime+:} false; then :
11543
11544else
11545 ac_cv_search_clock_gettime=no
11546fi
11547rm conftest.$ac_ext
11548LIBS=$ac_func_search_save_LIBS
11549fi
11550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
11551$as_echo "$ac_cv_search_clock_gettime" >&6; }
11552ac_res=$ac_cv_search_clock_gettime
11553if test "$ac_res" != no; then :
11554 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11555
11556$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
11557
11558fi
11559
11560
11561ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "
11562#ifdef HAVE_STRING_H
11563# include <string.h>
11564#endif
11565
11566"
11567if test "x$ac_cv_have_decl_strsep" = xyes; then :
11568 for ac_func in strsep
11569do :
11570 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
11571if test "x$ac_cv_func_strsep" = xyes; then :
11572 cat >>confdefs.h <<_ACEOF
11573#define HAVE_STRSEP 1
11574_ACEOF
11575
11576fi
11577done
11578
11579fi
11580
11581
11582ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h>
11583
11584"
11585if test "x$ac_cv_have_decl_tcsendbreak" = xyes; then :
11586 $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h
11587
11588else
11589 for ac_func in tcsendbreak
11590do :
11591 ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak"
11592if test "x$ac_cv_func_tcsendbreak" = xyes; then :
11593 cat >>confdefs.h <<_ACEOF
11594#define HAVE_TCSENDBREAK 1
11595_ACEOF
11596
11597fi
11598done
11599
11600fi
11601
11602
11603ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h>
11604"
11605if test "x$ac_cv_have_decl_h_errno" = xyes; then :
11606 ac_have_decl=1
11607else
11608 ac_have_decl=0
11609fi
11610
11611cat >>confdefs.h <<_ACEOF
11612#define HAVE_DECL_H_ERRNO $ac_have_decl
11613_ACEOF
11614
11615
11616ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" "
11617#include <sys/types.h>
11618#include <sys/socket.h>
11619
11620"
11621if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then :
11622 ac_have_decl=1
11623else
11624 ac_have_decl=0
11625fi
11626
11627cat >>confdefs.h <<_ACEOF
11628#define HAVE_DECL_SHUT_RD $ac_have_decl
11629_ACEOF
11630
11631
11632ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "
11633#include <sys/types.h>
11634#ifdef HAVE_SYS_STAT_H
11635# include <sys/stat.h>
11636#endif
11637#ifdef HAVE_FCNTL_H
11638# include <fcntl.h>
11639#endif
11640
11641"
11642if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
11643 ac_have_decl=1
11644else
11645 ac_have_decl=0
11646fi
11647
11648cat >>confdefs.h <<_ACEOF
11649#define HAVE_DECL_O_NONBLOCK $ac_have_decl
11650_ACEOF
11651
11652
11653ac_fn_c_check_decl "$LINENO" "readv" "ac_cv_have_decl_readv" "
11654#include <sys/types.h>
11655#include <sys/uio.h>
11656#include <unistd.h>
11657
11658"
11659if test "x$ac_cv_have_decl_readv" = xyes; then :
11660 ac_have_decl=1
11661else
11662 ac_have_decl=0
11663fi
11664
11665cat >>confdefs.h <<_ACEOF
11666#define HAVE_DECL_READV $ac_have_decl
11667_ACEOF
11668ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" "
11669#include <sys/types.h>
11670#include <sys/uio.h>
11671#include <unistd.h>
11672
11673"
11674if test "x$ac_cv_have_decl_writev" = xyes; then :
11675 ac_have_decl=1
11676else
11677 ac_have_decl=0
11678fi
11679
11680cat >>confdefs.h <<_ACEOF
11681#define HAVE_DECL_WRITEV $ac_have_decl
11682_ACEOF
11683
11684
11685ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" "
11686#include <sys/param.h>
11687
11688"
11689if test "x$ac_cv_have_decl_MAXSYMLINKS" = xyes; then :
11690 ac_have_decl=1
11691else
11692 ac_have_decl=0
11693fi
11694
11695cat >>confdefs.h <<_ACEOF
11696#define HAVE_DECL_MAXSYMLINKS $ac_have_decl
11697_ACEOF
11698
11699
11700ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" "
11701#include <stddef.h>
11702
11703"
11704if test "x$ac_cv_have_decl_offsetof" = xyes; then :
11705 ac_have_decl=1
11706else
11707 ac_have_decl=0
11708fi
11709
11710cat >>confdefs.h <<_ACEOF
11711#define HAVE_DECL_OFFSETOF $ac_have_decl
11712_ACEOF
11713
11714
11715# extra bits for select(2)
11716ac_fn_c_check_decl "$LINENO" "howmany" "ac_cv_have_decl_howmany" "
11717#include <sys/param.h>
11718#include <sys/types.h>
11719#ifdef HAVE_SYS_SYSMACROS_H
11720#include <sys/sysmacros.h>
11721#endif
11722#ifdef HAVE_SYS_SELECT_H
11723#include <sys/select.h>
11724#endif
11725#ifdef HAVE_SYS_TIME_H
11726#include <sys/time.h>
11727#endif
11728#ifdef HAVE_UNISTD_H
11729#include <unistd.h>
11730#endif
11731
11732"
11733if test "x$ac_cv_have_decl_howmany" = xyes; then :
11734 ac_have_decl=1
11735else
11736 ac_have_decl=0
11737fi
11738
11739cat >>confdefs.h <<_ACEOF
11740#define HAVE_DECL_HOWMANY $ac_have_decl
11741_ACEOF
11742ac_fn_c_check_decl "$LINENO" "NFDBITS" "ac_cv_have_decl_NFDBITS" "
11743#include <sys/param.h>
11744#include <sys/types.h>
11745#ifdef HAVE_SYS_SYSMACROS_H
11746#include <sys/sysmacros.h>
11747#endif
11748#ifdef HAVE_SYS_SELECT_H
11749#include <sys/select.h>
11750#endif
11751#ifdef HAVE_SYS_TIME_H
11752#include <sys/time.h>
11753#endif
11754#ifdef HAVE_UNISTD_H
11755#include <unistd.h>
11756#endif
11757
11758"
11759if test "x$ac_cv_have_decl_NFDBITS" = xyes; then :
11760 ac_have_decl=1
11761else
11762 ac_have_decl=0
11763fi
11764
11765cat >>confdefs.h <<_ACEOF
11766#define HAVE_DECL_NFDBITS $ac_have_decl
11767_ACEOF
11768
11769ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "
11770#include <sys/param.h>
11771#include <sys/types.h>
11772#ifdef HAVE_SYS_SELECT_H
11773#include <sys/select.h>
11774#endif
11775#ifdef HAVE_SYS_TIME_H
11776#include <sys/time.h>
11777#endif
11778#ifdef HAVE_UNISTD_H
11779#include <unistd.h>
11780#endif
11781
11782"
11783if test "x$ac_cv_type_fd_mask" = xyes; then :
11784
11785cat >>confdefs.h <<_ACEOF
11786#define HAVE_FD_MASK 1
11787_ACEOF
11788
11789
11790fi
11791
11792
11793for ac_func in setresuid
11794do :
11795 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
11796if test "x$ac_cv_func_setresuid" = xyes; then :
11797 cat >>confdefs.h <<_ACEOF
11798#define HAVE_SETRESUID 1
11799_ACEOF
11800
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5
11802$as_echo_n "checking if setresuid seems to work... " >&6; }
11803 if test "$cross_compiling" = yes; then :
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
11805$as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
11806
11807else
11808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11809/* end confdefs.h. */
11810
11811#include <stdlib.h>
11812#include <errno.h>
11813
11814int
11815main ()
11816{
11817
11818 errno=0;
11819 setresuid(0,0,0);
11820 if (errno==ENOSYS)
11821 exit(1);
11822 else
11823 exit(0);
11824
11825 ;
11826 return 0;
11827}
11828_ACEOF
11829if ac_fn_c_try_run "$LINENO"; then :
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11831$as_echo "yes" >&6; }
11832else
11833
11834$as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h
11835
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
11837$as_echo "not implemented" >&6; }
11838fi
11839rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11840 conftest.$ac_objext conftest.beam conftest.$ac_ext
11841fi
11842
11843
11844fi
11845done
11846
11847
11848for ac_func in setresgid
11849do :
11850 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
11851if test "x$ac_cv_func_setresgid" = xyes; then :
11852 cat >>confdefs.h <<_ACEOF
11853#define HAVE_SETRESGID 1
11854_ACEOF
11855
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5
11857$as_echo_n "checking if setresgid seems to work... " >&6; }
11858 if test "$cross_compiling" = yes; then :
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
11860$as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
11861
11862else
11863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11864/* end confdefs.h. */
11865
11866#include <stdlib.h>
11867#include <errno.h>
11868
11869int
11870main ()
11871{
11872
11873 errno=0;
11874 setresgid(0,0,0);
11875 if (errno==ENOSYS)
11876 exit(1);
11877 else
11878 exit(0);
11879
11880 ;
11881 return 0;
11882}
11883_ACEOF
11884if ac_fn_c_try_run "$LINENO"; then :
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11886$as_echo "yes" >&6; }
11887else
11888
11889$as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h
11890
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
11892$as_echo "not implemented" >&6; }
11893fi
11894rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11895 conftest.$ac_objext conftest.beam conftest.$ac_ext
11896fi
11897
11898
11899fi
11900done
11901
11902
11903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fflush(NULL)" >&5
11904$as_echo_n "checking for working fflush(NULL)... " >&6; }
11905if test "$cross_compiling" = yes; then :
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming working" >&5
11907$as_echo "$as_me: WARNING: cross compiling: assuming working" >&2;}
11908
11909else
11910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11911/* end confdefs.h. */
11912#include <stdio.h>
11913int
11914main ()
11915{
11916fflush(NULL); exit(0);
11917 ;
11918 return 0;
11919}
11920_ACEOF
11921if ac_fn_c_try_run "$LINENO"; then :
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11923$as_echo "yes" >&6; }
11924else
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11926$as_echo "no" >&6; }
11927
11928$as_echo "#define FFLUSH_NULL_BUG 1" >>confdefs.h
11929
11930fi
11931rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11932 conftest.$ac_objext conftest.beam conftest.$ac_ext
11933fi
11934
11935
11936for ac_func in gettimeofday time
11937do :
11938 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11939ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11940if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11941 cat >>confdefs.h <<_ACEOF
11942#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11943_ACEOF
11944
11945fi
11946done
11947
11948for ac_func in endutent getutent getutid getutline pututline setutent
11949do :
11950 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11951ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11952if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11953 cat >>confdefs.h <<_ACEOF
11954#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11955_ACEOF
11956
11957fi
11958done
11959
11960for ac_func in utmpname
11961do :
11962 ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname"
11963if test "x$ac_cv_func_utmpname" = xyes; then :
11964 cat >>confdefs.h <<_ACEOF
11965#define HAVE_UTMPNAME 1
11966_ACEOF
11967
11968fi
11969done
11970
11971for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline
11972do :
11973 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11974ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11975if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11976 cat >>confdefs.h <<_ACEOF
11977#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11978_ACEOF
11979
11980fi
11981done
11982
11983for ac_func in setutxdb setutxent utmpxname
11984do :
11985 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11986ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11987if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11988 cat >>confdefs.h <<_ACEOF
11989#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11990_ACEOF
11991
11992fi
11993done
11994
11995for ac_func in getlastlogxbyname
11996do :
11997 ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname"
11998if test "x$ac_cv_func_getlastlogxbyname" = xyes; then :
11999 cat >>confdefs.h <<_ACEOF
12000#define HAVE_GETLASTLOGXBYNAME 1
12001_ACEOF
12002
12003fi
12004done
12005
12006
12007ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
12008if test "x$ac_cv_func_daemon" = xyes; then :
12009
12010$as_echo "#define HAVE_DAEMON 1" >>confdefs.h
12011
12012else
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5
12014$as_echo_n "checking for daemon in -lbsd... " >&6; }
12015if ${ac_cv_lib_bsd_daemon+:} false; then :
12016 $as_echo_n "(cached) " >&6
12017else
12018 ac_check_lib_save_LIBS=$LIBS
12019LIBS="-lbsd $LIBS"
12020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12021/* end confdefs.h. */
12022
12023/* Override any GCC internal prototype to avoid an error.
12024 Use char because int might match the return type of a GCC
12025 builtin and then its argument prototype would still apply. */
12026#ifdef __cplusplus
12027extern "C"
12028#endif
12029char daemon ();
12030int
12031main ()
12032{
12033return daemon ();
12034 ;
12035 return 0;
12036}
12037_ACEOF
12038if ac_fn_c_try_link "$LINENO"; then :
12039 ac_cv_lib_bsd_daemon=yes
12040else
12041 ac_cv_lib_bsd_daemon=no
12042fi
12043rm -f core conftest.err conftest.$ac_objext \
12044 conftest$ac_exeext conftest.$ac_ext
12045LIBS=$ac_check_lib_save_LIBS
12046fi
12047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5
12048$as_echo "$ac_cv_lib_bsd_daemon" >&6; }
12049if test "x$ac_cv_lib_bsd_daemon" = xyes; then :
12050 LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
12051
12052fi
12053
12054
12055fi
12056
12057
12058ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12059if test "x$ac_cv_func_getpagesize" = xyes; then :
12060
12061$as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
12062
12063else
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5
12065$as_echo_n "checking for getpagesize in -lucb... " >&6; }
12066if ${ac_cv_lib_ucb_getpagesize+:} false; then :
12067 $as_echo_n "(cached) " >&6
12068else
12069 ac_check_lib_save_LIBS=$LIBS
12070LIBS="-lucb $LIBS"
12071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12072/* end confdefs.h. */
12073
12074/* Override any GCC internal prototype to avoid an error.
12075 Use char because int might match the return type of a GCC
12076 builtin and then its argument prototype would still apply. */
12077#ifdef __cplusplus
12078extern "C"
12079#endif
12080char getpagesize ();
12081int
12082main ()
12083{
12084return getpagesize ();
12085 ;
12086 return 0;
12087}
12088_ACEOF
12089if ac_fn_c_try_link "$LINENO"; then :
12090 ac_cv_lib_ucb_getpagesize=yes
12091else
12092 ac_cv_lib_ucb_getpagesize=no
12093fi
12094rm -f core conftest.err conftest.$ac_objext \
12095 conftest$ac_exeext conftest.$ac_ext
12096LIBS=$ac_check_lib_save_LIBS
12097fi
12098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5
12099$as_echo "$ac_cv_lib_ucb_getpagesize" >&6; }
12100if test "x$ac_cv_lib_ucb_getpagesize" = xyes; then :
12101 LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
12102
12103fi
12104
12105
12106fi
12107
12108
12109# Check for broken snprintf
12110if test "x$ac_cv_func_snprintf" = "xyes" ; then
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5
12112$as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; }
12113 if test "$cross_compiling" = yes; then :
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
12115$as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
12116
12117else
12118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119/* end confdefs.h. */
12120 #include <stdio.h>
12121int
12122main ()
12123{
12124
12125 char b[5];
12126 snprintf(b,5,"123456789");
12127 exit(b[4]!='\0');
12128
12129 ;
12130 return 0;
12131}
12132_ACEOF
12133if ac_fn_c_try_run "$LINENO"; then :
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12135$as_echo "yes" >&6; }
12136else
12137
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12139$as_echo "no" >&6; }
12140
12141$as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
12142
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
12144$as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
12145
12146fi
12147rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12148 conftest.$ac_objext conftest.beam conftest.$ac_ext
12149fi
12150
12151fi
12152
12153if test "x$ac_cv_func_snprintf" = "xyes" ; then
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf understands %zu" >&5
12155$as_echo_n "checking whether snprintf understands %zu... " >&6; }
12156 if test "$cross_compiling" = yes; then :
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
12158$as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
12159
12160else
12161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162/* end confdefs.h. */
12163
12164#include <sys/types.h>
12165#include <stdio.h>
12166
12167int
12168main ()
12169{
12170
12171 size_t a = 1, b = 2;
12172 char z[128];
12173 snprintf(z, sizeof z, "%zu%zu", a, b);
12174 exit(strcmp(z, "12"));
12175
12176 ;
12177 return 0;
12178}
12179_ACEOF
12180if ac_fn_c_try_run "$LINENO"; then :
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12182$as_echo "yes" >&6; }
12183else
12184
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12186$as_echo "no" >&6; }
12187
12188$as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
12189
12190
12191fi
12192rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12193 conftest.$ac_objext conftest.beam conftest.$ac_ext
12194fi
12195
12196fi
12197
12198# We depend on vsnprintf returning the right thing on overflow: the
12199# number of characters it tried to create (as per SUSv3)
12200if test "x$ac_cv_func_vsnprintf" = "xyes" ; then
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5
12202$as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; }
12203 if test "$cross_compiling" = yes; then :
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5
12205$as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
12206
12207else
12208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12209/* end confdefs.h. */
12210
12211#include <sys/types.h>
12212#include <stdio.h>
12213#include <stdarg.h>
12214
12215int x_snprintf(char *str, size_t count, const char *fmt, ...)
12216{
12217 size_t ret;
12218 va_list ap;
12219
12220 va_start(ap, fmt);
12221 ret = vsnprintf(str, count, fmt, ap);
12222 va_end(ap);
12223 return ret;
12224}
12225
12226int
12227main ()
12228{
12229
12230char x[1];
12231if (x_snprintf(x, 1, "%s %d", "hello", 12345) != 11)
12232 return 1;
12233if (x_snprintf(NULL, 0, "%s %d", "hello", 12345) != 11)
12234 return 1;
12235return 0;
12236
12237 ;
12238 return 0;
12239}
12240_ACEOF
12241if ac_fn_c_try_run "$LINENO"; then :
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12243$as_echo "yes" >&6; }
12244else
12245
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12247$as_echo "no" >&6; }
12248
12249$as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
12250
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
12252$as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
12253
12254fi
12255rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12256 conftest.$ac_objext conftest.beam conftest.$ac_ext
12257fi
12258
12259fi
12260
12261# On systems where [v]snprintf is broken, but is declared in stdio,
12262# check that the fmt argument is const char * or just char *.
12263# This is only useful for when BROKEN_SNPRINTF
12264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5
12265$as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; }
12266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12267/* end confdefs.h. */
12268
12269#include <stdio.h>
12270int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
12271
12272int
12273main ()
12274{
12275
12276 snprintf(0, 0, 0);
12277
12278 ;
12279 return 0;
12280}
12281_ACEOF
12282if ac_fn_c_try_compile "$LINENO"; then :
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12284$as_echo "yes" >&6; }
12285
12286$as_echo "#define SNPRINTF_CONST const" >>confdefs.h
12287
12288else
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12290$as_echo "no" >&6; }
12291 $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h
12292
12293fi
12294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12295
12296# Check for missing getpeereid (or equiv) support
12297NO_PEERCHECK=""
12298if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5
12300$as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; }
12301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12302/* end confdefs.h. */
12303
12304#include <sys/types.h>
12305#include <sys/socket.h>
12306int
12307main ()
12308{
12309int i = SO_PEERCRED;
12310 ;
12311 return 0;
12312}
12313_ACEOF
12314if ac_fn_c_try_compile "$LINENO"; then :
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12316$as_echo "yes" >&6; }
12317
12318$as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h
12319
12320
12321else
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12323$as_echo "no" >&6; }
12324 NO_PEERCHECK=1
12325
12326fi
12327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12328fi
12329
12330if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
12331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5
12332$as_echo_n "checking for (overly) strict mkstemp... " >&6; }
12333if test "$cross_compiling" = yes; then :
12334
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12336$as_echo "yes" >&6; }
12337 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
12338
12339
12340
12341else
12342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343/* end confdefs.h. */
12344
12345#include <stdlib.h>
12346
12347int
12348main ()
12349{
12350
12351 char template[]="conftest.mkstemp-test";
12352 if (mkstemp(template) == -1)
12353 exit(1);
12354 unlink(template);
12355 exit(0);
12356
12357 ;
12358 return 0;
12359}
12360_ACEOF
12361if ac_fn_c_try_run "$LINENO"; then :
12362
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12364$as_echo "no" >&6; }
12365
12366else
12367
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12369$as_echo "yes" >&6; }
12370
12371$as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
12372
12373
12374fi
12375rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12376 conftest.$ac_objext conftest.beam conftest.$ac_ext
12377fi
12378
12379fi
12380
12381if test ! -z "$check_for_openpty_ctty_bug"; then
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5
12383$as_echo_n "checking if openpty correctly handles controlling tty... " >&6; }
12384 if test "$cross_compiling" = yes; then :
12385
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
12387$as_echo "cross-compiling, assuming yes" >&6; }
12388
12389
12390else
12391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12392/* end confdefs.h. */
12393
12394#include <stdio.h>
12395#include <sys/fcntl.h>
12396#include <sys/types.h>
12397#include <sys/wait.h>
12398
12399int
12400main ()
12401{
12402
12403 pid_t pid;
12404 int fd, ptyfd, ttyfd, status;
12405
12406 pid = fork();
12407 if (pid < 0) { /* failed */
12408 exit(1);
12409 } else if (pid > 0) { /* parent */
12410 waitpid(pid, &status, 0);
12411 if (WIFEXITED(status))
12412 exit(WEXITSTATUS(status));
12413 else
12414 exit(2);
12415 } else { /* child */
12416 close(0); close(1); close(2);
12417 setsid();
12418 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
12419 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
12420 if (fd >= 0)
12421 exit(3); /* Acquired ctty: broken */
12422 else
12423 exit(0); /* Did not acquire ctty: OK */
12424 }
12425
12426 ;
12427 return 0;
12428}
12429_ACEOF
12430if ac_fn_c_try_run "$LINENO"; then :
12431
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12433$as_echo "yes" >&6; }
12434
12435else
12436
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12438$as_echo "no" >&6; }
12439 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
12440
12441
12442fi
12443rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12444 conftest.$ac_objext conftest.beam conftest.$ac_ext
12445fi
12446
12447fi
12448
12449if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
12450 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
12452$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
12453 if test "$cross_compiling" = yes; then :
12454
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
12456$as_echo "cross-compiling, assuming yes" >&6; }
12457
12458
12459else
12460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12461/* end confdefs.h. */
12462
12463#include <stdio.h>
12464#include <sys/socket.h>
12465#include <netdb.h>
12466#include <errno.h>
12467#include <netinet/in.h>
12468
12469#define TEST_PORT "2222"
12470
12471int
12472main ()
12473{
12474
12475 int err, sock;
12476 struct addrinfo *gai_ai, *ai, hints;
12477 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
12478
12479 memset(&hints, 0, sizeof(hints));
12480 hints.ai_family = PF_UNSPEC;
12481 hints.ai_socktype = SOCK_STREAM;
12482 hints.ai_flags = AI_PASSIVE;
12483
12484 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
12485 if (err != 0) {
12486 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
12487 exit(1);
12488 }
12489
12490 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
12491 if (ai->ai_family != AF_INET6)
12492 continue;
12493
12494 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
12495 sizeof(ntop), strport, sizeof(strport),
12496 NI_NUMERICHOST|NI_NUMERICSERV);
12497
12498 if (err != 0) {
12499 if (err == EAI_SYSTEM)
12500 perror("getnameinfo EAI_SYSTEM");
12501 else
12502 fprintf(stderr, "getnameinfo failed: %s\n",
12503 gai_strerror(err));
12504 exit(2);
12505 }
12506
12507 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
12508 if (sock < 0)
12509 perror("socket");
12510 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
12511 if (errno == EBADF)
12512 exit(3);
12513 }
12514 }
12515 exit(0);
12516
12517 ;
12518 return 0;
12519}
12520_ACEOF
12521if ac_fn_c_try_run "$LINENO"; then :
12522
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12524$as_echo "yes" >&6; }
12525
12526else
12527
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12529$as_echo "no" >&6; }
12530 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
12531
12532
12533fi
12534rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12535 conftest.$ac_objext conftest.beam conftest.$ac_ext
12536fi
12537
12538fi
12539
12540if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
12541 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
12543$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
12544 if test "$cross_compiling" = yes; then :
12545
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming no" >&5
12547$as_echo "cross-compiling, assuming no" >&6; }
12548
12549
12550else
12551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552/* end confdefs.h. */
12553
12554#include <stdio.h>
12555#include <sys/socket.h>
12556#include <netdb.h>
12557#include <errno.h>
12558#include <netinet/in.h>
12559
12560#define TEST_PORT "2222"
12561
12562int
12563main ()
12564{
12565
12566 int err, sock;
12567 struct addrinfo *gai_ai, *ai, hints;
12568 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
12569
12570 memset(&hints, 0, sizeof(hints));
12571 hints.ai_family = PF_UNSPEC;
12572 hints.ai_socktype = SOCK_STREAM;
12573 hints.ai_flags = AI_PASSIVE;
12574
12575 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
12576 if (err != 0) {
12577 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
12578 exit(1);
12579 }
12580
12581 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
12582 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
12583 continue;
12584
12585 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
12586 sizeof(ntop), strport, sizeof(strport),
12587 NI_NUMERICHOST|NI_NUMERICSERV);
12588
12589 if (ai->ai_family == AF_INET && err != 0) {
12590 perror("getnameinfo");
12591 exit(2);
12592 }
12593 }
12594 exit(0);
12595
12596 ;
12597 return 0;
12598}
12599_ACEOF
12600if ac_fn_c_try_run "$LINENO"; then :
12601
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12603$as_echo "yes" >&6; }
12604
12605$as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h
12606
12607
12608else
12609
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12611$as_echo "no" >&6; }
12612 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
12613
12614
12615fi
12616rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12617 conftest.$ac_objext conftest.beam conftest.$ac_ext
12618fi
12619
12620fi
12621
12622if test "x$ac_cv_func_getaddrinfo" = "xyes"; then
12623 ac_fn_c_check_decl "$LINENO" "AI_NUMERICSERV" "ac_cv_have_decl_AI_NUMERICSERV" "#include <sys/types.h>
12624 #include <sys/socket.h>
12625 #include <netdb.h>
12626"
12627if test "x$ac_cv_have_decl_AI_NUMERICSERV" = xyes; then :
12628 ac_have_decl=1
12629else
12630 ac_have_decl=0
12631fi
12632
12633cat >>confdefs.h <<_ACEOF
12634#define HAVE_DECL_AI_NUMERICSERV $ac_have_decl
12635_ACEOF
12636
12637fi
12638
12639if test "x$check_for_conflicting_getspnam" = "x1"; then
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5
12641$as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; }
12642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12643/* end confdefs.h. */
12644 #include <shadow.h>
12645int
12646main ()
12647{
12648 exit(0);
12649 ;
12650 return 0;
12651}
12652_ACEOF
12653if ac_fn_c_try_compile "$LINENO"; then :
12654
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12656$as_echo "no" >&6; }
12657
12658else
12659
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12661$as_echo "yes" >&6; }
12662
12663$as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h
12664
12665
12666
12667fi
12668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12669fi
12670
12671if test "x$ac_cv_func_strnvis" = "xyes"; then
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnvis" >&5
12673$as_echo_n "checking for working strnvis... " >&6; }
12674 if test "$cross_compiling" = yes; then :
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming broken" >&5
12676$as_echo "$as_me: WARNING: cross compiling: assuming broken" >&2;}
12677
12678$as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h
12679
12680
12681else
12682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12683/* end confdefs.h. */
12684
12685#include <signal.h>
12686#include <stdlib.h>
12687#include <string.h>
12688#include <vis.h>
12689static void sighandler(int sig) { _exit(1); }
12690
12691int
12692main ()
12693{
12694
12695 char dst[16];
12696
12697 signal(SIGSEGV, sighandler);
12698 if (strnvis(dst, "src", 4, 0) && strcmp(dst, "src") == 0)
12699 exit(0);
12700 exit(1)
12701
12702 ;
12703 return 0;
12704}
12705_ACEOF
12706if ac_fn_c_try_run "$LINENO"; then :
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12708$as_echo "yes" >&6; }
12709else
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12711$as_echo "no" >&6; }
12712
12713$as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h
12714
12715fi
12716rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12717 conftest.$ac_objext conftest.beam conftest.$ac_ext
12718fi
12719
12720fi
12721
12722for ac_func in getpgrp
12723do :
12724 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
12725if test "x$ac_cv_func_getpgrp" = xyes; then :
12726 cat >>confdefs.h <<_ACEOF
12727#define HAVE_GETPGRP 1
12728_ACEOF
12729
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpgrp accepts zero args" >&5
12731$as_echo_n "checking if getpgrp accepts zero args... " >&6; }
12732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12733/* end confdefs.h. */
12734$ac_includes_default
12735int
12736main ()
12737{
12738 getpgrp();
12739 ;
12740 return 0;
12741}
12742_ACEOF
12743if ac_fn_c_try_compile "$LINENO"; then :
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12745$as_echo "yes" >&6; }
12746
12747$as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12748
12749else
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12751$as_echo "no" >&6; }
12752
12753$as_echo "#define GETPGRP_VOID 0" >>confdefs.h
12754
12755
12756fi
12757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12758
12759fi
12760done
12761
12762
12763# Search for OpenSSL
12764saved_CPPFLAGS="$CPPFLAGS"
12765saved_LDFLAGS="$LDFLAGS"
12766
12767# Check whether --with-ssl-dir was given.
12768if test "${with_ssl_dir+set}" = set; then :
12769 withval=$with_ssl_dir;
12770 if test "x$openssl" = "xno" ; then
12771 as_fn_error $? "cannot use --with-ssl-dir when OpenSSL disabled" "$LINENO" 5
12772 fi
12773 if test "x$withval" != "xno" ; then
12774 case "$withval" in
12775 # Relative paths
12776 ./*|../*) withval="`pwd`/$withval"
12777 esac
12778 if test -d "$withval/lib"; then
12779 if test -n "${rpath_opt}"; then
12780 LDFLAGS="-L${withval}/lib ${rpath_opt}${withval}/lib ${LDFLAGS}"
12781 else
12782 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
12783 fi
12784 elif test -d "$withval/lib64"; then
12785 if test -n "${rpath_opt}"; then
12786 LDFLAGS="-L${withval}/lib64 ${rpath_opt}${withval}/lib64 ${LDFLAGS}"
12787 else
12788 LDFLAGS="-L${withval}/lib64 ${LDFLAGS}"
12789 fi
12790 else
12791 if test -n "${rpath_opt}"; then
12792 LDFLAGS="-L${withval} ${rpath_opt}${withval} ${LDFLAGS}"
12793 else
12794 LDFLAGS="-L${withval} ${LDFLAGS}"
12795 fi
12796 fi
12797 if test -d "$withval/include"; then
12798 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
12799 else
12800 CPPFLAGS="-I${withval} ${CPPFLAGS}"
12801 fi
12802 fi
12803
12804
12805fi
12806
12807
12808
12809# Check whether --with-openssl-header-check was given.
12810if test "${with_openssl_header_check+set}" = set; then :
12811 withval=$with_openssl_header_check;
12812 if test "x$withval" = "xno" ; then
12813 openssl_check_nonfatal=1
12814 fi
12815
12816
12817fi
12818
12819
12820openssl_engine=no
12821
12822# Check whether --with-ssl-engine was given.
12823if test "${with_ssl_engine+set}" = set; then :
12824 withval=$with_ssl_engine;
12825 if test "x$withval" != "xno" ; then
12826 if test "x$openssl" = "xno" ; then
12827 as_fn_error $? "cannot use --with-ssl-engine when OpenSSL disabled" "$LINENO" 5
12828 fi
12829 openssl_engine=yes
12830 fi
12831
12832
12833fi
12834
12835
12836if test "x$openssl" = "xyes" ; then
12837 LIBS="-lcrypto $LIBS"
12838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12839/* end confdefs.h. */
12840
12841/* Override any GCC internal prototype to avoid an error.
12842 Use char because int might match the return type of a GCC
12843 builtin and then its argument prototype would still apply. */
12844#ifdef __cplusplus
12845extern "C"
12846#endif
12847char RAND_add ();
12848int
12849main ()
12850{
12851return RAND_add ();
12852 ;
12853 return 0;
12854}
12855_ACEOF
12856if ac_fn_c_try_link "$LINENO"; then :
12857
12858else
12859 as_fn_error $? "*** working libcrypto not found, check config.log" "$LINENO" 5
12860fi
12861rm -f core conftest.err conftest.$ac_objext \
12862 conftest$ac_exeext conftest.$ac_ext
12863 ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
12864if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then :
12865
12866else
12867 as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5
12868fi
12869
12870
12871
12872 # Determine OpenSSL header version
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5
12874$as_echo_n "checking OpenSSL header version... " >&6; }
12875 if test "$cross_compiling" = yes; then :
12876
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
12878$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
12879
12880
12881else
12882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883/* end confdefs.h. */
12884
12885 #include <stdlib.h>
12886 #include <stdio.h>
12887 #include <string.h>
12888 #include <openssl/opensslv.h>
12889 #define DATA "conftest.sslincver"
12890
12891int
12892main ()
12893{
12894
12895 FILE *fd;
12896 int rc;
12897
12898 fd = fopen(DATA,"w");
12899 if(fd == NULL)
12900 exit(1);
12901
12902 if ((rc = fprintf(fd, "%08lx (%s)\n",
12903 (unsigned long)OPENSSL_VERSION_NUMBER,
12904 OPENSSL_VERSION_TEXT)) < 0)
12905 exit(1);
12906
12907 exit(0);
12908
12909 ;
12910 return 0;
12911}
12912_ACEOF
12913if ac_fn_c_try_run "$LINENO"; then :
12914
12915 ssl_header_ver=`cat conftest.sslincver`
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5
12917$as_echo "$ssl_header_ver" >&6; }
12918
12919else
12920
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12922$as_echo "not found" >&6; }
12923 as_fn_error $? "OpenSSL version header not found." "$LINENO" 5
12924
12925fi
12926rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12927 conftest.$ac_objext conftest.beam conftest.$ac_ext
12928fi
12929
12930
12931 # Determining OpenSSL library version is version dependent.
12932 for ac_func in OpenSSL_version OpenSSL_version_num
12933do :
12934 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12935ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12936if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12937 cat >>confdefs.h <<_ACEOF
12938#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12939_ACEOF
12940
12941fi
12942done
12943
12944
12945 # Determine OpenSSL library version
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5
12947$as_echo_n "checking OpenSSL library version... " >&6; }
12948 if test "$cross_compiling" = yes; then :
12949
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
12951$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
12952
12953
12954else
12955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12956/* end confdefs.h. */
12957
12958 #include <stdio.h>
12959 #include <string.h>
12960 #include <openssl/opensslv.h>
12961 #include <openssl/crypto.h>
12962 #define DATA "conftest.ssllibver"
12963
12964int
12965main ()
12966{
12967
12968 FILE *fd;
12969 int rc;
12970
12971 fd = fopen(DATA,"w");
12972 if(fd == NULL)
12973 exit(1);
12974#ifndef OPENSSL_VERSION
12975# define OPENSSL_VERSION SSLEAY_VERSION
12976#endif
12977#ifndef HAVE_OPENSSL_VERSION
12978# define OpenSSL_version SSLeay_version
12979#endif
12980#ifndef HAVE_OPENSSL_VERSION_NUM
12981# define OpenSSL_version_num SSLeay
12982#endif
12983 if ((rc = fprintf(fd, "%08lx (%s)\n",
12984 (unsigned long)OpenSSL_version_num(),
12985 OpenSSL_version(OPENSSL_VERSION))) < 0)
12986 exit(1);
12987
12988 exit(0);
12989
12990 ;
12991 return 0;
12992}
12993_ACEOF
12994if ac_fn_c_try_run "$LINENO"; then :
12995
12996 ssl_library_ver=`cat conftest.ssllibver`
12997 # Check version is supported.
12998 case "$ssl_library_ver" in
12999 10000*|0*)
13000 as_fn_error $? "OpenSSL >= 1.0.1 required (have \"$ssl_library_ver\")" "$LINENO" 5
13001 ;;
13002 100*) ;; # 1.0.x
13003 101000[0123456]*)
13004 # https://github.com/openssl/openssl/pull/4613
13005 as_fn_error $? "OpenSSL 1.1.x versions prior to 1.1.0g have a bug that breaks their use with OpenSSH (have \"$ssl_library_ver\")" "$LINENO" 5
13006 ;;
13007 101*) ;; # 1.1.x
13008 200*) ;; # LibreSSL
13009 300*) ;; # OpenSSL development branch.
13010 *)
13011 as_fn_error $? "Unknown/unsupported OpenSSL version (\"$ssl_library_ver\")" "$LINENO" 5
13012 ;;
13013 esac
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5
13015$as_echo "$ssl_library_ver" >&6; }
13016
13017else
13018
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13020$as_echo "not found" >&6; }
13021 as_fn_error $? "OpenSSL library not found." "$LINENO" 5
13022
13023fi
13024rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13025 conftest.$ac_objext conftest.beam conftest.$ac_ext
13026fi
13027
13028
13029 # Sanity check OpenSSL headers
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5
13031$as_echo_n "checking whether OpenSSL's headers match the library... " >&6; }
13032 if test "$cross_compiling" = yes; then :
13033
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
13035$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
13036
13037
13038else
13039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13040/* end confdefs.h. */
13041
13042 #include <string.h>
13043 #include <openssl/opensslv.h>
13044 #include <openssl/crypto.h>
13045
13046int
13047main ()
13048{
13049
13050#ifndef HAVE_OPENSSL_VERSION_NUM
13051# define OpenSSL_version_num SSLeay
13052#endif
13053 exit(OpenSSL_version_num() == OPENSSL_VERSION_NUMBER ? 0 : 1);
13054
13055 ;
13056 return 0;
13057}
13058_ACEOF
13059if ac_fn_c_try_run "$LINENO"; then :
13060
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13062$as_echo "yes" >&6; }
13063
13064else
13065
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13067$as_echo "no" >&6; }
13068 if test "x$openssl_check_nonfatal" = "x"; then
13069 as_fn_error $? "Your OpenSSL headers do not match your
13070 library. Check config.log for details.
13071 If you are sure your installation is consistent, you can disable the check
13072 by running \"./configure --without-openssl-header-check\".
13073 Also see contrib/findssl.sh for help identifying header/library mismatches.
13074 " "$LINENO" 5
13075 else
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your
13077 library. Check config.log for details.
13078 Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
13079$as_echo "$as_me: WARNING: Your OpenSSL headers do not match your
13080 library. Check config.log for details.
13081 Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
13082 fi
13083
13084fi
13085rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13086 conftest.$ac_objext conftest.beam conftest.$ac_ext
13087fi
13088
13089
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5
13091$as_echo_n "checking if programs using OpenSSL functions will link... " >&6; }
13092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093/* end confdefs.h. */
13094 #include <openssl/err.h>
13095int
13096main ()
13097{
13098 ERR_load_crypto_strings();
13099 ;
13100 return 0;
13101}
13102_ACEOF
13103if ac_fn_c_try_link "$LINENO"; then :
13104
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13106$as_echo "yes" >&6; }
13107
13108else
13109
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13111$as_echo "no" >&6; }
13112 saved_LIBS="$LIBS"
13113 LIBS="$LIBS -ldl"
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5
13115$as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; }
13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117/* end confdefs.h. */
13118 #include <openssl/err.h>
13119int
13120main ()
13121{
13122 ERR_load_crypto_strings();
13123 ;
13124 return 0;
13125}
13126_ACEOF
13127if ac_fn_c_try_link "$LINENO"; then :
13128
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13130$as_echo "yes" >&6; }
13131
13132else
13133
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13135$as_echo "no" >&6; }
13136 LIBS="$saved_LIBS"
13137
13138
13139fi
13140rm -f core conftest.err conftest.$ac_objext \
13141 conftest$ac_exeext conftest.$ac_ext
13142
13143
13144fi
13145rm -f core conftest.err conftest.$ac_objext \
13146 conftest$ac_exeext conftest.$ac_ext
13147
13148 for ac_func in \
13149 BN_is_prime_ex \
13150 DSA_generate_parameters_ex \
13151 EVP_CIPHER_CTX_ctrl \
13152 EVP_DigestFinal_ex \
13153 EVP_DigestInit_ex \
13154 EVP_MD_CTX_cleanup \
13155 EVP_MD_CTX_copy_ex \
13156 EVP_MD_CTX_init \
13157 HMAC_CTX_init \
13158 RSA_generate_key_ex \
13159 RSA_get_default_method \
13160
13161do :
13162 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13163ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13164if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13165 cat >>confdefs.h <<_ACEOF
13166#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13167_ACEOF
13168
13169fi
13170done
13171
13172
13173 # OpenSSL_add_all_algorithms may be a macro.
13174 ac_fn_c_check_func "$LINENO" "OpenSSL_add_all_algorithms" "ac_cv_func_OpenSSL_add_all_algorithms"
13175if test "x$ac_cv_func_OpenSSL_add_all_algorithms" = xyes; then :
13176
13177$as_echo "#define HAVE_OPENSSL_ADD_ALL_ALGORITHMS 1" >>confdefs.h
13178
13179else
13180 ac_fn_c_check_decl "$LINENO" "OpenSSL_add_all_algorithms" "ac_cv_have_decl_OpenSSL_add_all_algorithms" "#include <openssl/evp.h>
13181
13182"
13183if test "x$ac_cv_have_decl_OpenSSL_add_all_algorithms" = xyes; then :
13184
13185$as_echo "#define HAVE_OPENSSL_ADD_ALL_ALGORITHMS 1" >>confdefs.h
13186
13187fi
13188
13189
13190fi
13191
13192
13193 # LibreSSL/OpenSSL 1.1x API
13194 for ac_func in \
13195 OPENSSL_init_crypto \
13196 DH_get0_key \
13197 DH_get0_pqg \
13198 DH_set0_key \
13199 DH_set_length \
13200 DH_set0_pqg \
13201 DSA_get0_key \
13202 DSA_get0_pqg \
13203 DSA_set0_key \
13204 DSA_set0_pqg \
13205 DSA_SIG_get0 \
13206 DSA_SIG_set0 \
13207 ECDSA_SIG_get0 \
13208 ECDSA_SIG_set0 \
13209 EVP_CIPHER_CTX_iv \
13210 EVP_CIPHER_CTX_iv_noconst \
13211 EVP_CIPHER_CTX_get_iv \
13212 EVP_CIPHER_CTX_set_iv \
13213 RSA_get0_crt_params \
13214 RSA_get0_factors \
13215 RSA_get0_key \
13216 RSA_set0_crt_params \
13217 RSA_set0_factors \
13218 RSA_set0_key \
13219 RSA_meth_free \
13220 RSA_meth_dup \
13221 RSA_meth_set1_name \
13222 RSA_meth_get_finish \
13223 RSA_meth_set_priv_enc \
13224 RSA_meth_set_priv_dec \
13225 RSA_meth_set_finish \
13226 EVP_PKEY_get0_RSA \
13227 EVP_MD_CTX_new \
13228 EVP_MD_CTX_free \
13229
13230do :
13231 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13232ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13233if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13234 cat >>confdefs.h <<_ACEOF
13235#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13236_ACEOF
13237
13238fi
13239done
13240
13241
13242 if test "x$openssl_engine" = "xyes" ; then
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5
13244$as_echo_n "checking for OpenSSL ENGINE support... " >&6; }
13245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13246/* end confdefs.h. */
13247
13248 #include <openssl/engine.h>
13249
13250int
13251main ()
13252{
13253
13254 ENGINE_load_builtin_engines();
13255 ENGINE_register_all_complete();
13256
13257 ;
13258 return 0;
13259}
13260_ACEOF
13261if ac_fn_c_try_compile "$LINENO"; then :
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13263$as_echo "yes" >&6; }
13264
13265$as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h
13266
13267
13268else
13269 as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5
13270
13271fi
13272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13273 fi
13274
13275 # Check for OpenSSL without EVP_aes_{192,256}_cbc
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5
13277$as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; }
13278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279/* end confdefs.h. */
13280
13281 #include <string.h>
13282 #include <openssl/evp.h>
13283
13284int
13285main ()
13286{
13287
13288 exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);
13289
13290 ;
13291 return 0;
13292}
13293_ACEOF
13294if ac_fn_c_try_link "$LINENO"; then :
13295
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13297$as_echo "no" >&6; }
13298
13299else
13300
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13302$as_echo "yes" >&6; }
13303
13304$as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h
13305
13306
13307
13308fi
13309rm -f core conftest.err conftest.$ac_objext \
13310 conftest$ac_exeext conftest.$ac_ext
13311
13312 # Check for OpenSSL with EVP_aes_*ctr
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES CTR via EVP" >&5
13314$as_echo_n "checking whether OpenSSL has AES CTR via EVP... " >&6; }
13315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13316/* end confdefs.h. */
13317
13318 #include <string.h>
13319 #include <openssl/evp.h>
13320
13321int
13322main ()
13323{
13324
13325 exit(EVP_aes_128_ctr() == NULL ||
13326 EVP_aes_192_cbc() == NULL ||
13327 EVP_aes_256_cbc() == NULL);
13328
13329 ;
13330 return 0;
13331}
13332_ACEOF
13333if ac_fn_c_try_link "$LINENO"; then :
13334
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13336$as_echo "yes" >&6; }
13337
13338$as_echo "#define OPENSSL_HAVE_EVPCTR 1" >>confdefs.h
13339
13340
13341else
13342
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13344$as_echo "no" >&6; }
13345
13346
13347fi
13348rm -f core conftest.err conftest.$ac_objext \
13349 conftest$ac_exeext conftest.$ac_ext
13350
13351 # Check for OpenSSL with EVP_aes_*gcm
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES GCM via EVP" >&5
13353$as_echo_n "checking whether OpenSSL has AES GCM via EVP... " >&6; }
13354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355/* end confdefs.h. */
13356
13357 #include <string.h>
13358 #include <openssl/evp.h>
13359
13360int
13361main ()
13362{
13363
13364 exit(EVP_aes_128_gcm() == NULL ||
13365 EVP_aes_256_gcm() == NULL ||
13366 EVP_CTRL_GCM_SET_IV_FIXED == 0 ||
13367 EVP_CTRL_GCM_IV_GEN == 0 ||
13368 EVP_CTRL_GCM_SET_TAG == 0 ||
13369 EVP_CTRL_GCM_GET_TAG == 0 ||
13370 EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0);
13371
13372 ;
13373 return 0;
13374}
13375_ACEOF
13376if ac_fn_c_try_link "$LINENO"; then :
13377
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13379$as_echo "yes" >&6; }
13380
13381$as_echo "#define OPENSSL_HAVE_EVPGCM 1" >>confdefs.h
13382
13383
13384else
13385
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13387$as_echo "no" >&6; }
13388 unsupported_algorithms="$unsupported_cipers \
13389 aes128-gcm@openssh.com \
13390 aes256-gcm@openssh.com"
13391
13392
13393fi
13394rm -f core conftest.err conftest.$ac_objext \
13395 conftest$ac_exeext conftest.$ac_ext
13396
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5
13398$as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; }
13399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13400/* end confdefs.h. */
13401
13402 #include <string.h>
13403 #include <openssl/evp.h>
13404
13405int
13406main ()
13407{
13408
13409 if(EVP_DigestUpdate(NULL, NULL,0))
13410 exit(0);
13411
13412 ;
13413 return 0;
13414}
13415_ACEOF
13416if ac_fn_c_try_link "$LINENO"; then :
13417
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13419$as_echo "yes" >&6; }
13420
13421else
13422
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13424$as_echo "no" >&6; }
13425
13426$as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h
13427
13428
13429
13430fi
13431rm -f core conftest.err conftest.$ac_objext \
13432 conftest$ac_exeext conftest.$ac_ext
13433
13434 # Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
13435 # because the system crypt() is more featureful.
13436 if test "x$check_for_libcrypt_before" = "x1"; then
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
13438$as_echo_n "checking for crypt in -lcrypt... " >&6; }
13439if ${ac_cv_lib_crypt_crypt+:} false; then :
13440 $as_echo_n "(cached) " >&6
13441else
13442 ac_check_lib_save_LIBS=$LIBS
13443LIBS="-lcrypt $LIBS"
13444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13445/* end confdefs.h. */
13446
13447/* Override any GCC internal prototype to avoid an error.
13448 Use char because int might match the return type of a GCC
13449 builtin and then its argument prototype would still apply. */
13450#ifdef __cplusplus
13451extern "C"
13452#endif
13453char crypt ();
13454int
13455main ()
13456{
13457return crypt ();
13458 ;
13459 return 0;
13460}
13461_ACEOF
13462if ac_fn_c_try_link "$LINENO"; then :
13463 ac_cv_lib_crypt_crypt=yes
13464else
13465 ac_cv_lib_crypt_crypt=no
13466fi
13467rm -f core conftest.err conftest.$ac_objext \
13468 conftest$ac_exeext conftest.$ac_ext
13469LIBS=$ac_check_lib_save_LIBS
13470fi
13471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
13472$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
13473if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
13474 cat >>confdefs.h <<_ACEOF
13475#define HAVE_LIBCRYPT 1
13476_ACEOF
13477
13478 LIBS="-lcrypt $LIBS"
13479
13480fi
13481
13482 fi
13483
13484 # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
13485 # version in OpenSSL.
13486 if test "x$check_for_libcrypt_later" = "x1"; then
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
13488$as_echo_n "checking for crypt in -lcrypt... " >&6; }
13489if ${ac_cv_lib_crypt_crypt+:} false; then :
13490 $as_echo_n "(cached) " >&6
13491else
13492 ac_check_lib_save_LIBS=$LIBS
13493LIBS="-lcrypt $LIBS"
13494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13495/* end confdefs.h. */
13496
13497/* Override any GCC internal prototype to avoid an error.
13498 Use char because int might match the return type of a GCC
13499 builtin and then its argument prototype would still apply. */
13500#ifdef __cplusplus
13501extern "C"
13502#endif
13503char crypt ();
13504int
13505main ()
13506{
13507return crypt ();
13508 ;
13509 return 0;
13510}
13511_ACEOF
13512if ac_fn_c_try_link "$LINENO"; then :
13513 ac_cv_lib_crypt_crypt=yes
13514else
13515 ac_cv_lib_crypt_crypt=no
13516fi
13517rm -f core conftest.err conftest.$ac_objext \
13518 conftest$ac_exeext conftest.$ac_ext
13519LIBS=$ac_check_lib_save_LIBS
13520fi
13521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
13522$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
13523if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
13524 LIBS="$LIBS -lcrypt"
13525fi
13526
13527 fi
13528 for ac_func in crypt DES_crypt
13529do :
13530 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13531ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13532if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13533 cat >>confdefs.h <<_ACEOF
13534#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13535_ACEOF
13536
13537fi
13538done
13539
13540
13541 # Check for SHA256, SHA384 and SHA512 support in OpenSSL
13542 for ac_func in EVP_sha256 EVP_sha384 EVP_sha512
13543do :
13544 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13545ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13546if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13547 cat >>confdefs.h <<_ACEOF
13548#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13549_ACEOF
13550
13551fi
13552done
13553
13554
13555 # Check complete ECC support in OpenSSL
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_X9_62_prime256v1" >&5
13557$as_echo_n "checking whether OpenSSL has NID_X9_62_prime256v1... " >&6; }
13558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13559/* end confdefs.h. */
13560
13561 #include <openssl/ec.h>
13562 #include <openssl/ecdh.h>
13563 #include <openssl/ecdsa.h>
13564 #include <openssl/evp.h>
13565 #include <openssl/objects.h>
13566 #include <openssl/opensslv.h>
13567
13568int
13569main ()
13570{
13571
13572 EC_KEY *e = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
13573 const EVP_MD *m = EVP_sha256(); /* We need this too */
13574
13575 ;
13576 return 0;
13577}
13578_ACEOF
13579if ac_fn_c_try_link "$LINENO"; then :
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13581$as_echo "yes" >&6; }
13582 enable_nistp256=1
13583else
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13585$as_echo "no" >&6; }
13586
13587fi
13588rm -f core conftest.err conftest.$ac_objext \
13589 conftest$ac_exeext conftest.$ac_ext
13590
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp384r1" >&5
13592$as_echo_n "checking whether OpenSSL has NID_secp384r1... " >&6; }
13593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13594/* end confdefs.h. */
13595
13596 #include <openssl/ec.h>
13597 #include <openssl/ecdh.h>
13598 #include <openssl/ecdsa.h>
13599 #include <openssl/evp.h>
13600 #include <openssl/objects.h>
13601 #include <openssl/opensslv.h>
13602
13603int
13604main ()
13605{
13606
13607 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp384r1);
13608 const EVP_MD *m = EVP_sha384(); /* We need this too */
13609
13610 ;
13611 return 0;
13612}
13613_ACEOF
13614if ac_fn_c_try_link "$LINENO"; then :
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13616$as_echo "yes" >&6; }
13617 enable_nistp384=1
13618else
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13620$as_echo "no" >&6; }
13621
13622fi
13623rm -f core conftest.err conftest.$ac_objext \
13624 conftest$ac_exeext conftest.$ac_ext
13625
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp521r1" >&5
13627$as_echo_n "checking whether OpenSSL has NID_secp521r1... " >&6; }
13628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13629/* end confdefs.h. */
13630
13631 #include <openssl/ec.h>
13632 #include <openssl/ecdh.h>
13633 #include <openssl/ecdsa.h>
13634 #include <openssl/evp.h>
13635 #include <openssl/objects.h>
13636 #include <openssl/opensslv.h>
13637
13638int
13639main ()
13640{
13641
13642 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
13643 const EVP_MD *m = EVP_sha512(); /* We need this too */
13644
13645 ;
13646 return 0;
13647}
13648_ACEOF
13649if ac_fn_c_try_link "$LINENO"; then :
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13651$as_echo "yes" >&6; }
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL's NID_secp521r1 is functional" >&5
13653$as_echo_n "checking if OpenSSL's NID_secp521r1 is functional... " >&6; }
13654 if test "$cross_compiling" = yes; then :
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: assuming yes" >&5
13656$as_echo "$as_me: WARNING: cross-compiling: assuming yes" >&2;}
13657 enable_nistp521=1
13658
13659else
13660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13661/* end confdefs.h. */
13662
13663 #include <openssl/ec.h>
13664 #include <openssl/ecdh.h>
13665 #include <openssl/ecdsa.h>
13666 #include <openssl/evp.h>
13667 #include <openssl/objects.h>
13668 #include <openssl/opensslv.h>
13669
13670int
13671main ()
13672{
13673
13674 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
13675 const EVP_MD *m = EVP_sha512(); /* We need this too */
13676 exit(e == NULL || m == NULL);
13677
13678 ;
13679 return 0;
13680}
13681_ACEOF
13682if ac_fn_c_try_run "$LINENO"; then :
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13684$as_echo "yes" >&6; }
13685 enable_nistp521=1
13686else
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13688$as_echo "no" >&6; }
13689fi
13690rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13691 conftest.$ac_objext conftest.beam conftest.$ac_ext
13692fi
13693
13694else
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13696$as_echo "no" >&6; }
13697
13698fi
13699rm -f core conftest.err conftest.$ac_objext \
13700 conftest$ac_exeext conftest.$ac_ext
13701
13702 COMMENT_OUT_ECC="#no ecc#"
13703 TEST_SSH_ECC=no
13704
13705 if test x$enable_nistp256 = x1 || test x$enable_nistp384 = x1 || \
13706 test x$enable_nistp521 = x1; then
13707
13708$as_echo "#define OPENSSL_HAS_ECC 1" >>confdefs.h
13709
13710 for ac_func in EC_KEY_METHOD_new
13711do :
13712 ac_fn_c_check_func "$LINENO" "EC_KEY_METHOD_new" "ac_cv_func_EC_KEY_METHOD_new"
13713if test "x$ac_cv_func_EC_KEY_METHOD_new" = xyes; then :
13714 cat >>confdefs.h <<_ACEOF
13715#define HAVE_EC_KEY_METHOD_NEW 1
13716_ACEOF
13717
13718fi
13719done
13720
13721 openssl_ecc=yes
13722 else
13723 openssl_ecc=no
13724 fi
13725 if test x$enable_nistp256 = x1; then
13726
13727$as_echo "#define OPENSSL_HAS_NISTP256 1" >>confdefs.h
13728
13729 TEST_SSH_ECC=yes
13730 COMMENT_OUT_ECC=""
13731 else
13732 unsupported_algorithms="$unsupported_algorithms \
13733 ecdsa-sha2-nistp256 \
13734 ecdh-sha2-nistp256 \
13735 ecdsa-sha2-nistp256-cert-v01@openssh.com"
13736 fi
13737 if test x$enable_nistp384 = x1; then
13738
13739$as_echo "#define OPENSSL_HAS_NISTP384 1" >>confdefs.h
13740
13741 TEST_SSH_ECC=yes
13742 COMMENT_OUT_ECC=""
13743 else
13744 unsupported_algorithms="$unsupported_algorithms \
13745 ecdsa-sha2-nistp384 \
13746 ecdh-sha2-nistp384 \
13747 ecdsa-sha2-nistp384-cert-v01@openssh.com"
13748 fi
13749 if test x$enable_nistp521 = x1; then
13750
13751$as_echo "#define OPENSSL_HAS_NISTP521 1" >>confdefs.h
13752
13753 TEST_SSH_ECC=yes
13754 COMMENT_OUT_ECC=""
13755 else
13756 unsupported_algorithms="$unsupported_algorithms \
13757 ecdh-sha2-nistp521 \
13758 ecdsa-sha2-nistp521 \
13759 ecdsa-sha2-nistp521-cert-v01@openssh.com"
13760 fi
13761
13762
13763
13764else
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
13766$as_echo_n "checking for crypt in -lcrypt... " >&6; }
13767if ${ac_cv_lib_crypt_crypt+:} false; then :
13768 $as_echo_n "(cached) " >&6
13769else
13770 ac_check_lib_save_LIBS=$LIBS
13771LIBS="-lcrypt $LIBS"
13772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13773/* end confdefs.h. */
13774
13775/* Override any GCC internal prototype to avoid an error.
13776 Use char because int might match the return type of a GCC
13777 builtin and then its argument prototype would still apply. */
13778#ifdef __cplusplus
13779extern "C"
13780#endif
13781char crypt ();
13782int
13783main ()
13784{
13785return crypt ();
13786 ;
13787 return 0;
13788}
13789_ACEOF
13790if ac_fn_c_try_link "$LINENO"; then :
13791 ac_cv_lib_crypt_crypt=yes
13792else
13793 ac_cv_lib_crypt_crypt=no
13794fi
13795rm -f core conftest.err conftest.$ac_objext \
13796 conftest$ac_exeext conftest.$ac_ext
13797LIBS=$ac_check_lib_save_LIBS
13798fi
13799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
13800$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
13801if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
13802 LIBS="$LIBS -lcrypt"
13803fi
13804
13805 for ac_func in crypt
13806do :
13807 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
13808if test "x$ac_cv_func_crypt" = xyes; then :
13809 cat >>confdefs.h <<_ACEOF
13810#define HAVE_CRYPT 1
13811_ACEOF
13812
13813fi
13814done
13815
13816fi
13817
13818# PKCS11/U2F depend on OpenSSL and dlopen().
13819enable_pkcs11=yes
13820enable_sk=yes
13821if test "x$openssl" != "xyes" ; then
13822 enable_pkcs11="disabled; missing libcrypto"
13823 enable_sk="disabled; missing libcrypto"
13824fi
13825if test "x$openssl_ecc" != "xyes" ; then
13826 enable_sk="disabled; OpenSSL has no ECC support"
13827fi
13828if test "x$ac_cv_func_dlopen" != "xyes" ; then
13829 enable_pkcs11="disabled; missing dlopen(3)"
13830 enable_sk="disabled; missing dlopen(3)"
13831fi
13832if test "x$ac_cv_have_decl_RTLD_NOW" != "xyes" ; then
13833 enable_pkcs11="disabled; missing RTLD_NOW"
13834 enable_sk="disabled; missing RTLD_NOW"
13835fi
13836if test ! -z "$disable_pkcs11" ; then
13837 enable_pkcs11="disabled by user"
13838fi
13839if test ! -z "$disable_sk" ; then
13840 enable_sk="disabled by user"
13841fi
13842
13843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PKCS11" >&5
13844$as_echo_n "checking whether to enable PKCS11... " >&6; }
13845if test "x$enable_pkcs11" = "xyes" ; then
13846
13847$as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h
13848
13849fi
13850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pkcs11" >&5
13851$as_echo "$enable_pkcs11" >&6; }
13852
13853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable U2F" >&5
13854$as_echo_n "checking whether to enable U2F... " >&6; }
13855if test "x$enable_sk" = "xyes" ; then
13856
13857$as_echo "#define ENABLE_SK /**/" >>confdefs.h
13858
13859fi
13860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sk" >&5
13861$as_echo "$enable_sk" >&6; }
13862
13863# Now check for built-in security key support.
13864if test "x$enable_sk" = "xyes" -a "x$enable_sk_internal" = "xyes" ; then
13865 if test -n "$ac_tool_prefix"; then
13866 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13867set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13869$as_echo_n "checking for $ac_word... " >&6; }
13870if ${ac_cv_path_PKGCONFIG+:} false; then :
13871 $as_echo_n "(cached) " >&6
13872else
13873 case $PKGCONFIG in
13874 [\\/]* | ?:[\\/]*)
13875 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
13876 ;;
13877 *)
13878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13879for as_dir in $PATH
13880do
13881 IFS=$as_save_IFS
13882 test -z "$as_dir" && as_dir=.
13883 for ac_exec_ext in '' $ac_executable_extensions; do
13884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13885 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
13886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13887 break 2
13888 fi
13889done
13890 done
13891IFS=$as_save_IFS
13892
13893 ;;
13894esac
13895fi
13896PKGCONFIG=$ac_cv_path_PKGCONFIG
13897if test -n "$PKGCONFIG"; then
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
13899$as_echo "$PKGCONFIG" >&6; }
13900else
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13902$as_echo "no" >&6; }
13903fi
13904
13905
13906fi
13907if test -z "$ac_cv_path_PKGCONFIG"; then
13908 ac_pt_PKGCONFIG=$PKGCONFIG
13909 # Extract the first word of "pkg-config", so it can be a program name with args.
13910set dummy pkg-config; ac_word=$2
13911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13912$as_echo_n "checking for $ac_word... " >&6; }
13913if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
13914 $as_echo_n "(cached) " >&6
13915else
13916 case $ac_pt_PKGCONFIG in
13917 [\\/]* | ?:[\\/]*)
13918 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
13919 ;;
13920 *)
13921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13922for as_dir in $PATH
13923do
13924 IFS=$as_save_IFS
13925 test -z "$as_dir" && as_dir=.
13926 for ac_exec_ext in '' $ac_executable_extensions; do
13927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13928 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
13929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13930 break 2
13931 fi
13932done
13933 done
13934IFS=$as_save_IFS
13935
13936 ;;
13937esac
13938fi
13939ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
13940if test -n "$ac_pt_PKGCONFIG"; then
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
13942$as_echo "$ac_pt_PKGCONFIG" >&6; }
13943else
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13945$as_echo "no" >&6; }
13946fi
13947
13948 if test "x$ac_pt_PKGCONFIG" = x; then
13949 PKGCONFIG="no"
13950 else
13951 case $cross_compiling:$ac_tool_warned in
13952yes:)
13953{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13955ac_tool_warned=yes ;;
13956esac
13957 PKGCONFIG=$ac_pt_PKGCONFIG
13958 fi
13959else
13960 PKGCONFIG="$ac_cv_path_PKGCONFIG"
13961fi
13962
13963 use_pkgconfig_for_libfido2=
13964 if test "x$PKGCONFIG" != "xno"; then
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libfido2" >&5
13966$as_echo_n "checking if $PKGCONFIG knows about libfido2... " >&6; }
13967 if "$PKGCONFIG" libfido2; then
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13969$as_echo "yes" >&6; }
13970 use_pkgconfig_for_libfido2=yes
13971 else
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13973$as_echo "no" >&6; }
13974 fi
13975 fi
13976 if test "x$use_pkgconfig_for_libfido2" = "xyes"; then
13977 LIBFIDO2=`$PKGCONFIG --libs libfido2`
13978 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libfido2`"
13979 else
13980 LIBFIDO2="-lfido2 -lcbor"
13981 fi
13982 OTHERLIBS=`echo $LIBFIDO2 | sed 's/-lfido2//'`
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fido_init in -lfido2" >&5
13984$as_echo_n "checking for fido_init in -lfido2... " >&6; }
13985if ${ac_cv_lib_fido2_fido_init+:} false; then :
13986 $as_echo_n "(cached) " >&6
13987else
13988 ac_check_lib_save_LIBS=$LIBS
13989LIBS="-lfido2 $OTHERLIBS
13990 $LIBS"
13991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13992/* end confdefs.h. */
13993
13994/* Override any GCC internal prototype to avoid an error.
13995 Use char because int might match the return type of a GCC
13996 builtin and then its argument prototype would still apply. */
13997#ifdef __cplusplus
13998extern "C"
13999#endif
14000char fido_init ();
14001int
14002main ()
14003{
14004return fido_init ();
14005 ;
14006 return 0;
14007}
14008_ACEOF
14009if ac_fn_c_try_link "$LINENO"; then :
14010 ac_cv_lib_fido2_fido_init=yes
14011else
14012 ac_cv_lib_fido2_fido_init=no
14013fi
14014rm -f core conftest.err conftest.$ac_objext \
14015 conftest$ac_exeext conftest.$ac_ext
14016LIBS=$ac_check_lib_save_LIBS
14017fi
14018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fido2_fido_init" >&5
14019$as_echo "$ac_cv_lib_fido2_fido_init" >&6; }
14020if test "x$ac_cv_lib_fido2_fido_init" = xyes; then :
14021
14022
14023
14024$as_echo "#define ENABLE_SK_INTERNAL /**/" >>confdefs.h
14025
14026 enable_sk="built-in"
14027
14028fi
14029
14030fi
14031
14032for ac_func in \
14033 arc4random \
14034 arc4random_buf \
14035 arc4random_stir \
14036 arc4random_uniform \
14037
14038do :
14039 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14040ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14041if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14042 cat >>confdefs.h <<_ACEOF
14043#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14044_ACEOF
14045
14046fi
14047done
14048
14049
14050saved_LIBS="$LIBS"
14051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5
14052$as_echo_n "checking for ia_openinfo in -liaf... " >&6; }
14053if ${ac_cv_lib_iaf_ia_openinfo+:} false; then :
14054 $as_echo_n "(cached) " >&6
14055else
14056 ac_check_lib_save_LIBS=$LIBS
14057LIBS="-liaf $LIBS"
14058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14059/* end confdefs.h. */
14060
14061/* Override any GCC internal prototype to avoid an error.
14062 Use char because int might match the return type of a GCC
14063 builtin and then its argument prototype would still apply. */
14064#ifdef __cplusplus
14065extern "C"
14066#endif
14067char ia_openinfo ();
14068int
14069main ()
14070{
14071return ia_openinfo ();
14072 ;
14073 return 0;
14074}
14075_ACEOF
14076if ac_fn_c_try_link "$LINENO"; then :
14077 ac_cv_lib_iaf_ia_openinfo=yes
14078else
14079 ac_cv_lib_iaf_ia_openinfo=no
14080fi
14081rm -f core conftest.err conftest.$ac_objext \
14082 conftest$ac_exeext conftest.$ac_ext
14083LIBS=$ac_check_lib_save_LIBS
14084fi
14085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5
14086$as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; }
14087if test "x$ac_cv_lib_iaf_ia_openinfo" = xyes; then :
14088
14089 LIBS="$LIBS -liaf"
14090 for ac_func in set_id
14091do :
14092 ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id"
14093if test "x$ac_cv_func_set_id" = xyes; then :
14094 cat >>confdefs.h <<_ACEOF
14095#define HAVE_SET_ID 1
14096_ACEOF
14097 SSHDLIBS="$SSHDLIBS -liaf"
14098
14099$as_echo "#define HAVE_LIBIAF 1" >>confdefs.h
14100
14101
14102fi
14103done
14104
14105
14106fi
14107
14108LIBS="$saved_LIBS"
14109
14110### Configure cryptographic random number support
14111
14112# Check whether OpenSSL seeds itself
14113if test "x$openssl" = "xyes" ; then
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5
14115$as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; }
14116 if test "$cross_compiling" = yes; then :
14117
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
14119$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
14120 # This is safe, since we will fatal() at runtime if
14121 # OpenSSL is not seeded correctly.
14122 OPENSSL_SEEDS_ITSELF=yes
14123
14124
14125else
14126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14127/* end confdefs.h. */
14128
14129 #include <string.h>
14130 #include <openssl/rand.h>
14131
14132int
14133main ()
14134{
14135
14136 exit(RAND_status() == 1 ? 0 : 1);
14137
14138 ;
14139 return 0;
14140}
14141_ACEOF
14142if ac_fn_c_try_run "$LINENO"; then :
14143
14144 OPENSSL_SEEDS_ITSELF=yes
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14146$as_echo "yes" >&6; }
14147
14148else
14149
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14151$as_echo "no" >&6; }
14152
14153fi
14154rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14155 conftest.$ac_objext conftest.beam conftest.$ac_ext
14156fi
14157
14158fi
14159
14160# PRNGD TCP socket
14161
14162# Check whether --with-prngd-port was given.
14163if test "${with_prngd_port+set}" = set; then :
14164 withval=$with_prngd_port;
14165 case "$withval" in
14166 no)
14167 withval=""
14168 ;;
14169 [0-9]*)
14170 ;;
14171 *)
14172 as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5
14173 ;;
14174 esac
14175 if test ! -z "$withval" ; then
14176 PRNGD_PORT="$withval"
14177
14178cat >>confdefs.h <<_ACEOF
14179#define PRNGD_PORT $PRNGD_PORT
14180_ACEOF
14181
14182 fi
14183
14184
14185fi
14186
14187
14188# PRNGD Unix domain socket
14189
14190# Check whether --with-prngd-socket was given.
14191if test "${with_prngd_socket+set}" = set; then :
14192 withval=$with_prngd_socket;
14193 case "$withval" in
14194 yes)
14195 withval="/var/run/egd-pool"
14196 ;;
14197 no)
14198 withval=""
14199 ;;
14200 /*)
14201 ;;
14202 *)
14203 as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5
14204 ;;
14205 esac
14206
14207 if test ! -z "$withval" ; then
14208 if test ! -z "$PRNGD_PORT" ; then
14209 as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5
14210 fi
14211 if test ! -r "$withval" ; then
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5
14213$as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
14214 fi
14215 PRNGD_SOCKET="$withval"
14216
14217cat >>confdefs.h <<_ACEOF
14218#define PRNGD_SOCKET "$PRNGD_SOCKET"
14219_ACEOF
14220
14221 fi
14222
14223else
14224
14225 # Check for existing socket only if we don't have a random device already
14226 if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5
14228$as_echo_n "checking for PRNGD/EGD socket... " >&6; }
14229 # Insert other locations here
14230 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
14231 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
14232 PRNGD_SOCKET="$sock"
14233 cat >>confdefs.h <<_ACEOF
14234#define PRNGD_SOCKET "$PRNGD_SOCKET"
14235_ACEOF
14236
14237 break;
14238 fi
14239 done
14240 if test ! -z "$PRNGD_SOCKET" ; then
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5
14242$as_echo "$PRNGD_SOCKET" >&6; }
14243 else
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14245$as_echo "not found" >&6; }
14246 fi
14247 fi
14248
14249
14250fi
14251
14252
14253# Which randomness source do we use?
14254if test ! -z "$PRNGD_PORT" ; then
14255 RAND_MSG="PRNGd port $PRNGD_PORT"
14256elif test ! -z "$PRNGD_SOCKET" ; then
14257 RAND_MSG="PRNGd socket $PRNGD_SOCKET"
14258elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then
14259
14260$as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h
14261
14262 RAND_MSG="OpenSSL internal ONLY"
14263elif test "x$openssl" = "xno" ; then
14264 { $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
14265$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;}
14266else
14267 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
14268fi
14269
14270# Check for PAM libs
14271PAM_MSG="no"
14272
14273# Check whether --with-pam was given.
14274if test "${with_pam+set}" = set; then :
14275 withval=$with_pam;
14276 if test "x$withval" != "xno" ; then
14277 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
14278 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
14279 as_fn_error $? "PAM headers not found" "$LINENO" 5
14280 fi
14281
14282 saved_LIBS="$LIBS"
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14284$as_echo_n "checking for dlopen in -ldl... " >&6; }
14285if ${ac_cv_lib_dl_dlopen+:} false; then :
14286 $as_echo_n "(cached) " >&6
14287else
14288 ac_check_lib_save_LIBS=$LIBS
14289LIBS="-ldl $LIBS"
14290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14291/* end confdefs.h. */
14292
14293/* Override any GCC internal prototype to avoid an error.
14294 Use char because int might match the return type of a GCC
14295 builtin and then its argument prototype would still apply. */
14296#ifdef __cplusplus
14297extern "C"
14298#endif
14299char dlopen ();
14300int
14301main ()
14302{
14303return dlopen ();
14304 ;
14305 return 0;
14306}
14307_ACEOF
14308if ac_fn_c_try_link "$LINENO"; then :
14309 ac_cv_lib_dl_dlopen=yes
14310else
14311 ac_cv_lib_dl_dlopen=no
14312fi
14313rm -f core conftest.err conftest.$ac_objext \
14314 conftest$ac_exeext conftest.$ac_ext
14315LIBS=$ac_check_lib_save_LIBS
14316fi
14317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14318$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14319if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14320 cat >>confdefs.h <<_ACEOF
14321#define HAVE_LIBDL 1
14322_ACEOF
14323
14324 LIBS="-ldl $LIBS"
14325
14326fi
14327
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
14329$as_echo_n "checking for pam_set_item in -lpam... " >&6; }
14330if ${ac_cv_lib_pam_pam_set_item+:} false; then :
14331 $as_echo_n "(cached) " >&6
14332else
14333 ac_check_lib_save_LIBS=$LIBS
14334LIBS="-lpam $LIBS"
14335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14336/* end confdefs.h. */
14337
14338/* Override any GCC internal prototype to avoid an error.
14339 Use char because int might match the return type of a GCC
14340 builtin and then its argument prototype would still apply. */
14341#ifdef __cplusplus
14342extern "C"
14343#endif
14344char pam_set_item ();
14345int
14346main ()
14347{
14348return pam_set_item ();
14349 ;
14350 return 0;
14351}
14352_ACEOF
14353if ac_fn_c_try_link "$LINENO"; then :
14354 ac_cv_lib_pam_pam_set_item=yes
14355else
14356 ac_cv_lib_pam_pam_set_item=no
14357fi
14358rm -f core conftest.err conftest.$ac_objext \
14359 conftest$ac_exeext conftest.$ac_ext
14360LIBS=$ac_check_lib_save_LIBS
14361fi
14362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
14363$as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
14364if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
14365 cat >>confdefs.h <<_ACEOF
14366#define HAVE_LIBPAM 1
14367_ACEOF
14368
14369 LIBS="-lpam $LIBS"
14370
14371else
14372 as_fn_error $? "*** libpam missing" "$LINENO" 5
14373fi
14374
14375 for ac_func in pam_getenvlist
14376do :
14377 ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
14378if test "x$ac_cv_func_pam_getenvlist" = xyes; then :
14379 cat >>confdefs.h <<_ACEOF
14380#define HAVE_PAM_GETENVLIST 1
14381_ACEOF
14382
14383fi
14384done
14385
14386 for ac_func in pam_putenv
14387do :
14388 ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv"
14389if test "x$ac_cv_func_pam_putenv" = xyes; then :
14390 cat >>confdefs.h <<_ACEOF
14391#define HAVE_PAM_PUTENV 1
14392_ACEOF
14393
14394fi
14395done
14396
14397 LIBS="$saved_LIBS"
14398
14399 PAM_MSG="yes"
14400
14401 SSHDLIBS="$SSHDLIBS -lpam"
14402
14403$as_echo "#define USE_PAM 1" >>confdefs.h
14404
14405
14406 if test $ac_cv_lib_dl_dlopen = yes; then
14407 case "$LIBS" in
14408 *-ldl*)
14409 # libdl already in LIBS
14410 ;;
14411 *)
14412 SSHDLIBS="$SSHDLIBS -ldl"
14413 ;;
14414 esac
14415 fi
14416 fi
14417
14418
14419fi
14420
14421
14422
14423# Check whether --with-pam-service was given.
14424if test "${with_pam_service+set}" = set; then :
14425 withval=$with_pam_service;
14426 if test "x$withval" != "xno" && \
14427 test "x$withval" != "xyes" ; then
14428
14429cat >>confdefs.h <<_ACEOF
14430#define SSHD_PAM_SERVICE "$withval"
14431_ACEOF
14432
14433 fi
14434
14435
14436fi
14437
14438
14439# Check for older PAM
14440if test "x$PAM_MSG" = "xyes" ; then
14441 # Check PAM strerror arguments (old PAM)
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5
14443$as_echo_n "checking whether pam_strerror takes only one argument... " >&6; }
14444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445/* end confdefs.h. */
14446
14447#include <stdlib.h>
14448#if defined(HAVE_SECURITY_PAM_APPL_H)
14449#include <security/pam_appl.h>
14450#elif defined (HAVE_PAM_PAM_APPL_H)
14451#include <pam/pam_appl.h>
14452#endif
14453
14454int
14455main ()
14456{
14457
14458(void)pam_strerror((pam_handle_t *)NULL, -1);
14459
14460 ;
14461 return 0;
14462}
14463_ACEOF
14464if ac_fn_c_try_compile "$LINENO"; then :
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14466$as_echo "no" >&6; }
14467else
14468
14469
14470$as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h
14471
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14473$as_echo "yes" >&6; }
14474 PAM_MSG="yes (old library)"
14475
14476
14477fi
14478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14479fi
14480
14481case "$host" in
14482*-*-cygwin*)
14483 SSH_PRIVSEP_USER=CYGWIN_SSH_PRIVSEP_USER
14484 ;;
14485*)
14486 SSH_PRIVSEP_USER=sshd
14487 ;;
14488esac
14489
14490# Check whether --with-privsep-user was given.
14491if test "${with_privsep_user+set}" = set; then :
14492 withval=$with_privsep_user;
14493 if test -n "$withval" && test "x$withval" != "xno" && \
14494 test "x${withval}" != "xyes"; then
14495 SSH_PRIVSEP_USER=$withval
14496 fi
14497
14498
14499fi
14500
14501if test "x$SSH_PRIVSEP_USER" = "xCYGWIN_SSH_PRIVSEP_USER" ; then
14502
14503cat >>confdefs.h <<_ACEOF
14504#define SSH_PRIVSEP_USER CYGWIN_SSH_PRIVSEP_USER
14505_ACEOF
14506
14507else
14508
14509cat >>confdefs.h <<_ACEOF
14510#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
14511_ACEOF
14512
14513fi
14514
14515
14516if test "x$have_linux_no_new_privs" = "x1" ; then
14517ac_fn_c_check_decl "$LINENO" "SECCOMP_MODE_FILTER" "ac_cv_have_decl_SECCOMP_MODE_FILTER" "
14518 #include <sys/types.h>
14519 #include <linux/seccomp.h>
14520
14521"
14522if test "x$ac_cv_have_decl_SECCOMP_MODE_FILTER" = xyes; then :
14523 have_seccomp_filter=1
14524fi
14525
14526fi
14527if test "x$have_seccomp_filter" = "x1" ; then
14528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel for seccomp_filter support" >&5
14529$as_echo_n "checking kernel for seccomp_filter support... " >&6; }
14530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14531/* end confdefs.h. */
14532
14533 #include <errno.h>
14534 #include <elf.h>
14535 #include <linux/audit.h>
14536 #include <linux/seccomp.h>
14537 #include <stdlib.h>
14538 #include <sys/prctl.h>
14539
14540int
14541main ()
14542{
14543 int i = $seccomp_audit_arch;
14544 errno = 0;
14545 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
14546 exit(errno == EFAULT ? 0 : 1);
14547 ;
14548 return 0;
14549}
14550_ACEOF
14551if ac_fn_c_try_link "$LINENO"; then :
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14553$as_echo "yes" >&6; }
14554else
14555
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14557$as_echo "no" >&6; }
14558 # Disable seccomp filter as a target
14559 have_seccomp_filter=0
14560
14561
14562fi
14563rm -f core conftest.err conftest.$ac_objext \
14564 conftest$ac_exeext conftest.$ac_ext
14565fi
14566
14567# Decide which sandbox style to use
14568sandbox_arg=""
14569
14570# Check whether --with-sandbox was given.
14571if test "${with_sandbox+set}" = set; then :
14572 withval=$with_sandbox;
14573 if test "x$withval" = "xyes" ; then
14574 sandbox_arg=""
14575 else
14576 sandbox_arg="$withval"
14577 fi
14578
14579
14580fi
14581
14582
14583# Some platforms (seems to be the ones that have a kernel poll(2)-type
14584# function with which they implement select(2)) use an extra file descriptor
14585# when calling select(2), which means we can't use the rlimit sandbox.
14586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select works with descriptor rlimit" >&5
14587$as_echo_n "checking if select works with descriptor rlimit... " >&6; }
14588if test "$cross_compiling" = yes; then :
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
14590$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
14591 select_works_with_rlimit=yes
14592
14593else
14594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14595/* end confdefs.h. */
14596
14597#include <sys/types.h>
14598#ifdef HAVE_SYS_TIME_H
14599# include <sys/time.h>
14600#endif
14601#include <sys/resource.h>
14602#ifdef HAVE_SYS_SELECT_H
14603# include <sys/select.h>
14604#endif
14605#include <errno.h>
14606#include <fcntl.h>
14607#include <stdlib.h>
14608
14609int
14610main ()
14611{
14612
14613 struct rlimit rl_zero;
14614 int fd, r;
14615 fd_set fds;
14616 struct timeval tv;
14617
14618 fd = open("/dev/null", O_RDONLY);
14619 FD_ZERO(&fds);
14620 FD_SET(fd, &fds);
14621 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
14622 setrlimit(RLIMIT_FSIZE, &rl_zero);
14623 setrlimit(RLIMIT_NOFILE, &rl_zero);
14624 tv.tv_sec = 1;
14625 tv.tv_usec = 0;
14626 r = select(fd+1, &fds, NULL, NULL, &tv);
14627 exit (r == -1 ? 1 : 0);
14628
14629 ;
14630 return 0;
14631}
14632_ACEOF
14633if ac_fn_c_try_run "$LINENO"; then :
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14635$as_echo "yes" >&6; }
14636 select_works_with_rlimit=yes
14637else
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14639$as_echo "no" >&6; }
14640 select_works_with_rlimit=no
14641fi
14642rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14643 conftest.$ac_objext conftest.beam conftest.$ac_ext
14644fi
14645
14646
14647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5
14648$as_echo_n "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... " >&6; }
14649if test "$cross_compiling" = yes; then :
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
14651$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
14652 rlimit_nofile_zero_works=yes
14653
14654else
14655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14656/* end confdefs.h. */
14657
14658#include <sys/types.h>
14659#ifdef HAVE_SYS_TIME_H
14660# include <sys/time.h>
14661#endif
14662#include <sys/resource.h>
14663#include <errno.h>
14664#include <stdlib.h>
14665
14666int
14667main ()
14668{
14669
14670 struct rlimit rl_zero;
14671 int r;
14672
14673 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
14674 r = setrlimit(RLIMIT_NOFILE, &rl_zero);
14675 exit (r == -1 ? 1 : 0);
14676
14677 ;
14678 return 0;
14679}
14680_ACEOF
14681if ac_fn_c_try_run "$LINENO"; then :
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14683$as_echo "yes" >&6; }
14684 rlimit_nofile_zero_works=yes
14685else
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14687$as_echo "no" >&6; }
14688 rlimit_nofile_zero_works=no
14689fi
14690rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14691 conftest.$ac_objext conftest.beam conftest.$ac_ext
14692fi
14693
14694
14695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit RLIMIT_FSIZE works" >&5
14696$as_echo_n "checking if setrlimit RLIMIT_FSIZE works... " >&6; }
14697if test "$cross_compiling" = yes; then :
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
14699$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
14700
14701else
14702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14703/* end confdefs.h. */
14704
14705#include <sys/types.h>
14706#include <sys/resource.h>
14707#include <stdlib.h>
14708
14709int
14710main ()
14711{
14712
14713 struct rlimit rl_zero;
14714
14715 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
14716 exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0);
14717
14718 ;
14719 return 0;
14720}
14721_ACEOF
14722if ac_fn_c_try_run "$LINENO"; then :
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14724$as_echo "yes" >&6; }
14725else
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14727$as_echo "no" >&6; }
14728
14729$as_echo "#define SANDBOX_SKIP_RLIMIT_FSIZE 1" >>confdefs.h
14730
14731fi
14732rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14733 conftest.$ac_objext conftest.beam conftest.$ac_ext
14734fi
14735
14736
14737if test "x$sandbox_arg" = "xpledge" || \
14738 ( test -z "$sandbox_arg" && test "x$ac_cv_func_pledge" = "xyes" ) ; then
14739 test "x$ac_cv_func_pledge" != "xyes" && \
14740 as_fn_error $? "pledge sandbox requires pledge(2) support" "$LINENO" 5
14741 SANDBOX_STYLE="pledge"
14742
14743$as_echo "#define SANDBOX_PLEDGE 1" >>confdefs.h
14744
14745elif test "x$sandbox_arg" = "xsystrace" || \
14746 ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then
14747 test "x$have_systr_policy_kill" != "x1" && \
14748 as_fn_error $? "systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" "$LINENO" 5
14749 SANDBOX_STYLE="systrace"
14750
14751$as_echo "#define SANDBOX_SYSTRACE 1" >>confdefs.h
14752
14753elif test "x$sandbox_arg" = "xdarwin" || \
14754 ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \
14755 test "x$ac_cv_header_sandbox_h" = "xyes") ; then
14756 test "x$ac_cv_func_sandbox_init" != "xyes" -o \
14757 "x$ac_cv_header_sandbox_h" != "xyes" && \
14758 as_fn_error $? "Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" "$LINENO" 5
14759 SANDBOX_STYLE="darwin"
14760
14761$as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h
14762
14763elif test "x$sandbox_arg" = "xseccomp_filter" || \
14764 ( test -z "$sandbox_arg" && \
14765 test "x$have_seccomp_filter" = "x1" && \
14766 test "x$ac_cv_header_elf_h" = "xyes" && \
14767 test "x$ac_cv_header_linux_audit_h" = "xyes" && \
14768 test "x$ac_cv_header_linux_filter_h" = "xyes" && \
14769 test "x$seccomp_audit_arch" != "x" && \
14770 test "x$have_linux_no_new_privs" = "x1" && \
14771 test "x$ac_cv_func_prctl" = "xyes" ) ; then
14772 test "x$seccomp_audit_arch" = "x" && \
14773 as_fn_error $? "seccomp_filter sandbox not supported on $host" "$LINENO" 5
14774 test "x$have_linux_no_new_privs" != "x1" && \
14775 as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5
14776 test "x$have_seccomp_filter" != "x1" && \
14777 as_fn_error $? "seccomp_filter sandbox requires seccomp headers" "$LINENO" 5
14778 test "x$ac_cv_func_prctl" != "xyes" && \
14779 as_fn_error $? "seccomp_filter sandbox requires prctl function" "$LINENO" 5
14780 SANDBOX_STYLE="seccomp_filter"
14781
14782$as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h
14783
14784elif test "x$sandbox_arg" = "xcapsicum" || \
14785 ( test -z "$sandbox_arg" && \
14786 test "x$ac_cv_header_sys_capsicum_h" = "xyes" && \
14787 test "x$ac_cv_func_cap_rights_limit" = "xyes") ; then
14788 test "x$ac_cv_header_sys_capsicum_h" != "xyes" && \
14789 as_fn_error $? "capsicum sandbox requires sys/capsicum.h header" "$LINENO" 5
14790 test "x$ac_cv_func_cap_rights_limit" != "xyes" && \
14791 as_fn_error $? "capsicum sandbox requires cap_rights_limit function" "$LINENO" 5
14792 SANDBOX_STYLE="capsicum"
14793
14794$as_echo "#define SANDBOX_CAPSICUM 1" >>confdefs.h
14795
14796elif test "x$sandbox_arg" = "xrlimit" || \
14797 ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \
14798 test "x$select_works_with_rlimit" = "xyes" && \
14799 test "x$rlimit_nofile_zero_works" = "xyes" ) ; then
14800 test "x$ac_cv_func_setrlimit" != "xyes" && \
14801 as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5
14802 test "x$select_works_with_rlimit" != "xyes" && \
14803 as_fn_error $? "rlimit sandbox requires select to work with rlimit" "$LINENO" 5
14804 SANDBOX_STYLE="rlimit"
14805
14806$as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h
14807
14808elif test "x$sandbox_arg" = "xsolaris" || \
14809 ( test -z "$sandbox_arg" && test "x$SOLARIS_PRIVS" = "xyes" ) ; then
14810 SANDBOX_STYLE="solaris"
14811
14812$as_echo "#define SANDBOX_SOLARIS 1" >>confdefs.h
14813
14814elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \
14815 test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then
14816 SANDBOX_STYLE="none"
14817
14818$as_echo "#define SANDBOX_NULL 1" >>confdefs.h
14819
14820else
14821 as_fn_error $? "unsupported --with-sandbox" "$LINENO" 5
14822fi
14823
14824# Cheap hack to ensure NEWS-OS libraries are arranged right.
14825if test ! -z "$SONY" ; then
14826 LIBS="$LIBS -liberty";
14827fi
14828
14829# Check for long long datatypes
14830ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
14831if test "x$ac_cv_type_long_long" = xyes; then :
14832
14833cat >>confdefs.h <<_ACEOF
14834#define HAVE_LONG_LONG 1
14835_ACEOF
14836
14837
14838fi
14839ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
14840if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
14841
14842cat >>confdefs.h <<_ACEOF
14843#define HAVE_UNSIGNED_LONG_LONG 1
14844_ACEOF
14845
14846
14847fi
14848ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
14849if test "x$ac_cv_type_long_double" = xyes; then :
14850
14851cat >>confdefs.h <<_ACEOF
14852#define HAVE_LONG_DOUBLE 1
14853_ACEOF
14854
14855
14856fi
14857
14858
14859# Check datatype sizes
14860# The cast to long int works around a bug in the HP C Compiler
14861# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14862# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14863# This bug is HP SR number 8606223364.
14864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
14865$as_echo_n "checking size of short int... " >&6; }
14866if ${ac_cv_sizeof_short_int+:} false; then :
14867 $as_echo_n "(cached) " >&6
14868else
14869 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
14870
14871else
14872 if test "$ac_cv_type_short_int" = yes; then
14873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14875as_fn_error 77 "cannot compute sizeof (short int)
14876See \`config.log' for more details" "$LINENO" 5; }
14877 else
14878 ac_cv_sizeof_short_int=0
14879 fi
14880fi
14881
14882fi
14883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
14884$as_echo "$ac_cv_sizeof_short_int" >&6; }
14885
14886
14887
14888cat >>confdefs.h <<_ACEOF
14889#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
14890_ACEOF
14891
14892
14893# The cast to long int works around a bug in the HP C Compiler
14894# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14895# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14896# This bug is HP SR number 8606223364.
14897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14898$as_echo_n "checking size of int... " >&6; }
14899if ${ac_cv_sizeof_int+:} false; then :
14900 $as_echo_n "(cached) " >&6
14901else
14902 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14903
14904else
14905 if test "$ac_cv_type_int" = yes; then
14906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14907$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14908as_fn_error 77 "cannot compute sizeof (int)
14909See \`config.log' for more details" "$LINENO" 5; }
14910 else
14911 ac_cv_sizeof_int=0
14912 fi
14913fi
14914
14915fi
14916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14917$as_echo "$ac_cv_sizeof_int" >&6; }
14918
14919
14920
14921cat >>confdefs.h <<_ACEOF
14922#define SIZEOF_INT $ac_cv_sizeof_int
14923_ACEOF
14924
14925
14926# The cast to long int works around a bug in the HP C Compiler
14927# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14928# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14929# This bug is HP SR number 8606223364.
14930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
14931$as_echo_n "checking size of long int... " >&6; }
14932if ${ac_cv_sizeof_long_int+:} false; then :
14933 $as_echo_n "(cached) " >&6
14934else
14935 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
14936
14937else
14938 if test "$ac_cv_type_long_int" = yes; then
14939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14940$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14941as_fn_error 77 "cannot compute sizeof (long int)
14942See \`config.log' for more details" "$LINENO" 5; }
14943 else
14944 ac_cv_sizeof_long_int=0
14945 fi
14946fi
14947
14948fi
14949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
14950$as_echo "$ac_cv_sizeof_long_int" >&6; }
14951
14952
14953
14954cat >>confdefs.h <<_ACEOF
14955#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
14956_ACEOF
14957
14958
14959# The cast to long int works around a bug in the HP C Compiler
14960# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14961# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14962# This bug is HP SR number 8606223364.
14963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
14964$as_echo_n "checking size of long long int... " >&6; }
14965if ${ac_cv_sizeof_long_long_int+:} false; then :
14966 $as_echo_n "(cached) " >&6
14967else
14968 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
14969
14970else
14971 if test "$ac_cv_type_long_long_int" = yes; then
14972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14973$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14974as_fn_error 77 "cannot compute sizeof (long long int)
14975See \`config.log' for more details" "$LINENO" 5; }
14976 else
14977 ac_cv_sizeof_long_long_int=0
14978 fi
14979fi
14980
14981fi
14982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
14983$as_echo "$ac_cv_sizeof_long_long_int" >&6; }
14984
14985
14986
14987cat >>confdefs.h <<_ACEOF
14988#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14989_ACEOF
14990
14991
14992
14993# Sanity check long long for some platforms (AIX)
14994if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
14995 ac_cv_sizeof_long_long_int=0
14996fi
14997
14998# compute LLONG_MIN and LLONG_MAX if we don't know them.
14999if test -z "$have_llong_max"; then
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5
15001$as_echo_n "checking for max value of long long... " >&6; }
15002 if test "$cross_compiling" = yes; then :
15003
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
15005$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
15006
15007
15008else
15009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15010/* end confdefs.h. */
15011
15012#include <stdio.h>
15013/* Why is this so damn hard? */
15014#ifdef __GNUC__
15015# undef __GNUC__
15016#endif
15017#define __USE_ISOC99
15018#include <limits.h>
15019#define DATA "conftest.llminmax"
15020#define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
15021
15022/*
15023 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
15024 * we do this the hard way.
15025 */
15026static int
15027fprint_ll(FILE *f, long long n)
15028{
15029 unsigned int i;
15030 int l[sizeof(long long) * 8];
15031
15032 if (n < 0)
15033 if (fprintf(f, "-") < 0)
15034 return -1;
15035 for (i = 0; n != 0; i++) {
15036 l[i] = my_abs(n % 10);
15037 n /= 10;
15038 }
15039 do {
15040 if (fprintf(f, "%d", l[--i]) < 0)
15041 return -1;
15042 } while (i != 0);
15043 if (fprintf(f, " ") < 0)
15044 return -1;
15045 return 0;
15046}
15047
15048int
15049main ()
15050{
15051
15052 FILE *f;
15053 long long i, llmin, llmax = 0;
15054
15055 if((f = fopen(DATA,"w")) == NULL)
15056 exit(1);
15057
15058#if defined(LLONG_MIN) && defined(LLONG_MAX)
15059 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
15060 llmin = LLONG_MIN;
15061 llmax = LLONG_MAX;
15062#else
15063 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
15064 /* This will work on one's complement and two's complement */
15065 for (i = 1; i > llmax; i <<= 1, i++)
15066 llmax = i;
15067 llmin = llmax + 1LL; /* wrap */
15068#endif
15069
15070 /* Sanity check */
15071 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
15072 || llmax - 1 > llmax || llmin == llmax || llmin == 0
15073 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
15074 fprintf(f, "unknown unknown\n");
15075 exit(2);
15076 }
15077
15078 if (fprint_ll(f, llmin) < 0)
15079 exit(3);
15080 if (fprint_ll(f, llmax) < 0)
15081 exit(4);
15082 if (fclose(f) < 0)
15083 exit(5);
15084 exit(0);
15085
15086 ;
15087 return 0;
15088}
15089_ACEOF
15090if ac_fn_c_try_run "$LINENO"; then :
15091
15092 llong_min=`$AWK '{print $1}' conftest.llminmax`
15093 llong_max=`$AWK '{print $2}' conftest.llminmax`
15094
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5
15096$as_echo "$llong_max" >&6; }
15097
15098cat >>confdefs.h <<_ACEOF
15099#define LLONG_MAX ${llong_max}LL
15100_ACEOF
15101
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5
15103$as_echo_n "checking for min value of long long... " >&6; }
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5
15105$as_echo "$llong_min" >&6; }
15106
15107cat >>confdefs.h <<_ACEOF
15108#define LLONG_MIN ${llong_min}LL
15109_ACEOF
15110
15111
15112else
15113
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15115$as_echo "not found" >&6; }
15116
15117fi
15118rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15119 conftest.$ac_objext conftest.beam conftest.$ac_ext
15120fi
15121
15122fi
15123
15124ac_fn_c_check_decl "$LINENO" "UINT32_MAX" "ac_cv_have_decl_UINT32_MAX" "
15125#ifdef HAVE_SYS_LIMITS_H
15126# include <sys/limits.h>
15127#endif
15128#ifdef HAVE_LIMITS_H
15129# include <limits.h>
15130#endif
15131#ifdef HAVE_STDINT_H
15132# include <stdint.h>
15133#endif
15134
15135"
15136if test "x$ac_cv_have_decl_UINT32_MAX" = xyes; then :
15137 ac_have_decl=1
15138else
15139 ac_have_decl=0
15140fi
15141
15142cat >>confdefs.h <<_ACEOF
15143#define HAVE_DECL_UINT32_MAX $ac_have_decl
15144_ACEOF
15145
15146
15147# More checks for data types
15148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
15149$as_echo_n "checking for u_int type... " >&6; }
15150if ${ac_cv_have_u_int+:} false; then :
15151 $as_echo_n "(cached) " >&6
15152else
15153
15154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15155/* end confdefs.h. */
15156 #include <sys/types.h>
15157int
15158main ()
15159{
15160 u_int a; a = 1;
15161 ;
15162 return 0;
15163}
15164_ACEOF
15165if ac_fn_c_try_compile "$LINENO"; then :
15166 ac_cv_have_u_int="yes"
15167else
15168 ac_cv_have_u_int="no"
15169
15170fi
15171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15172
15173fi
15174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
15175$as_echo "$ac_cv_have_u_int" >&6; }
15176if test "x$ac_cv_have_u_int" = "xyes" ; then
15177
15178$as_echo "#define HAVE_U_INT 1" >>confdefs.h
15179
15180 have_u_int=1
15181fi
15182
15183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
15184$as_echo_n "checking for intXX_t types... " >&6; }
15185if ${ac_cv_have_intxx_t+:} false; then :
15186 $as_echo_n "(cached) " >&6
15187else
15188
15189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15190/* end confdefs.h. */
15191 #include <sys/types.h>
15192int
15193main ()
15194{
15195 int8_t a; int16_t b; int32_t c; a = b = c = 1;
15196 ;
15197 return 0;
15198}
15199_ACEOF
15200if ac_fn_c_try_compile "$LINENO"; then :
15201 ac_cv_have_intxx_t="yes"
15202else
15203 ac_cv_have_intxx_t="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_intxx_t" >&5
15210$as_echo "$ac_cv_have_intxx_t" >&6; }
15211if test "x$ac_cv_have_intxx_t" = "xyes" ; then
15212
15213$as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
15214
15215 have_intxx_t=1
15216fi
15217
15218if (test -z "$have_intxx_t" && \
15219 test "x$ac_cv_header_stdint_h" = "xyes")
15220then
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5
15222$as_echo_n "checking for intXX_t types in stdint.h... " >&6; }
15223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15224/* end confdefs.h. */
15225 #include <stdint.h>
15226int
15227main ()
15228{
15229 int8_t a; int16_t b; int32_t c; a = b = c = 1;
15230 ;
15231 return 0;
15232}
15233_ACEOF
15234if ac_fn_c_try_compile "$LINENO"; then :
15235
15236 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
15237
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15239$as_echo "yes" >&6; }
15240
15241else
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15243$as_echo "no" >&6; }
15244
15245fi
15246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15247fi
15248
15249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
15250$as_echo_n "checking for int64_t type... " >&6; }
15251if ${ac_cv_have_int64_t+:} false; then :
15252 $as_echo_n "(cached) " >&6
15253else
15254
15255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15256/* end confdefs.h. */
15257
15258#include <sys/types.h>
15259#ifdef HAVE_STDINT_H
15260# include <stdint.h>
15261#endif
15262#include <sys/socket.h>
15263#ifdef HAVE_SYS_BITYPES_H
15264# include <sys/bitypes.h>
15265#endif
15266
15267int
15268main ()
15269{
15270
15271int64_t a; a = 1;
15272
15273 ;
15274 return 0;
15275}
15276_ACEOF
15277if ac_fn_c_try_compile "$LINENO"; then :
15278 ac_cv_have_int64_t="yes"
15279else
15280 ac_cv_have_int64_t="no"
15281
15282fi
15283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15284
15285fi
15286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
15287$as_echo "$ac_cv_have_int64_t" >&6; }
15288if test "x$ac_cv_have_int64_t" = "xyes" ; then
15289
15290$as_echo "#define HAVE_INT64_T 1" >>confdefs.h
15291
15292fi
15293
15294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
15295$as_echo_n "checking for u_intXX_t types... " >&6; }
15296if ${ac_cv_have_u_intxx_t+:} false; then :
15297 $as_echo_n "(cached) " >&6
15298else
15299
15300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15301/* end confdefs.h. */
15302 #include <sys/types.h>
15303int
15304main ()
15305{
15306 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
15307 ;
15308 return 0;
15309}
15310_ACEOF
15311if ac_fn_c_try_compile "$LINENO"; then :
15312 ac_cv_have_u_intxx_t="yes"
15313else
15314 ac_cv_have_u_intxx_t="no"
15315
15316fi
15317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15318
15319fi
15320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
15321$as_echo "$ac_cv_have_u_intxx_t" >&6; }
15322if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
15323
15324$as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
15325
15326 have_u_intxx_t=1
15327fi
15328
15329if test -z "$have_u_intxx_t" ; then
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5
15331$as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; }
15332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333/* end confdefs.h. */
15334 #include <sys/socket.h>
15335int
15336main ()
15337{
15338 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
15339 ;
15340 return 0;
15341}
15342_ACEOF
15343if ac_fn_c_try_compile "$LINENO"; then :
15344
15345 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
15346
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15348$as_echo "yes" >&6; }
15349
15350else
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15352$as_echo "no" >&6; }
15353
15354fi
15355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15356fi
15357
15358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
15359$as_echo_n "checking for u_int64_t types... " >&6; }
15360if ${ac_cv_have_u_int64_t+:} false; then :
15361 $as_echo_n "(cached) " >&6
15362else
15363
15364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15365/* end confdefs.h. */
15366 #include <sys/types.h>
15367int
15368main ()
15369{
15370 u_int64_t a; a = 1;
15371 ;
15372 return 0;
15373}
15374_ACEOF
15375if ac_fn_c_try_compile "$LINENO"; then :
15376 ac_cv_have_u_int64_t="yes"
15377else
15378 ac_cv_have_u_int64_t="no"
15379
15380fi
15381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15382
15383fi
15384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
15385$as_echo "$ac_cv_have_u_int64_t" >&6; }
15386if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
15387
15388$as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
15389
15390 have_u_int64_t=1
15391fi
15392
15393if (test -z "$have_u_int64_t" && \
15394 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15395then
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5
15397$as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; }
15398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15399/* end confdefs.h. */
15400 #include <sys/bitypes.h>
15401int
15402main ()
15403{
15404 u_int64_t a; a = 1
15405 ;
15406 return 0;
15407}
15408_ACEOF
15409if ac_fn_c_try_compile "$LINENO"; then :
15410
15411 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
15412
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15414$as_echo "yes" >&6; }
15415
15416else
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15418$as_echo "no" >&6; }
15419
15420fi
15421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15422fi
15423
15424if test -z "$have_u_intxx_t" ; then
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
15426$as_echo_n "checking for uintXX_t types... " >&6; }
15427if ${ac_cv_have_uintxx_t+:} false; then :
15428 $as_echo_n "(cached) " >&6
15429else
15430
15431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15432/* end confdefs.h. */
15433
15434#include <sys/types.h>
15435
15436int
15437main ()
15438{
15439
15440 uint8_t a;
15441 uint16_t b;
15442 uint32_t c;
15443 a = b = c = 1;
15444
15445 ;
15446 return 0;
15447}
15448_ACEOF
15449if ac_fn_c_try_compile "$LINENO"; then :
15450 ac_cv_have_uintxx_t="yes"
15451else
15452 ac_cv_have_uintxx_t="no"
15453
15454fi
15455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15456
15457fi
15458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
15459$as_echo "$ac_cv_have_uintxx_t" >&6; }
15460 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15461
15462$as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
15463
15464 fi
15465fi
15466
15467if (test -z "$have_uintxx_t" && \
15468 test "x$ac_cv_header_stdint_h" = "xyes")
15469then
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5
15471$as_echo_n "checking for uintXX_t types in stdint.h... " >&6; }
15472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15473/* end confdefs.h. */
15474 #include <stdint.h>
15475int
15476main ()
15477{
15478 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
15479 ;
15480 return 0;
15481}
15482_ACEOF
15483if ac_fn_c_try_compile "$LINENO"; then :
15484
15485 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
15486
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15488$as_echo "yes" >&6; }
15489
15490else
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15492$as_echo "no" >&6; }
15493
15494fi
15495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15496fi
15497
15498if (test -z "$have_uintxx_t" && \
15499 test "x$ac_cv_header_inttypes_h" = "xyes")
15500then
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in inttypes.h" >&5
15502$as_echo_n "checking for uintXX_t types in inttypes.h... " >&6; }
15503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15504/* end confdefs.h. */
15505 #include <inttypes.h>
15506int
15507main ()
15508{
15509 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
15510 ;
15511 return 0;
15512}
15513_ACEOF
15514if ac_fn_c_try_compile "$LINENO"; then :
15515
15516 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
15517
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15519$as_echo "yes" >&6; }
15520
15521else
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15523$as_echo "no" >&6; }
15524
15525fi
15526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15527fi
15528
15529if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
15530 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15531then
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
15533$as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
15534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15535/* end confdefs.h. */
15536
15537#include <sys/bitypes.h>
15538
15539int
15540main ()
15541{
15542
15543 int8_t a; int16_t b; int32_t c;
15544 u_int8_t e; u_int16_t f; u_int32_t g;
15545 a = b = c = e = f = g = 1;
15546
15547 ;
15548 return 0;
15549}
15550_ACEOF
15551if ac_fn_c_try_compile "$LINENO"; then :
15552
15553 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
15554
15555 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
15556
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15558$as_echo "yes" >&6; }
15559
15560else
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15562$as_echo "no" >&6; }
15563
15564fi
15565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15566fi
15567
15568
15569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5
15570$as_echo_n "checking for u_char... " >&6; }
15571if ${ac_cv_have_u_char+:} false; then :
15572 $as_echo_n "(cached) " >&6
15573else
15574
15575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15576/* end confdefs.h. */
15577 #include <sys/types.h>
15578int
15579main ()
15580{
15581 u_char foo; foo = 125;
15582 ;
15583 return 0;
15584}
15585_ACEOF
15586if ac_fn_c_try_compile "$LINENO"; then :
15587 ac_cv_have_u_char="yes"
15588else
15589 ac_cv_have_u_char="no"
15590
15591fi
15592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15593
15594fi
15595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5
15596$as_echo "$ac_cv_have_u_char" >&6; }
15597if test "x$ac_cv_have_u_char" = "xyes" ; then
15598
15599$as_echo "#define HAVE_U_CHAR 1" >>confdefs.h
15600
15601fi
15602
15603ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "
15604#include <sys/types.h>
15605#ifdef HAVE_STDINT_H
15606# include <stdint.h>
15607#endif
15608
15609"
15610if test "x$ac_cv_type_intmax_t" = xyes; then :
15611
15612cat >>confdefs.h <<_ACEOF
15613#define HAVE_INTMAX_T 1
15614_ACEOF
15615
15616
15617fi
15618ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "
15619#include <sys/types.h>
15620#ifdef HAVE_STDINT_H
15621# include <stdint.h>
15622#endif
15623
15624"
15625if test "x$ac_cv_type_uintmax_t" = xyes; then :
15626
15627cat >>confdefs.h <<_ACEOF
15628#define HAVE_UINTMAX_T 1
15629_ACEOF
15630
15631
15632fi
15633
15634
15635
15636 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
15637#include <sys/socket.h>
15638"
15639if test "x$ac_cv_type_socklen_t" = xyes; then :
15640
15641else
15642
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
15644$as_echo_n "checking for socklen_t equivalent... " >&6; }
15645 if ${curl_cv_socklen_t_equiv+:} false; then :
15646 $as_echo_n "(cached) " >&6
15647else
15648
15649 # Systems have either "struct sockaddr *" or
15650 # "void *" as the second argument to getpeername
15651 curl_cv_socklen_t_equiv=
15652 for arg2 in "struct sockaddr" void; do
15653 for t in int size_t unsigned long "unsigned long"; do
15654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15655/* end confdefs.h. */
15656
15657 #include <sys/types.h>
15658 #include <sys/socket.h>
15659
15660 int getpeername (int, $arg2 *, $t *);
15661
15662int
15663main ()
15664{
15665
15666 $t len;
15667 getpeername(0,0,&len);
15668
15669 ;
15670 return 0;
15671}
15672_ACEOF
15673if ac_fn_c_try_compile "$LINENO"; then :
15674
15675 curl_cv_socklen_t_equiv="$t"
15676 break
15677
15678fi
15679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15680 done
15681 done
15682
15683 if test "x$curl_cv_socklen_t_equiv" = x; then
15684 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
15685 fi
15686
15687fi
15688
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
15690$as_echo "$curl_cv_socklen_t_equiv" >&6; }
15691
15692cat >>confdefs.h <<_ACEOF
15693#define socklen_t $curl_cv_socklen_t_equiv
15694_ACEOF
15695
15696fi
15697
15698
15699
15700ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
15701"
15702if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
15703
15704cat >>confdefs.h <<_ACEOF
15705#define HAVE_SIG_ATOMIC_T 1
15706_ACEOF
15707
15708
15709fi
15710
15711ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "
15712#include <sys/types.h>
15713#ifdef HAVE_SYS_BITYPES_H
15714#include <sys/bitypes.h>
15715#endif
15716#ifdef HAVE_SYS_STATFS_H
15717#include <sys/statfs.h>
15718#endif
15719#ifdef HAVE_SYS_STATVFS_H
15720#include <sys/statvfs.h>
15721#endif
15722
15723"
15724if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
15725
15726cat >>confdefs.h <<_ACEOF
15727#define HAVE_FSBLKCNT_T 1
15728_ACEOF
15729
15730
15731fi
15732ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "
15733#include <sys/types.h>
15734#ifdef HAVE_SYS_BITYPES_H
15735#include <sys/bitypes.h>
15736#endif
15737#ifdef HAVE_SYS_STATFS_H
15738#include <sys/statfs.h>
15739#endif
15740#ifdef HAVE_SYS_STATVFS_H
15741#include <sys/statvfs.h>
15742#endif
15743
15744"
15745if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
15746
15747cat >>confdefs.h <<_ACEOF
15748#define HAVE_FSFILCNT_T 1
15749_ACEOF
15750
15751
15752fi
15753
15754
15755ac_fn_c_check_member "$LINENO" "struct statfs" "f_files" "ac_cv_member_struct_statfs_f_files" "
15756#include <sys/param.h>
15757#include <sys/types.h>
15758#ifdef HAVE_SYS_BITYPES_H
15759#include <sys/bitypes.h>
15760#endif
15761#ifdef HAVE_SYS_STATFS_H
15762#include <sys/statfs.h>
15763#endif
15764#ifdef HAVE_SYS_STATVFS_H
15765#include <sys/statvfs.h>
15766#endif
15767#ifdef HAVE_SYS_VFS_H
15768#include <sys/vfs.h>
15769#endif
15770#ifdef HAVE_SYS_MOUNT_H
15771#include <sys/mount.h>
15772#endif
15773
15774"
15775if test "x$ac_cv_member_struct_statfs_f_files" = xyes; then :
15776
15777cat >>confdefs.h <<_ACEOF
15778#define HAVE_STRUCT_STATFS_F_FILES 1
15779_ACEOF
15780
15781
15782fi
15783ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" "
15784#include <sys/param.h>
15785#include <sys/types.h>
15786#ifdef HAVE_SYS_BITYPES_H
15787#include <sys/bitypes.h>
15788#endif
15789#ifdef HAVE_SYS_STATFS_H
15790#include <sys/statfs.h>
15791#endif
15792#ifdef HAVE_SYS_STATVFS_H
15793#include <sys/statvfs.h>
15794#endif
15795#ifdef HAVE_SYS_VFS_H
15796#include <sys/vfs.h>
15797#endif
15798#ifdef HAVE_SYS_MOUNT_H
15799#include <sys/mount.h>
15800#endif
15801
15802"
15803if test "x$ac_cv_member_struct_statfs_f_flags" = xyes; then :
15804
15805cat >>confdefs.h <<_ACEOF
15806#define HAVE_STRUCT_STATFS_F_FLAGS 1
15807_ACEOF
15808
15809
15810fi
15811
15812
15813
15814ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h>
15815#include <netinet/in.h>
15816"
15817if test "x$ac_cv_type_in_addr_t" = xyes; then :
15818
15819cat >>confdefs.h <<_ACEOF
15820#define HAVE_IN_ADDR_T 1
15821_ACEOF
15822
15823
15824fi
15825ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
15826#include <netinet/in.h>
15827"
15828if test "x$ac_cv_type_in_port_t" = xyes; then :
15829
15830cat >>confdefs.h <<_ACEOF
15831#define HAVE_IN_PORT_T 1
15832_ACEOF
15833
15834
15835fi
15836
15837
15838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
15839$as_echo_n "checking for size_t... " >&6; }
15840if ${ac_cv_have_size_t+:} false; then :
15841 $as_echo_n "(cached) " >&6
15842else
15843
15844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15845/* end confdefs.h. */
15846 #include <sys/types.h>
15847int
15848main ()
15849{
15850 size_t foo; foo = 1235;
15851 ;
15852 return 0;
15853}
15854_ACEOF
15855if ac_fn_c_try_compile "$LINENO"; then :
15856 ac_cv_have_size_t="yes"
15857else
15858 ac_cv_have_size_t="no"
15859
15860fi
15861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15862
15863fi
15864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5
15865$as_echo "$ac_cv_have_size_t" >&6; }
15866if test "x$ac_cv_have_size_t" = "xyes" ; then
15867
15868$as_echo "#define HAVE_SIZE_T 1" >>confdefs.h
15869
15870fi
15871
15872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
15873$as_echo_n "checking for ssize_t... " >&6; }
15874if ${ac_cv_have_ssize_t+:} false; then :
15875 $as_echo_n "(cached) " >&6
15876else
15877
15878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879/* end confdefs.h. */
15880 #include <sys/types.h>
15881int
15882main ()
15883{
15884 ssize_t foo; foo = 1235;
15885 ;
15886 return 0;
15887}
15888_ACEOF
15889if ac_fn_c_try_compile "$LINENO"; then :
15890 ac_cv_have_ssize_t="yes"
15891else
15892 ac_cv_have_ssize_t="no"
15893
15894fi
15895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15896
15897fi
15898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5
15899$as_echo "$ac_cv_have_ssize_t" >&6; }
15900if test "x$ac_cv_have_ssize_t" = "xyes" ; then
15901
15902$as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
15903
15904fi
15905
15906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
15907$as_echo_n "checking for clock_t... " >&6; }
15908if ${ac_cv_have_clock_t+:} false; then :
15909 $as_echo_n "(cached) " >&6
15910else
15911
15912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15913/* end confdefs.h. */
15914 #include <time.h>
15915int
15916main ()
15917{
15918 clock_t foo; foo = 1235;
15919 ;
15920 return 0;
15921}
15922_ACEOF
15923if ac_fn_c_try_compile "$LINENO"; then :
15924 ac_cv_have_clock_t="yes"
15925else
15926 ac_cv_have_clock_t="no"
15927
15928fi
15929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15930
15931fi
15932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5
15933$as_echo "$ac_cv_have_clock_t" >&6; }
15934if test "x$ac_cv_have_clock_t" = "xyes" ; then
15935
15936$as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
15937
15938fi
15939
15940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5
15941$as_echo_n "checking for sa_family_t... " >&6; }
15942if ${ac_cv_have_sa_family_t+:} false; then :
15943 $as_echo_n "(cached) " >&6
15944else
15945
15946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15947/* end confdefs.h. */
15948
15949#include <sys/types.h>
15950#include <sys/socket.h>
15951
15952int
15953main ()
15954{
15955 sa_family_t foo; foo = 1235;
15956 ;
15957 return 0;
15958}
15959_ACEOF
15960if ac_fn_c_try_compile "$LINENO"; then :
15961 ac_cv_have_sa_family_t="yes"
15962else
15963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15964/* end confdefs.h. */
15965
15966#include <sys/types.h>
15967#include <sys/socket.h>
15968#include <netinet/in.h>
15969
15970int
15971main ()
15972{
15973 sa_family_t foo; foo = 1235;
15974 ;
15975 return 0;
15976}
15977_ACEOF
15978if ac_fn_c_try_compile "$LINENO"; then :
15979 ac_cv_have_sa_family_t="yes"
15980else
15981 ac_cv_have_sa_family_t="no"
15982
15983fi
15984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15985
15986fi
15987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15988
15989fi
15990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5
15991$as_echo "$ac_cv_have_sa_family_t" >&6; }
15992if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
15993
15994$as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h
15995
15996fi
15997
15998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5
15999$as_echo_n "checking for pid_t... " >&6; }
16000if ${ac_cv_have_pid_t+:} false; then :
16001 $as_echo_n "(cached) " >&6
16002else
16003
16004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16005/* end confdefs.h. */
16006 #include <sys/types.h>
16007int
16008main ()
16009{
16010 pid_t foo; foo = 1235;
16011 ;
16012 return 0;
16013}
16014_ACEOF
16015if ac_fn_c_try_compile "$LINENO"; then :
16016 ac_cv_have_pid_t="yes"
16017else
16018 ac_cv_have_pid_t="no"
16019
16020fi
16021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16022
16023fi
16024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5
16025$as_echo "$ac_cv_have_pid_t" >&6; }
16026if test "x$ac_cv_have_pid_t" = "xyes" ; then
16027
16028$as_echo "#define HAVE_PID_T 1" >>confdefs.h
16029
16030fi
16031
16032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5
16033$as_echo_n "checking for mode_t... " >&6; }
16034if ${ac_cv_have_mode_t+:} false; then :
16035 $as_echo_n "(cached) " >&6
16036else
16037
16038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16039/* end confdefs.h. */
16040 #include <sys/types.h>
16041int
16042main ()
16043{
16044 mode_t foo; foo = 1235;
16045 ;
16046 return 0;
16047}
16048_ACEOF
16049if ac_fn_c_try_compile "$LINENO"; then :
16050 ac_cv_have_mode_t="yes"
16051else
16052 ac_cv_have_mode_t="no"
16053
16054fi
16055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16056
16057fi
16058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5
16059$as_echo "$ac_cv_have_mode_t" >&6; }
16060if test "x$ac_cv_have_mode_t" = "xyes" ; then
16061
16062$as_echo "#define HAVE_MODE_T 1" >>confdefs.h
16063
16064fi
16065
16066
16067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
16068$as_echo_n "checking for struct sockaddr_storage... " >&6; }
16069if ${ac_cv_have_struct_sockaddr_storage+:} false; then :
16070 $as_echo_n "(cached) " >&6
16071else
16072
16073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16074/* end confdefs.h. */
16075
16076#include <sys/types.h>
16077#include <sys/socket.h>
16078
16079int
16080main ()
16081{
16082 struct sockaddr_storage s;
16083 ;
16084 return 0;
16085}
16086_ACEOF
16087if ac_fn_c_try_compile "$LINENO"; then :
16088 ac_cv_have_struct_sockaddr_storage="yes"
16089else
16090 ac_cv_have_struct_sockaddr_storage="no"
16091
16092fi
16093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16094
16095fi
16096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5
16097$as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; }
16098if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
16099
16100$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
16101
16102fi
16103
16104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
16105$as_echo_n "checking for struct sockaddr_in6... " >&6; }
16106if ${ac_cv_have_struct_sockaddr_in6+:} false; then :
16107 $as_echo_n "(cached) " >&6
16108else
16109
16110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16111/* end confdefs.h. */
16112
16113#include <sys/types.h>
16114#include <netinet/in.h>
16115
16116int
16117main ()
16118{
16119 struct sockaddr_in6 s; s.sin6_family = 0;
16120 ;
16121 return 0;
16122}
16123_ACEOF
16124if ac_fn_c_try_compile "$LINENO"; then :
16125 ac_cv_have_struct_sockaddr_in6="yes"
16126else
16127 ac_cv_have_struct_sockaddr_in6="no"
16128
16129fi
16130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16131
16132fi
16133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5
16134$as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; }
16135if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
16136
16137$as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
16138
16139fi
16140
16141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
16142$as_echo_n "checking for struct in6_addr... " >&6; }
16143if ${ac_cv_have_struct_in6_addr+:} false; then :
16144 $as_echo_n "(cached) " >&6
16145else
16146
16147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16148/* end confdefs.h. */
16149
16150#include <sys/types.h>
16151#include <netinet/in.h>
16152
16153int
16154main ()
16155{
16156 struct in6_addr s; s.s6_addr[0] = 0;
16157 ;
16158 return 0;
16159}
16160_ACEOF
16161if ac_fn_c_try_compile "$LINENO"; then :
16162 ac_cv_have_struct_in6_addr="yes"
16163else
16164 ac_cv_have_struct_in6_addr="no"
16165
16166fi
16167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16168
16169fi
16170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5
16171$as_echo "$ac_cv_have_struct_in6_addr" >&6; }
16172if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
16173
16174$as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
16175
16176
16177 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
16178#ifdef HAVE_SYS_TYPES_H
16179#include <sys/types.h>
16180#endif
16181#include <netinet/in.h>
16182
16183"
16184if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
16185
16186cat >>confdefs.h <<_ACEOF
16187#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
16188_ACEOF
16189
16190
16191fi
16192
16193fi
16194
16195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
16196$as_echo_n "checking for struct addrinfo... " >&6; }
16197if ${ac_cv_have_struct_addrinfo+:} false; then :
16198 $as_echo_n "(cached) " >&6
16199else
16200
16201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16202/* end confdefs.h. */
16203
16204#include <sys/types.h>
16205#include <sys/socket.h>
16206#include <netdb.h>
16207
16208int
16209main ()
16210{
16211 struct addrinfo s; s.ai_flags = AI_PASSIVE;
16212 ;
16213 return 0;
16214}
16215_ACEOF
16216if ac_fn_c_try_compile "$LINENO"; then :
16217 ac_cv_have_struct_addrinfo="yes"
16218else
16219 ac_cv_have_struct_addrinfo="no"
16220
16221fi
16222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16223
16224fi
16225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5
16226$as_echo "$ac_cv_have_struct_addrinfo" >&6; }
16227if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
16228
16229$as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
16230
16231fi
16232
16233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16234$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16235if ${ac_cv_header_time+:} false; then :
16236 $as_echo_n "(cached) " >&6
16237else
16238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16239/* end confdefs.h. */
16240#include <sys/types.h>
16241#include <sys/time.h>
16242#include <time.h>
16243
16244int
16245main ()
16246{
16247if ((struct tm *) 0)
16248return 0;
16249 ;
16250 return 0;
16251}
16252_ACEOF
16253if ac_fn_c_try_compile "$LINENO"; then :
16254 ac_cv_header_time=yes
16255else
16256 ac_cv_header_time=no
16257fi
16258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16259fi
16260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16261$as_echo "$ac_cv_header_time" >&6; }
16262if test $ac_cv_header_time = yes; then
16263
16264$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16265
16266fi
16267
16268
16269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
16270$as_echo_n "checking for struct timeval... " >&6; }
16271if ${ac_cv_have_struct_timeval+:} false; then :
16272 $as_echo_n "(cached) " >&6
16273else
16274
16275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16276/* end confdefs.h. */
16277 #include <sys/time.h>
16278int
16279main ()
16280{
16281 struct timeval tv; tv.tv_sec = 1;
16282 ;
16283 return 0;
16284}
16285_ACEOF
16286if ac_fn_c_try_compile "$LINENO"; then :
16287 ac_cv_have_struct_timeval="yes"
16288else
16289 ac_cv_have_struct_timeval="no"
16290
16291fi
16292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16293
16294fi
16295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5
16296$as_echo "$ac_cv_have_struct_timeval" >&6; }
16297if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
16298
16299$as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
16300
16301 have_struct_timeval=1
16302fi
16303
16304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
16305$as_echo_n "checking for struct timespec... " >&6; }
16306if ${ac_cv_have_struct_timespec+:} false; then :
16307 $as_echo_n "(cached) " >&6
16308else
16309
16310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16311/* end confdefs.h. */
16312
16313 #ifdef TIME_WITH_SYS_TIME
16314 # include <sys/time.h>
16315 # include <time.h>
16316 #else
16317 # ifdef HAVE_SYS_TIME_H
16318 # include <sys/time.h>
16319 # else
16320 # include <time.h>
16321 # endif
16322 #endif
16323
16324int
16325main ()
16326{
16327 struct timespec ts; ts.tv_sec = 1;
16328 ;
16329 return 0;
16330}
16331_ACEOF
16332if ac_fn_c_try_compile "$LINENO"; then :
16333 ac_cv_have_struct_timespec="yes"
16334else
16335 ac_cv_have_struct_timespec="no"
16336
16337fi
16338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16339
16340fi
16341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timespec" >&5
16342$as_echo "$ac_cv_have_struct_timespec" >&6; }
16343if test "x$ac_cv_have_struct_timespec" = "xyes" ; then
16344
16345$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
16346
16347 have_struct_timespec=1
16348fi
16349
16350# We need int64_t or else certain parts of the compile will fail.
16351if test "x$ac_cv_have_int64_t" = "xno" && \
16352 test "x$ac_cv_sizeof_long_int" != "x8" && \
16353 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
16354 echo "OpenSSH requires int64_t support. Contact your vendor or install"
16355 echo "an alternative compiler (I.E., GCC) before continuing."
16356 echo ""
16357 exit 1;
16358else
16359 if test "$cross_compiling" = yes; then :
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
16361$as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
16362
16363else
16364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16365/* end confdefs.h. */
16366
16367#include <stdio.h>
16368#include <string.h>
16369#ifdef HAVE_SNPRINTF
16370main()
16371{
16372 char buf[50];
16373 char expected_out[50];
16374 int mazsize = 50 ;
16375#if (SIZEOF_LONG_INT == 8)
16376 long int num = 0x7fffffffffffffff;
16377#else
16378 long long num = 0x7fffffffffffffffll;
16379#endif
16380 strcpy(expected_out, "9223372036854775807");
16381 snprintf(buf, mazsize, "%lld", num);
16382 if(strcmp(buf, expected_out) != 0)
16383 exit(1);
16384 exit(0);
16385}
16386#else
16387main() { exit(0); }
16388#endif
16389
16390_ACEOF
16391if ac_fn_c_try_run "$LINENO"; then :
16392 true
16393else
16394 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
16395
16396fi
16397rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16398 conftest.$ac_objext conftest.beam conftest.$ac_ext
16399fi
16400
16401fi
16402
16403
16404# look for field 'ut_host' in header 'utmp.h'
16405 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
16406 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5
16408$as_echo_n "checking for ut_host field in utmp.h... " >&6; }
16409 if eval \${$ossh_varname+:} false; then :
16410 $as_echo_n "(cached) " >&6
16411else
16412
16413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16414/* end confdefs.h. */
16415#include <utmp.h>
16416
16417_ACEOF
16418if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16419 $EGREP "ut_host" >/dev/null 2>&1; then :
16420 eval "$ossh_varname=yes"
16421else
16422 eval "$ossh_varname=no"
16423fi
16424rm -f conftest*
16425
16426fi
16427
16428 ossh_result=`eval 'echo $'"$ossh_varname"`
16429 if test -n "`echo $ossh_varname`"; then
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16431$as_echo "$ossh_result" >&6; }
16432 if test "x$ossh_result" = "xyes"; then
16433
16434$as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h
16435
16436 fi
16437 else
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16439$as_echo "no" >&6; }
16440 fi
16441
16442
16443# look for field 'ut_host' in header 'utmpx.h'
16444 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
16445 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5
16447$as_echo_n "checking for ut_host field in utmpx.h... " >&6; }
16448 if eval \${$ossh_varname+:} false; then :
16449 $as_echo_n "(cached) " >&6
16450else
16451
16452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16453/* end confdefs.h. */
16454#include <utmpx.h>
16455
16456_ACEOF
16457if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16458 $EGREP "ut_host" >/dev/null 2>&1; then :
16459 eval "$ossh_varname=yes"
16460else
16461 eval "$ossh_varname=no"
16462fi
16463rm -f conftest*
16464
16465fi
16466
16467 ossh_result=`eval 'echo $'"$ossh_varname"`
16468 if test -n "`echo $ossh_varname`"; then
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16470$as_echo "$ossh_result" >&6; }
16471 if test "x$ossh_result" = "xyes"; then
16472
16473$as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h
16474
16475 fi
16476 else
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16478$as_echo "no" >&6; }
16479 fi
16480
16481
16482# look for field 'syslen' in header 'utmpx.h'
16483 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
16484 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5
16486$as_echo_n "checking for syslen field in utmpx.h... " >&6; }
16487 if eval \${$ossh_varname+:} false; then :
16488 $as_echo_n "(cached) " >&6
16489else
16490
16491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16492/* end confdefs.h. */
16493#include <utmpx.h>
16494
16495_ACEOF
16496if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16497 $EGREP "syslen" >/dev/null 2>&1; then :
16498 eval "$ossh_varname=yes"
16499else
16500 eval "$ossh_varname=no"
16501fi
16502rm -f conftest*
16503
16504fi
16505
16506 ossh_result=`eval 'echo $'"$ossh_varname"`
16507 if test -n "`echo $ossh_varname`"; then
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16509$as_echo "$ossh_result" >&6; }
16510 if test "x$ossh_result" = "xyes"; then
16511
16512$as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h
16513
16514 fi
16515 else
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16517$as_echo "no" >&6; }
16518 fi
16519
16520
16521# look for field 'ut_pid' in header 'utmp.h'
16522 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
16523 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5
16525$as_echo_n "checking for ut_pid field in utmp.h... " >&6; }
16526 if eval \${$ossh_varname+:} false; then :
16527 $as_echo_n "(cached) " >&6
16528else
16529
16530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16531/* end confdefs.h. */
16532#include <utmp.h>
16533
16534_ACEOF
16535if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16536 $EGREP "ut_pid" >/dev/null 2>&1; then :
16537 eval "$ossh_varname=yes"
16538else
16539 eval "$ossh_varname=no"
16540fi
16541rm -f conftest*
16542
16543fi
16544
16545 ossh_result=`eval 'echo $'"$ossh_varname"`
16546 if test -n "`echo $ossh_varname`"; then
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16548$as_echo "$ossh_result" >&6; }
16549 if test "x$ossh_result" = "xyes"; then
16550
16551$as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h
16552
16553 fi
16554 else
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16556$as_echo "no" >&6; }
16557 fi
16558
16559
16560# look for field 'ut_type' in header 'utmp.h'
16561 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
16562 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5
16564$as_echo_n "checking for ut_type field in utmp.h... " >&6; }
16565 if eval \${$ossh_varname+:} false; then :
16566 $as_echo_n "(cached) " >&6
16567else
16568
16569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16570/* end confdefs.h. */
16571#include <utmp.h>
16572
16573_ACEOF
16574if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16575 $EGREP "ut_type" >/dev/null 2>&1; then :
16576 eval "$ossh_varname=yes"
16577else
16578 eval "$ossh_varname=no"
16579fi
16580rm -f conftest*
16581
16582fi
16583
16584 ossh_result=`eval 'echo $'"$ossh_varname"`
16585 if test -n "`echo $ossh_varname`"; then
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16587$as_echo "$ossh_result" >&6; }
16588 if test "x$ossh_result" = "xyes"; then
16589
16590$as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h
16591
16592 fi
16593 else
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16595$as_echo "no" >&6; }
16596 fi
16597
16598
16599# look for field 'ut_type' in header 'utmpx.h'
16600 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
16601 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5
16603$as_echo_n "checking for ut_type field in utmpx.h... " >&6; }
16604 if eval \${$ossh_varname+:} false; then :
16605 $as_echo_n "(cached) " >&6
16606else
16607
16608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16609/* end confdefs.h. */
16610#include <utmpx.h>
16611
16612_ACEOF
16613if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16614 $EGREP "ut_type" >/dev/null 2>&1; then :
16615 eval "$ossh_varname=yes"
16616else
16617 eval "$ossh_varname=no"
16618fi
16619rm -f conftest*
16620
16621fi
16622
16623 ossh_result=`eval 'echo $'"$ossh_varname"`
16624 if test -n "`echo $ossh_varname`"; then
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16626$as_echo "$ossh_result" >&6; }
16627 if test "x$ossh_result" = "xyes"; then
16628
16629$as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h
16630
16631 fi
16632 else
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16634$as_echo "no" >&6; }
16635 fi
16636
16637
16638# look for field 'ut_tv' in header 'utmp.h'
16639 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
16640 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5
16642$as_echo_n "checking for ut_tv field in utmp.h... " >&6; }
16643 if eval \${$ossh_varname+:} false; then :
16644 $as_echo_n "(cached) " >&6
16645else
16646
16647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16648/* end confdefs.h. */
16649#include <utmp.h>
16650
16651_ACEOF
16652if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16653 $EGREP "ut_tv" >/dev/null 2>&1; then :
16654 eval "$ossh_varname=yes"
16655else
16656 eval "$ossh_varname=no"
16657fi
16658rm -f conftest*
16659
16660fi
16661
16662 ossh_result=`eval 'echo $'"$ossh_varname"`
16663 if test -n "`echo $ossh_varname`"; then
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16665$as_echo "$ossh_result" >&6; }
16666 if test "x$ossh_result" = "xyes"; then
16667
16668$as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h
16669
16670 fi
16671 else
16672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16673$as_echo "no" >&6; }
16674 fi
16675
16676
16677# look for field 'ut_id' in header 'utmp.h'
16678 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
16679 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5
16681$as_echo_n "checking for ut_id field in utmp.h... " >&6; }
16682 if eval \${$ossh_varname+:} false; then :
16683 $as_echo_n "(cached) " >&6
16684else
16685
16686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16687/* end confdefs.h. */
16688#include <utmp.h>
16689
16690_ACEOF
16691if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16692 $EGREP "ut_id" >/dev/null 2>&1; then :
16693 eval "$ossh_varname=yes"
16694else
16695 eval "$ossh_varname=no"
16696fi
16697rm -f conftest*
16698
16699fi
16700
16701 ossh_result=`eval 'echo $'"$ossh_varname"`
16702 if test -n "`echo $ossh_varname`"; then
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16704$as_echo "$ossh_result" >&6; }
16705 if test "x$ossh_result" = "xyes"; then
16706
16707$as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h
16708
16709 fi
16710 else
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16712$as_echo "no" >&6; }
16713 fi
16714
16715
16716# look for field 'ut_id' in header 'utmpx.h'
16717 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
16718 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5
16720$as_echo_n "checking for ut_id field in utmpx.h... " >&6; }
16721 if eval \${$ossh_varname+:} false; then :
16722 $as_echo_n "(cached) " >&6
16723else
16724
16725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16726/* end confdefs.h. */
16727#include <utmpx.h>
16728
16729_ACEOF
16730if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16731 $EGREP "ut_id" >/dev/null 2>&1; then :
16732 eval "$ossh_varname=yes"
16733else
16734 eval "$ossh_varname=no"
16735fi
16736rm -f conftest*
16737
16738fi
16739
16740 ossh_result=`eval 'echo $'"$ossh_varname"`
16741 if test -n "`echo $ossh_varname`"; then
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16743$as_echo "$ossh_result" >&6; }
16744 if test "x$ossh_result" = "xyes"; then
16745
16746$as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h
16747
16748 fi
16749 else
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16751$as_echo "no" >&6; }
16752 fi
16753
16754
16755# look for field 'ut_addr' in header 'utmp.h'
16756 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
16757 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5
16759$as_echo_n "checking for ut_addr field in utmp.h... " >&6; }
16760 if eval \${$ossh_varname+:} false; then :
16761 $as_echo_n "(cached) " >&6
16762else
16763
16764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16765/* end confdefs.h. */
16766#include <utmp.h>
16767
16768_ACEOF
16769if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16770 $EGREP "ut_addr" >/dev/null 2>&1; then :
16771 eval "$ossh_varname=yes"
16772else
16773 eval "$ossh_varname=no"
16774fi
16775rm -f conftest*
16776
16777fi
16778
16779 ossh_result=`eval 'echo $'"$ossh_varname"`
16780 if test -n "`echo $ossh_varname`"; then
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16782$as_echo "$ossh_result" >&6; }
16783 if test "x$ossh_result" = "xyes"; then
16784
16785$as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h
16786
16787 fi
16788 else
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16790$as_echo "no" >&6; }
16791 fi
16792
16793
16794# look for field 'ut_addr' in header 'utmpx.h'
16795 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
16796 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5
16798$as_echo_n "checking for ut_addr field in utmpx.h... " >&6; }
16799 if eval \${$ossh_varname+:} false; then :
16800 $as_echo_n "(cached) " >&6
16801else
16802
16803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16804/* end confdefs.h. */
16805#include <utmpx.h>
16806
16807_ACEOF
16808if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16809 $EGREP "ut_addr" >/dev/null 2>&1; then :
16810 eval "$ossh_varname=yes"
16811else
16812 eval "$ossh_varname=no"
16813fi
16814rm -f conftest*
16815
16816fi
16817
16818 ossh_result=`eval 'echo $'"$ossh_varname"`
16819 if test -n "`echo $ossh_varname`"; then
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16821$as_echo "$ossh_result" >&6; }
16822 if test "x$ossh_result" = "xyes"; then
16823
16824$as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h
16825
16826 fi
16827 else
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16829$as_echo "no" >&6; }
16830 fi
16831
16832
16833# look for field 'ut_addr_v6' in header 'utmp.h'
16834 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
16835 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5
16837$as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; }
16838 if eval \${$ossh_varname+:} false; then :
16839 $as_echo_n "(cached) " >&6
16840else
16841
16842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16843/* end confdefs.h. */
16844#include <utmp.h>
16845
16846_ACEOF
16847if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16848 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
16849 eval "$ossh_varname=yes"
16850else
16851 eval "$ossh_varname=no"
16852fi
16853rm -f conftest*
16854
16855fi
16856
16857 ossh_result=`eval 'echo $'"$ossh_varname"`
16858 if test -n "`echo $ossh_varname`"; then
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16860$as_echo "$ossh_result" >&6; }
16861 if test "x$ossh_result" = "xyes"; then
16862
16863$as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h
16864
16865 fi
16866 else
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16868$as_echo "no" >&6; }
16869 fi
16870
16871
16872# look for field 'ut_addr_v6' in header 'utmpx.h'
16873 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
16874 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5
16876$as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; }
16877 if eval \${$ossh_varname+:} false; then :
16878 $as_echo_n "(cached) " >&6
16879else
16880
16881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16882/* end confdefs.h. */
16883#include <utmpx.h>
16884
16885_ACEOF
16886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16887 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
16888 eval "$ossh_varname=yes"
16889else
16890 eval "$ossh_varname=no"
16891fi
16892rm -f conftest*
16893
16894fi
16895
16896 ossh_result=`eval 'echo $'"$ossh_varname"`
16897 if test -n "`echo $ossh_varname`"; then
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16899$as_echo "$ossh_result" >&6; }
16900 if test "x$ossh_result" = "xyes"; then
16901
16902$as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h
16903
16904 fi
16905 else
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16907$as_echo "no" >&6; }
16908 fi
16909
16910
16911# look for field 'ut_exit' in header 'utmp.h'
16912 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
16913 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5
16915$as_echo_n "checking for ut_exit field in utmp.h... " >&6; }
16916 if eval \${$ossh_varname+:} false; then :
16917 $as_echo_n "(cached) " >&6
16918else
16919
16920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16921/* end confdefs.h. */
16922#include <utmp.h>
16923
16924_ACEOF
16925if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16926 $EGREP "ut_exit" >/dev/null 2>&1; then :
16927 eval "$ossh_varname=yes"
16928else
16929 eval "$ossh_varname=no"
16930fi
16931rm -f conftest*
16932
16933fi
16934
16935 ossh_result=`eval 'echo $'"$ossh_varname"`
16936 if test -n "`echo $ossh_varname`"; then
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16938$as_echo "$ossh_result" >&6; }
16939 if test "x$ossh_result" = "xyes"; then
16940
16941$as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h
16942
16943 fi
16944 else
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16946$as_echo "no" >&6; }
16947 fi
16948
16949
16950# look for field 'ut_time' in header 'utmp.h'
16951 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
16952 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5
16954$as_echo_n "checking for ut_time field in utmp.h... " >&6; }
16955 if eval \${$ossh_varname+:} false; then :
16956 $as_echo_n "(cached) " >&6
16957else
16958
16959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16960/* end confdefs.h. */
16961#include <utmp.h>
16962
16963_ACEOF
16964if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16965 $EGREP "ut_time" >/dev/null 2>&1; then :
16966 eval "$ossh_varname=yes"
16967else
16968 eval "$ossh_varname=no"
16969fi
16970rm -f conftest*
16971
16972fi
16973
16974 ossh_result=`eval 'echo $'"$ossh_varname"`
16975 if test -n "`echo $ossh_varname`"; then
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16977$as_echo "$ossh_result" >&6; }
16978 if test "x$ossh_result" = "xyes"; then
16979
16980$as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h
16981
16982 fi
16983 else
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16985$as_echo "no" >&6; }
16986 fi
16987
16988
16989# look for field 'ut_time' in header 'utmpx.h'
16990 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
16991 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5
16993$as_echo_n "checking for ut_time field in utmpx.h... " >&6; }
16994 if eval \${$ossh_varname+:} false; then :
16995 $as_echo_n "(cached) " >&6
16996else
16997
16998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16999/* end confdefs.h. */
17000#include <utmpx.h>
17001
17002_ACEOF
17003if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17004 $EGREP "ut_time" >/dev/null 2>&1; then :
17005 eval "$ossh_varname=yes"
17006else
17007 eval "$ossh_varname=no"
17008fi
17009rm -f conftest*
17010
17011fi
17012
17013 ossh_result=`eval 'echo $'"$ossh_varname"`
17014 if test -n "`echo $ossh_varname`"; then
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
17016$as_echo "$ossh_result" >&6; }
17017 if test "x$ossh_result" = "xyes"; then
17018
17019$as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h
17020
17021 fi
17022 else
17023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17024$as_echo "no" >&6; }
17025 fi
17026
17027
17028# look for field 'ut_tv' in header 'utmpx.h'
17029 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
17030 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5
17032$as_echo_n "checking for ut_tv field in utmpx.h... " >&6; }
17033 if eval \${$ossh_varname+:} false; then :
17034 $as_echo_n "(cached) " >&6
17035else
17036
17037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17038/* end confdefs.h. */
17039#include <utmpx.h>
17040
17041_ACEOF
17042if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17043 $EGREP "ut_tv" >/dev/null 2>&1; then :
17044 eval "$ossh_varname=yes"
17045else
17046 eval "$ossh_varname=no"
17047fi
17048rm -f conftest*
17049
17050fi
17051
17052 ossh_result=`eval 'echo $'"$ossh_varname"`
17053 if test -n "`echo $ossh_varname`"; then
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
17055$as_echo "$ossh_result" >&6; }
17056 if test "x$ossh_result" = "xyes"; then
17057
17058$as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h
17059
17060 fi
17061 else
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17063$as_echo "no" >&6; }
17064 fi
17065
17066
17067ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
17068if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
17069
17070cat >>confdefs.h <<_ACEOF
17071#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17072_ACEOF
17073
17074
17075fi
17076
17077ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
17078if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
17079
17080cat >>confdefs.h <<_ACEOF
17081#define HAVE_STRUCT_STAT_ST_MTIM 1
17082_ACEOF
17083
17084
17085fi
17086
17087ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "$ac_includes_default"
17088if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
17089
17090cat >>confdefs.h <<_ACEOF
17091#define HAVE_STRUCT_STAT_ST_MTIME 1
17092_ACEOF
17093
17094
17095fi
17096
17097ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "
17098#include <sys/types.h>
17099#include <pwd.h>
17100
17101"
17102if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then :
17103
17104cat >>confdefs.h <<_ACEOF
17105#define HAVE_STRUCT_PASSWD_PW_GECOS 1
17106_ACEOF
17107
17108
17109fi
17110ac_fn_c_check_member "$LINENO" "struct passwd" "pw_class" "ac_cv_member_struct_passwd_pw_class" "
17111#include <sys/types.h>
17112#include <pwd.h>
17113
17114"
17115if test "x$ac_cv_member_struct_passwd_pw_class" = xyes; then :
17116
17117cat >>confdefs.h <<_ACEOF
17118#define HAVE_STRUCT_PASSWD_PW_CLASS 1
17119_ACEOF
17120
17121
17122fi
17123ac_fn_c_check_member "$LINENO" "struct passwd" "pw_change" "ac_cv_member_struct_passwd_pw_change" "
17124#include <sys/types.h>
17125#include <pwd.h>
17126
17127"
17128if test "x$ac_cv_member_struct_passwd_pw_change" = xyes; then :
17129
17130cat >>confdefs.h <<_ACEOF
17131#define HAVE_STRUCT_PASSWD_PW_CHANGE 1
17132_ACEOF
17133
17134
17135fi
17136ac_fn_c_check_member "$LINENO" "struct passwd" "pw_expire" "ac_cv_member_struct_passwd_pw_expire" "
17137#include <sys/types.h>
17138#include <pwd.h>
17139
17140"
17141if test "x$ac_cv_member_struct_passwd_pw_expire" = xyes; then :
17142
17143cat >>confdefs.h <<_ACEOF
17144#define HAVE_STRUCT_PASSWD_PW_EXPIRE 1
17145_ACEOF
17146
17147
17148fi
17149
17150
17151ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" "
17152#include <stdio.h>
17153#if HAVE_SYS_TYPES_H
17154# include <sys/types.h>
17155#endif
17156#include <netinet/in.h>
17157#include <arpa/nameser.h>
17158#include <resolv.h>
17159
17160"
17161if test "x$ac_cv_member_struct___res_state_retrans" = xyes; then :
17162
17163else
17164
17165$as_echo "#define __res_state state" >>confdefs.h
17166
17167fi
17168
17169
17170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5
17171$as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; }
17172if ${ac_cv_have_ss_family_in_struct_ss+:} false; then :
17173 $as_echo_n "(cached) " >&6
17174else
17175
17176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17177/* end confdefs.h. */
17178
17179#include <sys/types.h>
17180#include <sys/socket.h>
17181
17182int
17183main ()
17184{
17185 struct sockaddr_storage s; s.ss_family = 1;
17186 ;
17187 return 0;
17188}
17189_ACEOF
17190if ac_fn_c_try_compile "$LINENO"; then :
17191 ac_cv_have_ss_family_in_struct_ss="yes"
17192else
17193 ac_cv_have_ss_family_in_struct_ss="no"
17194fi
17195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17196
17197fi
17198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5
17199$as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; }
17200if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
17201
17202$as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h
17203
17204fi
17205
17206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5
17207$as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; }
17208if ${ac_cv_have___ss_family_in_struct_ss+:} false; then :
17209 $as_echo_n "(cached) " >&6
17210else
17211
17212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17213/* end confdefs.h. */
17214
17215#include <sys/types.h>
17216#include <sys/socket.h>
17217
17218int
17219main ()
17220{
17221 struct sockaddr_storage s; s.__ss_family = 1;
17222 ;
17223 return 0;
17224}
17225_ACEOF
17226if ac_fn_c_try_compile "$LINENO"; then :
17227 ac_cv_have___ss_family_in_struct_ss="yes"
17228else
17229 ac_cv_have___ss_family_in_struct_ss="no"
17230
17231fi
17232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17233
17234fi
17235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5
17236$as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; }
17237if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
17238
17239$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
17240
17241fi
17242
17243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5
17244$as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; }
17245if ${ac_cv_have_accrights_in_msghdr+:} false; then :
17246 $as_echo_n "(cached) " >&6
17247else
17248
17249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17250/* end confdefs.h. */
17251
17252#include <sys/types.h>
17253#include <sys/socket.h>
17254#include <sys/uio.h>
17255
17256int
17257main ()
17258{
17259
17260#ifdef msg_accrights
17261#error "msg_accrights is a macro"
17262exit(1);
17263#endif
17264struct msghdr m;
17265m.msg_accrights = 0;
17266exit(0);
17267
17268 ;
17269 return 0;
17270}
17271_ACEOF
17272if ac_fn_c_try_compile "$LINENO"; then :
17273 ac_cv_have_accrights_in_msghdr="yes"
17274else
17275 ac_cv_have_accrights_in_msghdr="no"
17276
17277fi
17278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17279
17280fi
17281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5
17282$as_echo "$ac_cv_have_accrights_in_msghdr" >&6; }
17283if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
17284
17285$as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h
17286
17287fi
17288
17289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5
17290$as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; }
17291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17292/* end confdefs.h. */
17293
17294#include <sys/param.h>
17295#include <sys/stat.h>
17296#ifdef HAVE_SYS_TIME_H
17297# include <sys/time.h>
17298#endif
17299#ifdef HAVE_SYS_MOUNT_H
17300#include <sys/mount.h>
17301#endif
17302#ifdef HAVE_SYS_STATVFS_H
17303#include <sys/statvfs.h>
17304#endif
17305
17306int
17307main ()
17308{
17309 struct statvfs s; s.f_fsid = 0;
17310 ;
17311 return 0;
17312}
17313_ACEOF
17314if ac_fn_c_try_compile "$LINENO"; then :
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17316$as_echo "yes" >&6; }
17317else
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17319$as_echo "no" >&6; }
17320
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5
17322$as_echo_n "checking if fsid_t has member val... " >&6; }
17323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17324/* end confdefs.h. */
17325
17326#include <sys/types.h>
17327#include <sys/statvfs.h>
17328
17329int
17330main ()
17331{
17332 fsid_t t; t.val[0] = 0;
17333 ;
17334 return 0;
17335}
17336_ACEOF
17337if ac_fn_c_try_compile "$LINENO"; then :
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17339$as_echo "yes" >&6; }
17340
17341$as_echo "#define FSID_HAS_VAL 1" >>confdefs.h
17342
17343else
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17345$as_echo "no" >&6; }
17346fi
17347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17348
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5
17350$as_echo_n "checking if f_fsid has member __val... " >&6; }
17351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17352/* end confdefs.h. */
17353
17354#include <sys/types.h>
17355#include <sys/statvfs.h>
17356
17357int
17358main ()
17359{
17360 fsid_t t; t.__val[0] = 0;
17361 ;
17362 return 0;
17363}
17364_ACEOF
17365if ac_fn_c_try_compile "$LINENO"; then :
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17367$as_echo "yes" >&6; }
17368
17369$as_echo "#define FSID_HAS___VAL 1" >>confdefs.h
17370
17371else
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17373$as_echo "no" >&6; }
17374fi
17375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17376
17377fi
17378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17379
17380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5
17381$as_echo_n "checking for msg_control field in struct msghdr... " >&6; }
17382if ${ac_cv_have_control_in_msghdr+:} false; then :
17383 $as_echo_n "(cached) " >&6
17384else
17385
17386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17387/* end confdefs.h. */
17388
17389#include <sys/types.h>
17390#include <sys/socket.h>
17391#include <sys/uio.h>
17392
17393int
17394main ()
17395{
17396
17397#ifdef msg_control
17398#error "msg_control is a macro"
17399exit(1);
17400#endif
17401struct msghdr m;
17402m.msg_control = 0;
17403exit(0);
17404
17405 ;
17406 return 0;
17407}
17408_ACEOF
17409if ac_fn_c_try_compile "$LINENO"; then :
17410 ac_cv_have_control_in_msghdr="yes"
17411else
17412 ac_cv_have_control_in_msghdr="no"
17413
17414fi
17415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17416
17417fi
17418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5
17419$as_echo "$ac_cv_have_control_in_msghdr" >&6; }
17420if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
17421
17422$as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h
17423
17424fi
17425
17426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5
17427$as_echo_n "checking if libc defines __progname... " >&6; }
17428if ${ac_cv_libc_defines___progname+:} false; then :
17429 $as_echo_n "(cached) " >&6
17430else
17431
17432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17433/* end confdefs.h. */
17434
17435int
17436main ()
17437{
17438 extern char *__progname; printf("%s", __progname);
17439 ;
17440 return 0;
17441}
17442_ACEOF
17443if ac_fn_c_try_link "$LINENO"; then :
17444 ac_cv_libc_defines___progname="yes"
17445else
17446 ac_cv_libc_defines___progname="no"
17447
17448fi
17449rm -f core conftest.err conftest.$ac_objext \
17450 conftest$ac_exeext conftest.$ac_ext
17451
17452fi
17453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5
17454$as_echo "$ac_cv_libc_defines___progname" >&6; }
17455if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
17456
17457$as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
17458
17459fi
17460
17461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5
17462$as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; }
17463if ${ac_cv_cc_implements___FUNCTION__+:} false; then :
17464 $as_echo_n "(cached) " >&6
17465else
17466
17467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17468/* end confdefs.h. */
17469 #include <stdio.h>
17470int
17471main ()
17472{
17473 printf("%s", __FUNCTION__);
17474 ;
17475 return 0;
17476}
17477_ACEOF
17478if ac_fn_c_try_link "$LINENO"; then :
17479 ac_cv_cc_implements___FUNCTION__="yes"
17480else
17481 ac_cv_cc_implements___FUNCTION__="no"
17482
17483fi
17484rm -f core conftest.err conftest.$ac_objext \
17485 conftest$ac_exeext conftest.$ac_ext
17486
17487fi
17488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5
17489$as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; }
17490if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
17491
17492$as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h
17493
17494fi
17495
17496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5
17497$as_echo_n "checking whether $CC implements __func__... " >&6; }
17498if ${ac_cv_cc_implements___func__+:} false; then :
17499 $as_echo_n "(cached) " >&6
17500else
17501
17502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17503/* end confdefs.h. */
17504 #include <stdio.h>
17505int
17506main ()
17507{
17508 printf("%s", __func__);
17509 ;
17510 return 0;
17511}
17512_ACEOF
17513if ac_fn_c_try_link "$LINENO"; then :
17514 ac_cv_cc_implements___func__="yes"
17515else
17516 ac_cv_cc_implements___func__="no"
17517
17518fi
17519rm -f core conftest.err conftest.$ac_objext \
17520 conftest$ac_exeext conftest.$ac_ext
17521
17522fi
17523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5
17524$as_echo "$ac_cv_cc_implements___func__" >&6; }
17525if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
17526
17527$as_echo "#define HAVE___func__ 1" >>confdefs.h
17528
17529fi
17530
17531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5
17532$as_echo_n "checking whether va_copy exists... " >&6; }
17533if ${ac_cv_have_va_copy+:} false; then :
17534 $as_echo_n "(cached) " >&6
17535else
17536
17537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17538/* end confdefs.h. */
17539
17540#include <stdarg.h>
17541va_list x,y;
17542
17543int
17544main ()
17545{
17546 va_copy(x,y);
17547 ;
17548 return 0;
17549}
17550_ACEOF
17551if ac_fn_c_try_link "$LINENO"; then :
17552 ac_cv_have_va_copy="yes"
17553else
17554 ac_cv_have_va_copy="no"
17555
17556fi
17557rm -f core conftest.err conftest.$ac_objext \
17558 conftest$ac_exeext conftest.$ac_ext
17559
17560fi
17561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5
17562$as_echo "$ac_cv_have_va_copy" >&6; }
17563if test "x$ac_cv_have_va_copy" = "xyes" ; then
17564
17565$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
17566
17567fi
17568
17569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5
17570$as_echo_n "checking whether __va_copy exists... " >&6; }
17571if ${ac_cv_have___va_copy+:} false; then :
17572 $as_echo_n "(cached) " >&6
17573else
17574
17575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17576/* end confdefs.h. */
17577
17578#include <stdarg.h>
17579va_list x,y;
17580
17581int
17582main ()
17583{
17584 __va_copy(x,y);
17585 ;
17586 return 0;
17587}
17588_ACEOF
17589if ac_fn_c_try_link "$LINENO"; then :
17590 ac_cv_have___va_copy="yes"
17591else
17592 ac_cv_have___va_copy="no"
17593
17594fi
17595rm -f core conftest.err conftest.$ac_objext \
17596 conftest$ac_exeext conftest.$ac_ext
17597
17598fi
17599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5
17600$as_echo "$ac_cv_have___va_copy" >&6; }
17601if test "x$ac_cv_have___va_copy" = "xyes" ; then
17602
17603$as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
17604
17605fi
17606
17607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5
17608$as_echo_n "checking whether getopt has optreset support... " >&6; }
17609if ${ac_cv_have_getopt_optreset+:} false; then :
17610 $as_echo_n "(cached) " >&6
17611else
17612
17613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17614/* end confdefs.h. */
17615 #include <getopt.h>
17616int
17617main ()
17618{
17619 extern int optreset; optreset = 0;
17620 ;
17621 return 0;
17622}
17623_ACEOF
17624if ac_fn_c_try_link "$LINENO"; then :
17625 ac_cv_have_getopt_optreset="yes"
17626else
17627 ac_cv_have_getopt_optreset="no"
17628
17629fi
17630rm -f core conftest.err conftest.$ac_objext \
17631 conftest$ac_exeext conftest.$ac_ext
17632
17633fi
17634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5
17635$as_echo "$ac_cv_have_getopt_optreset" >&6; }
17636if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
17637
17638$as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h
17639
17640fi
17641
17642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5
17643$as_echo_n "checking if libc defines sys_errlist... " >&6; }
17644if ${ac_cv_libc_defines_sys_errlist+:} false; then :
17645 $as_echo_n "(cached) " >&6
17646else
17647
17648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17649/* end confdefs.h. */
17650
17651int
17652main ()
17653{
17654 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
17655 ;
17656 return 0;
17657}
17658_ACEOF
17659if ac_fn_c_try_link "$LINENO"; then :
17660 ac_cv_libc_defines_sys_errlist="yes"
17661else
17662 ac_cv_libc_defines_sys_errlist="no"
17663
17664fi
17665rm -f core conftest.err conftest.$ac_objext \
17666 conftest$ac_exeext conftest.$ac_ext
17667
17668fi
17669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5
17670$as_echo "$ac_cv_libc_defines_sys_errlist" >&6; }
17671if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
17672
17673$as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
17674
17675fi
17676
17677
17678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5
17679$as_echo_n "checking if libc defines sys_nerr... " >&6; }
17680if ${ac_cv_libc_defines_sys_nerr+:} false; then :
17681 $as_echo_n "(cached) " >&6
17682else
17683
17684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17685/* end confdefs.h. */
17686
17687int
17688main ()
17689{
17690 extern int sys_nerr; printf("%i", sys_nerr);
17691 ;
17692 return 0;
17693}
17694_ACEOF
17695if ac_fn_c_try_link "$LINENO"; then :
17696 ac_cv_libc_defines_sys_nerr="yes"
17697else
17698 ac_cv_libc_defines_sys_nerr="no"
17699
17700fi
17701rm -f core conftest.err conftest.$ac_objext \
17702 conftest$ac_exeext conftest.$ac_ext
17703
17704fi
17705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5
17706$as_echo "$ac_cv_libc_defines_sys_nerr" >&6; }
17707if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
17708
17709$as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
17710
17711fi
17712
17713# Check libraries needed by DNS fingerprint support
17714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5
17715$as_echo_n "checking for library containing getrrsetbyname... " >&6; }
17716if ${ac_cv_search_getrrsetbyname+:} false; then :
17717 $as_echo_n "(cached) " >&6
17718else
17719 ac_func_search_save_LIBS=$LIBS
17720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17721/* end confdefs.h. */
17722
17723/* Override any GCC internal prototype to avoid an error.
17724 Use char because int might match the return type of a GCC
17725 builtin and then its argument prototype would still apply. */
17726#ifdef __cplusplus
17727extern "C"
17728#endif
17729char getrrsetbyname ();
17730int
17731main ()
17732{
17733return getrrsetbyname ();
17734 ;
17735 return 0;
17736}
17737_ACEOF
17738for ac_lib in '' resolv; do
17739 if test -z "$ac_lib"; then
17740 ac_res="none required"
17741 else
17742 ac_res=-l$ac_lib
17743 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17744 fi
17745 if ac_fn_c_try_link "$LINENO"; then :
17746 ac_cv_search_getrrsetbyname=$ac_res
17747fi
17748rm -f core conftest.err conftest.$ac_objext \
17749 conftest$ac_exeext
17750 if ${ac_cv_search_getrrsetbyname+:} false; then :
17751 break
17752fi
17753done
17754if ${ac_cv_search_getrrsetbyname+:} false; then :
17755
17756else
17757 ac_cv_search_getrrsetbyname=no
17758fi
17759rm conftest.$ac_ext
17760LIBS=$ac_func_search_save_LIBS
17761fi
17762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5
17763$as_echo "$ac_cv_search_getrrsetbyname" >&6; }
17764ac_res=$ac_cv_search_getrrsetbyname
17765if test "$ac_res" != no; then :
17766 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17767
17768$as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h
17769
17770else
17771
17772 # Needed by our getrrsetbyname()
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
17774$as_echo_n "checking for library containing res_query... " >&6; }
17775if ${ac_cv_search_res_query+:} false; then :
17776 $as_echo_n "(cached) " >&6
17777else
17778 ac_func_search_save_LIBS=$LIBS
17779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17780/* end confdefs.h. */
17781
17782/* Override any GCC internal prototype to avoid an error.
17783 Use char because int might match the return type of a GCC
17784 builtin and then its argument prototype would still apply. */
17785#ifdef __cplusplus
17786extern "C"
17787#endif
17788char res_query ();
17789int
17790main ()
17791{
17792return res_query ();
17793 ;
17794 return 0;
17795}
17796_ACEOF
17797for ac_lib in '' resolv; do
17798 if test -z "$ac_lib"; then
17799 ac_res="none required"
17800 else
17801 ac_res=-l$ac_lib
17802 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17803 fi
17804 if ac_fn_c_try_link "$LINENO"; then :
17805 ac_cv_search_res_query=$ac_res
17806fi
17807rm -f core conftest.err conftest.$ac_objext \
17808 conftest$ac_exeext
17809 if ${ac_cv_search_res_query+:} false; then :
17810 break
17811fi
17812done
17813if ${ac_cv_search_res_query+:} false; then :
17814
17815else
17816 ac_cv_search_res_query=no
17817fi
17818rm conftest.$ac_ext
17819LIBS=$ac_func_search_save_LIBS
17820fi
17821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
17822$as_echo "$ac_cv_search_res_query" >&6; }
17823ac_res=$ac_cv_search_res_query
17824if test "$ac_res" != no; then :
17825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17826
17827fi
17828
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
17830$as_echo_n "checking for library containing dn_expand... " >&6; }
17831if ${ac_cv_search_dn_expand+:} false; then :
17832 $as_echo_n "(cached) " >&6
17833else
17834 ac_func_search_save_LIBS=$LIBS
17835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17836/* end confdefs.h. */
17837
17838/* Override any GCC internal prototype to avoid an error.
17839 Use char because int might match the return type of a GCC
17840 builtin and then its argument prototype would still apply. */
17841#ifdef __cplusplus
17842extern "C"
17843#endif
17844char dn_expand ();
17845int
17846main ()
17847{
17848return dn_expand ();
17849 ;
17850 return 0;
17851}
17852_ACEOF
17853for ac_lib in '' resolv; do
17854 if test -z "$ac_lib"; then
17855 ac_res="none required"
17856 else
17857 ac_res=-l$ac_lib
17858 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17859 fi
17860 if ac_fn_c_try_link "$LINENO"; then :
17861 ac_cv_search_dn_expand=$ac_res
17862fi
17863rm -f core conftest.err conftest.$ac_objext \
17864 conftest$ac_exeext
17865 if ${ac_cv_search_dn_expand+:} false; then :
17866 break
17867fi
17868done
17869if ${ac_cv_search_dn_expand+:} false; then :
17870
17871else
17872 ac_cv_search_dn_expand=no
17873fi
17874rm conftest.$ac_ext
17875LIBS=$ac_func_search_save_LIBS
17876fi
17877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
17878$as_echo "$ac_cv_search_dn_expand" >&6; }
17879ac_res=$ac_cv_search_dn_expand
17880if test "$ac_res" != no; then :
17881 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17882
17883fi
17884
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5
17886$as_echo_n "checking if res_query will link... " >&6; }
17887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17888/* end confdefs.h. */
17889
17890#include <sys/types.h>
17891#include <netinet/in.h>
17892#include <arpa/nameser.h>
17893#include <netdb.h>
17894#include <resolv.h>
17895
17896int
17897main ()
17898{
17899
17900 res_query (0, 0, 0, 0, 0);
17901
17902 ;
17903 return 0;
17904}
17905_ACEOF
17906if ac_fn_c_try_link "$LINENO"; then :
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17908$as_echo "yes" >&6; }
17909else
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17911$as_echo "no" >&6; }
17912 saved_LIBS="$LIBS"
17913 LIBS="$LIBS -lresolv"
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
17915$as_echo_n "checking for res_query in -lresolv... " >&6; }
17916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17917/* end confdefs.h. */
17918
17919#include <sys/types.h>
17920#include <netinet/in.h>
17921#include <arpa/nameser.h>
17922#include <netdb.h>
17923#include <resolv.h>
17924
17925int
17926main ()
17927{
17928
17929 res_query (0, 0, 0, 0, 0);
17930
17931 ;
17932 return 0;
17933}
17934_ACEOF
17935if ac_fn_c_try_link "$LINENO"; then :
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17937$as_echo "yes" >&6; }
17938else
17939 LIBS="$saved_LIBS"
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17941$as_echo "no" >&6; }
17942fi
17943rm -f core conftest.err conftest.$ac_objext \
17944 conftest$ac_exeext conftest.$ac_ext
17945
17946fi
17947rm -f core conftest.err conftest.$ac_objext \
17948 conftest$ac_exeext conftest.$ac_ext
17949 for ac_func in _getshort _getlong
17950do :
17951 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17952ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17953if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17954 cat >>confdefs.h <<_ACEOF
17955#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17956_ACEOF
17957
17958fi
17959done
17960
17961 ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h>
17962 #include <arpa/nameser.h>
17963"
17964if test "x$ac_cv_have_decl__getshort" = xyes; then :
17965 ac_have_decl=1
17966else
17967 ac_have_decl=0
17968fi
17969
17970cat >>confdefs.h <<_ACEOF
17971#define HAVE_DECL__GETSHORT $ac_have_decl
17972_ACEOF
17973ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h>
17974 #include <arpa/nameser.h>
17975"
17976if test "x$ac_cv_have_decl__getlong" = xyes; then :
17977 ac_have_decl=1
17978else
17979 ac_have_decl=0
17980fi
17981
17982cat >>confdefs.h <<_ACEOF
17983#define HAVE_DECL__GETLONG $ac_have_decl
17984_ACEOF
17985
17986 ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h>
17987"
17988if test "x$ac_cv_member_HEADER_ad" = xyes; then :
17989
17990$as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h
17991
17992fi
17993
17994
17995fi
17996
17997
17998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5
17999$as_echo_n "checking if struct __res_state _res is an extern... " >&6; }
18000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18001/* end confdefs.h. */
18002
18003#include <stdio.h>
18004#if HAVE_SYS_TYPES_H
18005# include <sys/types.h>
18006#endif
18007#include <netinet/in.h>
18008#include <arpa/nameser.h>
18009#include <resolv.h>
18010extern struct __res_state _res;
18011
18012int
18013main ()
18014{
18015
18016struct __res_state *volatile p = &_res; /* force resolution of _res */
18017return 0;
18018
18019 ;
18020 return 0;
18021}
18022_ACEOF
18023if ac_fn_c_try_link "$LINENO"; then :
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18025$as_echo "yes" >&6; }
18026
18027$as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h
18028
18029
18030else
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18032$as_echo "no" >&6; }
18033
18034fi
18035rm -f core conftest.err conftest.$ac_objext \
18036 conftest$ac_exeext conftest.$ac_ext
18037
18038# Check whether user wants SELinux support
18039SELINUX_MSG="no"
18040LIBSELINUX=""
18041
18042# Check whether --with-selinux was given.
18043if test "${with_selinux+set}" = set; then :
18044 withval=$with_selinux; if test "x$withval" != "xno" ; then
18045 save_LIBS="$LIBS"
18046
18047$as_echo "#define WITH_SELINUX 1" >>confdefs.h
18048
18049 SELINUX_MSG="yes"
18050 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
18051if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
18052
18053else
18054 as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5
18055fi
18056
18057
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5
18059$as_echo_n "checking for setexeccon in -lselinux... " >&6; }
18060if ${ac_cv_lib_selinux_setexeccon+:} false; then :
18061 $as_echo_n "(cached) " >&6
18062else
18063 ac_check_lib_save_LIBS=$LIBS
18064LIBS="-lselinux $LIBS"
18065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18066/* end confdefs.h. */
18067
18068/* Override any GCC internal prototype to avoid an error.
18069 Use char because int might match the return type of a GCC
18070 builtin and then its argument prototype would still apply. */
18071#ifdef __cplusplus
18072extern "C"
18073#endif
18074char setexeccon ();
18075int
18076main ()
18077{
18078return setexeccon ();
18079 ;
18080 return 0;
18081}
18082_ACEOF
18083if ac_fn_c_try_link "$LINENO"; then :
18084 ac_cv_lib_selinux_setexeccon=yes
18085else
18086 ac_cv_lib_selinux_setexeccon=no
18087fi
18088rm -f core conftest.err conftest.$ac_objext \
18089 conftest$ac_exeext conftest.$ac_ext
18090LIBS=$ac_check_lib_save_LIBS
18091fi
18092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5
18093$as_echo "$ac_cv_lib_selinux_setexeccon" >&6; }
18094if test "x$ac_cv_lib_selinux_setexeccon" = xyes; then :
18095 LIBSELINUX="-lselinux"
18096 LIBS="$LIBS -lselinux"
18097
18098else
18099 as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5
18100fi
18101
18102 SSHLIBS="$SSHLIBS $LIBSELINUX"
18103 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
18104 for ac_func in getseuserbyname get_default_context_with_level
18105do :
18106 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18107ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18108if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18109 cat >>confdefs.h <<_ACEOF
18110#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18111_ACEOF
18112
18113fi
18114done
18115
18116 LIBS="$save_LIBS"
18117 fi
18118
18119fi
18120
18121
18122
18123
18124# Check whether user wants Kerberos 5 support
18125KRB5_MSG="no"
18126
18127# Check whether --with-kerberos5 was given.
18128if test "${with_kerberos5+set}" = set; then :
18129 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
18130 if test "x$withval" = "xyes" ; then
18131 KRB5ROOT="/usr/local"
18132 else
18133 KRB5ROOT=${withval}
18134 fi
18135
18136
18137$as_echo "#define KRB5 1" >>confdefs.h
18138
18139 KRB5_MSG="yes"
18140
18141 if test -n "$ac_tool_prefix"; then
18142 # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args.
18143set dummy ${ac_tool_prefix}krb5-config; ac_word=$2
18144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18145$as_echo_n "checking for $ac_word... " >&6; }
18146if ${ac_cv_path_KRB5CONF+:} false; then :
18147 $as_echo_n "(cached) " >&6
18148else
18149 case $KRB5CONF in
18150 [\\/]* | ?:[\\/]*)
18151 ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
18152 ;;
18153 *)
18154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18155as_dummy="$KRB5ROOT/bin:$PATH"
18156for as_dir in $as_dummy
18157do
18158 IFS=$as_save_IFS
18159 test -z "$as_dir" && as_dir=.
18160 for ac_exec_ext in '' $ac_executable_extensions; do
18161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18162 ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
18163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18164 break 2
18165 fi
18166done
18167 done
18168IFS=$as_save_IFS
18169
18170 ;;
18171esac
18172fi
18173KRB5CONF=$ac_cv_path_KRB5CONF
18174if test -n "$KRB5CONF"; then
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5
18176$as_echo "$KRB5CONF" >&6; }
18177else
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18179$as_echo "no" >&6; }
18180fi
18181
18182
18183fi
18184if test -z "$ac_cv_path_KRB5CONF"; then
18185 ac_pt_KRB5CONF=$KRB5CONF
18186 # Extract the first word of "krb5-config", so it can be a program name with args.
18187set dummy krb5-config; ac_word=$2
18188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18189$as_echo_n "checking for $ac_word... " >&6; }
18190if ${ac_cv_path_ac_pt_KRB5CONF+:} false; then :
18191 $as_echo_n "(cached) " >&6
18192else
18193 case $ac_pt_KRB5CONF in
18194 [\\/]* | ?:[\\/]*)
18195 ac_cv_path_ac_pt_KRB5CONF="$ac_pt_KRB5CONF" # Let the user override the test with a path.
18196 ;;
18197 *)
18198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18199as_dummy="$KRB5ROOT/bin:$PATH"
18200for as_dir in $as_dummy
18201do
18202 IFS=$as_save_IFS
18203 test -z "$as_dir" && as_dir=.
18204 for ac_exec_ext in '' $ac_executable_extensions; do
18205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18206 ac_cv_path_ac_pt_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
18207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18208 break 2
18209 fi
18210done
18211 done
18212IFS=$as_save_IFS
18213
18214 ;;
18215esac
18216fi
18217ac_pt_KRB5CONF=$ac_cv_path_ac_pt_KRB5CONF
18218if test -n "$ac_pt_KRB5CONF"; then
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONF" >&5
18220$as_echo "$ac_pt_KRB5CONF" >&6; }
18221else
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18223$as_echo "no" >&6; }
18224fi
18225
18226 if test "x$ac_pt_KRB5CONF" = x; then
18227 KRB5CONF="$KRB5ROOT/bin/krb5-config"
18228 else
18229 case $cross_compiling:$ac_tool_warned in
18230yes:)
18231{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18232$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18233ac_tool_warned=yes ;;
18234esac
18235 KRB5CONF=$ac_pt_KRB5CONF
18236 fi
18237else
18238 KRB5CONF="$ac_cv_path_KRB5CONF"
18239fi
18240
18241 if test -x $KRB5CONF ; then
18242 K5CFLAGS="`$KRB5CONF --cflags`"
18243 K5LIBS="`$KRB5CONF --libs`"
18244 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
18245
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5
18247$as_echo_n "checking for gssapi support... " >&6; }
18248 if $KRB5CONF | grep gssapi >/dev/null ; then
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18250$as_echo "yes" >&6; }
18251
18252$as_echo "#define GSSAPI 1" >>confdefs.h
18253
18254 GSSCFLAGS="`$KRB5CONF --cflags gssapi`"
18255 GSSLIBS="`$KRB5CONF --libs gssapi`"
18256 CPPFLAGS="$CPPFLAGS $GSSCFLAGS"
18257 else
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18259$as_echo "no" >&6; }
18260 fi
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
18262$as_echo_n "checking whether we are using Heimdal... " >&6; }
18263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18264/* end confdefs.h. */
18265 #include <krb5.h>
18266
18267int
18268main ()
18269{
18270 char *tmp = heimdal_version;
18271 ;
18272 return 0;
18273}
18274_ACEOF
18275if ac_fn_c_try_compile "$LINENO"; then :
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18277$as_echo "yes" >&6; }
18278
18279$as_echo "#define HEIMDAL 1" >>confdefs.h
18280
18281else
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18283$as_echo "no" >&6; }
18284
18285fi
18286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18287 else
18288 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
18289 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
18291$as_echo_n "checking whether we are using Heimdal... " >&6; }
18292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18293/* end confdefs.h. */
18294 #include <krb5.h>
18295
18296int
18297main ()
18298{
18299 char *tmp = heimdal_version;
18300 ;
18301 return 0;
18302}
18303_ACEOF
18304if ac_fn_c_try_compile "$LINENO"; then :
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18306$as_echo "yes" >&6; }
18307 $as_echo "#define HEIMDAL 1" >>confdefs.h
18308
18309 K5LIBS="-lkrb5"
18310 K5LIBS="$K5LIBS -lcom_err -lasn1"
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5
18312$as_echo_n "checking for net_write in -lroken... " >&6; }
18313if ${ac_cv_lib_roken_net_write+:} false; then :
18314 $as_echo_n "(cached) " >&6
18315else
18316 ac_check_lib_save_LIBS=$LIBS
18317LIBS="-lroken $LIBS"
18318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18319/* end confdefs.h. */
18320
18321/* Override any GCC internal prototype to avoid an error.
18322 Use char because int might match the return type of a GCC
18323 builtin and then its argument prototype would still apply. */
18324#ifdef __cplusplus
18325extern "C"
18326#endif
18327char net_write ();
18328int
18329main ()
18330{
18331return net_write ();
18332 ;
18333 return 0;
18334}
18335_ACEOF
18336if ac_fn_c_try_link "$LINENO"; then :
18337 ac_cv_lib_roken_net_write=yes
18338else
18339 ac_cv_lib_roken_net_write=no
18340fi
18341rm -f core conftest.err conftest.$ac_objext \
18342 conftest$ac_exeext conftest.$ac_ext
18343LIBS=$ac_check_lib_save_LIBS
18344fi
18345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5
18346$as_echo "$ac_cv_lib_roken_net_write" >&6; }
18347if test "x$ac_cv_lib_roken_net_write" = xyes; then :
18348 K5LIBS="$K5LIBS -lroken"
18349fi
18350
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
18352$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
18353if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
18354 $as_echo_n "(cached) " >&6
18355else
18356 ac_check_lib_save_LIBS=$LIBS
18357LIBS="-ldes $LIBS"
18358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18359/* end confdefs.h. */
18360
18361/* Override any GCC internal prototype to avoid an error.
18362 Use char because int might match the return type of a GCC
18363 builtin and then its argument prototype would still apply. */
18364#ifdef __cplusplus
18365extern "C"
18366#endif
18367char des_cbc_encrypt ();
18368int
18369main ()
18370{
18371return des_cbc_encrypt ();
18372 ;
18373 return 0;
18374}
18375_ACEOF
18376if ac_fn_c_try_link "$LINENO"; then :
18377 ac_cv_lib_des_des_cbc_encrypt=yes
18378else
18379 ac_cv_lib_des_des_cbc_encrypt=no
18380fi
18381rm -f core conftest.err conftest.$ac_objext \
18382 conftest$ac_exeext conftest.$ac_ext
18383LIBS=$ac_check_lib_save_LIBS
18384fi
18385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18386$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
18387if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
18388 K5LIBS="$K5LIBS -ldes"
18389fi
18390
18391
18392else
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18394$as_echo "no" >&6; }
18395 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
18396
18397fi
18398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
18400$as_echo_n "checking for library containing dn_expand... " >&6; }
18401if ${ac_cv_search_dn_expand+:} false; then :
18402 $as_echo_n "(cached) " >&6
18403else
18404 ac_func_search_save_LIBS=$LIBS
18405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18406/* end confdefs.h. */
18407
18408/* Override any GCC internal prototype to avoid an error.
18409 Use char because int might match the return type of a GCC
18410 builtin and then its argument prototype would still apply. */
18411#ifdef __cplusplus
18412extern "C"
18413#endif
18414char dn_expand ();
18415int
18416main ()
18417{
18418return dn_expand ();
18419 ;
18420 return 0;
18421}
18422_ACEOF
18423for ac_lib in '' resolv; do
18424 if test -z "$ac_lib"; then
18425 ac_res="none required"
18426 else
18427 ac_res=-l$ac_lib
18428 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18429 fi
18430 if ac_fn_c_try_link "$LINENO"; then :
18431 ac_cv_search_dn_expand=$ac_res
18432fi
18433rm -f core conftest.err conftest.$ac_objext \
18434 conftest$ac_exeext
18435 if ${ac_cv_search_dn_expand+:} false; then :
18436 break
18437fi
18438done
18439if ${ac_cv_search_dn_expand+:} false; then :
18440
18441else
18442 ac_cv_search_dn_expand=no
18443fi
18444rm conftest.$ac_ext
18445LIBS=$ac_func_search_save_LIBS
18446fi
18447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
18448$as_echo "$ac_cv_search_dn_expand" >&6; }
18449ac_res=$ac_cv_search_dn_expand
18450if test "$ac_res" != no; then :
18451 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18452
18453fi
18454
18455
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5
18457$as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; }
18458if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then :
18459 $as_echo_n "(cached) " >&6
18460else
18461 ac_check_lib_save_LIBS=$LIBS
18462LIBS="-lgssapi_krb5 $LIBS"
18463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18464/* end confdefs.h. */
18465
18466/* Override any GCC internal prototype to avoid an error.
18467 Use char because int might match the return type of a GCC
18468 builtin and then its argument prototype would still apply. */
18469#ifdef __cplusplus
18470extern "C"
18471#endif
18472char gss_init_sec_context ();
18473int
18474main ()
18475{
18476return gss_init_sec_context ();
18477 ;
18478 return 0;
18479}
18480_ACEOF
18481if ac_fn_c_try_link "$LINENO"; then :
18482 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
18483else
18484 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
18485fi
18486rm -f core conftest.err conftest.$ac_objext \
18487 conftest$ac_exeext conftest.$ac_ext
18488LIBS=$ac_check_lib_save_LIBS
18489fi
18490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
18491$as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
18492if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then :
18493 $as_echo "#define GSSAPI 1" >>confdefs.h
18494
18495 GSSLIBS="-lgssapi_krb5"
18496else
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5
18498$as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; }
18499if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then :
18500 $as_echo_n "(cached) " >&6
18501else
18502 ac_check_lib_save_LIBS=$LIBS
18503LIBS="-lgssapi $LIBS"
18504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18505/* end confdefs.h. */
18506
18507/* Override any GCC internal prototype to avoid an error.
18508 Use char because int might match the return type of a GCC
18509 builtin and then its argument prototype would still apply. */
18510#ifdef __cplusplus
18511extern "C"
18512#endif
18513char gss_init_sec_context ();
18514int
18515main ()
18516{
18517return gss_init_sec_context ();
18518 ;
18519 return 0;
18520}
18521_ACEOF
18522if ac_fn_c_try_link "$LINENO"; then :
18523 ac_cv_lib_gssapi_gss_init_sec_context=yes
18524else
18525 ac_cv_lib_gssapi_gss_init_sec_context=no
18526fi
18527rm -f core conftest.err conftest.$ac_objext \
18528 conftest$ac_exeext conftest.$ac_ext
18529LIBS=$ac_check_lib_save_LIBS
18530fi
18531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
18532$as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
18533if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then :
18534 $as_echo "#define GSSAPI 1" >>confdefs.h
18535
18536 GSSLIBS="-lgssapi"
18537else
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgss" >&5
18539$as_echo_n "checking for gss_init_sec_context in -lgss... " >&6; }
18540if ${ac_cv_lib_gss_gss_init_sec_context+:} false; then :
18541 $as_echo_n "(cached) " >&6
18542else
18543 ac_check_lib_save_LIBS=$LIBS
18544LIBS="-lgss $LIBS"
18545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18546/* end confdefs.h. */
18547
18548/* Override any GCC internal prototype to avoid an error.
18549 Use char because int might match the return type of a GCC
18550 builtin and then its argument prototype would still apply. */
18551#ifdef __cplusplus
18552extern "C"
18553#endif
18554char gss_init_sec_context ();
18555int
18556main ()
18557{
18558return gss_init_sec_context ();
18559 ;
18560 return 0;
18561}
18562_ACEOF
18563if ac_fn_c_try_link "$LINENO"; then :
18564 ac_cv_lib_gss_gss_init_sec_context=yes
18565else
18566 ac_cv_lib_gss_gss_init_sec_context=no
18567fi
18568rm -f core conftest.err conftest.$ac_objext \
18569 conftest$ac_exeext conftest.$ac_ext
18570LIBS=$ac_check_lib_save_LIBS
18571fi
18572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_init_sec_context" >&5
18573$as_echo "$ac_cv_lib_gss_gss_init_sec_context" >&6; }
18574if test "x$ac_cv_lib_gss_gss_init_sec_context" = xyes; then :
18575 $as_echo "#define GSSAPI 1" >>confdefs.h
18576
18577 GSSLIBS="-lgss"
18578else
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
18580$as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
18581fi
18582
18583
18584fi
18585
18586
18587fi
18588
18589
18590 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
18591if test "x$ac_cv_header_gssapi_h" = xyes; then :
18592
18593else
18594 unset ac_cv_header_gssapi_h
18595 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
18596 for ac_header in gssapi.h
18597do :
18598 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
18599if test "x$ac_cv_header_gssapi_h" = xyes; then :
18600 cat >>confdefs.h <<_ACEOF
18601#define HAVE_GSSAPI_H 1
18602_ACEOF
18603
18604else
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
18606$as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
18607
18608fi
18609
18610done
18611
18612
18613
18614fi
18615
18616
18617
18618 oldCPP="$CPPFLAGS"
18619 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
18620 ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default"
18621if test "x$ac_cv_header_gssapi_krb5_h" = xyes; then :
18622
18623else
18624 CPPFLAGS="$oldCPP"
18625fi
18626
18627
18628
18629 fi
18630 if test -n "${rpath_opt}" ; then
18631 LDFLAGS="$LDFLAGS ${rpath_opt}${KRB5ROOT}/lib"
18632 fi
18633 if test ! -z "$blibpath" ; then
18634 blibpath="$blibpath:${KRB5ROOT}/lib"
18635 fi
18636
18637 for ac_header in gssapi.h gssapi/gssapi.h
18638do :
18639 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18640ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18641if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18642 cat >>confdefs.h <<_ACEOF
18643#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18644_ACEOF
18645
18646fi
18647
18648done
18649
18650 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
18651do :
18652 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18653ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18654if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18655 cat >>confdefs.h <<_ACEOF
18656#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18657_ACEOF
18658
18659fi
18660
18661done
18662
18663 for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
18664do :
18665 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18666ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18667if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18668 cat >>confdefs.h <<_ACEOF
18669#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18670_ACEOF
18671
18672fi
18673
18674done
18675
18676
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5
18678$as_echo_n "checking for library containing k_hasafs... " >&6; }
18679if ${ac_cv_search_k_hasafs+:} false; then :
18680 $as_echo_n "(cached) " >&6
18681else
18682 ac_func_search_save_LIBS=$LIBS
18683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18684/* end confdefs.h. */
18685
18686/* Override any GCC internal prototype to avoid an error.
18687 Use char because int might match the return type of a GCC
18688 builtin and then its argument prototype would still apply. */
18689#ifdef __cplusplus
18690extern "C"
18691#endif
18692char k_hasafs ();
18693int
18694main ()
18695{
18696return k_hasafs ();
18697 ;
18698 return 0;
18699}
18700_ACEOF
18701for ac_lib in '' kafs; do
18702 if test -z "$ac_lib"; then
18703 ac_res="none required"
18704 else
18705 ac_res=-l$ac_lib
18706 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18707 fi
18708 if ac_fn_c_try_link "$LINENO"; then :
18709 ac_cv_search_k_hasafs=$ac_res
18710fi
18711rm -f core conftest.err conftest.$ac_objext \
18712 conftest$ac_exeext
18713 if ${ac_cv_search_k_hasafs+:} false; then :
18714 break
18715fi
18716done
18717if ${ac_cv_search_k_hasafs+:} false; then :
18718
18719else
18720 ac_cv_search_k_hasafs=no
18721fi
18722rm conftest.$ac_ext
18723LIBS=$ac_func_search_save_LIBS
18724fi
18725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5
18726$as_echo "$ac_cv_search_k_hasafs" >&6; }
18727ac_res=$ac_cv_search_k_hasafs
18728if test "$ac_res" != no; then :
18729 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18730
18731$as_echo "#define USE_AFS 1" >>confdefs.h
18732
18733fi
18734
18735
18736 ac_fn_c_check_decl "$LINENO" "GSS_C_NT_HOSTBASED_SERVICE" "ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" "
18737#ifdef HAVE_GSSAPI_H
18738# include <gssapi.h>
18739#elif defined(HAVE_GSSAPI_GSSAPI_H)
18740# include <gssapi/gssapi.h>
18741#endif
18742
18743#ifdef HAVE_GSSAPI_GENERIC_H
18744# include <gssapi_generic.h>
18745#elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H)
18746# include <gssapi/gssapi_generic.h>
18747#endif
18748
18749"
18750if test "x$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" = xyes; then :
18751 ac_have_decl=1
18752else
18753 ac_have_decl=0
18754fi
18755
18756cat >>confdefs.h <<_ACEOF
18757#define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE $ac_have_decl
18758_ACEOF
18759
18760 saved_LIBS="$LIBS"
18761 LIBS="$LIBS $K5LIBS"
18762 for ac_func in krb5_cc_new_unique krb5_get_error_message krb5_free_error_message
18763do :
18764 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18765ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18766if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18767 cat >>confdefs.h <<_ACEOF
18768#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18769_ACEOF
18770
18771fi
18772done
18773
18774 LIBS="$saved_LIBS"
18775
18776 fi
18777
18778
18779fi
18780
18781
18782
18783
18784# Looking for programs, paths and files
18785
18786PRIVSEP_PATH=/var/empty
18787
18788# Check whether --with-privsep-path was given.
18789if test "${with_privsep_path+set}" = set; then :
18790 withval=$with_privsep_path;
18791 if test -n "$withval" && test "x$withval" != "xno" && \
18792 test "x${withval}" != "xyes"; then
18793 PRIVSEP_PATH=$withval
18794 fi
18795
18796
18797fi
18798
18799
18800
18801
18802# Check whether --with-xauth was given.
18803if test "${with_xauth+set}" = set; then :
18804 withval=$with_xauth;
18805 if test -n "$withval" && test "x$withval" != "xno" && \
18806 test "x${withval}" != "xyes"; then
18807 xauth_path=$withval
18808 fi
18809
18810else
18811
18812 TestPath="$PATH"
18813 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
18814 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
18815 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
18816 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
18817 # Extract the first word of "xauth", so it can be a program name with args.
18818set dummy xauth; ac_word=$2
18819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18820$as_echo_n "checking for $ac_word... " >&6; }
18821if ${ac_cv_path_xauth_path+:} false; then :
18822 $as_echo_n "(cached) " >&6
18823else
18824 case $xauth_path in
18825 [\\/]* | ?:[\\/]*)
18826 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
18827 ;;
18828 *)
18829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18830for as_dir in $TestPath
18831do
18832 IFS=$as_save_IFS
18833 test -z "$as_dir" && as_dir=.
18834 for ac_exec_ext in '' $ac_executable_extensions; do
18835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18836 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
18837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18838 break 2
18839 fi
18840done
18841 done
18842IFS=$as_save_IFS
18843
18844 ;;
18845esac
18846fi
18847xauth_path=$ac_cv_path_xauth_path
18848if test -n "$xauth_path"; then
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5
18850$as_echo "$xauth_path" >&6; }
18851else
18852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18853$as_echo "no" >&6; }
18854fi
18855
18856
18857 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
18858 xauth_path="/usr/openwin/bin/xauth"
18859 fi
18860
18861
18862fi
18863
18864
18865STRIP_OPT=-s
18866# Check whether --enable-strip was given.
18867if test "${enable_strip+set}" = set; then :
18868 enableval=$enable_strip;
18869 if test "x$enableval" = "xno" ; then
18870 STRIP_OPT=
18871 fi
18872
18873
18874fi
18875
18876
18877
18878if test -z "$xauth_path" ; then
18879 XAUTH_PATH="undefined"
18880
18881else
18882
18883cat >>confdefs.h <<_ACEOF
18884#define XAUTH_PATH "$xauth_path"
18885_ACEOF
18886
18887 XAUTH_PATH=$xauth_path
18888
18889fi
18890
18891# Check for mail directory
18892
18893# Check whether --with-maildir was given.
18894if test "${with_maildir+set}" = set; then :
18895 withval=$with_maildir;
18896 if test "X$withval" != X && test "x$withval" != xno && \
18897 test "x${withval}" != xyes; then
18898
18899cat >>confdefs.h <<_ACEOF
18900#define MAIL_DIRECTORY "$withval"
18901_ACEOF
18902
18903 fi
18904
18905else
18906
18907 if test "X$maildir" != "X"; then
18908 cat >>confdefs.h <<_ACEOF
18909#define MAIL_DIRECTORY "$maildir"
18910_ACEOF
18911
18912 else
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Discovering system mail directory" >&5
18914$as_echo_n "checking Discovering system mail directory... " >&6; }
18915 if test "$cross_compiling" = yes; then :
18916
18917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5
18918$as_echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;}
18919
18920
18921else
18922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18923/* end confdefs.h. */
18924
18925#include <stdio.h>
18926#include <string.h>
18927#ifdef HAVE_PATHS_H
18928#include <paths.h>
18929#endif
18930#ifdef HAVE_MAILLOCK_H
18931#include <maillock.h>
18932#endif
18933#define DATA "conftest.maildir"
18934
18935int
18936main ()
18937{
18938
18939 FILE *fd;
18940 int rc;
18941
18942 fd = fopen(DATA,"w");
18943 if(fd == NULL)
18944 exit(1);
18945
18946#if defined (_PATH_MAILDIR)
18947 if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0)
18948 exit(1);
18949#elif defined (MAILDIR)
18950 if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0)
18951 exit(1);
18952#elif defined (_PATH_MAIL)
18953 if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0)
18954 exit(1);
18955#else
18956 exit (2);
18957#endif
18958
18959 exit(0);
18960
18961 ;
18962 return 0;
18963}
18964_ACEOF
18965if ac_fn_c_try_run "$LINENO"; then :
18966
18967 maildir_what=`awk -F: '{print $1}' conftest.maildir`
18968 maildir=`awk -F: '{print $2}' conftest.maildir \
18969 | sed 's|/$||'`
18970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: $maildir from $maildir_what" >&5
18971$as_echo "Using: $maildir from $maildir_what" >&6; }
18972 if test "x$maildir_what" != "x_PATH_MAILDIR"; then
18973 cat >>confdefs.h <<_ACEOF
18974#define MAIL_DIRECTORY "$maildir"
18975_ACEOF
18976
18977 fi
18978
18979else
18980
18981 if test "X$ac_status" = "X2";then
18982# our test program didn't find it. Default to /var/spool/mail
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: default value of /var/spool/mail" >&5
18984$as_echo "Using: default value of /var/spool/mail" >&6; }
18985 cat >>confdefs.h <<_ACEOF
18986#define MAIL_DIRECTORY "/var/spool/mail"
18987_ACEOF
18988
18989 else
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** not found ***" >&5
18991$as_echo "*** not found ***" >&6; }
18992 fi
18993
18994fi
18995rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18996 conftest.$ac_objext conftest.beam conftest.$ac_ext
18997fi
18998
18999 fi
19000
19001
19002fi
19003 # maildir
19004
19005if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
19006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
19007$as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
19008 disable_ptmx_check=yes
19009fi
19010if test -z "$no_dev_ptmx" ; then
19011 if test "x$disable_ptmx_check" != "xyes" ; then
19012 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh`
19013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5
19014$as_echo_n "checking for \"/dev/ptmx\"... " >&6; }
19015if eval \${$as_ac_File+:} false; then :
19016 $as_echo_n "(cached) " >&6
19017else
19018 test "$cross_compiling" = yes &&
19019 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19020if test -r ""/dev/ptmx""; then
19021 eval "$as_ac_File=yes"
19022else
19023 eval "$as_ac_File=no"
19024fi
19025fi
19026eval ac_res=\$$as_ac_File
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19028$as_echo "$ac_res" >&6; }
19029if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
19030
19031
19032cat >>confdefs.h <<_ACEOF
19033#define HAVE_DEV_PTMX 1
19034_ACEOF
19035
19036 have_dev_ptmx=1
19037
19038
19039fi
19040
19041 fi
19042fi
19043
19044if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
19045 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh`
19046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5
19047$as_echo_n "checking for \"/dev/ptc\"... " >&6; }
19048if eval \${$as_ac_File+:} false; then :
19049 $as_echo_n "(cached) " >&6
19050else
19051 test "$cross_compiling" = yes &&
19052 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19053if test -r ""/dev/ptc""; then
19054 eval "$as_ac_File=yes"
19055else
19056 eval "$as_ac_File=no"
19057fi
19058fi
19059eval ac_res=\$$as_ac_File
19060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19061$as_echo "$ac_res" >&6; }
19062if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
19063
19064
19065cat >>confdefs.h <<_ACEOF
19066#define HAVE_DEV_PTS_AND_PTC 1
19067_ACEOF
19068
19069 have_dev_ptc=1
19070
19071
19072fi
19073
19074else
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5
19076$as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
19077fi
19078
19079# Options from here on. Some of these are preset by platform above
19080
19081# Check whether --with-mantype was given.
19082if test "${with_mantype+set}" = set; then :
19083 withval=$with_mantype;
19084 case "$withval" in
19085 man|cat|doc)
19086 MANTYPE=$withval
19087 ;;
19088 *)
19089 as_fn_error $? "invalid man type: $withval" "$LINENO" 5
19090 ;;
19091 esac
19092
19093
19094fi
19095
19096if test -z "$MANTYPE"; then
19097 if ${MANDOC} ${srcdir}/ssh.1 >/dev/null 2>&1; then
19098 MANTYPE=doc
19099 elif ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
19100 MANTYPE=doc
19101 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
19102 MANTYPE=man
19103 else
19104 MANTYPE=cat
19105 fi
19106fi
19107
19108if test "$MANTYPE" = "doc"; then
19109 mansubdir=man;
19110else
19111 mansubdir=$MANTYPE;
19112fi
19113
19114
19115# Check whether to enable MD5 passwords
19116MD5_MSG="no"
19117
19118# Check whether --with-md5-passwords was given.
19119if test "${with_md5_passwords+set}" = set; then :
19120 withval=$with_md5_passwords;
19121 if test "x$withval" != "xno" ; then
19122
19123$as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h
19124
19125 MD5_MSG="yes"
19126 fi
19127
19128
19129fi
19130
19131
19132# Whether to disable shadow password support
19133
19134# Check whether --with-shadow was given.
19135if test "${with_shadow+set}" = set; then :
19136 withval=$with_shadow;
19137 if test "x$withval" = "xno" ; then
19138 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
19139
19140 disable_shadow=yes
19141 fi
19142
19143
19144fi
19145
19146
19147if test -z "$disable_shadow" ; then
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5
19149$as_echo_n "checking if the systems has expire shadow information... " >&6; }
19150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19151/* end confdefs.h. */
19152
19153#include <sys/types.h>
19154#include <shadow.h>
19155struct spwd sp;
19156
19157int
19158main ()
19159{
19160 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
19161 ;
19162 return 0;
19163}
19164_ACEOF
19165if ac_fn_c_try_compile "$LINENO"; then :
19166 sp_expire_available=yes
19167fi
19168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19169
19170 if test "x$sp_expire_available" = "xyes" ; then
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19172$as_echo "yes" >&6; }
19173
19174$as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h
19175
19176 else
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19178$as_echo "no" >&6; }
19179 fi
19180fi
19181
19182# Use ip address instead of hostname in $DISPLAY
19183if test ! -z "$IPADDR_IN_DISPLAY" ; then
19184 DISPLAY_HACK_MSG="yes"
19185
19186$as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
19187
19188else
19189 DISPLAY_HACK_MSG="no"
19190
19191# Check whether --with-ipaddr-display was given.
19192if test "${with_ipaddr_display+set}" = set; then :
19193 withval=$with_ipaddr_display;
19194 if test "x$withval" != "xno" ; then
19195 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
19196
19197 DISPLAY_HACK_MSG="yes"
19198 fi
19199
19200
19201fi
19202
19203fi
19204
19205# check for /etc/default/login and use it if present.
19206# Check whether --enable-etc-default-login was given.
19207if test "${enable_etc_default_login+set}" = set; then :
19208 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5
19210$as_echo "$as_me: /etc/default/login handling disabled" >&6;}
19211 etc_default_login=no
19212 else
19213 etc_default_login=yes
19214 fi
19215else
19216 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
19217 then
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5
19219$as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
19220 etc_default_login=no
19221 else
19222 etc_default_login=yes
19223 fi
19224
19225fi
19226
19227
19228if test "x$etc_default_login" != "xno"; then
19229 as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh`
19230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5
19231$as_echo_n "checking for \"/etc/default/login\"... " >&6; }
19232if eval \${$as_ac_File+:} false; then :
19233 $as_echo_n "(cached) " >&6
19234else
19235 test "$cross_compiling" = yes &&
19236 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19237if test -r ""/etc/default/login""; then
19238 eval "$as_ac_File=yes"
19239else
19240 eval "$as_ac_File=no"
19241fi
19242fi
19243eval ac_res=\$$as_ac_File
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19245$as_echo "$ac_res" >&6; }
19246if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
19247 external_path_file=/etc/default/login
19248fi
19249
19250 if test "x$external_path_file" = "x/etc/default/login"; then
19251
19252$as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h
19253
19254 fi
19255fi
19256
19257if test $ac_cv_func_login_getcapbool = "yes" && \
19258 test $ac_cv_header_login_cap_h = "yes" ; then
19259 external_path_file=/etc/login.conf
19260fi
19261
19262# Whether to mess with the default path
19263SERVER_PATH_MSG="(default)"
19264
19265# Check whether --with-default-path was given.
19266if test "${with_default_path+set}" = set; then :
19267 withval=$with_default_path;
19268 if test "x$external_path_file" = "x/etc/login.conf" ; then
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19270--with-default-path=PATH has no effect on this system.
19271Edit /etc/login.conf instead." >&5
19272$as_echo "$as_me: WARNING:
19273--with-default-path=PATH has no effect on this system.
19274Edit /etc/login.conf instead." >&2;}
19275 elif test "x$withval" != "xno" ; then
19276 if test ! -z "$external_path_file" ; then
19277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19278--with-default-path=PATH will only be used if PATH is not defined in
19279$external_path_file ." >&5
19280$as_echo "$as_me: WARNING:
19281--with-default-path=PATH will only be used if PATH is not defined in
19282$external_path_file ." >&2;}
19283 fi
19284 user_path="$withval"
19285 SERVER_PATH_MSG="$withval"
19286 fi
19287
19288else
19289 if test "x$external_path_file" = "x/etc/login.conf" ; then
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
19291$as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
19292 else
19293 if test ! -z "$external_path_file" ; then
19294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19295If PATH is defined in $external_path_file, ensure the path to scp is included,
19296otherwise scp will not work." >&5
19297$as_echo "$as_me: WARNING:
19298If PATH is defined in $external_path_file, ensure the path to scp is included,
19299otherwise scp will not work." >&2;}
19300 fi
19301 if test "$cross_compiling" = yes; then :
19302 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
19303
19304else
19305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19306/* end confdefs.h. */
19307
19308/* find out what STDPATH is */
19309#include <stdio.h>
19310#ifdef HAVE_PATHS_H
19311# include <paths.h>
19312#endif
19313#ifndef _PATH_STDPATH
19314# ifdef _PATH_USERPATH /* Irix */
19315# define _PATH_STDPATH _PATH_USERPATH
19316# else
19317# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
19318# endif
19319#endif
19320#include <sys/types.h>
19321#include <sys/stat.h>
19322#include <fcntl.h>
19323#define DATA "conftest.stdpath"
19324
19325int
19326main ()
19327{
19328
19329 FILE *fd;
19330 int rc;
19331
19332 fd = fopen(DATA,"w");
19333 if(fd == NULL)
19334 exit(1);
19335
19336 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
19337 exit(1);
19338
19339 exit(0);
19340
19341 ;
19342 return 0;
19343}
19344_ACEOF
19345if ac_fn_c_try_run "$LINENO"; then :
19346 user_path=`cat conftest.stdpath`
19347else
19348 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
19349fi
19350rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19351 conftest.$ac_objext conftest.beam conftest.$ac_ext
19352fi
19353
19354# make sure $bindir is in USER_PATH so scp will work
19355 t_bindir="${bindir}"
19356 while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do
19357 t_bindir=`eval echo ${t_bindir}`
19358 case $t_bindir in
19359 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
19360 esac
19361 case $t_bindir in
19362 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
19363 esac
19364 done
19365 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
19366 if test $? -ne 0 ; then
19367 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
19368 if test $? -ne 0 ; then
19369 user_path=$user_path:$t_bindir
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5
19371$as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; }
19372 fi
19373 fi
19374 fi
19375
19376fi
19377
19378if test "x$external_path_file" != "x/etc/login.conf" ; then
19379
19380cat >>confdefs.h <<_ACEOF
19381#define USER_PATH "$user_path"
19382_ACEOF
19383
19384
19385fi
19386
19387# Set superuser path separately to user path
19388
19389# Check whether --with-superuser-path was given.
19390if test "${with_superuser_path+set}" = set; then :
19391 withval=$with_superuser_path;
19392 if test -n "$withval" && test "x$withval" != "xno" && \
19393 test "x${withval}" != "xyes"; then
19394
19395cat >>confdefs.h <<_ACEOF
19396#define SUPERUSER_PATH "$withval"
19397_ACEOF
19398
19399 superuser_path=$withval
19400 fi
19401
19402
19403fi
19404
19405
19406
19407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
19408$as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; }
19409IPV4_IN6_HACK_MSG="no"
19410
19411# Check whether --with-4in6 was given.
19412if test "${with_4in6+set}" = set; then :
19413 withval=$with_4in6;
19414 if test "x$withval" != "xno" ; then
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19416$as_echo "yes" >&6; }
19417
19418$as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
19419
19420 IPV4_IN6_HACK_MSG="yes"
19421 else
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19423$as_echo "no" >&6; }
19424 fi
19425
19426else
19427
19428 if test "x$inet6_default_4in6" = "xyes"; then
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
19430$as_echo "yes (default)" >&6; }
19431 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
19432
19433 IPV4_IN6_HACK_MSG="yes"
19434 else
19435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
19436$as_echo "no (default)" >&6; }
19437 fi
19438
19439
19440fi
19441
19442
19443# Whether to enable BSD auth support
19444BSD_AUTH_MSG=no
19445
19446# Check whether --with-bsd-auth was given.
19447if test "${with_bsd_auth+set}" = set; then :
19448 withval=$with_bsd_auth;
19449 if test "x$withval" != "xno" ; then
19450
19451$as_echo "#define BSD_AUTH 1" >>confdefs.h
19452
19453 BSD_AUTH_MSG=yes
19454 fi
19455
19456
19457fi
19458
19459
19460# Where to place sshd.pid
19461piddir=/var/run
19462# make sure the directory exists
19463if test ! -d $piddir ; then
19464 piddir=`eval echo ${sysconfdir}`
19465 case $piddir in
19466 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
19467 esac
19468fi
19469
19470
19471# Check whether --with-pid-dir was given.
19472if test "${with_pid_dir+set}" = set; then :
19473 withval=$with_pid_dir;
19474 if test -n "$withval" && test "x$withval" != "xno" && \
19475 test "x${withval}" != "xyes"; then
19476 piddir=$withval
19477 if test ! -d $piddir ; then
19478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5
19479$as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
19480 fi
19481 fi
19482
19483
19484fi
19485
19486
19487
19488cat >>confdefs.h <<_ACEOF
19489#define _PATH_SSH_PIDDIR "$piddir"
19490_ACEOF
19491
19492
19493
19494# Check whether --enable-lastlog was given.
19495if test "${enable_lastlog+set}" = set; then :
19496 enableval=$enable_lastlog;
19497 if test "x$enableval" = "xno" ; then
19498 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
19499
19500 fi
19501
19502
19503fi
19504
19505# Check whether --enable-utmp was given.
19506if test "${enable_utmp+set}" = set; then :
19507 enableval=$enable_utmp;
19508 if test "x$enableval" = "xno" ; then
19509 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
19510
19511 fi
19512
19513
19514fi
19515
19516# Check whether --enable-utmpx was given.
19517if test "${enable_utmpx+set}" = set; then :
19518 enableval=$enable_utmpx;
19519 if test "x$enableval" = "xno" ; then
19520
19521$as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
19522
19523 fi
19524
19525
19526fi
19527
19528# Check whether --enable-wtmp was given.
19529if test "${enable_wtmp+set}" = set; then :
19530 enableval=$enable_wtmp;
19531 if test "x$enableval" = "xno" ; then
19532 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
19533
19534 fi
19535
19536
19537fi
19538
19539# Check whether --enable-wtmpx was given.
19540if test "${enable_wtmpx+set}" = set; then :
19541 enableval=$enable_wtmpx;
19542 if test "x$enableval" = "xno" ; then
19543
19544$as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
19545
19546 fi
19547
19548
19549fi
19550
19551# Check whether --enable-libutil was given.
19552if test "${enable_libutil+set}" = set; then :
19553 enableval=$enable_libutil;
19554 if test "x$enableval" = "xno" ; then
19555 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
19556
19557 fi
19558
19559
19560fi
19561
19562# Check whether --enable-pututline was given.
19563if test "${enable_pututline+set}" = set; then :
19564 enableval=$enable_pututline;
19565 if test "x$enableval" = "xno" ; then
19566
19567$as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h
19568
19569 fi
19570
19571
19572fi
19573
19574# Check whether --enable-pututxline was given.
19575if test "${enable_pututxline+set}" = set; then :
19576 enableval=$enable_pututxline;
19577 if test "x$enableval" = "xno" ; then
19578
19579$as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h
19580
19581 fi
19582
19583
19584fi
19585
19586
19587# Check whether --with-lastlog was given.
19588if test "${with_lastlog+set}" = set; then :
19589 withval=$with_lastlog;
19590 if test "x$withval" = "xno" ; then
19591 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
19592
19593 elif test -n "$withval" && test "x${withval}" != "xyes"; then
19594 conf_lastlog_location=$withval
19595 fi
19596
19597
19598fi
19599
19600
19601
19602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5
19603$as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; }
19604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19605/* end confdefs.h. */
19606
19607#include <sys/types.h>
19608#include <utmp.h>
19609#ifdef HAVE_LASTLOG_H
19610# include <lastlog.h>
19611#endif
19612#ifdef HAVE_PATHS_H
19613# include <paths.h>
19614#endif
19615#ifdef HAVE_LOGIN_H
19616# include <login.h>
19617#endif
19618
19619int
19620main ()
19621{
19622 char *lastlog = LASTLOG_FILE;
19623 ;
19624 return 0;
19625}
19626_ACEOF
19627if ac_fn_c_try_compile "$LINENO"; then :
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19629$as_echo "yes" >&6; }
19630else
19631
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19633$as_echo "no" >&6; }
19634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5
19635$as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; }
19636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19637/* end confdefs.h. */
19638
19639#include <sys/types.h>
19640#include <utmp.h>
19641#ifdef HAVE_LASTLOG_H
19642# include <lastlog.h>
19643#endif
19644#ifdef HAVE_PATHS_H
19645# include <paths.h>
19646#endif
19647
19648int
19649main ()
19650{
19651 char *lastlog = _PATH_LASTLOG;
19652 ;
19653 return 0;
19654}
19655_ACEOF
19656if ac_fn_c_try_compile "$LINENO"; then :
19657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19658$as_echo "yes" >&6; }
19659else
19660
19661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19662$as_echo "no" >&6; }
19663 system_lastlog_path=no
19664
19665fi
19666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19667
19668fi
19669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19670
19671if test -z "$conf_lastlog_location"; then
19672 if test x"$system_lastlog_path" = x"no" ; then
19673 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
19674 if (test -d "$f" || test -f "$f") ; then
19675 conf_lastlog_location=$f
19676 fi
19677 done
19678 if test -z "$conf_lastlog_location"; then
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5
19680$as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
19681 fi
19682 fi
19683fi
19684
19685if test -n "$conf_lastlog_location"; then
19686
19687cat >>confdefs.h <<_ACEOF
19688#define CONF_LASTLOG_FILE "$conf_lastlog_location"
19689_ACEOF
19690
19691fi
19692
19693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5
19694$as_echo_n "checking if your system defines UTMP_FILE... " >&6; }
19695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19696/* end confdefs.h. */
19697
19698#include <sys/types.h>
19699#include <utmp.h>
19700#ifdef HAVE_PATHS_H
19701# include <paths.h>
19702#endif
19703
19704int
19705main ()
19706{
19707 char *utmp = UTMP_FILE;
19708 ;
19709 return 0;
19710}
19711_ACEOF
19712if ac_fn_c_try_compile "$LINENO"; then :
19713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19714$as_echo "yes" >&6; }
19715else
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19717$as_echo "no" >&6; }
19718 system_utmp_path=no
19719
19720fi
19721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19722if test -z "$conf_utmp_location"; then
19723 if test x"$system_utmp_path" = x"no" ; then
19724 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
19725 if test -f $f ; then
19726 conf_utmp_location=$f
19727 fi
19728 done
19729 if test -z "$conf_utmp_location"; then
19730 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
19731
19732 fi
19733 fi
19734fi
19735if test -n "$conf_utmp_location"; then
19736
19737cat >>confdefs.h <<_ACEOF
19738#define CONF_UTMP_FILE "$conf_utmp_location"
19739_ACEOF
19740
19741fi
19742
19743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5
19744$as_echo_n "checking if your system defines WTMP_FILE... " >&6; }
19745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19746/* end confdefs.h. */
19747
19748#include <sys/types.h>
19749#include <utmp.h>
19750#ifdef HAVE_PATHS_H
19751# include <paths.h>
19752#endif
19753
19754int
19755main ()
19756{
19757 char *wtmp = WTMP_FILE;
19758 ;
19759 return 0;
19760}
19761_ACEOF
19762if ac_fn_c_try_compile "$LINENO"; then :
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19764$as_echo "yes" >&6; }
19765else
19766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19767$as_echo "no" >&6; }
19768 system_wtmp_path=no
19769
19770fi
19771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19772if test -z "$conf_wtmp_location"; then
19773 if test x"$system_wtmp_path" = x"no" ; then
19774 for f in /usr/adm/wtmp /var/log/wtmp; do
19775 if test -f $f ; then
19776 conf_wtmp_location=$f
19777 fi
19778 done
19779 if test -z "$conf_wtmp_location"; then
19780 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
19781
19782 fi
19783 fi
19784fi
19785if test -n "$conf_wtmp_location"; then
19786
19787cat >>confdefs.h <<_ACEOF
19788#define CONF_WTMP_FILE "$conf_wtmp_location"
19789_ACEOF
19790
19791fi
19792
19793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5
19794$as_echo_n "checking if your system defines WTMPX_FILE... " >&6; }
19795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19796/* end confdefs.h. */
19797
19798#include <sys/types.h>
19799#include <utmp.h>
19800#ifdef HAVE_UTMPX_H
19801#include <utmpx.h>
19802#endif
19803#ifdef HAVE_PATHS_H
19804# include <paths.h>
19805#endif
19806
19807int
19808main ()
19809{
19810 char *wtmpx = WTMPX_FILE;
19811 ;
19812 return 0;
19813}
19814_ACEOF
19815if ac_fn_c_try_compile "$LINENO"; then :
19816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19817$as_echo "yes" >&6; }
19818else
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19820$as_echo "no" >&6; }
19821 system_wtmpx_path=no
19822
19823fi
19824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19825if test -z "$conf_wtmpx_location"; then
19826 if test x"$system_wtmpx_path" = x"no" ; then
19827 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
19828
19829 fi
19830else
19831
19832cat >>confdefs.h <<_ACEOF
19833#define CONF_WTMPX_FILE "$conf_wtmpx_location"
19834_ACEOF
19835
19836fi
19837
19838
19839if test ! -z "$blibpath" ; then
19840 LDFLAGS="$LDFLAGS $blibflags$blibpath"
19841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
19842$as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
19843fi
19844
19845ac_fn_c_check_member "$LINENO" "struct lastlog" "ll_line" "ac_cv_member_struct_lastlog_ll_line" "
19846#ifdef HAVE_SYS_TYPES_H
19847#include <sys/types.h>
19848#endif
19849#ifdef HAVE_UTMP_H
19850#include <utmp.h>
19851#endif
19852#ifdef HAVE_UTMPX_H
19853#include <utmpx.h>
19854#endif
19855#ifdef HAVE_LASTLOG_H
19856#include <lastlog.h>
19857#endif
19858
19859"
19860if test "x$ac_cv_member_struct_lastlog_ll_line" = xyes; then :
19861
19862else
19863
19864 if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then
19865 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
19866
19867 fi
19868
19869fi
19870
19871
19872ac_fn_c_check_member "$LINENO" "struct utmp" "ut_line" "ac_cv_member_struct_utmp_ut_line" "
19873#ifdef HAVE_SYS_TYPES_H
19874#include <sys/types.h>
19875#endif
19876#ifdef HAVE_UTMP_H
19877#include <utmp.h>
19878#endif
19879#ifdef HAVE_UTMPX_H
19880#include <utmpx.h>
19881#endif
19882#ifdef HAVE_LASTLOG_H
19883#include <lastlog.h>
19884#endif
19885
19886"
19887if test "x$ac_cv_member_struct_utmp_ut_line" = xyes; then :
19888
19889else
19890
19891 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
19892
19893 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
19894
19895
19896fi
19897
19898
19899CFLAGS="$CFLAGS $werror_flags"
19900
19901if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
19902 TEST_SSH_IPV6=no
19903else
19904 TEST_SSH_IPV6=yes
19905fi
19906ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default"
19907if test "x$ac_cv_have_decl_BROKEN_GETADDRINFO" = xyes; then :
19908 TEST_SSH_IPV6=no
19909fi
19910
19911TEST_SSH_IPV6=$TEST_SSH_IPV6
19912
19913TEST_SSH_UTF8=$TEST_SSH_UTF8
19914
19915TEST_MALLOC_OPTIONS=$TEST_MALLOC_OPTIONS
19916
19917UNSUPPORTED_ALGORITHMS=$unsupported_algorithms
19918
19919DEPEND=$(cat $srcdir/.depend)
19920
19921
19922CFLAGS="${CFLAGS} ${CFLAGS_AFTER}"
19923LDFLAGS="${LDFLAGS} ${LDFLAGS_AFTER}"
19924
19925# Make a copy of CFLAGS/LDFLAGS without PIE options.
19926LDFLAGS_NOPIE=`echo "$LDFLAGS" | sed 's/ -pie//'`
19927CFLAGS_NOPIE=`echo "$CFLAGS" | sed 's/ -fPIE//'`
19928
19929
19930
19931
19932ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh"
19933
19934cat >confcache <<\_ACEOF
19935# This file is a shell script that caches the results of configure
19936# tests run on this system so they can be shared between configure
19937# scripts and configure runs, see configure's option --config-cache.
19938# It is not useful on other systems. If it contains results you don't
19939# want to keep, you may remove or edit it.
19940#
19941# config.status only pays attention to the cache file if you give it
19942# the --recheck option to rerun configure.
19943#
19944# `ac_cv_env_foo' variables (set or unset) will be overridden when
19945# loading this file, other *unset* `ac_cv_foo' will be assigned the
19946# following values.
19947
19948_ACEOF
19949
19950# The following way of writing the cache mishandles newlines in values,
19951# but we know of no workaround that is simple, portable, and efficient.
19952# So, we kill variables containing newlines.
19953# Ultrix sh set writes to stderr and can't be redirected directly,
19954# and sets the high bit in the cache file unless we assign to the vars.
19955(
19956 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19957 eval ac_val=\$$ac_var
19958 case $ac_val in #(
19959 *${as_nl}*)
19960 case $ac_var in #(
19961 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19962$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19963 esac
19964 case $ac_var in #(
19965 _ | IFS | as_nl) ;; #(
19966 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19967 *) { eval $ac_var=; unset $ac_var;} ;;
19968 esac ;;
19969 esac
19970 done
19971
19972 (set) 2>&1 |
19973 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19974 *${as_nl}ac_space=\ *)
19975 # `set' does not quote correctly, so add quotes: double-quote
19976 # substitution turns \\\\ into \\, and sed turns \\ into \.
19977 sed -n \
19978 "s/'/'\\\\''/g;
19979 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19980 ;; #(
19981 *)
19982 # `set' quotes correctly as required by POSIX, so do not add quotes.
19983 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19984 ;;
19985 esac |
19986 sort
19987) |
19988 sed '
19989 /^ac_cv_env_/b end
19990 t clear
19991 :clear
19992 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19993 t end
19994 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19995 :end' >>confcache
19996if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19997 if test -w "$cache_file"; then
19998 if test "x$cache_file" != "x/dev/null"; then
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20000$as_echo "$as_me: updating cache $cache_file" >&6;}
20001 if test ! -f "$cache_file" || test -h "$cache_file"; then
20002 cat confcache >"$cache_file"
20003 else
20004 case $cache_file in #(
20005 */* | ?:*)
20006 mv -f confcache "$cache_file"$$ &&
20007 mv -f "$cache_file"$$ "$cache_file" ;; #(
20008 *)
20009 mv -f confcache "$cache_file" ;;
20010 esac
20011 fi
20012 fi
20013 else
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20015$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20016 fi
20017fi
20018rm -f confcache
20019
20020test "x$prefix" = xNONE && prefix=$ac_default_prefix
20021# Let make expand exec_prefix.
20022test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20023
20024DEFS=-DHAVE_CONFIG_H
20025
20026ac_libobjs=
20027ac_ltlibobjs=
20028U=
20029for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20030 # 1. Remove the extension, and $U if already installed.
20031 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20032 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20033 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20034 # will be set to the directory where LIBOBJS objects are built.
20035 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20036 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20037done
20038LIBOBJS=$ac_libobjs
20039
20040LTLIBOBJS=$ac_ltlibobjs
20041
20042
20043
20044
20045: "${CONFIG_STATUS=./config.status}"
20046ac_write_fail=0
20047ac_clean_files_save=$ac_clean_files
20048ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20049{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20050$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20051as_write_fail=0
20052cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20053#! $SHELL
20054# Generated by $as_me.
20055# Run this file to recreate the current configuration.
20056# Compiler output produced by configure, useful for debugging
20057# configure, is in config.log if it exists.
20058
20059debug=false
20060ac_cs_recheck=false
20061ac_cs_silent=false
20062
20063SHELL=\${CONFIG_SHELL-$SHELL}
20064export SHELL
20065_ASEOF
20066cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20067## -------------------- ##
20068## M4sh Initialization. ##
20069## -------------------- ##
20070
20071# Be more Bourne compatible
20072DUALCASE=1; export DUALCASE # for MKS sh
20073if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20074 emulate sh
20075 NULLCMD=:
20076 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20077 # is contrary to our usage. Disable this feature.
20078 alias -g '${1+"$@"}'='"$@"'
20079 setopt NO_GLOB_SUBST
20080else
20081 case `(set -o) 2>/dev/null` in #(
20082 *posix*) :
20083 set -o posix ;; #(
20084 *) :
20085 ;;
20086esac
20087fi
20088
20089
20090as_nl='
20091'
20092export as_nl
20093# Printing a long string crashes Solaris 7 /usr/bin/printf.
20094as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20095as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20096as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20097# Prefer a ksh shell builtin over an external printf program on Solaris,
20098# but without wasting forks for bash or zsh.
20099if test -z "$BASH_VERSION$ZSH_VERSION" \
20100 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20101 as_echo='print -r --'
20102 as_echo_n='print -rn --'
20103elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20104 as_echo='printf %s\n'
20105 as_echo_n='printf %s'
20106else
20107 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20108 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20109 as_echo_n='/usr/ucb/echo -n'
20110 else
20111 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20112 as_echo_n_body='eval
20113 arg=$1;
20114 case $arg in #(
20115 *"$as_nl"*)
20116 expr "X$arg" : "X\\(.*\\)$as_nl";
20117 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20118 esac;
20119 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20120 '
20121 export as_echo_n_body
20122 as_echo_n='sh -c $as_echo_n_body as_echo'
20123 fi
20124 export as_echo_body
20125 as_echo='sh -c $as_echo_body as_echo'
20126fi
20127
20128# The user is always right.
20129if test "${PATH_SEPARATOR+set}" != set; then
20130 PATH_SEPARATOR=:
20131 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20132 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20133 PATH_SEPARATOR=';'
20134 }
20135fi
20136
20137
20138# IFS
20139# We need space, tab and new line, in precisely that order. Quoting is
20140# there to prevent editors from complaining about space-tab.
20141# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20142# splitting by setting IFS to empty value.)
20143IFS=" "" $as_nl"
20144
20145# Find who we are. Look in the path if we contain no directory separator.
20146as_myself=
20147case $0 in #((
20148 *[\\/]* ) as_myself=$0 ;;
20149 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20150for as_dir in $PATH
20151do
20152 IFS=$as_save_IFS
20153 test -z "$as_dir" && as_dir=.
20154 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20155 done
20156IFS=$as_save_IFS
20157
20158 ;;
20159esac
20160# We did not find ourselves, most probably we were run as `sh COMMAND'
20161# in which case we are not to be found in the path.
20162if test "x$as_myself" = x; then
20163 as_myself=$0
20164fi
20165if test ! -f "$as_myself"; then
20166 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20167 exit 1
20168fi
20169
20170# Unset variables that we do not need and which cause bugs (e.g. in
20171# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20172# suppresses any "Segmentation fault" message there. '((' could
20173# trigger a bug in pdksh 5.2.14.
20174for as_var in BASH_ENV ENV MAIL MAILPATH
20175do eval test x\${$as_var+set} = xset \
20176 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20177done
20178PS1='$ '
20179PS2='> '
20180PS4='+ '
20181
20182# NLS nuisances.
20183LC_ALL=C
20184export LC_ALL
20185LANGUAGE=C
20186export LANGUAGE
20187
20188# CDPATH.
20189(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20190
20191
20192# as_fn_error STATUS ERROR [LINENO LOG_FD]
20193# ----------------------------------------
20194# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20195# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20196# script with STATUS, using 1 if that was 0.
20197as_fn_error ()
20198{
20199 as_status=$1; test $as_status -eq 0 && as_status=1
20200 if test "$4"; then
20201 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20202 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20203 fi
20204 $as_echo "$as_me: error: $2" >&2
20205 as_fn_exit $as_status
20206} # as_fn_error
20207
20208
20209# as_fn_set_status STATUS
20210# -----------------------
20211# Set $? to STATUS, without forking.
20212as_fn_set_status ()
20213{
20214 return $1
20215} # as_fn_set_status
20216
20217# as_fn_exit STATUS
20218# -----------------
20219# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20220as_fn_exit ()
20221{
20222 set +e
20223 as_fn_set_status $1
20224 exit $1
20225} # as_fn_exit
20226
20227# as_fn_unset VAR
20228# ---------------
20229# Portably unset VAR.
20230as_fn_unset ()
20231{
20232 { eval $1=; unset $1;}
20233}
20234as_unset=as_fn_unset
20235# as_fn_append VAR VALUE
20236# ----------------------
20237# Append the text in VALUE to the end of the definition contained in VAR. Take
20238# advantage of any shell optimizations that allow amortized linear growth over
20239# repeated appends, instead of the typical quadratic growth present in naive
20240# implementations.
20241if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20242 eval 'as_fn_append ()
20243 {
20244 eval $1+=\$2
20245 }'
20246else
20247 as_fn_append ()
20248 {
20249 eval $1=\$$1\$2
20250 }
20251fi # as_fn_append
20252
20253# as_fn_arith ARG...
20254# ------------------
20255# Perform arithmetic evaluation on the ARGs, and store the result in the
20256# global $as_val. Take advantage of shells that can avoid forks. The arguments
20257# must be portable across $(()) and expr.
20258if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20259 eval 'as_fn_arith ()
20260 {
20261 as_val=$(( $* ))
20262 }'
20263else
20264 as_fn_arith ()
20265 {
20266 as_val=`expr "$@" || test $? -eq 1`
20267 }
20268fi # as_fn_arith
20269
20270
20271if expr a : '\(a\)' >/dev/null 2>&1 &&
20272 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20273 as_expr=expr
20274else
20275 as_expr=false
20276fi
20277
20278if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20279 as_basename=basename
20280else
20281 as_basename=false
20282fi
20283
20284if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20285 as_dirname=dirname
20286else
20287 as_dirname=false
20288fi
20289
20290as_me=`$as_basename -- "$0" ||
20291$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20292 X"$0" : 'X\(//\)$' \| \
20293 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20294$as_echo X/"$0" |
20295 sed '/^.*\/\([^/][^/]*\)\/*$/{
20296 s//\1/
20297 q
20298 }
20299 /^X\/\(\/\/\)$/{
20300 s//\1/
20301 q
20302 }
20303 /^X\/\(\/\).*/{
20304 s//\1/
20305 q
20306 }
20307 s/.*/./; q'`
20308
20309# Avoid depending upon Character Ranges.
20310as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20311as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20312as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20313as_cr_digits='0123456789'
20314as_cr_alnum=$as_cr_Letters$as_cr_digits
20315
20316ECHO_C= ECHO_N= ECHO_T=
20317case `echo -n x` in #(((((
20318-n*)
20319 case `echo 'xy\c'` in
20320 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20321 xy) ECHO_C='\c';;
20322 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20323 ECHO_T=' ';;
20324 esac;;
20325*)
20326 ECHO_N='-n';;
20327esac
20328
20329rm -f conf$$ conf$$.exe conf$$.file
20330if test -d conf$$.dir; then
20331 rm -f conf$$.dir/conf$$.file
20332else
20333 rm -f conf$$.dir
20334 mkdir conf$$.dir 2>/dev/null
20335fi
20336if (echo >conf$$.file) 2>/dev/null; then
20337 if ln -s conf$$.file conf$$ 2>/dev/null; then
20338 as_ln_s='ln -s'
20339 # ... but there are two gotchas:
20340 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20341 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20342 # In both cases, we have to default to `cp -pR'.
20343 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20344 as_ln_s='cp -pR'
20345 elif ln conf$$.file conf$$ 2>/dev/null; then
20346 as_ln_s=ln
20347 else
20348 as_ln_s='cp -pR'
20349 fi
20350else
20351 as_ln_s='cp -pR'
20352fi
20353rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20354rmdir conf$$.dir 2>/dev/null
20355
20356
20357# as_fn_mkdir_p
20358# -------------
20359# Create "$as_dir" as a directory, including parents if necessary.
20360as_fn_mkdir_p ()
20361{
20362
20363 case $as_dir in #(
20364 -*) as_dir=./$as_dir;;
20365 esac
20366 test -d "$as_dir" || eval $as_mkdir_p || {
20367 as_dirs=
20368 while :; do
20369 case $as_dir in #(
20370 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20371 *) as_qdir=$as_dir;;
20372 esac
20373 as_dirs="'$as_qdir' $as_dirs"
20374 as_dir=`$as_dirname -- "$as_dir" ||
20375$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20376 X"$as_dir" : 'X\(//\)[^/]' \| \
20377 X"$as_dir" : 'X\(//\)$' \| \
20378 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20379$as_echo X"$as_dir" |
20380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20381 s//\1/
20382 q
20383 }
20384 /^X\(\/\/\)[^/].*/{
20385 s//\1/
20386 q
20387 }
20388 /^X\(\/\/\)$/{
20389 s//\1/
20390 q
20391 }
20392 /^X\(\/\).*/{
20393 s//\1/
20394 q
20395 }
20396 s/.*/./; q'`
20397 test -d "$as_dir" && break
20398 done
20399 test -z "$as_dirs" || eval "mkdir $as_dirs"
20400 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20401
20402
20403} # as_fn_mkdir_p
20404if mkdir -p . 2>/dev/null; then
20405 as_mkdir_p='mkdir -p "$as_dir"'
20406else
20407 test -d ./-p && rmdir ./-p
20408 as_mkdir_p=false
20409fi
20410
20411
20412# as_fn_executable_p FILE
20413# -----------------------
20414# Test if FILE is an executable regular file.
20415as_fn_executable_p ()
20416{
20417 test -f "$1" && test -x "$1"
20418} # as_fn_executable_p
20419as_test_x='test -x'
20420as_executable_p=as_fn_executable_p
20421
20422# Sed expression to map a string onto a valid CPP name.
20423as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20424
20425# Sed expression to map a string onto a valid variable name.
20426as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20427
20428
20429exec 6>&1
20430## ----------------------------------- ##
20431## Main body of $CONFIG_STATUS script. ##
20432## ----------------------------------- ##
20433_ASEOF
20434test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20435
20436cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20437# Save the log message, to keep $0 and so on meaningful, and to
20438# report actual input values of CONFIG_FILES etc. instead of their
20439# values after options handling.
20440ac_log="
20441This file was extended by OpenSSH $as_me Portable, which was
20442generated by GNU Autoconf 2.69. Invocation command line was
20443
20444 CONFIG_FILES = $CONFIG_FILES
20445 CONFIG_HEADERS = $CONFIG_HEADERS
20446 CONFIG_LINKS = $CONFIG_LINKS
20447 CONFIG_COMMANDS = $CONFIG_COMMANDS
20448 $ $0 $@
20449
20450on `(hostname || uname -n) 2>/dev/null | sed 1q`
20451"
20452
20453_ACEOF
20454
20455case $ac_config_files in *"
20456"*) set x $ac_config_files; shift; ac_config_files=$*;;
20457esac
20458
20459case $ac_config_headers in *"
20460"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20461esac
20462
20463
20464cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20465# Files that config.status was made for.
20466config_files="$ac_config_files"
20467config_headers="$ac_config_headers"
20468
20469_ACEOF
20470
20471cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20472ac_cs_usage="\
20473\`$as_me' instantiates files and other configuration actions
20474from templates according to the current configuration. Unless the files
20475and actions are specified as TAGs, all are instantiated by default.
20476
20477Usage: $0 [OPTION]... [TAG]...
20478
20479 -h, --help print this help, then exit
20480 -V, --version print version number and configuration settings, then exit
20481 --config print configuration, then exit
20482 -q, --quiet, --silent
20483 do not print progress messages
20484 -d, --debug don't remove temporary files
20485 --recheck update $as_me by reconfiguring in the same conditions
20486 --file=FILE[:TEMPLATE]
20487 instantiate the configuration file FILE
20488 --header=FILE[:TEMPLATE]
20489 instantiate the configuration header FILE
20490
20491Configuration files:
20492$config_files
20493
20494Configuration headers:
20495$config_headers
20496
20497Report bugs to <openssh-unix-dev@mindrot.org>."
20498
20499_ACEOF
20500cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20501ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20502ac_cs_version="\\
20503OpenSSH config.status Portable
20504configured by $0, generated by GNU Autoconf 2.69,
20505 with options \\"\$ac_cs_config\\"
20506
20507Copyright (C) 2012 Free Software Foundation, Inc.
20508This config.status script is free software; the Free Software Foundation
20509gives unlimited permission to copy, distribute and modify it."
20510
20511ac_pwd='$ac_pwd'
20512srcdir='$srcdir'
20513INSTALL='$INSTALL'
20514MKDIR_P='$MKDIR_P'
20515AWK='$AWK'
20516test -n "\$AWK" || AWK=awk
20517_ACEOF
20518
20519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20520# The default lists apply if the user does not specify any file.
20521ac_need_defaults=:
20522while test $# != 0
20523do
20524 case $1 in
20525 --*=?*)
20526 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20527 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20528 ac_shift=:
20529 ;;
20530 --*=)
20531 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20532 ac_optarg=
20533 ac_shift=:
20534 ;;
20535 *)
20536 ac_option=$1
20537 ac_optarg=$2
20538 ac_shift=shift
20539 ;;
20540 esac
20541
20542 case $ac_option in
20543 # Handling of the options.
20544 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20545 ac_cs_recheck=: ;;
20546 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20547 $as_echo "$ac_cs_version"; exit ;;
20548 --config | --confi | --conf | --con | --co | --c )
20549 $as_echo "$ac_cs_config"; exit ;;
20550 --debug | --debu | --deb | --de | --d | -d )
20551 debug=: ;;
20552 --file | --fil | --fi | --f )
20553 $ac_shift
20554 case $ac_optarg in
20555 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20556 '') as_fn_error $? "missing file argument" ;;
20557 esac
20558 as_fn_append CONFIG_FILES " '$ac_optarg'"
20559 ac_need_defaults=false;;
20560 --header | --heade | --head | --hea )
20561 $ac_shift
20562 case $ac_optarg in
20563 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20564 esac
20565 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20566 ac_need_defaults=false;;
20567 --he | --h)
20568 # Conflict between --help and --header
20569 as_fn_error $? "ambiguous option: \`$1'
20570Try \`$0 --help' for more information.";;
20571 --help | --hel | -h )
20572 $as_echo "$ac_cs_usage"; exit ;;
20573 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20574 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20575 ac_cs_silent=: ;;
20576
20577 # This is an error.
20578 -*) as_fn_error $? "unrecognized option: \`$1'
20579Try \`$0 --help' for more information." ;;
20580
20581 *) as_fn_append ac_config_targets " $1"
20582 ac_need_defaults=false ;;
20583
20584 esac
20585 shift
20586done
20587
20588ac_configure_extra_args=
20589
20590if $ac_cs_silent; then
20591 exec 6>/dev/null
20592 ac_configure_extra_args="$ac_configure_extra_args --silent"
20593fi
20594
20595_ACEOF
20596cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20597if \$ac_cs_recheck; then
20598 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20599 shift
20600 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20601 CONFIG_SHELL='$SHELL'
20602 export CONFIG_SHELL
20603 exec "\$@"
20604fi
20605
20606_ACEOF
20607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20608exec 5>>config.log
20609{
20610 echo
20611 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20612## Running $as_me. ##
20613_ASBOX
20614 $as_echo "$ac_log"
20615} >&5
20616
20617_ACEOF
20618cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20619_ACEOF
20620
20621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20622
20623# Handling of arguments.
20624for ac_config_target in $ac_config_targets
20625do
20626 case $ac_config_target in
20627 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20628 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20629 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
20630 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
20631 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
20632 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
20633 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
20634 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
20635
20636 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20637 esac
20638done
20639
20640
20641# If the user did not use the arguments to specify the items to instantiate,
20642# then the envvar interface is used. Set only those that are not.
20643# We use the long form for the default assignment because of an extremely
20644# bizarre bug on SunOS 4.1.3.
20645if $ac_need_defaults; then
20646 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20647 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20648fi
20649
20650# Have a temporary directory for convenience. Make it in the build tree
20651# simply because there is no reason against having it here, and in addition,
20652# creating and moving files from /tmp can sometimes cause problems.
20653# Hook for its removal unless debugging.
20654# Note that there is a small window in which the directory will not be cleaned:
20655# after its creation but before its name has been assigned to `$tmp'.
20656$debug ||
20657{
20658 tmp= ac_tmp=
20659 trap 'exit_status=$?
20660 : "${ac_tmp:=$tmp}"
20661 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20662' 0
20663 trap 'as_fn_exit 1' 1 2 13 15
20664}
20665# Create a (secure) tmp directory for tmp files.
20666
20667{
20668 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20669 test -d "$tmp"
20670} ||
20671{
20672 tmp=./conf$$-$RANDOM
20673 (umask 077 && mkdir "$tmp")
20674} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20675ac_tmp=$tmp
20676
20677# Set up the scripts for CONFIG_FILES section.
20678# No need to generate them if there are no CONFIG_FILES.
20679# This happens for instance with `./config.status config.h'.
20680if test -n "$CONFIG_FILES"; then
20681
20682
20683ac_cr=`echo X | tr X '\015'`
20684# On cygwin, bash can eat \r inside `` if the user requested igncr.
20685# But we know of no other shell where ac_cr would be empty at this
20686# point, so we can use a bashism as a fallback.
20687if test "x$ac_cr" = x; then
20688 eval ac_cr=\$\'\\r\'
20689fi
20690ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20691if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20692 ac_cs_awk_cr='\\r'
20693else
20694 ac_cs_awk_cr=$ac_cr
20695fi
20696
20697echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20698_ACEOF
20699
20700
20701{
20702 echo "cat >conf$$subs.awk <<_ACEOF" &&
20703 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20704 echo "_ACEOF"
20705} >conf$$subs.sh ||
20706 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20707ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20708ac_delim='%!_!# '
20709for ac_last_try in false false false false false :; do
20710 . ./conf$$subs.sh ||
20711 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20712
20713 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20714 if test $ac_delim_n = $ac_delim_num; then
20715 break
20716 elif $ac_last_try; then
20717 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20718 else
20719 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20720 fi
20721done
20722rm -f conf$$subs.sh
20723
20724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20725cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20726_ACEOF
20727sed -n '
20728h
20729s/^/S["/; s/!.*/"]=/
20730p
20731g
20732s/^[^!]*!//
20733:repl
20734t repl
20735s/'"$ac_delim"'$//
20736t delim
20737:nl
20738h
20739s/\(.\{148\}\)..*/\1/
20740t more1
20741s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20742p
20743n
20744b repl
20745:more1
20746s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20747p
20748g
20749s/.\{148\}//
20750t nl
20751:delim
20752h
20753s/\(.\{148\}\)..*/\1/
20754t more2
20755s/["\\]/\\&/g; s/^/"/; s/$/"/
20756p
20757b
20758:more2
20759s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20760p
20761g
20762s/.\{148\}//
20763t delim
20764' <conf$$subs.awk | sed '
20765/^[^""]/{
20766 N
20767 s/\n//
20768}
20769' >>$CONFIG_STATUS || ac_write_fail=1
20770rm -f conf$$subs.awk
20771cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20772_ACAWK
20773cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20774 for (key in S) S_is_set[key] = 1
20775 FS = ""
20776
20777}
20778{
20779 line = $ 0
20780 nfields = split(line, field, "@")
20781 substed = 0
20782 len = length(field[1])
20783 for (i = 2; i < nfields; i++) {
20784 key = field[i]
20785 keylen = length(key)
20786 if (S_is_set[key]) {
20787 value = S[key]
20788 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20789 len += length(value) + length(field[++i])
20790 substed = 1
20791 } else
20792 len += 1 + keylen
20793 }
20794
20795 print line
20796}
20797
20798_ACAWK
20799_ACEOF
20800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20801if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20802 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20803else
20804 cat
20805fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20806 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20807_ACEOF
20808
20809# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20810# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20811# trailing colons and then remove the whole line if VPATH becomes empty
20812# (actually we leave an empty line to preserve line numbers).
20813if test "x$srcdir" = x.; then
20814 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20815h
20816s///
20817s/^/:/
20818s/[ ]*$/:/
20819s/:\$(srcdir):/:/g
20820s/:\${srcdir}:/:/g
20821s/:@srcdir@:/:/g
20822s/^:*//
20823s/:*$//
20824x
20825s/\(=[ ]*\).*/\1/
20826G
20827s/\n//
20828s/^[^=]*=[ ]*$//
20829}'
20830fi
20831
20832cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20833fi # test -n "$CONFIG_FILES"
20834
20835# Set up the scripts for CONFIG_HEADERS section.
20836# No need to generate them if there are no CONFIG_HEADERS.
20837# This happens for instance with `./config.status Makefile'.
20838if test -n "$CONFIG_HEADERS"; then
20839cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20840BEGIN {
20841_ACEOF
20842
20843# Transform confdefs.h into an awk script `defines.awk', embedded as
20844# here-document in config.status, that substitutes the proper values into
20845# config.h.in to produce config.h.
20846
20847# Create a delimiter string that does not exist in confdefs.h, to ease
20848# handling of long lines.
20849ac_delim='%!_!# '
20850for ac_last_try in false false :; do
20851 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20852 if test -z "$ac_tt"; then
20853 break
20854 elif $ac_last_try; then
20855 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20856 else
20857 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20858 fi
20859done
20860
20861# For the awk script, D is an array of macro values keyed by name,
20862# likewise P contains macro parameters if any. Preserve backslash
20863# newline sequences.
20864
20865ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20866sed -n '
20867s/.\{148\}/&'"$ac_delim"'/g
20868t rset
20869:rset
20870s/^[ ]*#[ ]*define[ ][ ]*/ /
20871t def
20872d
20873:def
20874s/\\$//
20875t bsnl
20876s/["\\]/\\&/g
20877s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20878D["\1"]=" \3"/p
20879s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20880d
20881:bsnl
20882s/["\\]/\\&/g
20883s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20884D["\1"]=" \3\\\\\\n"\\/p
20885t cont
20886s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20887t cont
20888d
20889:cont
20890n
20891s/.\{148\}/&'"$ac_delim"'/g
20892t clear
20893:clear
20894s/\\$//
20895t bsnlc
20896s/["\\]/\\&/g; s/^/"/; s/$/"/p
20897d
20898:bsnlc
20899s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20900b cont
20901' <confdefs.h | sed '
20902s/'"$ac_delim"'/"\\\
20903"/g' >>$CONFIG_STATUS || ac_write_fail=1
20904
20905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20906 for (key in D) D_is_set[key] = 1
20907 FS = ""
20908}
20909/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20910 line = \$ 0
20911 split(line, arg, " ")
20912 if (arg[1] == "#") {
20913 defundef = arg[2]
20914 mac1 = arg[3]
20915 } else {
20916 defundef = substr(arg[1], 2)
20917 mac1 = arg[2]
20918 }
20919 split(mac1, mac2, "(") #)
20920 macro = mac2[1]
20921 prefix = substr(line, 1, index(line, defundef) - 1)
20922 if (D_is_set[macro]) {
20923 # Preserve the white space surrounding the "#".
20924 print prefix "define", macro P[macro] D[macro]
20925 next
20926 } else {
20927 # Replace #undef with comments. This is necessary, for example,
20928 # in the case of _POSIX_SOURCE, which is predefined and required
20929 # on some systems where configure will not decide to define it.
20930 if (defundef == "undef") {
20931 print "/*", prefix defundef, macro, "*/"
20932 next
20933 }
20934 }
20935}
20936{ print }
20937_ACAWK
20938_ACEOF
20939cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20940 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20941fi # test -n "$CONFIG_HEADERS"
20942
20943
20944eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
20945shift
20946for ac_tag
20947do
20948 case $ac_tag in
20949 :[FHLC]) ac_mode=$ac_tag; continue;;
20950 esac
20951 case $ac_mode$ac_tag in
20952 :[FHL]*:*);;
20953 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20954 :[FH]-) ac_tag=-:-;;
20955 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20956 esac
20957 ac_save_IFS=$IFS
20958 IFS=:
20959 set x $ac_tag
20960 IFS=$ac_save_IFS
20961 shift
20962 ac_file=$1
20963 shift
20964
20965 case $ac_mode in
20966 :L) ac_source=$1;;
20967 :[FH])
20968 ac_file_inputs=
20969 for ac_f
20970 do
20971 case $ac_f in
20972 -) ac_f="$ac_tmp/stdin";;
20973 *) # Look for the file first in the build tree, then in the source tree
20974 # (if the path is not absolute). The absolute path cannot be DOS-style,
20975 # because $ac_f cannot contain `:'.
20976 test -f "$ac_f" ||
20977 case $ac_f in
20978 [\\/$]*) false;;
20979 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20980 esac ||
20981 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20982 esac
20983 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20984 as_fn_append ac_file_inputs " '$ac_f'"
20985 done
20986
20987 # Let's still pretend it is `configure' which instantiates (i.e., don't
20988 # use $as_me), people would be surprised to read:
20989 # /* config.h. Generated by config.status. */
20990 configure_input='Generated from '`
20991 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20992 `' by configure.'
20993 if test x"$ac_file" != x-; then
20994 configure_input="$ac_file. $configure_input"
20995 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20996$as_echo "$as_me: creating $ac_file" >&6;}
20997 fi
20998 # Neutralize special characters interpreted by sed in replacement strings.
20999 case $configure_input in #(
21000 *\&* | *\|* | *\\* )
21001 ac_sed_conf_input=`$as_echo "$configure_input" |
21002 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21003 *) ac_sed_conf_input=$configure_input;;
21004 esac
21005
21006 case $ac_tag in
21007 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21008 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21009 esac
21010 ;;
21011 esac
21012
21013 ac_dir=`$as_dirname -- "$ac_file" ||
21014$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21015 X"$ac_file" : 'X\(//\)[^/]' \| \
21016 X"$ac_file" : 'X\(//\)$' \| \
21017 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21018$as_echo X"$ac_file" |
21019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21020 s//\1/
21021 q
21022 }
21023 /^X\(\/\/\)[^/].*/{
21024 s//\1/
21025 q
21026 }
21027 /^X\(\/\/\)$/{
21028 s//\1/
21029 q
21030 }
21031 /^X\(\/\).*/{
21032 s//\1/
21033 q
21034 }
21035 s/.*/./; q'`
21036 as_dir="$ac_dir"; as_fn_mkdir_p
21037 ac_builddir=.
21038
21039case "$ac_dir" in
21040.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21041*)
21042 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21043 # A ".." for each directory in $ac_dir_suffix.
21044 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21045 case $ac_top_builddir_sub in
21046 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21047 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21048 esac ;;
21049esac
21050ac_abs_top_builddir=$ac_pwd
21051ac_abs_builddir=$ac_pwd$ac_dir_suffix
21052# for backward compatibility:
21053ac_top_builddir=$ac_top_build_prefix
21054
21055case $srcdir in
21056 .) # We are building in place.
21057 ac_srcdir=.
21058 ac_top_srcdir=$ac_top_builddir_sub
21059 ac_abs_top_srcdir=$ac_pwd ;;
21060 [\\/]* | ?:[\\/]* ) # Absolute name.
21061 ac_srcdir=$srcdir$ac_dir_suffix;
21062 ac_top_srcdir=$srcdir
21063 ac_abs_top_srcdir=$srcdir ;;
21064 *) # Relative name.
21065 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21066 ac_top_srcdir=$ac_top_build_prefix$srcdir
21067 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21068esac
21069ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21070
21071
21072 case $ac_mode in
21073 :F)
21074 #
21075 # CONFIG_FILE
21076 #
21077
21078 case $INSTALL in
21079 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21080 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21081 esac
21082 ac_MKDIR_P=$MKDIR_P
21083 case $MKDIR_P in
21084 [\\/$]* | ?:[\\/]* ) ;;
21085 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21086 esac
21087_ACEOF
21088
21089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21090# If the template does not know about datarootdir, expand it.
21091# FIXME: This hack should be removed a few years after 2.60.
21092ac_datarootdir_hack=; ac_datarootdir_seen=
21093ac_sed_dataroot='
21094/datarootdir/ {
21095 p
21096 q
21097}
21098/@datadir@/p
21099/@docdir@/p
21100/@infodir@/p
21101/@localedir@/p
21102/@mandir@/p'
21103case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21104*datarootdir*) ac_datarootdir_seen=yes;;
21105*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21107$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21108_ACEOF
21109cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21110 ac_datarootdir_hack='
21111 s&@datadir@&$datadir&g
21112 s&@docdir@&$docdir&g
21113 s&@infodir@&$infodir&g
21114 s&@localedir@&$localedir&g
21115 s&@mandir@&$mandir&g
21116 s&\\\${datarootdir}&$datarootdir&g' ;;
21117esac
21118_ACEOF
21119
21120# Neutralize VPATH when `$srcdir' = `.'.
21121# Shell code in configure.ac might set extrasub.
21122# FIXME: do we really want to maintain this feature?
21123cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21124ac_sed_extra="$ac_vpsub
21125$extrasub
21126_ACEOF
21127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21128:t
21129/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21130s|@configure_input@|$ac_sed_conf_input|;t t
21131s&@top_builddir@&$ac_top_builddir_sub&;t t
21132s&@top_build_prefix@&$ac_top_build_prefix&;t t
21133s&@srcdir@&$ac_srcdir&;t t
21134s&@abs_srcdir@&$ac_abs_srcdir&;t t
21135s&@top_srcdir@&$ac_top_srcdir&;t t
21136s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21137s&@builddir@&$ac_builddir&;t t
21138s&@abs_builddir@&$ac_abs_builddir&;t t
21139s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21140s&@INSTALL@&$ac_INSTALL&;t t
21141s&@MKDIR_P@&$ac_MKDIR_P&;t t
21142$ac_datarootdir_hack
21143"
21144eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21145 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21146
21147test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21148 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21149 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21150 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21152which seems to be undefined. Please make sure it is defined" >&5
21153$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21154which seems to be undefined. Please make sure it is defined" >&2;}
21155
21156 rm -f "$ac_tmp/stdin"
21157 case $ac_file in
21158 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21159 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21160 esac \
21161 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21162 ;;
21163 :H)
21164 #
21165 # CONFIG_HEADER
21166 #
21167 if test x"$ac_file" != x-; then
21168 {
21169 $as_echo "/* $configure_input */" \
21170 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21171 } >"$ac_tmp/config.h" \
21172 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21173 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21174 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21175$as_echo "$as_me: $ac_file is unchanged" >&6;}
21176 else
21177 rm -f "$ac_file"
21178 mv "$ac_tmp/config.h" "$ac_file" \
21179 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21180 fi
21181 else
21182 $as_echo "/* $configure_input */" \
21183 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21184 || as_fn_error $? "could not create -" "$LINENO" 5
21185 fi
21186 ;;
21187
21188
21189 esac
21190
21191done # for ac_tag
21192
21193
21194as_fn_exit 0
21195_ACEOF
21196ac_clean_files=$ac_clean_files_save
21197
21198test $ac_write_fail = 0 ||
21199 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21200
21201
21202# configure is writing to config.log, and then calls config.status.
21203# config.status does its own redirection, appending to config.log.
21204# Unfortunately, on DOS this fails, as config.log is still kept open
21205# by configure, so config.status won't be able to write to it; its
21206# output is simply discarded. So we exec the FD to /dev/null,
21207# effectively closing config.log, so it can be properly (re)opened and
21208# appended to by config.status. When coming back to configure, we
21209# need to make the FD available again.
21210if test "$no_create" != yes; then
21211 ac_cs_success=:
21212 ac_config_status_args=
21213 test "$silent" = yes &&
21214 ac_config_status_args="$ac_config_status_args --quiet"
21215 exec 5>/dev/null
21216 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21217 exec 5>>config.log
21218 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21219 # would make configure fail if this is the last instruction.
21220 $ac_cs_success || as_fn_exit 1
21221fi
21222if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21224$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21225fi
21226
21227
21228# Print summary of options
21229
21230# Someone please show me a better way :)
21231A=`eval echo ${prefix}` ; A=`eval echo ${A}`
21232B=`eval echo ${bindir}` ; B=`eval echo ${B}`
21233C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
21234D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
21235E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
21236F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
21237G=`eval echo ${piddir}` ; G=`eval echo ${G}`
21238H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
21239I=`eval echo ${user_path}` ; I=`eval echo ${I}`
21240J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
21241
21242echo ""
21243echo "OpenSSH has been configured with the following options:"
21244echo " User binaries: $B"
21245echo " System binaries: $C"
21246echo " Configuration files: $D"
21247echo " Askpass program: $E"
21248echo " Manual pages: $F"
21249echo " PID file: $G"
21250echo " Privilege separation chroot path: $H"
21251if test "x$external_path_file" = "x/etc/login.conf" ; then
21252echo " At runtime, sshd will use the path defined in $external_path_file"
21253echo " Make sure the path to scp is present, otherwise scp will not work"
21254else
21255echo " sshd default user PATH: $I"
21256 if test ! -z "$external_path_file"; then
21257echo " (If PATH is set in $external_path_file it will be used instead. If"
21258echo " used, ensure the path to scp is present, otherwise scp will not work.)"
21259 fi
21260fi
21261if test ! -z "$superuser_path" ; then
21262echo " sshd superuser user PATH: $J"
21263fi
21264echo " Manpage format: $MANTYPE"
21265echo " PAM support: $PAM_MSG"
21266echo " OSF SIA support: $SIA_MSG"
21267echo " KerberosV support: $KRB5_MSG"
21268echo " SELinux support: $SELINUX_MSG"
21269echo " MD5 password support: $MD5_MSG"
21270echo " libedit support: $LIBEDIT_MSG"
21271echo " libldns support: $LDNS_MSG"
21272echo " Solaris process contract support: $SPC_MSG"
21273echo " Solaris project support: $SP_MSG"
21274echo " Solaris privilege support: $SPP_MSG"
21275echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
21276echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
21277echo " BSD Auth support: $BSD_AUTH_MSG"
21278echo " Random number source: $RAND_MSG"
21279echo " Privsep sandbox style: $SANDBOX_STYLE"
21280echo " PKCS#11 support: $enable_pkcs11"
21281echo " U2F/FIDO support: $enable_sk"
21282
21283echo ""
21284
21285echo " Host: ${host}"
21286echo " Compiler: ${CC}"
21287echo " Compiler flags: ${CFLAGS}"
21288echo "Preprocessor flags: ${CPPFLAGS}"
21289echo " Linker flags: ${LDFLAGS}"
21290echo " Libraries: ${LIBS}"
21291if test ! -z "${SSHDLIBS}"; then
21292echo " +for sshd: ${SSHDLIBS}"
21293fi
21294if test ! -z "${SSHLIBS}"; then
21295echo " +for ssh: ${SSHLIBS}"
21296fi
21297
21298echo ""
21299
21300if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
21301 echo "SVR4 style packages are supported with \"make package\""
21302 echo ""
21303fi
21304
21305if test "x$PAM_MSG" = "xyes" ; then
21306 echo "PAM is enabled. You may need to install a PAM control file "
21307 echo "for sshd, otherwise password authentication may fail. "
21308 echo "Example PAM control files can be found in the contrib/ "
21309 echo "subdirectory"
21310 echo ""
21311fi
21312
21313if test ! -z "$NO_PEERCHECK" ; then
21314 echo "WARNING: the operating system that you are using does not"
21315 echo "appear to support getpeereid(), getpeerucred() or the"
21316 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
21317 echo "enforce security checks to prevent unauthorised connections to"
21318 echo "ssh-agent. Their absence increases the risk that a malicious"
21319 echo "user can connect to your agent."
21320 echo ""
21321fi
21322
21323if test "$AUDIT_MODULE" = "bsm" ; then
21324 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
21325 echo "See the Solaris section in README.platform for details."
21326fi